query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Called by layer PRESENTER when VIEW pass for a reconstruction/destruction. Usefull for kill/stop activities that could be running on the background Threads
@Override public void onDestroy(boolean isChangingConfiguration) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalizeViewer()\n {\n viewer.stopViewer();\n\n // check whether star tasks still is running ! \n if (startTask.isAlive() == true)\n startTask.interruptAll(); // send interrupt signal\n \n // Wait 1s. \n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n \n viewer.disposeViewer();\n \n // check parent frame:\n if (viewer.getViewContext().getStartInStandaloneWindow()==true)\n {\n Frame frame=getViewerFrame(viewer); \n \n if (frame != null)\n {\n frame.dispose();\n }\n }\n }", "@Override\n public void run() {\n overlay.remove(shadowContainerLayer);\n mViewToAnimate.setBackground(oldBackground);\n if (mViewBitmap != null) {\n mViewBitmap.recycle();\n }\n }", "public void destroy(){\n Log.d(TAG, \"onDestroy called\");\n runRunnable = false;\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }\n isPaused = true;\n // TODO stop executorService\n\n //executor.shutdown();\n cameraThread.stop();\n\n }", "final synchronized public void signalFinalize()\n {\n\n // run stop in a seperate thread:\n //System.err.println(\"--- Signal finalize ---\");\n \n ActionTask stopTask = new ActionTask(this.taskSource,\n \"Stopping viewer:\" + this)\n {\n public void doTask()\n {\n try\n {\n finalizeViewer(); \n }\n catch (Error e)\n {\n System.out.println(\"***Error: Exception:\" + e);\n e.printStackTrace();\n // setText(\"*** Exception occured ***\\n\"+e.toString());\n }\n }\n\n public void stopTask()\n {\n }; // nothing to stop/dispose:this IS already a stop/dispose task!!! \n };\n\n stopTask.startTask();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\trunActivity = 0;\r\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\t// Log\n\t\tString log_msg = \"Destroying...\";\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\tthis.finish();\n\t\t\n\t\tthis.overridePendingTransition(0, 0);\n\t\t\n\t\tlocationObtained = false;\n\t\t\n\t}", "private void nograbar(View v) {\n try{\n mr.stop();\n mr.release();\n mr = null;\n }catch (Exception e){\n e.printStackTrace();\n }\n\n\n }", "@Override\r\n public synchronized void shutdownView(View view) {\r\n systems.remove(view); // remove view from system calls\r\n view.shutdown(); // shutdown the view appropriately\r\n running = false; // set running to false, engine will exit on next loop\r\n }", "@Override\n\tpublic void onCameraViewStopped() {\n\n\t}", "public void dispose() {\r\n\t\tif (view != null)\r\n\t\t\tview.stopThread = true;\r\n\t\tview = null;\r\n\t\tcontroller = null;\r\n\t\tsuper.dispose();\r\n\t}", "public void enterBackground() {\n if (mRenderView != null && !(mRenderView instanceof SurfaceRenderView)) {\n removeView(mRenderView.getView());\n }\n }", "@Override\n public void surfaceDestroyed(SurfaceHolder arg0) {\n release();\n threadFlag = false;\n }", "@Override\n\tpublic void onDetach(MapView mapView) {\n\t\tBitmapPool.getInstance().asyncRecycle(mIcon);\n\t\tmIcon=null;\n\t\tBitmapPool.getInstance().asyncRecycle(mImage);\n\t\t//cleanDefaults();\n\t\tthis.mOnMarkerClickListener=null;\n\t\tthis.mOnMarkerDragListener=null;\n\t\tthis.mResources=null;\n\t\tsetRelatedObject(null);\n\t\tif (isInfoWindowShown())\n\t\t\tcloseInfoWindow();\n\t\t//\t//if we're using the shared info window, this will cause all instances to close\n\n\t\tmMapViewRepository = null;\n\t\tsetInfoWindow(null);\n\t\tonDestroy();\n\n\n super.onDetach(mapView);\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tpreserved(bitmap);\n\t\t}", "@Override\n protected void onPause() {\n super.onPause();\n releaseCamera();\n mGLView.queueEvent(new Runnable() {\n @Override public void run() {\n // Tell the renderer that it's about to be paused so it can clean up.\n mRenderer.notifyPausing();\n }\n });\n mGLView.onPause();\n// Log.d(TAG, \"onPause complete\");\n }", "private void pauseRoadView() {\n\n if (navigationManager.getMapUpdateMode().equals(NavigationManager.MapUpdateMode.ROADVIEW)) {\n navigationManager.setMapUpdateMode(NavigationManager.MapUpdateMode.NONE);\n navigationManager.getRoadView().removeListener(roadViewListener);\n m_lastZoomLevelInRoadViewMode = m_map.getZoomLevel();\n }\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tsurfaceView.resume();\n\t}", "@Override\n public void onViewDestroyed() {\n\n }", "private void doAfterRestoreView(final PhaseEvent arg0) {\n\t}", "@Override\n public void onDone() {\n /*try {\n mOverlay.remove(mEyesGraphic);\n }catch (NullPointerException e){\n e.printStackTrace();\n }*/\n }", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\trunFlag = false;\n\t}", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tthreadFlag = false;\n\t\trelease();\n\t}", "@Override\n public void onViewDestroy() {\n }", "public void onViewDestroy(){}", "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tSystem.gc();\n\t\tthis.init();\n\t}", "@Override\n\tpublic void releasePreActivity() {\n\t\t\n\t}", "@Override\n\tpublic void stop() {\n\t\tif (view != null)\n\t\t\tview.stop();\n\t}", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tisModeSwitch=false;\r\n\t\tif (!TheApp.mApp.clientForeign()) {\r\n\t\t\tUpgradeManager.getInstance().BackStageNetWordCheck();\r\n\t\t}\r\n\t\tif (TheApp.mApp.windowManageView!=null) {\r\n\t\t\tLogCatUtils.showString(\"==removeView=====\");\r\n\t\t\tTheApp.mApp.windowManageView.removeView();\r\n\t\t}\r\n\t\tif (mCManager!=null) {\r\n\t\t\tmCManager.registerCallback(callbackImpl);\r\n\t\t}\r\n\t\tProgressDialog.getInstance().progressShow(R.string.camera_loading);\r\n\t\tProgressDialog.getInstance().enableCanceledOnTouchOutside(true);\r\n\t\tpreviewOverTimeRunTask();\r\n\t\tBundle outparam=new Bundle();\r\n\t\tSyuJniNative.getInstance().syu_jni_command(12, null, outparam);\r\n\t\tif (outparam!=null) {\r\n\t\t\tif (outparam.getInt(\"param0\",-1)==1) {\r\n\t\t\t\tDialog dialog=PublicClass.getInstance().NoCameraWarning(1);\r\n\t\t\t\tdialog.show();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tisonStop=false;\r\n\t\thandler.sendEmptyMessage(0);\r\n\t\thandler.sendEmptyMessageDelayed(3, 500);\r\n\t\tLogCatUtils.showString(\" onStart \" );\r\n\t}", "@Override\n protected void onDestroy() {\n mapView.onDestroy();\n super.onDestroy();\n }", "@Override\n public void run() {\n setPointActions(host.getUnlockedStages());\n }", "public void revive(final GameView gameView) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n setupRevive(gameView);\n }\n }).start();\n\n }", "@Override\n\tprotected void resurrect() {\n\t\ttry {\n\t\t\tlotus.domino.Agent agent = resurrectAgent();\n\t\t\tsetDelegate(agent, true);\n\t\t\t/* No special logging, since by now View is a BaseThreadSafe */\n\t\t} catch (Exception e) {\n\t\t\tDominoUtils.handleException(e);\n\t\t}\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n if (fireworkView.isRunning()) {\n fireworkView.setRunning(false);\n }\n }", "@Override\n public void stop() {\n animatorThread = null;\n\n //Get rid of the objects necessary for double buffering.\n offGraphics = null;\n offImage = null;\n }", "@Override\r\n protected void onDestroy() {\n super.onDestroy();\r\n mapview.onDestroy();\r\n }", "protected abstract void postDestroy();", "@Override\n public void finish() {\n\n super.finish();\n //construction.updateConstructionZones();\n }", "@Override\n\tpublic void destroy() {\n\t\tif(!isVisible())\n\t\t{\n\t\t\tSystem.out.println(\"敌机销毁\");\n\t\t}\n\t}", "@Override\r\n\t\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\tIsRunning = false;\r\n\t\t}", "@Override protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n release();\n }", "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tLog.i(TAG, \"onDestroyView\");\n\t}", "protected void cleanup() throws QTException {\n switch(action) {\n case REMOVE_DRAWING_COMPLETE_PROC:\n MoviePlayer player = (MoviePlayer)needsCleaning[0];\n if (player == null) return;\n Movie movie = player.getMovie();\n movie.removeDrawingCompleteProc();\n player.setGWorld(QDGraphics.scratch);\n needsCleaning[0] = null;\n }\n }", "@Override\r\n\tpublic void disposeView() {\n\t\t\r\n\t}", "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\truning = false;\n\t}", "private void destroyDisplayEditOverlay() {\n\t}", "@Override\n public void run() {\n mSaveOnDetach = false;\n\n if (mModification == Utils.MODIFY_UNINITIALIZED) {\n mModification = Utils.MODIFY_ALL;\n }\n boolean isInsert = mEvent.eventType.equals(Intent.ACTION_INSERT);\n if ((mCode & Utils.DONE_SAVE) != 0\n && mModel != null\n && ((mOriginalModel != null && !isInsert)\n || (mOriginalModel == null && isInsert))\n && mView.prepareForSave()) {\n\n int validity = mModel.getValidity();\n if (validity != 0) {\n mView.setValidity(validity);\n return;\n }\n\n if (mHelper.savePlanet(mModel, mOriginalModel)) {\n mView.setViewStates(Utils.MODIFY_UNINITIALIZED);\n mIsEditable = false;\n return;\n }\n }\n\n if ((mCode & Utils.DONE_DELETE) != 0 && mOriginalModel != null) {\n DeletePlanetHelper deleteHelper = new DeletePlanetHelper(mActivity);\n deleteHelper.registerDeleteNotifyListener(deleteNotifyListener);\n deleteHelper.delete(mOriginalModel);\n return;\n }\n\n if ((mCode & Utils.DONE_EXIT) != 0) {\n // This will exit the edit planet screen, should be called\n // when we want to return to the main planet view\n Activity a = EditPlanetFragment.this.getActivity();\n if (a != null) {\n Intent returnIntent = new Intent();\n a.setResult(Activity.RESULT_OK, returnIntent);\n a.finish();\n }\n }\n\n // Hide a software keyboard so that user won't see it even after this Fragment's\n // disappearing.\n/* final View focusedView = mActivity.getCurrentFocus();\n if (focusedView != null) {\n mInputMethodManager.hideSoftInputFromWindow(focusedView.getWindowToken(), 0);\n focusedView.clearFocus();\n }*/\n }", "@Override\n\tprotected void finalize() throws Throwable {\n\t\ttry {\n\t\t\tsuper.finalize();\n\t\t\t(new ClearClipBoardTask()).run();\n\t\t} catch (Exception ex) {\n\t\t\tLogger.getLogger(this.getClass().getName()).severe(ex.getMessage());\n\t\t}\n\t}", "public void run() {\n LinearLayout layout = (LinearLayout) mainActivity.findViewById(R.id.camera_view);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT, 0f);\n for(int i=0; i<camera_ids.length; i++) {\n if(surfaceViews[i] == null) {\n TextView textView = new TextView(mainActivity.getBaseContext());\n textView.setTextSize(40);\n textView.setText(\"Failed Camera \" + camera_ids[i]);\n textView.setGravity(Gravity.CENTER);\n layout.addView(textView, params);\n continue;\n }\n layout.addView(surfaceViews[i], params);\n }\n if(layout.getParent() != null) {\n ((ViewGroup)layout.getParent()).removeView(layout); // <- fix\n }\n mainActivity.addContentView(layout, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n flightViewModel.reset();\n }", "public void finishPassing() {\n\t\n\tmyGlass = null;\n controller.donePass();\n // System.out.println(\"done animating\");\n}", "public void OnFinishActiviy() {\n super.OnFinishActiviy();\n C2316j.m10034b(\"LiveViewMoviePantilterBaseViewModel\");\n if (this.f12126c != null) {\n this.f12126c.mo8945a();\n }\n if (this.f12125b != null) {\n this.f12125b.mo3205a();\n this.f12125b = null;\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tthread.interrupt();\n\t\tsuper.onDestroy();\n\t}", "public void stopTask()\n {\n viewer.stopViewer(); \n }", "public void deActivated() \r\n\t{\r\n\t\t\r\n\t}", "synchronized public void destroy() {\n \t\tsuper.destroy();\n \t\tp = null;\n \t\tp_layer = null;\n \t}", "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\n\t}", "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "@Override\n protected void onDetachedFromWindow()\n {\n super.onDetachedFromWindow();\n /* cleanup reference to prevent memory leak */\n eraserCanvas.setBitmap(null);\n eraserBitmap = null;\n\n if (animatorSetArrayList != null && !animatorSetArrayList.isEmpty()) {\n for (int i = 0; i < animatorSetArrayList.size(); i++) {\n animatorSetArrayList.get(i).end();\n animatorSetArrayList.get(i).removeAllListeners();\n }\n }\n }", "@Override\r\n protected void onRestart() {\n super.onRestart();\r\n mapview.onRestart();\r\n }", "public void setupRevive(GameView gameView)\n {\n for(ReviveObserver ro : reviveObservers)\n {\n ro.update(gameView);\n }\n //gameView.getPlayerInstance().revive();\n //gameView.resume();\n\n gameView.resume();\n\n\n\n\n\n }", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n e eVar = this.aeA.aeR;\n if (eVar != null) {\n eVar.unregisterObserver(this.aeK);\n }\n ViewTreeObserver viewTreeObserver = getViewTreeObserver();\n if (viewTreeObserver.isAlive()) {\n viewTreeObserver.removeGlobalOnLayoutListener(this.aeL);\n }\n if (hs()) {\n hr();\n }\n this.pv = false;\n }", "public void doExit(View view) {\n mainHelper.restart();\n setContentView(R.layout.fragment_main_activity_ttt);\n }", "public SceneUpdateThread(Another2DView view) {\n this.view = view;\n view.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder surfaceHolder) {\n setRunning(true);\n start();\n }\n @Override\n public void surfaceChanged(SurfaceHolder surfaceHolder, int i, int i1, int i2) {\n }\n @Override\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n boolean retry = true;\n setRunning(false);\n while (retry) {\n try {\n join();\n retry = false;\n } catch (InterruptedException e) {\n }\n }\n }\n });\n }", "@EncoderThread\n protected abstract void onStop();", "@Override\r\n\tpublic void onDestroyView() {\n\t\tLog.v(TAG, \"onDestroyView\");\r\n\t\tsuper.onDestroyView();\r\n\t\t//Toast.makeText(getActivity(), TAG+ \" \"+i+\" onDestroyView\", Toast.LENGTH_SHORT).show();\r\n\t}", "@Override\n\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\tif (DEBUG>=2) Log.d(TAG, \"surfaceDestroyed'd\");\n\n\t\t\t// Surface will be destroyed when we return, so stop the preview.\n\t\t\t// Because the CameraDevice object is not a shared resource, it's\n\t\t\t// very important to release it when the activity is paused.\n\t\t\tif (mCamera != null) {\n\t\t\t\tSHOWING_PREVIEW = false;\n\t\t\t\tmCamera.stopPreview();\n\t\t\t}\n\n\t\t\t//Log.d(TAG, \"surfaceDestroyed'd finish\");\n\t\t}", "@Override\n protected void onPause() {\n closeCamera();\n\n stopBackgroundThread();\n super.onPause();\n }", "@Override\n\tpublic void doCleanup() {\n\t\tmTimestampGapTimer.cancel();\n\t\t\n\t\t// clear the view holder map\n\t\tsynchronized(mTimestampGapMapper) {\n\t\t\tmTimestampGapMapper.clear();\n\t\t}\n\t\t\n\t\tmTimestampGapMapper = null;\n\t}", "@Override\n public void run() {\n mySurfaceView.setVisibility(View.GONE);\n qrEader.stop();\n\n\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n }", "@Override\n public void onDone() {\n mOverlay.remove(mEyesGraphic);\n }", "void onDestroyView()\n {\n }", "public void onDestroy() {\n cancelPausedTimer();\n k.a().b();\n stopSocket();\n clearAllMapData();\n if (this.pushManager != null) {\n this.pushManager.i();\n this.pushManager = null;\n }\n if (this.liveAnimationView != null) {\n this.liveAnimationView.onDestroy();\n }\n if (this.mLivePusherInfoView != null) {\n this.mLivePusherInfoView.onDestroy();\n }\n if (this.countDownAnimSet != null) {\n this.countDownAnimSet.cancel();\n }\n if (this.mainHandler != null) {\n this.mainHandler.removeCallbacksAndMessages(null);\n this.mainHandler = null;\n }\n if (this.workHandler != null) {\n this.workHandler.removeCallbacksAndMessages(null);\n this.workHandler = null;\n }\n if (this.mGiftBoxView != null) {\n this.mGiftBoxView.release();\n }\n if (this.mInputTextMsgDialog != null) {\n this.mInputTextMsgDialog.onDestroy();\n this.mInputTextMsgDialog = null;\n }\n super.onDestroy();\n }", "public static String _but_cerrar_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 450;BA.debugLine=\"Activity.Finish\";\nmostCurrent._activity.Finish();\n //BA.debugLineNum = 451;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n protected void onStop() {\n super.onStop();\n Log.i(TAG, \"onStop: 1st view\");\n }", "public abstract void viewRun();", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tmGLView.onResume();\n\t}", "@Override\n public void stop() {\n\n if (mapView != null) {\n mapView.dispose();\n }\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n mMapView.onDestroy();\n }", "public final void destroy(){\n stop();\n LIBRARY.CLEyeDestroyCamera(camera_);\n camera_ = null;\n PS3_LIST_.remove(this);\n }", "@Override\n public void onPause() {\n super.onPause();\n Log.d(TAG, \"onPause saving layers\");\n }", "@Override\n\tpublic void onDestroy() {\n\t\t\n\t\tLog.d(TAG,\"onDestroy\");\n\t\tif(mCameraDevices!=null){\n\t\t\tmCameraDevices.release();\n\t\t}\n\t\tshowFloatTool(false);\n\t\tsuper.onDestroy();\n\t}", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n resume_id = null;\n cellNums = null;\n telNums = null;\n }", "@Override\r\n\tpublic void dispose() {\n\t\tif ( disposed ) { return; }\r\n\t\tif ( getOutput() != null ) {\r\n\t\t\tgetOutput().getData().removeListener(this);\r\n\t\t}\r\n\t\tdisposed = true;\r\n\t\tif ( surfaceComposite != null ) {\r\n\t\t\tsurfaceComposite.dispose();\r\n\t\t}\r\n\t\tIDisplaySurface s = getDisplaySurface();\r\n\t\tif ( s != null ) {\r\n\t\t\treleaseLock();\r\n\t\t}\r\n\t\tif ( updateThread != null ) {\r\n\t\t\tupdateThread.interrupt();\r\n\t\t}\r\n\r\n\t\tif ( perspectiveListener != null ) {\r\n\t\t\tSwtGui.getWindow().removePerspectiveListener(perspectiveListener);\r\n\t\t}\r\n\t\t// FIXME Remove the listeners\r\n\r\n\t\tif ( overlay != null ) {\r\n\t\t\toverlay.close();\r\n\t\t}\r\n\t\tsuper.dispose();\r\n\t}", "public void onCameraViewStarted(int width, int height) {\n //https://docs.opencv.org/2.4/modules/core/doc/basic_structures.html\n mRgba = new Mat(height, width, CvType.CV_8UC4);\n\n String pathCascadeNoseFile=initAssetFile(fileName);\n File file =new File(pathCascadeNoseFile);\n if(file.exists()) {\n System.out.println(\"File Exist\");\n cascadeClassifier = new CascadeClassifier(pathCascadeNoseFile);\n }else{\n System.out.println(\"File Don't Exist\");\n }\n\n //I have problem with memory use, create this ones outside the OnCamera frame function\n //But still having some problem with memory use\n //https://answers.opencv.org/question/61516/android-app-force-closed-by-memory-leak/\n matOfRect= new MatOfRect();\n gray= new Mat();\n result = new Mat();\n }", "@Override\r\n protected void onDestroy() {\n \r\n \r\n \r\n if(DJIDrone.getDjiCamera() != null)\r\n DJIDrone.getDjiCamera().setReceivedVideoDataCallBack(null);\r\n mDjiGLSurfaceView.destroy();\r\n super.onDestroy();\r\n }", "@Override\n\tpublic void onResume() {\n\t\tmPanoView.onResume();\n\t\tsuper.onResume();\n\t}", "protected void destroy() {\n final RenderObject me = this;\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n GameRenderer.s_instance.removeRenderObject(me);\n }\n });\n }", "@Override\n protected void onDestroy() {\n mActivityGraph = null;\n super.onDestroy();\n }", "public void OnFinishActiviy() {\n super.OnFinishActiviy();\n C2316j.m10034b(\"MultiPhotoFrameMainViewModel\");\n this.f14957e.mo10691a();\n if (this.f14954b != null) {\n this.f14954b.mo3205a();\n this.f14954b = null;\n }\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n if(mvTencentMapView != null) {\n mvTencentMapView.onDestroy();\n }\n if(aUtil != null) {\n aUtil.stop();\n }\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n\n }", "@Override public void onDestroyView() {\n super.onDestroyView();\n unbinder.unbind();\n }", "@Override\n \tpublic void disposeScene() {\n \t\t\n \t}", "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) \r\n\t{\n\t\tmCamera.stopPreview();\r\n\t\tmCamera.release(); \r\n\t}", "public void volverLobby(View view) {\n finish();\n }", "public void recycleCheck(){\n getScreenRect();\n\n //ok...seriously, I have no idea why I need to wrap it in post()\n //but if I don't, it won't be able to setHtml() again (the second time)\n //TODO investigate what the fuck is going on\n post(new Runnable() {\n @Override\n public void run() {\n for (int i = 0, l = overlay.getChildCount(); i < l; i++) {\n //TODO check whether it is visible inside the view bound instead of inside the screen bound\n View v = overlay.getChildAt(i);\n v.getLocationOnScreen(coordinate);\n\n viewRect.set(coordinate[0], coordinate[1], coordinate[0] + v.getMeasuredWidth(), coordinate[1] + v.getMeasuredHeight());\n\n boolean isVisible = viewRect.intersect(screenRect);\n Integer index = (Integer) v.getTag(R.id.htmltextview_viewholder_index);\n Integer type = (Integer) v.getTag(R.id.htmltextview_viewholder_type);\n if (index == null || type == null){\n //WTF?\n continue;\n }\n\n Container container = null;\n switch (type){\n case VIEWHOLDER_TYPE_IMG:\n default:\n container = imgContainerMap.get(index);\n break;\n }\n if (isVisible){\n if (container.visible){\n //fine\n }else{\n //was invisible, make it visible\n container.attachChild();\n container.visible = true;\n }\n }else{\n if (container.visible){\n //was visible, recycle it\n container.detachChild();\n container.visible = false;\n }else{\n //fine\n }\n }\n }\n }\n });\n }", "public void finishBlasOperation() {\n //destroy();\n }" ]
[ "0.6427389", "0.6311502", "0.6182895", "0.6085512", "0.6040295", "0.5976859", "0.5898788", "0.5855947", "0.5796088", "0.579268", "0.5782259", "0.5742097", "0.5734015", "0.57239294", "0.57010716", "0.56929475", "0.5688425", "0.5663359", "0.5634871", "0.56334496", "0.5628191", "0.5626895", "0.5623034", "0.56220806", "0.561796", "0.5594793", "0.55734885", "0.5568971", "0.55658567", "0.5561042", "0.5558924", "0.55505496", "0.5548124", "0.5545421", "0.554234", "0.5539133", "0.5531288", "0.55312794", "0.5527594", "0.5526472", "0.5520195", "0.5519725", "0.55098003", "0.5505101", "0.55040175", "0.54999423", "0.5498647", "0.5497507", "0.5495889", "0.54836756", "0.54831123", "0.5480158", "0.54772055", "0.54643184", "0.5460356", "0.5459857", "0.5459286", "0.5455963", "0.5455963", "0.54536617", "0.5451917", "0.5446564", "0.5445585", "0.54426104", "0.543741", "0.5436561", "0.5436089", "0.54353493", "0.54333955", "0.54264945", "0.5424396", "0.5422159", "0.5422159", "0.5421023", "0.5406165", "0.5403706", "0.53999513", "0.5399581", "0.53993845", "0.538996", "0.53849894", "0.53811467", "0.5375906", "0.5372455", "0.5370125", "0.5364806", "0.53582746", "0.5355599", "0.53402734", "0.53371155", "0.53293544", "0.53293115", "0.53238267", "0.53227365", "0.5322004", "0.53191936", "0.5315159", "0.5314348", "0.5312677", "0.53103673", "0.53096443" ]
0.0
-1
///////////////////////////////////////////////////////////////////////////////// Presenter To Model //////////////////////////////////////////////////////////// Method that get the tittle of the location
@Override public String getTittle() { return tittleText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String describeLocation() {\n\t\tSWLocation location = this.world.getEntityManager().whereIs(this);\n\t\treturn this.getShortDescription() + \" [\" + this.getHitpoints() + \"] is at \" + location.getShortDescription();\n\t}", "String getLocationLabel();", "public abstract String getDisplayLocation();", "@Nullable\n protected String location() {\n String location = null;\n\n if (parent != null) {\n ItemPresentation itemPresentation = parent.getPresentation();\n\n if (itemPresentation instanceof Parent) {\n Parent parentPresentation = (Parent) itemPresentation;\n location = parentPresentation.getLocatedPresentableText();\n }\n }\n\n return location;\n }", "public String getLocationName(){\n return myLoc;\n }", "public String getInformationTitle() {\n return getName();\n }", "@Override\n\tpublic String getTitle() {\n\t\treturn model.getTitle();\n\t}", "IDisplayString getTitle();", "@Override\n public View getInfoContents(Marker arg0) {\n\n // Getting view from the layout file info_window_layout\n View v = getLayoutInflater().inflate(R.layout.window_layout, null);\n\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.beacon_title1);\n\n // Getting reference to the TextView to set longitude\n ImageView img = (ImageView) v.findViewById(R.id.goat);\n\n // Setting the latitude\n tvLat.setText(arg0.getTitle());\n // Returning the view containing InfoWindow contents\n return v;\n\n }", "public String getThatTitle(){\n return this.title;\n }", "public String getVenueTittle() {\n return mTittleItem;\n }", "public String getTitle() { return this.title; }", "public String getLocation(){\n return this.location;\n }", "public String getTitle() { return title; }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}", "@Override\n public String toString() {\n return getTitle();\n }", "public String getTitle(){\n return mTitle;\n }", "public String getTitle(){\n return this.title;\n }", "@Override\n public String location() {\n return \"Vị trí sách giáo khoa\";\n }", "@Override\n public String getTitle() {\n return getName();\n }", "public String getTitle()\n {\n return name;\n }", "public String getStationTitle() {\r\n return stationTitle;\r\n }", "public abstract String getShortTitle();", "public String getTitle() { return mTitle; }", "public static interface MapTitleContributor {\n\t\t/**\n\t\t * @param pOldTitle\n\t\t * The current title\n\t\t * @param pMapModule\n\t\t * @param pModel\n\t\t * @return The current title can be changed or something can be added,\n\t\t * but it must be returned as a whole.\n\t\t */\n\t\tString getMapTitle(String pOldTitle, MapModule pMapModule,\n\t\t\t\tMindMap pModel);\n\t}", "@Override\n public String toString() {\n return title;\n }", "@Override\n \tpublic String toString() {\n \t\treturn title;\n \t}", "@Override\r\n\tpublic Town getTraleeLocation() {\n\t\treturn new Town(\" Ashe Memorial Hall \");\r\n\t}", "public String getTitle(){\n return titlesText;\n }", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "public String getTitle(){\n return title;\n }", "public String getTitle(){\n return title;\n }", "public String getTitle(){\n return title;\n }", "public String getTitle() {\n return mTitle;\n }", "public String getLocation(){\n return location;\n }", "java.lang.String getViewsLabel();", "public String getTitle() {\n return this.title;\n }", "public String getLocation(){\r\n return location;\r\n }", "@Override\r\n public String getTitle() {\r\n return title;\r\n }", "String getTitre();", "public String toString() {\r\n return this.title + \" by \" + this.artist;\r\n }", "@Override\n public View getInfoContents(Marker marker) {\n View view = inflater.inflate(R.layout.layout_info_window, null, false);\n TextView txtName = view.findViewById(R.id.txtName);\n txtName.setText(marker.getTitle());\n// txtName.setText(message);\n return view;\n }", "protected String getLocation(){\r\n return this.location;\r\n }", "String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return this.title;\r\n }", "public String toString() {\r\n\t\treturn getTitle();\r\n\t}", "public String getTitle()\r\n {\r\n return this.title;\r\n }", "@Override\r\n public String getTitle() {\n return title;\r\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle() {\n\treturn title;\n}", "@Override\n public View getInfoContents(Marker marker) {\n TextView titleView = (TextView) contentsView.findViewById(R.id.text_info_window_title);\n titleView.setText(marker.getTitle());\n return contentsView;\n }", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "@Override\n public String getTitle() {\n return title;\n }", "public String GetTitle(){ return(title); }", "public abstract String getToolTip();", "public String getTitle(){\n \treturn this.title;\n }", "public String getLocation(){\r\n return Location;\r\n }", "public String getAtitle() {\n return atitle;\n }", "@Override\n public String toString() {\n return title +\" \"+ gpsX+\" \"+gpsY+\" \"+address+\" \"+newAddress+\" \"+category;\n }", "public String getTitle() {\n return title;\n\n }", "public String getInfoText();", "private String getTitle() {\n return title;\n }", "public java.lang.String getTitle();", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "String getTitle() {\n return title;\n }", "public abstract String getLocation();", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getPlace(){\n return place;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }", "public String getTitle()\n {\n return title;\n }" ]
[ "0.67175066", "0.6521467", "0.63626486", "0.61770016", "0.6140177", "0.6042765", "0.60401607", "0.6021024", "0.60136867", "0.60093164", "0.599588", "0.59559155", "0.59153694", "0.5891559", "0.58863205", "0.58773726", "0.5866444", "0.5854639", "0.58463544", "0.5830044", "0.58293915", "0.58260405", "0.5826009", "0.5824522", "0.5822173", "0.5818187", "0.581586", "0.5811421", "0.57886124", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.5784986", "0.57722837", "0.57722837", "0.5767163", "0.5767163", "0.5767163", "0.57649803", "0.57597375", "0.5758304", "0.5757294", "0.5756683", "0.575196", "0.57514465", "0.57504517", "0.5747269", "0.574175", "0.5735578", "0.57342845", "0.57324517", "0.57293123", "0.57249194", "0.57102007", "0.5709238", "0.57063895", "0.5693594", "0.5693594", "0.5693594", "0.5693594", "0.56930065", "0.56911474", "0.56884176", "0.5683848", "0.56795555", "0.5676872", "0.56758493", "0.5675183", "0.56751424", "0.5673917", "0.5667808", "0.5665914", "0.5665914", "0.56646395", "0.5661544", "0.565675", "0.565675", "0.565675", "0.565675", "0.565675", "0.56563365", "0.5654098", "0.5654098", "0.5654098", "0.5654098", "0.5654098" ]
0.61051494
5
Method that get the description of the location
@Override public String getDescription() { return descriptionText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String describeLocation() {\n\t\tSWLocation location = this.world.getEntityManager().whereIs(this);\n\t\treturn this.getShortDescription() + \" [\" + this.getHitpoints() + \"] is at \" + location.getShortDescription();\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}", "java.lang.String getLocation();", "String getLocation();", "String getLocation();", "String getLocation();", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "public String getLocation(){\n return this.location;\n }", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public void printLocationInfo()\n {\n System.out.println(currentRoom.getLongDescription());\n System.out.println();\n }", "public String getLocation(){\r\n return location;\r\n }", "public String getLocation()\n {\n return location;\n }", "public java.lang.String getLocation() {\n return location;\n }", "public String getLocation(){\n return location;\n }", "public String getLocation() {\r\n return location;\r\n }", "public String getLocation(){\r\n return Location;\r\n }", "String getLocationLabel();", "public String getLocation() {\n return location;\n }", "public java.lang.String getLocation() {\n return location;\n }", "public abstract String getLocation();", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\r\n return location;\r\n }", "public String getLocationName(){\n return myLoc;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return location;\n }", "public String getLocation() {\n return this.location;\n }", "public String getLocation() {\r\n\t\treturn location; \r\n\t}", "public DeviceDescriptionLocation getLocation() {\n return location;\n }", "protected String getLocation(){\r\n return this.location;\r\n }", "public String location() {\n return this.location;\n }", "public String location() {\n return this.location;\n }", "public String getLocation() {\n return location;\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn this.location;\n\t}", "public String getLocation() {\r\n\t\treturn location;\r\n\t}", "@Override\n public String getLocation() {\n return location;\n }", "@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}", "public String getLocation() {\n\t\treturn location;\n\t}", "public String toString()\n {\n StringBuilder locationString = new StringBuilder();\n locationString.append(entityName).append(\" (\").append(description).append(\"):\\n\");\n for (Entity entity : entityList) {\n locationString.append(\" \").append(entity.toString()).append(\"\\n\");\n }\n return locationString.toString();\n }", "public String getmLocationDetailsSummary() {\n return mLocationDetailsSummary;\n }", "String getLocation(boolean detail);", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "public abstract String getDisplayLocation();", "public String getLocation() {\n\t\t\treturn location;\n\t\t}", "public final String getLocation() {\n return location;\n }", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public String getLocation() {\n return mLocation;\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:location\")\n public String getLocation() {\n return getProperty(LOCATION);\n }", "public String getLocationString() {\r\n\t\treturn \"Location = (\" + Math.round(getLocationX() * 10) / 10.0 + \", \" + Math.round(getLocationY() * 10) / 10.0 + \")\";\r\n\t}", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();" ]
[ "0.8343474", "0.74426204", "0.7442012", "0.7361998", "0.7361998", "0.7361998", "0.7352975", "0.7352975", "0.73079425", "0.7284183", "0.7284183", "0.7284183", "0.7284183", "0.7284183", "0.7284183", "0.7284183", "0.7284183", "0.72733057", "0.72599393", "0.7231152", "0.7210369", "0.7202611", "0.7182586", "0.7181136", "0.71768504", "0.71736264", "0.7145288", "0.7143709", "0.7140624", "0.7140624", "0.7140624", "0.7140624", "0.7140624", "0.71238494", "0.7104786", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.70972615", "0.7082389", "0.70794463", "0.70732343", "0.7042528", "0.70281553", "0.70281553", "0.7026814", "0.7022486", "0.69918114", "0.6991174", "0.6959511", "0.695736", "0.69265187", "0.6912109", "0.6908251", "0.6899824", "0.6883566", "0.6869141", "0.68378186", "0.6837415", "0.6837415", "0.6837415", "0.6837415", "0.6837415", "0.6837415", "0.6837415", "0.6837415", "0.6837415", "0.6801459", "0.6796646", "0.6788735", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187", "0.67843187" ]
0.0
-1
Method that get the location in googleMaps
@Override public String getLocation() { return location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getMyLocation() {\n LatLng latLng = new LatLng(latitude, longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 18);\n googleMap.animateCamera(cameraUpdate);\n }", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "private void getlocation() {\n\t\t\t\ttry {\n\n\t\t\t\t\tgps = new GPSTracker(RegisterActivity.this);\n\t\t\t\t\tLog.d(\"LOgggg\", \"inCurrentlocation\");\n\n\t\t\t\t\t// check if GPS enabled\n\t\t\t\t\tif (gps.canGetLocation()) {\n\n\t\t\t\t\t\tlatitude = gps.getLatitude();\n\t\t\t\t\t\tlongitude = gps.getLongitude();\n\n\t\t\t\t\t\tLog.i(\"latitude\", \"\" + latitude);\n\t\t\t\t\t\tLog.i(\"longitude\", \"\" + longitude);\n\n\t\t\t\t\t\tnew getLoc().execute(\"\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgps.showSettingsAlert();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public static MapLocation myLocation() {\n return RC.getLocation();\n }", "@SuppressWarnings({\"MissingPermission\"})\n void getMyLocation() {\n mGoogleMap.setMyLocationEnabled(true);\n FusedLocationProviderClient locationClient = getFusedLocationProviderClient(getContext());\n locationClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n onLocationChanged(location);\n moveCamera();\n drawCircle();\n drawMarkers();\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\n e.printStackTrace();\n }\n });\n }", "Location getLocation();", "Location getLocation();", "Location getLocation();", "Location getLocation();", "com.google.type.LatLng getLatLng();", "void getMyCurrentLocation() { \r\n\t\t \r\n\t\t \r\n\t \t // map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat, lon), 16));\r\n\t\t \r\n\t LocationManager locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n\t try{\r\n\t \t\tgps_enabled=locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\t try{\r\n\t \tnetwork_enabled=locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\r\n\t if(gps_enabled){\r\n\t location=locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n\r\n\t } \r\n\r\n\t \r\n\t if(network_enabled && location==null) {\r\n\t location=locManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n\r\n\t }\r\n\r\n\t\t if (location != null) { \r\n\t\t \t//accLoc=location.getAccuracy();\r\n\t\t lat = location.getLatitude();\r\n\t\t\t lon= location.getLongitude();\r\n\t\t } \r\n\t \r\n\t try\r\n\t {\r\n\t \t //Getting address based on coordinates.\r\n\t Geocoder geocoder; \r\n\t List<Address> addresses;\r\n\t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t \r\n\t Address = addresses.get(0).getAddressLine(0);\r\n\t City = addresses.get(0).getAddressLine(1);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\r\n\t if (Address != null && !Address.isEmpty()) {\r\n\t\t \t try\r\n\t\t \t {\r\n\t\t \t \t //Getting address based on coordinates.\r\n\t\t \t Geocoder geocoder; \r\n\t\t \t List<Address> addresses;\r\n\t\t \t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t\t \t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t\t \t\r\n\t\t \t Address = addresses.get(0).getAddressLine(0);\r\n\t\t \t City = addresses.get(0).getAddressLine(1);\r\n\t\t \t }\r\n\t\t \t catch (Exception e)\r\n\t\t \t {\r\n\t\t \t e.printStackTrace();\r\n\t\t \t }\r\n\t\t \t //mp.position(new LatLng(location.getLatitude(), location.getLongitude()));\r\n\t\t \t //mp.title(\"You are here\");\t\t \t \r\n\t\t \t //map.addMarker(mp).showInfoWindow();\t\r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t else{ \r\n\t /* AlertDialog.Builder builder1 = new AlertDialog.Builder(ArticleLatestMoreDetailActivity.this);\r\n\t builder1.setTitle(\"Service Unavailable\");\r\n\t \t\t builder1.setMessage(\"Unable to get your location, check if your GPS and Network are turned on.\");\r\n\t \t\t builder1.setCancelable(true);\r\n\t builder1.setNegativeButton(\"OK\",new DialogInterface.OnClickListener() {\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t dialog.cancel();\r\n\t }\r\n\t });\r\n\t AlertDialog alert11 = builder1.create();\r\n\t alert11.show();\r\n\t \r\n\t lat=1.3667;\r\n\t lon=103.8; */ \r\n\t // mp.position(new LatLng(1.3667, 103.8));\r\n\t\t // mp.draggable(true);\r\n\t\t \t // map.addMarker(mp).showInfoWindow();\r\n\t\t \t \r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t Bundle extras = this.getIntent().getExtras();\r\n\t\t double dbLat = extras.getDouble(\"dbLat\");\r\n\t\t double dbLon = extras.getDouble(\"dbLon\");\r\n\t\t artLoc.position(new LatLng(dbLat, dbLon));\r\n\t\t artLoc.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\t\t artLoc.title(\"Place of occurrence\");\r\n\t\t map.addMarker(artLoc).showInfoWindow();\r\n\t\t map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(dbLat, dbLon), 18));\r\n\t \r\n\t \r\n\t \r\n\t }", "public LatLng getLocation() {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n String locationProvider = LocationManager.NETWORK_PROVIDER;\n Location location = locationManager.getLastKnownLocation(locationProvider);\n\n Double lat,lon;\n try {\n lat = location.getLatitude();\n lon = location.getLongitude();\n return new LatLng(lat, lon);\n }\n catch (NullPointerException e){\n e.printStackTrace();\n return null;\n }\n\n\n\n }", "private void getMyLocation() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n\n if (AnimationStatus) {\n myUpdatedLocation = location;\n } else {\n myLocation = location;\n myUpdatedLocation = location;\n LatLng latlng = new LatLng(location.getLatitude(), location.getLongitude());\n carMarker = mMap.addMarker(new MarkerOptions().position(latlng).\n flat(true).icon(BitmapDescriptorFactory.fromBitmap(BitMapMarker)));\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(\n latlng, 17f);\n mMap.animateCamera(cameraUpdate);\n }\n Bearing = location.getBearing();\n LatLng updatedLatLng = new LatLng(myUpdatedLocation.getLatitude(),\n myUpdatedLocation.getLongitude());\n changePositionSmoothly(carMarker, updatedLatLng, Bearing);\n\n }\n });\n }", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = (Location) task.getResult();\n if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n\n\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n } catch (NullPointerException e) {\n Log.e(\"....\", \"Null pointer exception\");\n }\n }", "public LatLng getLocation() {\n return location;\n }", "@SuppressLint(\"MissingPermission\")\n @AfterPermissionGranted(PERMISSION_LOCATION_ID)\n private void getCurrentLocation() {\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if(location != null) {\n currentLat = location.getLatitude();\n currentLong = location.getLongitude();\n\n String placeType = \"museum\";\n\n int radius = ProfileFragment.getRadius();\n\n String url = \"https://maps.googleapis.com/maps/api/place/nearbysearch/json\" +\n \"?location=\" + currentLat + \",\" + currentLong +\n \"&radius=\" + radius +\n \"&type=\" + placeType +\n \"&key=\" + getResources().getString(R.string.maps_api_key);\n\n new NearbyMuseumTask().execute(url);\n\n mapFragment.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n setMapUISettings();\n\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(currentLat,currentLong), 12\n ));\n }\n });\n }\n }\n });\n }", "private void getDeviceLocation() {\n\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (!hasPermissions(MapActivity.this, PERMISSIONS)) {\n ActivityCompat.requestPermissions(this, PERMISSIONS, LOCATION_PERMISSION_REQUEST_CODE);\n } else {\n mLocationPermissionGranted = true;\n\n }\n\n if (mLocationPermissionGranted) {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n mLastKnownLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n source = new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n googleMap.clear();\n }\n\n // Set the map's camera position to the current location of the device.\n if (mCameraPosition != null) {\n\n googleMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n\n String address = getCompleteAddressString(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude());\n\n googleMap.clear();\n\n MarkerOptions markerOptions = new MarkerOptions()\n .position(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()))\n .title(address)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n\n mCurrLocationMarker = googleMap.addMarker(markerOptions);\n mCurrLocationMarker.showInfoWindow();\n tvAddressDisplay.setText(address);\n\n } else {\n Log.d(MapActivity.class.getSimpleName(), \"Current location is null. Using defaults.\");\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n googleMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n\n\n }", "private void getLocation() {\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\t\t\tif (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tFusedLocationProviderClient locationProviderClient = LocationServices.getFusedLocationProviderClient(getApplicationContext());\n\t\tlocationProviderClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(Location location) {\n\t\t\t\t\n\t\t\t\tfinal Location finalLocation = location;\n\t\t\t\t\n\t\t\t\tbtnGoToYou.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tLatLng userLocation = new LatLng(finalLocation.getLatitude(), finalLocation.getLongitude());\n\t\t\t\t\t\tmMap.addMarker(new MarkerOptions().position(userLocation).title(\"You are Here!\"));\n\t\t\t\t\t\tmMap.moveCamera(CameraUpdateFactory.newLatLng(userLocation));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public void getLocation() {\n\n\t\t// If Google Play Services is available\n\t\tif (servicesConnected()) {\n\t\t\t// Get the current location\n\t\t\tLocation currentLocation = mLocationClient.getLastLocation();\n\n\t\t\t// Display the current location in the UI\n\t\t\tmLatLng.setText(LocationUtils.getLatLng(this, currentLocation));\n\n\t\t\tlatCurrent=(float) currentLocation.getLatitude();\n\t\t\tlntCurrent=(float) currentLocation.getLongitude();\n\n\t\t}\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n GetLastKnownLocation();\n }", "@Override\n public geo_location getLocation() {\n return location;\n }", "void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult()!=null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n getProfile(mLastKnownLocation);\n } else {\n Log.d(\"Map\", \"Current location is null. Using defaults.\");\n Log.e(\"Map\", \"Exception: %s\", task.getException());\n googleMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n googleMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "com.google.ads.googleads.v6.resources.LocationView getLocationView();", "public LatLng getLocation() {\n\t\treturn location;\n\t}", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the customer_map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n getNearestDriver();\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void GetLocation(final String str) {\n AlertUtils.showCustomProgressDialog(LocationSearchActivityNew.this);\n String selectedPlaceKey = DataToPref.getSharedPreferanceData(LocationSearchActivityNew.this, LaoxiConstant.SELECTED_PLACE_ID, LaoxiConstant.SELECTED_PLACE_ID_KEY);\n\n CommonImplementation.getInstance().doGetLocation(null, \"https://maps.googleapis.com/maps/api/place/details/json?placeid=\" + selectedPlaceKey + \"&sensor=false&key=\" + getString(R.string.browser_key) + \"&language=\" + Locale.getDefault().getCountry(), new OnTaskComplete() {\n @Override\n public void onSuccess(Response data, boolean success) {\n AlertUtils.dismissDialog();\n if (data.code() == 200) {\n\n String LAT = \"\";\n String Long = \"\";\n String Location = \"\";\n String City = \"\";\n String State = \"\";\n String postal_code = \"\";\n String country = \"\";\n\n try {\n\n String response = data.body().string();\n JSONObject object = new JSONObject(response);\n\n String status = object.getString(\"status\").toString();\n\n if (object.has(\"result\")) {\n //JSONArray results = object.getJSONArray(\"results\");\n int i = 0;\n //Log.i(\"i\", i + \",\" + results.length());\n JSONObject r = object.getJSONObject(\"result\");\n JSONArray addressComponentsArray = r.getJSONArray(\"address_components\");\n do {\n\n JSONObject addressComponents = addressComponentsArray.getJSONObject(i);\n JSONArray typesArray = addressComponents.getJSONArray(\"types\");\n String types = typesArray.getString(0);\n\n if (types.equalsIgnoreCase(\"sublocality\")) {\n Location = addressComponents.getString(\"short_name\");\n Log.i(\"Locality\", Location);\n\n } else if (types.equalsIgnoreCase(\"locality\")) {\n City = addressComponents.getString(\"long_name\");\n Log.i(\"City\", City);\n\n } else if (types.equalsIgnoreCase(\"administrative_area_level_1\")) {\n State = addressComponents.getString(\"long_name\");\n Log.i(\"State\", State);\n\n } else if (types.equalsIgnoreCase(\"postal_code\")) {\n postal_code = addressComponents.getString(\"long_name\");\n Log.i(\"postal_code\", postal_code);\n } else if (types.equalsIgnoreCase(\"country\")) {\n country = addressComponents.getString(\"long_name\");\n Log.i(\"country\", country);\n }\n\n i++;\n } while (i < addressComponentsArray.length());\n\n\n JSONObject geometry = r.getJSONObject(\"geometry\");\n JSONObject location = geometry.getJSONObject(\"location\");\n\n LAT = location.getString(\"lat\");\n Long = location.getString(\"lng\");\n\n\n /* Log.i(\"JSON Geo Locatoin =>\", currentLocation);\n return currentLocation;*/\n\n String Data = LAT + \",,,\" + Long + \",,,\" + Location + \",,,\" + City + \",,,\" + State + \",,,\" +\n postal_code + \",,,\" + country;\n\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", Data + \",,,\" + str);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (data.code() == 404) {\n\n }\n }\n\n @Override\n public void onFailure() {\n AlertUtils.dismissDialog();\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n gpsTracker = new GPSTracker(this);\n\n // TODO Cek Permission >= Marshmellow\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&\n checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION\n }, 110);\n return;\n }\n }\n\n if (gpsTracker.canGetLocation()) {\n latawal = gpsTracker.getLatitude();\n lonawal = gpsTracker.getLongitude();\n namelocationawal = myLocation(latawal, lonawal);\n }\n\n // Add a marker in Sydney and move the camera\n LatLng myLocation = new LatLng(latawal, lonawal);\n locawal.setText(namelocationawal);\n mMap.addMarker(new MarkerOptions().position(myLocation).title(namelocationawal));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 14));\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n mMap.setPadding(30, 80, 30, 80);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n // Recherche de la derniere localisation\n Criteria criteria = new Criteria();\n String provider = locationManager.getBestProvider(criteria, false);\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (location != null) {\n float lat = (float) (location.getLatitude());\n float lng = (float) (location.getLongitude());\n\n currentPosition = new Point(location.getLongitude(), location.getLatitude());\n\n // Add a marker at our position and move the camera\n LatLng lastCoord = new LatLng(lat, lng);\n mMap.addMarker(new MarkerOptions().position(lastCoord).title(\"Last time we were here\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(lastCoord));\n\n lblPosition.setText(\"Last Position: \"+location.getLatitude()+\", \"+location.getLongitude());\n\n Log.i(this.getClass().getName(), String.valueOf(lat));\n Log.i(this.getClass().getName(), String.valueOf(lng));\n } else {\n Log.w(this.getClass().getName(), \"Provider not available\");\n }\n\n // dessine points intérets et sector de la database\n loadPOI();\n loadSector();\n\n // attache le callback\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10, 1, this);\n }", "public Location getCurrentLocation();", "private void getDeviceLocation() {\n try {\n if (mLocationPermissionGranted) {\n Task locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG,\"Current location is null. Using defaults.\");\n Log.e(TAG, task.getException().toString());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch(SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.clear();\n\n\n loc = null;\n try {\n loc = getLocation();\n } catch (SecurityException ex) {\n Toast.makeText(MapsActivity.this, \"Current location not accesed\", Toast.LENGTH_SHORT).show();\n }\n if (loc != null) {\n LatLng latLng = new LatLng(loc.getLatitude(), loc.getLongitude());\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Current location\")).setDraggable(true);\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latLng, 27);\n mMap.moveCamera(update);\n\n } else\n Toast.makeText(MapsActivity.this, \"Location Not Foound\", Toast.LENGTH_SHORT).show();\n\n\n getloc.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Location loc = null;\n try {\n loc = getLocation();\n } catch (SecurityException ex) {\n Toast.makeText(MapsActivity.this, \"Current location not accesed\", Toast.LENGTH_SHORT).show();\n }\n\n\n }\n });\n\n // Add a marker in Sydney and move the camera\n // LatLng sydney = new LatLng(-34, 151);\n // mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n client = new GoogleApiClient.Builder(this)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this).build();\n client.connect();\n\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (mLocationPermissionGranted){\n Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()){\n Location currentLocation = (Location) task.getResult();\n if (currentLocation != null){\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude()), DEFAULT_ZOOM));\n\n } else {\n /*\n AlertDialog alertDialog = new AlertDialog.Builder(MapActivity.this).create();s\n alertDialog.setMessage(\"Activa ubicación\");\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n */\n Toast.makeText(MapActivity.this, \"Tu ubicación es nula\", Toast.LENGTH_SHORT).show();\n }\n } else Toast.makeText(MapActivity.this, \"Error al obtener la ubicación\", Toast.LENGTH_LONG).show();\n }\n });\n }else Toast.makeText(MapActivity.this, \"Da permiso para acceder a la ubicación\", Toast.LENGTH_LONG).show();\n } catch (SecurityException e){\n Toast.makeText(MapActivity.this, \"Seleciona un punto en el mapa primero\", Toast.LENGTH_LONG).show();\n }\n }", "private void getDeviceLocation() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n if (mLocationPermissionGranted) {\n mLastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(mGoogleApiClient);\n if (world.geoHome == null && mLastKnownLocation != null) {\n world.geoHome = new Vector2f(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n }\n }\n\n // Set the map's camera position to the current location of the device.\n /*if (mCameraPosition != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), mMap.getCameraPosition().zoom));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }*/\n }", "private void getDeviceLocation(){\n if(mMap == null){\n return;\n }\n\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(activity, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful() && task.getResult() !=null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(\"error\", \"Current location is null. Using defaults.\");\n Log.e(\"error\", \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mFusedLocationProviderClient.requestLocationUpdates(mLocationRequest,mLocationCallback,null);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n List<Location> locationList = locationResult.getLocations();\n if (locationList.size() > 0) {\n //The last location in the list is the newest\n Location location = locationList.get(locationList.size() - 1);\n Log.i(\"MapsActivity\", \"Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n mLastKnownLocation = location;\n }\n }\n };\n }", "private void Location() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_ACCESS_FINE_LOCATION);\n }\n\n //Google Play Location stored in loc variable\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n\n\n @Override\n public void onSuccess(Location location) {\n\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n loc = location;\n getAddressFromLocation(loc.getLatitude(), loc.getLongitude());\n\n }\n }\n });\n }", "private void getCurrentLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n if (lastKnownLocation != null) {\n map.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(lastKnownLocation.getLatitude(),\n lastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n updateCameraBearing(map, location.getBearing());\n }\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "public int getLocation()\r\n {\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.addMarkers();\n\n\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n if (checkPermissions()) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n current_location = location;\n markCurrentLocation(location);\n\n }\n });\n }\n\n\n }", "public geo_location getLocation() {\n return _pos;\n }", "private void fetchLastLocation() {\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n Toast.makeText(MapActivity.this,\"fetchLastLocation method 2\",Toast.LENGTH_SHORT).show();\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n currentLoc = location;\n preLati = currentLoc.getLatitude();\n preLogi = currentLoc.getLongitude();\n\n\n SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager().\n findFragmentById(R.id.map);\n\n supportMapFragment.getMapAsync(MapActivity.this);//should this activity class implement\n // OnMapReadyCsllback interface and should\n // implement all method\n // i think getMapAsync call the onMapReady\n\n }\n });\n task.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Failed with\"+e.toString(),Toast.LENGTH_SHORT).show();\n Log.e(TAG, \"onFailure: \"+e.toString() );\n }\n });\n }", "public String getLocation(){\r\n return location;\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setTrafficEnabled(true);\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n\n LocationManager manager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n Criteria mCriteria = new Criteria();\n String bestProvider = String.valueOf(manager.getBestProvider(mCriteria, true));\n\n Location mLocation = manager.getLastKnownLocation(bestProvider);\n\n checkLocationPermission();\n mMap.setMyLocationEnabled(true);\n\n final double currentLatitude = mLocation.getLatitude();\n final double currentLongitude = mLocation.getLongitude();\n LatLng loc1 = new LatLng(currentLatitude, currentLongitude);\n mMap.addMarker(new MarkerOptions().position(loc1).title(\"Your Current Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(currentLatitude, currentLongitude), 15));\n mMap.animateCamera(CameraUpdateFactory.zoomTo(15), 2000, null);\n\n Geocoder geocoder = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = geocoder.getFromLocation(currentLatitude, currentLongitude, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n cityName = addresses.get(0).getAddressLine(0);\n\n GraphRequest request = GraphRequest.newGraphPathRequest(\n accessToken,\n \"/search\",\n new GraphRequest.Callback() {\n @Override\n public void onCompleted(GraphResponse response) {\n JSONObject eventsInCityObject = response.getJSONObject();\n RealmList<Event> cityEvents = new RealmList<Event>();\n\n\n try {\n JSONArray eventsInCityArray = eventsInCityObject.getJSONArray(\"data\");\n for (int i = 0; i < eventsInCityArray.length(); i++) {\n JSONObject eventJSON = eventsInCityArray.getJSONObject(i);\n JSONObject placeJSON = (JSONObject) eventJSON.get(\"place\");\n\n if (placeJSON.has(getString(R.string.getEventLocation))){\n JSONObject locJSON = (JSONObject) placeJSON.get(getString(R.string.getEventLocation));\n\n String city = locJSON.getString(getString(R.string.getEventCity));\n String country = locJSON.getString(getString(R.string.getEventCountry));\n Double lat = locJSON.getDouble(getString(R.string.getEventLat));\n Double lng = locJSON.getDouble(getString(R.string.getEventLng));\n\n EventLocation loc = getRealm().createObject(EventLocation.class, UUID.randomUUID().toString());\n loc.setCity(city);\n loc.setCountry(country);\n loc.setLat(lat);\n loc.setLng(lng);\n\n String placeName = placeJSON.getString(getString(R.string.getPlaceName));\n String placeID = placeJSON.getString(getString(R.string.getPlaceID));\n Place place = getRealm().createObject(Place.class, UUID.randomUUID().toString());\n place.setName(placeName);\n place.setId(placeID);\n place.setLoc(loc);\n\n Event event = getRealm().createObject(Event.class, UUID.randomUUID().toString());\n event.setDesc(eventJSON.getString(getString(R.string.getDescription)));\n event.setEndTime(eventJSON.getString(getString(R.string.getEndTime)));\n event.setName(eventJSON.getString(getString(R.string.getEventName)));\n event.setPlace(place);\n event.setStartTime(eventJSON.getString(getString(R.string.getStartTime)));\n event.setEventID(eventJSON.getString(getString(R.string.getEventID)));\n\n cityEvents.add(event);\n\n mMap.addMarker(new MarkerOptions().position(new LatLng(event.getPlace().getLoc().getLat(),\n event.getPlace().getLoc().getLng())).title(event.getName()));\n } else {\n String placeName = placeJSON.getString(getString(R.string.getPlaceName));\n Place place = getRealm().createObject(Place.class, UUID.randomUUID().toString());\n place.setName(placeName);\n\n\n Event event = getRealm().createObject(Event.class, UUID.randomUUID().toString());\n event.setDesc(eventJSON.getString(getString(R.string.getDescription)));\n event.setEndTime(eventJSON.getString(getString(R.string.getEndTime)));\n event.setName(eventJSON.getString(getString(R.string.getEventName)));\n event.setPlace(place);\n event.setStartTime(eventJSON.getString(getString(R.string.getStartTime)));\n event.setEventID(eventJSON.getString(getString(R.string.getEventID)));\n }\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n }\n });\n\n Bundle parameters = new Bundle();\n parameters.putString(getString(R.string.query), cityName);\n parameters.putString(getString(R.string.type), getString(R.string.event));\n request.setParameters(parameters);\n request.executeAsync();\n\n\n }", "public interface GoogleMapHelperListener {\n public void onGettingMyLocation();\n}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n if (displayGpsStatus()) {\n\n Log.v(TAG, \"onClick\");\n\n\n locationListener = new MyLocationListener();\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ) {\n locationMangaer.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n\n }\n else{\n Toast.makeText(this,\"Kindly Provide Location Acces\",Toast.LENGTH_SHORT).show();\n }\n\n Log.v(TAG,latitudeUsers +\" , \"+longitudeUsers);\n\n } else {\n Toast.makeText(this,\"GPS not available!!\",Toast.LENGTH_SHORT).show();\n }\n\n }", "String getLocation();", "String getLocation();", "String getLocation();", "private void getDeviceLocation( ) {\n\n if (searchLocationMarker != null) {\n searchLocationMarker.remove();\n }\n\n mFusedLocationProviderClient =\n LocationServices.getFusedLocationProviderClient(this);\n //Task locationResult = mFusedLocationProviderClient.getLastLocation();\n try {\n if (mLocationPermissionGranted) {\n Task locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n System.out.println(\"Current location retrieved successfully!\");\n mLastKnownLocation = (Location) task.getResult(); // location?\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()))\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n getNearbyStations(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n searchLocationMarker = mMap.addMarker(new MarkerOptions()\n .position(mDefaultLocation)\n .title(\"Current Location\")\n .icon(BitmapDescriptorFactory.fromBitmap(\n getBitmapFromVectorDrawable(\n MainActivity.this, R.drawable.ic_current_location_marker))));\n }\n }\n });\n }\n } catch(SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n\n }", "public GoogleMap getMap(){\n return gMap;\n }", "private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n /*To find map coordinates for database\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n Log.i(\"MAP\", latLng.latitude + \", \" + latLng.longitude);\n }\n });\n */\n\n\n styleMap();\n populateMap();\n setUpDirectionIntegration();\n\n Intent intent = getIntent();\n String location = intent.getStringExtra(\"Location\");\n if (location != null) {\n showSelectedLocation(location);\n } else {\n //showCurrentLocation();\n showCurrentLocation();\n }\n\n\n }", "public String getLocation(){\n return location;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n\n if (ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION)== PackageManager.PERMISSION_GRANTED) {\n buildGoogleApiClient();\n Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()) {\n Location currentLocation = (Location) task.getResult();\n //CameraUpdateFactory.newLatLngZoom(\n LatLng check = new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(check,DEFAULT_ZOOM));\n\n } else {\n Toast.makeText(MapsActivity2.this, \"unable to get current location\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n Toast.makeText(MapsActivity2.this,\"Getting Restaurants\",Toast.LENGTH_LONG).show();\n mMap.setMyLocationEnabled(true);\n }\n else{\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n }\n }", "public void getLocation() {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n } else {\n mFusedLocationClient.getLastLocation().addOnSuccessListener(\n location -> {\n if (location != null) {\n // Start the reverse geocode AsyncTask\n new FetchAddressTask(DetailsTextActivity.this,\n DetailsTextActivity.this).execute(location);\n txtLocation.setText(getString(R.string.loading));\n Log.d(\"myTag\", \"have location\");\n } else {\n txtLocation.setText(R.string.no_location);\n }\n }\n );\n }\n }", "private void getDeviceLocation() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n if (mLocationPermissionGranted) {\n mLastKnownLocation = LocationServices.FusedLocationApi\n .getLastLocation(mGoogleApiClient);\n }\n\n // Set the map's camera position to the current location of the device.\n if (mCameraPosition != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(mCameraPosition));\n } else if (mLastKnownLocation != null) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }", "@Override\n public void onMapReady(final GoogleMap googleMap) {\n\n mMap = googleMap;\n setUpMapIfNeeded();\n\n mMap.setLocationSource(mLocationSource);\n mMap.setOnMapLongClickListener(mLocationSource);\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n// enableLocationSettings(getActivity());\n buildGoogleApiClient();\n return false;\n }\n });\n // Add a marker in tehran and move the camera\n LatLng tehran = new LatLng(35.6892, 51.3890);\n marker=mMap.addMarker(new MarkerOptions().position(tehran).title(\"Marker in Tehran\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(tehran));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(tehran,14));\n\n View viewById = getView();\n\n if(viewById!=null) {\n TextView viewlatlongLocation = (TextView)viewById.findViewById(R.id.latlongLocation);;\n viewlatlongLocation.setText(\"35.6892\" + \" \" + \"51.3890\");\n }\n //show error dialog if GoolglePlayServices not available\n// if (!isGooglePlayServicesAvailable()) {\n// finish();\n// }\n\n if (getContext()==null || ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n buildGoogleApiClient();\n\n mMap.setMyLocationEnabled(true);\n\n// LocationManager locationManager = (LocationManager) this.getActivity().getSystemService(Context.LOCATION_SERVICE);\n// Criteria criteria = new Criteria();\n// String bestProvider = locationManager.getBestProvider(criteria, true);\n// Location location = locationManager.getLastKnownLocation(bestProvider);\n// if (location != null) {\n// onLocationChanged(location);\n// }\n// CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(),location.getLongitude()), 15);\n// mMap.animateCamera(cameraUpdate);\n// locationManager.requestLocationUpdates(bestProvider, 0, 500, this);\n // Check if we were successful in obtaining the map.\n// if (mMap != null) {\n//\n//\n// mMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n//\n// @Override\n// public void onMyLocationChange(Location arg0) {\n// // TODO Auto-generated method stub\n// marker.remove();\n// marker = mMap.addMarker(new MarkerOptions().position(new LatLng(arg0.getLatitude(), arg0.getLongitude())).title(\"It's Me!\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA)));\n// mMap.animateCamera(CameraUpdateFactory.zoomTo(14));\n// TextView viewById = (TextView)getView().findViewById(R.id.latlongLocation);\n// viewById.setText(arg0.getLatitude()+\" \"+ arg0.getLongitude());\n//\n// }\n// });\n//\n// }\n //DO WHATEVER YOU WANT WITH GOOGLEMAP\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n// mMap.setIndoorEnabled(true);\n// mMap.setBuildingsEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }", "private void fetchLastLocation() {\n try {\n FusedLocationProviderClient fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n //get last known location of device\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n //store current location\n currentLocation = location;\n Toast.makeText(MapsActivity.this, currentLocation.getLatitude() + \" \" + currentLocation.getLongitude(), Toast.LENGTH_SHORT).show();\n // Obtain the SupportMapFragment\n supportMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.fragment_content);\n // Attach OnMapReadyCallback listener using getMapAsync(OnMapReadyCallback)\n // This listener notified when the map is ready by invoking onMapReady along with a GoogleMap object.\n supportMapFragment.getMapAsync(MapsActivity.this);\n } else {\n Toast.makeText(MapsActivity.this, \"No Location recorded\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "Location getLocationById(long id);", "private void getGPSLocation()\n {\n gps_ = new GPSLocator( LoginActivity.this );\n\n // check if GPS enabled\n if ( gps_.canGetLocation() )\n {\n latitude_ = gps_.getLatitude();\n longitude_ = gps_.getLongitude();\n\n // Raises a toast to show the location\n Toast.makeText(\n getApplicationContext(),\n \"Your Location is - \\nLat: \" + latitude_ + \"\\nLong: \"\n + longitude_, Toast.LENGTH_SHORT ).show();\n }\n else\n {\n // There was an error getting the gps information\n gps_.showSettingsAlert();\n }\n }", "public String getLocation(){\r\n return Location;\r\n }", "public GridLocation getLocation();", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n //Agafar la localitzacio actual per mostrar-ho al mapa\n LocationManager locationManager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n LatLng actual = new LatLng((location.getLatitude()),location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(actual,13));\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n currLatLng = new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n destinationPoint.set(0,currLatLng);\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n currLatLng = mDefaultLocation;\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void getLocation() {\n NimbeesLocationManager.NimbeesLocationListener mNimbeesLocationListener = new NimbeesLocationManager.NimbeesLocationListener() {\n @Override\n public void onGetCurrentLocation(Location location) {\n mLocation = location;\n setUpMap();\n }\n\n @Override\n public void onError(NimbeesException e) {\n }\n };\n NimbeesClient.getLocationManager().obtainCurrentLocation(mNimbeesLocationListener);\n }", "private void inputLocation() {\n// boolean googleMapExist= (ConnectionResult.SUCCESS==GooglePlayServicesUtil.isGooglePlayServicesAvailable(mContext));\n//\n// if(googleMapExist) {\n// org.wowtalk.Log.w(\"google map exist\");\n// Intent mapIntent = new Intent(mContext, PickLocActivity.class);\n// mapIntent.putExtra(\"auto_loc\", true);\n// mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n// } else {\n //org.wowtalk.Log.w(\"google map not exist\");\n Intent mapIntent = new Intent(mContext, PickLocActivityWithAMap.class);\n mapIntent.putExtra(\"auto_loc\", true);\n mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n //}\n }", "private void getLocation() {\n\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = task.getResult();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n showCurrentPlace();\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public String getLocation(){\n return this.location;\n }", "public void getCoordinates(){\n\t\t\n\t\t // check if GPS enabled\n GPSTracker gpsTracker = new GPSTracker(this);\n \n if (gpsTracker.canGetLocation())\n {\n latitude = gpsTracker.latitude;\n\n longitude = gpsTracker.longitude;\n }\n else\n {\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gpsTracker.showSettingsAlert();\n }\n\t}", "public Point getLocation();", "public Location getLocation(){\n return location;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n lat = addresses.get(0).getLatitude();\n lng = addresses.get(0).getLongitude();\n } catch (Exception e) {\n lat = -34;\n lng = 151;\n }\n\n LatLng sydney = new LatLng(lat, lng);\n googleMap.addMarker(new MarkerOptions().position(sydney).title(\"WSU Paramatta\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n googleMap.setMyLocationEnabled(true);\n }", "private void getGpsLocation() {\n Log.d(LOG_TAG, \"In getGpsLocation\");\n mLocationMgr = (LocationManager) mContext.getSystemService(mContext.LOCATION_SERVICE);\n try {\n Location mLocation = mLocationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (null != mLocation) {\n mLatitude = mLocation.getLatitude();\n mLongitude = mLocation.getLongitude();\n }\n } catch (SecurityException se) {\n Log.d(LOG_TAG, \"Security Exception\", se);\n }\n }", "public int getLat();", "private void getLastKnownLocation() {\n\n loc=LocationServices.FusedLocationApi.getLastLocation(client);\n\n if (loc != null) {\n Log.i(\"LOCATION: \",loc.toString());\n\n myCurrentLocationMarker= gMap.addMarker(new MarkerOptions()\n .position(new LatLng(loc.getLatitude(),loc.getLongitude()))\n .title(\"My Current Location\"));\n\n currentLocCircle= gMap.addCircle(new CircleOptions()\n .center(new LatLng(loc.getLatitude(),loc.getLongitude()))\n .radius(1000)\n .strokeColor(Color.GREEN)\n .fillColor(Color.LTGRAY));\n\n\n }\n else {\n\n AlertDialog.Builder builder= new AlertDialog.Builder(this);\n builder.setTitle(\"Location Service not Active\");\n builder.setMessage(\"Please enable location service (GPS)\");\n builder.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n }\n });\n Dialog dialog=builder.create();\n dialog.setCancelable(false);\n dialog.show();\n }\n }", "private void searchForLocation() {\n foundLocation = false;\n FusedLocationProviderClient mFusedLocationProviderClient = LocationServices\n .getFusedLocationProviderClient(getActivity());\n //Ignore the red line - we check for permissions before this function is called\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n Task<Location> lastLocation = mFusedLocationProviderClient.getLastLocation();\n lastLocation.addOnCompleteListener(new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n Location location = task.getResult();\n if (location != null) {\n LatLng currentLatLng = new LatLng(location.getLatitude(),\n location.getLongitude());\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(currentLatLng,\n DEFAULT_ZOOM);\n googleMap.moveCamera(update);\n foundLocation = true;\n }\n }\n }\n });\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = location;\n Log.d(TAG, \"Latitude: \" + mLastKnownLocation.getLatitude());\n Log.d(TAG, \"Longitude: \" + mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n }\n\n getCurrentPlaceLikelihoods();\n }\n });\n }\n } catch (Exception e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public String getLocation()\n {\n return location;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n try{\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n Address address = geo.getFromLocationName(location.getAddress(),1).get(0);\n\n LatLng position= new LatLng(address.getLatitude(),address.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position)\n .title(location.getTitle()));\n googleMap.setMinZoomPreference(12);\n googleMap.setMaxZoomPreference(15);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch(IndexOutOfBoundsException e){\n e.printStackTrace();\n }\n }", "public int getLocation()\r\n {\r\n return location;\r\n }", "@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\t\n\t\t\t\tmLatitude = location.getLatitude();\n\t\t\t\tmLongitude = location.getLongitude();\n\t\t\t\t\n\t\t\t\t LatLng point = new LatLng(mLatitude, mLongitude);\n\t\t\t\t\n\t\t\t\t try {\n\t\t\t\t \taddresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n\t\t\t\t } catch (IOException e) {\n\t\t\t\t \t// TODO Auto-generated catch block\n\t\t\t\t \te.printStackTrace();\n\t\t\t\t }\n\t\t\t\t MarkerOptions maker= new MarkerOptions().position(point);\n\n\t\t\t\t address = addresses.get(0).getAddressLine(0);\n\t\t\t\t if(address==null)\n\t\t\t\t {\n\t\t\t\t\t maker.title(\"My Location\");\n\t\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\tmaker.title(\"\"+address);\n\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t String type = mPlaceType;\n\t\t\t StringBuilder sb = new StringBuilder(\"https://maps.googleapis.com/maps/api/place/nearbysearch/json?\");\n\t\t\t sb.append(\"location=\"+mLatitude+\",\"+mLongitude);\n\t\t\t sb.append(\"&radius=1500\");\n\t\t\t sb.append(\"&types=\"+type);\n\t\t\t sb.append(\"&sensor=true\");\n\t\t\t sb.append(\"&key=AIzaSyAwZSGS1kZG7_UuqxqHH3MdO1hbwB2cjag\"); \n\t\t\t PlacesTask placesTask = new PlacesTask(); \n\t\t\t placesTask.execute(sb.toString());\n\t\t\t \n\t\t\t \n\t\t\t if(zoomm)\n\t\t\t {\n\t\t\t \t googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(new CameraPosition(point, 15, 30, 0)));\n\t\t\t \t zoomm=false;\n\t\t\t }\n\t\t\t\t\n\t\t\t}", "public native void getGeoLocation() /*-{\n\t\tif(null == $wnd.navigator.geolocation) {\n\t\treturn;\n\t\t}\n\n\t\t$wnd.navigator.geolocation.getCurrentPosition(\n\t\t@com.binomed.cineshowtime.client.service.geolocation.Geolocation::geoLocationCallback(Lcom/binomed/cineshowtime/client/service/geolocation/Position;),\n\t\t@com.binomed.cineshowtime.client.service.geolocation.Geolocation::geoLocationCallbackError(Lcom/google/gwt/core/client/JavaScriptObject;),\n\t\t{enableHighAccuracy:true, maximumAge:60000});\n\t}-*/;", "private void returnDriverLocationstoMaps() {\n }", "public Coordinate getLocation();", "public void getDeviceLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n\n if (lastKnownLocation != null) {\n if (checkInLACounty(lastKnownLocation) != -1) {\n // geofenceHelper(getContext());\n lastKnownLocationInLA = true;\n sharedViewModel.setCountyData(\"Los Angeles County\");\n backLA.setVisibility(View.INVISIBLE);\n } else if (lastKnownLocationInLA) {\n lastKnownLocationInLA = false;\n sharedViewModel.setCountyData(\"Not in Los Angeles County\");\n\n backLA.setVisibility(View.VISIBLE);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n alertDialogBuilder.setTitle(\"Friendly Warning\");\n alertDialogBuilder.setMessage(\"Out of Los Angeles County \\n(Current Service Area)\");\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show(); // Show Dialog\n }\n } else {\n sharedViewModel.setCountyData(\"Los Angeles County\");\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n map.moveCamera(CameraUpdateFactory\n .newLatLngZoom(defaultLocation, DEFAULT_ZOOM));\n map.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "SiteLocation getLocatedAt();", "private LatLng getCurrentLocation() {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return new LatLng(0, 0);\n }\n LocationManager locationManager = (LocationManager) getSystemService(this.LOCATION_SERVICE);\n Location current_location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (current_location == null) {\n return new LatLng(0, 0);\n }\n return new LatLng(current_location.getLatitude(), current_location.getLongitude());\n }", "public String getLocation() { return location; }", "public String getLocation() { return location; }", "@SuppressLint(\"MissingPermission\")\n private void getLastLocation() {\n if (checkPermissions()) {\n\n // check if location is enabled\n if (isLocationEnabled()) {\n\n // getting last\n // location from\n // FusedLocationClient\n // object\n mFusedLocationClient.getLastLocation().addOnCompleteListener(new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull com.google.android.gms.tasks.Task<Location> task) {\n Location location = task.getResult();\n if (location == null) {\n requestNewLocationData();\n } else {\n// latitudeTextView.setText(location.getLatitude() + \"\");\n// longitTextView.setText(location.getLongitude() + \"\");\n\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n address=\"\"+latitude+\",\"+longitude;\n\n// googleMap.addMarker(new MarkerOptions()\n// .position(new LatLng(latitude, longitude))\n// .title(\"Marker\"));\n Log.i(TAG, \"onCreate: latitude => \"+ latitude);\n Log.i(TAG, \"onCreate: longitude => \"+ longitude);\n }\n }\n });\n } else {\n Toast.makeText(this, \"Please turn on\" + \" your location...\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n } else {\n // if permissions aren't available,\n // request for permissions\n requestPermissions();\n }\n }", "protected void getLocation() {\n if (isLocationEnabled(Navigate.this)) {\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = String.valueOf(locationManager.getBestProvider(criteria, true)).toString();\n\n //You can still do this if you like, you might get lucky:\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(bestProvider);\n if (location != null) {\n Log.e(\"TAG\", \"GPS is on\");\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, this);\n }\n } else {\n// final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n// builder.setMessage(\"Your GPS seems to be disabled, do you want to enable it?\")\n// .setCancelable(false)\n// .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n// }\n// })\n// .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// dialog.cancel();\n// }\n// });\n// final AlertDialog alert = builder.create();\n// alert.show();\n }\n }", "LocationTracker getTracker();", "public LocationObject getLocate() {\n LocationObject responseObject = new LocationObject();\n\n SdkObject sdkObject = checkPermission(API_LOCATION_PERMISSION);\n if (sdkObject != null) {\n responseObject.setMessage(sdkObject.getMessage());\n responseObject.setBusinessCode(sdkObject.getBusinessCode());\n return responseObject;\n }\n\n long lastSdkLocateTime = PreferencesUtils.getLong(context, CommonConstants.SP_LAST_GET_LOCATION_TIME, 0L);\n if (System.currentTimeMillis() - lastSdkLocateTime < 1000L) { //Ignore call within 60 second\n responseObject.setBusinessCode(QueryResult.GET_LOCATION_TOO_FAST.getCode());\n responseObject.setMessage(QueryResult.GET_LOCATION_TOO_FAST.getMsg());\n Log.w(TAG, QueryResult.GET_LOCATION_TOO_FAST.getMsg());\n return responseObject;\n }\n\n PreferencesUtils.putLong(context, CommonConstants.SP_LAST_GET_LOCATION_TIME, System.currentTimeMillis());\n\n responseObject = getLocationInfo();\n if (responseObject.getBusinessCode() == ResultCode.SUCCESS.getCode()) {\n responseObject.setLastLocateTime(System.currentTimeMillis());\n }\n return responseObject;\n }", "private void searchmap() {\n String location = \"475 Dien bien phu\";\n //lcSearch;\n\n if (location != null && !location.equals(\"\")) {\n List<Address> lstAddress = null;\n try {\n lstAddress = geocoder.getFromLocationName(location, 1);\n System.out.print(lstAddress);\n if (lstAddress != null) {\n double lat = lstAddress.get(0).getLatitude();\n double lng = lstAddress.get(0).getLongitude();\n LatLng latLng = new LatLng(lat, lng);\n goToMaps(latLng);\n } else {\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void getLocation(){\n }", "public static GoogleMap getMap() {\n\t\treturn mMap;\n\t}", "public Location getLocation() \n\t{\n\t\treturn location;\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n updateLocationUI();\n getDeviceLocation();\n // Add a marker in Sydney and move the camera\n //float zoom = 15;\n //LatLng gbc = new LatLng(43.676209, -79.410703);\n //mMap.addMarker(new MarkerOptions().position(gbc).title(\"Marker in GBC\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(gbc, zoom));\n\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n try {\n if (mLocationPermissionGranted) {\n Task<Location> locationResult = mFusedLocationProviderClient.getLastLocation();\n locationResult.addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Set the map's camera position to the current location of the device.\n mLastKnownLocation = location;\n Log.d(TAG, \"Latitude: \" + mLastKnownLocation.getLatitude());\n Log.d(TAG, \"Longitude: \" + mLastKnownLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n mMap.moveCamera(CameraUpdateFactory\n .newLatLngZoom(mDefaultLocation, DEFAULT_ZOOM));\n }\n\n }\n });\n }\n } catch (Exception e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "MapLocation getPosition(Unit unit);" ]
[ "0.7699749", "0.7603855", "0.7444333", "0.7263199", "0.7216474", "0.7171921", "0.7171921", "0.7171921", "0.7171921", "0.7168037", "0.7070415", "0.6979373", "0.6978932", "0.6945264", "0.69382405", "0.6919962", "0.6919422", "0.69168204", "0.68805844", "0.68759924", "0.6864933", "0.6858256", "0.6855533", "0.684024", "0.68380946", "0.6806663", "0.6782222", "0.6765472", "0.6720806", "0.67092234", "0.6689804", "0.66687447", "0.666725", "0.664284", "0.6635237", "0.66331214", "0.6628874", "0.6627049", "0.6623633", "0.6622531", "0.6617104", "0.6597732", "0.6592833", "0.65858495", "0.65833604", "0.65833604", "0.65833604", "0.65807617", "0.65694636", "0.65560365", "0.6552772", "0.65502286", "0.6543472", "0.6541732", "0.6538448", "0.6536677", "0.65215474", "0.65136164", "0.65113246", "0.64994127", "0.6496382", "0.6491412", "0.64856154", "0.64830863", "0.6480311", "0.6479841", "0.6477704", "0.64771956", "0.64699906", "0.64684415", "0.646274", "0.64562476", "0.64492035", "0.64293754", "0.6427192", "0.6426005", "0.64247423", "0.64075005", "0.6407418", "0.6407167", "0.64068985", "0.6388009", "0.6387964", "0.63848346", "0.6382675", "0.6360458", "0.63593405", "0.63572896", "0.6357071", "0.6357071", "0.63570434", "0.63566756", "0.6352767", "0.6350975", "0.6349102", "0.6344763", "0.6343479", "0.6343226", "0.63428503", "0.63400704", "0.63291776" ]
0.0
-1
Method that get the url of the location
@Override public String getWeb() { return web; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "URI getLocation();", "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "public URL getLocation() {\n return location;\n }", "String url();", "public String getURL();", "Uri getUrl();", "URL getUrl();", "java.net.URL getUrl();", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public abstract String getURL();", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "String getUri( );", "String getRequestedUrl();", "String getRequestURL();", "public String getURL()\n {\n return getURL(\"http\");\n }", "private String getURL() {\n String url = profileLocation.getText().toString();\n if (url == null || url.length() == 0) {\n return url;\n }\n // if it's not the last (which should be \"Raw\") choice, we'll use the prefix\n if (!url.contains(\"://\")) { // if there is no (http|jr):// prefix, we'll assume it's a http://bit.ly/ URL\n url = \"http://bit.ly/\" + url;\n }\n return url;\n }", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}", "public URI getLocation()\r\n/* 293: */ {\r\n/* 294:441 */ String value = getFirst(\"Location\");\r\n/* 295:442 */ return value != null ? URI.create(value) : null;\r\n/* 296: */ }", "String getUri();", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "public String getSiteUrl();", "String getURI();", "String getURI();", "String getURI();", "String getServerUrl();", "protected abstract String getUrl();", "@Override\r\n public String getURL() {\n return url;\r\n }", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "@Nullable\n public abstract String url();", "public abstract String getUrl();", "public java.lang.String getURL() {\n return URL;\n }", "public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "public java.lang.String getUrl() {\n return url;\n }", "java.lang.String getUri();", "java.lang.String getUri();", "URI getUri();", "@Api(1.2)\n @NonNull\n public String url() {\n return mRequest.buildOkRequest().url().toString();\n }", "public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}", "public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public Uri getUrl() {\n return Uri.parse(urlString);\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "public String getUri();", "public String get_url() throws Exception {\n\t\treturn this.url;\n\t}", "public String getUrl()\n {\n return url;\n }", "public String getUrl() { return url; }", "public String url() {\n return server.baseUri().toString();\n }", "public String getUrl(){\n \treturn url;\n }", "public String getURL() {\r\n return url;\r\n }", "public String getUrl() {\n\t\t\treturn url;\n\t\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getURL() { return url; }", "java.lang.String getBookingURL();", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public URL getServerLocation() {\n return serverLocation;\n }", "public static String getRelativeUrl() {\n return url;\n }", "public String getURL() {\n return url;\n }" ]
[ "0.79589033", "0.7801825", "0.7682606", "0.76386803", "0.7616608", "0.7545794", "0.73883116", "0.73728985", "0.73428214", "0.7321817", "0.72970486", "0.72639275", "0.72639275", "0.72639275", "0.72639275", "0.72639275", "0.72639275", "0.7238554", "0.7238554", "0.7238554", "0.7238554", "0.7238554", "0.7216127", "0.7216127", "0.7216127", "0.7216127", "0.71923596", "0.7182853", "0.71669865", "0.71343076", "0.7109685", "0.7102029", "0.7102029", "0.7102029", "0.7102029", "0.7102029", "0.7102029", "0.7102029", "0.7102029", "0.70606565", "0.704669", "0.70459217", "0.7024719", "0.7003248", "0.69957685", "0.6971921", "0.6971921", "0.6971921", "0.69404715", "0.6928539", "0.6912353", "0.6910774", "0.68874055", "0.68862313", "0.6878233", "0.687142", "0.6851213", "0.6847547", "0.6844316", "0.6844316", "0.6843833", "0.6835772", "0.6835772", "0.68074894", "0.68069345", "0.6797618", "0.67919457", "0.6777737", "0.6777737", "0.6777478", "0.6776118", "0.6776118", "0.67752856", "0.6774439", "0.6767261", "0.67582136", "0.675484", "0.6751952", "0.67494893", "0.67367405", "0.67312604", "0.67312604", "0.67312604", "0.67312604", "0.67312604", "0.67312604", "0.67312604", "0.67312604", "0.67312604", "0.67300254", "0.6727612", "0.67242825", "0.67242825", "0.67242825", "0.67242825", "0.67242825", "0.67242825", "0.67242825", "0.6721904", "0.67083275", "0.66959226" ]
0.0
-1
Method that get the facebook page of the location to open it in web browser
@Override public String getFacebook() { return facebook; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(\n intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n //final String urlBrowser = \"https://www.facebook.com/glasvezelpaleiskwartier\";\n final String urlBrowser = \"https://www.facebook.com/pages/1450066045229608\";\n\n intent.setData(Uri.parse(urlBrowser));\n\n }\n\n startActivity(intent);\n\n }", "public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n final PackageManager packageManager = act.getPackageManager();\n List<ResolveInfo> list =\n packageManager.queryIntentActivities(intent,\n PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n final String urlBrowser = \"https://www.facebook.com/\"+pageName;\n intent.setData(Uri.parse(urlBrowser));\n }\n\n act.startActivity(intent);\n }", "String getFbUrl (ReadOnlyPerson target);", "public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}", "public String getCurrentURLOfPage(){\n return driver.getCurrentUrl();\n\n }", "public ICurrentPage openNewWindow(String url);", "public void openUrlInBrowser(String URL) {}", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "Page getFollowingPage();", "void openUrl (String url);", "private void getThePage(String location){\r\n try{\r\n //load document and display location\r\n contentsArea.setPage(location);\r\n enterField.setText(location);\r\n }\r\n catch(IOException ioe){\r\n JOptionPane.showMessageDialog(this, \"Error retrieving specified URL\",\"Bad URL\",JOptionPane.ERROR_MESSAGE);\r\n } //end catch\r\n }", "private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }", "public void onClickFb(View view) {\n try {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"fb://profile/577574002374672\"));\n startActivity(intent);\n } catch(Exception e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/harporten.varberg\")));\n }\n }", "String getOssHomepage();", "public void facebook(View view) {\n Uri uri = Uri.parse(\"https://www.facebook.com/AnanthPgrmr?href=Message_Everyone\");\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n Toast toast = Toast.makeText(this, \"Opening\", Toast.LENGTH_SHORT);\n toast.show();\n\n // Build and Send the Analytics Event.\n t.send(new HitBuilders.EventBuilder()\n .setCategory(\"About\")\n .setAction(\"FACEBOOK button\")\n .build());\n }", "public void openWebPage(String url) {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(intent);\n }", "java.lang.String getClickURL();", "public String getURL();", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(\"http://\" + url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public static String getPageUrl() {\n\t\tLOG.info(\"Reading current page URL.\");\n\t\treturn Constants.driver.getCurrentUrl();\n\n\t}", "public interface FacebookLinkHandler{\n public void openFacebookPage(String facebookAppURI, String facebookWebURL);\n public void openInstagramPage(String instagramAppURI, String instagramWebURL);\n}", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public String getContentURL();", "private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }", "public String showWebPage(String url, boolean usePhoneGap) {\r\n try {\r\n \tSystem.out.println(\"showWebPage usePhoneGap=\" + usePhoneGap);\r\n Intent intent = null;\r\n if (usePhoneGap) {\r\n \t// Loads and displays a new PhoneGap app on top of current PhoneGap app.\r\n \t// For the currently running PhoneGap app:\r\n \t// \t\tIf keepRunning=true (default), then the current app continues to run in background\r\n \t// \t\tIf keepRunning=false, then the current app is paused by Android\r\n \t// When BACK is pressed, the current app has focus.\r\n \t\r\n intent = new Intent().setClass(this.ctx, com.phonegap.DroidGap.class);\r\n \r\n //set the url to be a local file that sets up phonegap\r\n intent.setData(Uri.parse(url)); // This line will be removed in future.\r\n intent.putExtra(\"url\", url);\r\n\r\n // Timeout parameter: 60 sec max - May be less if http device timeout is less.\r\n intent.putExtra(\"loadUrlTimeoutValue\", 60000);\r\n // intent.putExtra(\"loadInWebView\",true);\r\n\r\n // These parameters can be configured if you want to show the loading dialog\r\n intent.putExtra(\"loadingDialog\", \"Wait,Loading web page...\"); // show loading dialog\r\n intent.putExtra(\"hideLoadingDialogOnPageLoad\", true); // hide it once page has completely loaded\r\n //this will cause the DroidGap to send javascript notifications that the url has been updated\r\n // intent.putExtra(\"updateLocation\",true);\r\n \r\n \r\n System.out.println(\"childbrowser, loading url\");\r\n \t//this is the main webView\r\n // webView.loadUrl(url);\r\n //droidGap.updateLocation =true;\r\n \r\n }\r\n else {\r\n \r\n intent = new Intent(Intent.ACTION_VIEW);\r\n intent.setData(Uri.parse(url));\r\n\r\n }\r\n \t \tthis.ctx.startActivity(intent);\r\n //this.ctx.startActivityForResult((Plugin) this, intent,0);\r\n \r\n return \"\";\r\n } catch (android.content.ActivityNotFoundException e) {\r\n System.out.println(\"ChildBrowser: Error loading url \"+url+\":\"+ e.toString());\r\n return e.toString();\r\n }\r\n }", "public LandingPage navigateToApplication(){\n\t\tString url = action.getProperties(\"URL\");\n\t\taction.OpenURl(url).Waitforpageload();\n\t\treturn this;\n\t}", "HtmlPage clickSiteLink();", "String getWebsite();", "@Override\n public void run() {\n MainActivity.webView.loadUrl(\"https://www.facebook.com/\" + id);\n }", "String getRequestedUrl();", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "void openInAppBrowser(String url, String title, String subtitle, int errorMsg);", "public void openMuseumWebsite(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "PageAgent getPage();", "String url();", "public String getPageUrl() {\n return JS_URL;\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\DriverFiles\\\\chromedriver.exe\");\n\t\tChromeDriver driver = new ChromeDriver();\n\t\tString url = \"http://facebook.com\";\n\t\tdriver.get(url);\n\t\tString Expected_FacebookHomePageTitle = \"Facebook – log in or sign up\";\n\t\tSystem.out.println(\"The Expected Facebook Homepage Title is:\" +Expected_FacebookHomePageTitle);\n\t\tString Actual_FacebookHomePageTitle= driver.getTitle();\n\t\tSystem.out.println(\"The Title of Facebook Home Page is:\" +Actual_FacebookHomePageTitle);\n\t\t//Validating the title of Facebook homePage\n\t\t\n\t\tif(Actual_FacebookHomePageTitle.equals(Expected_FacebookHomePageTitle))\n\t\t\t\t{\n\t\tWebElement email =\tdriver.findElementById(\"email\");\n\t\tWebElement pass =\tdriver.findElementById(\"pass\");\n\t\tWebElement login = driver.findElementById(\"loginbutton\");\n\t\temail.sendKeys(\"sumalatha15\");\n\t\tpass.sendKeys(\"namish\");\n\t\tlogin.click();\n\t\t\t\n\t\t\tSystem.out.println(\"TiTle matched-Pass\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Title Not matched-Fail \");\n\t\t}\n\t\t\n\t\t//Capturing the url of the facebook /homepage\n\t\t\n\t\tString Actual_FacebookHomePageurl = driver.getCurrentUrl();\n System.out.println(\"The Actual url of facebookhomepage is:\"+Actual_FacebookHomePageurl);\n String Expected_FacebookHomePageUrl = \"facebook.com\";\n if(Actual_FacebookHomePageurl.contains(Expected_FacebookHomePageUrl))\n {\n \tSystem.out.println(\"url matched-Pass\");\n }\n \n else\n {\n \tSystem.out.println(\"url matche-Fail\");\n }\n\t\t// driver.quit();\n\t}", "java.lang.String getProfileURL();", "public String getSiteUrl();", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "public static void main(String args[]) throws Exception\r\n\t{\n\t\tURL obj = new URL(\"http://facebook.com/login.html\");\t\r\n\t\t\r\n\t\tSystem.out.println(\"Protocol used : \"+obj.getProtocol());\r\n\t\tSystem.out.println(\"Host name : \"+obj.getHost()); \r\n\t\tSystem.out.println(\"File name : \"+obj.getFile());\r\n\t\tSystem.out.println(\"Port number :\"+obj.getPort());\r\n\t\tSystem.out.println(\"Path : \"+obj.getPath());\r\n\t}", "public static void openWebPage(Context context, String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "public abstract String getURL();", "private static String facebookGetMethod(String url){\r\n System.out.println(\"@executing facebookGetMethod():\" + url);\r\n String responseStr = null;\r\n \r\n try {\r\n HttpGet loginGet = new HttpGet(url);\r\n HttpResponse response = httpClient.execute(loginGet);\r\n HttpEntity entity = response.getEntity();\r\n \r\n System.out.println(\"facebookGetMethod: \" + response.getStatusLine());\r\n if (entity != null) {\r\n responseStr = EntityUtils.toString(entity);\r\n entity.consumeContent();\r\n }\r\n \r\n int statusCode = response.getStatusLine().getStatusCode();\r\n\r\n /**\r\n * @fixme I am not sure if 200 is the only code that \r\n * means \"success\"\r\n */\r\n if(statusCode != 200){\r\n //error occured\r\n System.out.println(\"Error Occured! Status Code = \" + statusCode);\r\n responseStr = null;\r\n }\r\n System.out.println(\"Get Method done(\" + statusCode+\"), response string length: \" + (responseStr==null? 0:responseStr.length()));\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n \r\n return responseStr;\r\n }", "private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "public static String getPage(String u) throws IOException {\n\t\tURL url = new URL(u);\n\t\tURLConnection yc = url.openConnection();\n\t\tyc.addRequestProperty(\"User-Agent\", \"Mozilla/4.76\"); \n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tyc.getInputStream()));\n\t\tString inputLine;\n\t\tString content=\"\";\n\t\twhile ((inputLine = in.readLine()) != null)\n\t\t\tcontent+=inputLine+\"\\n\";\n\t\tin.close();\n\t\treturn content;\n\t}", "public String ssoFacebook() throws InterruptedException {\n this.scrollBy(signupFacebook);\n helperMethods.waitForWebElementToBeInteractable(signupFacebook,30);\n\n signupFacebook.click();\n ssoSubscribeCheck.click();\n ssoTermsCheck.click();\n submitSSO.click();\n while (!helperMethods.waitForPageToLoad()) {\n helperMethods.waitForPageToLoad();\n }\n //Since we are navigating to third party adding thread.sleep\n Thread.sleep(7000);\n return webDriver.getTitle();\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }", "public String connectAndGetPage(String url) throws IOException {\n URL page = new URL(url);\n HttpURLConnection conn = (HttpURLConnection) page.openConnection();\n conn.connect();\n InputStreamReader in = new InputStreamReader((InputStream) conn.getContent());\n BufferedReader buff = new BufferedReader(in);\n String line;\n StringBuilder sb = new StringBuilder(\"\");\n while ((line = buff.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n return sb.toString();\n }", "void openLinkInSystemBrowser(String url, int errorMsg);", "java.net.URL getUrl();", "Page getPage();", "public static final void openWebpage(URI uri) {\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n if ((desktop != null) && (desktop.isSupported(Desktop.Action.BROWSE))) {\r\n try {\r\n desktop.browse(uri);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getRequestURL();", "@Override\n public void faceClicked() {\n Log.i(\"FACEOFF\", \"FACEOFF\");\n Uri webpage = Uri.parse(\"https://www.facebook.com/GrindDesign\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }", "private Uri getFacebookUri(String facebookKeyWords) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(getResources().getString(R.string.httpsScheme))\n .authority(getResources().getString(R.string.facebookWebsite))\n .appendPath(getResources().getString(R.string.search))\n .appendPath(getResources().getString(R.string.str))\n .appendPath(facebookKeyWords)\n .appendPath(getResources().getString(R.string.keywords_search))\n ;\n return builder.build();\n }", "public void getInfoPage(URL urlLocation) throws RuntimeException\r\n {\r\n BufferedReader in = null;\r\n\r\n try\r\n {\r\n URL url = urlLocation;\r\n\r\n HTTPConnection con = getConnectionToURL(url);\r\n\r\n HTTPResponse headRsp = con.Head(url.getFile());\r\n HTTPResponse rsp = con.Get(url.getFile());\r\n\r\n int status = headRsp.getStatusCode();\r\n\r\n if (status < 300 && DEBUG)\r\n {\r\n System.out.println(\"No authorization required to access \" + url);\r\n }\r\n else if (status >= 400 && status != 401 && status != 407)\r\n {\r\n String errorMsg = \"Error trying to access \" + url + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n else\r\n { // Everything else\r\n String errorMsg = \"Access to URL \" + url + \"returned status = \" + status + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n in = new BufferedReader(new InputStreamReader(rsp.getInputStream()));\r\n String inputLine;\r\n\r\n while ((inputLine = in.readLine()) != null)\r\n {\r\n processHTMLLine(inputLine);\r\n if (DEBUG)\r\n {\r\n System.out.println(inputLine);\r\n }\r\n }\r\n\r\n }\r\n catch (Exception exc)\r\n {\r\n String errorMsg = \"GetPageInfo::getInfoPage(URL) Caught: \\n[\" + exc + \"]\";\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n throw new RuntimeException(errorMsg);\r\n }\r\n }", "String getLearnMoreHelpPageUrl();", "public String gotoPage() {\n return FxJsfUtils.getParameter(\"page\");\n }", "Point onPage();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();", "URL getUrl();", "static String getBrowserPath()\n \t{\n \t\tint os = PropertiesAndDirectories.os();\n \t\tString result = browserPath;\n \t\tif (result == null)\n \t\t{\n \t\t\tswitch (os)\n \t\t\t{\n \t\t\tcase PropertiesAndDirectories.XP:\n \t\t\tcase PropertiesAndDirectories.VISTA_AND_7:\n \t\t\t\tif (!Pref.lookupBoolean(\"navigate_with_ie\"))\n \t\t\t\t\tresult = FIREFOX_PATH_WINDOWS;\n \t\t\t\tif (result != null)\n \t\t\t\t{\n \t\t\t\t\tFile existentialTester = new File(result);\n \t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t{\n \t\t\t\t\t\tresult = FIREFOX_PATH_WINDOWS_64;\n \t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tresult = IE_PATH_WINDOWS;\n \t\t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t\t\tresult = null;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.MAC:\n \t\t\t\tresult = \"/usr/bin/open\";\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\terror(PropertiesAndDirectories.getOsName(), \"go(ParsedURL) not supported\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (result != null)\n \t\t\t{\n \t\t\t\tbrowserPath = result;\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "public static void main(String asrgs[]) {\r\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\tWebDriver driver=new ChromeDriver();\r\n\tdriver.navigate().to(\"https://www.facebook.com/\");\r\n\tdriver.findElement(By.name(\"email\")).sendKeys(\"[email protected]\");\r\n\tdriver.findElement(By.name(\"pass\")).sendKeys(\"Sainaga@5\");\r\n\tdriver.findElement(By.name(\"login\")).click();\r\n\tdriver.findElement(By.className(\"_6s5d _71pn _-kb segoe\")).click();\r\n \r\n}", "URI getLocation();", "public void geturl() {\n\t \t\n\t \t driver.get(prop.getProperty(\"url\"));\n\t \t \n\t \t String title=driver.getTitle();\n\t \t \n\t \t System.out.println(title);\n\t \t\t\n\t\t\t driver.manage().window().maximize();\n\t\t\t \n\t\t\t driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t \n\t\t\t driver.manage().deleteAllCookies();\n\t \t\n\t \t\n\t }", "public String getHomePageUrl()\n\t{\n\t\treturn elementUtils.getWebPageUrl();\n\t}", "public static native boolean nativeIsGoogleHomePageUrl(String url);", "public void openBrowser(Context context, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }", "public String getWebPageURL()\n\t{\n\t\treturn webPageURL;\n\t}", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "String getHref();", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/mrinalkanti.ray\")));\n\t\t}", "@Override\n \tpublic void navigate(ParsedURL purl, String frame)\n \t{\n \t\tString[] navigateArgs = getNavigateArgs();\n \t\tif (navigateArgs != null && purl != null)\n \t\t{\n \t\t\tString purlString = purl.toString();\n \t\t\tint numArgs = navigateArgs.length;\n \t\t\tnavigateArgs[numArgs - 1] = purlString;\n \t\t\tStringBuilder sb = new StringBuilder();\n \t\t\tfor (int i = 0; i < numArgs; i++)\n \t\t\t\tsb.append(navigateArgs[i]).append(' ');\n \t\t\tDebug.println(\"navigate: \" + sb);\n \t\t\ttry\n \t\t\t{\n \t\t\t\tProcess p = Runtime.getRuntime().exec(navigateArgs);\n \t\t\t}\n \t\t\tcatch (IOException e)\n \t\t\t{\n \t\t\t\terror(\"navigate() - caught exception: \");\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t\telse\n \t\t\terror(\"navigate() - Can't find browser to navigate to.\");\n \t}", "private String fetchUrl() {\n\t\tString url;\n\t\tint depth;\n\t\tdo\n\t\t{\n\t\t\tLandingPage lp = this.pagesToVisit.remove(0);\n\t\t\turl = lp.getUrl();\n\t\t\tdepth = lp.getDepth();\n\t\t\t\n\t\t}while(this.pagesVisited.containsKey(url) || !(isvalidURL(url)));\n\t\tthis.pagesVisited.put(url,depth);\n\t\treturn url;\n\t}", "private String getURL() {\n String url = profileLocation.getText().toString();\n if (url == null || url.length() == 0) {\n return url;\n }\n // if it's not the last (which should be \"Raw\") choice, we'll use the prefix\n if (!url.contains(\"://\")) { // if there is no (http|jr):// prefix, we'll assume it's a http://bit.ly/ URL\n url = \"http://bit.ly/\" + url;\n }\n return url;\n }", "void gotoEditProfile(String fbId);", "@Given(\"^user should launch the browser$\")\n\tpublic void user_should_launch_the_browser() throws Throwable {\n\t\tgetUrl(\"https://adactin.com/HotelAppBuild2/\");\n\t \n\t}", "public void goWebSite() {\n\n if (mIsFirst) {\n mSnackbar.setText(getString(R.string.please_wait)).show();\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mSiteData.getUrl()));\n //intent.putExtra(\"url\", webData.getUrl());\n //startActivity(intent);\n startActivityForResult(intent, 100);\n //showToolbarProgressBar();\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }", "String getSite();", "public static String getUrl(WebDriver driver)\n\t{\n\t\treturn driver.getCurrentUrl();\n\t}", "String getLink();", "private static final String m2193f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"fb\");\n stringBuilder.append(C0560t.m1253e());\n stringBuilder.append(\"://authorize\");\n return stringBuilder.toString();\n }", "public String getPageUrl() {\n return pageUrl;\n }", "@Test\n public void testGetPageFromURI() {\n System.out.println(\"getPageFromURI\");\n String requestURI = \"http://localhost:8084/BettingApp/pages/common/about.jsp\";\n String expResult = \"about\";\n String result = URIUtil.getPageFromURI(requestURI);\n assertEquals(expResult, result);\n }", "public final native String getURL(String path)/*-{\n\t\treturn $wnd.chrome.extension.getURL(path);\n\t}-*/;", "HtmlPage clickLink();" ]
[ "0.65992707", "0.63521653", "0.63449204", "0.606234", "0.6034389", "0.6014816", "0.5854207", "0.58280826", "0.5766737", "0.571989", "0.5717022", "0.570224", "0.5697566", "0.56969285", "0.5669024", "0.5663728", "0.56172955", "0.5614866", "0.5608189", "0.5607972", "0.55971813", "0.5589294", "0.55700713", "0.55204195", "0.55192727", "0.55055773", "0.5493033", "0.54857767", "0.5482198", "0.54615086", "0.5432863", "0.5432724", "0.54033685", "0.5394716", "0.5379379", "0.53784424", "0.53740495", "0.5373577", "0.53159076", "0.53055394", "0.52986455", "0.5297556", "0.52961093", "0.5294479", "0.5290717", "0.5288835", "0.5275767", "0.52533853", "0.5244477", "0.5243674", "0.52329874", "0.523224", "0.5230254", "0.5225487", "0.52218735", "0.52155507", "0.5211274", "0.5203045", "0.519884", "0.519884", "0.519884", "0.519884", "0.519884", "0.5186394", "0.5181368", "0.5170459", "0.5159165", "0.51581997", "0.51501673", "0.5145231", "0.514405", "0.5143852", "0.5139275", "0.5131552", "0.5125786", "0.51200664", "0.5117646", "0.5115803", "0.5109726", "0.5106214", "0.5093592", "0.50926596", "0.50926596", "0.50926596", "0.50926596", "0.5091579", "0.5085963", "0.5069995", "0.5066457", "0.5065474", "0.5060214", "0.50547075", "0.50522995", "0.5049718", "0.5045939", "0.5041509", "0.50318605", "0.50300413", "0.50285226", "0.50270677", "0.502645" ]
0.0
-1
Method that get the instagram page of the location to open it in web browser
@Override public String getInstagram() { return instagram; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openUrlInBrowser(String URL) {}", "public ICurrentPage openNewWindow(String url);", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "void openUrl (String url);", "public String getURL();", "public String getCurrentURLOfPage(){\n return driver.getCurrentUrl();\n\n }", "public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}", "String getOssHomepage();", "void openInAppBrowser(String url, String title, String subtitle, int errorMsg);", "String url();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public void openWebPage(String url) {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(intent);\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private void getThePage(String location){\r\n try{\r\n //load document and display location\r\n contentsArea.setPage(location);\r\n enterField.setText(location);\r\n }\r\n catch(IOException ioe){\r\n JOptionPane.showMessageDialog(this, \"Error retrieving specified URL\",\"Bad URL\",JOptionPane.ERROR_MESSAGE);\r\n } //end catch\r\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(\"http://\" + url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public void openMuseumWebsite(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "String getWebsite();", "java.lang.String getClickURL();", "PageAgent getPage();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }", "public static String getPage(String u) throws IOException {\n\t\tURL url = new URL(u);\n\t\tURLConnection yc = url.openConnection();\n\t\tyc.addRequestProperty(\"User-Agent\", \"Mozilla/4.76\"); \n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tyc.getInputStream()));\n\t\tString inputLine;\n\t\tString content=\"\";\n\t\twhile ((inputLine = in.readLine()) != null)\n\t\t\tcontent+=inputLine+\"\\n\";\n\t\tin.close();\n\t\treturn content;\n\t}", "public abstract String getURL();", "String getRequestedUrl();", "public String getContentURL();", "String getLearnMoreHelpPageUrl();", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }", "public static String getPageUrl() {\n\t\tLOG.info(\"Reading current page URL.\");\n\t\treturn Constants.driver.getCurrentUrl();\n\n\t}", "protected abstract String getPublicUrl(URL url);", "public String connectAndGetPage(String url) throws IOException {\n URL page = new URL(url);\n HttpURLConnection conn = (HttpURLConnection) page.openConnection();\n conn.connect();\n InputStreamReader in = new InputStreamReader((InputStream) conn.getContent());\n BufferedReader buff = new BufferedReader(in);\n String line;\n StringBuilder sb = new StringBuilder(\"\");\n while ((line = buff.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n return sb.toString();\n }", "URL getUrl();", "public String getSiteUrl();", "public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", \"/Users/bulut/Selenium/chromedriver\");\n WebDriver driver = new ChromeDriver();\n driver.get(\"https://testpages.herokuapp.com/styled/index.html\");\n\n driver.findElement(By.id(\"alerttest\")).click();\n\n String URL = driver.getCurrentUrl();\n System.out.println(URL);\n\n\n }", "protected abstract String getUrl();", "HtmlPage clickSiteLink();", "Page getPage();", "public void onClickIg(View view) {\n Uri uri = Uri.parse(\"http://instagram.com/_u/harportenvarberg\");\n Intent likeIng = new Intent(Intent.ACTION_VIEW, uri);\n\n likeIng.setPackage(\"com.instagram.android\");\n\n try {\n startActivity(likeIng);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://instagram.com/harportenvarberg\")));\n }\n }", "public static String getPage(String urlStr) throws IOException {\n\t\tURL url = new URL(urlStr);\n\t\tHttpURLConnection httpUrlConnection = (HttpURLConnection)url.openConnection();\n\t\thttpUrlConnection.connect();\n\t\tString page = getPageFromUrlConnection(httpUrlConnection);\n\t\thttpUrlConnection.disconnect();\n\t\treturn page;\n\t}", "public abstract String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "public static void openTrivia() { \n\t\tdriver.manage().window().setPosition(new Point(400,0));\n\t\tdriver.get(url);\n\t}", "public interface FacebookLinkHandler{\n public void openFacebookPage(String facebookAppURI, String facebookWebURL);\n public void openInstagramPage(String instagramAppURI, String instagramWebURL);\n}", "public static void openImageInBrowser(Context context, String url){\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n context.startActivity(browserIntent);\n }", "java.net.URL getUrl();", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }", "private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }", "public void geturl() {\n\t \t\n\t \t driver.get(prop.getProperty(\"url\"));\n\t \t \n\t \t String title=driver.getTitle();\n\t \t \n\t \t System.out.println(title);\n\t \t\t\n\t\t\t driver.manage().window().maximize();\n\t\t\t \n\t\t\t driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t \n\t\t\t driver.manage().deleteAllCookies();\n\t \t\n\t \t\n\t }", "public void getInfoPage(URL urlLocation) throws RuntimeException\r\n {\r\n BufferedReader in = null;\r\n\r\n try\r\n {\r\n URL url = urlLocation;\r\n\r\n HTTPConnection con = getConnectionToURL(url);\r\n\r\n HTTPResponse headRsp = con.Head(url.getFile());\r\n HTTPResponse rsp = con.Get(url.getFile());\r\n\r\n int status = headRsp.getStatusCode();\r\n\r\n if (status < 300 && DEBUG)\r\n {\r\n System.out.println(\"No authorization required to access \" + url);\r\n }\r\n else if (status >= 400 && status != 401 && status != 407)\r\n {\r\n String errorMsg = \"Error trying to access \" + url + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n else\r\n { // Everything else\r\n String errorMsg = \"Access to URL \" + url + \"returned status = \" + status + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n in = new BufferedReader(new InputStreamReader(rsp.getInputStream()));\r\n String inputLine;\r\n\r\n while ((inputLine = in.readLine()) != null)\r\n {\r\n processHTMLLine(inputLine);\r\n if (DEBUG)\r\n {\r\n System.out.println(inputLine);\r\n }\r\n }\r\n\r\n }\r\n catch (Exception exc)\r\n {\r\n String errorMsg = \"GetPageInfo::getInfoPage(URL) Caught: \\n[\" + exc + \"]\";\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n throw new RuntimeException(errorMsg);\r\n }\r\n }", "String getHref();", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "private void openBrowser(String Url) {\n \tif (Url != null && Url.trim().length()>0) {\n \t\tUri uri = Uri.parse(Url);\n \tIntent i = new Intent(Intent.ACTION_VIEW, uri);\n \tstartActivity(i);\n \t} \t\n }", "public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(\n intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n //final String urlBrowser = \"https://www.facebook.com/glasvezelpaleiskwartier\";\n final String urlBrowser = \"https://www.facebook.com/pages/1450066045229608\";\n\n intent.setData(Uri.parse(urlBrowser));\n\n }\n\n startActivity(intent);\n\n }", "public String getPreViewUrl();", "Uri getUrl();", "String getSite();", "public String getSearchUrl();", "public String getCurrentUrl() {\n \t\treturn getWebDriver().getCurrentUrl();\n \t}", "private String fetchUrl() {\n\t\tString url;\n\t\tint depth;\n\t\tdo\n\t\t{\n\t\t\tLandingPage lp = this.pagesToVisit.remove(0);\n\t\t\turl = lp.getUrl();\n\t\t\tdepth = lp.getDepth();\n\t\t\t\n\t\t}while(this.pagesVisited.containsKey(url) || !(isvalidURL(url)));\n\t\tthis.pagesVisited.put(url,depth);\n\t\treturn url;\n\t}", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }", "void openLinkInSystemBrowser(String url, int errorMsg);", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "String getRequestURL();", "public String getPageUrl() {\n return pageUrl;\n }", "public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "public static void main(String[] args) {\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n\n //this 3 things need to be done to open a browser\n driver.get(\"https://practice.cybertekschool.com\");\n\n String title = driver.getTitle();\n\n //soutv--> you don need to write \"title\"\n System.out.println(\"title = \" + title);\n\n String currntUrl= driver.getCurrentUrl();\n System.out.println(\"currntUrl = \" + currntUrl);\n\n //get the source of the page\n String pageSource = driver.getPageSource();\n System.out.println(\"pageSource = \" + pageSource);\n\n\n }", "public static void openWebPage(Context context, String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "Observable<String> webViewUrl();", "public String getPageUrl() {\n return JS_URL;\n }", "private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }", "String getLink();", "public HtmlPage clickContentPath();", "@Given(\"^user should launch the browser$\")\n\tpublic void user_should_launch_the_browser() throws Throwable {\n\t\tgetUrl(\"https://adactin.com/HotelAppBuild2/\");\n\t \n\t}", "java.lang.String getProfileURL();", "URI getLocation();", "public String getCurrentURL()\n\t{\n\t\treturn driver.getCurrentUrl();\n\t}", "public Page navigate(String URL) {\n driver.get().navigate().to(URL);\n\n return new Page(driver.get());\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\tWebDriver d=new ChromeDriver();\n\t\td.get(\"file:///C:/Users/SYED%20HASSAN/Desktop/selinium%202%20se/p1.html\");\n\t\tString title = d.getTitle();\n\t\tSystem.out.println(\"title = \"+title);\n\t\tString window = d.getWindowHandle();\n System.out.println(\"windowhandle\"+window);\n String c = d.getCurrentUrl();\n System.out.println(\"currenturl\"+c);\n d.close();\n System.out.println();\n\t}", "HtmlPage clickLink();", "Page getFollowingPage();", "public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }", "public PGShowHomePage(AppiumDriver driver) throws MalformedURLException {\r\n\t\tthis.driver = driver;\r\n\t\tlstTestData = db.getTestDataObject(\"Select * from PGShowHomePage\", \"Input\");\r\n\t\tlstObject = db.getTestDataObject(\"Select * from PGShowHomePage\", \"ObjectRepository\");\r\n\t}", "public String getUrl() { return url; }" ]
[ "0.6154907", "0.6072397", "0.60020417", "0.5961621", "0.5922499", "0.58869356", "0.5850922", "0.58341175", "0.5823117", "0.580021", "0.57923096", "0.57923096", "0.57923096", "0.57923096", "0.57923096", "0.5772505", "0.5765012", "0.5762593", "0.57563925", "0.5737993", "0.5737748", "0.5737611", "0.5710031", "0.5700018", "0.56893176", "0.56893176", "0.56893176", "0.56893176", "0.56844467", "0.5664327", "0.56506705", "0.56325823", "0.56207263", "0.55971", "0.5593249", "0.55733347", "0.5530814", "0.5516733", "0.5513417", "0.5510577", "0.5503405", "0.549977", "0.54888356", "0.5479871", "0.5474554", "0.54736274", "0.54671925", "0.54603124", "0.5458473", "0.54549205", "0.54549205", "0.54549205", "0.54549205", "0.54549205", "0.54549205", "0.5452823", "0.54453856", "0.54039586", "0.53726166", "0.536645", "0.53655136", "0.5361694", "0.5357631", "0.535142", "0.5349975", "0.5346611", "0.53386116", "0.53267705", "0.5306064", "0.528686", "0.52863526", "0.5281888", "0.52811825", "0.5263581", "0.5235775", "0.5230484", "0.52285194", "0.52277815", "0.5227076", "0.5225885", "0.5225575", "0.5215871", "0.52158225", "0.5211911", "0.5207278", "0.51848084", "0.5183876", "0.5183023", "0.5182237", "0.5176149", "0.51757586", "0.516111", "0.5159955", "0.5155375", "0.5154361", "0.51532954", "0.51476294", "0.51411635", "0.51384526", "0.5135769" ]
0.53843206
58
Method that get the facebook id of the location to open it in the facebook app
@Override public String getIdInstagram() { return idInstagram; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getIdFacebook() {\n return idFacebook;\n }", "int getLocationID();", "String getIdFromLocation(final String location) {\n return location.substring(location.lastIndexOf(\"/\") + 1);\n }", "public String getFacebookUserId() {\n return sp.getString(FACEBOOK_USER_ID, null);\n }", "private String getLocationId(GraphUser user) {\n\t\tif (user == null)\n\t\t\treturn null;\n\t\tGraphLocation loc = user.getLocation();\n\t\tif (loc == null)\n\t\t\treturn null;\n\t\tJSONObject json = loc.getInnerJSONObject();\n\t\tif (json == null)\n\t\t\treturn null;\n\t\treturn json.optString(\"id\");\n\t}", "String getFbUrl (ReadOnlyPerson target);", "void gotoEditProfile(String fbId);", "private Uri getFacebookUri(String facebookKeyWords) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(getResources().getString(R.string.httpsScheme))\n .authority(getResources().getString(R.string.facebookWebsite))\n .appendPath(getResources().getString(R.string.search))\n .appendPath(getResources().getString(R.string.str))\n .appendPath(facebookKeyWords)\n .appendPath(getResources().getString(R.string.keywords_search))\n ;\n return builder.build();\n }", "public AppID getIdentifier () ;", "public int getPeopleActivityInstanceId()\r\n {\r\n return mPeopleActivityInstanceId;\r\n }", "public int getLocationID() {\n return locationID;\n }", "int getRoutingAppID();", "@Override\n public void setIdFacebook(String idFacebook) {\n this.idFacebook = idFacebook;\n }", "public static String getPhoneId(Context context) {\n \t\tString PhoneId = Settings.Secure.getString(context.getContentResolver(),Settings.Secure.ANDROID_ID);\n \t\treturn PhoneId;\n \n \t}", "public String getOrigin() {\n if (originId == null) {\n Utility util = Utility.getInstance();\n String id = util.getUuid();\n if (Platform.appId != null) {\n byte[] hash = crypto.getSHA256(util.getUTF(Platform.appId));\n id = util.bytes2hex(hash).substring(0, id.length());\n }\n originId = util.getDateOnly(new Date()) + id;\n }\n return originId;\n }", "public long getLocationID() {\n return locationID;\n }", "public int getGameID(Location location){\n\t\tint gameID = 0;\n\t\t\n\t\treturn gameID;\n\t}", "public static String m585j(Context context) {\r\n try {\r\n return Secure.getString(context.getContentResolver(), \"android_id\");\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public static String getPlaceId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}", "java.lang.String getFriendId();", "java.lang.String getFriendId();", "private String getSpeakerId(Response response) {\n String location = response.getHeaderString(\"location\");\n return location.substring(location.lastIndexOf(\"/\") + 1);\n }", "public void onClickFb(View view) {\n try {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"fb://profile/577574002374672\"));\n startActivity(intent);\n } catch(Exception e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/harporten.varberg\")));\n }\n }", "public void facebook(View view) {\n Uri uri = Uri.parse(\"https://www.facebook.com/AnanthPgrmr?href=Message_Everyone\");\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n Toast toast = Toast.makeText(this, \"Opening\", Toast.LENGTH_SHORT);\n toast.show();\n\n // Build and Send the Analytics Event.\n t.send(new HitBuilders.EventBuilder()\n .setCategory(\"About\")\n .setAction(\"FACEBOOK button\")\n .build());\n }", "String getTheirPartyId();", "public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(\n intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n //final String urlBrowser = \"https://www.facebook.com/glasvezelpaleiskwartier\";\n final String urlBrowser = \"https://www.facebook.com/pages/1450066045229608\";\n\n intent.setData(Uri.parse(urlBrowser));\n\n }\n\n startActivity(intent);\n\n }", "String getLoginId();", "public URI getId();", "public URI getId();", "public void getNativePreviewWindowId();", "@Override\n\tpublic int getLocationId() {\n\t\treturn _locMstLocation.getLocationId();\n\t}", "public String getApplicationId();", "@TargetApi(Build.VERSION_CODES.ECLAIR)\n @RequiresApi(api = Build.VERSION_CODES.ECLAIR)\n private String returnID(String phonenumber) {\n String ID = \"\";\n\n Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phonenumber));\n String[] columns = {ContactsContract.PhoneLookup.CONTACT_ID};\n Cursor cursor = getApplicationContext().getContentResolver().query(uri, columns, null, null, null);\n\n\n if (cursor != null) {\n while (cursor.moveToNext()) {\n\n ID = cursor.getString(cursor.getColumnIndex(ContactsContract.PhoneLookup.CONTACT_ID));\n\n }\n\n } else {\n return null;\n }\n return ID;\n }", "public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}", "public String getLocationNumber()\n\t{\n\t\tString locationNo = getContent().substring(OFF_ID27_LOCATION, OFF_ID27_LOCATION + LEN_ID27_LOCATION) ;\n\t\treturn (locationNo);\n\t}", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "ApplicationId appId();", "@AutoEscape\n\tpublic String getLocationId();", "int getMapPointID();", "public String getLocationId() {\n\t\treturn locationId;\n\t}", "private void generateLocation(){\n String otherUser = \"\";\n Bundle bundle = getIntent().getExtras();\n if (bundle != null) {\n otherUser = bundle.getString(\"email\");\n // email id of the other user\n }\n\n FirebaseAuth auth = FirebaseAuth.getInstance();\n FirebaseUser user = auth.getCurrentUser();\n assert user != null;\n mUserMe = user.getEmail();\n\n // join the two email strings alphabetically to create a DB location\n assert mUserMe != null;\n assert otherUser != null;\n\n String location = \"\";\n if (mUserMe.compareTo(otherUser) < 0)\n location = mUserMe + otherUser;\n else\n location = otherUser + mUserMe;\n\n // use a hash for both emails\n // convert it to a nice hex value\n mLocation = make_hash(location);\n }", "private static long getGeyserIdFromString(String appId){\n\t\ttry{\n\t\t\treturn new Long(appId.substring(appId.lastIndexOf(\"_\")+1));\n\t\t} catch (Exception e){\n\t\t\tlogger.error(\"Geyser ID failure. Using defualt ID '0000'\"); \n\t\t\treturn (long)0000;\n\t\t}\n\t}", "public String getCallId();", "private void retrieveLocationClicked() {\n locationClikedId = getIntent().getIntExtra(GeneralConstants.EDIT_LOCATION_DETAILS_KEY, 0);\n }", "long getLoginId();", "long getLoginId();", "long getLoginId();", "@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }", "public Integer getLocationId() {\n return locationId;\n }", "public Integer getLocationId() {\n return locationId;\n }", "java.lang.String getLoginId();", "public void login() {\n String appId = \"404127593399770\";\n String redirectUrl = \"https://www.facebook.com/connect/login_success.html\";\n String loginDialogUrl = facebookClient.getLoginDialogUrl(appId, redirectUrl, scopeBuilder);\n Gdx.net.openURI(loginDialogUrl);\n }", "public int getC_BPartnerRelation_Location_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerRelation_Location_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "private static final String m2193f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"fb\");\n stringBuilder.append(C0560t.m1253e());\n stringBuilder.append(\"://authorize\");\n return stringBuilder.toString();\n }", "public int getC_BPartner_Location_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartner_Location_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "URI getLocation();", "public WindowID getIdentifier()\n {\n return ExportedWindow.ABOUT_WINDOW;\n }", "public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n final PackageManager packageManager = act.getPackageManager();\n List<ResolveInfo> list =\n packageManager.queryIntentActivities(intent,\n PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n final String urlBrowser = \"https://www.facebook.com/\"+pageName;\n intent.setData(Uri.parse(urlBrowser));\n }\n\n act.startActivity(intent);\n }", "public void getNativeVideoWindowId();", "public int getId() throws android.os.RemoteException;", "long getCaptureFestivalId();", "public native final String location() /*-{\n\t\treturn this[\"location\"];\n\t}-*/;", "String getGadgetId(Element gadgetChrome);", "Location getLocationById(long id);", "String getRouteID();", "@Override\n public String getFacebook() {\n return facebook;\n }", "String getUview_id();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "public static long getContactInformationId(Uri uri) {\n return ContentUris.parseId(uri);\n }", "NativeWindow getWindowById(long id);", "String getUserID();", "private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }", "Label getLoginId();", "long getSteamID();", "public final int getAppID(final String appname)\n throws IOException, JSONException {\n int idapp = -1;\n URL obj = new URL(fgURL + \"/v1.0/applications\");\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n con.setRequestMethod(\"GET\");\n con.setRequestProperty(\"Authorization\", \"Bearer \" + token);\n int responseCode = con.getResponseCode();\n System.out.println(\"\\nSending 'GET' request to URL: \" + obj.toString());\n System.out.println(\"Response Code : \" + responseCode);\n\n if (responseCode == CODE2 || responseCode == CODE1) {\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n\n JSONObject myObject = JSONFactoryUtil.createJSONObject(\n response.toString());\n JSONArray myArray = myObject.getJSONArray(\"applications\");\n\n for (int i = 0; i < myArray.length(); i++) {\n JSONObject appobj = myArray.getJSONObject(i);\n String currentapp = appobj.getString(\"name\");\n\n if (currentapp.equals(appname)) {\n idapp = appobj.getInt(\"id\");\n }\n }\n System.out.println(\"id \" + appname + \": \" + idapp);\n } else {\n System.out.println(\"Unable to connect to the URL \"\n + obj.toString());\n }\n\n return idapp;\n }", "Intent getOpenInOtherWindowIntent();", "public int getLocation()\r\n {\r\n return location;\r\n }" ]
[ "0.6317167", "0.60953766", "0.5931425", "0.5911829", "0.57410455", "0.5624243", "0.55566835", "0.55352145", "0.54708284", "0.5354075", "0.53419656", "0.53361464", "0.5329754", "0.5324001", "0.53232706", "0.52926606", "0.52847093", "0.52826464", "0.52824736", "0.52665764", "0.52665764", "0.5260599", "0.52290785", "0.52203524", "0.5217889", "0.51968706", "0.5194774", "0.51917565", "0.51917565", "0.51860356", "0.517604", "0.5172994", "0.51699334", "0.5148349", "0.51414645", "0.51290256", "0.51290256", "0.51290256", "0.51290256", "0.51290256", "0.51222265", "0.51212674", "0.51145047", "0.51095873", "0.509425", "0.508709", "0.5055808", "0.5043876", "0.50438654", "0.50438654", "0.50438654", "0.5040355", "0.50283647", "0.50283647", "0.5027599", "0.50243276", "0.5011021", "0.49951223", "0.49902615", "0.49839348", "0.49839348", "0.49839348", "0.49839348", "0.49839348", "0.49839348", "0.49839348", "0.49839348", "0.498221", "0.49721906", "0.4947731", "0.493497", "0.49276298", "0.49242058", "0.49234557", "0.4909786", "0.49071237", "0.48973632", "0.48636302", "0.4860353", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48587275", "0.48568612", "0.48520774", "0.48496744", "0.4848646", "0.48472446", "0.48282108", "0.482677", "0.4824738", "0.48085457" ]
0.0
-1
Method that get the instagram id of the location to open it in the instagram app
@Override public String getIdFacebook() { return idFacebook; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getIdInstagram() {\n return idInstagram;\n }", "int getLocationID();", "@Override\n public void setIdInstagram(String idInstagram) {\n this.idInstagram = idInstagram;\n }", "String getIdFromLocation(final String location) {\n return location.substring(location.lastIndexOf(\"/\") + 1);\n }", "String galleryItemIdentity();", "private String getLocationId(GraphUser user) {\n\t\tif (user == null)\n\t\t\treturn null;\n\t\tGraphLocation loc = user.getLocation();\n\t\tif (loc == null)\n\t\t\treturn null;\n\t\tJSONObject json = loc.getInnerJSONObject();\n\t\tif (json == null)\n\t\t\treturn null;\n\t\treturn json.optString(\"id\");\n\t}", "public void onClickIg(View view) {\n Uri uri = Uri.parse(\"http://instagram.com/_u/harportenvarberg\");\n Intent likeIng = new Intent(Intent.ACTION_VIEW, uri);\n\n likeIng.setPackage(\"com.instagram.android\");\n\n try {\n startActivity(likeIng);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://instagram.com/harportenvarberg\")));\n }\n }", "@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }", "public URI getId();", "public URI getId();", "String getUview_id();", "protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }", "@Override\n public String getInstagram() {\n return instagram;\n }", "String getGadgetId(Element gadgetChrome);", "public String getInoId();", "public AppID getIdentifier () ;", "@AutoEscape\n\tpublic String getLocationId();", "String idProvider();", "String getLoginId();", "int getRoutingAppID();", "public void getNativePreviewWindowId();", "public String getInstId() {\r\n return instId;\r\n }", "@Override\n\tpublic int getLocationId() {\n\t\treturn _locMstLocation.getLocationId();\n\t}", "public static String getImageId(WebElement image) {\n String imageUrl = image.getAttribute(\"src\");\n\n int indexComparisonStart = imageUrl.indexOf(START_TOKEN) + START_TOKEN.length();\n int indexComparisonFinish = imageUrl.substring(indexComparisonStart).indexOf(STOP_TOKEN);\n\n return imageUrl.substring(indexComparisonStart, indexComparisonStart + indexComparisonFinish);\n }", "private void retrieveLocationClicked() {\n locationClikedId = getIntent().getIntExtra(GeneralConstants.EDIT_LOCATION_DETAILS_KEY, 0);\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "public int getLocationID() {\n return locationID;\n }", "String getTheirPartyId();", "String getUserID();", "public int getPeopleActivityInstanceId()\r\n {\r\n return mPeopleActivityInstanceId;\r\n }", "private String getSpeakerId(Response response) {\n String location = response.getHeaderString(\"location\");\n return location.substring(location.lastIndexOf(\"/\") + 1);\n }", "java.lang.String getAoisId();", "private static Long readAnnotationId(String url) {\r\n\t\treturn Long.parseLong(url.replace(Config.getInstance().getAnnotationBaseUrl(), \"\"));\r\n\t}", "protected abstract String getInitialPageId();", "String getRouteID();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "java.lang.String getClickURL();", "URI getLocation();", "Intent getOpenInOtherWindowIntent();", "String experimentId();", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Device device = mNearbyDevicesAdapter.getItem(position);\n // Get the url for this device\n String url = device.getLongUrl();\n if (url != null) {\n // Open the url in the browser\n openUrlInBrowser(url);\n } else {\n Toast.makeText(getActivity(), \"No URL found.\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onHuaweiLogoClick() {\n// HuaweiIdAuthParams authParams= new HuaweiIdAuthParamsHelper(HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM).setAccessToken().createParams();\n// HuaweiIdAuthService service = HuaweiIdAuthManager.getService (MainActivity.this, authParams);\n// startActivityForResult(service.getSignInIntent(), AppConstants.REQUEST_SIGN_IN_LOGIN_CODE);\n\n// if (AGConnectAuth.getInstance().getCurrentUser() != null) {\n// onLoginCorrect();\n// }\n\n HuaweiIdAuthParamsHelper huaweiIdAuthParamsHelper = new HuaweiIdAuthParamsHelper(HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM);\n HuaweiIdAuthParams authParams = huaweiIdAuthParamsHelper.setAccessToken().createParams();\n service = HuaweiIdAuthManager.getService(MainActivity.this, authParams);\n startActivityForResult(service.getSignInIntent(), AppConstants.REQUEST_SIGN_IN_LOGIN_CODE);\n }", "java.lang.String getLoginId();", "long getCaptureFestivalId();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "public static void main(String[] args) {\n int num = 12345;\n\n String shortUrl = shortUrlFrom(num);\n\n System.out.println(\"shortUrl = http://shor.ty/\" + shortUrl);\n\n int integerId = getIdFrom(shortUrl);\n\n System.out.println(\"integerId = \" + integerId);\n }", "public String getOrigin() {\n if (originId == null) {\n Utility util = Utility.getInstance();\n String id = util.getUuid();\n if (Platform.appId != null) {\n byte[] hash = crypto.getSHA256(util.getUTF(Platform.appId));\n id = util.bytes2hex(hash).substring(0, id.length());\n }\n originId = util.getDateOnly(new Date()) + id;\n }\n return originId;\n }", "private static void shareToInstagram(Context context, Uri uri) {//content://media/external/images/media/451\n // /storage/emulated/0/メリーズ スマイルDays/20151106_032146.jpg\n // /storage/emulated/0/メリーズ スマイルDays/20151106_020312.jpg\n\n Toast.makeText(context, \"start sharing to instagram \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n String instagramPackage = \"com.instagram.android\";\n if (AppUtil.getInstance().isAppInstalled(context, instagramPackage)) {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_STREAM, uri);\n intent.setPackage(instagramPackage);\n// startActivity(Intent.createChooser(intent, \"Share to\"));\n context.startActivity(intent);\n } else {\n Toast.makeText(context, \"to use this feature, you must have an Instagram application is installed\", Toast.LENGTH_SHORT).show();\n }\n\n }", "String getIdentityId();", "public void openPortal(String id){\n\n\n\n\n }", "int getMapPointID();", "public static String getPlaceId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}", "public int getM_Locator_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Locator_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getLocationId() {\n\t\treturn locationId;\n\t}", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "@Override\n\t\tpublic Integer getLocationID() {\n\t\t\treturn null;\n\t\t}", "public Integer getLocationId() {\n return locationId;\n }", "public Integer getLocationId() {\n return locationId;\n }", "@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\tLog.e(\"map\", \"at InfoWindowClisck\");\n\t\t\t\t\n\t\t\t\tString id = marker.getId();\n int mIdx = Integer.parseInt( id.substring(1) ); // m 제외하고 스트링파싱 인트파\n\t\t\t\tArrayList<String> _pathOfPic = mAreaList.get(mIdx).pathOfPic;\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent(\"android.intent.action.CUSTOM_ALBUM\");\n\t\t\t\tintent.putStringArrayListExtra(\"pathOfPic\", _pathOfPic);\n\t\t\t\t\n\t\t\t\tmCtx.startActivity(intent);\t\n\t\t\t\t\n\t\t\t}", "I getIdentifier();", "public long getLocationID() {\n return locationID;\n }", "int getAid();", "public URI selfIdentify();", "String getID();", "String getID();", "String getID();", "String getID();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();" ]
[ "0.6771921", "0.60098743", "0.5979402", "0.59136486", "0.5827037", "0.5776178", "0.55724585", "0.55010086", "0.5472584", "0.5472584", "0.54489815", "0.5399821", "0.5391508", "0.53803414", "0.53617376", "0.5329402", "0.53217524", "0.5260421", "0.52330065", "0.5232605", "0.5190501", "0.51897115", "0.51858854", "0.51674736", "0.51353306", "0.5097882", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5076346", "0.5064938", "0.50594157", "0.5057339", "0.50433993", "0.50380546", "0.50362945", "0.5032308", "0.5025449", "0.5018404", "0.50148183", "0.50148183", "0.50148183", "0.50148183", "0.50148183", "0.50058305", "0.50038654", "0.50018525", "0.49951234", "0.49896818", "0.49866652", "0.49798667", "0.4977566", "0.49659988", "0.49659988", "0.49659988", "0.49659988", "0.49659988", "0.49659988", "0.49659988", "0.49659988", "0.49659142", "0.49579054", "0.49421838", "0.4938223", "0.49365902", "0.4936499", "0.4936136", "0.49335587", "0.49128562", "0.48957604", "0.48957604", "0.48957604", "0.4893554", "0.48931673", "0.48931673", "0.4883712", "0.4882782", "0.48817587", "0.48744717", "0.4872306", "0.4869726", "0.4869726", "0.4869726", "0.4869726", "0.48647028", "0.48647028", "0.48647028", "0.48647028", "0.48647028", "0.48647028", "0.48647028" ]
0.49317643
77
Method that set the location for googleMaps
@Override public void setLocation(String location) { this.location = location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocation(LatLng location) {\r\n \t\tthis.mapLocation = location;\r\n \t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng place = new LatLng(Double.parseDouble(lat),Double.parseDouble(longitude));\n\n mMap.addMarker(new MarkerOptions().position(place));\n moveToCurrentLocation(place);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n setInitialLocation(VehicleData.getLatitude(), VehicleData.getLongitude());\n }", "public void setLocation(LatLng _location) {\n location = _location;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n }", "@Override\n public void onMapReady(final GoogleMap map) {\n map.moveCamera(CameraUpdateFactory.zoomTo(14));\n //map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n map.setMyLocationEnabled(true);\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n\n return true;\n }\n });\n map.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n Log.d(\"map\", \"onMyLocationChange\");\n if (!isinit) {\n isinit = true;\n if (now_Location == null ||\n now_Location.getLatitude() != location.getLatitude() ||\n now_Location.getLongitude() != location.getLongitude()) {\n now_Location = location;\n initStreetView();\n }\n }\n LatLng sydney = new LatLng(location.getLatitude(), location.getLongitude());\n map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }\n });\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n if (checkPermissions()) {\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n mMap.addMarker(new MarkerOptions().position(currLocation).title(\"Current Location\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currLocation));\r\n getLastLocation();\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n updateLocationUI();\n getDeviceLocation();\n // Add a marker in Sydney and move the camera\n //float zoom = 15;\n //LatLng gbc = new LatLng(43.676209, -79.410703);\n //mMap.addMarker(new MarkerOptions().position(gbc).title(\"Marker in GBC\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(gbc, zoom));\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n /*GPSTracker gps = new GPSTracker(this);\n if(gps.canGetLocation()) {\n //lat=gps.getLatitude();\n //lon=gps.getLongitude();\n }*/\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n //mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n //mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n //mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN);\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n mMap.getUiSettings().setMapToolbarEnabled(true);\n // Add a marker in Sydney and move the camera\n /*LatLng current = new LatLng(lat, lon);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(current));\n LatLng new1 = new LatLng(lat+0.0008, lon+0.00004);\n mMap.addMarker(new MarkerOptions().position(new1).title(\"New Location\" +\n \"\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new1));\n LatLng new2 = new LatLng(lat+0.0005, lon+0.0004);\n mMap.addMarker(new MarkerOptions().position(new2).title(\"New Location\" +\n \"\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new2));\n mMap.addMarker(new MarkerOptions().position(current).title(lat+\" \"+lon+\n \"\"));\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(new LatLng(lat, lon)) // Sets the center of the map to location user\n .zoom(18) // Sets the zoom\n .bearing(90) // Sets the orientation of the camera to east\n .tilt(40) // Sets the tilt of the camera to 30 degrees\n .build(); // Creates a CameraPosition from the builder\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));*/\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n getMarkers();\n\n // Add a marker in Sydney and move the camera\n LatLng penn = new LatLng(39.952290, -75.197060);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(penn, 15));\n mMap.setMyLocationEnabled(true);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n uiSettings.setCompassEnabled(true);\n }", "private void setCurrentLocation() {\n foundLocation = false;\n //Ignore the red line - we check for permissions before this function is called\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n googleMap.setMyLocationEnabled(true);\n FusedLocationProviderClient mFusedLocationProviderClient = LocationServices\n .getFusedLocationProviderClient(getActivity());\n //Ignore the red line - we check for permissions before this function is called\n Task<Location> lastLocation = mFusedLocationProviderClient.getLastLocation();\n lastLocation.addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n Location location = task.getResult();\n if (location == null) {\n locationControlTask = new LocationControl();\n locationControlTask.execute(getActivity());\n } else {\n LatLng currentLatLng = new LatLng(location.getLatitude(),\n location.getLongitude());\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(currentLatLng,\n DEFAULT_ZOOM);\n googleMap.moveCamera(update);\n foundLocation = true;\n }\n }\n });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n gpsTracker = new GPSTracker(this);\n\n // TODO Cek Permission >= Marshmellow\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&\n checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION\n }, 110);\n return;\n }\n }\n\n if (gpsTracker.canGetLocation()) {\n latawal = gpsTracker.getLatitude();\n lonawal = gpsTracker.getLongitude();\n namelocationawal = myLocation(latawal, lonawal);\n }\n\n // Add a marker in Sydney and move the camera\n LatLng myLocation = new LatLng(latawal, lonawal);\n locawal.setText(namelocationawal);\n mMap.addMarker(new MarkerOptions().position(myLocation).title(namelocationawal));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 14));\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n mMap.setPadding(30, 80, 30, 80);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng loc = new LatLng(v, v1);\n mMap.addMarker(new\n MarkerOptions().position(loc).title(\"0000000000\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n // Home Mark\n LatLng home = new LatLng(41.374736, 2.168308);\n float zoom = 13;\n\n // Inicialitzem mapa\n mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN); //Tipus de mapa\n mMap.addMarker(new MarkerOptions().position(home).title(\"IOC\")); //Marcador inicial\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(home, zoom)); //Centrem mapa en el marcador inicial\n\n this.setMapLongClick(mMap);\n this.enableMyLocation();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n frLatLng = new LatLng(getLatitude, getLongitude);\n\n map = googleMap;\n map.getUiSettings().setMyLocationButtonEnabled(false);\n\n if (ActivityCompat.checkSelfPermission(getContext()\n , Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(getContext(),\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n\n map.addMarker(new MarkerOptions().position(frLatLng)).setTitle(getString(R.string.my_location));\n googleMap.getUiSettings().setMyLocationButtonEnabled(true);\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(frLatLng, 520));\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setTrafficEnabled(true);\n googleMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(onMyLocationChangeListener);\n\n // mMap.setPadding(0, 0, 0, 100);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(65.9667, -18.5333))\n .title(\"Hello world\"));\n\n\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n Log.i(TAG, \"map is ready\");\r\n mMap = googleMap;\r\n\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(this);\r\n mMap.setOnMyLocationClickListener(this);\r\n\r\n startLocationUpdates();\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n enableMyLocation();\n buildGoogleApiClient();\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mLocationRequest = LocationRequest.create()\n .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)\n .setInterval(1*1000)\n .setFastestInterval(5 * 100);\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n // Show rationale and request permission.\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n\n } else {\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n }\n\n /* // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n }", "@Override\n public void onMapReady(final GoogleMap googleMap) {\n\n mMap = googleMap;\n setUpMapIfNeeded();\n\n mMap.setLocationSource(mLocationSource);\n mMap.setOnMapLongClickListener(mLocationSource);\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n// enableLocationSettings(getActivity());\n buildGoogleApiClient();\n return false;\n }\n });\n // Add a marker in tehran and move the camera\n LatLng tehran = new LatLng(35.6892, 51.3890);\n marker=mMap.addMarker(new MarkerOptions().position(tehran).title(\"Marker in Tehran\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(tehran));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(tehran,14));\n\n View viewById = getView();\n\n if(viewById!=null) {\n TextView viewlatlongLocation = (TextView)viewById.findViewById(R.id.latlongLocation);;\n viewlatlongLocation.setText(\"35.6892\" + \" \" + \"51.3890\");\n }\n //show error dialog if GoolglePlayServices not available\n// if (!isGooglePlayServicesAvailable()) {\n// finish();\n// }\n\n if (getContext()==null || ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n buildGoogleApiClient();\n\n mMap.setMyLocationEnabled(true);\n\n// LocationManager locationManager = (LocationManager) this.getActivity().getSystemService(Context.LOCATION_SERVICE);\n// Criteria criteria = new Criteria();\n// String bestProvider = locationManager.getBestProvider(criteria, true);\n// Location location = locationManager.getLastKnownLocation(bestProvider);\n// if (location != null) {\n// onLocationChanged(location);\n// }\n// CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(),location.getLongitude()), 15);\n// mMap.animateCamera(cameraUpdate);\n// locationManager.requestLocationUpdates(bestProvider, 0, 500, this);\n // Check if we were successful in obtaining the map.\n// if (mMap != null) {\n//\n//\n// mMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n//\n// @Override\n// public void onMyLocationChange(Location arg0) {\n// // TODO Auto-generated method stub\n// marker.remove();\n// marker = mMap.addMarker(new MarkerOptions().position(new LatLng(arg0.getLatitude(), arg0.getLongitude())).title(\"It's Me!\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA)));\n// mMap.animateCamera(CameraUpdateFactory.zoomTo(14));\n// TextView viewById = (TextView)getView().findViewById(R.id.latlongLocation);\n// viewById.setText(arg0.getLatitude()+\" \"+ arg0.getLongitude());\n//\n// }\n// });\n//\n// }\n //DO WHATEVER YOU WANT WITH GOOGLEMAP\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n// mMap.setIndoorEnabled(true);\n// mMap.setBuildingsEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.clear();\n\n\n loc = null;\n try {\n loc = getLocation();\n } catch (SecurityException ex) {\n Toast.makeText(MapsActivity.this, \"Current location not accesed\", Toast.LENGTH_SHORT).show();\n }\n if (loc != null) {\n LatLng latLng = new LatLng(loc.getLatitude(), loc.getLongitude());\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Current location\")).setDraggable(true);\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latLng, 27);\n mMap.moveCamera(update);\n\n } else\n Toast.makeText(MapsActivity.this, \"Location Not Foound\", Toast.LENGTH_SHORT).show();\n\n\n getloc.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Location loc = null;\n try {\n loc = getLocation();\n } catch (SecurityException ex) {\n Toast.makeText(MapsActivity.this, \"Current location not accesed\", Toast.LENGTH_SHORT).show();\n }\n\n\n }\n });\n\n // Add a marker in Sydney and move the camera\n // LatLng sydney = new LatLng(-34, 151);\n // mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n client = new GoogleApiClient.Builder(this)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this).build();\n client.connect();\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.googleMap.getUiSettings().setMapToolbarEnabled(false);\n if(getContext()!=null) {\n this.googleMap.setMapStyle(\n MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.map_style)\n );\n }\n if (bundle != null) {\n String name = bundle.getString(\"location\");\n LatLng latLng ;\n try {\n JSONObject locations = new JSONObject(loadJSONFromAsset());\n JSONObject location = locations.getJSONObject(name);\n latLng = new LatLng(location.getDouble(\"Lat\"),location.getDouble(\"Lng\"));\n setLocation(name, latLng);\n }catch (Exception e){\n Log.e(TAG, \"locs.json parsing error \"+e.getMessage());\n setLocation(\"Main Building\", new LatLng(13.010595, 74.794298));\n }\n } else {\n // Default location\n setLocation(\"Main Building\", new LatLng(13.010595, 74.794298));\n }\n }", "private void setupGoogleMap()\n {\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(new LatLng(45.5436018, 10.1886594), 10);\n googleMap.animateCamera(cameraUpdate);\n }", "public void setLocation(LatLng location) {\n\t\tthis.location = location;\n\t}", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED){\r\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},101);\r\n }\r\n loc = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n populateMap(loc);\r\n try {\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLatitude(), lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLongitude()), 15.0f));\r\n }catch(Exception blyat){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"No hemos podido acceder a tu localización, revisa el estado de GPS y reinicia la app\");\r\n builder.show();\r\n }\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n getLat g = new getLat();\n g.execute(tid);\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney, Australia, and move the camera.\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n lat = addresses.get(0).getLatitude();\n lng = addresses.get(0).getLongitude();\n } catch (Exception e) {\n lat = -34;\n lng = 151;\n }\n\n LatLng sydney = new LatLng(lat, lng);\n googleMap.addMarker(new MarkerOptions().position(sydney).title(\"WSU Paramatta\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n googleMap.setMyLocationEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mGeocoder = new Geocoder(this, Locale.getDefault());\n\n updateScreenLoc(movement[0]);\n\n loadCrimes(movement[0]);\n //Start MockLocationManager and inject first point\n turnOnLocationManager();\n updateLocation(movement[0]);\n updateRadiusCircle();\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n// updateMap(new LocationModel(41.806363, 44.768531, \"Agmasheneblis Xeivani\"));\n if (shoppingList.getLocationReminder() != null) {\n updateMap(shoppingList.getLocationReminder());\n } else {\n updateMap(null);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n try{\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n Address address = geo.getFromLocationName(location.getAddress(),1).get(0);\n\n LatLng position= new LatLng(address.getLatitude(),address.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position)\n .title(location.getTitle()));\n googleMap.setMinZoomPreference(12);\n googleMap.setMaxZoomPreference(15);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch(IndexOutOfBoundsException e){\n e.printStackTrace();\n }\n }", "public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n mMap.moveCamera(CameraUpdateFactory.zoomTo(1));\r\n\r\n\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n // TODO: Consider calling\r\n // ActivityCompat#requestPermissions\r\n // here to request the missing permissions, and then overriding\r\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\r\n // int[] grantResults)\r\n // to handle the case where the user grants the permission. See the documentation\r\n // for ActivityCompat#requestPermissions for more details.\r\n return;\r\n }\r\n mMap.setMyLocationEnabled(true);\r\n\r\n /// This allows the user to zoom in and out of the map\r\n mMap.getUiSettings().setZoomControlsEnabled(true);\r\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\r\n mMap.getUiSettings().isMyLocationButtonEnabled();\r\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\r\n\r\n }", "@SuppressLint(\"MissingPermission\")\n @Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if(checkPermissions()) {\n googleMap.setMyLocationEnabled(true);\n }\n\n getLastLocation();\n\n }", "private void setMyLatLong() {\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\r\n googleMap.setMyLocationEnabled(true);\r\n\r\n LocationManager locationManager = (LocationManager)\r\n getSystemService(Context.LOCATION_SERVICE);\r\n Criteria criteria = new Criteria();\r\n\r\n Location currentLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\r\n\r\n LatLng sydney = new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude());\r\n\r\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 13));\r\n\r\n } else {\r\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE, Manifest.permission.ACCESS_FINE_LOCATION, true);\r\n }\r\n\r\n updateMarkersData(googleMap);\r\n\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n //If the book already has a location set place a marker on that location and zoom in\n if (getIntent().hasExtra(\"lat\")) {\n LatLng currentlySetLocation = new LatLng(lat, lon);\n\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(currentlySetLocation);\n String address = getMarkerAddress(currentlySetLocation);\n markerOptions.title(address);\n mMap.addMarker(markerOptions);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentlySetLocation));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(currentlySetLocation, 15));\n }\n else {\n //if owner has location enabled, place marker on last location\n if (ActivityCompat.checkSelfPermission(SetLocationActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n fusedLocationProviderClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n /**\n * Run when onSuccess button is clicked\n * @param location: location to get latitude and longitude for\n */\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n LatLng currentLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentLocation));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(currentLocation, 15));\n }\n }\n });\n }\n }\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n /**\n * Run when onMapClick button is clicked to set latitude and longitude\n * @param latLng: set value for latitude and longitude\n */\n @Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n\n String address = getMarkerAddress(latLng);\n //if there is a valid address associated with marker\n if (address != null) {\n markerOptions.title(address);\n }\n mMap.clear();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n mMap.addMarker(markerOptions);\n markerPlaced = true;\n lat = latLng.latitude;\n lon = latLng.longitude;\n }\n });\n\n //Save location button listener\n FloatingActionButton saveButton = findViewById(R.id.saveButton);\n saveButton.setOnClickListener(new View.OnClickListener() {\n /**\n * Run when button to save location is clicked\n * @param view: current view\n */\n @Override\n public void onClick(View view) {\n if (markerPlaced) {\n //Firestore handler method that adds geopoint as a field in database\n setPickupLocation(bookId, lat, lon);\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Pickup location has been updated\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Place a marker first\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n });\n }", "public void onMapReady(GoogleMap googleMap , double lati, double longi) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(lati, longi);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Your Current Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "public void setLocation(){\n //Check if user come from notification\n if (getIntent().hasExtra(EXTRA_PARAM_LAT) && getIntent().hasExtra(EXTRA_PARAM_LON)){\n Log.d(TAG, \"Proviene del servicio, lat: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LAT) + \" - lon: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LON));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(getIntent().getExtras().getDouble(EXTRA_PARAM_LAT), getIntent().getExtras().getDouble(EXTRA_PARAM_LON)), 18));\n NotificationManager mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNM.cancel(1);\n } else{\n if (bestLocation!=null){\n Log.d(TAG, \"Posicion actual -> LAT: \"+ bestLocation.getLatitude() + \" LON: \" + bestLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(bestLocation.getLatitude(), bestLocation.getLongitude()), 16));\n } else{\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(41.651981, -4.728561), 16));\n }\n }\n }", "public void setLocation(String location);", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng montesson = new LatLng(48.9190286,2.1380955);\n mMap.addMarker(new MarkerOptions().position(montesson).title(\"Marker in Montesson\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(montesson));\n }", "public void setGoogleMap(GoogleMap googleMap){\n this.googleMap = googleMap;\n }", "public void setLocation(Location loc) {\n this.location = loc;\n }", "@Override\n protected void setUpMap() {\n super.setUpMap();\n // For showing a move to my location button and a blue\n // dot to show user's location\n MainActivity mainActivity = (MainActivity) getActivity();\n mMap.setMyLocationEnabled(mainActivity.checkIfGPSEnabled());\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n GetLastKnownLocation();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n // Show rationale and request permission.\n int i = 12;\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n i);\n\n }\n mMap.setMyLocationEnabled(true); //when location changed call line. loaction manager\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng location = new LatLng(mLat, mLng);\n moveCamera(location, DEFAUT_ZOOM);\n if (ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(\n this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng CSN = new LatLng(51.87, -8.481);\n mMap.setMapType(MAP_TYPE_HYBRID);\n mMap.addMarker(new MarkerOptions().position(CSN).title(\"Marker at CSN college\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(CSN, 15F));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }", "private void setupMap() {\n if (googleMap == null) {\n SupportMapFragment mapFrag = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\n mapFrag.getMapAsync(this);\n mLocationProvider = new LocationProvider(this, this);\n }\n }", "public void setLocation(Coordinate coordinate);", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in city and move the camera\n LatLng cityCoord = new LatLng(lat, lng);\n float zoom = (float) 9.0;\n mMap.addMarker(new MarkerOptions().position(cityCoord).title(cityAddr));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(cityCoord, zoom));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n CameraUpdate cUpdate = CameraUpdateFactory.newLatLngZoom(new LatLng(35.68, 139.76), 12);\n //mMap.addMarker(new MarkerOptions().position(new LatLng(35.68, 139.76)).title(\"Marker in Tokyo\"));\n mMap.moveCamera(cUpdate);\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng singapore = new LatLng(1.338709, 103.819519);\n googleMap.addMarker(new MarkerOptions().position(singapore)\n .title(\"Marker in Singapore\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(singapore));\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11),3000,null);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(logTag,\"4\");\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST);\n return;\n }\n mMap.setOnMapLongClickListener(this);\n mMap.setOnInfoWindowClickListener( this );\n mMap.setOnMapClickListener(this);\n mMap.setMyLocationEnabled(true);\n ll=new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions options = new MarkerOptions().position(ll);\n options.title(getAddressFromLatLng(ll));\n\n Log.d(logTag,\"5\");\n }", "@Override\n @SuppressWarnings({\"MissingPermission\"})\n public void onMapReady(GoogleMap googleMap) {\n\n Log.d(TAG, \"Map is ready.\");\n mMap = googleMap;\n\n mMap.setMyLocationEnabled(true);\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(\n mGoogleApiClient);\n\n setMarkerToCurrentLocation();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng parque = new LatLng(latitud, longitud);\n mMap.addMarker(new MarkerOptions().position(parque).title(lugar).icon(BitmapDescriptorFactory.fromResource(R.drawable.icons8_terraria_48)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(parque));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitud, longitud),16.0f));\n }", "public void setLocation(Context context) {\n Location location = Util.getLocation(context);\n if (location == null) {\n Logger.e(TAG, \"Location information not available.\");\n } else {\n addToGeoLocationContext(Parameters.LATITUDE, location.getLatitude());\n addToGeoLocationContext(Parameters.LONGITUDE, location.getLongitude());\n addToGeoLocationContext(Parameters.ALTITUDE, location.getAltitude());\n addToGeoLocationContext(Parameters.LATLONG_ACCURACY, location.getAccuracy());\n addToGeoLocationContext(Parameters.SPEED, location.getSpeed());\n addToGeoLocationContext(Parameters.BEARING, location.getBearing());\n }\n }", "private void configMap() {\n\n googleMap.getUiSettings().setMapToolbarEnabled(false);//an buton dieu huong bat snag map\n\n googleMap.getUiSettings().setMyLocationButtonEnabled(true);//nut vi tri cua minh tru se hien thi\n googleMap.getUiSettings().setZoomControlsEnabled(true);//co the zoom\n\n// b2\n googleMap.setInfoWindowAdapter(new MyInfoWindown());//cutom titlemap\n\n try {//them lenh nay de no cap location thì cai nut tren moi hoat dong\n\n googleMap.setMyLocationEnabled(true);//cung cap vi tri cua minh,can try cacth xin quyen\n } catch (SecurityException e) {\n\n }\n googleMap.setOnMyLocationButtonClickListener(this);//dNG KY\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(121.5729889, 25.0776557);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"This is my first Maker\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap)\n {\n map = googleMap;\n // if permission not granted, stop\n if(ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_DENIED)\n {\n Toast.makeText(this, \"Location permission not granted!\", Toast.LENGTH_SHORT).show();\n return;\n }\n else\n {\n // automatically set initial location\n double lat = Double.longBitsToDouble(sharedPrefs.getLong(\"Latitude\", 0));\n double lon = Double.longBitsToDouble(sharedPrefs.getLong(\"Longitude\", 0));\n if(lat == 0 && lon == 0)\n goToMyLocation(false);\n else\n goToLocation(lat, lon);\n\n // when tapping on the screen\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener()\n {\n @Override\n public void onMapClick(LatLng latLng)\n {\n map.animateCamera(CameraUpdateFactory.newCameraPosition(\n new CameraPosition.Builder().target(latLng).zoom(16).bearing(0).build()));\n placeMarker(latLng);\n updateScrambleLocation(latLng);\n }\n });\n\n // clicking on my location button\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener()\n {\n @Override\n public boolean onMyLocationButtonClick()\n {\n goToMyLocation(true);\n return false;\n }\n });\n }\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(LocationStorage.getInstance().getLocation().getLatitude(), LocationStorage.getInstance().getLocation().getLongitude());\n// BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.ic_large_marker);\n Marker marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Current Location\").snippet(\"Hold and drag to your desired location\"));\n marker.showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(sydney, 15);\n mMap.animateCamera(cameraUpdate);\n marker.setDraggable(true);\n mMap.setOnMarkerDragListener(new GoogleMap.OnMarkerDragListener() {\n @Override\n public void onMarkerDragStart(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDrag(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDragEnd(Marker marker) {\n LatLng latLng=marker.getPosition();\n Location temp = new Location(LocationManager.GPS_PROVIDER);\n temp.setLatitude(latLng.latitude);\n temp.setLongitude(latLng.longitude);\n LocationStorage.getInstance().setLocation(temp);\n }\n });\n// mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n// @Override\n// public boolean onMarkerClick(Marker marker) {\n//\n// return true;\n// }\n// });\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n mMap.setIndoorEnabled(true);\n mMap.setBuildingsEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(43.777365,-79.3406);\n LatLng loc22=new LatLng(43.775748,-79.336674);\n LatLng loc3=new LatLng(43.769240,-79.360010);\n LatLng loc4=new LatLng(43.769290,-79.400101);\n LatLng loc5=new LatLng(43.769552,-79.601201);\n mMap.addMarker(new MarkerOptions().position(sydney).title(values[0]));\n mMap.addMarker(new MarkerOptions().position(loc22).title(values[1]));\n mMap.addMarker(new MarkerOptions().position(loc3).title(values[2]));\n mMap.addMarker(new MarkerOptions().position(loc4).title(values[3]));\n mMap.addMarker(new MarkerOptions().position(loc5).title(values[4]));\n\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n addMarkers();\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n listener.onMapSuccess(mMap);\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n System.out.println(\"Perm Loc\" + mLocationPermissionGranted);\n createLocationRequest();\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n getCurrentPlace();\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(17.2231, 78.2827);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Hyderbbad\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n initializeMap();\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n // Add a marker in Sydney and move the camera\r\n LatLng charlotte = new LatLng(35.22, -80.84);\r\n //currentMarker = mMap.addMarker(new MarkerOptions().position(charlotte).title(\"Charlotte, NC\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(charlotte));\r\n //currentMarker.setTag(0);\r\n\r\n mMap.setOnMapLongClickListener(this);\r\n\r\n\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n //&& ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n ) {\r\n // TODO: Consider calling\r\n\r\n return;\r\n }\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\r\n @Override\r\n public boolean onMyLocationButtonClick() {\r\n Log.d(\"maps\", \"On my location button click\");\r\n return false;\r\n }\r\n });\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n\n\n\n // Add a marker in Sydney and move the camera\n sydney = new LatLng(8.552161651991246, 79.94052328405958);\n\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n\n\n //mMap.setMinZoomPreference(11);\n\n\n\n\n\n }", "@Override\n\t\t\tpublic void onLocationSuccess(AMapLocation location) {\n\n\t\t\t\tmLoadingDialog.cancelDialog();\n\t\t\t\tll_mySite = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t.getLongitude());\n\n\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = String\n\t\t\t\t\t\t.valueOf(location.getLatitude());\n\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = String\n\t\t\t\t\t\t.valueOf(location.getLongitude());\n\t\t\t\tLatLng latLng;\n\t\t\t\tif (AppConfigUtil.LocalLocation.Location_latitude.equals(\"0.0\")\n\t\t\t\t\t\t|| AppConfigUtil.LocalLocation.Location_longitude\n\t\t\t\t\t\t\t\t.equals(\"0.0\")) {\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = MyApplication.Location_latitude;\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = MyApplication.Location_longitude;\n\t\t\t\t\tmNaviStart = new NaviLatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t} else {\n\t\t\t\t\tmNaviStart = new NaviLatLng(location.getLatitude(),\n\t\t\t\t\t\t\tlocation.getLongitude());\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t\t.getLongitude());\n\t\t\t\t}\n\n\t\t\t\t// 初始化当前位置\n\t\t\t\t// aMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\t\t\t\taMap.moveCamera(CameraUpdateFactory.zoomTo(14));\n\t\t\t\taMap.addMarker(new MarkerOptions()\n\t\t\t\t\t\t.position(latLng)\n\t\t\t\t\t\t.title(\"我的位置\")\n\t\t\t\t\t\t.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t\t\t.fromResource(R.drawable.location_marker))\n\t\t\t\t\t\t.draggable(true));\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng position = new LatLng(latitude, longitude);\n\n // centre the map around the specified location\n mMap.animateCamera(CameraUpdateFactory.newLatLng(position));\n\n // add a marker at the specified location\n MarkerOptions options = new MarkerOptions();\n mMap.addMarker(options.position(position).title(locationName));\n\n // configure the map settings\n mMap.setTrafficEnabled(true);\n mMap.setBuildingsEnabled(true);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n // enable the zoom controls\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n }", "private void getMyLocation() {\n LatLng latLng = new LatLng(latitude, longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 18);\n googleMap.animateCamera(cameraUpdate);\n }", "private void setUpMap() {\n // Crear all map elements\n mGoogleMap.clear();\n // Set map type\n mGoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n // If we cant find the location now, we call a Network Provider location\n if (mLocation != null) {\n // Create a LatLng object for the current location\n LatLng latLng = new LatLng(mLocation.getLatitude(), mLocation.getLongitude());\n // Show the current location in Google Map\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n // Draw the first circle in the map\n mCircleOptions = new CircleOptions().fillColor(0x5500ff00).strokeWidth(0l);\n // Zoom in the Google Map\n mGoogleMap.animateCamera(CameraUpdateFactory.zoomTo(15));\n\n // Zoom in the Google Map\n //icon = BitmapDescriptorFactory.fromResource(R.drawable.logo2);\n\n // Creation and settings of Marker Options\n mMarkerOptions = new MarkerOptions().position(latLng).title(\"You are here!\");//.icon(icon);\n // Creation and addition to the map of the Marker\n mMarker = mGoogleMap.addMarker(mMarkerOptions);\n // set the initial map radius and draw the circle\n drawCircle(RADIUS);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n myMap = googleMap;\n setMap();\n try{\n myMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lastKnown.getLatitude(), lastKnown.getLongitude()), 18.0f));\n }catch (NullPointerException e){\n\n }\n }", "private void setUpMapIfNeeded() {\n if (mGoogleMap != null) {\n if (checkPermission()) {\n mGoogleMap.setMyLocationEnabled(true);\n }\n // Check if we were successful in obtaining the map.\n if (mMapView != null) {\n\n mGoogleMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n mGoogleMap.addMarker(new MarkerOptions().position(new LatLng(location.getLatitude(), location.getLongitude())).title(\"It's Me!\"));\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 10));\n }\n });\n\n }\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n String info = sTitle;\n // Add a marker in Sydney and move the camera\n LatLng pos = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(pos).title(info));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(pos));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 8));\n\n }", "@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n mGoogleMap.setMyLocationEnabled(true);\n Log.d(TAG, \"Map Ready\");\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n //Agafar la localitzacio actual per mostrar-ho al mapa\n LocationManager locationManager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n LatLng actual = new LatLng((location.getLatitude()),location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(actual,13));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n ActivityCompat.requestPermissions(this,new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n // Add a marker in Sydney and move the camera\n if (loc != -1 && loc != 0) {\n locationManager.removeUpdates(this);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(MainActivity.locations.get(loc), 10));\n\n mMap.addMarker(new MarkerOptions().position(MainActivity.locations.get(loc)).title(MainActivity.places.get(loc)));\n } else {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationManager.requestLocationUpdates(provider, 400, 1, this);\n\n }\n mMap.setOnMapLongClickListener(this);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n MarkerOptions markerOptions = new MarkerOptions();\n Log.d(\"Lat\", String.valueOf(clickedBook.getLat()));\n Log.d(\"Lon\", String.valueOf(clickedBook.getLon()));\n markerOptions.position(new LatLng(clickedBook.getLat(), clickedBook.getLon()));\n\n markerOptions.title(Address);\n mMap.clear();\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n new LatLng(clickedBook.getLat(), clickedBook.getLon()), 16f);\n mMap.animateCamera(location);\n mMap.addMarker(markerOptions);\n Log.d(\"status\", \"success\");\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.addMarkers();\n\n\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n if (checkPermissions()) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n current_location = location;\n markCurrentLocation(location);\n\n }\n });\n }\n\n\n }", "private void setUpMap() throws IOException {\n // Get last location which means current location\n lastKnownLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (lastKnownLocation != null) {\n // shift view to current location\n LatLng latlng = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());\n Geocoder geocoder = new Geocoder(this);\n adminArea = geocoder.getFromLocation(latlng.latitude, latlng.longitude, 1).get(0).getAdminArea();\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latlng, 12);\n mMap.moveCamera(update);\n } else {\n Toast.makeText(this, \"Current Location is not Available\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tpublic void onLocationChanged(android.location.Location arg0) {\n\t\tif(gmapFlag == true){\n\t\t\tmyLocation = new LatLng(arg0.getLatitude(), arg0.getLongitude());\n\t\t}\n\t\t\n\t\t\n\t}", "private void UpdateMap(){\n Log.d(\"data\", lati + \" \" + longi );\n// sydney = new LatLng(lati, longi);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n //below line is use to add custom marker on our map.\n .icon(BitmapFromVector(getApplicationContext(), R.drawable.ic_flag)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n LatLng latlong = new LatLng(29.375859, 47.977405);\n googleMap.addMarker(new MarkerOptions().position(latlong).title(\"\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlong, 9.0f));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Pula and move the camera\n LatLng pula = new LatLng(44.86726450096342, 13.850460687162476);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(pula, 13));\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n enableUserLocation();\n zoomTooUserLocation();\n } else {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission\n .ACCESS_FINE_LOCATION)) {\n //we can show user dialog why this permission is necessery\n\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission\n .ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission\n .ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n }\n }\n }", "private void setLocation(String name, LatLng latLng) {\n googleMap.addMarker(new MarkerOptions().position(latLng)\n .title(name));\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 18));\n }", "private void setUpMap() {\n mMap.setMyLocationEnabled(true);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n /* mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n //mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n LatLng ifto = new LatLng(-10.199202218157746, -48.31158433109522);\n mMap = googleMap;\n mMap.setOnCameraIdleListener(this);\n mMap.addMarker(new MarkerOptions().position(ifto).title(\"IFTO Campus Palmas\"));\n }", "private void getLocation() {\n NimbeesLocationManager.NimbeesLocationListener mNimbeesLocationListener = new NimbeesLocationManager.NimbeesLocationListener() {\n @Override\n public void onGetCurrentLocation(Location location) {\n mLocation = location;\n setUpMap();\n }\n\n @Override\n public void onError(NimbeesException e) {\n }\n };\n NimbeesClient.getLocationManager().obtainCurrentLocation(mNimbeesLocationListener);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng current = new LatLng(10.762887, 106.681835);\n mMap.addMarker(new MarkerOptions().position(current).title(\"Current Location\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(current));\n text5 = \"Current Location\";\n toSpeech.speak(text5, TextToSpeech.QUEUE_FLUSH, null);\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n if(checkmarker.isChecked()){\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMapClickListener((GoogleMap.OnMapClickListener)this);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng liege = new LatLng(50.620552, 5.581177);\n LatLng victime = new LatLng(50.620957, 5.582263);\n mMap.addMarker(new MarkerOptions()\n .position(liege)\n .title(\"You are here !\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW)));\n mMap.addMarker(new MarkerOptions()\n .position(victime)\n .title(\"Aurélie\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(liege,17));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n client = new GoogleApiClient.Builder(this)\n .addApi(LocationServices.API).addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n client.connect();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n MapsInitializer.initialize(mContext);\n gMap = googleMap;\n\n //you can move map here to item specific 'location'\n int pos = getAdapterPosition();\n\n LatLng latLng = new LatLng(6.42788, 3.4274513);\n LatLng NIGERIA = new LatLng(9.0611017, 4.1763482);\n\n gMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n gMap.addMarker(new MarkerOptions()\n .position(latLng)\n .draggable(false)\n .flat(true)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n // Recherche de la derniere localisation\n Criteria criteria = new Criteria();\n String provider = locationManager.getBestProvider(criteria, false);\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (location != null) {\n float lat = (float) (location.getLatitude());\n float lng = (float) (location.getLongitude());\n\n currentPosition = new Point(location.getLongitude(), location.getLatitude());\n\n // Add a marker at our position and move the camera\n LatLng lastCoord = new LatLng(lat, lng);\n mMap.addMarker(new MarkerOptions().position(lastCoord).title(\"Last time we were here\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(lastCoord));\n\n lblPosition.setText(\"Last Position: \"+location.getLatitude()+\", \"+location.getLongitude());\n\n Log.i(this.getClass().getName(), String.valueOf(lat));\n Log.i(this.getClass().getName(), String.valueOf(lng));\n } else {\n Log.w(this.getClass().getName(), \"Provider not available\");\n }\n\n // dessine points intérets et sector de la database\n loadPOI();\n loadSector();\n\n // attache le callback\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10, 1, this);\n }" ]
[ "0.7273612", "0.7198356", "0.71577823", "0.7139321", "0.71059024", "0.7097365", "0.7087846", "0.7086324", "0.7028863", "0.70248157", "0.6998238", "0.69925416", "0.69513184", "0.6940179", "0.6912331", "0.68975496", "0.68833226", "0.6881889", "0.686424", "0.6860004", "0.6849756", "0.68413085", "0.6839851", "0.68339086", "0.6831036", "0.6830556", "0.68228894", "0.6819203", "0.6812739", "0.6809822", "0.6809256", "0.68080825", "0.68080825", "0.68080825", "0.68080825", "0.6806783", "0.680583", "0.6794631", "0.67908746", "0.6785218", "0.67839533", "0.67803043", "0.67743015", "0.6770206", "0.6768055", "0.6765743", "0.6763008", "0.6757399", "0.67503744", "0.67326665", "0.6723513", "0.67188144", "0.67151374", "0.6712964", "0.6707747", "0.6698512", "0.66923076", "0.6680497", "0.66717696", "0.6669005", "0.66676104", "0.66632205", "0.6657138", "0.66549665", "0.66544074", "0.665166", "0.66435474", "0.66427195", "0.66371715", "0.66344863", "0.6633218", "0.66320366", "0.66312766", "0.66257715", "0.6622917", "0.66176176", "0.6603738", "0.66035515", "0.6595233", "0.6591588", "0.65844834", "0.65806097", "0.6560823", "0.65591407", "0.6553681", "0.6549931", "0.65467036", "0.65377456", "0.6536362", "0.65301764", "0.6526909", "0.6522723", "0.65172005", "0.65160996", "0.6514707", "0.6513162", "0.6513074", "0.6512553", "0.6507387", "0.6506745", "0.65065664" ]
0.0
-1
Method that set the web of the location
@Override public void setWeb(String web) { this.web = web; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWeb(String web) {\n\t\tthis.web = web;\n\t}", "public void setSiteLocation(URI location) {\n \t\tthis.siteLocation = location;\n \t}", "void setLocationURI(URI locationURI);", "public void changeUrl() {\n url();\n }", "@Override\n public String getWeb() {\n return web;\n }", "public void setHTTP_URL(String url) {\r\n\t\ttry {\r\n\t\t\tURL u = new URL(url);\r\n\t\t\tu.toURI();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"HTTP_URL\", url);\r\n\t\tthis.saveChanges();\r\n\t}", "public void setWebPage(String webPage) {\n\t\tthis.webPage = webPage;\n\t}", "public void setURL(String url);", "private void setURL(String url) {\n try {\n URL setURL = new URL(url);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void setLocation(URI location)\r\n/* 288: */ {\r\n/* 289:432 */ set(\"Location\", location.toASCIIString());\r\n/* 290: */ }", "public void setServer(URL url) {\n\n\t}", "public void setWebsite(final String value)\n\t{\n\t\tsetWebsite( getSession().getSessionContext(), value );\n\t}", "public String getWeb() {\n\t\treturn web;\n\t}", "public void setUrl(URL url)\n {\n this.url = url;\n }", "public void setUrl(String url);", "public void setUrl(String url);", "public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}", "public void setWebsite(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, WEBSITE,value);\n\t}", "@Override\n public void setUrl(String url) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Directory manager \" + directoryManager);\n }\n try {\n super.setUrl(directoryManager.replacePath(url));\n } catch (Exception e) {\n LOGGER.error(\"Exception thrown when setting URL \", e);\n throw new IllegalStateException(e);\n }\n }", "private void setKlarosUrl(final String value) {\n\n klarosUrl = value;\n }", "public void setOfficialFileWebpage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALFILEWEBPAGE, value);\r\n\t}", "public static void setOfficialFileWebpage(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALFILEWEBPAGE, value);\r\n\t}", "public void setOfficialFileWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALFILEWEBPAGE, value);\r\n\t}", "public static void setExternalWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_EXTERNAL_WWWBROWSER, brow );\n }", "protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }", "protected static void setProxyLocation(URI proxyLocation) {\n Program.proxyLocation = proxyLocation;\n Program.proxyLocationSet = true;\n }", "public native final void setUrl(String url)/*-{\n this.url = url;\n }-*/;", "public static void setOfficialFileWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALFILEWEBPAGE, value);\r\n\t}", "public void setWebPageURL( String webPageURL )\n\t{\n\t\tthis.webPageURL\t= webPageURL;\n\t}", "public URL setURL(URL url) {\r\n if (url == null)\r\n throw new IllegalArgumentException(\r\n \"A null url is not an acceptable value for a PackageSite\");\r\n URL oldURL = url;\r\n myURL = url;\r\n return oldURL;\r\n }", "IParser setServerBaseUrl(String theUrl);", "public final native void setUrl(String url) /*-{\n this.setUrl(url);\n }-*/;", "public void setURL(String _url) { url = _url; }", "public static void setWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_WWWBROWSER, brow );\n if( isExternal( brow ) ) {\n setExternalWWWBrowser(brow);\n }\n }", "public void setAmusementObjectWebsite(String website){\r\n amusementObjectWebsite = Uri.parse(website);\r\n }", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "public void setRequestURI(URI requestURI);", "@Override\n\tpublic void setManualUrl(java.lang.String manualUrl, java.util.Locale locale) {\n\t\t_scienceApp.setManualUrl(manualUrl, locale);\n\t}", "public void setOfficialAudioSourceWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALAUDIOSOURCEWEBPAGE, value);\r\n\t}", "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "public void refreshBrowserLocation() {\n initBrowserLocationSection();\n }", "public void setOfficialInternetRadioStationHomepage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALINTERNETRADIOSTATIONHOMEPAGE, value);\r\n\t}", "void setOssHomepage(String ossHomepage);", "void setBrowser(String browser);", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t\tthis.handleConfig(\"url\", url);\n\t}", "public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}", "public void setOfficialArtistWebpage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, value);\r\n\t}", "private void initWebView(){ \r\n WebEngine webEngine = viewerPane.getEngine();\r\n webEngine.load(\"http://www.google.com\");\r\n }", "URI getLocation();", "protected void setURL(URL paramURL, String paramString1, String paramString2, int paramInt, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) {\n/* 538 */ if (this != paramURL.handler) {\n/* 539 */ throw new SecurityException(\"handler for url different from this handler\");\n/* */ }\n/* 541 */ if (paramString2 != null && paramURL.isBuiltinStreamHandler(this)) {\n/* 542 */ String str = IPAddressUtil.checkHostString(paramString2);\n/* 543 */ if (str != null) throw new IllegalArgumentException(str);\n/* */ \n/* */ } \n/* 546 */ paramURL.set(paramURL.getProtocol(), paramString2, paramInt, paramString3, paramString4, paramString5, paramString6, paramString7);\n/* */ }", "public void setHL7ServerLocationURL(String val) {\n\t\tmLocationURL = val;\n\t}", "public void set(String toSet) throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Setting \" + this + \" to \" + toSet);\n\t\t\n\t\twaitForElement().click();\n\t\tVoodooUtils.pause(1000);\n\t\tVoodooUtils.focusWindow(1);\n\t\tnew VoodooControl(\"a\", \"XPATH\", \"//a[contains(text(), '\" + toSet + \"')]\").click();\n\t\tVoodooUtils.focusWindow(0);\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t}", "public static void setOfficialArtistWebpage(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALARTISTWEBPAGE, value);\r\n\t}", "public void setLocation(String location);", "public static void setOfficialAudioSourceWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALAUDIOSOURCEWEBPAGE, value);\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n\n // Create the WebEngine\n final WebEngine web = webView.getEngine();\n String urlweb=\"http://google.com\";\n\n // LOad the Start-Page\n web.load(urlweb);\n \n }", "public static void setOfficialAudioSourceWebpage(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALAUDIOSOURCEWEBPAGE, value);\r\n\t}", "private void webViewSettings(String url){\n this.registerForContextMenu(wV);\n wV.loadUrl(\"http://\"+url);\n WebIconDatabase.getInstance().open(getDir(\"icons\", MODE_PRIVATE).getPath());\n wV.getSettings().setJavaScriptEnabled(true);\n wV.getSettings().setBuiltInZoomControls(true);\n wV.getSettings().setSupportZoom(true);\n wV.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n case MotionEvent.ACTION_UP:\n if (!v.hasFocus()) {\n v.requestFocus();\n }\n break;\n }\n return false;\n }\n });\n wV.setWebChromeClient(new WebChromeClient() {\n\n @Override\n public void onReceivedIcon(WebView view, Bitmap icon) {\n favicon.setImageBitmap(icon);\n }\n\n @Override\n public void onReceivedTitle(WebView view, String title) {\n getWindow().setTitle(title);\n }\n });\n\n wV.setWebViewClient(new WebViewClient() {\n @Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n\n\n\n return super.shouldOverrideUrlLoading(view, url);\n\n }\n\n @Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n editUrl.setText(url);\n progress.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onPageFinished(WebView view, String url) {\n progress.setVisibility(View.INVISIBLE);\n\n //if not errors\n if(error==0){\n //insert historic\n dao.insertHistoric(MainActivity.this, wV.getUrl());\n }\n error=0;\n\n }\n\n @Override\n public void onReceivedError(WebView view, int errorCode, String description, String failUrl) {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setMessage(description).setPositiveButton(\"OK\",null).setTitle(\"Web Page Error! \"+failUrl);\n builder.show();\n error = 1;\n\n\n }\n });\n }", "@Override\n\t\t\tpublic void locationChanged(WebBrowserNavigationEvent wbe) {\n\t\t\t}", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }", "public void setOfficialArtistWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, value);\r\n\t}", "public void setURL(java.lang.String URL) {\n this.URL = URL;\n }", "public void setOfficialAudioSourceWebpage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALAUDIOSOURCEWEBPAGE, value);\r\n\t}", "@DebugLog\n public void setWebView(WebViewData webViewData){\n webView.loadUrl(webViewData.getUrl());\n webView.setWebViewClient(webViewData.getWebViewClient());\n }", "@BeforeTest(alwaysRun=true)\r\n\t@Parameters({\"browser\",\"url\"})\r\n\tpublic void set(String browser,String url)\r\n\t{\r\n\t\ttry\r\n\t\t{selectBrowser(browser);\r\n\t\tgeturl(url);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"not set up\");\r\n\t\t}\r\n\t}", "public String getWebUrl() {\n return mWebUrl;\n }", "public void setWebsite(String website) {\n this.website = website;\n }", "public void setWebsite(String website) {\n this.website = website;\n }", "public void setInputUrlValue(String value){\n WebElement urlField = driver.findElement(inputUrlLocator); \n setValue(urlField, value);\n \n }", "public static void setOfficialArtistWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALARTISTWEBPAGE, value);\r\n\t}", "public void setOfficialInternetRadioStationHomepage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALINTERNETRADIOSTATIONHOMEPAGE, value);\r\n\t}", "T setUrlTarget(String urlTarget);", "private void loadWeb() {\n\t\tweb.getSettings().setJavaScriptEnabled(true);\r\n\t\t//\r\n\t\tweb.setWebViewClient(new WebViewClient() {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn super.shouldOverrideUrlLoading(web, url);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageFinished(WebView view, String url) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tsuper.onPageFinished(view, url);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\r\n\t\t\t}\r\n\t\t});\r\n\t\tweb.loadUrl(url);\r\n\t}", "@Override\n\tpublic void setManualUrl(java.lang.String manualUrl,\n\t\tjava.util.Locale locale, java.util.Locale defaultLocale) {\n\t\t_scienceApp.setManualUrl(manualUrl, locale, defaultLocale);\n\t}", "private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }", "public void setServerUrl(String newUrl) {\n if(newUrl == null){\n return;\n }\n props.setProperty(\"url\", newUrl);\n saveProps();\n }", "private void setWebContent() {\r\n\t\tsetDataContent();\r\n\t\twebContent.addComponent(new Label(\"Concesionario\"));\r\n\t\twebContent.addComponent(dataContent);\r\n\t}", "protected void setLocation(String location){\r\n this.location = location;\r\n }", "@BeforeClass\n public void GotoURL() {\n\t\tString URL = Base.GetDataFromPropertiesFile(\"url1\");\n\t\t// set implicit wt at page level\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);\n\t\tdriver.get(URL);\n\t\t\n\n\t \n }", "public void setValue(String value) {\n\t\tif (value.contains(URL_TYPE_ABSOLUTE)) {\n\t\t\tthis.type = UrlType.ABSOLUTE;\n\t\t\tthis.value = value;\n\t\t}\n\t\telse if (value.startsWith(\"/\")) {\n\t\t\tthis.type = UrlType.CONTEXT_RELATIVE;\n\t\t\tthis.value = value;\n\t\t}\n\t\telse {\n\t\t\tthis.type = UrlType.RELATIVE;\n\t\t\tthis.value = value;\n\t\t}\n\t}", "public void setHome(Location home) {\n this.home = home;\n }", "public SitoWeb() {\r\n\t\tsuper();\r\n\t\turlBase = null;\r\n\t}", "public void setAdminURL(URI adminURL) {\n this.adminURL = adminURL;\n }", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "public void setUrl(String url) {\n if(url != null && !url.endsWith(\"/\")){\n url += \"/\";\n }\n this.url = url;\n }", "void setUrl(String url) {\n this.url = Uri.parse(url);\n }", "public void setUrl(String url) {\n\t\tthis.url = utf8URLencode(url);\n\t}", "@Override\n\t\t\t\t\tpublic void changed( ObservableValue<? extends State> arg0,\n\t\t\t\t\t\t\tState arg1, State arg2 ) {\n\t\t\t\t\t\tString url = (String) engine\n\t\t\t\t\t\t\t\t.executeScript(\"window.location.href\");\n\t\t\t\t\t\taddrT.setText(url);\n\t\t\t\t\t\t// System.out.println(\"\\turl: \" + url);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tupdatePage(new URL(url));\n\t\t\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public static void setString()\n\t{\n\t\turl = getText();\n\t}", "public void LauncUrl(String url) {\ndriver.get(url);\n\t}", "public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }", "@Override\n public void setupURL_ToVisit(String url) {\n String gotoUrl;\n if (!applicationUrl.toString().endsWith(\"/\")) {\n if (url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + \"/\" + url;\n }\n }\n else {\n if (!url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + url.substring(1);\n }\n }\n getWebdriverInstance().navigate().to(gotoUrl);\n }", "public String getSiteUrl();", "public static void setOfficialInternetRadioStationHomepage(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALINTERNETRADIOSTATIONHOMEPAGE, value);\r\n\t}", "public void redirectToHomeSameSession() {\r\n\t\t\r\n\t\ttry{\r\n\t\twebAppDriver.get(baseUrl);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setEatUri(java.lang.String param) {\n localEatUriTracker = true;\n\n this.localEatUri = param;\n }", "CartogramWizardShowURL (String url)\n\t{\n\t\tmUrl = url;\n\t\n\t}", "@Given(\"^the correct web address$\")\n\tpublic void the_correct_web_address() {\n\t \n\t}" ]
[ "0.70574605", "0.6631726", "0.6539443", "0.6389711", "0.62975234", "0.61682093", "0.6143314", "0.61262774", "0.60734034", "0.6018849", "0.5998442", "0.5981681", "0.59681743", "0.5956363", "0.59442735", "0.59442735", "0.5876292", "0.5844301", "0.58016944", "0.579888", "0.5795678", "0.5794806", "0.5789502", "0.5780843", "0.57644427", "0.5762039", "0.57613015", "0.5739891", "0.5690637", "0.569034", "0.56694114", "0.56650674", "0.5653237", "0.5647569", "0.5646688", "0.56464857", "0.56435686", "0.5643095", "0.56311256", "0.5629592", "0.5619301", "0.5589316", "0.557856", "0.5578276", "0.5576368", "0.5568753", "0.5567539", "0.55670595", "0.5565606", "0.5559055", "0.55537117", "0.5551465", "0.55450654", "0.55380595", "0.5531886", "0.5524788", "0.5524767", "0.5524726", "0.5517386", "0.55137074", "0.5510856", "0.55098826", "0.55073434", "0.5501028", "0.5496836", "0.5491568", "0.5486735", "0.5486391", "0.5486391", "0.5483815", "0.5476044", "0.54737014", "0.5472686", "0.5462327", "0.5460792", "0.54592127", "0.5453226", "0.5449138", "0.54480565", "0.5434095", "0.54330665", "0.5429607", "0.5428505", "0.5423908", "0.5415807", "0.5409172", "0.5406854", "0.53886795", "0.5384399", "0.536754", "0.53616154", "0.5360729", "0.5358401", "0.5356264", "0.53559464", "0.5355436", "0.535449", "0.53497696", "0.5345435", "0.5341869" ]
0.73892415
0
Method that set the facebook page of the location to open in web browser
@Override public void setFacebook(String facebook) { this.facebook = facebook; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n final PackageManager packageManager = act.getPackageManager();\n List<ResolveInfo> list =\n packageManager.queryIntentActivities(intent,\n PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n final String urlBrowser = \"https://www.facebook.com/\"+pageName;\n intent.setData(Uri.parse(urlBrowser));\n }\n\n act.startActivity(intent);\n }", "public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(\n intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n //final String urlBrowser = \"https://www.facebook.com/glasvezelpaleiskwartier\";\n final String urlBrowser = \"https://www.facebook.com/pages/1450066045229608\";\n\n intent.setData(Uri.parse(urlBrowser));\n\n }\n\n startActivity(intent);\n\n }", "public void openUrlInBrowser(String URL) {}", "public ICurrentPage openNewWindow(String url);", "public void facebook(View view) {\n Uri uri = Uri.parse(\"https://www.facebook.com/AnanthPgrmr?href=Message_Everyone\");\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n Toast toast = Toast.makeText(this, \"Opening\", Toast.LENGTH_SHORT);\n toast.show();\n\n // Build and Send the Analytics Event.\n t.send(new HitBuilders.EventBuilder()\n .setCategory(\"About\")\n .setAction(\"FACEBOOK button\")\n .build());\n }", "private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }", "public native void redirect(String url) /*-{\r\n \r\n \r\n\t$wnd.open(url,\"mainwindow\");\r\n\t\r\n }-*/;", "public void openWebPage(String url) {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(intent);\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(\"http://\" + url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "void openUrl (String url);", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }", "@Override\n public void followOnGithub() {\n if (sp.getBoolean(\"in_app_browser\",true)){\n CustomTabActivityHelper.openCustomTab(\n activity,\n customTabsIntent.build(),\n Uri.parse(activity.getString(R.string.github_url)),\n new CustomFallback() {\n @Override\n public void openUri(Activity activity, Uri uri) {\n super.openUri(activity, uri);\n }\n });\n } else {\n try{\n activity.startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri.parse( activity.getString(R.string.github_url))));\n } catch (android.content.ActivityNotFoundException ex){\n view.showBrowserNotFoundError();\n }\n }\n }", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "public void onClickFb(View view) {\n try {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"fb://profile/577574002374672\"));\n startActivity(intent);\n } catch(Exception e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/harporten.varberg\")));\n }\n }", "public void showLink(String url)\n {\n try\n {\n jalview.util.BrowserLauncher.openURL(url);\n } catch (Exception ex)\n {\n JOptionPane\n .showInternalMessageDialog(\n Desktop.desktop,\n \"Unixers: Couldn't find default web browser.\"\n + \"\\nAdd the full path to your browser in Preferences.\",\n \"Web browser not found\", JOptionPane.WARNING_MESSAGE);\n\n ex.printStackTrace();\n }\n }", "@Override\r\n\tprotected void openPage(PageLocator locator, Object... args) \r\n\t{\n\t\t\r\n\t}", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "HtmlPage clickSiteLink();", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }", "private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }", "@Override\n public void run() {\n MainActivity.webView.loadUrl(\"https://www.facebook.com/\" + id);\n }", "public void openSite(View view) {\n Intent toView = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.google.com\"));\n startActivity(toView);\n }", "void openInAppBrowser(String url, String title, String subtitle, int errorMsg);", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }", "@FXML\n private void openFacebookPage() {\n raise(new PersonFacebookOpenEvent(person));\n }", "public void openMuseumWebsite(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "@Override\n public void changing(LocationEvent event)\n {\n if (event.location.equals(\"about:blank\"))\n {\n return;\n }\n \n try\n {\n WorkbenchCorePlugin.getDefault().getWorkbench().getBrowserSupport()\n .createBrowser(\n IWorkbenchBrowserSupport.AS_EDITOR\n | IWorkbenchBrowserSupport.LOCATION_BAR\n | IWorkbenchBrowserSupport.NAVIGATION_BAR\n | IWorkbenchBrowserSupport.STATUS, null, null, null)\n .openURL(new URL(event.location));\n }\n catch (Exception e)\n {\n Utils.logError(\"Couldn't open internal browser\", e, true);\n }\n \n // Cancel the internal event so that we don't open the new location.\n event.doit = false;\n }", "private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }", "@Override\n public void onOpenWebsite(@Nullable String url) {\n if (url == null) return;\n Log.d(TAG, \"onOpenWebsite: Url:\" + url);\n\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "public void goWebSite() {\n\n if (mIsFirst) {\n mSnackbar.setText(getString(R.string.please_wait)).show();\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mSiteData.getUrl()));\n //intent.putExtra(\"url\", webData.getUrl());\n //startActivity(intent);\n startActivityForResult(intent, 100);\n //showToolbarProgressBar();\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }", "@Override\n public void faceClicked() {\n Log.i(\"FACEOFF\", \"FACEOFF\");\n Uri webpage = Uri.parse(\"https://www.facebook.com/GrindDesign\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void openBrowser(Context context, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }", "protected void openWebPage() {\n\t\tEseoTest.driver.get(Configuration.getString(\"website_address\"));\n\t\t//Assert.assertEquals(\"Web page title does not appear correct.\", Configuration.getString(\"login_title\"),\n\t\t\t//\tEseoTest.driver.getTitle());\t\t\n\t\tAssert.assertEquals(\"Browser title bar does not appear correct.\",Configuration.getString(\"homepage_title\"),EseoTest.driver.getTitle());\n\t\tAssert.assertEquals(\"Site title does not appear correct.\",Configuration.getString(\"blog_title\"),EseoTest.driver.findElement(By.tagName(\"h1\")).getText());\n\t\tAssert.assertEquals(\"Site description does not appear correct.\",Configuration.getString(\"blog_description\"),EseoTest.driver.findElement(By.tagName(\"p\")).getText());\n\t\tAssert.assertTrue(\"Log in item does not appear correct.\",EseoTest.driver.findElement(By.linkText(Configuration.getString(\"mainmenu_login_item\"))).isDisplayed());\n\t}", "public static void openWebPage(Context context, String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "@Override\n public void setupURL_ToVisit(String url) {\n String gotoUrl;\n if (!applicationUrl.toString().endsWith(\"/\")) {\n if (url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + \"/\" + url;\n }\n }\n else {\n if (!url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + url.substring(1);\n }\n }\n getWebdriverInstance().navigate().to(gotoUrl);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/mrinalkanti.ray\")));\n\t\t}", "public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}", "private void openUrlInBrowser(String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n url = \"http://\" + url;\n }\n // Open the browser and point it to the given url\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "public LandingPage navigateToApplication(){\n\t\tString url = action.getProperties(\"URL\");\n\t\taction.OpenURl(url).Waitforpageload();\n\t\treturn this;\n\t}", "public static final void openWebpage(URI uri) {\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n if ((desktop != null) && (desktop.isSupported(Desktop.Action.BROWSE))) {\r\n try {\r\n desktop.browse(uri);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Given(\"open landing page {string}\")\n public void openLandingPage(String string) {\n open(variables.URL);\n }", "void openLinkInSystemBrowser(String url, int errorMsg);", "protected void goTo(String url) {\n \t\tcontext.goTo(url);\n \t}", "@Given(\"^user should launch the browser$\")\n\tpublic void user_should_launch_the_browser() throws Throwable {\n\t\tgetUrl(\"https://adactin.com/HotelAppBuild2/\");\n\t \n\t}", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\") \n\tpublic void openWebPage(String url, String browser){\n\t\tString result = selenium.openBrowser(browser);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t\tString result2 = selenium.navigate(url);\n\t\tAssert.assertEquals(selenium.result_pass, result2);\n\t}", "public static void openBrowser(Context context, String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "public interface FacebookLinkHandler{\n public void openFacebookPage(String facebookAppURI, String facebookWebURL);\n public void openInstagramPage(String instagramAppURI, String instagramWebURL);\n}", "public static void goTo() {\n Browser.driver.get(\"https://www.abv.bg/\");\n Browser.driver.manage().window().maximize();\n }", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/\"));\n startActivity(browserIntent);\n }", "private void launchBrowser(URI uri) throws IOException\r\n {\r\n getDesktop().browse(uri);\r\n }", "private void FacebookClick()\n {\n Session session = Session.getActiveSession();\n if (!session.isOpened() && !session.isClosed()) {\n session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback));\n } else {\n Session.openActiveSession(getActivity(), this, true, statusCallback);\n }\n }", "@Override\n \tpublic void navigate(ParsedURL purl, String frame)\n \t{\n \t\tString[] navigateArgs = getNavigateArgs();\n \t\tif (navigateArgs != null && purl != null)\n \t\t{\n \t\t\tString purlString = purl.toString();\n \t\t\tint numArgs = navigateArgs.length;\n \t\t\tnavigateArgs[numArgs - 1] = purlString;\n \t\t\tStringBuilder sb = new StringBuilder();\n \t\t\tfor (int i = 0; i < numArgs; i++)\n \t\t\t\tsb.append(navigateArgs[i]).append(' ');\n \t\t\tDebug.println(\"navigate: \" + sb);\n \t\t\ttry\n \t\t\t{\n \t\t\t\tProcess p = Runtime.getRuntime().exec(navigateArgs);\n \t\t\t}\n \t\t\tcatch (IOException e)\n \t\t\t{\n \t\t\t\terror(\"navigate() - caught exception: \");\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t\telse\n \t\t\terror(\"navigate() - Can't find browser to navigate to.\");\n \t}", "public void openURL(Activity ctx, String url)\n {\n if (isConnected(ctx)) {\n try {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n ctx.startActivity(browserIntent);\n } catch (Exception e) {\n\n }\n } else {\n Dialogs.getInstance().simpleNoInternet(ctx);\n }\n }", "@Override\n\tprotected void openPage(PageLocator locator, Object... args) {\n\t\tget(\"/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t}", "public void openWebBrowser(String stringURL) {\r\n\t\tWebBrowser.openBrowser(stringURL);\r\n\t}", "public String showWebPage(String url, boolean usePhoneGap) {\r\n try {\r\n \tSystem.out.println(\"showWebPage usePhoneGap=\" + usePhoneGap);\r\n Intent intent = null;\r\n if (usePhoneGap) {\r\n \t// Loads and displays a new PhoneGap app on top of current PhoneGap app.\r\n \t// For the currently running PhoneGap app:\r\n \t// \t\tIf keepRunning=true (default), then the current app continues to run in background\r\n \t// \t\tIf keepRunning=false, then the current app is paused by Android\r\n \t// When BACK is pressed, the current app has focus.\r\n \t\r\n intent = new Intent().setClass(this.ctx, com.phonegap.DroidGap.class);\r\n \r\n //set the url to be a local file that sets up phonegap\r\n intent.setData(Uri.parse(url)); // This line will be removed in future.\r\n intent.putExtra(\"url\", url);\r\n\r\n // Timeout parameter: 60 sec max - May be less if http device timeout is less.\r\n intent.putExtra(\"loadUrlTimeoutValue\", 60000);\r\n // intent.putExtra(\"loadInWebView\",true);\r\n\r\n // These parameters can be configured if you want to show the loading dialog\r\n intent.putExtra(\"loadingDialog\", \"Wait,Loading web page...\"); // show loading dialog\r\n intent.putExtra(\"hideLoadingDialogOnPageLoad\", true); // hide it once page has completely loaded\r\n //this will cause the DroidGap to send javascript notifications that the url has been updated\r\n // intent.putExtra(\"updateLocation\",true);\r\n \r\n \r\n System.out.println(\"childbrowser, loading url\");\r\n \t//this is the main webView\r\n // webView.loadUrl(url);\r\n //droidGap.updateLocation =true;\r\n \r\n }\r\n else {\r\n \r\n intent = new Intent(Intent.ACTION_VIEW);\r\n intent.setData(Uri.parse(url));\r\n\r\n }\r\n \t \tthis.ctx.startActivity(intent);\r\n //this.ctx.startActivityForResult((Plugin) this, intent,0);\r\n \r\n return \"\";\r\n } catch (android.content.ActivityNotFoundException e) {\r\n System.out.println(\"ChildBrowser: Error loading url \"+url+\":\"+ e.toString());\r\n return e.toString();\r\n }\r\n }", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }", "private void openBrowser(String Url) {\n \tif (Url != null && Url.trim().length()>0) {\n \t\tUri uri = Uri.parse(Url);\n \tIntent i = new Intent(Intent.ACTION_VIEW, uri);\n \tstartActivity(i);\n \t} \t\n }", "public void openPage(final String webUrl) {\n openPageByUrlAndAssert(webUrl, PublicWebHelper.Page.PAGE_URI);\n }", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}", "void gotoEditProfile(String fbId);", "public void gppShare_setURLToShareAndOpen (String urlToShare) {\n\t\tGPPShare.sharedInstance().shareDialog().setURLToShare(new NSURL(urlToShare)).open();\n\t}", "public static void openWebsite(Context context, String url) {\n Uri articleUri = Uri.parse(url);\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, articleUri);\n context.startActivity(websiteIntent);\n }", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }", "public void switchToEvisitPageFrame() {\r\n\t\tcontrols.switchToFrame(\"eVisit\", \"CSS_evisit_Iframe\");\r\n\t}", "public static void goTo() {\n Browser.driver.get(\"https://www.amazon.co.uk/\");\n Browser.driver.manage().window().maximize();\n }", "void setClickURL(java.lang.String clickURL);", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.gteducation.in\"));\n startActivity(intent);\n Toast.makeText(NoticeActivity.this,\"go to my website\",Toast.LENGTH_SHORT).show();\n\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\DriverFiles\\\\chromedriver.exe\");\n\t\tChromeDriver driver = new ChromeDriver();\n\t\tString url = \"http://facebook.com\";\n\t\tdriver.get(url);\n\t\tString Expected_FacebookHomePageTitle = \"Facebook – log in or sign up\";\n\t\tSystem.out.println(\"The Expected Facebook Homepage Title is:\" +Expected_FacebookHomePageTitle);\n\t\tString Actual_FacebookHomePageTitle= driver.getTitle();\n\t\tSystem.out.println(\"The Title of Facebook Home Page is:\" +Actual_FacebookHomePageTitle);\n\t\t//Validating the title of Facebook homePage\n\t\t\n\t\tif(Actual_FacebookHomePageTitle.equals(Expected_FacebookHomePageTitle))\n\t\t\t\t{\n\t\tWebElement email =\tdriver.findElementById(\"email\");\n\t\tWebElement pass =\tdriver.findElementById(\"pass\");\n\t\tWebElement login = driver.findElementById(\"loginbutton\");\n\t\temail.sendKeys(\"sumalatha15\");\n\t\tpass.sendKeys(\"namish\");\n\t\tlogin.click();\n\t\t\t\n\t\t\tSystem.out.println(\"TiTle matched-Pass\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Title Not matched-Fail \");\n\t\t}\n\t\t\n\t\t//Capturing the url of the facebook /homepage\n\t\t\n\t\tString Actual_FacebookHomePageurl = driver.getCurrentUrl();\n System.out.println(\"The Actual url of facebookhomepage is:\"+Actual_FacebookHomePageurl);\n String Expected_FacebookHomePageUrl = \"facebook.com\";\n if(Actual_FacebookHomePageurl.contains(Expected_FacebookHomePageUrl))\n {\n \tSystem.out.println(\"url matched-Pass\");\n }\n \n else\n {\n \tSystem.out.println(\"url matche-Fail\");\n }\n\t\t// driver.quit();\n\t}", "public void openUrl(String url) {\n driver.get(url);\n }", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "private void openUpdate() {\n\t\tString url = MySoup.getUpdateLink(SITE);\n\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\ti.setData(Uri.parse(url));\n\t\tstartActivity(i);\n\t\tfinish();\n\t}", "@Override\n\t\t\tpublic void windowWillOpen(WebBrowserWindowWillOpenEvent arg0) {\n\t\t\t}", "protected void WebClicked(View view){\n String url = this.itm.getItem(position).getUrl();\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n try {\n startActivity(browserIntent);\n } catch (ActivityNotFoundException e){\n Toast.makeText(getBaseContext(), \"Webpage \" + url + \"does not exist\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\tpublic void locationChanging(WebBrowserNavigationEvent arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\tmDialog.findViewById(R.id.rl).setVisibility(View.VISIBLE);\n\t\t\t\t// mDialog.findViewById(R.id.rl).startAnimation(AnimationUtils.loadAnimation(mActivity, android.R.anim.fade_in));\n\t\t\t\tLogger.e(DialogNotifyUpdate.class.getSimpleName() + \": \" + url);\n\t\t\t\tif (url.contains(\"openbrowser=1\")) {\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, \n\t\t\t\t\t\t\tUri.parse(url));\n\t\t\t\t\tmActivity.startActivity(intent);\n\t\t\t\t} \n\t\t\t}", "@Override\n\t\t\tpublic void locationChanged(WebBrowserNavigationEvent wbe) {\n\t\t\t}", "public static void openURL(final String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse(url));\n _instance.startActivity(Intent.createChooser(intent, \"\"));\n }", "@Override\n public void onClick(View view) {\n Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://petobesityprevention.org/\"));\n startActivity(browser);\n }", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "public void setSiteLocation(URI location) {\n \t\tthis.siteLocation = location;\n \t}", "HtmlPage clickLink();", "@Override\n public void grindClicked() {\n Uri webpage = Uri.parse(\"http://www.grind-design.com\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void changeUrl() {\n url();\n }", "@Override\n public void onClick(View view) {\n Intent httpIntent = new Intent(Intent.ACTION_VIEW);\n httpIntent.setData(Uri.parse(\"http://bvmengineering.ac.in\"));\n\n startActivity(httpIntent);\n\n }", "public void openApp(String Url) {\n\t\tfd = new FirefoxDriver();\r\n\t\tfd.get(Url);\r\n\t\tfd.manage().window().maximize();\r\n\t}", "public static void setExternalWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_EXTERNAL_WWWBROWSER, brow );\n }", "@Given(\"The dealer open the MilesWeb portal Dealer home page {string}\")\n public void the_dealer_open_the_MilesWeb_portal_Dealer_home_page(String url) {\n navigateTo.milesWebHomePage(url, \"MilesWeb portale Dealer\");\n }", "@Given(\"^Open mmt home page$\")\n\tpublic void open_mmt_home_page() throws Throwable {\n\t loginPage = new LoginPage();\n\t}", "public static void main(String asrgs[]) {\r\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\tWebDriver driver=new ChromeDriver();\r\n\tdriver.navigate().to(\"https://www.facebook.com/\");\r\n\tdriver.findElement(By.name(\"email\")).sendKeys(\"[email protected]\");\r\n\tdriver.findElement(By.name(\"pass\")).sendKeys(\"Sainaga@5\");\r\n\tdriver.findElement(By.name(\"login\")).click();\r\n\tdriver.findElement(By.className(\"_6s5d _71pn _-kb segoe\")).click();\r\n \r\n}" ]
[ "0.6693571", "0.6616727", "0.65728486", "0.64110726", "0.6388067", "0.63267606", "0.6287382", "0.62349516", "0.623162", "0.62156737", "0.6215046", "0.6211569", "0.62086606", "0.61941904", "0.61854106", "0.6183277", "0.61608976", "0.6132246", "0.61239636", "0.61078435", "0.6089418", "0.60794353", "0.6059025", "0.6034962", "0.60266083", "0.6022268", "0.6022205", "0.6006269", "0.59982395", "0.5992149", "0.5973152", "0.5968351", "0.59666204", "0.5965616", "0.5948583", "0.5947222", "0.5939085", "0.59379476", "0.5910602", "0.59046894", "0.58832717", "0.5871515", "0.58650166", "0.58599025", "0.5844556", "0.5840686", "0.58106095", "0.57841676", "0.5783289", "0.57715476", "0.5771114", "0.573383", "0.57332146", "0.5722388", "0.57031935", "0.56947035", "0.5687655", "0.5681994", "0.5680407", "0.5679234", "0.56787914", "0.5664961", "0.5664244", "0.5663115", "0.5661768", "0.5654332", "0.5630839", "0.5628142", "0.56049854", "0.5602029", "0.5594588", "0.5591992", "0.5589815", "0.5588285", "0.55646086", "0.55551326", "0.55504143", "0.5540626", "0.5537013", "0.55347824", "0.5525101", "0.5517356", "0.55000454", "0.5498413", "0.5496722", "0.5495751", "0.5495047", "0.5487127", "0.5480876", "0.5478897", "0.5475805", "0.546975", "0.54683495", "0.5466738", "0.5466287", "0.5464147", "0.54539955", "0.5452444", "0.54485154", "0.54398555" ]
0.56317043
66
Method that set the facebook id of the location to open in facebook app
@Override public void setIdFacebook(String idFacebook) { this.idFacebook = idFacebook; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getIdFacebook() {\n return idFacebook;\n }", "void gotoEditProfile(String fbId);", "@Override\n public void setFacebook(String facebook) {\n this.facebook = facebook;\n }", "public void facebook(View view) {\n Uri uri = Uri.parse(\"https://www.facebook.com/AnanthPgrmr?href=Message_Everyone\");\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n Toast toast = Toast.makeText(this, \"Opening\", Toast.LENGTH_SHORT);\n toast.show();\n\n // Build and Send the Analytics Event.\n t.send(new HitBuilders.EventBuilder()\n .setCategory(\"About\")\n .setAction(\"FACEBOOK button\")\n .build());\n }", "public void onClickFb(View view) {\n try {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"fb://profile/577574002374672\"));\n startActivity(intent);\n } catch(Exception e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/harporten.varberg\")));\n }\n }", "@OnClick(R.id.buttonFbLogin)\n void facebookLogin()\n {\n startActivityForResult(new Intent(LoginSignupOptionActivity.this,\n FbLoginActivity.class), Keys.FACEBOOK_CODE);\n }", "private void FacebookClick()\n {\n Session session = Session.getActiveSession();\n if (!session.isOpened() && !session.isClosed()) {\n session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback));\n } else {\n Session.openActiveSession(getActivity(), this, true, statusCallback);\n }\n }", "public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n final PackageManager packageManager = act.getPackageManager();\n List<ResolveInfo> list =\n packageManager.queryIntentActivities(intent,\n PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n final String urlBrowser = \"https://www.facebook.com/\"+pageName;\n intent.setData(Uri.parse(urlBrowser));\n }\n\n act.startActivity(intent);\n }", "public void login() {\n String appId = \"404127593399770\";\n String redirectUrl = \"https://www.facebook.com/connect/login_success.html\";\n String loginDialogUrl = facebookClient.getLoginDialogUrl(appId, redirectUrl, scopeBuilder);\n Gdx.net.openURI(loginDialogUrl);\n }", "public void loginToFB()\r\n {\n \t\r\n\t String access_token = ThisUserConfig.getInstance().getString(ThisUserConfig.FBACCESSTOKEN);\r\n\t long expires = ThisUserConfig.getInstance().getLong(ThisUserConfig.FBACCESSEXPIRES);\r\n\t \r\n\t if (access_token != \"\") {\r\n\t facebook.setAccessToken(access_token);\r\n\t }\r\n\t \r\n\t if (expires != 0 && expires != -1) {\r\n\t facebook.setAccessExpires(expires);\r\n\t }\r\n \t\r\n \t if (!facebook.isSessionValid()) {\r\n \t\t ProgressHandler.dismissDialoge();\r\n \t\t facebook.authorize(underlying_activity, permissions, new LoginDialogListener()); \r\n \t\t \r\n \t }\r\n }", "public void setLocation(URI location)\r\n/* 288: */ {\r\n/* 289:432 */ set(\"Location\", location.toASCIIString());\r\n/* 290: */ }", "public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(\n intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n //final String urlBrowser = \"https://www.facebook.com/glasvezelpaleiskwartier\";\n final String urlBrowser = \"https://www.facebook.com/pages/1450066045229608\";\n\n intent.setData(Uri.parse(urlBrowser));\n\n }\n\n startActivity(intent);\n\n }", "private void loginFacebook() {\n FaceBookManager.login(LoginActivity.this, this);\n }", "public static void setAppId(String id) {\n if (Platform.appId == null) {\n Platform.appId = id;\n // reset originId\n Platform.originId = null;\n log.info(\"application instance ID set to {}\", Platform.appId);\n } else {\n throw new IllegalArgumentException(\"application instance ID is already set\");\n }\n }", "public void setLinkid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localLinkidTracker = true;\r\n } else {\r\n localLinkidTracker = false;\r\n \r\n }\r\n \r\n this.localLinkid=param;\r\n \r\n\r\n }", "@FXML\n private void openFacebookPage() {\n raise(new PersonFacebookOpenEvent(person));\n }", "private void initFBFacebookLogIn() {\n mFacebookCallbackManager = CallbackManager.Factory.create();\n mFacebookLoginButton.setFragment(this);\n mFacebookLoginButton.setReadPermissions(\"email\", \"public_profile\");\n mFacebookLoginButton.registerCallback(mFacebookCallbackManager, new FacebookCallback<LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n mFaceBookLogInTextView.setText(\"onSuccess\");\n handleFacebookAccessToken(loginResult.getAccessToken());\n }\n\n @Override\n public void onCancel() {\n mFaceBookLogInTextView.setText(\"onCancel\");\n }\n\n @Override\n public void onError(FacebookException error) {\n mFaceBookLogInTextView.setText(\"error : \" + error.getMessage());\n }\n\n });\n }", "public final void mo32362c() {\n Editor edit = PreferenceManager.getDefaultSharedPreferences(C13499h.m39721g()).edit();\n edit.putString(\"com.facebook.appevents.SourceApplicationInfo.callingApplicationPackage\", this.f34929a);\n edit.putBoolean(\"com.facebook.appevents.SourceApplicationInfo.openedByApplink\", this.f34930b);\n edit.apply();\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, FacebookLoginActivity.class);\n startActivity(intent);\n }", "@Override\n public void run() {\n MainActivity.webView.loadUrl(\"https://www.facebook.com/\" + id);\n }", "private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }", "public Facebook(String handleName) {\n this.handleName = handleName;\n// this.socialActivityRef = socialActivityRef;\n }", "public void loginToFacebook() {\n\n\t\t mPrefs = getPreferences(MODE_PRIVATE);\n\t\t String access_token = mPrefs.getString(\"access_token\", null);\n\t\t long expires = mPrefs.getLong(\"access_expires\", 0);\n\n\t\t if (access_token != null) {\n\t\t\t facebook.setAccessToken(access_token);\n\t\t\t fb_access_token=access_token;\n\n\t\t\t Log.d(\"FB Sessions\", \"\" + facebook.isSessionValid());\n\t\t }\n\n\t\t if (expires != 0) {\n\t\t\t facebook.setAccessExpires(expires);\n\t\t }\n\n\t\t if (!facebook.isSessionValid() || facebook.isSessionValid()) {\n\t\t\t facebook.authorize(this,\n\t\t\t\t\t new String[] { \"email\",\"user_about_me\",\"public_profile\",\"publish_checkins\", \"publish_stream\" },\n\t\t\t\t\t new DialogListener() {\n\n\t\t\t\t @Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t // Function to handle cancel event\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }\n\n\t\t\t\t @Override\n\t\t\t\t public void onComplete(Bundle values) {\n\t\t\t\t\t // Function to handle complete event\n\t\t\t\t\t // Edit Preferences and update facebook acess_token\n\t\t\t\t\t SharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t editor.putString(\"access_token\",\n\t\t\t\t\t\t\t facebook.getAccessToken());\n\t\t\t\t\t fb_access_token=facebook.getAccessToken();\n\t\t\t\t\t editor.putLong(\"access_expires\",\n\t\t\t\t\t\t\t facebook.getAccessExpires());\n\t\t\t\t\t editor.commit();\n\n\t\t\t\t\t // Making Login button invisible\n\t\t\t\t\t getProfileInformation();\n\t\t\t\t\t //Log.w(\"email\",uEmail);\n\n\n\t\t\t\t }\n\n\t\t\t\t @Override\n\t\t\t\t public void onError(DialogError error) {\n\t\t\t\t\t // Function to handle error\n\n\t\t\t\t\t errorMessage = \"Facebook Error Occured\";\n\t\t\t\t\t getResponse();\n\n\t\t\t\t }\n\n\t\t\t\t @Override\n\t\t\t\t public void onFacebookError(FacebookError fberror) {\n\t\t\t\t\t // Function to handle Facebook errors\n\n\t\t\t\t\t errorMessage = \"Facebook Error Occured\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }\n\t\t\t });\n\t\t }\n\t }", "public void setNativePreviewWindowId(Object id);", "public final void setLocationID(java.lang.String locationid)\r\n\t{\r\n\t\tsetLocationID(getContext(), locationid);\r\n\t}", "void loginByFacebook(LoginByFacebookRequest loginByFacebookRequest);", "public void setLocationID(int value) {\n this.locationID = value;\n }", "public void openPortal(String id){\n\n\n\n\n }", "private void shareToFacebook(Context context, CallbackManager callbackManager, Uri uri) {\n Toast.makeText(context, \"start sharing to facebook, \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n //com.facebook.orca\n //com.facebook.katana\n //com.example.facebook\n //com.facebook.android\n String facebookPackage = \"com.facebook.katana\";\n if (AppUtil.getInstance().isAppInstalled(context, facebookPackage)) {\n //using default intent\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"image/*\");\n// intent.putExtra(Intent.EXTRA_STREAM, uri);\n// intent.putExtra(Intent.EXTRA_TEXT, \"this is a simple extra text\");\n// intent.setPackage(facebookPackage);\n//// startActivity(Intent.createChooser(intent, \"pick an app to ...\"));\n// startActivity(intent);\n\n //using sdk but native facebook app has been installed\n sharePhotoToFacebook(context, callbackManager, uri);\n\n } else {\n loginAndShareToFacebook(context, callbackManager, uri);\n }\n\n\n }", "private void startPersonalActivity(String user_id) {\n }", "public void setNativeVideoWindowId(Object id);", "public void setSiteLocation(URI location) {\n \t\tthis.siteLocation = location;\n \t}", "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n getApplicationContext().startActivity(myIntent);\n\n }", "public void loginToFacebook() {\n\n\t\tmPrefs = getSharedPreferences(Constants.SOCIAL_MEDIA, MODE_PRIVATE);\n\t\tString access_token = mPrefs.getString(\"access_token\", null);\n\t\tlong expires = mPrefs.getLong(\"access_expires\", 0);\n\n\t\tif (access_token != null) {\n\t\t\tfacebook.setAccessToken(access_token);\n\t\t\n\t\t\tLog.d(\"FB Sessions\", \"\" + facebook.isSessionValid());\n\t\t}\n\n\t\tif (expires != 0) {\n\t\t\tfacebook.setAccessExpires(expires);\n\t\t}\n\n\t\tif (!facebook.isSessionValid()) {\n\t\t\tfacebook.authorize(this,\n\t\t\t\t\tnew String[] { \"user_photos\",\"user_about_me\",\"email\",\"publish_actions\",\"user_birthday\"},\n\t\t\t\t\tnew DialogListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t\t\t\tSharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t\t\teditor.putString(\"access_token\",\n\t\t\t\t\t\t\t\t\tfacebook.getAccessToken());\n\t\t\t\t\t\t\teditor.putLong(\"access_expires\",\n\t\t\t\t\t\t\t\t\tfacebook.getAccessExpires());\n\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\tLog.d(\"Arv\", \"Calling getProfileInformation\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgetProfileInformation();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postImageonWall(mPrefs.getString(\"access_token\", null));\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tif(Integer.parseInt(getIntent().getExtras().getString(\"from\"))==1){\n\t\t\t\t\t\t\t//postOnWall(\"testing arvind\");\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\tgetProfileInformation();\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onError(DialogError error) {\n\t\t\t\t\t\t\t// Function to handle error\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFacebookError(FacebookError fberror) {\n\t\t\t\t\t\t\t// Function to handle Facebook errors\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t}\n\t\telse{\n\t\t\t//postOnWall(\"testing arvind\");\n//\t\t\tif(Integer.parseInt(getIntent().getExtras().getString(\"from\"))==1){\n//\t\t\t\tpostOnWall(\"testing arvind\");\n//\t\t\t}\n//\t\t\telse{\n\t\t\t\tgetProfileInformation();\n//\t\t\t}\n\t\t\t\n\t\t\t//postImageonWall(mPrefs.getString(\"access_token\", null));\n\t\t\t//\n\t\t}\n\t}", "public void connectToFB() {\n List<String> permissions = new ArrayList<String>();\n permissions.add(\"publish_stream\");\n\n currentSession = new Session.Builder(this).build();\n currentSession.addCallback(sessionStatusCallback);\n\n Session.OpenRequest openRequest = new Session.OpenRequest(this);\n openRequest.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);\n openRequest.setRequestCode(Session.DEFAULT_AUTHORIZE_ACTIVITY_CODE);\n openRequest.setPermissions(permissions);\n currentSession.openForPublish(openRequest);\n }", "private Uri getFacebookUri(String facebookKeyWords) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(getResources().getString(R.string.httpsScheme))\n .authority(getResources().getString(R.string.facebookWebsite))\n .appendPath(getResources().getString(R.string.search))\n .appendPath(getResources().getString(R.string.str))\n .appendPath(facebookKeyWords)\n .appendPath(getResources().getString(R.string.keywords_search))\n ;\n return builder.build();\n }", "public void setAppId(String value)\r\n {\r\n getSemanticObject().setProperty(data_appId, value);\r\n }", "public OtherActivity () {\n super();\n location = \"nowhere\";\n }", "private void setUpFacebook() {\n mCallbackManager = CallbackManager.Factory.create();\n loginButton = findViewById(R.id.facebook_login);\n loginButton.setReadPermissions(\"email\", \"public_profile\");\n loginButton.registerCallback(mCallbackManager, new FacebookCallback<LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n Log.d(TAG, \"facebook:onSuccess:\" + loginResult);\n handleFacebookAccessToken(loginResult.getAccessToken());\n }\n\n @Override\n public void onCancel() {\n Log.d(TAG, \"facebook:onCancel\");\n // ...\n }\n\n @Override\n public void onError(FacebookException error) {\n Log.d(TAG, \"facebook:onError\", error);\n // ...\n }\n });\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // setContentView(R.layout.activity_login);\n super.onCreate(savedInstanceState);\n FacebookSdk.sdkInitialize(getApplicationContext());\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n\n // LoginButton loginButton = (LoginButton) findViewById(R.id.login_button);\n // loginButton.setReadPermissions(Arrays.asList(\"public_profile, email, user_birthday\"));\n Log.e(\"Oncreate\", \"Oncreate\");\n\n // loginButton.setBackgroundResource(R.mipmap.ic_launcher);\n callbackManager = CallbackManager.Factory.create();\n\n\n\n /*\n AccessToken accessToken = AccessToken.getCurrentAccessToken();\n if(accessToken!=null){\n Log.e(\"AccesTokenCurrent\",accessToken.getToken());\n }\n\n */\n accessTokenTracker = new AccessTokenTracker() {\n @Override\n protected void onCurrentAccessTokenChanged(AccessToken oldToken, AccessToken newToken) {\n Log.e(\"TokenChanged\", \"Entro\");\n\n }\n };\n\n profileTracker = new ProfileTracker() {\n @Override\n protected void onCurrentProfileChanged(Profile oldProfile, Profile newProfile) {\n\n Log.e(\"ProfileChanged\", \"Entro\");\n /*\n if(oldProfile.getName()!=null){\n Log.e(\"TokenOld\",\"Entro\"+oldProfile.getName());\n }\n if(newProfile.getName()!=null){\n Log.e(\"TokenNew\",\"Entro\"+newProfile.getName());\n }\n */\n }\n };\n\n accessTokenTracker.startTracking();\n profileTracker.startTracking();\n\n profile = Profile.getCurrentProfile();\n if (profile != null) {\n if (intent != null)\n\n startActivity(intent);\n Log.e(\"OtraActivity\", \"Other activity\");\n }\n\n\n /* loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(\n loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n // Application code\n Log.e(\"LoginActivity1111\", \"hhh\" + response.toString());\n String name = object.optString(\"name\");\n String email = object.optString(\"email\");\n String id = object.optString(\"id\");\n prefs = getSharedPreferences(\"Login\", getApplicationContext().MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"name\", name);\n editor.putString(\"email\", email);\n editor.putString(\"id\", id);\n editor.commit();\n\n\n intent = new Intent(LoginActivity.this, MainActivity.class);\n intent.putExtra(\"name\", name);\n intent.putExtra(\"email\", email);\n intent.putExtra(\"id\", id);\n Log.e(\"LoginActivity22j2\", \"hhh\" + name + \"||||\" + email + \"|||\" + id);\n finish();\n startActivity(intent);\n\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender, birthday\");\n request.setParameters(parameters);\n request.executeAsync();\n\n\n }\n\n @Override\n public void onCancel() {\n Toast.makeText(getApplicationContext(), \"Cancelado\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onError(FacebookException error) {\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_SHORT).show();\n\n }\n });*/\n\n // && AccessToken.getCurrentAccessToken()!=null;\n /*\n if(Profile.getCurrentProfile() == null) {\n mProfileTracker = new ProfileTracker() {\n @Override\n protected void onCurrentProfileChanged(Profile profile, Profile profile2) {\n Log.e(\"facebook - profilenull\", profile2.getFirstName()+\"+++\"+profile2.getLinkUri());\n mProfileTracker.stopTracking();\n }\n };\n mProfileTracker.startTracking();\n }\n else {\n Profile profile = Profile.getCurrentProfile();\n Log.e(\"facebook - profile!null\", profile.getFirstName()+profile.getLinkUri());\n\n }*/\n //intent\n\n\n /* FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Snackbar.make(view, \"Replace with your own action\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }\n });*/\n\n /* try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.example.alberto.loginfacebook\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }*/\n\n\n // ATTENTION: This was auto-generated to implement the App Indexing API.\n // See https://g.co/AppIndexing/AndroidStudio for more information.\n // client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();\n }", "void setLocationURI(URI locationURI);", "@Override\n public void faceClicked() {\n Log.i(\"FACEOFF\", \"FACEOFF\");\n Uri webpage = Uri.parse(\"https://www.facebook.com/GrindDesign\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void gppShare_setURLToShareAndOpen (String urlToShare) {\n\t\tGPPShare.sharedInstance().shareDialog().setURLToShare(new NSURL(urlToShare)).open();\n\t}", "@Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n System.out.println(\"JsonFB : \"+response.getJSONObject().toString());\n\n try {\n\n\n name = object.optString(\"name\");\n first_name = object.optString(\"first_name\");\n last_name = object.optString(\"last_name\");\n JSONObject picture = object.getJSONObject(\"picture\");\n JSONObject data = picture.getJSONObject(\"data\");\n String url = data.optString(\"url\");\n\n System.out.println(\"Url : \" + url);\n System.out.println(\"Email : \" + email);\n\n\n if (object.has(\"email\")) {\n\n email = object.optString(\"email\");\n\n } else {\n email = \"\";\n }\n\n if (url == null) {\n url = \"\";\n }\n\n\n\n sharedPreferenceClass.saveData(object.optString(\"id\"),name,email,url, null);\n sharedPreferenceClass.isLooggedIn(true);\n\n Intent goIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(goIntent);\n\n\n\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n//Login bhayera aba uninstall garnu parchha\n }", "public final void setLocationID(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String locationid)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.LocationID.toString(), locationid);\r\n\t}", "public void toSetMarker(View v){\n Intent i = new Intent(Startup_menu_activity.this,testing_location.class);\n startActivity(i);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/mrinalkanti.ray\")));\n\t\t}", "public void setLocationId(String value) { _locationId = value; }", "public void gppShare_setCallToActionButtonWithLabel (String label, String urlToShare, String contentDeepLinkID) {\n\t\tGPPShare.sharedInstance().shareDialog().setURLToShare(new NSURL(urlToShare))\n\t\t\t.setCallToActionButtonWithLabel(new NSString(label), new NSURL(urlToShare), new NSString(contentDeepLinkID)).open();\n\t}", "int getLocationID();", "@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n String scopeParams=\"rw_nus+r_basicprofile\";\n oAuthService = LinkedInOAuthServiceFactory.getInstance()\n .createLinkedInOAuthService(Constants.CONSUMER_KEY,\n Constants.CONSUMER_SECRET);\n\n\n Log.e(\"oAuthService : \", \"*\" + oAuthService);\n\n factory = LinkedInApiClientFactory.newInstance(\n Constants.CONSUMER_KEY, Constants.CONSUMER_SECRET);\n\n liToken = oAuthService\n .getOAuthRequestToken(Constants.OAUTH_CALLBACK_URL);\n Log.e(\"liToken : \", \"*\" + liToken.getAuthorizationUrl());\n Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(liToken\n .getAuthorizationUrl()));\n startActivity(i);\n\n }", "@Override\r\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\r\n context.startActivity(myIntent);\r\n }", "public void onClick(DialogInterface dialog, int id) {\n Intent callGPSSettingIntent = new Intent(\n android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(callGPSSettingIntent);\n }", "public void setOAuthAccessCode(String code, String clientId, String clientSecret, String redirectURI) throws OnshapeException {\n WebTarget target = client.target(\"https://oauth.onshape.com/oauth/token\");\n MultivaluedMap<String, String> formData = new MultivaluedHashMap<>();\n formData.add(\"grant_type\", \"authorization_code\");\n formData.add(\"code\", code);\n formData.add(\"client_id\", clientId);\n formData.add(\"client_secret\", clientSecret);\n formData.add(\"redirect_uri\", redirectURI);\n Response response = target.request().post(Entity.form(formData));\n switch (response.getStatusInfo().getFamily()) {\n case SUCCESSFUL:\n setOAuthTokenResponse(response.readEntity(OAuthTokenResponse.class), new Date(), clientId, clientSecret);\n return;\n default:\n throw new OnshapeException(response.getStatusInfo().getReasonPhrase());\n }\n\n }", "String getFbUrl (ReadOnlyPerson target);", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n\n super.onCreate(savedInstanceState);\n FacebookSdk.sdkInitialize(getApplicationContext());\n setContentView(R.layout.activity_main2);\n System.out.println(FacebookSdk.getApplicationSignature(getApplicationContext()));\n stageHandler=new StageHandler(this);\n stageHandler.updateStagesFromServerIfNeeded();\n if (FirstTimeInMainActivity)\n {\n FirstTimeInMainActivity = false;\n callbackManager = CallbackManager.Factory.create();\n //facebook connecting\n LoginManager.getInstance().registerCallback(callbackManager,\n new FacebookCallback<LoginResult>()\n {\n @Override\n public void onSuccess(LoginResult loginResult) //if success\n {\n Toast.makeText(MainActivity.this, getString(R.string.facebookSuccess), Toast.LENGTH_LONG).show();\n if (Profile.getCurrentProfile() != null)\n {\n stageHandler.newFacebookUser();\n }\n }\n @Override\n public void onCancel() //if cancel\n {\n\n }\n @Override\n public void onError(FacebookException exception) //if error\n {\n Toast.makeText(MainActivity.this, exception.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n\n LoginManager.getInstance().logInWithReadPermissions(MainActivity.this, Arrays.asList(\"public_profile\", \"user_friends\")); //ask for permissions\n }\n\n }", "public void setAuthId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localAuthIdTracker = true;\r\n } else {\r\n localAuthIdTracker = false;\r\n \r\n }\r\n \r\n this.localAuthId=param;\r\n \r\n\r\n }", "public void setLocationId(String locationId);", "public void doLoginWithFacebook() {\n System.out.println(\"Fetching the Authorization URL...\");\n String authorizationUrl = service.getAuthorizationUrl(EMPTY_TOKEN);\n System.out.println(\"Got the Authorization URL!\");\n System.out.println(\"Now go and authorize Scribe here:\");\n this.authorizationUrl = authorizationUrl;\n }", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "void setDefaultApp(String id);", "@Override\n public String getFacebook() {\n return facebook;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n callbackManager = CallbackManager.Factory.create();\n loginButton = (LoginButton) findViewById(R.id.login_button);\n\n loginButton.setReadPermissions(Arrays.asList(EMAIL));\n // If you are using in a fragment, call loginButton.setFragment(this);\n\n // Callback registration\n loginButton.registerCallback(callbackManager, new FacebookCallback <LoginResult>() {\n @Override\n public void onSuccess(LoginResult loginResult) {\n // App code\n\n AccessToken accessToken=loginResult.getAccessToken();\n GraphRequest graphRequest=GraphRequest.newMeRequest(accessToken, new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n Display_data(object);\n }\n });\n Bundle bundle=new Bundle();\n bundle.putString(\"fields\",\"email,id\");\n graphRequest.setParameters(bundle);\n graphRequest.executeAsync();\n }\n\n\n\n @Override\n public void onCancel() {\n // App code\n }\n\n @Override\n public void onError(FacebookException exception) {\n // App code\n\n }\n\n\n });\n\n\n }", "public void setOwnerPhotoURL(String photoURL){\n mEditor.putString(USER_PHOTO_URL, photoURL);\n mEditor.commit();\n }", "private void launchMinglerProfileActivity(long minglerId) {\n\n\t\tIntent minglerIntent = new Intent(this, MinglerActivity.class);\n\t\tminglerIntent.putExtra(Constants.INTENT_ZEPPA_USER_ID, minglerId);\n\t\tstartActivity(minglerIntent);\n\n\t}", "private void startPopupSocialWindowActivity(int selectedFeedId) {\r\n\r\n activity.finish();\r\n Intent intent = new Intent(context,\r\n PopupSocialWindow.class);\r\n intent.putExtra(Constants.FEED_ID, selectedFeedId);\r\n intent.putExtra(InstantMessageFragment.SHOW_KEYBOARD,\r\n true);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\r\n activity.startActivity(intent);\r\n }", "public void setAdvertisingID(final Context context) {\n // Checks if the Thread we are on is Main/UI\n // - If yes runs this function in a new Thread\n if (Looper.myLooper() == Looper.getMainLooper()) {\n new Thread(new Runnable() {\n public void run() {\n String playAdId = Util.getAdvertisingId(context);\n Logger.d(TAG, \"Advertising ID: %s\", playAdId);\n addToMobileContext(Parameters.ANDROID_IDFA, playAdId);\n }\n }).start();\n } else {\n String playAdId = Util.getAdvertisingId(context);\n Logger.d(TAG, \"Advertising ID: %s\", playAdId);\n addToMobileContext(Parameters.ANDROID_IDFA, playAdId);\n }\n }", "public final void setIncomingRequest_Location_Caller(nap.proxies.Location incomingrequest_location_caller)\r\n\t{\r\n\t\tsetIncomingRequest_Location_Caller(getContext(), incomingrequest_location_caller);\r\n\t}", "public static void m47809a(C13308g c13308g, FacebookManager facebookManager) {\n c13308g.f42215a = facebookManager;\n }", "public void setID(Object caller, int id)\n\t{\n\t\tif (caller instanceof DriverManager)\n\t\t{\n\t\t\tdriverID = id;\n\t\t}\n\t}", "private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n getApplications().getFacebookLoginManager().onActivityResult(requestCode, resultCode, data);\n super.onActivityResult(requestCode, resultCode, data);\n }", "public final void openTwitter(Activity act, String twitterId)\n {\n Intent intent = null;\n try {\n // get the Twitter app if possible\n act.getPackageManager().getPackageInfo(\"com.twitter.android\", 0);\n intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"twitter://user?screen_name=\"+twitterId));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n } catch (Exception e) {\n // no Twitter app, revert to browser\n intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://twitter.com/\"+twitterId));\n }\n act.startActivity(intent);\n }", "public void setPresentid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localPresentidTracker = true;\r\n } else {\r\n localPresentidTracker = false;\r\n \r\n }\r\n \r\n this.localPresentid=param;\r\n \r\n\r\n }", "private String setReferralzz(){\n String uid = mAuth.getCurrentUser().getUid();\n String link = INVITE_LINK+uid;\n FIRDynamicLinkComponents referalLink = new FIRDynamicLinkComponents(new NSURL(link) ,\"https://fingertipsandcompany.page.link\");\n\n FIRDynamicLinkIOSParameters iOSParameters = new FIRDynamicLinkIOSParameters(BUNDLE_ID);\n iOSParameters.setMinimumAppVersion(\"1.0.1\");\n iOSParameters.setAppStoreID(\"1496752335\");\n referalLink.setIOSParameters(iOSParameters);\n\n FIRDynamicLinkAndroidParameters androidParameters = new FIRDynamicLinkAndroidParameters(BUNDLE_ID);\n androidParameters.setMinimumVersion(125);\n referalLink.setAndroidParameters(androidParameters);\n\n\n referalLink.shorten(new VoidBlock3<NSURL, NSArray<NSString>, NSError>() {\n @Override\n public void invoke(NSURL shortURL, NSArray<NSString> nsStrings, NSError nsError) {\n if (nsError != null){\n System.out.println(\"Referal Link Shorter Error-------------------->\"+nsError);\n return;\n }\n mInvitationURL = shortURL.getAbsoluteString();\n System.out.println(\"Generated Referral Link \");\n\n }\n });\n\n return mInvitationURL;\n\n }", "public static final String appendId(String url){\n\t\treturn url+\"&APPID=\"+appId;\n\t}", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "protected void setAppID(String newValue) {\n try {\n m_iport = Integer.parseInt(newValue);\n } catch (NumberFormatException exc) {\n m_iport = 0;\n }\n }", "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getApplicationContext().startActivity(myIntent);\n //get gps\n }", "public void setFb(String fb) {\n this.fb = fb == null ? null : fb.trim();\n }", "public static void openGPSSetting(Context context) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n try {\n context.startActivity(intent);\n } catch (ActivityNotFoundException ex) {\n intent.setAction(Settings.ACTION_SETTINGS);\n try {\n context.startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n }\n }", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "@Override\n public void onClick(View v) {\n String id = (String) mapTmp.get(\"id\");\n Intent intent = new Intent(MapActivity.this, ViewMeetingActivity.class);\n intent.putExtra(\"id\", id);\n startActivity(intent);\n }", "public void setPeopleActivityInstanceId(int aPeopleActivityInstanceId)\r\n {\r\n mPeopleActivityInstanceId = aPeopleActivityInstanceId;\r\n }", "private void openPreferredLocationMap()\n\t{\n\n\t\tif (_forecastAdapter != null)\n\t\t{\n\t\t\tCursor cursor = _forecastAdapter.getCursor();\n\n\t\t\tif (cursor != null)\n\t\t\t{\n\t\t\t\tcursor.moveToPosition(0);\n\n\t\t\t\tString posLat = cursor.getString(COL_COORD_LAT);\n\t\t\t\tString posLong = cursor.getString(COL_COORD_LONG);\n\n\t\t\t\tUri geoLocation = Uri.parse(\"geo:\" + posLat + \",\" + posLong);\n\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\n\t\t\t\tintent.setData(geoLocation);\n\n\t\t\t\tif (intent.resolveActivity(getActivity().getPackageManager()) != null)\n\t\t\t\t{\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tTraceUtil.logD(CLASS_NAME, \"openPreferredLocationMap\",\n\t\t\t\t\t\t\t\"Couldn't call \" + geoLocation.toString() +\n\t\t\t\t\t\t\t\t\t\", no receiving apps installed!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setOpenid(String openid) {\n this.openid = openid == null ? null : openid.trim();\n }", "public void setOpenid(String openid) {\n this.openid = openid == null ? null : openid.trim();\n }", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "public void setLocationID(long locationID) {\n this.locationID = locationID;\n }", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t fbsharecode();\n\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t fbsharecode();\n\t\t\t\t\t\t}", "public void setWindowPosition(String windowID, Point location){\n\r\n\t\tdriver.switchTo().window(windowID);\r\n\r\n\t\tif(TEST_PROPERTIES.get(\"Browser\").equalsIgnoreCase(\"chrome\"))\r\n\t\t\tdriver.manage().window().setPosition(location);\r\n\t\telse if(TEST_PROPERTIES.get(\"Browser\").equalsIgnoreCase(\"firefox\"))\r\n\t\t{\r\n\t\t\tjs.executeScript(\"window.moveTo(\"+location.getX()+\",0);\");\r\n\t\t}\r\n\r\n\t\t//\t\tdriver.manage().window().setPosition(location);\r\n\t}", "@Override\n public void onSuccess(LoginResult loginResult) {\n\n callGraphRequestFb();\n// HashMap<String, String> data = new HashMap<>();\n// data.put(\"fb_id\", loginResult.getAccessToken().getUserId());\n// data.put(\"device_token\", FirebaseInstanceId.getInstance().getToken());\n// data.put(\"device_type\", \"android\");\n// fbLoginApi(data);\n }", "@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\tLog.e(\"map\", \"at InfoWindowClisck\");\n\t\t\t\t\n\t\t\t\tString id = marker.getId();\n int mIdx = Integer.parseInt( id.substring(1) ); // m 제외하고 스트링파싱 인트파\n\t\t\t\tArrayList<String> _pathOfPic = mAreaList.get(mIdx).pathOfPic;\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent(\"android.intent.action.CUSTOM_ALBUM\");\n\t\t\t\tintent.putStringArrayListExtra(\"pathOfPic\", _pathOfPic);\n\t\t\t\t\n\t\t\t\tmCtx.startActivity(intent);\t\n\t\t\t\t\n\t\t\t}", "private void openGooglePlay(String appId) throws android.content.ActivityNotFoundException {\n Context context = this.cordova.getActivity().getApplicationContext();\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=\" + appId));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "public void setApplicationID(String value) {\n this.applicationID = value;\n }", "public IdRedirector(Context context,Application app,DB atomDB,Reference feedRoot)\n {\n super(context,null,MODE_CLIENT_FOUND);\n this.app = app;\n this.atomDB = atomDB;\n this.feedRoot = feedRoot;\n }", "@Override\n public void onClick(View v) {\n\n onFacebookLoginClick();\n\n }", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView((int) R.layout.activity_login_option);\n checkUserStatus();\n MyApp.printHashKey(this);\n this.emailTextView = (TextView) findViewById(R.id.emailTextView);\n this.fbLoginButton = (LoginButton) findViewById(R.id.fbLoginButton);\n this.alreadyLinearLayout = (LinearLayout) findViewById(R.id.alreadyLinearLayout);\n this.signUpTextView = (TextView) findViewById(R.id.signUpTextView);\n this.mCallBackManager = CallbackManager.Factory.create();\n this.fbLoginButton.setReadPermissions((List<String>) Arrays.asList(new String[]{\"email\", \"public_profile\"}));\n this.signUpTextView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n LoginOptionActivity.this.startActivity(new Intent(LoginOptionActivity.this, RegisterActivity.class));\n }\n });\n this.fbLoginButton.registerCallback(this.mCallBackManager, new FacebookCallback<LoginResult>() {\n public void onSuccess(LoginResult loginResult) {\n Toast.makeText(LoginOptionActivity.this, \"Success\", 0).show();\n }\n\n public void onCancel() {\n }\n\n public void onError(FacebookException error) {\n Toast.makeText(LoginOptionActivity.this, \"Some Error\", 0).show();\n }\n });\n this.alreadyLinearLayout.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent intent = new Intent(LoginOptionActivity.this, LoginActivity.class);\n intent.addFlags(268468224);\n LoginOptionActivity.this.startActivity(intent);\n }\n });\n }" ]
[ "0.6293803", "0.6169685", "0.599265", "0.58176726", "0.5601329", "0.5543781", "0.54995406", "0.5488921", "0.5413379", "0.5365554", "0.5364575", "0.5335441", "0.53261083", "0.5320013", "0.52824324", "0.52647567", "0.52123433", "0.5201181", "0.5190205", "0.51888144", "0.5179999", "0.5168992", "0.51673687", "0.5134258", "0.5132265", "0.51303434", "0.511482", "0.50860083", "0.50800806", "0.50784254", "0.5070565", "0.5042882", "0.5038418", "0.50215787", "0.50052637", "0.4990687", "0.49778065", "0.4975266", "0.49721524", "0.49691546", "0.4955754", "0.49416903", "0.49109748", "0.48938414", "0.48837924", "0.48807353", "0.4872381", "0.48694596", "0.48651582", "0.48600248", "0.4852945", "0.48443517", "0.48422047", "0.48373324", "0.4829203", "0.48221934", "0.482164", "0.48183843", "0.48111933", "0.48015833", "0.4797262", "0.4789556", "0.47892287", "0.47875637", "0.4785341", "0.478423", "0.4783104", "0.47826883", "0.478178", "0.47719792", "0.47712836", "0.47709635", "0.47680578", "0.47667992", "0.47662908", "0.47563678", "0.47493023", "0.4745849", "0.4743161", "0.47426245", "0.47280008", "0.47279197", "0.4726713", "0.4724294", "0.4723919", "0.47206247", "0.47129354", "0.47129354", "0.47055426", "0.47041753", "0.47018737", "0.47018737", "0.46962428", "0.46904674", "0.46828854", "0.46724156", "0.46690315", "0.46689236", "0.46670213", "0.46608412" ]
0.69041115
0
Method that set the instagram page of the location to open in web browser
@Override public void setInstagram(String instagram) { this.instagram = instagram; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openUrlInBrowser(String URL) {}", "public ICurrentPage openNewWindow(String url);", "void openUrl (String url);", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(\"http://\" + url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }", "void openInAppBrowser(String url, String title, String subtitle, int errorMsg);", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "public void openWebPage(String url) {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(intent);\n }", "public void showLink(String url)\n {\n try\n {\n jalview.util.BrowserLauncher.openURL(url);\n } catch (Exception ex)\n {\n JOptionPane\n .showInternalMessageDialog(\n Desktop.desktop,\n \"Unixers: Couldn't find default web browser.\"\n + \"\\nAdd the full path to your browser in Preferences.\",\n \"Web browser not found\", JOptionPane.WARNING_MESSAGE);\n\n ex.printStackTrace();\n }\n }", "private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }", "private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }", "private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }", "public void openMuseumWebsite(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "@Override\r\n\tprotected void openPage(PageLocator locator, Object... args) \r\n\t{\n\t\t\r\n\t}", "private void openUrlInBrowser(String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n url = \"http://\" + url;\n }\n // Open the browser and point it to the given url\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "@Override\n public void followOnGithub() {\n if (sp.getBoolean(\"in_app_browser\",true)){\n CustomTabActivityHelper.openCustomTab(\n activity,\n customTabsIntent.build(),\n Uri.parse(activity.getString(R.string.github_url)),\n new CustomFallback() {\n @Override\n public void openUri(Activity activity, Uri uri) {\n super.openUri(activity, uri);\n }\n });\n } else {\n try{\n activity.startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri.parse( activity.getString(R.string.github_url))));\n } catch (android.content.ActivityNotFoundException ex){\n view.showBrowserNotFoundError();\n }\n }\n }", "HtmlPage clickSiteLink();", "private void openBrowser(String Url) {\n \tif (Url != null && Url.trim().length()>0) {\n \t\tUri uri = Uri.parse(Url);\n \tIntent i = new Intent(Intent.ACTION_VIEW, uri);\n \tstartActivity(i);\n \t} \t\n }", "@Override\n public void setupURL_ToVisit(String url) {\n String gotoUrl;\n if (!applicationUrl.toString().endsWith(\"/\")) {\n if (url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + \"/\" + url;\n }\n }\n else {\n if (!url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + url.substring(1);\n }\n }\n getWebdriverInstance().navigate().to(gotoUrl);\n }", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "public void openWebBrowser(String stringURL) {\r\n\t\tWebBrowser.openBrowser(stringURL);\r\n\t}", "public static void openTrivia() { \n\t\tdriver.manage().window().setPosition(new Point(400,0));\n\t\tdriver.get(url);\n\t}", "protected void openWebPage() {\n\t\tEseoTest.driver.get(Configuration.getString(\"website_address\"));\n\t\t//Assert.assertEquals(\"Web page title does not appear correct.\", Configuration.getString(\"login_title\"),\n\t\t\t//\tEseoTest.driver.getTitle());\t\t\n\t\tAssert.assertEquals(\"Browser title bar does not appear correct.\",Configuration.getString(\"homepage_title\"),EseoTest.driver.getTitle());\n\t\tAssert.assertEquals(\"Site title does not appear correct.\",Configuration.getString(\"blog_title\"),EseoTest.driver.findElement(By.tagName(\"h1\")).getText());\n\t\tAssert.assertEquals(\"Site description does not appear correct.\",Configuration.getString(\"blog_description\"),EseoTest.driver.findElement(By.tagName(\"p\")).getText());\n\t\tAssert.assertTrue(\"Log in item does not appear correct.\",EseoTest.driver.findElement(By.linkText(Configuration.getString(\"mainmenu_login_item\"))).isDisplayed());\n\t}", "public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }", "public static void goTo() {\n Browser.driver.get(\"https://www.abv.bg/\");\n Browser.driver.manage().window().maximize();\n }", "@Override\n public void grindClicked() {\n Uri webpage = Uri.parse(\"http://www.grind-design.com\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "public void openBrowser(Context context, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }", "public void openSite(View view) {\n Intent toView = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.google.com\"));\n startActivity(toView);\n }", "public void openUrl(String url) {\n driver.get(url);\n }", "@Override\n public void changing(LocationEvent event)\n {\n if (event.location.equals(\"about:blank\"))\n {\n return;\n }\n \n try\n {\n WorkbenchCorePlugin.getDefault().getWorkbench().getBrowserSupport()\n .createBrowser(\n IWorkbenchBrowserSupport.AS_EDITOR\n | IWorkbenchBrowserSupport.LOCATION_BAR\n | IWorkbenchBrowserSupport.NAVIGATION_BAR\n | IWorkbenchBrowserSupport.STATUS, null, null, null)\n .openURL(new URL(event.location));\n }\n catch (Exception e)\n {\n Utils.logError(\"Couldn't open internal browser\", e, true);\n }\n \n // Cancel the internal event so that we don't open the new location.\n event.doit = false;\n }", "@Given(\"^user should launch the browser$\")\n\tpublic void user_should_launch_the_browser() throws Throwable {\n\t\tgetUrl(\"https://adactin.com/HotelAppBuild2/\");\n\t \n\t}", "@Override\n\tprotected void openPage(PageLocator locator, Object... args) {\n\t\tget(\"/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t}", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/\"));\n startActivity(browserIntent);\n }", "public void open() {\n setWebDriver();\n }", "@Given(\"open landing page {string}\")\n public void openLandingPage(String string) {\n open(variables.URL);\n }", "public void goWebSite() {\n\n if (mIsFirst) {\n mSnackbar.setText(getString(R.string.please_wait)).show();\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mSiteData.getUrl()));\n //intent.putExtra(\"url\", webData.getUrl());\n //startActivity(intent);\n startActivityForResult(intent, 100);\n //showToolbarProgressBar();\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }", "@OnClick({R.id.web_img, R.id.web})\n void OnClickWeb() {\n Uri webpage=Uri.parse(\"http://\" + getString(R.string.web));\n Intent intentW=new Intent(Intent.ACTION_VIEW, webpage);\n if (intentW.resolveActivity(getPackageManager()) != null) {\n startActivity(intentW);\n }\n }", "public native void redirect(String url) /*-{\r\n \r\n \r\n\t$wnd.open(url,\"mainwindow\");\r\n\t\r\n }-*/;", "@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\") \n\tpublic void openWebPage(String url, String browser){\n\t\tString result = selenium.openBrowser(browser);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t\tString result2 = selenium.navigate(url);\n\t\tAssert.assertEquals(selenium.result_pass, result2);\n\t}", "void openLinkInSystemBrowser(String url, int errorMsg);", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "@Override\n public void onOpenWebsite(@Nullable String url) {\n if (url == null) return;\n Log.d(TAG, \"onOpenWebsite: Url:\" + url);\n\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public void changeUrl() {\n url();\n }", "private void launchBrowser(URI uri) throws IOException\r\n {\r\n getDesktop().browse(uri);\r\n }", "public static void openWebPage(Context context, String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "public static void openURL(final String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse(url));\n _instance.startActivity(Intent.createChooser(intent, \"\"));\n }", "public void open(){\n driver.get(\"https://demoqa.com/slider\");\n }", "@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}", "public void onClickIg(View view) {\n Uri uri = Uri.parse(\"http://instagram.com/_u/harportenvarberg\");\n Intent likeIng = new Intent(Intent.ACTION_VIEW, uri);\n\n likeIng.setPackage(\"com.instagram.android\");\n\n try {\n startActivity(likeIng);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://instagram.com/harportenvarberg\")));\n }\n }", "public static void goTo() {\n Browser.driver.get(\"https://www.amazon.co.uk/\");\n Browser.driver.manage().window().maximize();\n }", "private void openUpdate() {\n\t\tString url = MySoup.getUpdateLink(SITE);\n\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\ti.setData(Uri.parse(url));\n\t\tstartActivity(i);\n\t\tfinish();\n\t}", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public static void openImageInBrowser(Context context, String url){\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n context.startActivity(browserIntent);\n }", "protected void WebClicked(View view){\n String url = this.itm.getItem(position).getUrl();\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n try {\n startActivity(browserIntent);\n } catch (ActivityNotFoundException e){\n Toast.makeText(getBaseContext(), \"Webpage \" + url + \"does not exist\", Toast.LENGTH_SHORT).show();\n }\n }", "public static void openBrowser(Context context, String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "protected void goTo(String url) {\n \t\tcontext.goTo(url);\n \t}", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}", "public void openIe(){\n\n }", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.gteducation.in\"));\n startActivity(intent);\n Toast.makeText(NoticeActivity.this,\"go to my website\",Toast.LENGTH_SHORT).show();\n\n }", "HtmlPage clickLink();", "public void funcionAppian(View v){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://ustglobalspaindemo.appiancloud.com/suite/tempo/news\"));\n if(intent.resolveActivity(getPackageManager())!= null){\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View view) {\n Intent httpIntent = new Intent(Intent.ACTION_VIEW);\n httpIntent.setData(Uri.parse(\"http://bvmengineering.ac.in\"));\n\n startActivity(httpIntent);\n\n }", "public void openApp(String Url) {\n\t\tfd = new FirefoxDriver();\r\n\t\tfd.get(Url);\r\n\t\tfd.manage().window().maximize();\r\n\t}", "public void displayUrl(String url)\n {\n //Create a new WebView to clear the old data\n createNewWebView();\n\n //Enable JavaScript\n WebSettings webSettings = webView.getSettings();\n webSettings.setJavaScriptEnabled(true);\n\n //Display website to user\n webView.setWebViewClient(new WebViewClient());\n webView.loadUrl(url);\n }", "public void openURL(String url)\n {\n getLdtp().generateKeyEvent(\"<command><shift>o\");\n logger.debug(\"Open Office document from URL: \" + url);\n getLdtp().enterString(url);\n getLdtp().generateKeyEvent(\"<enter>\");\n }", "public static void openURL(String url) throws Exception\r\n\t{\r\n\t\t//deleteCookies();\r\n\r\n\t\t//IronWasp Connection logic for Security Testing\r\n\t\tString browser = FilesAndFolders.getPropValue(\"driverName\");\r\n\t\tif (browser.contentEquals(\"firefoxIronWasp\"))\r\n\t\t{\r\n\t\t\tIronWasp.workflowStart();\t\r\n\t\t\t//\t\t\ttry\r\n\t\t\t//\t\t\t{\r\n\t\t\t//\t\t\t\tIronWasp.workflowStart();\t\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\t\t\tcatch(ConnectException e)\r\n\t\t\t//\t\t\t{\r\n\t\t\t//\t\t\t\tReporter.log(\"IronWasp Server has not been started...Ignore this error if you don't wish to track your test flow traffic & requests for IronWasp...\",true);\r\n\t\t\t//\t\t\t}\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"url: \" + url);\r\n\t\tdriver.get(url);\r\n\t\tSystem.out.println(\"URL loaded successfully:\" + url);\r\n\r\n\t\t//handling ssl certification\r\n\t\ttry{\r\n\t\t\tdriver.navigate().to(\"javascript:document.getElementById('overridelink').click()\");\r\n\t\t}\r\n\t\tcatch(Exception e){}\r\n\r\n\t\twindowMax();\r\n\t\tWebCommonMethods.implicitSleep();\r\n\t}", "HtmlPage clickSiteName();", "public void openPage(final String webUrl) {\n openPageByUrlAndAssert(webUrl, PublicWebHelper.Page.PAGE_URI);\n }", "@Override\n public void onClick(View view) {\n Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://petobesityprevention.org/\"));\n startActivity(browser);\n }", "@Test\r\n\t\tpublic static void LaunchUrl()\r\n\t\t{\r\n\t\t\tdriver.manage().deleteAllCookies();\r\n\t\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\t\tdriver.manage().window().maximize();\t\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\r\n\t\t\r\n\t\t}", "public void openURL(Activity ctx, String url)\n {\n if (isConnected(ctx)) {\n try {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n ctx.startActivity(browserIntent);\n } catch (Exception e) {\n\n }\n } else {\n Dialogs.getInstance().simpleNoInternet(ctx);\n }\n }", "public void openURL(String url) {\r\n\t\t\r\n\t\tfinal String errMsg = \"Error attempting to launch web browser\";\r\n\t\tString osName = System.getProperty(\"os.name\");\r\n\t\ttry {\r\n\t\t\tif (osName.startsWith(\"Mac OS\")) {\r\n\t\t\t\tClass fileMgr = Class.forName(\"com.apple.eio.FileManager\");\r\n\t\t\t\tMethod openURL = fileMgr.getDeclaredMethod(\"openURL\",\r\n\t\t\t\t\t\tnew Class[] {String.class});\r\n\t\t\t\topenURL.invoke(null, new Object[] {url});\r\n\t\t\t}\r\n\t\t\telse if (osName.startsWith(\"Windows\"))\r\n\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \" + url);\r\n\t\t\telse { //assume Unix or Linux\r\n\t\t\t\tString[] browsers = {\r\n\t\t\t\t\t\t\"firefox\", \"opera\", \"konqueror\", \"epiphany\", \"mozilla\", \"netscape\" };\r\n\t\t\t\tString browser = null;\r\n\t\t\t\tfor (int count = 0; count < browsers.length && browser == null; count++)\r\n\t\t\t\t\tif (Runtime.getRuntime().exec(\r\n\t\t\t\t\t\t\tnew String[] {\"which\", browsers[count]}).waitFor() == 0)\r\n\t\t\t\t\t\tbrowser = browsers[count];\r\n\t\t\t\tif (browser == null)\r\n\t\t\t\t\tthrow new Exception(\"Could not find web browser\");\r\n\t\t\t\telse\r\n\t\t\t\t\tRuntime.getRuntime().exec(new String[] {browser, url});\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n//\t\t\tJOptionPane.showMessageDialog(null, errMsg + \":\\n\" + e.getLocalizedMessage());\r\n\t\t\tAboutDialog dlgSupport = new AboutDialog(actController.getUIInstance(), \"Support\", \t\"<html> Couldn't find web browser!\"+ \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"<br> Please start your browser and type in the following URL:\"+\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"<br> www.battleship.bymaxe.de</html>\");\r\n\t\t}\r\n\t}", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "@Given(\"^open new browser and go to \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void open_new_browser_and_go_to_url(String url) {\r\n\t\tSelenium_Functions.openNewBrowserAndgotoNewUrl(driver,\r\n\t\t\t\tEnvironmentConfig.baseUrlTescoItp);\r\n\t\tlog.info(\"The user is on Tesco ITP Login page\"\r\n\t\t\t\t+ EnvironmentConfig.baseUrlTescoItp);\r\n\t\tSystem.out.println(\"The user is on Tesco ITP Login page\");\r\n\r\n\t}", "public static void openWebsite(Context context, String url) {\n Uri articleUri = Uri.parse(url);\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, articleUri);\n context.startActivity(websiteIntent);\n }", "@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}", "public static final void openWebpage(URI uri) {\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n if ((desktop != null) && (desktop.isSupported(Desktop.Action.BROWSE))) {\r\n try {\r\n desktop.browse(uri);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n public boolean onCreateWindow(WebView view, boolean isDialog,\n boolean isUserGesture, Message resultMsg) {\n\n WebView.HitTestResult result = view.getHitTestResult();\n String url = result.getExtra();\n\n if(url != null && url.indexOf(\"about:blank\")>-1){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n return true;\n }else{\n WebView newWebView = new WebView(MainActivity.this);\n view.addView(newWebView);\n WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;\n\n transport.setWebView(newWebView);\n resultMsg.sendToTarget();\n return true;\n }\n\n }", "@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent browseIntent = new Intent( Intent.ACTION_VIEW , Uri.parse(urlStr) );\r\n startActivity(Intent.createChooser(browseIntent, \"Connecting...\"));\r\n \t\t\t}", "void setBrowser(String browser);", "protected void openInNewBrowser(SelectEvent event, String url)\n {\n try\n {\n BrowserOpener.browse(new URL(url));\n event.consume();\n }\n catch (Exception e)\n {\n String message = Logging.getMessage(\"generic.ExceptionAttemptingToInvokeWebBrower\", url);\n Logging.logger().warning(message);\n }\n }", "void setClickURL(java.lang.String clickURL);", "@Given(\"url {string}\")\r\n\tpublic void url(String string) {\n\t\tString chromepath=\"C:\\\\Users\\\\a07208trng_b4a.04.26\\\\Desktop\\\\selenium\\\\jar\\\\chromedriver_win32\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromepath);\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.get(string);\r\n\t\tdriver.manage().window().maximize();\r\n\t}", "@Override\n public void onClick(View v) {\n Intent opnWebIntent = new Intent(getActivity(), WebViewActivity.class);\n opnWebIntent.putExtra(\"url\", \"http://www.mbtabackontrack.com/performance/index.html#/home\");\n startActivity(opnWebIntent);\n }", "public static void main(String [] args) throws IOException {\n MyIe jf=new MyIe();\n jf.getEditPanel().setPage(\"http://www.sina.com\");\n jf.getEditPanel().setEnabled(false);\n jf.getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jf.getFrame().setVisible(true);\n }", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "void displayBrowser(Context context, String urlString) {\n displayBrowser(context, urlString, true);\n }" ]
[ "0.7112132", "0.67715335", "0.661222", "0.6568062", "0.65674275", "0.65664744", "0.65607375", "0.6528987", "0.652176", "0.65182996", "0.65074295", "0.6506831", "0.6477433", "0.64700377", "0.64367056", "0.64248806", "0.6419295", "0.64165044", "0.6409824", "0.6315071", "0.6305069", "0.63043374", "0.629544", "0.6286391", "0.6280167", "0.6256721", "0.62464756", "0.6231779", "0.623032", "0.6226188", "0.6219605", "0.6204956", "0.6168733", "0.61586833", "0.6125789", "0.6125477", "0.61028713", "0.6094217", "0.6080119", "0.6078959", "0.60720783", "0.6070041", "0.6045219", "0.6044728", "0.60383475", "0.6025463", "0.601689", "0.6015867", "0.60063577", "0.59946924", "0.5989693", "0.5985187", "0.59841186", "0.5961212", "0.5953935", "0.59303063", "0.59299034", "0.59161144", "0.59157616", "0.5908094", "0.5888574", "0.58818865", "0.5878025", "0.58734095", "0.58690554", "0.58674353", "0.58539164", "0.585333", "0.58507013", "0.58229786", "0.58133334", "0.5800575", "0.5779341", "0.57698363", "0.57610613", "0.5751238", "0.5737929", "0.5723762", "0.57197803", "0.5711372", "0.5711199", "0.5703824", "0.5702896", "0.5702707", "0.56896627", "0.5689531", "0.56891346", "0.56827885", "0.5682604", "0.5679861", "0.56797993", "0.56797534", "0.5662716", "0.565583", "0.5652265", "0.5651242", "0.5648335", "0.56422687", "0.56392795", "0.56348175", "0.56288135" ]
0.0
-1
Method that set the facebook page of the location to open in web browser
@Override public void setIdInstagram(String idInstagram) { this.idInstagram = idInstagram; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n final PackageManager packageManager = act.getPackageManager();\n List<ResolveInfo> list =\n packageManager.queryIntentActivities(intent,\n PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n final String urlBrowser = \"https://www.facebook.com/\"+pageName;\n intent.setData(Uri.parse(urlBrowser));\n }\n\n act.startActivity(intent);\n }", "public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(\n intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n //final String urlBrowser = \"https://www.facebook.com/glasvezelpaleiskwartier\";\n final String urlBrowser = \"https://www.facebook.com/pages/1450066045229608\";\n\n intent.setData(Uri.parse(urlBrowser));\n\n }\n\n startActivity(intent);\n\n }", "public void openUrlInBrowser(String URL) {}", "public ICurrentPage openNewWindow(String url);", "public void facebook(View view) {\n Uri uri = Uri.parse(\"https://www.facebook.com/AnanthPgrmr?href=Message_Everyone\");\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n Toast toast = Toast.makeText(this, \"Opening\", Toast.LENGTH_SHORT);\n toast.show();\n\n // Build and Send the Analytics Event.\n t.send(new HitBuilders.EventBuilder()\n .setCategory(\"About\")\n .setAction(\"FACEBOOK button\")\n .build());\n }", "private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }", "public native void redirect(String url) /*-{\r\n \r\n \r\n\t$wnd.open(url,\"mainwindow\");\r\n\t\r\n }-*/;", "public void openWebPage(String url) {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(intent);\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(\"http://\" + url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private void openWebPage(String url) {\n Uri webpage = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "@Override\n\tprotected void openPage(PageLocator arg0, Object... arg1) {\n\t\t\n\t}", "void openUrl (String url);", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }", "@Override\n public void followOnGithub() {\n if (sp.getBoolean(\"in_app_browser\",true)){\n CustomTabActivityHelper.openCustomTab(\n activity,\n customTabsIntent.build(),\n Uri.parse(activity.getString(R.string.github_url)),\n new CustomFallback() {\n @Override\n public void openUri(Activity activity, Uri uri) {\n super.openUri(activity, uri);\n }\n });\n } else {\n try{\n activity.startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri.parse( activity.getString(R.string.github_url))));\n } catch (android.content.ActivityNotFoundException ex){\n view.showBrowserNotFoundError();\n }\n }\n }", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "public void onClickFb(View view) {\n try {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"fb://profile/577574002374672\"));\n startActivity(intent);\n } catch(Exception e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/harporten.varberg\")));\n }\n }", "public void showLink(String url)\n {\n try\n {\n jalview.util.BrowserLauncher.openURL(url);\n } catch (Exception ex)\n {\n JOptionPane\n .showInternalMessageDialog(\n Desktop.desktop,\n \"Unixers: Couldn't find default web browser.\"\n + \"\\nAdd the full path to your browser in Preferences.\",\n \"Web browser not found\", JOptionPane.WARNING_MESSAGE);\n\n ex.printStackTrace();\n }\n }", "@Override\r\n\tprotected void openPage(PageLocator locator, Object... args) \r\n\t{\n\t\t\r\n\t}", "@Given(\"^Open Book My Show Website$\")\r\n\tpublic void open_Book_My_Show_Website() {\n\t\twait=new WebDriverWait(driver, 20);\r\n\t\t driver.get(\"https://in.bookmyshow.com\");\r\n\t\t uimap = new UIMap(\"src//test//resources//locators.properties\");\r\n\t}", "HtmlPage clickSiteLink();", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }", "@Override\n public void run() {\n MainActivity.webView.loadUrl(\"https://www.facebook.com/\" + id);\n }", "private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }", "public void openSite(View view) {\n Intent toView = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.google.com\"));\n startActivity(toView);\n }", "void openInAppBrowser(String url, String title, String subtitle, int errorMsg);", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }", "@FXML\n private void openFacebookPage() {\n raise(new PersonFacebookOpenEvent(person));\n }", "public void openMuseumWebsite(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "@Override\n public void changing(LocationEvent event)\n {\n if (event.location.equals(\"about:blank\"))\n {\n return;\n }\n \n try\n {\n WorkbenchCorePlugin.getDefault().getWorkbench().getBrowserSupport()\n .createBrowser(\n IWorkbenchBrowserSupport.AS_EDITOR\n | IWorkbenchBrowserSupport.LOCATION_BAR\n | IWorkbenchBrowserSupport.NAVIGATION_BAR\n | IWorkbenchBrowserSupport.STATUS, null, null, null)\n .openURL(new URL(event.location));\n }\n catch (Exception e)\n {\n Utils.logError(\"Couldn't open internal browser\", e, true);\n }\n \n // Cancel the internal event so that we don't open the new location.\n event.doit = false;\n }", "private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }", "@Override\n public void onOpenWebsite(@Nullable String url) {\n if (url == null) return;\n Log.d(TAG, \"onOpenWebsite: Url:\" + url);\n\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "public void goWebSite() {\n\n if (mIsFirst) {\n mSnackbar.setText(getString(R.string.please_wait)).show();\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mSiteData.getUrl()));\n //intent.putExtra(\"url\", webData.getUrl());\n //startActivity(intent);\n startActivityForResult(intent, 100);\n //showToolbarProgressBar();\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }", "@Override\n public void faceClicked() {\n Log.i(\"FACEOFF\", \"FACEOFF\");\n Uri webpage = Uri.parse(\"https://www.facebook.com/GrindDesign\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void openBrowser(Context context, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }", "protected void openWebPage() {\n\t\tEseoTest.driver.get(Configuration.getString(\"website_address\"));\n\t\t//Assert.assertEquals(\"Web page title does not appear correct.\", Configuration.getString(\"login_title\"),\n\t\t\t//\tEseoTest.driver.getTitle());\t\t\n\t\tAssert.assertEquals(\"Browser title bar does not appear correct.\",Configuration.getString(\"homepage_title\"),EseoTest.driver.getTitle());\n\t\tAssert.assertEquals(\"Site title does not appear correct.\",Configuration.getString(\"blog_title\"),EseoTest.driver.findElement(By.tagName(\"h1\")).getText());\n\t\tAssert.assertEquals(\"Site description does not appear correct.\",Configuration.getString(\"blog_description\"),EseoTest.driver.findElement(By.tagName(\"p\")).getText());\n\t\tAssert.assertTrue(\"Log in item does not appear correct.\",EseoTest.driver.findElement(By.linkText(Configuration.getString(\"mainmenu_login_item\"))).isDisplayed());\n\t}", "public static void openWebPage(Context context, String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "@Override\n public void setupURL_ToVisit(String url) {\n String gotoUrl;\n if (!applicationUrl.toString().endsWith(\"/\")) {\n if (url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + \"/\" + url;\n }\n }\n else {\n if (!url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + url.substring(1);\n }\n }\n getWebdriverInstance().navigate().to(gotoUrl);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/mrinalkanti.ray\")));\n\t\t}", "public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}", "private void openUrlInBrowser(String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n url = \"http://\" + url;\n }\n // Open the browser and point it to the given url\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }", "public LandingPage navigateToApplication(){\n\t\tString url = action.getProperties(\"URL\");\n\t\taction.OpenURl(url).Waitforpageload();\n\t\treturn this;\n\t}", "public static final void openWebpage(URI uri) {\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n if ((desktop != null) && (desktop.isSupported(Desktop.Action.BROWSE))) {\r\n try {\r\n desktop.browse(uri);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Given(\"open landing page {string}\")\n public void openLandingPage(String string) {\n open(variables.URL);\n }", "void openLinkInSystemBrowser(String url, int errorMsg);", "protected void goTo(String url) {\n \t\tcontext.goTo(url);\n \t}", "@Given(\"^user should launch the browser$\")\n\tpublic void user_should_launch_the_browser() throws Throwable {\n\t\tgetUrl(\"https://adactin.com/HotelAppBuild2/\");\n\t \n\t}", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\") \n\tpublic void openWebPage(String url, String browser){\n\t\tString result = selenium.openBrowser(browser);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t\tString result2 = selenium.navigate(url);\n\t\tAssert.assertEquals(selenium.result_pass, result2);\n\t}", "public static void openBrowser(Context context, String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }", "public interface FacebookLinkHandler{\n public void openFacebookPage(String facebookAppURI, String facebookWebURL);\n public void openInstagramPage(String instagramAppURI, String instagramWebURL);\n}", "public static void goTo() {\n Browser.driver.get(\"https://www.abv.bg/\");\n Browser.driver.manage().window().maximize();\n }", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/\"));\n startActivity(browserIntent);\n }", "private void FacebookClick()\n {\n Session session = Session.getActiveSession();\n if (!session.isOpened() && !session.isClosed()) {\n session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback));\n } else {\n Session.openActiveSession(getActivity(), this, true, statusCallback);\n }\n }", "private void launchBrowser(URI uri) throws IOException\r\n {\r\n getDesktop().browse(uri);\r\n }", "public void openURL(Activity ctx, String url)\n {\n if (isConnected(ctx)) {\n try {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n ctx.startActivity(browserIntent);\n } catch (Exception e) {\n\n }\n } else {\n Dialogs.getInstance().simpleNoInternet(ctx);\n }\n }", "@Override\n \tpublic void navigate(ParsedURL purl, String frame)\n \t{\n \t\tString[] navigateArgs = getNavigateArgs();\n \t\tif (navigateArgs != null && purl != null)\n \t\t{\n \t\t\tString purlString = purl.toString();\n \t\t\tint numArgs = navigateArgs.length;\n \t\t\tnavigateArgs[numArgs - 1] = purlString;\n \t\t\tStringBuilder sb = new StringBuilder();\n \t\t\tfor (int i = 0; i < numArgs; i++)\n \t\t\t\tsb.append(navigateArgs[i]).append(' ');\n \t\t\tDebug.println(\"navigate: \" + sb);\n \t\t\ttry\n \t\t\t{\n \t\t\t\tProcess p = Runtime.getRuntime().exec(navigateArgs);\n \t\t\t}\n \t\t\tcatch (IOException e)\n \t\t\t{\n \t\t\t\terror(\"navigate() - caught exception: \");\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t\telse\n \t\t\terror(\"navigate() - Can't find browser to navigate to.\");\n \t}", "@Override\n\tprotected void openPage(PageLocator locator, Object... args) {\n\t\tget(\"/\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t}", "public String showWebPage(String url, boolean usePhoneGap) {\r\n try {\r\n \tSystem.out.println(\"showWebPage usePhoneGap=\" + usePhoneGap);\r\n Intent intent = null;\r\n if (usePhoneGap) {\r\n \t// Loads and displays a new PhoneGap app on top of current PhoneGap app.\r\n \t// For the currently running PhoneGap app:\r\n \t// \t\tIf keepRunning=true (default), then the current app continues to run in background\r\n \t// \t\tIf keepRunning=false, then the current app is paused by Android\r\n \t// When BACK is pressed, the current app has focus.\r\n \t\r\n intent = new Intent().setClass(this.ctx, com.phonegap.DroidGap.class);\r\n \r\n //set the url to be a local file that sets up phonegap\r\n intent.setData(Uri.parse(url)); // This line will be removed in future.\r\n intent.putExtra(\"url\", url);\r\n\r\n // Timeout parameter: 60 sec max - May be less if http device timeout is less.\r\n intent.putExtra(\"loadUrlTimeoutValue\", 60000);\r\n // intent.putExtra(\"loadInWebView\",true);\r\n\r\n // These parameters can be configured if you want to show the loading dialog\r\n intent.putExtra(\"loadingDialog\", \"Wait,Loading web page...\"); // show loading dialog\r\n intent.putExtra(\"hideLoadingDialogOnPageLoad\", true); // hide it once page has completely loaded\r\n //this will cause the DroidGap to send javascript notifications that the url has been updated\r\n // intent.putExtra(\"updateLocation\",true);\r\n \r\n \r\n System.out.println(\"childbrowser, loading url\");\r\n \t//this is the main webView\r\n // webView.loadUrl(url);\r\n //droidGap.updateLocation =true;\r\n \r\n }\r\n else {\r\n \r\n intent = new Intent(Intent.ACTION_VIEW);\r\n intent.setData(Uri.parse(url));\r\n\r\n }\r\n \t \tthis.ctx.startActivity(intent);\r\n //this.ctx.startActivityForResult((Plugin) this, intent,0);\r\n \r\n return \"\";\r\n } catch (android.content.ActivityNotFoundException e) {\r\n System.out.println(\"ChildBrowser: Error loading url \"+url+\":\"+ e.toString());\r\n return e.toString();\r\n }\r\n }", "public void openWebBrowser(String stringURL) {\r\n\t\tWebBrowser.openBrowser(stringURL);\r\n\t}", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }", "@Override\n public void setFacebook(String facebook) {\n this.facebook = facebook;\n }", "private void openBrowser(String Url) {\n \tif (Url != null && Url.trim().length()>0) {\n \t\tUri uri = Uri.parse(Url);\n \tIntent i = new Intent(Intent.ACTION_VIEW, uri);\n \tstartActivity(i);\n \t} \t\n }", "public void openPage(final String webUrl) {\n openPageByUrlAndAssert(webUrl, PublicWebHelper.Page.PAGE_URI);\n }", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}", "void gotoEditProfile(String fbId);", "public void gppShare_setURLToShareAndOpen (String urlToShare) {\n\t\tGPPShare.sharedInstance().shareDialog().setURLToShare(new NSURL(urlToShare)).open();\n\t}", "public static void openWebsite(Context context, String url) {\n Uri articleUri = Uri.parse(url);\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, articleUri);\n context.startActivity(websiteIntent);\n }", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }", "public void switchToEvisitPageFrame() {\r\n\t\tcontrols.switchToFrame(\"eVisit\", \"CSS_evisit_Iframe\");\r\n\t}", "public static void goTo() {\n Browser.driver.get(\"https://www.amazon.co.uk/\");\n Browser.driver.manage().window().maximize();\n }", "void setClickURL(java.lang.String clickURL);", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\DriverFiles\\\\chromedriver.exe\");\n\t\tChromeDriver driver = new ChromeDriver();\n\t\tString url = \"http://facebook.com\";\n\t\tdriver.get(url);\n\t\tString Expected_FacebookHomePageTitle = \"Facebook – log in or sign up\";\n\t\tSystem.out.println(\"The Expected Facebook Homepage Title is:\" +Expected_FacebookHomePageTitle);\n\t\tString Actual_FacebookHomePageTitle= driver.getTitle();\n\t\tSystem.out.println(\"The Title of Facebook Home Page is:\" +Actual_FacebookHomePageTitle);\n\t\t//Validating the title of Facebook homePage\n\t\t\n\t\tif(Actual_FacebookHomePageTitle.equals(Expected_FacebookHomePageTitle))\n\t\t\t\t{\n\t\tWebElement email =\tdriver.findElementById(\"email\");\n\t\tWebElement pass =\tdriver.findElementById(\"pass\");\n\t\tWebElement login = driver.findElementById(\"loginbutton\");\n\t\temail.sendKeys(\"sumalatha15\");\n\t\tpass.sendKeys(\"namish\");\n\t\tlogin.click();\n\t\t\t\n\t\t\tSystem.out.println(\"TiTle matched-Pass\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Title Not matched-Fail \");\n\t\t}\n\t\t\n\t\t//Capturing the url of the facebook /homepage\n\t\t\n\t\tString Actual_FacebookHomePageurl = driver.getCurrentUrl();\n System.out.println(\"The Actual url of facebookhomepage is:\"+Actual_FacebookHomePageurl);\n String Expected_FacebookHomePageUrl = \"facebook.com\";\n if(Actual_FacebookHomePageurl.contains(Expected_FacebookHomePageUrl))\n {\n \tSystem.out.println(\"url matched-Pass\");\n }\n \n else\n {\n \tSystem.out.println(\"url matche-Fail\");\n }\n\t\t// driver.quit();\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.gteducation.in\"));\n startActivity(intent);\n Toast.makeText(NoticeActivity.this,\"go to my website\",Toast.LENGTH_SHORT).show();\n\n }", "public void openUrl(String url) {\n driver.get(url);\n }", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "private void openUpdate() {\n\t\tString url = MySoup.getUpdateLink(SITE);\n\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\ti.setData(Uri.parse(url));\n\t\tstartActivity(i);\n\t\tfinish();\n\t}", "protected void WebClicked(View view){\n String url = this.itm.getItem(position).getUrl();\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n try {\n startActivity(browserIntent);\n } catch (ActivityNotFoundException e){\n Toast.makeText(getBaseContext(), \"Webpage \" + url + \"does not exist\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\tpublic void windowWillOpen(WebBrowserWindowWillOpenEvent arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void locationChanging(WebBrowserNavigationEvent arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\tmDialog.findViewById(R.id.rl).setVisibility(View.VISIBLE);\n\t\t\t\t// mDialog.findViewById(R.id.rl).startAnimation(AnimationUtils.loadAnimation(mActivity, android.R.anim.fade_in));\n\t\t\t\tLogger.e(DialogNotifyUpdate.class.getSimpleName() + \": \" + url);\n\t\t\t\tif (url.contains(\"openbrowser=1\")) {\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, \n\t\t\t\t\t\t\tUri.parse(url));\n\t\t\t\t\tmActivity.startActivity(intent);\n\t\t\t\t} \n\t\t\t}", "@Override\n\t\t\tpublic void locationChanged(WebBrowserNavigationEvent wbe) {\n\t\t\t}", "public static void openURL(final String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse(url));\n _instance.startActivity(Intent.createChooser(intent, \"\"));\n }", "@Override\n public void onClick(View view) {\n Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://petobesityprevention.org/\"));\n startActivity(browser);\n }", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "public void setSiteLocation(URI location) {\n \t\tthis.siteLocation = location;\n \t}", "HtmlPage clickLink();", "public void changeUrl() {\n url();\n }", "@Override\n public void grindClicked() {\n Uri webpage = Uri.parse(\"http://www.grind-design.com\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "@Override\n public void onClick(View view) {\n Intent httpIntent = new Intent(Intent.ACTION_VIEW);\n httpIntent.setData(Uri.parse(\"http://bvmengineering.ac.in\"));\n\n startActivity(httpIntent);\n\n }", "public void openApp(String Url) {\n\t\tfd = new FirefoxDriver();\r\n\t\tfd.get(Url);\r\n\t\tfd.manage().window().maximize();\r\n\t}", "@Given(\"The dealer open the MilesWeb portal Dealer home page {string}\")\n public void the_dealer_open_the_MilesWeb_portal_Dealer_home_page(String url) {\n navigateTo.milesWebHomePage(url, \"MilesWeb portale Dealer\");\n }", "public static void setExternalWWWBrowser (HtmlBrowser.Factory brow) {\n setBrowser( PROP_EXTERNAL_WWWBROWSER, brow );\n }", "@Given(\"^Open mmt home page$\")\n\tpublic void open_mmt_home_page() throws Throwable {\n\t loginPage = new LoginPage();\n\t}", "public static void main(String asrgs[]) {\r\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\tWebDriver driver=new ChromeDriver();\r\n\tdriver.navigate().to(\"https://www.facebook.com/\");\r\n\tdriver.findElement(By.name(\"email\")).sendKeys(\"[email protected]\");\r\n\tdriver.findElement(By.name(\"pass\")).sendKeys(\"Sainaga@5\");\r\n\tdriver.findElement(By.name(\"login\")).click();\r\n\tdriver.findElement(By.className(\"_6s5d _71pn _-kb segoe\")).click();\r\n \r\n}" ]
[ "0.6696141", "0.66181946", "0.65699744", "0.64083797", "0.6389266", "0.6325039", "0.62850493", "0.62334484", "0.6230336", "0.6213809", "0.6213688", "0.6209138", "0.62061906", "0.6193427", "0.6183869", "0.61824", "0.6159357", "0.61335015", "0.6121821", "0.61055803", "0.6089372", "0.60789543", "0.60570437", "0.6032741", "0.6023899", "0.6023437", "0.6020646", "0.6004387", "0.59980416", "0.59893847", "0.5974115", "0.5966915", "0.59631497", "0.59615225", "0.59475744", "0.5945441", "0.59384036", "0.5937621", "0.5908266", "0.59039277", "0.58822674", "0.5871113", "0.58652973", "0.5858274", "0.58419096", "0.5839996", "0.5808677", "0.57829916", "0.57810634", "0.5770876", "0.57692003", "0.573153", "0.57314277", "0.57201743", "0.57044476", "0.5692874", "0.56852525", "0.56808126", "0.5679586", "0.5677867", "0.5677434", "0.5662562", "0.5661775", "0.56610256", "0.56588507", "0.56556684", "0.5634416", "0.5627459", "0.5626422", "0.5604202", "0.5600461", "0.5596417", "0.5590909", "0.5590222", "0.55865985", "0.55636483", "0.5555013", "0.5549614", "0.55397135", "0.5539652", "0.5533113", "0.5522016", "0.5514964", "0.5497106", "0.54961145", "0.54939294", "0.5493612", "0.54922813", "0.54851645", "0.54786724", "0.5476355", "0.5474269", "0.54686385", "0.5465027", "0.54649633", "0.5464253", "0.5461514", "0.5451284", "0.54510254", "0.5448042", "0.5442581" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { byte b1=125; System.out.println(b1); byte b2=(byte)129; System.out.println(b2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean equals(Object arg0) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int hashCode() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
????? list of trainer
public void showTrainers(){ System.out.println("Trainer: "+this.lastName.toUpperCase()+" "+this.firstName.toUpperCase()+" ,with subject: "+ this.subject.getStream().getTitle().toUpperCase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Trainer> addTrainers() {\n System.out.println(\"\\nAdd a trainer!\");\n do {\n listOfTrainers.add(createTrainer());\n System.out.print(\"\\nWould you like to add a new trainer?(yes or no): \");\n boolean yesOrNo = yesOrNoValidation();\n if (yesOrNo) {\n } else if (!yesOrNo) {\n break;\n }\n } while (true);\n\n return listOfTrainers;\n }", "List<Training> obtainAllTrainings();", "public ArrayList<Train> getTrains() {\n return trains;\n }", "public Trainer getTrainer() {\n\t\treturn theTrainer;\n\t}", "protected Trainer(String tName) {\n this(tName, new ArrayList<>());\n }", "public void showteachers(){\n for (int i=0; i<tlist.size(); i++){\n System.out.println(tlist.get(i).getTeacher());\n }\n }", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "@ResponseBody\n @RequestMapping(value=\"/trainer/data\")\n public LinkedList<Trainer> showTrainer(){\n dbManager.initializeDatabase();\n LinkedList<Trainer> trainerList=dbManager.getTrainerList();\n dbManager.closeDatabase();\n return trainerList;\n }", "public ArrayList<Train> getAllTrains() {\n\t\tArrayList<Train> dispatchedTrains = new ArrayList<Train>(trains.size());\n\t\tfor (Train t : dispatchedTrains) {\n\t\t\tif (t.currentBlock != 0) {\n\t\t\t\tdispatchedTrains.add(t);\n\t\t\t}\n\t\t}\n\t\tif (dispatchedTrains.size() > 0) {\n\t\t\treturn dispatchedTrains;\n\t\t}\n\t\treturn null;\n\t}", "List<IManifestEntry> getTrips();", "@Override\n public ArrayList<RunnerThread> getRunners() {\n \tArrayList<RunnerThread> runners = new ArrayList<RunnerThread>();\n \ttry {\n \t\tString line = data.readLine();\n \t\twhile(line != null) {\n \t\t\tRunnerThread runner = getData(line);\n \t\t\trunners.add(runner); \n \t\t\tline = data.readLine();\n \t\t}\n \t}\n \tcatch (IOException e) {\n \t\tSystem.out.println(\"The following error occured while reading the file.\");\n \t\te.printStackTrace();\n \t\tSystem.exit(3);\n \t}\n\t\treturn runners;\n \t}", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "public void listTowns(Player player) {\n\t\tplayer.sendMessage(ChatTools.formatTitle(\"Towns\"));\n\t\tArrayList<String> formatedList = new ArrayList<String>();\n\t\tfor (Town town : plugin.getTownyUniverse().getTowns())\n\t\t\tformatedList.add(Colors.LightBlue + town.getName() + Colors.Blue + \" [\" + town.getNumResidents() + \"]\" + Colors.White);\n\t\tfor (String line : ChatTools.list(formatedList))\n\t\t\tplayer.sendMessage(line);\n\t}", "public List BestClient();", "public Trainer()\n\t{\n\t\t//tba = new DualHashBidiMap<>();\n\t\t//fba = new DualHashBidiMap<>();\n\t\t//cba = new DualHashBidiMap<>();\n\t}", "@Override\n protected abstract Regressor[] getLearnerSetups();", "public List<Trixel> getTrixels() {\n\t\tif (!alreadyRun) {\n\t\t\treturn null;\n\t\t}\n\t\treturn concatenate(listOfInners, stackOfPartialLists.peek());\n\t}", "public Classroom(int id, String trainer, Set<Trainee> trainees) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.trainer = trainer;\n//\t\tthis.trainees = trainees;\n\t}", "public List<String> getmanagers();", "public void buildAllPossibleTrain() {\n while (depotOnThisLine.checkOnPossibilityCreatingTrain()) {\n try {\n trains.add(Factory.buildNewTrain(depotOnThisLine));\n } catch (DepotNotExistException e) {\n e.printStackTrace();\n }\n }\n }", "public List<Robot> getRobots();", "public List<Trixel> getTrixels(Markup markUp) {\n\t\tif (!alreadyRun) {\n\t\t\treturn null;\n\t\t}\n\t\tswitch (markUp) {\n\t\tcase Full:\n\t\t\treturn concatenate(listOfInners, null);\n\t\tcase Partial:\n\t\t\treturn concatenate(null, stackOfPartialLists.peek());\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Tailor> read();", "protected Trainer(String tName, ArrayList<Pokemon> pTeam) {\n name = tName;\n team = pTeam;\n }", "List<Neuron> getSynapses();", "static List<Entry<String,Runnable>> getRunners(GrammarTestSuite suite) {\n var runners = new LinkedList<Entry<String,Runnable>>();\n var sources = suite.getStageFiles();\n var testsuite = new SuiteOfStages(sources);\n for (var stage : testsuite.getStages()) {\n for (var target : stage.getTargets()) {\n var i = 0;\n for (var test : target.getTests()) {\n var name = test.getStage() + ':' + test.getTarget() + ':' + (i++);\n runners.add(new SimpleEntry<String,Runnable>( name, () -> testParsing(suite,test) ));\n }\n }\n }\n return runners;\n }", "java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.Donator>\n getDonatoriList();", "public TrainerListSearchBar(TrainerList list){\n ((PlainDocument) getDocument()).setDocumentFilter(new AlphanumericUnderscoreFilter());\n getDocument().addDocumentListener(new SimplifiedDocumentListener(){\n @Override\n public void change(DocumentEvent event){\n SwingUtilities.invokeLater(() -> list.setModel(new DefaultComboBoxModel(getFilteredTrainers(getText()))));\n }\n });\n }", "public Train getTrain(int i) {\n return trains.get(i);\n }", "public ArrayList<ThreadRunner> getRunnersInformation()\n {\n if (runners != null)\n return runners; \n\n runners = new ArrayList<>(); \n \n if (Files.exists(runnersPath)) // prevent the FileNotFoundException\n {\n try (BufferedReader in = \n new BufferedReader(\n new FileReader(runnersFile)))\n {\n // read all runners info stored in the file\n // into the array list\n String line = in.readLine();\n while(line != null)\n {\n String[] columns = line.split(FIELD_SEP);\n String name \t= columns[0];\n int speed \t\t= Integer.parseInt(columns[1]);\n int percent \t= Integer.parseInt(columns[2]);\n\n ThreadRunner tr = new ThreadRunner(name, percent, speed);\n runners.add(tr);\n line = in.readLine(); \n }\n }\n catch(IOException e)\n {\n System.out.println(e);\n return null;\n }\n }\n return runners; \n }", "public ListArrayBasedPlus<Runway> getRunways()\r\n {\r\n return runways;\r\n }", "public PyList getTargets() {\n\t\treturn (PyList) shadowstr_gettargets();\n\t}", "List<T> getRuleTargets();", "public static void main(String[] args) {\n\n TurkishTourist client=new TurkishTourist();\n\n BritishGuide adaptee1=new BritishGuide();\n\n BritishTranslator adapter1=new BritishTranslator(adaptee1);\n\n client.listenTranslator(adapter1);\n\n\n System.out.println();\n\n /**\n * Factory design pattern part\n */\n Organizer britishOrg=new BritishOrganizer();\n Organizer greekOrg=new GreekOrganizer();\n\n System.out.println(((BritishOrganizer) britishOrg).getRace()+\" organizator called translator for business\");\n Translator translator1=britishOrg.callTranslator(TranslatorLevel.EXPERT);\n\n\n System.out.println(((GreekOrganizer) greekOrg).getRace()+\" organizator called translator for business\");\n translator1=greekOrg.callTranslator(TranslatorLevel.JUNIOR);\n\n\n\n\n\n\n\n }", "java.util.List<WorldUps.UInitTruck> \n getTrucksList();", "public void printClientList(){\n for(String client : clientList){\n System.out.println(client);\n }\n System.out.println();\n }", "public LightningEnergy(ITrainer trainer){\n super(\"Lightning\", trainer);\n }", "protected ArrayList<Integer> GetTrains() {\n\t\treturn this.TrainsPresent;\n\t}", "public List<NetworkNode> listNetworkNode();", "public void train ()\t{\t}", "@Override\n public JSONObject listOfTools(long renterId) {\n listOfTools = toolDb.getToolsByRenterId(renterId);\n System.out.println(listOfTools);\n return null;\n }", "java.util.List<org.landxml.schema.landXML11.LanesDocument.Lanes> getLanesList();", "public void createTrainer(Trainer trainer) {\n\t\ttrainerService.createTrainer(trainer);\n\t}", "public String listResearchers();", "@Nonnull\n List<Telegraf> findTelegrafs();", "public synchronized List<String> borrowerList(String borrower){\n List<String> list = new LinkedList<>();\n for (int i = 0; i < titleList.size(); i++){\n for (String name : borrowerList.get(i)){\n if (name.equals(borrower))\n list.add(titleList.get(i));\n }\n }\n return list;\n }", "public List<Train> getTrainByUserId(int userId){\n List<Ticket> ticketList = ticketService.getTicketByUserId(userId);\n List<Train> trainList = new ArrayList<Train>();\n for (Ticket ticket: ticketList) {\n trainList.add(getTrainById(ticket.getTrainId()));\n }\n return trainList;\n }", "@Override\n\t@SuppressWarnings(\"unchecked\")\n\tpublic List<Web_trainee> getAllTrainee() {\n\t\tCriteria criteria = createEntityCriteria();\n\t\treturn (List<Web_trainee>) criteria.list();\n\t}", "public String toString() {\r\n return \"\\n\\nTrainer: \"+ name + \", Wins: \" + win + \", team:\" + team;\r\n }", "List<Neuron> getDendrites();", "public void listNations(Player player) {\n\t\tplayer.sendMessage(ChatTools.formatTitle(\"Nations\"));\n\t\tArrayList<String> formatedList = new ArrayList<String>();\n\t\tfor (Nation nation : plugin.getTownyUniverse().getNations())\n\t\t\tformatedList.add(Colors.LightBlue + nation.getName() + Colors.Blue + \" [\" + nation.getNumTowns() + \"]\" + Colors.White);\n\t\tfor (String line : ChatTools.list(formatedList))\n\t\t\tplayer.sendMessage(line);\n\t}", "List<String> getTrees();", "public void listar() {\n\t\t\n\t}", "public List getTrabajadores();", "public void listWashers() {\r\n\t\tSystem.out.println(store.listWashers());\r\n\t}", "List<Player> getViewers();", "public String getLocators() {\n return agentConfig.getLocators();\n }", "public abstract Collection<Turtle> getActiveTurtles();", "private void viewTeachers() {\n Iterable<Teacher> teachers = ctrl.getTeacherRepo().findAll();\n teachers.forEach(System.out::println);\n }", "java.util.List<com.google.protobuf.ByteString> getDelegateesList();", "interface List extends Follow {\n @Out Network[] networks();\n\n /**\n * Sets the maximum number of networks to return. If not specified all the networks are returned.\n */\n @In Integer max();\n\n /**\n * A query string used to restrict the returned networks.\n */\n @In String search();\n\n /**\n * Indicates if the search performed using the `search` parameter should be performed taking case into\n * account. The default value is `true`, which means that case is taken into account. If you want to search\n * ignoring case set it to `false`.\n */\n @In Boolean caseSensitive();\n }", "public ArrayList<LinkedList<Node>> getTargets(){\n\t\treturn targets;\n\t}", "List<JavaAgent> getJavaAgents();", "public void availableTrains(int type, String source, String destination) {\n\n\t\tint i = 0, temp = 0;\n\n\t\tif (type == 1) {\n\n\t\t\tIterator<PassengerTrain> itr = TrainDetails.passengerList\n\t\t\t\t\t.iterator();// For passenger train\n\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tPassengerTrain passenger = itr.next();\n\n\t\t\t\tif (source.equalsIgnoreCase(passenger.getFromPlace())\n\t\t\t\t\t\t&& destination.equalsIgnoreCase(passenger.getToPlace())) {\n\t\t\t\t\ttemp = temp + 1;\n\t\t\t\t\tSystem.out.println(temp);\n\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"TRAINID\t\tSOURCE \t\tDESTINATION\tDURATION\tSEATS\t PRICE\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(passenger.getTrainId() + \"\t\t \"\n\t\t\t\t\t\t\t+ passenger.getFromPlace() + \"\t\t \"\n\t\t\t\t\t\t\t+ passenger.getToPlace() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getDuration() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getSeats() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getPrice());\n\n\t\t\t\t}\n\n\t\t\t\tif (temp == 0) {\n\t\t\t\t\tSystem.out.println(\"No such trains.Try Another\");\n\t\t\t\t\tTrainMenu menu1 = new TrainMenu();\n\t\t\t\t\tmenu1.menu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\telse {// For goods train\n\t\t\tIterator<GoodsTrain> itr = TrainDetails.goodsList.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tGoodsTrain goods = itr.next();\n\t\t\t\tif (source.equalsIgnoreCase(goods.getFromPlace())\n\t\t\t\t\t\t&& destination.equalsIgnoreCase(goods.getToPlace())) {\n\t\t\t\t\ttemp = temp + 1;\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Train Number \tSOURCE \t\tDESTINATION\t\tTIME\t\tWEIGHT\t\tPRICE\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(goods.getTrainId() + \"\t\t \"\n\t\t\t\t\t\t\t+ goods.getFromPlace() + \"\t\t \" + goods.getToPlace()\n\t\t\t\t\t\t\t+ \" \t\t\" + goods.getDuration() + \" \t\t\"\n\t\t\t\t\t\t\t+ goods.getWeight() + \" \t\t\" + goods.getPrice());\n\n\t\t\t\t}\n\n\t\t\t\tif (temp == 0) {\n\t\t\t\t\tSystem.out.println(\"No such trains.Try another\");\n\t\t\t\t\tTrainMenu menu1 = new TrainMenu();\n\t\t\t\t\tmenu1.menu();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Trainer> getTrainersForCourse(Course course){\n ArrayList<Trainer> result = new ArrayList();\n \n String statement = GET_TRAINERS_FOR_COURSE;\n\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Trainer trainer = new Trainer(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getString(\"subject\"));\n result.add(trainer);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getTrainersForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }", "private void getWalkinList(){\n sendPacket(CustomerTableAccess.getConnection().getWalkinList());\n \n }", "java.lang.String getRaceList();", "public PersonSet getPassengers()\n {\n PersonSet result = new PersonSet();\n \n for (Train obj : this)\n {\n result.with(obj.getPassengers());\n }\n \n return result;\n }", "List<String> getSubProtocols();", "@PermitAll\n public void cmdWho(User teller) {\n Formatter msg = new Formatter();\n Collection<Player> playersOnline = tournamentService.findOnlinePlayers();\n for (Player player : playersOnline) {\n msg.format(\" %s \\\\n\", player);\n }\n command.qtell(teller, msg);\n }", "public static void main(String[] args) {\n\t\t\t\tList listClient = new ArrayList();\r\n\t\t\t\t\r\n\t\t\t\tClient client = new Client();\r\n\t\t\t\tclient.setFirstName(\"Eduardo\");\r\n\t\t\t\tclient.setSecondName(\"Mendoza\");\r\n\t\t\t\t\r\n\t\t\t\tlistClient.add(client);\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\tClient newClient = new Client();\r\n\t\t\t\tnewClient.setFirstName(\"Carlos\");\r\n\t\t\t\tnewClient.setSecondName(\"Fuentealba\");\r\n\t\t\t\t\t\t\r\n\t\t\t\tlistClient.add(newClient);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tclient = new Client();\r\n\t\t\t\tclient.setFirstName(\"Pablo\");\r\n\t\t\t\tclient.setSecondName(\"Mondaca\");\r\n\t\t\t\t\r\n\t\t\t\tlistClient.add(client);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"listClient:\"+listClient);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Mostar los elementos de la lista\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tIterator it = listClient.listIterator();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Detectar que tipo de objeto tiene la lista\r\n\t\t\t\t/*Object obj = null;\r\n\t\t\t\t\r\n\t\t\t\twhile (it.hasNext()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Casting JAVA\r\n\t\t\t\t\tobj = (Object) it.next();\r\n\t\t\t\t\tSystem.out.println(\"obj:\"+obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tClient nclient = null;\r\n\t\t\t\t\r\n\t\t\t\twhile (it.hasNext()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Casting JAVA\r\n\t\t\t\t\tnclient = (Client) it.next();\r\n\t\t\t\t\tSystem.out.println(\"nclient:\"+nclient);\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"firstName:\"+nclient.getFirstName());\r\n\t\t\t\t\tSystem.out.println(\"secondName:\"+nclient.getSecondName());\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\r\n\t}", "@Override\n\t\t\tpublic Blockable<String, Lookup> getSuggesterList() {\n\t\t\t\treturn suggesterList;\n\t\t\t}", "public List<Tripulante> obtenerTripulantes();", "public List<String> nicknames();", "List<Transport> getTransports();", "public List<Player> getPassengers() {\n\t\tList<Player> ret = new ArrayList<Player>();\n\t\t\n\t\tfor (Player p : Bukkit.getOnlinePlayers()) {\n\t\t\tif (isPassenger(p))\n\t\t\t\tret.add(p);\n\t\t}\n\t\treturn ret;\n\t}", "java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();", "MotifLearner(){\n notes = new ArrayList<>();\n times = new ArrayList<>();\n }", "public abstract String viewTrips(List<Trip> tripList);", "java.util.List<WorldUps.UTruck> \n getTruckstatusList();", "@RequestMapping(value = \"/viewbatches\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<Batch>> getTrainers() {\n\n\t\t//Retrieves batch data from the database\n\t\tList<Batch> batches = viewBatchService.getBatches();\n\n\t\t//Returns the List of batches along with the status code\n\t\treturn new ResponseEntity<List<Batch>>(batches, HttpStatus.OK);\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)\n\tpublic List<Batch> findAllByTrainer(Integer trainerId);", "public List<NoteToken> getElts(){\r\n List<NoteToken> returnList = new ArrayList<NoteToken>();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n returnList.addAll(i.next().getElts());\r\n }\r\n return returnList;\r\n }", "@Override\n\tpublic List<Trip> searchAllTrips() {\n\t\tString hql = \"FROM Trip\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}", "public List<TrainersPokemons> findAll() {\n\t\treturn this.trainersPokemonsRepository.findAll();\n\t}", "public void testTwoTraversers() {\n List<Schedule> schedules = getSchedules(MockInstantiator.TRAVERSER_NAME1);\n schedules.addAll(getSchedules(MockInstantiator.TRAVERSER_NAME2));\n runWithSchedules(schedules, createMockInstantiator());\n }", "public static ArrayList<String> getTargets() {\r\n return TARGETS;\r\n }", "public ArrayList<String> getAllTermini() \n\t{\n\t\t//return allTermini arraylist\n\t\treturn allTermini;\n\t}", "public java.util.List getWaypoints();", "public String getResearcherNamesList() {\r\n this.researcherNamesList = myIsern.getResearcherNamesList();\r\n return this.researcherNamesList;\r\n }", "List<TeacherRecord> getTeachers(String clientId) throws Exception;", "public interface TripsListCallback {\n\n void serverResponseWithTripsList(List<ParseObject> objects);\n\n }", "public ArrayList<Instance> getTrainInstances() {\n ArrayList<Instance> training = new ArrayList<>();\n training.addAll(instances.subList(0, targetsize));\n return training;\n }", "public List<SubscriptionAddOnTier> getTiers() {\n return this.tiers;\n }", "public void routeAllTrains() {\n\t\tfor (Train t : trains) {\n\t\t\tcalculateShortestRoute(t);\n\t\t}\n\t\t\n\t}", "public void train(){\n recoApp.training(idsToTest);\n }", "public List<Utilizator> listUsers();", "public static void followMowers(List<Mower> listMowers, List<Coordinates> listCoordinates) {\n\t\tfor(int i=0; i<listCoordinates.size(); i++) {\n\t\t\tSystem.out.println(\"Mower \"+i);\n\t\t\tlistMowers.get(i).readCommands();\n\t\t}\n\n\t}", "@Override\n\tpublic List<WalkerRanking> listRanking() {\n\t\tList<Walker> all = walkerRepo.findAllPublic();\n\t\tList<WalkerRanking> allRank = new ArrayList<>();\n\t\t\n\t\tfor(Walker walker : all) {\n\t\t\tallRank.add(getRankingById(walker.getId()));\n\t\t}\n\t\t\n\t\treturn allRank;\n\t}", "public List<String> listeners();" ]
[ "0.6596865", "0.6199702", "0.60558075", "0.59088427", "0.58790934", "0.5791598", "0.57093745", "0.57081026", "0.55893177", "0.5554547", "0.55228066", "0.5505635", "0.5501117", "0.5478366", "0.54577154", "0.5415737", "0.5397944", "0.5395752", "0.5393874", "0.5341827", "0.53247464", "0.5315387", "0.52863103", "0.52648246", "0.5264375", "0.5258711", "0.5239866", "0.5225455", "0.5204484", "0.5198687", "0.519809", "0.5173628", "0.5168421", "0.5158447", "0.5151073", "0.5138111", "0.5122108", "0.5119704", "0.510137", "0.50979555", "0.5094854", "0.5093854", "0.5092324", "0.5085868", "0.50836664", "0.5074274", "0.5070401", "0.5064863", "0.5064479", "0.50613284", "0.5058652", "0.5050133", "0.50375867", "0.5030328", "0.5029987", "0.502415", "0.5023581", "0.5022217", "0.5012427", "0.49954525", "0.49884483", "0.49842197", "0.49831575", "0.49819657", "0.4979598", "0.49756664", "0.4974791", "0.49544108", "0.4950901", "0.4939034", "0.4937296", "0.49361405", "0.49287623", "0.49279702", "0.49267614", "0.49248016", "0.48999462", "0.489876", "0.48967758", "0.4888129", "0.4881362", "0.48808187", "0.48799172", "0.48727506", "0.4869194", "0.48663127", "0.48622093", "0.4858193", "0.4857341", "0.48558077", "0.4849481", "0.4845241", "0.48429146", "0.48398885", "0.48330474", "0.4824029", "0.48227623", "0.48215866", "0.48212186", "0.48190087" ]
0.60694283
2
Wait Until Table is buffered
private void waitTableBuffering(String legend){ final WebElement res = this.driver.findElement(By.id("Res")); this.driverWaitTime.until(ExpectedConditions.textToBePresentInElement(res, legend)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitForData() {\n waitForData(1);\n }", "private int waitUntilReady()\r\n {\r\n int rc = 0;\r\n // If a stock Item is in the Table, We do not want to start\r\n // The Lookup, if the name of the stock has not been identified.\r\n // here we will wait just a couple a second at a time.\r\n // until, the user has entered the name of the stock.\r\n // MAXWAIT is 20 minutes, since we are 1 second loops.\r\n // 60 loops is 1 minute and 20 of those is 20 minutes\r\n final int MAXWAIT = 60 * 20;\r\n int counter = 0;\r\n do\r\n {\r\n try\r\n {\r\n Thread.currentThread().sleep(ONE_SECOND);\r\n }\r\n catch (InterruptedException exc)\r\n {\r\n // Do Nothing - Try again\r\n }\r\n if (counter++ > MAXWAIT)\r\n { // Abort the Lookup for historic data\r\n this.cancel();\r\n return -1;\r\n }\r\n }\r\n while (\"\".equals(sd.getSymbol().getDataSz().trim()));\r\n\r\n return 0;\r\n }", "private static <T> void doWaitForTableModel(ThreadedTableModel<T, ?> model) {\n\t\twaitForSwing();\n\n\t\tboolean didWait = false;\n\t\tint waitTime = 0;\n\t\twhile (model.isBusy()) {\n\t\t\tdidWait = true;\n\t\t\twaitTime += sleep(DEFAULT_WAIT_DELAY);\n\n\t\t\t// model loading may take longer than normal waits\n\t\t\tif (waitTime >= PRIVATE_LONG_WAIT_TIMEOUT) {\n\t\t\t\tMsg.error(AbstractDockingTest.class, createStackTraceForAllThreads()); // debug\t\t\t\t\n\t\t\t\tString busyState = getBusyState(model);\n\t\t\t\tMsg.error(AbstractDockingTest.class, busyState);\n\t\t\t\tthrow new AssertException(\n\t\t\t\t\t\"Timed-out waiting for table model to load in \" + waitTime + \"ms\");\n\t\t\t}\n\t\t}\n\n\t\twaitForSwing();\n\n\t\tif (didWait) {\n\t\t\t// try again (the idea is that we may have had a small window where the model was\n\t\t\t// not busy, but more work may be pushed on)\n\t\t\twaitForTableModel(model);\n\t\t}\n\t}", "private void jButtonFillTableActionPerformed(java.awt.event.ActionEvent evt) {\n SwingWorkerDemo worker = new SwingWorkerDemo( jBusyTable.getBusyModel() , (DefaultTableModel)jXTable.getModel() );\n\n // Start the worker\n worker.execute();\n }", "public void waitForEndOfVerticalBlank();", "public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }", "private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}", "public static <T> void waitForTableModel(ThreadedTableModel<T, ?> model) {\n\t\tdoWaitForTableModel(model);\n\t}", "void waitToRead();", "public void waitForBeginOfVerticalBlank();", "public void readCompleteTable()\n\t{\n\t\topen();\n\t\tList<Map<Object, String>> tbl = HtmlTable.rowsFrom(table);\n\t\t//System.out.println(tbl);\n\n\t}", "private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "static void waitForBlockCommit() {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void waitToWrite();", "void scanDataBufferForEndOfData() {\n while (!allRowsReceivedFromServer() &&\n (dataBuffer_.readerIndex() != lastValidBytePosition_)) {\n stepNext(false);\n }\n }", "private void doDBProcessing() throws InterruptedException {\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t}", "private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }", "public void bufferingState(){\n\t\twhile ( buffer.isBufferUnderRun() ){\n\t\t\t/** Do not leave the while loop with nothing, it will increase the CPU usage 25% */\n\t\t\ttry {Thread.sleep(1);\n\t\t\t} catch (InterruptedException ex) {}\n\t\t} \n\t}", "public final void waitForData(long tmo) {\n\n\t\t//\tCheck if the file data has been loaded, if not then wait\n\t\t\n\t\tif ( isDataAvailable() == false) {\n\t\t\tsynchronized ( this) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t//\tWait for file data\n\t\t\t\t\t\n\t\t\t\t\twait(tmo);\n\t\t\t\t}\n\t\t\t\tcatch ( InterruptedException ex) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void endTable() throws IOException;", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "private void transferPendingCellData()\r\n\t{\r\n\t\tsynchronized(dataLock)\r\n\t\t{\r\n\t\t\tcellData = pendingCellData;\r\n\t\t\trowCount = cellData.length;\r\n\t\t}\r\n\t}", "private void waitForFree() throws InterruptedException {\n // Still full?\n while (isFull()) {\n // Park me 'till something is removed.\n block.await();\n }\n }", "public void waitForData(int minNumBytes) {\n try {\n\n while (available() < minNumBytes) {\n Thread.sleep(500);\n }\n }\n catch (InterruptedException e) {\n System.out.println(\"#### Thread interrupted -- could be big trouble\");\n }\n catch(Exception e){}\n }", "public void tableStarted(int position) {\r\n }", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "@Override\n\tpublic void DoGoToWaiting(int offset) {\n\t\t\n\t}", "public boolean fillEmptyTable() {\n if(isEmpty()) {\n System.err.println(\"The queue is empty! All of the walk-ins have been seated!\");\n return false;\n }\n else {\n WalkIn out = first.getData();\n first = first.getNextNode();\n if(first == null) last = null;\n size--;\n System.out.println(\"Here is your table \" + out.getNames() + \".\" \n + \" You've been seated at \" + out.getTime() + \".\");\n return true;\n }\n }", "protected abstract long waitOnQueue();", "protected void done() {\n logoPanel.stop();\n qtf.setCursor(normalCursor);\n searchButton.setEnabled(true);\n\n boolean isStatusOK = false;\n try {\n isStatusOK = get();\n } catch (Exception e) {\n }\n\n if (isStatusOK) {\n Thread tableFill = new Thread(msb_qtm);\n tableFill.start();\n\n try {\n tableFill.join();\n } catch (InterruptedException iex) {\n logger.warn(\"Problem joining tablefill thread\");\n }\n\n synchronized (this) {\n Thread projectFill = new Thread(\n qtf.getProjectModel());\n projectFill.start();\n try {\n projectFill.join();\n } catch (InterruptedException iex) {\n logger.warn(\"Problem joining projectfill thread\");\n }\n\n qtf.initProjectTable();\n }\n\n msb_qtm.setProjectId(\"All\");\n qtf.setColumnSizes();\n qtf.resetScrollBars();\n logoPanel.stop();\n qtf.setCursor(normalCursor);\n\n if (queryTask != null) {\n queryTask.cancel();\n }\n\n qtf.setQueryExpired(false);\n String queryTimeout = System.getProperty(\n \"queryTimeout\");\n System.out.println(\"Query expiration: \"\n + queryTimeout);\n Integer timeout = new Integer(queryTimeout);\n if (timeout != 0) {\n // Conversion from minutes of milliseconds\n int delay = timeout * 60 * 1000;\n queryTask = OMPTimer.getOMPTimer().setTimer(\n delay, infoPanel, false);\n }\n }\n }", "public void messageAllAsync(String table) {\n messageNAsync(table, DataConstants.MAX_READ_SAMPLES_SYNCHRONIZE);\n }", "@Override\n\tprotected void flushBuffer() throws IOException {\n\t\tif (connection != null && !connection.isClosed()) {\n\t\t\tHTableInterface myTable = connection.getTable(tableNameBytes);\n\t\t\tif (myTable != null && deleteList != null && deleteList.size() > 0) {\n\t\t\t\tsynchronized (listLock) {\n\t\t\t\t\tif (deleteList != null && deleteList.size() > 0) {\n\t\t\t\t\t\tmyTable.delete(deleteList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void waitAll();", "public static void waitWhileLoading()\r\n {\r\n while (isLoading())\r\n ThreadUtil.sleep(10);\r\n }", "public void IsReady() {\n\t\tSystem.out.println(\"Table now ready for customers.\");\n\t\ttable.setState(table.GetReady());\n\t}", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "@Override\n\tpublic void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}", "private void refresh() {\n\t\t\tRunnable run = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(table.isDisposed())return;\n\t\t\t\t\tviewer.refresh();\n\t\t\t\t}\t\t\t\n\t\t\t};\n\t\t\tDisplay.getDefault().asyncExec(run);\n\t\t}", "public void run() {\n\t\t\t//\t\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tint no = 0;\n\t\t\tdataSql = getSQL();\n\t\t\t//\tRow\n\t\t\tint row = 0;\n\t\t\t//\tDelete Row\n\t\t\tdetail.setRowCount(row);\n\t\t\ttry {\n\t\t\t\tm_pstmt = getStatement(dataSql);\n\t\t\t\tlog.fine(\"Start query - \"\n\t\t\t\t\t\t+ (System.currentTimeMillis() - start) + \"ms\");\n\t\t\t\tm_rs = m_pstmt.executeQuery();\n\t\t\t\tlog.fine(\"End query - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t\t+ \"ms\");\n\t\t\t\t//\tLoad Table\n\t\t\t\trow = detail.loadTable(m_rs);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, dataSql, e);\n\t\t\t}\n\t\t\tclose();\n\t\t\t//\n\t\t\t//no = detail.getRowCount();\n\t\t\tlog.fine(\"#\" + no + \" - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t+ \"ms\");\n\t\t\tdetail.autoSize();\n\t\t\t//\n\t\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\t\tsetStatusLine(\n\t\t\t\t\tInteger.toString(no) + \" \"\n\t\t\t\t\t\t\t+ Msg.getMsg(Env.getCtx(), \"SearchRows_EnterQuery\"),\n\t\t\t\t\tfalse);\n\t\t\tsetStatusDB(Integer.toString(no));\n\t\t\tif (no == 0)\n\t\t\t\tlog.fine(dataSql);\n\t\t\telse {\n\t\t\t\tdetail.getSelectionModel().setSelectionInterval(0, 0);\n\t\t\t\tdetail.requestFocus();\n\t\t\t}\n\t\t\tisAllSelected = isSelectedByDefault();\n\t\t\tselectedRows(detail);\n\t\t\t//\tSet Collapsed\n\t\t\tif(row > 0)\n\t\t\t\tcollapsibleSearch.setCollapsed(isCollapsibleByDefault());\n\t\t}", "boolean hasRowsLocked();", "void onEnqueue(boolean success, long rowCount);", "public boolean onNextRecord(IDataTableRecord record) throws Exception;", "@Override\n public void tableChanged(final TableModelEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int viewRow = jTableImportMonitor.convertRowIndexToView(e.getFirstRow());\n jTableImportMonitor.scrollRectToVisible(jTableImportMonitor.getCellRect(viewRow, 0, true)); \n }\n });\n }", "private void waitForAConnection() throws Exception { Wait for either the sql statement to throw an error or the\n // fifo writer to throw an error\n //\n while (!isStopped()){\n data.fifoOpener.join(1000);\n //check if SQL Proces is still running has exited throw Error\n \n if(!checkSqlProcessRunning(data.sqlProcess)){\n throw new Exception(\"Ingres SQL process has stopped\");\n }\n \n \n if (data.fifoOpener.getState() == Thread.State.TERMINATED)\n break;\n \n try{\n data.sqlRunner.checkExcn();\n }\n catch (Exception e){\n // We need to open a stream to the fifo to unblock the fifo writer\n // that was waiting for the sqlRunner that now isn't running\n data.fifoOpener.join();\n logError(\"Make sure user has been granted the FILE privilege.\");\n logError(\"\");\n throw e;\n }\n \n try{\n data.fifoOpener.checkExcn();\n }\n catch (Exception e){\n throw e;\n }\n }\n \n data.fifoStream = data.fifoOpener.getFifoStream();\n \n logDetailed(\"Opened fifo file \" + data.fifoFilename + \" for writing.\");\n }", "public void waitForKeyPress() {\n panel.bWaitingForKey = true;\n while (panel.bWaitingForKey) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n }\n }\n }", "public void syncTableTop() {\n\t\tsetVerticalScrollPosition(rowHeader.getTop());\n\t}", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}", "public void waitForContentLoad(String element) {\n // TODO implement generic method to wait until page content is loaded\n\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.xpath(\".//td[contains(., \" + element + \")]\"))));\n }", "synchronized void refresh() {\n\n\t\t// We must not call fireTableDataChanged, because that would clear the\n\t\t// selection in the task window\n\t\tfireTableRowsUpdated(0, size - 1);\n\n\t}", "@Override\n\t\t\tpublic void CommitHandle(JTable table) {\n\t\t\t}", "@Override\n\t\t\tpublic void CommitHandle(JTable table) {\n\t\t\t}", "void flushBlocking();", "public boolean buffered() {\n return buffered;\n }", "public void waitToFinish()\n/* */ {\n/* 473 */ synchronized (this) {\n/* 474 */ while (getIterationsToGo() > 0) {\n/* */ try {\n/* 476 */ wait();\n/* */ }\n/* */ catch (InterruptedException e) {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "private void checkForSplitRowAndComplete(int length, int index) {\n // For singleton select, the complete row always comes back, even if\n // multiple query blocks are required, so there is no need to drive a\n // flowFetch (continue query) request for singleton select.\n //while ((position_ + length) > lastValidBytePosition_) {\n while (dataBuffer_.readableBytes() > lastValidBytePosition_) {\n // Check for ENDQRYRM, throw SQLException if already received one.\n checkAndThrowReceivedEndqryrm();\n\n // Send CNTQRY to complete the row/rowset.\n int lastValidByteBeforeFetch = completeSplitRow(index);\n\n // If lastValidBytePosition_ has not changed, and an ENDQRYRM was\n // received, throw a SQLException for the ENDQRYRM.\n checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch);\n }\n }", "protected void waitUntilCommandFinished() {\n }", "@Override\n\t\tpublic void run() {\n\t\t\tStartFrame.addTableAssign();\n\t\t\ttry {\n\t\t\t\tif(StartFrame.getTableAssign()<7) {\n\t\t\t\t\tsocket= new Socket(\"localhost\", 10001);\n\t\t\t\t\tSystem.out.println(\"Á¢¼Ó¼º°ø\");\n\t\t\t\t\t\n\t\t\t\t\tbilliardDIS= new DataInputStream( socket.getInputStream() );\n\t\t\t\t\tbilliardDOS= new DataOutputStream( socket.getOutputStream() );\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic boolean isReady() {\n\t\tResultSetDTO dto = mongoManager.fetchAndUpdateAvailableToRead(previousCollectionName);\r\n\t\t\r\n\t\tlogger.info(\"ready to start a new transaction? : [\"+(dto.isNotEmpty()?\"Yes\":\"No\")+\"], fetch size : \"+dto.getBatchRowsSize());\r\n\t\tif(dto.isNotEmpty()){\r\n\t\t\t\r\n\t\t\tnextBatchRows = dto.getBatchRows();\r\n\t\t\tcollectionName = dto.getCollectionName();\r\n\t\t\tpreviousCollectionName = collectionName;\r\n//\t\t\tlong idletime = 1 * 1000;\r\n//\t\t\tlogger.info(\"sleeping(has data)... idle time:\"+idletime+\" ms\");\r\n//\t\t\tUtils.sleep(idletime);\r\n\t\t\tlogger.debug(\"received data, prepare to sleep for a while...\");\r\n\t\t\tUtil.sleepForawhile(3 * 1000);\r\n\t\t\treturn true;\r\n\t\t} else{ //sleep while there is no data found\r\n\t\t\tlogger.warn(\"no data found, sleeping...\");\r\n\t\t\tUtil.sleepForawhile(6 * 1000);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n//\t\treturn mongoManager.getAvailableToRead(nextRead) > 0;\r\n\t}", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "private void runLater(String table, String id, Operation r) {\n\t\tif (captureHitRatio)\n\t\t\trequestsIn.increment();\n\t\tRowInTable element = new RowInTable(table, id);\n\t\twhile(true) {\n\t\t\tStoreRequest req = new StoreRequest(element);\n\t\t\tStoreRequest tmp = writesByRows.putIfAbsent(element, req);\n\t\t\ttry {\n\t\t\t\tif (tmp == null) {\n\t\t\t\t\t// req was added ; should also be put in the delay queue\n\t\t\t\t\treq.plan();\n\t\t\t\t\tlogger.fine(\"Request planned for \" + table + ':' + id + \" on \" + System.currentTimeMillis() + \" by \" + req);\n\t\t\t\t} else {\n\t\t\t\t\t// Another thread added request for this element before us\n\t\t\t\t\treq = tmp;\n\t\t\t\t}\n\t\t\t\tr.run(req);\n\t\t\t\t// Request is planned and merged ; leaving the infinite loop\n\t\t\t\tbreak;\n\t\t\t} catch (RequestIsOutException x) {\n\t\t\t\t// We've tried to update a request that went out meanwhile\n\t\t\t}\n\t\t\t// retrying eventually\n\t\t\tThread.yield();\n\t\t}\n\t}", "public void waitJobPrepareSuccess(final String distSQL) {\n for (int i = 0; i < 5; i++) {\n List<Map<String, Object>> jobStatus = queryForListWithLog(distSQL);\n Set<String> statusSet = jobStatus.stream().map(each -> String.valueOf(each.get(\"status\"))).collect(Collectors.toSet());\n if (statusSet.contains(JobStatus.PREPARING.name()) || statusSet.contains(JobStatus.RUNNING.name())) {\n Awaitility.await().pollDelay(2L, TimeUnit.SECONDS).until(() -> true);\n }\n }\n }", "private void selectLastUsed() {\n // Set the initial selection of the table:\n if (initSelection != null) {\n boolean found = false;\n for (int i = 0; i < table.getRowCount(); i++) {\n if (tableModel.getElementAt(i).getFile().getPath().\n equals(initSelection)) {\n table.setRowSelectionInterval(i, i);\n found = true;\n break;\n }\n }\n if (!found && (table.getRowCount() > 0)) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n else {\n if (table.getRowCount() > 0) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n }", "public synchronized List getBufferForReading() {\n// if some writer is writing, wait until no writer is writing \n while (readerNumber < 0) {\n try {\n this.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n// when readerNumber >= 0 \n readerNumber++;\n return buffer;\n }", "float getDurationBuffered() throws InterruptedException, ConnectionLostException;", "public void doLazyDataFetch()\n {\n if (m_fetchedRowCount == rowCount)\n m_fetchedRowCount = 0;\n else\n m_fetchedRowCount++;\n \n for (Enumeration e = m_dataDirectorListeners.elements(); e.hasMoreElements(); )\n {\n DataDirectorListener listener = (DataDirectorListener)e.nextElement();\n listener.waitDataAvailable(new WaitDataAvailableEvent(this));\n }\n }", "void whileIncomplete();", "private void refTable() {\n try {\n String s = \"select * from stock\";\n pstm = con.prepareStatement(s);\n res = pstm.executeQuery(s);\n table.setModel(DbUtils.resultSetToTableModel(res));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"There Is No Data In Server\");\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "private void receiveAndRegisterTable(){\n byte[] buf = new byte[10000];\n DatagramPacket recv = new DatagramPacket(buf, buf.length);\n\n boolean keepGoing = true;\n int counter = 1;\n int marginOfError = 3;\n\n try {\n getSocket().setSoTimeout(1000);\n } catch (SocketException e) {\n counter++;\n }\n\n /* Keeps receiving messages until the thread is cancelled */\n while(keepGoing && !isCancelled()) {\n Object msg = null;\n try {\n getSocket().receive(recv);\n msg = Serializer.deserialize(recv.getData());\n } catch (IOException e) {\n if(/* !newTables.equals(tables) && */ counter < marginOfError) {\n getPropertyChangeSupport().firePropertyChange(Message.Type.REQUEST_ALL_TABLES, 0, 1);\n }\n Log.d(\"CMReceiver\", \"Trying to receive datagram again (try \" + counter + \")\");\n counter++;\n }\n\n if(counter > marginOfError) {\n keepGoing = false;\n Log.d(\"CMReceiver\", \"Done\");\n }\n\n if (msg instanceof MulticastPackage) {\n String targetAddress = ((MulticastPackage) msg).getTarget();\n String packageName = ((MulticastPackage) msg).getPackageType();\n Object packageObject = ((MulticastPackage) msg).getObject();\n\n Log.d(\"FindTableReceiver\", packageName);\n\n if(targetAddress.equals(Message.Target.ALL_DEVICES)){\n if(packageName.equals(Message.Response.HOST_TABLE)){\n Log.d(\"CMReceiver\", \"Message received: \" + msg);\n newTables.put(((TableInfo) packageObject).getName(), (TableInfo) packageObject);\n }\n }\n }\n }\n }", "void prepareEntryMemTableFlush();", "public void handleLabTestUpdate() {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n tableModel.fireTableDataChanged();\r\n }\r\n });\r\n }", "public void waitUntilReady() throws IOException, InterruptedException {\n while (ready() == 0) {\n Thread.sleep(10);\n }\n }", "public void updateProgress() {\r\n\t\tfireTableDataChanged();\r\n\t}", "@Override\n protected void done() {\n model.displayErrorMsg(view);\n\n var tableauItems = new ArrayList<TableData>();\n\n try {\n programs = get();\n\n LocalDateTime ldt = LocalDateTime.now();\n String status = \"\";\n\n for (Program p : programs) {\n\n var id = p.getId();\n var title = p.getTitle();\n var startTime = p.getStartTime();\n var formatTime1 = timeFormatter(startTime);\n var endTime = p.getEndTime();\n var formatTime2 = timeFormatter(endTime);\n\n if (startTime.isBefore(ldt) && endTime.isAfter(ldt)) {\n\n status = \"Running\";\n }\n if (endTime.isBefore(ldt)) {\n\n status = \"Finished\";\n }\n if (startTime.isAfter(ldt)) {\n\n status = \"Upcoming\";\n }\n\n tableauItems.add(new TableData(id, title, formatTime1,\n formatTime2, status));\n\n }\n view.updateTable(tableauItems);\n view.setChannelImage(model.getChannelImg());\n\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n\n lastUpdate(LocalDateTime.now());\n view.setLastUpdated(lastUpdated);\n isUpdating.set(false);\n\n }", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "public static void run_simulation(JTable vehicleTable, JTable lightTable, Queue <Car> new_cars, ReentrantLock lock){\n Timer timer = new Timer(); \n // Creating an instance of task to be scheduled \n TimerTask task = new Worker(lightSE, lightWS, lightEW, vehicleTable, lightTable, Cars, new_cars, lock); \n \n // Scheduling the timer instance \n timer.schedule(task, 100, 1000); \n }", "public boolean occupyTable(Context ctx, boolean notify) {\n status = BUSY_STATUS;\n isStatusChanged = true;\n\n if (notify)\n updateServerTableStatus(ctx); //Send the new status to iDempiere\n\n return updateTable(ctx);\n }", "public void updatedTable() {\r\n\t\tfireTableDataChanged();\r\n\t}", "public void printTable() {\r\n \tif (table.size() == 0)\r\n Logger.error(\"Table \" + table.getType() + \" is empty!\");\r\n else {\r\n table.forEachRow(new EachRowListenerPrint());\r\n }\r\n }", "public synchronized void waitingToThraeds()\n\t{\n\t\twhile (countOfThreads<numberOfThreads)\n\t\t\n\t\ttry \n\t\t{\n\t\t\twait();\n\t\t}\n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\tSystem.out.println(\"Interrupted while waiting\");\n\t\t}\n\t \t\n\t\t\n \t\n\t}", "public void commitWait()\n {\n try{\n waitLock.lock();\n while(commitBarrierSector != -1){\n \t commitDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "public void waitForPackets()\r\n\t{\r\n\t\twhile ( true )\r\n\t\t{\r\n\t\t\ttry // receive packet and display contents\r\n\t\t\t{\r\n\t\t\t\tbyte data[] = new byte[ 100 ]; // set up packet\r\n\t\t\t\tDatagramPacket receivePacket = new DatagramPacket(\r\n\t\t\t\tdata, data.length );\r\n\t\t\t\tsocket.receive( receivePacket ); // wait for packet\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// display packet contents\r\n\t\t\t\tdisplayMessage( \"\\n\\tPacket received:\" + \r\n\t\t\t\t\t\t\"\\nFrom host: \"+ receivePacket.getAddress() +\r\n\t\t\t\t\t\t\"\\nHost port: \"+ receivePacket.getPort() +\r\n\t\t\t\t\t\t//\"\\nLength: \"+ receivePacket.getLength() +\r\n\t\t\t\t\t\t\"\\nContaining:\" + new String( receivePacket.getData(), 0, receivePacket.getLength() ) +\"\\n\");\r\n\t\t\t} // end try\r\n\t\t\tcatch ( IOException exception )\r\n\t\t\t{\r\n\t\t\t\tdisplayMessage( exception.toString() + \"\\n\" );\r\n\t\t\t\texception.printStackTrace();\r\n\t\t\t} // end catch\r\n\t\t}\r\n\t}", "public void executWaiting() {\n for (Runnable action : this.todo) {\n runAction( action );\n }\n }", "private void runWork()\r\n\t{\r\n\t\tRunnable transferPending = new Runnable()\r\n\t\t{\r\n\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\ttransferPendingCellData();\r\n\t\t\t\tfireTableDataChanged(); // causes the table to be updated\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\twhile(noStopRequested)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// refresh the plans vector\r\n\t\t\t\tplans = new java.util.LinkedList(Control.getInstance().getPlanObjects());\r\n\t\t\t\tcreatePendingCellData();\r\n\t\t\t\tSwingUtilities.invokeAndWait(transferPending);\r\n\t\t\t\tThread.sleep(2000L); // the REFRESH rate is set at two seconds\r\n\t\t\t}catch(InvocationTargetException tx)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"runWork - InvocationTargetException building cell data: \", tx);\r\n\t\t\t\tstopRequest();\r\n\t\t\t}catch(InterruptedException x)\r\n\t\t\t{\r\n\t\t\t\tThread.currentThread().interrupt();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "public void fireTableRowsUpdated(int firstRow, int lastRow);", "public Status waitUntilFinished();", "public synchronized void bufferMessage() throws Exception\r\n {\r\n\r\n System.out.println(\"BUFFER: Message from future round received. Buffering message.\");\r\n // Wait until node moves to next round.\r\n wait();\r\n\r\n }", "@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "public interface TableLoadHandler {\n Widget getMaskWidget();\n void onLoad();\n void onError(PrimaryTableUI table, Throwable t);\n void onLoaded(PrimaryTableUI table);\n void onComplete(int totalRows);\n}", "public void cliquerSauverContinuer() {\r\n\t\t\t\r\n\t\t\t//Identification du bouton et clic\r\n\t\t\tWebElement boutonSaveContinue = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//table[@id='\"+prefix()+\"y5-box']/tbody/tr[2]/td[2]\")));\r\n\t\t\tboutonSaveContinue.click();\r\n\t\t}", "@Override\n public void run() {\n while (running) {\n try {\n if ((System.currentTimeMillis() - heartbeat) > 100 * threadWaiting) {\n if (cache.size() > 0) {\n logger.info(\"Long time no data entry, save the buffer(size:{}) to the database \", cache.size());\n flush();\n }\n }\n TimeUnit.MILLISECONDS.sleep(100 * threadWaiting);\n } catch (InterruptedException e) {\n logger.error(\" InterruptedException error :{}\", e);\n }\n }\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.get();\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private void dealToTable()\r\n\t{\r\n\t\tthis.onTable.clear();\r\n\t\tif(this.deck.size() >= Config.TableCards)\r\n\t\t{\r\n\t\t\tthis.onTable.addAll(this.deck.subList(0, Config.TableCards));\r\n\t\t\tthis.deck = this.deck.subList(Config.TableCards, this.deck.size());\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean updateTable() {\r\n\t\t/*\r\n\t\t * VERSION 1\r\n\t\t *\r\n\t\tobjectCollection.clear();\r\n\t\tobjectCollection.addAll(retrieveObjects());\r\n\t\trefreshTable();*/\r\n\t\tlong size=objectCollection.size();\r\n\t\tobjectCollection.clear();\r\n\t\tint index=getSelectionIndex();\r\n\t\tupdateTable(SWT.DEFAULT);\r\n\t\tselectElement(index);\r\n\t\treturn objectCollection.size()!=size;\r\n\t}", "public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "private synchronized void block () throws IOException {\n //assert available == 0;\n int n = selector.select ();\n //assert n == 1;\n selector.selectedKeys().clear();\n available ();\n }" ]
[ "0.6426877", "0.5991258", "0.58371514", "0.5821149", "0.5799279", "0.57322645", "0.5705884", "0.5670233", "0.56646806", "0.56613374", "0.56538624", "0.55987614", "0.5584807", "0.5583772", "0.5525311", "0.55221283", "0.5499656", "0.5489381", "0.5474108", "0.5444578", "0.5434182", "0.54291594", "0.5428778", "0.54272777", "0.54058266", "0.5401894", "0.53656083", "0.5340724", "0.53251326", "0.5318573", "0.5309072", "0.530216", "0.5282022", "0.5280737", "0.5271613", "0.5263017", "0.5230112", "0.5192113", "0.51839197", "0.5174064", "0.51710117", "0.5143043", "0.51376915", "0.5108814", "0.51081276", "0.51029205", "0.50860745", "0.5085006", "0.5082584", "0.5081563", "0.5081442", "0.5067621", "0.5067621", "0.50598717", "0.5044515", "0.50425136", "0.5037732", "0.50305563", "0.50277853", "0.5026587", "0.50119644", "0.5006253", "0.50046813", "0.5003876", "0.5003543", "0.49902248", "0.49901152", "0.49855924", "0.49855542", "0.4975246", "0.49691072", "0.4967669", "0.49627072", "0.49554926", "0.49494058", "0.49462435", "0.49421087", "0.49079603", "0.4907694", "0.49059856", "0.49054807", "0.48924068", "0.4890213", "0.48858526", "0.48833916", "0.48775092", "0.48767203", "0.4876489", "0.48719275", "0.48682067", "0.48635495", "0.48608068", "0.4853183", "0.48519433", "0.48514676", "0.48354003", "0.4835256", "0.48326123", "0.4829432", "0.4822848" ]
0.6722473
0
prilikom brisanja valute brisu se i svi racuni koji su u toj valuti
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public ResponseEntity<Valute> obrisiValutu(@PathVariable Long id) { Valute valuta = valuteService.delete(id); return new ResponseEntity<>(valuta, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj vozila koje zelite da izbrisete ili vratite u neobrisano stanje\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tVozilo temp = Main.getVozilaAll().get(redniBroj);\n\t\t\tif (UtillMethod.voziloImaRezervacije(temp)) {\n\t\t\t\tSystem.out.println(\"Ovo vozilo ima aktivne rezervacije i ne moze biti obrisano!\");\n\t\t\t} else {\n\t\t\t\tif (temp.isVozObrisano()) {\n\t\t\t\t\ttemp.setVozObrisano(false);\n\t\t\t\t\tSystem.out.println(\"Vozilo je vraceno u sistem(neobrisano stanje)\");\n\t\t\t\t} else {\n\t\t\t\t\ttemp.setVozObrisano(true);\n\t\t\t\t\tSystem.out.println(\"Vozilo je uspesno izbrisano!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji vozilo sa tim brojem!\");\n\t\t}\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "public void bajarBloque() {\n\t\tif (piezaActual != null) {\n\t\t\tif (Mapa.getInstance().estaLibre(piezaActual.getBloque3().getX(),\n\t\t\t\t\tpiezaActual.getBloque3().getY() + 1)) {\n\t\t\t\tpiezaActual.getBloque3().bajar(); // Dejar en ese orden\n\t\t\t\tpiezaActual.getBloque2().bajar();\n\t\t\t\tpiezaActual.getBloque1().bajar();\n\t\t\t} else {\n\t\t\t\tthis.piezaNueva();\n\t\t\t}\n\t\t}\n\t}", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "public static ArrayList<Vkladi> rascetPolozBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tSystem.out.println(\"Polozitelnii balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "private Zivocich vytvorZivocicha() {\r\n final String[] zFarba = {\"cervena\", \"zelena\", \"modra\", \"zlta\", \"zlto-zelena\"};\r\n Zivocich zviera = null;\r\n double kolkoVazi = 0.0;\r\n\r\n //-- Vygenerujeme zviera\r\n int vygenerovane = 1 + generator.nextInt(4); //cislo <1,4>\r\n\r\n switch (vygenerovane) {\r\n case 1: //blcha \r\n double kolkoDoskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n double kolkoVyskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n zviera=new Blcha(6,kolkoDoskoci,kolkoVyskoci);\r\n break;\r\n case 2: //simpanz\r\n kolkoVazi=3 + (97 * generator.nextDouble()); //cislo <3;99.9>\r\n boolean cviceny;\r\n cviceny=generator.nextBoolean(); \r\n zviera=new Simpanz(kolkoVazi,cviceny);\r\n break;\r\n case 3: //papagaj\r\n kolkoVazi = 0.1 + (5*generator.nextDouble()); // cislo <0.1; 6>\r\n String farba = zFarba[generator.nextInt(5)]; // farba zo zoznamu\r\n zviera = new Papagaj(\"Ara\", 2, kolkoVazi, farba); \r\n break;\r\n case 4: //slon\r\n kolkoVazi=20 + (480*generator.nextDouble()); //cislo <20;500> \r\n int pocet=generator.nextInt(50); //pocet zubov bude <0,49>\r\n zviera=new Slon(kolkoVazi,pocet);\r\n break;\r\n } //------------------------------------------------------------- switch --\r\n return zviera;\r\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "float znajdzOstatecznaCene2()\n\t{\n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\tfloat minimuCena =-1;\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//wyznacz liste ktora ma najwieksza wartosc funkcji rynkowej\n\t\t\n\t\tArrayList<Float> cenyZNajwiekszaFunkcjaRynkowa = new ArrayList<>();\n\t\tfloat maximumFunkcjiRynkowej=-1;\n\t\t\n\t\ti=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(value, cena);\n\n\t\t\t\n\t\t\tif (value>maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.clear();\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t\tmaximumFunkcjiRynkowej = value;\n\t\t\t}\n\t\t\telse if (value==maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tminimuCena = cenyZNajwiekszaFunkcjaRynkowa.get(cenyZNajwiekszaFunkcjaRynkowa.size()/2);\n\t\t\n\t\treturn minimuCena;\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner tastatura = new Scanner(System.in);\r\n\t\tint pismo = 0;\r\n\t\tint brojBacanja = 0;\r\n\t\tint ishodBacanja = 0;\r\n\t\tint brojPisma = 0;\r\n\t\tint brojGlava = 0;\r\n//\t\tdouble kolicnkZaPismo = (double) brojPisma/brojBacanja;\r\n//\t\tdouble kolicnikZaGlavu = (double) brojGlava/brojBacanja;\r\n\t\t//ne moze ovde\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Koliko puta zelite da bacite novcic: \");\r\n\t\t\tbrojBacanja = tastatura.nextInt();\r\n\t\t\t\r\n\t\t\tif(brojBacanja == 0) break; \r\n\t\t\t\tbrojPisma = 0;\r\n\t\t\t\tbrojGlava = 0;\r\n\t\t\r\n\t\t\tfor (int i = 0; i<brojBacanja; i++) {\r\n\t\t\t\tishodBacanja = (int) (Math.random() + 0.5);\r\n\t\t\t\tif(ishodBacanja == pismo)\r\n\t\t\t\t\tbrojPisma++; \r\n\t\t\t\t\t//++ znaci ako je u zagradi tacno izvrsava se to nesti++\r\n\t\t\t\telse \r\n\t\t\t\t\tbrojGlava++;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble kolicnkZaPismo = (double) brojPisma/brojBacanja; //obavezno 2x double\r\n\t\t\tdouble kolicnikZaGlavu = (double) brojGlava/brojBacanja;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Kolicnik za pisma: \" + kolicnkZaPismo);\r\n\t\t\tSystem.out.println(\"Kolicnik za glavu: \" + kolicnikZaGlavu);\r\n\t\t\tSystem.out.println(\"Pismo je palo \" + brojPisma +\" puta\");\r\n\t\t\tSystem.out.println(\"Glava je pala \" + brojGlava + \" puta\");\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"***Za izlaz ukucajte 0 ***\");\r\n\t\t\t\r\n// u zadatku\t\t\t\r\n//\t\t\tSystem.out.print(\"Broj pisma Broj glava\");\r\n//\t\t\tSystem.out.print(\" Broj pisma / Broj bacanja\");\r\n//\t\t\tSystem.out.println(\" Broj glava / Broj bacanja\");\r\n//\t\t\t\r\n//\t\t\tSystem.out.printf(\"%8d %12d %17.2f %25.2f\\n \" , \r\n//\t\t\t\t\tbrojPisma, brojGlava,\r\n//\t\t\t\t\t(double) brojPisma / brojBacanja,\r\n//\t\t\t\t\t(double) brojGlava / brojBacanja);\r\n\t\t}\r\n\t}", "public static ArrayList<Vkladi> rascetObsciBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tint z = 0;\r\n\t\tfor (Krediti kredit : kred) {\r\n\r\n\t\t\tz = z + kredit.getDolg();\r\n\t\t}\r\n\t\tint y = 0;\r\n\t\ty = z + t;\r\n\t\tSystem.out.println(\"Symarnii balanse Scetov= \" + y + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public static String seuraavaArvaus(HashMap<String, Integer> muisti, String viimeisimmat, String kaikki) {\n if (kaikki.length() < 3) {\n return \"k\";\n }\n\n String viimKivi = viimeisimmat + \"k\";\n String viimPaperi = viimeisimmat + \"p\";\n String viimSakset = viimeisimmat + \"s\";\n \n int viimKiviLkm = 0;\n int viimPaperiLkm = 0;\n int viimSaksetLkm = 0;\n String arvaus = \"k\";\n int viimValueMax = 0;\n /*\n Sopivan valinnan etsiminen tehdään tarkastelemalla käyttäjän kahta viimeistä\n syötettä ja vertailemalla niitä koko historiaan. Mikäli historian mukaan\n kahta viimeistä syötettä seuraa useimmin kivi, tekoälyn tulee pelata paperi.\n Mikäli kahta viimeistä syötettä seuraa useimmin paperi, tekoälyn tulee \n pelata sakset. Mikäli taas kahta viimeistä syötettä seuraa useimmin sakset, \n tekoälyn tulee pelata kivi. Muissa tapauksissa pelataan kivi.\n */\n if (muisti.containsKey(viimKivi)) {\n viimKiviLkm = muisti.get(viimKivi);\n }\n if (muisti.containsKey(viimPaperi)) {\n viimPaperiLkm = muisti.get(viimPaperi);\n }\n if (muisti.containsKey(viimSakset)) {\n viimSaksetLkm = muisti.get(viimSakset);\n }\n\n if (viimKiviLkm > viimPaperiLkm && viimKiviLkm > viimSaksetLkm) {\n return \"p\";\n }\n if (viimPaperiLkm > viimKiviLkm && viimPaperiLkm > viimSaksetLkm) {\n return \"s\";\n }\n if (viimSaksetLkm > viimKiviLkm && viimSaksetLkm > viimPaperiLkm) {\n return \"k\";\n }\n\n return arvaus;\n }", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public static void dodavanjeBicikl() {\n\t\tString vrstaVozila = \"Bicikl\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = Main.nista;\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = 0;\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 700;\n\t\tdouble cenaServisa = 5000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tint brSedist = 1;\n\t\tint brVrata = 0;\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tBicikl vozilo = new Bicikl(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\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}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] brojeviunizu = new int[512];\n\t\tdouble brojbrojevaunizu;\n\t\tint brojac=0;\n\t\tint zbir=0;\n\t\tSystem.out.println(\"\\nUnesite koliko brojeva zelite da bude u nizu: \");\n\t\tbrojbrojevaunizu = input.nextInt();\n\t\tSystem.out.print(\"\\n\");\n\t\tfor(brojac=0;brojac<brojbrojevaunizu;brojac++) {\n\t\t\tSystem.out.println(+(brojac+1)+\". element niza je: \");\n\t\t\tbrojeviunizu[brojac] = input.nextInt();\n\t\t}\n\t\tSystem.out.println(\"\\nElementi niza su: \\n\"); \n\t\tfor(brojac=0;brojac<brojbrojevaunizu;brojac++) \n\t\t{\n\t\tSystem.out.println((brojac+1)+\". broj u nizu je: \" +brojeviunizu[brojac]);\n\t\tzbir=zbir+brojeviunizu[brojac];\n\t\t}\n\t\tSystem.out.println(\"Ukupan zbir clanova niza je: \"+zbir);\n\t\tSystem.out.println(\"Prosek clanova niza je: \"+(zbir/brojbrojevaunizu));\n\t\tinput.close(); \n\t}", "protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }", "public static void main(String[] args) {\n ArrayList<Integer> taszkok = new ArrayList<>();\r\n String text = null;\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n text = reader.readLine();\r\n\r\n String[] taszkfeltolt = text.split(\",\");\r\n for(int i = 0; i<taszkfeltolt.length ;i++){\r\n taszkok.add(Integer.parseInt(taszkfeltolt[i])) ;\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n\r\n }\r\n\r\n int laphibak=0;\r\n ArrayList<String> abc = new ArrayList<>();\r\n ArrayList<Integer> fagyi = new ArrayList<>();\r\n ArrayList<Integer> szam = new ArrayList<>();\r\n for(int i = 0; i<taszkok.size();i++){\r\n boolean csillag=false;\r\n boolean nemvoltlaphiba=false;\r\n int fagyilesz=-1;\r\n //System.out.print(taszkok.get(i));\r\n\r\n if(0>taszkok.get(i)){\r\n //valami történik\r\n taszkok.set(i, taszkok.get(i)*(-1));\r\n fagyilesz=0;\r\n }\r\n if(abc.size()<3){\r\n\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){\r\n if (abc.size()==2){\r\n abc.add(\"C\");\r\n System.out.print(\"C\");\r\n }\r\n else if (abc.size()==1){\r\n abc.add(\"B\");\r\n System.out.print(\"B\");\r\n }\r\n else if (abc.size()==0){\r\n abc.add(\"A\");\r\n System.out.print(\"A\");\r\n }\r\n szam.add(taszkok.get(i));\r\n if(fagyilesz!=0){\r\n fagyi.add(4); // a kör végén ugy is csökkentem 1el elsőre is\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n //System.out.print(abc);\r\n int tempfagyi=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n if(fagyilesz!=0){\r\n fagyi.add(tempfagyi);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n //System.out.print(temp+\"e,\");\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n }\r\n else if(abc.size()==3){\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){ //ha ez egy uj szam\r\n int hanyadikbet=vanszabad(fagyi);\r\n if(hanyadikbet!=-1){\r\n String temp=abc.get(hanyadikbet);\r\n szam.remove(hanyadikbet);\r\n szam.add(taszkok.get(i));\r\n abc.remove(hanyadikbet); //a tömb végére rakom és 4 ra allitom a fagyasztast\r\n abc.add(temp);\r\n\r\n fagyi.remove(hanyadikbet);\r\n if(fagyilesz!=0){\r\n fagyi.add(4);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n\r\n System.out.print(temp);\r\n }\r\n else{\r\n csillag=true;\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n int fagyitemp=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n fagyi.add(fagyitemp);\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n\r\n }\r\n\r\n if (csillag==true){\r\n System.out.print(\"*\");\r\n }\r\n if(nemvoltlaphiba==true){\r\n System.out.print(\"-\");\r\n }\r\n else{\r\n laphibak++;\r\n }\r\n for(int j = 0; j<fagyi.size();j++){\r\n if(fagyi.get(j)!=0){\r\n fagyi.set(j,fagyi.get(j)-1); //csokkentem a fagyasztast\r\n }\r\n }\r\n }\r\n\r\n\r\n System.out.println();\r\n System.out.print(laphibak);\r\n }", "public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void billeMurs() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\tint mur = 0;\n\n\t\t// Contact Gauche de la bille\n\t\tif (billeEnCours.GM()[0] <= 0) {\n\t\t\tmur = 1;\n\t\t}\n\n\t\t// Contact Droite de la bille\n\t\tif (mur == 0) {\n\t\t\tif (billeEnCours.DM()[0] >= limiteDroite) {\n\t\t\t\tmur = 5;\n\t\t\t}\n\t\t}\n\n\t\t// Contact Haut de la bille\n\t\tif (mur == 0) {\n\t\t\tif (billeEnCours.MH()[1] <= 0) {\n\t\t\t\tmur = 3;\n\t\t\t}\n\t\t}\n\n\t\t// Contact Bas de la bille\n\t\tif (mur == 0) {\n\t\t\tif (billeEnCours.MB()[1] >= limiteHaut) {\n\t\t\t\tmur = 7;\n\t\t\t\tperteDeVie();\n\t\t\t\tbilleEnCours.changeVitesse(vitBilleInitiale);\n\t\t\t\tbilleEnCours.changePosition(posBilleInitiale);\n\t\t\t\tbarreEnCours.changePosition(posBarreInitiale);\n\t\t\t}\n\t\t}\n\n\t\t// Mise à jour de la vitesse\n\n\t\tif ((mur == 1)||(mur == 5)) {\n\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\n\n\t\tif (mur == 3) {\n\t\t\tint[] nv = {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\n\n\t}", "private TreeNode napraviStabloUtil(List<TreeNode> cvorovi, int pocetni, int krajnji) {\n// osnovni slučaj\n if (pocetni > krajnji) {\n return null;\n }\n /* Nadji srednji element i proglasi ga korenom */\n int mid = (pocetni + krajnji) / 2;\n TreeNode cvor = cvorovi.get(mid);\n /* Koristeci indeks u infiks obilasku\n* konstruiši levo i desno podstablo */\n cvor.left = napraviStabloUtil(cvorovi, pocetni, mid - 1);\n cvor.right = napraviStabloUtil(cvorovi, mid + 1, krajnji);\n return cvor;\n }", "public static double provjera() {\r\n\t\t\t\t\r\n\t\t\t\tdouble broj = 0;\t\r\n\t\t\t\tboolean provjera = true;\t\r\n\t\t\t\tdo {\r\n\t\t\t\t\t//ucitavanje unosa i provjera da li je int\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbroj = unos.nextDouble();\t\r\n\t\t\t\t\t\t//ako je sve ok, vrati broj\t\r\n\t\t\t\t\t\tprovjera = false;\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//hvata greska i trazi ponovni unos\r\n\t\t\t\t\tcatch (InputMismatchException ex) {\t\r\n\t\t\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\r\n\t\t\t\t\t\tunos.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (provjera);\r\n\t\t\t\t\r\n\t\t\t\treturn broj;\r\n\t\t}", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "public static void main(String []args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer.parseInt(br.readLine());\n String[] imeDobriDeca = new String[N];\n // tuka se zachuvuvaat soodvetnite adresi na decata\n String[] poklonDobriDeca = new String[N];\n String pom;\n CBHT<String,String> hashTable = new CBHT<String, String>((int)(N/0.7));\n for (int i = 0; i < N; i++) {\n pom = br.readLine();\n String[] del = pom.split(\" \");\n imeDobriDeca[i] = del[0];\n poklonDobriDeca[i] = del[1];\n hashTable.insert(del[0],del[1]);\n }\n //tuka se zapishuva imeto na deteto shto treba da se proveri\n String deteZaProverka = br.readLine();\n deteZaProverka = evaluate(deteZaProverka);\n if ( hashTable.search(deteZaProverka) != null ){\n System.out.println(hashTable.search(deteZaProverka).element.value);\n }\n else System.out.println(\"Nema poklon\");\n }", "public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "public void rozseparujWytnijBialeZnaki() {\r\n\t\tString[] bufor;\r\n\t\tString[] tablicaWynik;\r\n\t\tint licznik;\r\n\t\tint m;\r\n\t\tfor (String s : calaZawartosc) {\r\n\t\t\tbufor = s.split(\"[\\\\s]+\");\r\n\t\t\tlicznik = 0;\r\n\r\n\t\t\tfor (int i = 0; i < bufor.length; ++i)\r\n\t\t\t\tif (!bufor[i].equals(\"\")) {\r\n\t\t\t\t\t++licznik;\r\n\t\t\t\t}\r\n\r\n\t\t\ttablicaWynik = new String[2 * licznik];\r\n\r\n\t\t\tm = 0;\r\n\r\n\t\t\tfor (String str : bufor)\r\n\t\t\t\tif (!str.equals(\"\")) {\r\n\t\t\t\t\ttablicaWynik[m] = str;\r\n\t\t\t\t\ttablicaWynik[m + 1] = \" \";\r\n\t\t\t\t\t++m;\r\n\t\t\t\t\t++m;\r\n\t\t\t\t}\r\n\r\n\t\t\tcalaZawartoscRozsep.add(tablicaWynik);\r\n\t\t}\r\n\t}", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "private boolean spoji(int direkcija) {\r\n\t\tint pocetna;\r\n\t\tint pomak;\r\n\t\tboolean spojeno = false;\r\n\t\tboolean bilo_promjene = false;\r\n\t\t\r\n\t\t// pomjeranje desno i lijevo\r\n\t\tif(direkcija == 1 || direkcija == 2) {\r\n\t\t\tpocetna = 6 - 3*direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 2*direkcija - 3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\t\tfor(int j = pocetna ; j != pocetna + 3 * pomak ; j += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i][j + pomak]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i][j + pomak] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// pomjeranje gore i dole\r\n\t\telse {\r\n\t\t\tpocetna = direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 1 - (2*direkcija)/3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tfor(int i = pocetna ; i != pocetna + 3 * pomak ; i += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i + pomak][j]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i + pomak][j] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bilo_promjene;\r\n\t}", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "private static void cajas() {\n\t\t\n\t}", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "private void dodajEpsilonPrijelaz(int pocetno, int sljedece) {\n String key = pocetno + \",$$\";\n if (!prijelazi.containsKey(key)) {\n prijelazi.put(key, new Integer(sljedece).toString());\n } else {\n String value = prijelazi.get(key) + \",\" + new Integer(sljedece).toString();\n prijelazi.put(key, value);\n }\n }", "private static int zamijeniDvijeKarte(int[] spil) {\n\t\tint prva =randomKarta (spil);\n\t\tint druga = randomKarta (spil);\n\t\tzamijeni (spil, prva, druga);\n\t\t\n\t\treturn spil, prva, druga;\n\t}", "public void mutacioni(Individe individi, double probabiliteti) {\n int gjasaPerNdryshim = (int) ((1 / probabiliteti) * Math.random());\r\n if (gjasaPerNdryshim == 1) {\r\n int selectVetura1 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e pare\r\n int selectPikenKamioni1 = (int) (Math.random() * individi.pikatEVeturave[selectVetura1].size());//selekton piken e vetures tpare\r\n if (pikatEVeturave[selectVetura1].size() == 0) {\r\n return;\r\n }\r\n Point pika1 = individi.pikatEVeturave[selectVetura1].get(selectPikenKamioni1);//pika 1\r\n\r\n int selectVetura2 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e dyte\r\n int selectPikenKamioni2 = (int) (Math.random() * individi.pikatEVeturave[selectVetura2].size());//selekton piken e vetures tdyte\r\n if (pikatEVeturave[selectVetura2].size() == 0) {\r\n return;\r\n }\r\n Point pika2 = individi.pikatEVeturave[selectVetura2].get(selectPikenKamioni2);//pika 2\r\n\r\n individi.pikatEVeturave[selectVetura2].set(selectPikenKamioni2, pika1);//i ndrron vendet ketyre dy pikave\r\n individi.pikatEVeturave[selectVetura1].set(selectPikenKamioni1, pika2);\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\t\tScanner tastiera=new Scanner(System.in);\r\n\t\t\tint k=0, j=0;\r\n\t\t\tint conta=0;\r\n\t\t\tString risposta=\"\";\r\n\t\t\tRandom r=new Random();\r\n\t\t\tArrayList<Giocatore> partecipantiOrdinati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> partecipantiMescolati=new ArrayList<Giocatore>();\r\n\t\t\tArrayList<Giocatore> perdenti=new ArrayList<Giocatore>();\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tpartecipantiOrdinati.add(new Giocatore(GIOCATORI[i]));\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<GIOCATORI.length;i++) {\r\n\t\t\t\tint indice=Math.abs(r.nextInt()%partecipantiOrdinati.size());\r\n\t\t\t\tpartecipantiMescolati.add(partecipantiOrdinati.get(indice));\r\n\t\t\t\tpartecipantiOrdinati.remove(indice);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"INIZIA IL TORNEO DI BRISCOLA!\");\r\n\t\t\twhile(partecipantiMescolati.size()!=1) {\r\n\t\t\t\tSystem.out.println(\"Fase \"+(j+1));\r\n\t\t\twhile(conta<partecipantiMescolati.size()) {\r\n\t\t\t\tMazzo m=new Mazzo();\r\n\t\t\t\tm.ordinaMazzo();\r\n\t\t\t\tm.mescolaMazzo();\r\n\t\t\t\tGiocatore g1=partecipantiMescolati.get(conta);\r\n\t\t\t\tGiocatore g2=partecipantiMescolati.get(conta+1);\r\n\t\t\t\tPartita p=new Partita(g1,g2,m);\r\n\t\t\t\tSystem.out.println(\"Inizia la partita tra \"+g1.getNickName()+\" e \"+g2.getNickName());\r\n\t\t\t\tSystem.out.println(\"La briscola è: \"+p.getBriscola().getCarta());\r\n\t\t\t\tSystem.out.println(\"Vuoi skippare la partita? \"); risposta=tastiera.next();\r\n\t\t\t\tif(risposta.equalsIgnoreCase(\"si\")) {\r\n\t\t\t\t\tg1.setPunteggio(p.skippa());\r\n\t\t\t\t\tg2.setPunteggio(PUNTI_MASSIMI-g1.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g1.getNickName());//vince g1\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto \"+g2.getNickName());// vince g2\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tp.aggiungiPerdente(g1);\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\tp.daiLePrimeCarte();\r\n\t\t\t\t\tCarta c1=new Carta(g1.gioca().getCarta());\r\n\t\t\t\t\tCarta c2=new Carta(g2.gioca().getCarta());\r\n\t\t\t\t\tg1.eliminaDaMano(c1); g2.eliminaDaMano(c2);\r\n\t\t\t\t\tint tracciatore=1; //parte dal giocatore 1\r\n\t\t\t\t\twhile(!m.mazzoMescolato.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g1); p.pesca(g2);\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tp.pesca(g2); p.pesca(g1);\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2); \r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{tracciatore = 1; k--;}\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Manche Finale\");\r\n\t\t\t\t\twhile(!g1.carteInMano.isEmpty() || !g2.carteInMano.isEmpty()) {\r\n\t\t\t\t\t\tSystem.out.println(c1.getCarta()+\" \"+c2.getCarta());\r\n\t\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc1=g1.gioca(); c2=g2.gioca();\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(p.chiPrende(c2, c1)) {\r\n\t\t\t\t\t\t\ttracciatore=2;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t\t\tc2=g2.gioca(); c1=g1.gioca();\r\n\t\t\t\t\t\t\tg2.eliminaDaMano(c2);\r\n\t\t\t\t\t\t\tg1.eliminaDaMano(c1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ttracciatore = 1;\r\n\t\t\t\t\t\tSystem.out.println(g1.getPunteggio()+\" \"+g2.getPunteggio());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(p.chiPrende(c1, c2) && tracciatore==1) {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g1.getNickName());\r\n\t\t\t\t\t\tg1.setPunteggio(g1.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Prende \"+g2.getNickName());\r\n\t\t\t\t\t\tg2.setPunteggio(g2.aumentaPunteggio(c1.valoreCarta()+c2.valoreCarta()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Situazione: \"+g1.getNickName()+\": \"+g1.getPunteggio());\r\n\t\t\t\t\tSystem.out.println(g2.getNickName()+\": \"+g2.getPunteggio());\r\n\t\t\t\t\tif(p.vittoria()) {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g1.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g1.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.println(\"Ha vinto il giocatore \"+g2.getNickName());\r\n\t\t\t\t\t\tSystem.out.println(\"Con un punteggio di \"+g2.getPunteggio());\r\n\t\t\t\t\t\tperdenti.add(g1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconta+=2;\r\n\t\t\t\tSystem.out.println(\"Premi una lettera per continuare: \"); risposta=tastiera.next();\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\tconta=0;\r\n\t\t\tfor(int i=0;i<perdenti.size();i++)\r\n\t\t\t\tpartecipantiMescolati.remove(perdenti.get(i));\r\n\t\t\tSystem.out.println(\"Restano i seguenti partecipanti: \");\r\n\t\t\tfor(int i=0;i<partecipantiMescolati.size();i++) {\r\n\t\t\t\tSystem.out.println(partecipantiMescolati.get(i).getNickName());\r\n\t\t\t\tpartecipantiMescolati.get(i).setPunteggio(0);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Il vincitore del torneo è: \"+partecipantiMescolati.get(0).getNickName());\r\n\t\t\t\t\r\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "@Test\r\n\tpublic void testGetPeliBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 3.5);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 4);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\r\n\t}", "private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "protected String seuraavaBittijono(String binaarina, int i) {\n int loppu = Math.min(binaarina.length(), i + merkkienPituus);\n return binaarina.substring(i, loppu);\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "private Integer randomBilirrubina(){\n\t\t\tint Min = 0, Max = 14;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private void generisiPolje() {\r\n\t\tint polje = rnd.nextInt(broj_slobodnih);\r\n\t\tint vrijednost = rnd.nextInt(4);\r\n\t\tif(vrijednost == 0)\r\n\t\t\tvrijednost = 4;\r\n\t\telse\r\n\t\t\tvrijednost = 2;\r\n\t\t\r\n\t\tint brojac = 0;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tif(tabela[i][j] == 0) {\r\n\t\t\t\t\tif(brojac == polje)\r\n\t\t\t\t\t\ttabela[i][j] = vrijednost;\r\n\t\t\t\t\tbrojac++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tbroj_slobodnih--;\r\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void billeBarre() { \t\t\t\t\t\t\t\t\t\t\t\n\t\tint contact = 0;\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Étude des contacts avec les 8 points de la bille\n\t\t// Contact GaucheHaut de la bille\n\n\t\t// Contact haut de la bille\n\t\tint[] p = billeEnCours.MH();\n\t\tif (p[1] <= barreEnCours.bas() && p[1] >= barreEnCours.haut() && p[0] <= barreEnCours.droite() && p[0] >= barreEnCours.gauche()) {\n\t\t\tcontact = 3;\n\t\t}\n\n\t\t// Contact bas de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.MB();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 7;\n\t\t\t}\n\t\t}\n\n\t\t// Contact droite de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.DM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 5;\n\t\t\t}\n\t\t}\n\n\t\t// Contact gauche de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.GM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 1;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 2;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 4;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 8;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 6;\n\t\t\t}\n\t\t}\n\n\t\t// Mise à jour de la vitesse \n\n\t\t// Rencontre d'un coin\n\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\tbilleEnCours.demiTour();\n\t\t}\n\n\t\t// Contact Classique\n\t\t// Gauche - Droite\n\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\n\n\t\t// Haut - Bas : Déviation de la balle\n\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\tint[] nv = new int[] {1,1};\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4 && billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] - 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] + 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\t\t\t\n\n\n\t}", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\n Studenti s1= new Studenti(\"Pera Peric\",\"drumski\",\"DR-123\");\n Studenti s2 = new Studenti(\"Laza Lazic\", \"logistika\",\"LO-267\");\n Studenti s3 = new Studenti(\"Marko Markovic\", \"vodni\", \"VO-745\");\n\n // menja broj indeksa\n s2.setBrIndeksa(\"LO-473\");\n\n // stampa sve podatke o studentu - kada nisu uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n\n //unos rezultata, stampanje rezultata i poruka da li je polozio ispit ili nije na osnovu rezultata\n s1.setRezultat(81);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s1.getRezultat()); //81\n s2.setRezultat(50);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s2.getRezultat()); //50\n s3.setRezultat(-4);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s3.getRezultat()); //0, ne prihvata -4\n\n // stampa sve podatke o studentu - kada su uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n }", "public void hitunganRule2(){\n penebaranBibitSedikit = 1200;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu Penebaran Bibit\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen Lama\r\n if ((hariPanenLama >=100) && (hariPanenLama <=180)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a2 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a2 = nPanen;\r\n }\r\n \r\n //tentukan Z2\r\n z2 = (penebaranBibitSedikit + hariPanenLama) * 700;\r\n System.out.println(\"a2 = \" + String.valueOf(a2));\r\n System.out.println(\"z2 = \" + String.valueOf(z2));\r\n }", "public void controlla_bersaglio() {\n\n if ((x[0] == bersaglio_x) && (y[0] == bersaglio_y)) {\n punti++;\n posiziona_bersaglio();\n }\n }", "public static ArrayList<Krediti> rascetOtricBalans() {\r\n\t\tArrayList<Krediti> foundKrediti = new ArrayList<Krediti>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Krediti vkla : kred) {\r\n\r\n\t\t\tt = t + vkla.getDolg();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"Otrictelni balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundKrediti;\r\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}", "private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "private void xuLyThanhToanDichVu() {\n if(checkGia(txtThanhToanDVSoLuongCu.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongCu.requestFocus();\n return;\n }//Kiem tra so luong cu\n \n if(checkGia(txtThanhToanDVSoLuongMoi.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongMoi.requestFocus();\n return;\n }//kiem tra so luong moi\n \n float soLuongCu = Float.valueOf(txtThanhToanDVSoLuongCu.getText().trim());\n float soLuongMoi = Float.valueOf(txtThanhToanDVSoLuongMoi.getText().trim());\n float soLuong = soLuongMoi - soLuongCu;\n txtThanhToanDVSoLuong.setText(soLuong+\"\");\n tongCong += soLuong * Float.valueOf(txtThanhToanDVGiaDV.getText().trim());\n txtThanhToanTongCong.setText(tongCong+\" VNĐ\");\n \n }", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "public double Rule2 (double hargabaru, double kualitas){\n double alfa2 = Math.min(miuHBMahal(hargabaru), miuKualSedang(kualitas));\r\n double hasil = hasilHSMahal(alfa2);\r\n hasil = alfa2 * hasil;\r\n alfatotal = alfatotal + alfa2;\r\n System.out.println(\"Alfa2 : \"+alfa2);\r\n System.out.println(hasil);\r\n return hasil;\r\n\r\n }", "public void billeBriques() {\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Parcours des briques pour vérifier les contacts\n\t\tListIterator <Brique> iter = niveauEnCours.grilleBriques.listIterator(0);\n\t\tint contact = 0;\n\n\t\twhile (iter.hasNext() && contact == 0) {\n\t\t\tBrique b = iter.next();\n\n\t\t\t// Étude des contacts avec les 8 points de la bille\n\n\t\t\t// Contact GaucheHaut de la bille\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\tcontact = 2;\n\t\t\t\tb.coup();\n\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact DroiteHaut de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.DH();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 4;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact GaucheBas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.GB();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 8;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact DroiteBas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.DB();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 6;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact haut de la bille\n\t\t\tint[] p = billeEnCours.MH();\n\t\t\tif (contact == 0) {\n\t\t\t\tif (p[1] <= b.bas && p[1] >= b.haut && p[0] <= b.droite && p[0] >= b.gauche) {\n\t\t\t\t\tcontact = 3;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact bas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.MB();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 7;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact droite de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.DM();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 5;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact gauche de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.GM();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 1;\n\t\t\t\t\tb.coup();\n\t\t\t\t\tif (b.estDetruite()) {\n\t\t\t\t\t\tniveauEnCours.bonusEnChute.add(b.renvoyerBonus());\n\t\t\t\t\t\tniveauEnCours.grilleBriques.remove(iter.nextIndex()-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\t// Mise à jour de la vitesse \n\n\t\t\t// Rencontre d'un coin\n\t\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\t\tbilleEnCours.demiTour();\n\t\t\t}\n\n\t\t\t// Contact Classique\n\t\t\t// Gauche - Droite\n\t\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t\t}\n\n\t\t\t// Haut - Bas\n\t\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\t\tint[] nv = {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t\t}\t\t\t\n\n\t}", "float wyznaczCeneActual2(Boolean debug)\n\t{\n\t\tBoolean welcome = false && debug;\n\t\tBoolean funkcjaRynku = false && debug;\n\t\tBoolean bisectionStep = false && debug;\n\t\tBoolean bisectionEnd = true && debug;\n\t\tBoolean rownomienryPodzial = true && debug;\n\n\n\t\t\n\t\t//printListaFunkcjiUzytecznosci(1);\n\t\t//printListaFunkcjiUzytecznosci(2);\n\t\t\n\t\t//wszystkie ceny sa tkaie same wiec mozna wziac pierwszego prosumenta i od neigo pobrac cene\n\t\tArrayList<Point> L1 =listaFunkcjiUzytecznosci.get(0);\n\t\t\n\t\tfloat leftBound = L1.get(0).getPrice();\n\t\tfloat rightBound = L1.get(L1.size()-1).getPrice();\n\t\t\n\n\t\t\n\t\tif (welcome)\n\t\t{\n\t\t\tprint (\"Welcome to wyznaczCeneActual\");\n\t\t\tprint (\"leftBound \"+leftBound+\" \");\n\t\t\tprint (\"rightBound \"+rightBound+\" \");\n\t\t\tgetInput();\n\t\t}\n\t\t\n\t\t\t\t\n\t\tfloat valueToBeReturned = wyznaczCeneRownomiernyPodzial(leftBound,rightBound,rownomienryPodzial,false);\n\t\t\n\t\tif (bisectionEnd)\n\t\t{\n\t\t\tprint(\"Bisection end #2\");\n\t\t\tprint (\"return \" +valueToBeReturned);\n\n\t\t\tgetInput();\n\t\t}\n\t\t\n\t\treturn valueToBeReturned;\n\t}", "public static int parni(int broj) {\n\t\tString velicina = \"\" + broj;\n\t\tint velicinaBroja = velicina.length();\n\t\tint zbir = 0;\n\t\tint ostatak;\n\t\twhile (velicinaBroja > 0) {\n\t\t\tif (broj % 2 == 0) {\n\t\t\t\tostatak = broj % 10;\n\t\t\t\tzbir = 10 * zbir + ostatak;\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t\tif (broj % 2 != 0) {\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t}\n\n\t\treturn zbir;\n\t}", "public static void main(String[] args) {\n\t\tint n = 4;\t// Kontejneri\n\t\tint k = 1;\t// Kapacitet\n\t\tint prvi = n / k; // Provjera da li se svi mogu sloziti jedan u drugi (djeljivost sa 2)\n\t\tint exponent; // Jedini brojevi djeljivi sa 2 do kraja (slaganja kontejnera)\n\t\tint dodatni; // Koliko treba dodatnih\n\t\tfor (int i = 1; i > 0;) { // Racunaj eksponent 2 do kraja int vrijednosti...\n\t\t\ti = i * 2;\n\t\t\texponent = i;\n\t\t\tif (prvi == exponent) {\n\t\t\t\tSystem.out.println(\"Ne treba\");\n\t\t\t\tbreak;\n\t\t\t} else if (prvi != exponent) { // Ako se ne mogu sloziti do kraja, uzmi slijedeci veci eksponent od broj kontejnera i daj ostatak djeljenja, to su dodatne kutije.\n\t\t\t\tif (2 < n && n < 4) {\n\t\t\t\t\tdodatni = 4 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 4 < n && n < 8) {\n\t\t\t\t\tdodatni = 8 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 8 < n && n < 16) {\n\t\t\t\t\tdodatni = 16 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 16 < n && n < 32) {\n\t\t\t\t\tdodatni = 32 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (prvi != exponent && 32 < n && n < 64) {\n\t\t\t\t\tdodatni = 64 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 64 < n && n < 128) {\n\t\t\t\t\tdodatni = 128 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 128 < n && n < 256) {\n\t\t\t\t\tdodatni = 256 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 256 < n && n < 512) {\n\t\t\t\t\tdodatni = 512 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else { // U suprotno, djeljenje kontejnera i kapaciteta je jednako eksponentu 2 i ne treba doadatnih.\n\t\t\t\t\tSystem.out.println(\"Ne treba dodatnih kontejnera.\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\n }", "private void lisaaMiinaVasemmalle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i - 1 >= 0) {\n lista = this.ruudukko[i - 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "@Override\r\n\tpublic double obliczCenePoRabacie(double cena){\n\t\tcena = cena - kwotaRabatu;\r\n\t\treturn cena;\r\n\t\t\r\n\t}", "private void colidiuBloco(Bloco[] linhaBloco) {\n\n\t\tfor (int i = 0; i < blocoArray; i++) {\n\t\t\tif (linhaBloco[i].bateu(bola)) {\n\t\t\t\tbola.invertVertical();\n\t\t\t\tscore = score + 100;\n\t\t\t} // fecha if\n\t\t} // fecha for\n\n\t}", "public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}" ]
[ "0.6835111", "0.6403009", "0.6369331", "0.6362876", "0.6358738", "0.6355136", "0.6298418", "0.62928104", "0.62866586", "0.6279975", "0.62766904", "0.6261054", "0.6248862", "0.6215701", "0.62108386", "0.6208462", "0.6201766", "0.6178512", "0.61536354", "0.61497885", "0.6129306", "0.61188424", "0.6118075", "0.61173916", "0.61112714", "0.6109304", "0.6099729", "0.6074218", "0.60534745", "0.60529566", "0.6043906", "0.603535", "0.6032255", "0.6022464", "0.60120994", "0.60066986", "0.60044295", "0.6003924", "0.6003297", "0.59979886", "0.5997144", "0.5996686", "0.5994563", "0.5992754", "0.59880364", "0.5968004", "0.5966665", "0.5959613", "0.5955338", "0.5953294", "0.59522516", "0.59449106", "0.59271896", "0.59141", "0.59139895", "0.5912456", "0.5911141", "0.59066635", "0.5901312", "0.58986515", "0.5872983", "0.5872287", "0.5862388", "0.58563054", "0.58558375", "0.5854736", "0.58520734", "0.5851376", "0.584711", "0.5843522", "0.5837304", "0.5836939", "0.5832204", "0.5828855", "0.5827213", "0.5827162", "0.58266425", "0.5825824", "0.58251804", "0.58184266", "0.5818362", "0.5816427", "0.5815229", "0.58084023", "0.58019173", "0.5801495", "0.58004886", "0.57982147", "0.5796085", "0.579441", "0.579269", "0.57907254", "0.57895124", "0.57854825", "0.5779225", "0.577184", "0.57694304", "0.5767889", "0.5760489", "0.57538575", "0.5749784" ]
0.0
-1
/ 1.The owner of this view must call this method when the activity is resumed. 2.Calling this method will recreate the OpenGL display and resume the rendering thread. 3.Must not be called before a renderer has been set.
@Override public void onResume() { mPanoView.onResume(); super.onResume(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onResume()\n {\n super.onResume();\n mGLSurfaceView.onResume();\n }", "@Override\n protected void onResume()\n {\n super.onResume();\n mGLSurfaceView.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n mGLSurfaceView.onResume();\n }", "@Override\n public void onResume() {\n \tsuper.onResume();\n mGLSurfaceView.onResume();\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tmGLView.onResume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tsurfaceView.resume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t\tourSurfaceView.resume();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tourSurfaceView.onResume();\n\t}", "@Override\r\n protected void onResume() {\r\n Log.d(LOGTAG, \"onResume\");\r\n super.onResume();\r\n\r\n // This is needed for some Droid devices to force portrait\r\n if (mIsDroidDevice) {\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\r\n }\r\n\r\n try {\r\n vuforiaAppSession.resumeAR();\r\n } catch (ArException e) {\r\n Log.e(LOGTAG, e.getString());\r\n }\r\n\r\n // Resume the GL view:\r\n if (mGlView != null) {\r\n mGlView.setVisibility(View.VISIBLE);\r\n mGlView.onResume();\r\n }\r\n }", "private void initOpenGlView() {\n setEGLContextClientVersion(2);\n setPreserveEGLContextOnPause(true);\n System.out.println(\"************************************************************* init OpenGlView ********************\");\n// setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n// setEGLConfigChooser(8, 8, 8, 8, 0, 0); // added 10.05\n// getHolder().setFormat(PixelFormat.TRANSLUCENT); // // added 10.05\n }", "@Override\n public void onFrameAvailable(SurfaceTexture st) {\n mGLView.requestRender();\n }", "@Override\n protected void onPause() {\n super.onPause();\n releaseCamera();\n mGLView.queueEvent(new Runnable() {\n @Override public void run() {\n // Tell the renderer that it's about to be paused so it can clean up.\n mRenderer.notifyPausing();\n }\n });\n mGLView.onPause();\n// Log.d(TAG, \"onPause complete\");\n }", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n Log.d(LOGTAG, \"GLRenderer.onSurfaceCreated\");\n\n initRendering();\n\n vuforiaAppSession.onSurfaceCreated();\n }", "private void init(Context context) {\n setEGLContextClientVersion(3);\n\n mRenderer = new MyGLRenderer(context);\n\n // Set the Renderer for drawing on the GLSurfaceView\n setRenderer(mRenderer);\n// setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n }", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tLibNative.render();\n\t}", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n Log.d(TAG, \"surfaceCreated\");\n mRenderingPaused = false;\n mHolder = holder;\n updateRenderingState();\n }", "public void onResume() {\n super.onResume();\n drawUI();\n }", "public void resume() {\n // This must be safe to call multiple times\n Util.validateMainThread();\n Log.d(TAG, \"resume()\");\n\n // initCamera() does nothing if called twice, but does log a warning\n initCamera();\n\n if (currentSurfaceSize != null) {\n // The activity was paused but not stopped, so the surface still exists. Therefore\n // surfaceCreated() won't be called, so init the camera here.\n startPreviewIfReady();\n } else if(surfaceView != null) {\n // Install the callback and wait for surfaceCreated() to init the camera.\n surfaceView.getHolder().addCallback(surfaceCallback);\n } else if(textureView != null && Build.VERSION.SDK_INT >= 14) {\n textureView.setSurfaceTextureListener(surfaceTextureListener());\n }\n\n // To trigger surfaceSized again\n requestLayout();\n rotationListener.listen(getContext(), rotationCallback);\n }", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n GLSurfaceView view = new GLSurfaceView(this);\n view.setEGLConfigChooser(8, 8, 8, 8, 16, 0); //Transparent background\n view.getHolder().setFormat(PixelFormat.TRANSLUCENT); //Transparent background\n view.setRenderer(new OpenGLRenderer(this));\n setContentView(view);\n //Transition to Landing screen\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n // This app main activity\n Intent i = new Intent(SplashActivity.this, SearchActivity.class);\n startActivity(i);\n finish();\n }\n }, SPLASH_TIME_OUT);\n }", "private void render() {\r\n while(!Display.isCloseRequested() && !Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)){\r\n try{\r\n glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); \r\n glLoadIdentity();\r\n \r\n \r\n\r\n Display.update();\r\n Display.sync(60);\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n Display.destroy();\r\n }", "private void endRender() {\n //Restore state by unbinding everything\n glDisableVertexAttribArray(0);\n glDisableVertexAttribArray(1);\n glDisableVertexAttribArray(2);\n glDisableVertexAttribArray(3);\n glDisableVertexAttribArray(4);\n glBindVertexArray(0);\n\n glBindTexture(GL_TEXTURE_2D, 0);\n }", "@Override\n protected void onPause()\n {\n super.onPause();\n mGLSurfaceView.onPause();\n }", "@Override\n protected void onPause()\n {\n super.onPause();\n mGLSurfaceView.onPause();\n }", "private void initOpenGL()\n\t{\n\t\t// Create an OpenGL ES 2.0 context.\n\t\tsetEGLContextClientVersion(2);\n\n\t\t// Set the drawing quality.\n\t\t// Alpha isn't needed and the color choice is limited anyway, so we can get away with this setting.\n\t\tgetHolder().setFormat(PixelFormat.RGB_565);\n\t\tsetEGLConfigChooser(5, 6, 5, 0, 0, 0);\n\n\t\t// Prepare the renderer.\n\t\trenderer = new GLRenderer();\n\t\tsetRenderer(renderer);\n\n\t\t// Choose to only render the view on demand.\n\t\tsetRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n\n\t\t// Disable the unneeded depth test and stencil test.\n\t\tGLES20.glDisable(GLES20.GL_DEPTH_TEST);\n\t\tGLES20.glDisable(GLES20.GL_STENCIL_TEST);\n\n\t\t// Render the canvas for the first time.\n\t\trequestRender();\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n\n //Execute the game view's resume method\n gameEngine.resume();\n }", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\trequestRender();\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "@Override\n protected void onPause() {\n super.onPause();\n mGLSurfaceView.onPause();\n }", "@Override\n\tpublic void initCameraGlSurfaceView() {\n\t\t\n\t}", "public void release() {\n if (mEglDisplay != null && mEglSurface != null && mEglContext != null) {\n EGL14.eglMakeCurrent(this.mEglDisplay, this.mEglSurface, this.mEglSurface, this.mEglContext);\n EGL14.eglDestroySurface(mEglDisplay, mEglSurface);\n EGL14.eglDestroyContext(mEglDisplay, mEglContext);\n EGL14.eglTerminate(mEglDisplay);\n }\n EGL14.eglMakeCurrent(mEglDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);\n }", "@Override\n public void resume() {\n log.debug(\"resume()\");\n // set renderInterrupted to true\n renderInterrupted = true;\n\n }", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tif (!mIsActive)\n\t\t\treturn;\n\n\t\t// Call our function to render content from ArVuforiaAppRenderer class\n\t\tmRenderer.render();\n\t}", "@Override\r\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tLog.d(TAG, \"onSurfaceCreated\");\r\n//\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set color's clear-value to\r\n\t\tgl.glClearColor(0.f, 0.f, 0.f, 0.f);\r\n/////new/////\t\t\r\n\t\t gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA);\r\n\t\t gl.glEnable(gl.GL_BLEND);\r\n///////\t\t \r\n\t\tgl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\r\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden\r\n\t\t\t\t\t\t\t\t\t\t\t// surface removal\r\n\t\tgl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\r\n\t\tgl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// perspective\r\n\t\t// view\r\n\t\tgl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\r\n\t\tgl.glDisable(GL10.GL_DITHER); // Disable dithering for better\r\n\t\t\t\t\t\t\t\t\t\t// performance\r\n\t\t// You OpenGL|ES initialization code here\r\n\t\t// ......\r\n\t\tgl.glGenTextures(MAX_MODEL_NUM, texIDS, 0);\r\n\r\n//\t\tglview.loadTexture(gl); // Load image into Texture (NEW)\r\n\t\tgl.glEnable(gl.GL_TEXTURE_2D); // Enable texture (NEW)\r\n\t\t\r\n\t}", "@Override\n public void onPause() {\n \tsuper.onPause();\n mGLSurfaceView.onPause();\n }", "private void setupRenderer() {\n mSurfaceView.setEGLContextClientVersion(2);\n mRenderer = new WiFiAugmentedRealityRenderer(this,\n new WiFiAugmentedRealityRenderer.RenderCallback() {\n private double lastRenderedTimeStamp;\n\n @Override\n public void preRender() {\n // This is the work that you would do on your main OpenGL render thread.\n\n try {\n // Synchronize against concurrently disconnecting the service triggered\n // from the UI thread.\n synchronized (WiFiAugmentedRealityActivity.this) {\n // We need to be careful to not run any Tango-dependent code in the\n // OpenGL thread unless we know the Tango service to be properly\n // set-up and connected.\n if (!mIsConnected) {\n return;\n }\n\n // Connect the Tango SDK to the OpenGL texture ID where we are\n // going to render the camera.\n // NOTE: This must be done after both the texture is generated\n // and the Tango service is connected.\n if (mConnectedTextureIdGlThread != mRenderer.getTextureId()) {\n mTango.connectTextureId(\n TangoCameraIntrinsics.TANGO_CAMERA_COLOR,\n mRenderer.getTextureId());\n mConnectedTextureIdGlThread = mRenderer.getTextureId();\n Log.d(TAG, \"connected to texture id: \" +\n mRenderer.getTextureId());\n\n // Set-up scene camera projection to match RGB camera intrinsics\n mRenderer.setProjectionMatrix(\n projectionMatrixFromCameraIntrinsics(mIntrinsics));\n }\n // If there is a new RGB camera frame available, update the texture\n // and scene camera pose.\n if (mIsFrameAvailableTangoThread.compareAndSet(true, false)) {\n // {@code mRgbTimestampGlThread} contains the exact timestamp at\n // which the rendered RGB frame was acquired.\n mRgbTimestampGlThread =\n mTango.updateTexture(TangoCameraIntrinsics.\n TANGO_CAMERA_COLOR);\n\n // Get the transform from color camera to Start of Service\n // at the timestamp of the RGB image in OpenGL coordinates.\n //\n // When drift correction mode is enabled in config file, we need\n // to query the device with respect to Area Description pose in\n // order to use the drift corrected pose.\n //\n // Note that if you don't want to use the drift corrected pose,\n // the normal device with respect to start of service pose is\n // still available.\n TangoSupport.TangoMatrixTransformData transform =\n TangoSupport.getMatrixTransformAtTime(\n mRgbTimestampGlThread,\n TangoPoseData\n .COORDINATE_FRAME_AREA_DESCRIPTION,\n TangoPoseData.COORDINATE_FRAME_CAMERA_COLOR,\n TangoSupport.TANGO_SUPPORT_ENGINE_OPENGL,\n TangoSupport.TANGO_SUPPORT_ENGINE_OPENGL,\n 0);\n if (transform.statusCode == TangoPoseData.POSE_VALID) {\n\n mRenderer.updateViewMatrix(transform.matrix);\n double deltaTime = mRgbTimestampGlThread\n - lastRenderedTimeStamp;\n lastRenderedTimeStamp = mRgbTimestampGlThread;\n }\n// } else {\n// // When the pose status is not valid, it indicates tracking\n// // has been lost. In this case, we simply stop rendering.\n// //\n// // This is also the place to display UI to suggest the user\n// // walk to recover tracking.\n// Log.w(TAG, \"Could not get a valid transform at time \" +\n// mRgbTimestampGlThread);\n// }\n }\n }\n // Avoid crashing the application due to unhandled exceptions\n } catch (TangoErrorException e) {\n Log.e(TAG, \"Tango API call error within the OpenGL render thread\", e);\n } catch (Throwable t) {\n Log.e(TAG, \"Exception on the OpenGL thread\", t);\n }\n }\n });\n\n // Set the starting position and orientation of the Earth and Moon respect the OpenGL frame.\n Matrix.setIdentityM(mOpenGLTEarthMoonCenter, 0);\n Matrix.translateM(mOpenGLTEarthMoonCenter, 0, 0, 0, -1f);\n Matrix.setIdentityM(mEarthMoonCenterTEarth, 0);\n Matrix.setIdentityM(mEarthMoonCenterTMoonRotation, 0);\n Matrix.setIdentityM(mEarthMoonCenterTTranslation, 0);\n Matrix.translateM(mEarthMoonCenterTTranslation, 0, 0.5f, 0, 0);\n\n mSurfaceView.setRenderer(mRenderer);\n }", "private void ini_TabMainView()\r\n\t{\r\n\r\n\t\tif (splashEndTime > System.currentTimeMillis()) return;\r\n\r\n\t\tLogger.DEBUG(\"ini_TabMainView\");\r\n\t\tGL.that.removeRenderView(this);\r\n\t\t((GdxGame) GL.that).switchToMainView();\r\n\r\n\t\tGL.setIsInitial();\r\n\t}", "public void run() {\n\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(windowWidth, windowHeight));\n\t\t\tDisplay.setTitle(TITLE);\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\tSystem.err.println(\"Error: Failed to create display\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t/*\n\t\t * Initialize LWJGL and OpenGL\n\t\t */\n\t\t{\n\t\t\tGL11.glViewport(0, 0, windowWidth, windowHeight);\n\t\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\t\tGL11.glDepthFunc(GL11.GL_LEQUAL);\n\t\t\tGL11.glShadeModel(GL11.GL_SMOOTH);\n\t\t\tGL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\tGL11.glEnable(GL11.GL_BLEND);\n\t\t\tGL11.glAlphaFunc(GL11.GL_GREATER, 0.1f);\n\t\t\t// GL11.glEnable(GL11.GL_ALPHA_TEST);\n\t\t\tGL11.glHint(GL11.GL_PERSPECTIVE_CORRECTION_HINT, GL11.GL_NICEST);\n\t\t\tGL11.glClearColor(0.0f, 0.0f, 0.0f, 1f);\n\t\t}\n\n\t\ttry {\n\t\t\twhile (!(Display.isCloseRequested() || Keyboard.isKeyDown(Keyboard.KEY_Q))) {\n\t\t\t\t// Don't eat everything!!!\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(16);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tsetCamera();\n\n\t\t\t\t/*\n\t\t\t\t * Draw Code\n\t\t\t\t */\n\n\t\t\t\tsynchronized (model.drawableObjects) {\n\t\t\t\t\tfor (Drawable drawable : model.drawableObjects)\n\t\t\t\t\t\tdrawable.draw();\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * End draw code\n\t\t\t\t */\n\n\t\t\t\tDisplay.update();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Uncaught exception in View main loop: \" + e.getMessage()\n\t\t\t\t\t+ \"\\nCleaning up and exiting.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t/*\n\t\t * Clean up\n\t\t */\n\n\t\tmodel.endGame();\n\t\tcontroller.endGame();\n\t\tDisplay.destroy();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);//no title bar\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//fullscreen\n\t\tglSurfaceView = new GLSurfaceView(this);//initialize GLSurfaceView\n\t\tglSurfaceView.setRenderer(new myRenderer());//set renderer\n\t\tsetContentView(glSurfaceView);//set surface as content\n\t}", "@Override\n public void render() {\n GUI.clearScreen();\n if (assetManager.update()) {\n switch (gameState) {\n case MENU:\n GUI.menuLoop();\n break;\n case PAUSE:\n case GAME:\n gameLoop();\n break;\n case LOAD:\n World.load();\n gameState = GameState.GAME;\n break;\n }\n } else {\n GUI.splashScreen(assetManager.getProgress());\n }\n DrawManager.end();\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tmGLSurfaceView.onPause();\n\t}", "private void onShow() {\n if (DEBUG)\n MLog.d(TAG, \"onShow(): \" + printThis());\n\n startBackgroundThread();\n\n // When the screen is turned off and turned back on, the SurfaceTexture is already\n // available, and \"onSurfaceTextureAvailable\" will not be called. In that case, we can open\n // a camera and start preview from here (otherwise, we wait until the surfaceJavaObject\n // is ready in\n // the SurfaceTextureListener).\n if (mTextureView.isAvailable()) {\n openCamera(mTextureView.getWidth(), mTextureView.getHeight());\n } else {\n mTextureView.setSurfaceTextureListener(mSurfaceTextureListener);\n }\n }", "protected void onResume()\n {\n super.onResume();\n\n // Resumen específico de QCAR\n QCAR.onResume();\n\n // Si la cámara ya se ha iniciado alguna vez la volvemos a iniciar\n if (mEstadoActualAPP == EstadoAPP.CAMERA_STOPPED)\n {\n actualizarEstadoAplicacion(EstadoAPP.CAMERA_RUNNING);\n }\n\n // Resumen específico del OpenGL ES View\n if (mGlView != null)\n {\n mGlView.setVisibility(View.VISIBLE);\n mGlView.onResume();\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n // Tell the gameView resume method to execute\n gameView.resume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n // Tell the gameView resume method to execute\n gameView.resume();\n }", "public void start() {\r\n if (MotoConfig.KEY_LOG) {\r\n Log.w(\"EglHelper\", \"start() tid=\" + Thread.currentThread().getId());\r\n }\r\n /*\r\n * Get an EGL instance\r\n */\r\n mEgl = (EGL10) EGLContext.getEGL();\r\n\r\n /*\r\n * Get to the default display.\r\n */\r\n mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);\r\n\r\n if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {\r\n throw new RuntimeException(\"eglGetDisplay failed\");\r\n }\r\n\r\n /*\r\n * We can now initialize EGL for that display\r\n */\r\n int[] version = new int[2];\r\n if(!mEgl.eglInitialize(mEglDisplay, version)) {\r\n throw new RuntimeException(\"eglInitialize failed\");\r\n }\r\n mEglConfig = mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay);\r\n\r\n /*\r\n * Create an EGL context. We want to do this as rarely as we can, because an\r\n * EGL context is a somewhat heavy object.\r\n */\r\n mEglContext = mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig);\r\n if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) {\r\n mEglContext = null;\r\n throw new EglCreateContextException(\"createContext\");\r\n }\r\n if (MotoConfig.KEY_LOG) {\r\n Log.d(\"EglHelper\", \"createContext \" + mEglContext \r\n \t\t+ \" tid=\" + Thread.currentThread().getId());\r\n }\r\n\r\n mEglSurface = null;\r\n }", "protected void initRender() {\n glActiveTexture(GL_TEXTURE0);\n // Bind the texture\n glBindTexture(GL_TEXTURE_2D, texture.getId());\n\n // Draw the mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n }", "public void endRender () {\n\t\tglFlush();\n\t\tglfwSwapBuffers(window.window);\n\t\t//System.out.println(\"Swapped buffers\");\n\t\tglfwPollEvents();\n\t\t//shaderProgram.bind();\n\t}", "protected void onBSResume() {\n checkBSActivityRunning();\n mDrawer.addBSParentView(mInitialWaveform, mInitialDithering);// show\n // user UI\n // on back\n // screen\n isResumed = true;\n mCalled = true;\n }", "public MyGLSurfaceView(Context context) {\r\n\t\tsuper(context);\r\n\t\tErrorCheck.SetContext(context);\r\n\t\tsetEGLContextClientVersion(2);\r\n\r\n\t\tmRenderer = new TexRenderer(((WindowManager) context.getSystemService(Activity.WINDOW_SERVICE)).getDefaultDisplay());\r\n\t\tmRenderer.SetRotationSensor(new MobileRotation(context, 30));\t// update interval <- 30 ms\r\n\t\tmRenderer.SetLocationSensor(new MobileLocation(context, 0));\r\n\t\tmRenderer.SetContext(context);\r\n\t\tsetRenderer(mRenderer);\r\n\t\t\r\n\t\t//setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\r\n\t\t/*\r\n\t\tnew Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tTcpBridge.TcpOpen();\r\n\t\t\t}\r\n\t\t}).start();\r\n\t\t\r\n\t\tuiViewHandler = new Handler();\r\n\t\t\r\n\t\tscheduler = (ScheduledThreadPoolExecutor)Executors.newScheduledThreadPool(1);\r\n\t\tscheduler.scheduleAtFixedRate(\r\n\t\t\tnew Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tTcpBridge.TcpFetchPosition();\r\n\t\t\t\t\tuiViewHandler.post(new Runnable() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tfloat[] pos = TcpBridge.GetPosition();\r\n\t\t\t\t\t\t\tString output = \"New pos: (\" + pos[0] + \", \" + pos[1] + \", \" + pos[2] + \")\";\r\n\t\t\t\t\t\t\tSystem.out.println(output);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t3000,\r\n\t\t\t500,\r\n\t\t\tTimeUnit.MILLISECONDS);\r\n\t\t*/\r\n\t}", "public void onSurfaceCreated(GL10 gl, EGLConfig config)\n {\n // Call native function to initialize rendering:\n initRendering();\n\n // Call QCAR function to (re)initialize rendering after first use\n // or after OpenGL ES context was lost (e.g. after onPause/onResume):\n QCAR.onSurfaceCreated();\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n float[] backgroundColor = new float[]{0.2f, 0.2f, 0.2f, 1.0f};\n //float[] backgroundColor = main.getModelActivity().getBackgroundColor();\n GLES20.glClearColor(backgroundColor[0], backgroundColor[1], backgroundColor[2], backgroundColor[3]);\n\n // Use culling to remove back faces.\n // Don't remove back faces so we can see them\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n\n // Enable depth testing for hidden-surface elimination.\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n// Create the GLText\n\t\t/*glText = new GLText(unused,context.getAssets());\n\n\t\t// Load the font from file (set size + padding), creates the texture\n\t\t// NOTE: after a successful call to this the font is ready for rendering!\n\t\tglText.load( \"Roboto-Regular.ttf\", 14, 2, 2 ); // Create Font (Height: 14 Pixels / X+Y Padding 2 Pixels)\n*/\n // Enable blending for combining colors when there is transparency\n GLES20.glEnable(GLES20.GL_BLEND);\n GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\n // This component will draw the actual models using OpenGL\n drawer = new DrawerFactory();\n }", "private void initDisplay() throws LWJGLException {\n\n\t\tDisplay.setDisplayMode(Display.getDesktopDisplayMode());\n\t\tDisplay.setFullscreen(true);\n\t\twidth = Display.getDisplayMode().getWidth();\n\t\theight = Display.getDisplayMode().getHeight();\n\t\tDisplay.create();\n\t\tDisplay.setVSyncEnabled(true);\n\t}", "public void makeNothingCurrent() {\n if (!argonEGL.eglMakeCurrent(argonGLDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,\n \t\tEGL10.EGL_NO_CONTEXT)) {\n throw new RuntimeException(\"eglMakeCurrent failed\");\n }\n }", "public void makeCurrent(EGLSurface eglSurface) {\n if (argonGLDisplay == EGL10.EGL_NO_DISPLAY) {\n // called makeCurrent() before create?\n Logger.debug(\"NOTE: makeCurrent w/o display\");\n }\n if (!argonEGL.eglMakeCurrent(argonGLDisplay, eglSurface, eglSurface, argonGLContext)) {\n throw new RuntimeException(\"eglMakeCurrent failed\");\n }\n }", "@Override\r\n protected void onResume() {\n mDjiGLSurfaceView.resume();\r\n \r\n mTimer = new Timer();\r\n Task task = new Task();\r\n mTimer.schedule(task, 0, 500); \r\n \r\n DJIDrone.getDjiMC().startUpdateTimer(1000);\r\n super.onResume();\r\n }", "public native void initRendering();", "public native void initRendering();", "private void initRendering() {\n ring = new Ring(0.3f, 0.7f);\n line = new Line(ImageTargets.screenWidth / 2, ImageTargets.screenHeight / 2);\n state_txt = createObject(68f, state_txt_cx, state_txt_cy, R.drawable.state);\n state_img = createObject(120f, state_img_cx, state_img_cy, R.drawable.open);\n record_txt = createObject(68f, record_txt_cx, record_txt_cy, R.drawable.record_txt);\n record_img = createObject(95f, record_img_cx, record_img_cy, R.drawable.record_img);\n recog_txt = createObject(68f, recog_txt_cx, recog_txt_cy, R.drawable.recog_txt);\n recog_img = createObject(155, recog_img_cx, recog_img_cy, R.drawable.person);\n record_num = createObject(85, record_num_cx, record_num_cy, R.drawable.num);\n\n histogram = createHistogram(85, 275.0f, 1150, 2.0f);\n histogram1 = createHistogram(85, 405, 1150, 2.2f);\n histogram2 = createHistogram(85, 540, 1150, 2.58f);\n histogram3 = createHistogram(85, 675, 1150, 0.9f);\n mRenderer = Renderer.getInstance();\n\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f\n : 1.0f);\n setBgTransparent();\n //初始化纹理\n initTexture(res);\n mActivity.loadingDialogHandler\n .sendEmptyMessage(LoadingDialogHandler.HIDE_LOADING_DIALOG);\n\n }", "public void onSurfaceCreated(GL10 gl, EGLConfig config)\r\n {\r\n DebugLog.LOGD(\"GLRenderer::onSurfaceCreated\");\r\n \r\n // Call native function to initialize rendering:\r\n initRendering();\r\n \r\n // Call QCAR function to (re)initialize rendering after first use\r\n // or after OpenGL ES context was lost (e.g. after onPause/onResume):\r\n QCAR.onSurfaceCreated();\r\n \r\n // Call native function to store information about the Java environment\r\n // It is important that we make this call from this thread (the rendering thread)\r\n // as the native code will want to make callbacks from this thread\r\n initNativeCallback();\r\n }", "private void initRender() {\n if (!isRenderable()) {\n throw new IllegalStateException(\"Make the mesh renderable before rendering!\");\n }\n \n //Set active texture if it exists\n if (material.hasTexture()) {\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, material.getTexture().getId());\n }\n\n if (material.hasNormalMap()) {\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, material.getNormalMap().getId());\n }\n\n //Draw mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n glEnableVertexAttribArray(2);\n glEnableVertexAttribArray(3);\n glEnableVertexAttribArray(4);\n }", "@Override\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\n\t\t\tint height) {\n\t\trequestRender();\n\t\t\n\t}", "private static void initGL() {\n glClearColor(152/255f, 175/255f, 199/255f, 0.0f);\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n GLU.gluPerspective(100.0f, (float)displayMode.getWidth()/(float)\n displayMode.getHeight(), 0.1f, 500);\n glMatrixMode(GL_MODELVIEW);\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\n glClearDepth(1.0f);\n glEnable(GL_DEPTH_TEST);\n glEnable(GL_TEXTURE_2D);\n glEnableClientState(GL_VERTEX_ARRAY);\n glEnableClientState(GL_COLOR_ARRAY);\n glEnableClientState(GL_TEXTURE_COORD_ARRAY);\n glEnable(GL_LIGHTING);\n glEnable(GL_LIGHT0);\n glEnable(GL_NORMALIZE);\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n if (locationScene != null) {\n locationScene.resume();\n }\n\n if (arSceneView.getSession() == null) {\n // If the session wasn't created yet, don't resume rendering.\n // This can happen if ARCore needs to be updated or permissions are not granted yet.\n try {\n Session session = DemoUtils.createArSession(this, installRequested);\n if (session == null) {\n installRequested = ARLocationPermissionHelper.hasPermission(this);\n return;\n } else {\n arSceneView.setupSession(session);\n }\n } catch (UnavailableException e) {\n DemoUtils.handleSessionException(this, e);\n }\n }\n\n try {\n arSceneView.resume();\n } catch (CameraNotAvailableException ex) {\n DemoUtils.displayError(this, \"Unable to get camera\", ex);\n finish();\n return;\n }\n\n if (arSceneView.getSession() != null) {\n showLoadingMessage();\n }\n }", "private void initGL() {\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(displayWidth, displayHeight));\n\t\t\tDisplay.setVSyncEnabled(true);\n\t\t\tDisplay.setTitle(\"Shooter\");\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t// init OpenGL\n\t\tglEnable(GL_TEXTURE_2D);\n\t\t\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\n\t\t// enable alpha blending\n\t\tglEnable(GL_BLEND);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\tglViewport(0, 0, displayWidth, displayHeight);\n\t\t\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\t\tglOrtho(0, displayWidth, displayHeight, 0, 1, -1);\n\t\tglMatrixMode(GL_MODELVIEW);\n\t}", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n mTriangle = new Triangle();\n mSquare = new Square();\n }", "@Override\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tLibNative.init();\n\t}", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\r\n\t\tLog.d(TAG, \"onDrawFrame\"\t);\r\n\t\t\tsetGL(gl);\r\n\t\t\tDrawObjects(gl);\r\n\t\t\tunSetGl(gl);\r\n\t}", "public synchronized void display() {\r\n\r\n\t\t// clear the screen and draw a yellow square\r\n\t\tgl.clear(GL.COLOR_BUFFER_BIT);\r\n\t\t// First rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(-0.5, 0.0, 0.0);\r\n\t\tgl.rotate(spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\t// Second rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(0.5, 0.0, 0.0);\r\n\t\tgl.rotate(-spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\tgl.flush(); // Make sure all commands have completed.\r\n\t\tgl.swap();\t // Swap the render buffer with the screen buffer\r\n\t}", "private void renderEngine() {\r\n GL11.glDisable(GL11.GL_LIGHTING);\r\n\r\n GL11.glEnable(GL11.GL_BLEND);\r\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);\r\n\r\n shotTexture.bind();\r\n engine.render();\r\n\r\n GL11.glDisable(GL11.GL_BLEND);\r\n }", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "protected void onResume(){\n super.onResume();\n hideSystemUI();\n if (!coreView.isGamePaused()) //only resume game if there wasn't a manual pause prior to losing focus\n coreView.resume();\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n // Do backface culling\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n GLES20.glFrontFace(GLES20.GL_CCW);\n // Why using GL_BACK won't work is a mystery\n GLES20.glCullFace(GLES20.GL_BACK);\n // Enable depth buffer\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n GLES20.glDepthFunc(GLES20.GL_LEQUAL);\n GLES20.glDepthMask(true);\n \n for (int i = 0; i < NUM_CARS; i++) {\n mCarBody[i] = new CarBody((float) Math.random(),\n (float) Math.random(),\n (float) Math.random());\n mCarWheels[i] = new CarWheels();\n }\n \n // Create transformation matrices for each car\n for (int i = 0; i < NUM_CARS; i++) {\n mCarXOffsets[i] = (i % NUM_LANES) * 1.1f;\n mCarZOffsets[i] = ((i / NUM_LANES) * -2) + ((i % NUM_LANES) * 1.3f);\n }\n \n road = new Square(0.6f, 0.6f, 0.6f);\n land = new Square(0.1f, 0.6f, 0.1f);\n sky = new Square(0.6f, 0.6f, 0.9f);\n background = new Sprite(mActivityContext);\n \n }", "public void onSurfaceChanged(GL10 gl, int width, int height)\n {\n\n nativeInitialize(width, height);\n }", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n mGLView = new ClearGLSurfaceView(this, (SensorManager) getSystemService(SENSOR_SERVICE));\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\t\tgetWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(mGLView);\n }", "@Override\r\n\tpublic void init(GL10 gl, EGLConfig config) {\n try {\r\n loadGLTextures(gl);\t\t\t\t\t\t\t\t\t\t// Jump To Texture Loading Routine ( NEW )\r\n } catch (IOException e) {\r\n \tLog.e(\"120\", \"An error occured!\");\r\n e.printStackTrace();\r\n }\r\n\r\n gl.glEnable(GL10.GL_TEXTURE_2D);\t\t\t\t\t\t\t\t\t// Enable Texture Mapping ( NEW )\r\n gl.glShadeModel(GL10.GL_SMOOTH);\t\t\t\t\t\t\t\t\t// Enable Smooth Shading\r\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);\t\t\t\t\t\t// Black Background\r\n gl.glClearDepthf(1.0f);\t\t\t\t\t\t\t\t\t\t\t// Depth Buffer Setup\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\t\t\t\t\t\t\t\t\t// Enables Depth Testing\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\t\t\t\t\t\t\t\t\t\t// The Type Of Depth Testing To Do\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);\t\t\t// Really Nice Perspective Calculations\r\n\t}", "public void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n setContentView(R.layout.main);\n tetrisView = (TetrisView) findViewById(R.id.tetris);\n tetrisThread = tetrisView.getThread();\n //Display display = getWindowManager().getDefaultDisplay(); \n if(savedInstanceState == null)\n {\n \ttetrisThread.setState(TetrisThread.STATE_READY);\n }\n else\n {\n \ttetrisThread.restoreState(savedInstanceState);\n }\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tmGLView.onPause();\n\t}", "public void enterBackground() {\n if (mRenderView != null && !(mRenderView instanceof SurfaceRenderView)) {\n removeView(mRenderView.getView());\n }\n }", "@Override\n public void render() {\n if (renderInterrupted) {\n log.debug(\"render()\");\n renderInterrupted = false;\n }\n\n }", "public void initGLState() {\n\n\t\tm.setPerspective(fovy, aspect, zNear, zFar);\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\n\t\tglMatrixMode(GL_MODELVIEW);\n\t\tglLoadIdentity();\n\n\t\t/* Smooth-Shading soll benutzt werden */\n\t\tglEnable(GL_NORMALIZE);\n\t\tglShadeModel(GL_SMOOTH);\n\t\tinitLighting();\n\t}", "public void notifyPausing() {\n if (mSurfaceTexture != null) {\n Log.d(TAG, \"renderer pausing -- releasing SurfaceTexture\");\n mSurfaceTexture.release();\n mSurfaceTexture = null;\n }\n if (mFullScreen != null) {\n mFullScreen.release(false); // assume the GLSurfaceView EGL context is about\n mFullScreen = null; // to be destroyed\n }\n mIncomingWidth = mIncomingHeight = -1;\n }", "public void release() {\n if (argonGLDisplay != EGL10.EGL_NO_DISPLAY) {\n // Android is unusual in that it uses a reference-counted EGLDisplay. So for\n // every eglInitialize() we need an eglTerminate().\n argonEGL.eglMakeCurrent(argonGLDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,\n \t\tEGL10.EGL_NO_CONTEXT);\n argonEGL.eglDestroyContext(argonGLDisplay, argonGLContext);\n //EGL10.eglReleaseThread();\n argonEGL.eglTerminate(argonGLDisplay);\n }\n\n argonGLDisplay = EGL10.EGL_NO_DISPLAY;\n argonGLContext = EGL10.EGL_NO_CONTEXT;\n mEGLConfig = null;\n }", "@Override\n protected void onResume() {\n super.onResume();\n init();\n decideScreen();\n }", "public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }", "@Override\r\n\tpublic void surfaceCreated(GL10 gl) {\n\t\tgl.glDisable(GL10.GL_DITHER);\r\n\t\t\r\n\t\t// One-time OpenGL initialization based on context...\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,\r\n GL10.GL_NICEST);\r\n\t\t\r\n gl.glClearColor(0, 0, 0, 1); \r\n gl.glEnable(GL10.GL_CULL_FACE);\r\n gl.glCullFace(GL10.GL_BACK);\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\r\n gl.glEnable(GL10.GL_LIGHTING);\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\r\n gl.glShadeModel(GL10.GL_SMOOTH);\r\n \r\n if(scene != null && use_vbos) {\r\n \t\t// TODO messy...\r\n \t\tscene.forgetHardwareBuffers();\r\n \t\tscene.generateHardwareBuffers(gl);\r\n }\r\n }", "private void render() {\n\n StateManager.getState().render();\n }", "@Override\n protected void onResume() {\n super.onResume();\n cameraView.start();\n }", "public native void renderFrame();", "public native void renderFrame();", "public void onDrawFrame(GL10 gl)\n {\n if (!mIsActive)\n {\n return;\n }\n\n\n // Update render view (projection matrix and viewport) if needed:\n mActivity.updateRenderView();\n\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n \n // Call our native function to render content\n renderFrame();\n\n // make sure the OpenGL rendering is finalized\n //GLES20.glFinish();\n \n GLES20.glFlush();\n \n if ( takeScreenShot ) {\n \tsaveScreenShot(0, 0, mViewWidth, mViewHeight);\n CloudReco.snapshot = grabPixels(0,0,mViewWidth, mViewHeight);\n \n // Resize image if too big (from tablet, etc)\n int origWidth = CloudReco.snapshot.getWidth();\n int origHeight = CloudReco.snapshot.getHeight();\n double origSizeMB = CloudReco.snapshot.getRowBytes()*origHeight/3.0/1024.0/1024.0;\n if(origSizeMB > 2.25) {\n\t System.out.println(\"DEBUG: Original image size: \" + origWidth + \"x\" + origHeight + \" (\" + origSizeMB + \" MB)\");\n\t Bitmap smaller = Bitmap.createScaledBitmap(CloudReco.snapshot, origWidth*7/8, origHeight*7/8, false);\n\t System.out.println(\"DEBUG: Resized image to size \" + smaller.getWidth() + \"x\" + smaller.getHeight() + \" (\" + smaller.getRowBytes()*smaller.getHeight()/3.0/1024.0/1024.0 + \" MB)\");\n\t CloudReco.snapshot = smaller;\n }\n \n Log.d(\"SNAPSHOT\",\"snapshot taken in redner\");\n takeScreenShot = false;\n CloudReco.imageReady = true;\n // exitScreenShotModeNative();\n }\n \n \n \n\n }", "public void onDrawFrame(GL10 unused) {\n\n \tGLES20.glClearColor(0.5f,0.5f,0.5f,0.5f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n \n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\n \t//GLES20.glCullFace(GLES20.GL_BACK);\n\n /* Update MVP matrix */\n\n mat4 mvp = mProj\n \t.mul(mat4.translation(0.0f, 0.0f, -5.0f))\n \t.mul(mat4.rotateY(-mAngleX))\n \t.mul(mat4.rotateX(mAngleY));\n \t\n \n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n \n /* Set model view projection matrix */\n GLES20.glUniformMatrix4fv(muMVPHandle, 1, false, mvp.f(), 0);\n \n /*\n * Now we're ready to draw some 3D objects\n */\n mCube.draw(maPositionHandle, maColorHandle);\n }", "@Override\n public void onSurfaceCreated(EGLConfig config) {\n Log.i(TAG, \"onSurfaceCreated\");\n GLES20.glClearColor(0.1f, 0.1f, 0.1f, 0.5f); // Dark background so text shows up well\n\n ByteBuffer bb = ByteBuffer.allocateDirect(squareVertices.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareVertices);\n vertexBuffer.position(0);\n\n ByteBuffer dlb = ByteBuffer.allocateDirect(drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(textureVertices.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n textureVerticesBuffer = bb2.asFloatBuffer();\n textureVerticesBuffer.put(textureVertices);\n textureVerticesBuffer.position(0);\n\n int vertexShader = loadGLShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = loadGLShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL ES Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram);\n\n texture = createTexture();\n startCamera(texture);\n }", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "@Override\n public void preRender() {\n\n try {\n // Synchronize against concurrently disconnecting the service triggered\n // from the UI thread.\n synchronized (WiFiAugmentedRealityActivity.this) {\n // We need to be careful to not run any Tango-dependent code in the\n // OpenGL thread unless we know the Tango service to be properly\n // set-up and connected.\n if (!mIsConnected) {\n return;\n }\n\n // Connect the Tango SDK to the OpenGL texture ID where we are\n // going to render the camera.\n // NOTE: This must be done after both the texture is generated\n // and the Tango service is connected.\n if (mConnectedTextureIdGlThread != mRenderer.getTextureId()) {\n mTango.connectTextureId(\n TangoCameraIntrinsics.TANGO_CAMERA_COLOR,\n mRenderer.getTextureId());\n mConnectedTextureIdGlThread = mRenderer.getTextureId();\n Log.d(TAG, \"connected to texture id: \" +\n mRenderer.getTextureId());\n\n // Set-up scene camera projection to match RGB camera intrinsics\n mRenderer.setProjectionMatrix(\n projectionMatrixFromCameraIntrinsics(mIntrinsics));\n }\n // If there is a new RGB camera frame available, update the texture\n // and scene camera pose.\n if (mIsFrameAvailableTangoThread.compareAndSet(true, false)) {\n // {@code mRgbTimestampGlThread} contains the exact timestamp at\n // which the rendered RGB frame was acquired.\n mRgbTimestampGlThread =\n mTango.updateTexture(TangoCameraIntrinsics.\n TANGO_CAMERA_COLOR);\n\n // Get the transform from color camera to Start of Service\n // at the timestamp of the RGB image in OpenGL coordinates.\n //\n // When drift correction mode is enabled in config file, we need\n // to query the device with respect to Area Description pose in\n // order to use the drift corrected pose.\n //\n // Note that if you don't want to use the drift corrected pose,\n // the normal device with respect to start of service pose is\n // still available.\n TangoSupport.TangoMatrixTransformData transform =\n TangoSupport.getMatrixTransformAtTime(\n mRgbTimestampGlThread,\n TangoPoseData\n .COORDINATE_FRAME_AREA_DESCRIPTION,\n TangoPoseData.COORDINATE_FRAME_CAMERA_COLOR,\n TangoSupport.TANGO_SUPPORT_ENGINE_OPENGL,\n TangoSupport.TANGO_SUPPORT_ENGINE_OPENGL,\n 0);\n if (transform.statusCode == TangoPoseData.POSE_VALID) {\n\n mRenderer.updateViewMatrix(transform.matrix);\n double deltaTime = mRgbTimestampGlThread\n - lastRenderedTimeStamp;\n lastRenderedTimeStamp = mRgbTimestampGlThread;\n }\n// } else {\n// // When the pose status is not valid, it indicates tracking\n// // has been lost. In this case, we simply stop rendering.\n// //\n// // This is also the place to display UI to suggest the user\n// // walk to recover tracking.\n// Log.w(TAG, \"Could not get a valid transform at time \" +\n// mRgbTimestampGlThread);\n// }\n }\n }\n // Avoid crashing the application due to unhandled exceptions\n } catch (TangoErrorException e) {\n Log.e(TAG, \"Tango API call error within the OpenGL render thread\", e);\n } catch (Throwable t) {\n Log.e(TAG, \"Exception on the OpenGL thread\", t);\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n\n if (locationScene != null) {\n locationScene.resume();\n }\n\n if (arSceneView.getSession() == null) {\n // If the session wasn't created yet, don't resume rendering.\n // This can happen if ARCore needs to be updated or permissions are not granted yet.\n try {\n Session session = DemoUtils.createArSession(this, installRequested);\n if (session == null) {\n installRequested = ARLocationPermissionHelper.hasPermission(this);\n return;\n } else {\n arSceneView.setupSession(session);\n }\n } catch (UnavailableException e) {\n DemoUtils.handleSessionException(this, e);\n }\n }\n\n try {\n arSceneView.resume();\n } catch (CameraNotAvailableException ex) {\n DemoUtils.displayError(this, \"Unable to get camera\", ex);\n finish();\n return;\n }\n\n if (arSceneView.getSession() != null) {\n showLoadingMessage();\n }\n\n mapView.onResume();\n }", "@Override\n public void run() {\n mySurfaceView.setVisibility(View.GONE);\n qrEader.stop();\n\n\n }", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n Log.i(\"kike\", \"onSurfaceCreated\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tGLSurfaceView cubeGL = new GLSurfaceView(this);\r\n\t\trequestWindowFeature(Window.FEATURE_CUSTOM_TITLE);\r\n\t\trender = new OpenGL3DRenderer(this);\r\n\t\tcubeGL.setZOrderOnTop(true);\r\n\t\tcubeGL.setEGLConfigChooser(8, 8, 8, 8, 16, 0);\r\n\t\tcubeGL.getHolder().setFormat(PixelFormat.TRANSLUCENT);\r\n\t\tcubeGL.setBackgroundDrawable(getResources().getDrawable(R.drawable.snowflower));\r\n\t\tcubeGL.setRenderer(render);\r\n\t\tsetContentView(cubeGL);\r\n\t\tgetWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE\t, R.layout.inc_app_title);\r\n\t\tToast.makeText(OpenGLActivity.this, \"zhe\", Toast.LENGTH_LONG).show();\r\n\t\tLoadingAllVideos();\r\n\t}", "@Override\n public void onResume() {\n super.onResume();\n setUpScreen();\n }" ]
[ "0.7612307", "0.7612307", "0.75909275", "0.751318", "0.72839206", "0.7182871", "0.7012999", "0.6794251", "0.67464685", "0.67330474", "0.66466486", "0.65612465", "0.6550557", "0.652908", "0.6505474", "0.6503055", "0.6453078", "0.64474887", "0.6402526", "0.63787436", "0.6372443", "0.6367371", "0.63604605", "0.63604605", "0.6356598", "0.6339583", "0.63375425", "0.6330684", "0.6312253", "0.62950844", "0.6268614", "0.62459004", "0.6216234", "0.62112916", "0.6174557", "0.6162191", "0.6139622", "0.6133917", "0.61114895", "0.6083797", "0.606684", "0.6063731", "0.6060362", "0.605103", "0.605103", "0.6032013", "0.6030679", "0.602504", "0.601935", "0.60142285", "0.6005282", "0.6001175", "0.5996369", "0.59926456", "0.5988273", "0.59780324", "0.59693986", "0.59693986", "0.5966501", "0.5961016", "0.595244", "0.5949597", "0.5942264", "0.5932089", "0.59312814", "0.591341", "0.59105146", "0.58975416", "0.5895649", "0.587875", "0.58747077", "0.5870751", "0.5864598", "0.5863163", "0.5861905", "0.58473283", "0.583818", "0.5829349", "0.58264047", "0.58259994", "0.5822559", "0.58160776", "0.58051896", "0.5803852", "0.57918787", "0.57859546", "0.5767991", "0.5767295", "0.5764787", "0.5761726", "0.5761726", "0.5760046", "0.5757824", "0.5755701", "0.5741782", "0.5736923", "0.5735052", "0.5734401", "0.5732961", "0.57240003", "0.5721397" ]
0.0
-1
Public static constructor that creates fragment and passes a bundle with data into it when adapter is created
public static FilterDialogFragment newInstance() { FilterDialogFragment addListDialogFragment = new FilterDialogFragment(); Bundle bundle = new Bundle(); addListDialogFragment.setArguments(bundle); return addListDialogFragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ItemFragment() {\n }", "public CuartoFragment() {\n }", "public FragmentMy() {\n }", "public static RestaurantsListFragment newInstance() {\n RestaurantsListFragment fragment = new RestaurantsListFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n // args.putString(ARG_PARAM2, param2);\n args.putString(REST1, rest1);\n args.putString(REST2, rest2);\n args.putString(REST3, rest3);\n args.putString(REST4, rest4);\n args.putString(REST5, rest5);\n\n fragment.setArguments(args);\n return fragment;\n }", "public ItemListFragment() {\n }", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }", "public ItemDetailFragment() {\n }", "public ServiceItemFragmentNew() {\n }", "public PersonDetailFragment() {\r\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public IntentDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public MyGoodsFragment() {\n }", "protected abstract Fragment createFragment();", "public CreatePatientFragment() {\n\n }", "public NoteActivityFragment() {\n }", "public VenueDetailFragment() {\r\n\t}", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public VehicleFragment() {\r\n }", "public BookListFragment() {\n }", "public ExploreFragment() {\n\n }", "public NewShopFragment() {\n }", "public CustomerFragment() {\n }", "public NoteListFragment() {\n }", "public TournListFragment (){\n }", "public AddReminderFragment() {\n }", "public TestDetailFragment() {\n }", "public static SearchResultFragment newInstance(Bundle b) {\n SearchResultFragment fragment = new SearchResultFragment();\n b.putString(Constants.BUNDLE_KEY_LEASING_TYPE, b.getString(Constants.BUNDLE_KEY_LEASING_TYPE));\n b.putString(Constants.BUNDLE_KEY_LOCATION, b.getString(Constants.BUNDLE_KEY_LOCATION));\n b.putString(Constants.BUNDLE_KEY_CHECK_IN, b.getString(Constants.BUNDLE_KEY_CHECK_IN));\n b.putString(Constants.BUNDLE_KEY_NEIGHBOURHOOD, b.getString(Constants.BUNDLE_KEY_NEIGHBOURHOOD));\n b.putString(Constants.BUNDLE_KEY_AMENITIES, b.getString(Constants.BUNDLE_KEY_AMENITIES));\n b.putString(Constants.BUNDLE_KEY_TITLE, b.getString(Constants.BUNDLE_KEY_TITLE));\n b.putString(Constants.BUNDLE_KEY_SECTION, b.getString(Constants.BUNDLE_KEY_SECTION));\n b.putString(Constants.BUNDLE_KEY_SUITABLE_FOR, b.getString(Constants.BUNDLE_KEY_SUITABLE_FOR));\n b.putString(Constants.BUNDLE_KEY_MAX_PRICE, b.getString(Constants.BUNDLE_KEY_MAX_PRICE));\n b.putString(Constants.BUNDLE_KEY_MIN_PRICE, b.getString(Constants.BUNDLE_KEY_MIN_PRICE));\n b.putString(Constants.BUNDLE_KEY_SIZE, b.getString(Constants.BUNDLE_KEY_SIZE));\n b.putString(Constants.BUNDLE_KEY_PROPERTY_TYPE_ID, b.getString(Constants.BUNDLE_KEY_PROPERTY_TYPE_ID));\n b.putString(Constants.BUNDLE_KEY_TO, b.getString(Constants.BUNDLE_KEY_TO));\n b.putString(Constants.BUNDLE_KEY_FROM, b.getString(Constants.BUNDLE_KEY_FROM));\n b.putString(Constants.BUNDLE_KEY_AVAILIBILITY, b.getString(Constants.BUNDLE_KEY_AVAILIBILITY));\n b.putString(Constants.BUNDLE_KEY_LAT, b.getString(Constants.BUNDLE_KEY_LAT));\n b.putString(Constants.BUNDLE_KEY_LNG, b.getString(Constants.BUNDLE_KEY_LNG));\n fragment.setArguments(b);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public RestaurantFragment() {\n }", "public void createFragment() {\n\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public ToReadItemListFragment() {\n }", "public ProductsFragment() {\n }", "public static TransitDataMapFragment newInstance() {\n Bundle bundle = new Bundle();\n TransitDataMapFragment mapFragment = new TransitDataMapFragment();\n mapFragment.setArguments(bundle);\n return mapFragment;\n }", "public RelayListFragment() {\n }", "public RickAndMortyFragment() {\n }", "public ForecastFragment() {\n }", "public Fragment_Tutorial() {}", "public SwapListFragment() {\n }", "public progFragment() {\n }", "public BackEndFragment() {\n }", "public FeedFragment() {\n }", "public RestaurantDetailFragment() {\n }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public RegisterFragment() {\n }", "public static TauschboerseFragment newInstance() {\n TauschboerseFragment fragment = new TauschboerseFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public IngredientFragment() {\n }", "public AddressDetailFragment() {\n }", "public GalleryActivityFragment() { //Constructor which has no function, but is required\n }", "public static SMSListFragment newInstance() {\n Bundle args = new Bundle();\n SMSListFragment fragment = new SMSListFragment();\n fragment.setArguments(args);\n return fragment;\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public WalletFragment(){}", "public MainActivityFragment() {\n }", "public MainActivityFragment() {\n }", "public EmailFragment() {\n }", "private void initFragments() {\n\t\tZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);\n\t\tzhiBoFragment.setSquareFragmentListener(this);\n\t\tLiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);\n\t\tliaotianFragment.setSquareFragmentListener(this);\n\t\tfragments.add(zhiBoFragment);\n\t\tfragments.add(liaotianFragment);\n\t\t\n\t\t\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_a, container, false);\n this.v = rootView;\n int temp_pos = getArguments().getInt(\"bpos\");\n position = fin_pos = temp_pos;\n\n // ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),\n // android.R.layout.simple_list_item_1, values);\n\n\n //populateListView();\n\n //setListAdapter(adapter);\n\n\n return rootView;\n\n }", "public WkfFragment() {\n }", "public LogFragment() {\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public PlaylistFragment() {\n }", "public ShoppingListFragment() {\n }", "public StintFragment() {\n }", "public RecipeVideoFragment() {\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public Adaptador (ArrayList<Mascota> contactos, Activity activity, Fragment fragment){\n this.contactos = contactos;\n this.activity = activity;\n this.fragment = fragment;\n\n }", "public CollectionFragment() {\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public DisplayFragment() {\n\n }", "public PhotoGalleryFragment() {\n }", "public FavoriteFragment() {\n }", "public TripNoteFragment() {\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public AddToCardFragment() {\n }", "public FExDetailFragment() {\n \t}", "public MainActivityFragment(){\n\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public InfoShowChecklistFragment() {\n }", "public ImageDetailFragment() {}", "public FitnessActivityTypeFragment() {\n }", "public EmployeeFragment() {\n }", "public RepositoryFragment() {\n }", "public RecipeStepsListFragment() {\n }", "public MovieGridFragment() {\n }", "public TransactionsFragment() {\n }", "public LocalizationFragment() {\n }", "public CustomerListFragment() {\n }", "public PeopleFragment() {\n // Required empty public constructor\n }", "public FileListFragment() {\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public UserDetailFragment() {\n }" ]
[ "0.71535414", "0.7065395", "0.6981516", "0.6880114", "0.6873698", "0.6866022", "0.68415356", "0.6836512", "0.6836512", "0.6836512", "0.6836512", "0.6832746", "0.68298936", "0.67924607", "0.67924196", "0.67703074", "0.6763263", "0.6722345", "0.6702288", "0.66740173", "0.66738415", "0.6668777", "0.6668777", "0.6668777", "0.6649018", "0.66344166", "0.6612331", "0.66102934", "0.6608447", "0.65874743", "0.65864336", "0.6583627", "0.65830576", "0.6580486", "0.6573221", "0.65667707", "0.6560152", "0.6540364", "0.65352553", "0.6534497", "0.6530626", "0.65278685", "0.6522987", "0.6518268", "0.6513065", "0.65005505", "0.6497335", "0.64938885", "0.6492881", "0.64918834", "0.6488658", "0.64878625", "0.6480889", "0.6474709", "0.64711446", "0.64554876", "0.6444137", "0.6440503", "0.64372087", "0.64278626", "0.64137685", "0.64137685", "0.64132607", "0.6412847", "0.6412467", "0.641227", "0.64045686", "0.63953996", "0.63944894", "0.6394234", "0.6393752", "0.6393214", "0.639281", "0.6391356", "0.63910955", "0.6388115", "0.63837355", "0.63783336", "0.63779014", "0.6356416", "0.63548887", "0.6354737", "0.6333691", "0.6331174", "0.6330345", "0.63282204", "0.63282204", "0.63237727", "0.63092864", "0.63085467", "0.63070744", "0.63063616", "0.6303119", "0.63029", "0.6292305", "0.62916106", "0.62901944", "0.6286258", "0.62860405", "0.6284057", "0.6281733" ]
0.0
-1
Initialize instance variables with data from bundle
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void initData(Bundle savedInstanceState) {\n\t\t\n\t}", "@Override\n\tpublic void loadData(Bundle bundle) {\n\t}", "@Override\r\n\tpublic void initData(Bundle savedInstanceState) {\n\r\n\t}", "private void initData() {\n\t\tIntent intent = getIntent();\n\t\tjob = (Job) intent.getSerializableExtra(\"job\");\n\t\tedt_content.setText(job.getJobContent());\n\t\tedt_course.setText(job.getCourseName());\n\t}", "private void initData() {\n }", "@Override\n\tprotected void initVariable() {\n\t\tapp = (MApplication) this.getApplication();\n\t\tapp.addAllActivity(this);\n\t\tfundcode = this.getIntent().getStringExtra(\"fundcode\");\n\t\tlist = new ArrayList<MoneyChangeBean>();\n\t\tadapter = new RecordDetailsAdapter(getApplicationContext(), list);\n\t\tuserShare = UserSharedData.getInstance(getApplicationContext());\n\t}", "public void initData() {\n }", "public void initData() {\n }", "private void initData() {\n\n }", "protected void openBundle(Bundle bundle){\n //set saved instance state data\n }", "private void initData() {\n\t}", "private void loadFromBundle() {\n Bundle data = getIntent().getExtras();\n if (data == null)\n return;\n Resource resource = (Resource) data.getSerializable(PARAMETERS.RESOURCE);\n if (resource != null) {\n String geoStoreUrl = data.getString(PARAMETERS.GEOSTORE_URL);\n loadGeoStoreResource(resource, geoStoreUrl);\n }\n\n }", "public void initialize(Bundle arguments);", "private void initData(){\n\n }", "private void init(Bundle savedInstanceState) {\n }", "private void init(Bundle savedInstanceState) {\n }", "private void init(Bundle savedInstanceState) {\n }", "private void init(Bundle savedInstanceState) {\n }", "private void InitData() {\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "protected void initVars() {}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "public STDataController(Context context, Bundle savedInstanceState) {\n this(context);\n if (savedInstanceState != null) {\n personNames = savedInstanceState.getStringArrayList(\"personNames\");\n personIds = savedInstanceState.getStringArrayList(\"personIds\");\n for (String id : personIds) {\n personPhotos.add(getBitmapFromId(context, id));\n }\n \n ArrayList<String> selectionsStrings = savedInstanceState.getStringArrayList(\"personSelections\");\n for (String selectionsString : selectionsStrings) {\n HashSet<Integer> selections = new HashSet<Integer>();\n if (!selectionsString.equals(\"\")) {\n for (String selection : selectionsString.split(\",\")) {\n selections.add(Integer.valueOf(selection));\n }\n }\n personSelections.add(selections);\n }\n \n menuItemNames = savedInstanceState.getStringArrayList(\"menuItemNames\");\n double[] prices = savedInstanceState.getDoubleArray(\"menuItemPrices\");\n for (double price : prices) {\n menuItemPrices.add(Double.valueOf(price));\n }\n \n tax = savedInstanceState.getDouble(\"tax\");\n tip = savedInstanceState.getDouble(\"tip\");\n } else {\n this.addDefaultPerson();\n }\n }", "@Override\r\n\tpublic void initData() {\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "public void InitData() {\n }", "public InitialData(){}", "@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\n\t\t\n\t\tFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString regDate = formatter.format(date);\n\t\tpaymentDate.setText(regDate);\n\t\ttry {\n\t\t\tvendorData = custDAO.fillVendor();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tvendorType.setItems(vendorData);\n\t\t\n\t}", "public static Bundles initBundleObject(){\n Bundles test_bundle = new Bundles(\"testArtifact\", \"testGroup\", \"1.0.0.TEST\", 1); \n Host test_Host = new Host(\"test1\", 1);\n test_bundle.setHostAssociated(test_Host);\n return test_bundle;\n }", "protected @Override\r\n abstract void initData();", "public void init() {\r\n resources = new Vector<ResourcesElement>();\r\n informations = new Vector<InformationElement>();\r\n output = null;\r\n spec = DEFAULT_SPEC;\r\n version = null;\r\n codeBase = null;\r\n href = null;\r\n allPermissions = false;\r\n j2eePermissions = false;\r\n isComponent = false;\r\n applicationDesc = null;\r\n appletDesc = null;\r\n installerDesc = null;\r\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n public void startBundle(Bundle bundle) {\n mBundle = bundle;\n }", "public void initData(){\r\n \r\n }", "BundleImpl()\n {\n __m_felix = null;\n m_archive = null;\n m_state = Bundle.INSTALLED;\n m_useDeclaredActivationPolicy = false;\n m_stale = false;\n m_activator = null;\n m_context = null;\n }", "private void init(Bundle savedInstanceState) {\n selectedOption = SelectedOption.getInstance();\r\n }", "public void initAfterUnpersistence() {\n //From a legacy bundle\n if (sources == null) {\n sources = Misc.newList(getName());\n }\n super.initAfterUnpersistence();\n openData();\n }", "public void init(UserData userData) {\n this.userData = userData;\n }", "private void initialData() {\n\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "@Override\n public void initData(Bundle savedInstanceState) {\n phone = SPUtils.getString(Constant.PHONE, null, context);\n edPhone.setText(phone);\n }", "@Override\r\n protected void initData(Bundle savedInstanceState) {\r\n mControl = new IPsetControl(this);\r\n mControl.getMainIp();\r\n// Resources res = getResources();\r\n// String[] stringArray = res.getStringArray(R.array.IpsetSpinner1);\r\n// data1.clear();\r\n// data2.clear();\r\n// for (int i = 0; i < stringArray.length; i++) {\r\n// data1.add(stringArray[i]);\r\n// }\r\n// Resources res1 = getResources();\r\n// String[] stringArray1 = res1.getStringArray(R.array.IpsetSpinner2);\r\n// for (int i = 0; i < stringArray1.length; i++) {\r\n// data2.add(stringArray1[i]);\r\n//\r\n// }\r\n// adapter1 = new SpinnerAdapter(data1, this);\r\n// adapter2 = new SpinnerAdapter(data2, this);\r\n// mTerminalipSp3.setAdapter(adapter1);\r\n// mTerminalipSp5.setAdapter(adapter2);\r\n }", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "public void init (String path, ResourceBundle bundle)\n {\n _path = path;\n _bundle = bundle;\n }", "@Override //initializes screens and data\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tt = new Transaction();\n\t\tthis.total.setText(\"$0\");\n\t\tthis.tax.setText(\"$0\");\n\t\tloadInv();\n\t}", "public void initData(){\n\n String birdname,birdscientificname,birdfamily,birdecosystem;\n Bundle extras = getActivity().getIntent().getExtras();\n if(extras == null) {\n birdname=null;\n birdscientificname=null;\n birdfamily=null;\n birdecosystem=null;\n } else {\n birdname=extras.getString(\"birdname\");\n birdscientificname=extras.getString(\"birdscientificname\");\n birdfamily=extras.getString(\"birdfamily\");\n birdecosystem=extras.getString(\"birdecosystem\");\n }\n\n presenter.initData(birdname,birdscientificname,birdfamily,birdecosystem,imageView1,imageView2,imageView3);\n }", "public void init() {\n \n }", "private void initArguments() {\n Bundle bundle = getArguments();\n\n if (bundle != null) {\n if (bundle.containsKey(EXTRA_MOVIE_ID)) {\n int movieId = bundle.getInt(EXTRA_MOVIE_ID, 0);\n\n if (movieId > 0) {\n mMovie = MoviesRepository.getInstance(getActivity()).getMovie(movieId);\n }\n }\n }\n }", "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }", "void initData(){\n }", "public void init() {\n initComponents();\n initData();\n }", "private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}", "private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "public void init(){\n \n }", "@Override\n public void initialize() {\n this.product = new Product(this.productId,this.productName,this.productPrice,this.productInv,this.productMin,this.productMax);\n productTitleLabel.setText(\"Modify Product\");\n }", "abstract void initializeNeededData();", "public void initialize()\n {\n Locale locale = Locale.getDefault();\n var rb = ResourceBundle.getBundle(\"translation\",locale);\n\n customerPerCountryLabel.setText(rb.getString(\"CustomersPerCountry\"));\n backButton.setText(rb.getString(\"Back\"));\n\n\n }", "@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}", "private void init() {\n }", "private void initData() {\n Resources resources = context.getResources();\n settingTitles = resources.getStringArray(R.array.setting_array);\n selectAccent = resources.getStringArray(R.array.accent_array);\n selectAccentDisplay = resources.getStringArray(R.array.accent_display_array);\n selectSpeaker = resources.getStringArray(R.array.speaker_array);\n selectSpeakerDisplay = resources.getStringArray(R.array.speaker_display_array);\n\n positive = resources.getString(R.string.positive);\n negative = resources.getString(R.string.negative);\n answerUnKnown = resources.getString(R.string.unknown);\n answerCalling = resources.getString(R.string.calling);\n answerOpen = resources.getString(R.string.opening);\n answerFound = resources.getString(R.string.founded);\n answerNotFound = resources.getString(R.string.not_found);\n\n String systemLanguage = Util.getSystemLanguage(context).toLowerCase();\n if (systemLanguage.equalsIgnoreCase(\"zh_cn\")) {\n isEnglishEnvironment = false;\n }\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public void initialize() {\n\t\tcompartmentName = new SimpleStringProperty(compartment.getName());\t\t\n\t\tcompartmentId = new SimpleStringProperty(compartment.getId());\n\t\tcompartmentSBOTerm = new SimpleStringProperty(compartment.getSBOTermID());\n\t}", "void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}", "public void init() {}", "public void init() {}", "private void init(Bundle savedInstanceState) {\n messageManager = new MessageManager();\n }", "private void initResources() {\n resources = ResourceBundle.getBundle(\"bundles.ChangeTBRFrameResources\");\n }", "private void initData() {\n\t\tSetTopBarTitle(getString(R.string.os_jsh_wdj_add_ldss));\r\n\t\tregFliter();\r\n\t}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public void init() {\n\t\t}", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "@SuppressWarnings(\"unused\")\n\tprivate LedgerInitProposalData() {\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void init(){}", "protected void _init(){}", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }" ]
[ "0.7154151", "0.6973604", "0.68697596", "0.67613506", "0.6759745", "0.6711796", "0.66896164", "0.66896164", "0.6663533", "0.66625535", "0.6621184", "0.66073996", "0.6555342", "0.6554859", "0.6550658", "0.6550658", "0.6550658", "0.6550658", "0.6519159", "0.6512253", "0.6512253", "0.6433771", "0.6433422", "0.64122593", "0.6403166", "0.6403166", "0.6403166", "0.6401702", "0.6397806", "0.6390904", "0.63892215", "0.6380324", "0.6380324", "0.6380324", "0.6380324", "0.6380324", "0.6380324", "0.63607925", "0.63468426", "0.63468426", "0.6344996", "0.6334902", "0.63301784", "0.63297725", "0.6322833", "0.6322531", "0.631905", "0.63083935", "0.62876505", "0.62830806", "0.627617", "0.6260782", "0.6251993", "0.6247442", "0.62345725", "0.623107", "0.62160975", "0.62073135", "0.6203329", "0.6200174", "0.6198836", "0.61958367", "0.6168795", "0.61669135", "0.6148529", "0.61418456", "0.61366016", "0.6135416", "0.6107545", "0.6105744", "0.6104064", "0.6101714", "0.608894", "0.60841984", "0.6080816", "0.60757273", "0.6065833", "0.6059509", "0.6059509", "0.6059509", "0.6059509", "0.6043441", "0.6041286", "0.6034814", "0.6034814", "0.6022771", "0.602248", "0.6001319", "0.5991028", "0.59890354", "0.59831583", "0.59831583", "0.59831583", "0.59831583", "0.5961396", "0.59555024", "0.59520084", "0.5949965", "0.59488535", "0.59479606", "0.5945049" ]
0.0
-1
Open the keyboard automatically when the dialog fragment is opened
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); getDialog().getWindow().getAttributes().windowAnimations = R.anim.logo_animation_back; ((ViewGroup) getDialog().getWindow().getDecorView()) .getChildAt(0).startAnimation(AnimationUtils.loadAnimation( getActivity(), R.anim.app_name_animation)); // getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onActivityCreated(Bundle savedInstanceState) {\r\n super.onActivityCreated(savedInstanceState);\r\n getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);\r\n }", "@Override\r\n public void onActivityCreated(Bundle savedInstanceState) {\r\n super.onActivityCreated(savedInstanceState);\r\n getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);\r\n }", "@Override\n public void onStart() {\n pDialog.show();\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t \t\t\t getWindow().setSoftInputMode(\n\t \t \t WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\t \t\t\tshowDialog();\n\t\t\t\t}", "public void onShowInputMethodPickerSelected(Context context);", "public void showKeyboard(){\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\tinputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);\n\t}", "public void showSoftKeyboard(){\n if(view.requestFocus()){\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.showSoftInput(view,InputMethodManager.SHOW_IMPLICIT);\n // imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);\n }\n }", "@Override\n public void onClick(View v) {\n showKeyboard();\n }", "private void userViewStep() {\n textUser.requestFocus();\n textUser.postDelayed(\n new Runnable() {\n public void run() {\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.showSoftInput(textUser, 0);\n }\n }, 200);\n EventBus.getDefault().postSticky(new EventOnboardingChanges(EventOnboardingChanges.ChangeType.REGISTER_CHANGE_TITLE, getResources().getString(R.string.tact_username_title)));\n }", "@SuppressLint(\"InflateParams\")\r\n\tprivate void showDialog() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tviewAddEmployee = layoutInflater\r\n\t\t\t\t.inflate(R.layout.activity_dialog, null);\r\n\t\teditText = (EditText) viewAddEmployee.findViewById(R.id.editText1);\r\n\t\ttv_phone = (TextView) viewAddEmployee.findViewById(R.id.tv_phone);\r\n\t\tbt_setting = (Button) viewAddEmployee.findViewById(R.id.bt_setting);\r\n\t\tbt_cancel = (Button) viewAddEmployee.findViewById(R.id.bt_cancel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_phone.setText(StringUtils.getTelNum(tel));\r\n\r\n\t\tshowPop();\r\n\r\n\t\tbt_setting.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbt_cancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tavatorPop.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void showSoftInput(){\n if(isEditable() && isEnabled()){\n if(isInTouchMode()){\n requestFocusFromTouch();\n }\n if(!hasFocus()){\n requestFocus();\n }\n mInputMethodManager.showSoftInput(this, 0);\n }\n }", "public void setInputMethodShowOn() {\n\n }", "@Override\n\tpublic void showKeyboard() {\n\t\t\n\t}", "private void showSearchDialog() {\n\t\tSearchDialog searchDialog = new SearchDialog(lastText);\n\t\tsearchDialog.show(getSupportFragmentManager(), \"fragment_search_keyword\");\n\t}", "public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }", "public static void showKeyboardOnCreate(final EditText editText) {\n\t\teditText.setFocusableInTouchMode(true);\n\t\teditText.requestFocus();\n\t\tViewTreeObserver vto = editText.getViewTreeObserver();\n\t\tvto.addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void onGlobalLayout() {\n\t\t\t\tViewTreeObserver obs = editText.getViewTreeObserver();\n\t\t\t\teditText.postDelayed(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tInputMethodManager keyboard = (InputMethodManager) editText.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\t\tkeyboard.showSoftInput(editText, 0);\n\t\t\t\t\t\tPrint.log(\"Show!\");\n\t\t\t\t\t}\n\t\t\t\t}, 50);\n\t\t\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n\t\t\t\t\tobs.removeOnGlobalLayoutListener(this);\n\t\t\t\t} else {\n\t\t\t\t\tobs.removeGlobalOnLayoutListener(this);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "void onKeyboardVisibilityChanged(boolean isKeyboardShow);", "void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\n public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {\n if ((keyCode == KeyEvent.KEYCODE_BACK)) {\n //Hide your keyboard here!!!\n // Toast.makeText(getActivity(), \"PLease enter your information to get us connected with you.\", Toast.LENGTH_LONG).show();\n return true; // pretend we've processed it\n } else\n return false; // pass on to be processed as normal\n }", "public void diler(View view) {\n//dialogi stexcman mek ayl dzev en kirarel\n dialog_diler.show();\n }", "@SuppressLint(\"InflateParams\")\n @Override @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n builder.setTitle(R.string.settings_manual_input_dialog_title)\n .setView(inflater.inflate(R.layout.dialog_settings_manual_input, null))\n .setPositiveButton(R.string.settings_manual_input_dialog_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Send the positive button event back to the host activity\n\n String tokenName = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_name)).getText().toString();\n String token = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_value)).getText().toString();\n String issuerUrl = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_url)).getText().toString();\n mListener.onSettingsManualInputDialogOkClick(tokenName, token, issuerUrl);\n }\n })\n .setNegativeButton(R.string.settings_manual_input_dialog_cancel, null);\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if(keyCode==KeyEvent.KEYCODE_ENTER) {\n layout.requestFocus();\n }\n return false;\n }", "@Override\n public void onDismiss(DialogInterface dialog) {\n if (mViewPager.getCurrentItem() == 0) mScannerFragment.startScanner();\n }", "@Override\n protected void onPreExecute() {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n if (imm.isAcceptingText() && getCurrentFocus() != null) {\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n }\n progressDialog.show();\n super.onPreExecute();\n }", "@Override\n public void onResume() {\n Window window = getDialog().getWindow();\n Point size = new Point();\n // Store dimensions of the screen in `size`\n Display display = window.getWindowManager().getDefaultDisplay();\n display.getSize(size);\n window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n // Set the width of the dialog proportional to 75% of the screen width\n window.setLayout((int) (size.x * 0.75), WindowManager.LayoutParams.WRAP_CONTENT);\n window.setGravity(Gravity.CENTER);\n // Call super onResume after sizing\n super.onResume();\n }", "@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tintiEntry();\n\t\t\t\t\t\trefreshFragment();\n\t\t\t\t\t\tiGetFirstFocus();\n\t\t\t\t\t}", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "public void open(){\n dialog.setLocation\n (parent.getLocation().x + 10, parent.getLocation().y + 10);\n dialog.setSize(PREF_SIZE);\n dialog.setResizable(false);\n dialog.setVisible(true);\n dialog.setResizable(true);\n }", "@Override\n public void run() {\n InputMethodManager inputMethodManager = (InputMethodManager) mSearchEditText\n .getContext().getSystemService(INPUT_METHOD_SERVICE);\n inputMethodManager.showSoftInput(mSearchEditText, 0);\n mSearchEditText.setFocusableInTouchMode(true);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_input_jan, container, false);\n if (getDialog().getWindow() != null) {\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n }\n\n //Get flag setting OCR\n if (getArguments() != null) {\n flagSwitchOCR = getArguments().getString(Constants.FLAG_SWITCH_OCR);\n }\n\n //Get Id textView Product detail\n txv_jan_cd = (TextView) rootView.findViewById(R.id.txv_jan_cd_input);\n txv_inventory_number = (TextView) rootView.findViewById(R.id.txv_inventory_number_input);\n Button btn_submit_edit = (Button) rootView.findViewById(R.id.btn_submit_edit_input);\n // Set adapter for combo box with array\n ArrayAdapter<String> adapter1 = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1, arr);\n // Set item selected\n adapter1.setDropDownViewResource(android.R.layout.simple_list_item_single_choice);\n // Set button click\n btn_submit_edit.setOnClickListener(this);\n\n //Set default end text\n txv_jan_cd.setText(\"\");\n txv_jan_cd.append(Constants.PREFIX_JAN_CODE_MAGAZINE); //focus end text\n //Show keyboard\n txv_jan_cd.requestFocus();\n getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n checkDataCommon = new CheckDataCommon();\n registerLicenseCommon = new RegisterLicenseCommon();\n formatCommon = new FormatCommon();\n hsmDecoder = HSMDecoder.getInstance(getActivity());\n return rootView;\n }", "public void showSoftKeyboard(View view) {\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n view.requestFocus();\n inputMethodManager.showSoftInput(view, 0);\n }", "@Override\n public void onClick(View view) {\n dateDialog.show(getFragmentManager(), \"datePicker\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View registerView = inflater.inflate(R.layout.dialog_emp_leave_options, null);\n\n context = getActivity();\n Window window = getDialog().getWindow();\n\n // set \"origin\" to top left corner, so to speak\n window.setGravity(Gravity.CENTER | Gravity.CENTER);\n\n // after that, setting values for x and y works \"naturally\"\n WindowManager.LayoutParams params = window.getAttributes();\n\n params.y = 50;\n window.setAttributes(params);\n\n commentEdtTxt = (EditText) registerView.findViewById(R.id.commentEdtTxt);\n preferences = getActivity().getSharedPreferences(\"Prefrence\", getActivity().MODE_PRIVATE);\n prefEditor = preferences.edit();\n closeBtn = (Button) registerView.findViewById(R.id.closeBtn);\n leaveForToday = (Button) registerView.findViewById(R.id.leaveForToday);\n leaveForFuture = (Button) registerView.findViewById(R.id.leaveForFuture);\n setStyle(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Holo);\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n getDialog().getWindow().getDecorView().setBackgroundColor(Color.TRANSPARENT);\n getDialog().setCanceledOnTouchOutside(false);\n getDialog().setCancelable(false);\n\n getDialog().setOnKeyListener(new DialogInterface.OnKeyListener() {\n\n @Override\n public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {\n // TODO Auto-generated method stub\n if ((keyCode == KeyEvent.KEYCODE_BACK)) {\n //Hide your keyboard here!!!\n // Toast.makeText(getActivity(), \"PLease enter your information to get us connected with you.\", Toast.LENGTH_LONG).show();\n return true; // pretend we've processed it\n } else\n return false; // pass on to be processed as normal\n }\n });\n\n closeBtn.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n\n\n dismiss();\n\n\n }\n });\n leaveForToday.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dismiss();\n ApplyEmployeeLeaveTodayView applyEmployeeLeaveTodayView = new ApplyEmployeeLeaveTodayView();\n applyEmployeeLeaveTodayView.show(getActivity().getSupportFragmentManager(), \"applyEmployeeLeaveTodayView\");\n }\n });\n leaveForFuture.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dismiss();\n ApplyEmployeeLeaveFutureView applyEmployeeLeaveFutureView = new ApplyEmployeeLeaveFutureView();\n applyEmployeeLeaveFutureView.show(getActivity().getSupportFragmentManager(), \"applyEmployeeLeaveFutureView\");\n }\n });\n\n return registerView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_personage_risterg, container, false);\n getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n ViewUtils.inject(this,view);\n inti();\n\n\n return view;\n }", "public void onResume() {\n super.onResume();\n this.mUserNameEditText.postDelayed(new Runnable() {\n public void run() {\n if (LoginActivity.this.isFromOnCreate) {\n LoginActivity.this.mUserNameEditText.requestFocusFromTouch();\n }\n boolean unused = LoginActivity.this.isFromOnCreate = false;\n Util.showKeyboard(LoginActivity.this);\n }\n }, 300);\n }", "public void showDialog(Context context) {\n \n }", "@Override\n public void onKeyboardChange(boolean isShow, int keyboardHeight) {\n if (!isShow) {\n // dismiss();\n }\n }", "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "private void openAddDialog(){\n DialogFragment dialog = new AddLocationDialog();\n dialog.show(getFragmentManager(), getText(R.string.map_ask_add).toString());\n }", "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "void showPicker() {\r\n\t\tRunnable run = new Runnable() {\r\n\t\t\tpublic void run() {\r\n \t\tInputMethodManager inputManager = (InputMethodManager) getSystemService (INPUT_METHOD_SERVICE);\t\t\r\n \t\tinputManager.showInputMethodPicker();\t\t\t\t\r\n\t\t\t}\r\n\t\t};\t\r\n\t\t\r\n\t\tHandler h=new android.os.Handler();\r\n\t\th.postDelayed(run,250);\r\n\t}", "public void showFindDialog() {\n \tLog.d(TAG, \"find dialog...\");\n \tfinal Dialog dialog = new Dialog(this);\n \tdialog.setTitle(R.string.find_dialog_title);\n \tLinearLayout contents = new LinearLayout(this);\n \tcontents.setOrientation(LinearLayout.VERTICAL);\n \tthis.findTextInputField = new EditText(this);\n \tthis.findTextInputField.setWidth(this.pagesView.getWidth() * 80 / 100);\n \tButton goButton = new Button(this);\n \tgoButton.setText(R.string.find_go_button);\n \tgoButton.setOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString text = OpenFileActivity.this.findTextInputField.getText().toString();\n\t\t\t\tOpenFileActivity.this.findText(text);\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n \t});\n \tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n \tparams.leftMargin = 5;\n \tparams.rightMargin = 5;\n \tparams.bottomMargin = 2;\n \tparams.topMargin = 2;\n \tcontents.addView(findTextInputField, params);\n \tcontents.addView(goButton, params);\n \tdialog.setContentView(contents);\n \tdialog.show();\n }", "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t\t// hideSoftKeyboard();\n\t}", "@Override\n public void showFingerprintDialog(CharSequenceX pincode) {\n mBinding.fingerprintLogo.setVisibility(View.VISIBLE);\n mBinding.fingerprintLogo.setOnClickListener(v -> mViewModel.checkFingerprintStatus());\n // Show dialog itself if not already showing\n if (mFingerprintDialog == null && mViewModel.canShowFingerprintDialog()) {\n mFingerprintDialog = FingerprintDialog.newInstance(pincode, FingerprintDialog.Stage.AUTHENTICATE);\n mFingerprintDialog.setAuthCallback(new FingerprintDialog.FingerprintAuthCallback() {\n @Override\n public void onAuthenticated(CharSequenceX data) {\n dismissFingerprintDialog();\n mViewModel.loginWithDecryptedPin(data);\n }\n\n @Override\n public void onCanceled() {\n dismissFingerprintDialog();\n showKeyboard();\n }\n });\n\n mDelayHandler.postDelayed(() -> {\n if (!isFinishing() && !mIsPaused) {\n mFingerprintDialog.show(getSupportFragmentManager(), FingerprintDialog.TAG);\n } else {\n mFingerprintDialog = null;\n }\n }, 200);\n\n hideKeyboard();\n }\n }", "private void schowajKlawiature() {\n View view = this.getActivity().getCurrentFocus(); //inside a fragment you should use getActivity()\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }", "private void switchToFlagFragment(){\n //Hide keyboard from the current window\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n EditText commentField = (EditText) getActivity().findViewById(R.id.flagDetailCommentField);\n imm.hideSoftInputFromWindow(commentField.getWindowToken(), 0);\n\n FragmentManager fm = getFragmentManager();\n fm.popBackStack();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View v = inflater.inflate(R.layout.fragment_lab_notes, container, false);\n EditText notes_section = (EditText) v.findViewById(R.id.notes_entry);\n notes_section.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (!hasFocus) {\n try {\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }\n catch(NullPointerException e){\n }\n }\n }\n });\n\n return v;\n }", "private void createSearchDialog() {\n final Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.search);\n Window window = dialog.getWindow();\n //window.setLayout(mWidth/2, mHeight/2);\n window.setLayout(WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT);\n\n dialog.setTitle(getString(R.string.search));\n /**Search*/\n Button btnSearch = (Button) dialog.findViewById(R.id.search);\n final EditText txtSearch = (EditText) dialog.findViewById(R.id.txtSearch);\n txtSearch.setOnKeyListener(new View.OnKeyListener() {\n @Override\n public boolean onKey(View view, int i, KeyEvent keyEvent) {\n if (i == KeyEvent.KEYCODE_ENTER) {\n diaryFragment.search(txtSearch.getText().toString());\n\n dialog.dismiss();\n }\n return false;\n }\n });\n\n btnSearch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n diaryFragment.search(txtSearch.getText().toString());\n dialog.dismiss();\n }\n });\n\n\n dialog.show();\n }", "private void requestFocus(View view) {\n if (view.requestFocus()) {\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_bank_details, container, false);\n // MainActivity.navItemIndex=16;\n initView(view);\n getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n return view;\n }", "@Override\n public void onClick(View view) {\n\n dialog = new Dialog(ChatPageActivity.this, R.style.PauseDialog);\n dialog.setContentView(R.layout.group_request_payment_layout);\n final EditText payAmount = (EditText) dialog.findViewById(R.id.payAmount);\n final EditText commment = (EditText) dialog.findViewById(R.id.comments);\n payAmount.requestFocus();\n payAmount.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n\n if (hasFocus) {\n\n payAmount.setGravity(Gravity.LEFT);\n payAmount.setHint(\"\");\n\n } else if (payAmount.getText().length() == 0) {\n payAmount.setGravity(Gravity.CENTER);\n payAmount.setHint(\"مبلغ پرداختی\");\n }\n\n }\n });\n\n payAmount.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n if (payAmount.getText().length() == 0) {\n payAmount.setGravity(Gravity.CENTER);\n payAmount.setHint(\"مبلغ پرداختی\");\n } else {\n\n payAmount.setGravity(Gravity.LEFT);\n payAmount.setHint(\"\");\n\n }\n\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n\n commment.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n commment.setGravity(Gravity.RIGHT);\n commment.setHint(\"\");\n } else if (commment.getText().length() == 0) {\n commment.setGravity(Gravity.CENTER);\n commment.setHint(\"توضیحات\");\n\n }\n }\n });\n\n commment.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n if (commment.getText().length() == 0) {\n commment.setGravity(Gravity.CENTER);\n commment.setHint(\"توضیحات\");\n } else {\n commment.setGravity(Gravity.RIGHT);\n commment.setHint(\"\");\n\n }\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n Button btnCancel = (Button) dialog.findViewById(R.id.cancel);\n Button btnConfirm = (Button) dialog.findViewById(R.id.confirm);\n payAmount.addTextChangedListener(new NumberTextWatcher(payAmount));\n btnCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n btnConfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (payAmount.getText().toString().length() == 0) {\n Toast.makeText(ChatPageActivity.this, \"مبلغ وارد شده نمیتواند خالی باشد!\", Toast.LENGTH_SHORT).show();\n } else if (commment.getText().toString().length() == 0) {\n Toast.makeText(ChatPageActivity.this, \"توضیحات نمیتواند خالی باشد!\", Toast.LENGTH_SHORT).show();\n } else if (!validate_number(payAmount.getText().toString().replace(\",\", \"\"))) {\n Toast.makeText(ChatPageActivity.this, \"مبلغ وارد شده صحیح نمیباشد!\", Toast.LENGTH_SHORT).show();\n } else {\n hideKey(commment);\n new ChatPageActivity.requestFromAnother().execute(phone, payAmount.getText().toString(), commment.getText().toString());\n dialog.dismiss();\n }\n }\n });\n dialog.show();\n\n }", "public void showSoftKeyboard(View view) {\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n\t\tview.requestFocus();\n\t\tinputMethodManager.showSoftInput(view, 0);\n\t}", "public void onClick(DialogInterface dialog, int id) {\n Log.d(\"Message\", userInput.getText().toString());\n r.stop();\n goToHomeActivity();\n }", "public void showSoftKeyboard(View view)\n\t{\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n\t\tview.requestFocus();\n\t\tinputMethodManager.showSoftInput(view, 0);\n\t}", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n getActivity ().getWindow ().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n return inflater.inflate (R.layout.fragment_point, null);\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n //use the builder class for convenient dialog construction\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n //get the layout inflater\r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n View rootView = inflater.inflate(R.layout.dialog_room, null);\r\n mRoomNumber = rootView.findViewById(R.id.roomNumberEditText);\r\n mAllergy = rootView.findViewById(R.id.allergyEditText);\r\n mPlateType = rootView.findViewById(R.id.plateTypeEditText);\r\n mChemicalDiet = rootView.findViewById(R.id.chemicalDietEditText);\r\n mTextureDiet = rootView.findViewById(R.id.textureDietEditText);\r\n mLiquidDiet = rootView.findViewById(R.id.liquidDietEditText);\r\n mLikes = rootView.findViewById(R.id.likesEditText);\r\n mDislikes = rootView.findViewById(R.id.dislikesEditText);\r\n mNotes = rootView.findViewById(R.id.notesEditText);\r\n mMeal = rootView.findViewById(R.id.mealEditText);\r\n mDessert = rootView.findViewById(R.id.dessertEditText);\r\n mBeverage = rootView.findViewById(R.id.beverageEditText);\r\n\r\n mBeverage.setOnEditorActionListener(new TextView.OnEditorActionListener() {\r\n @Override\r\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\r\n if (i == EditorInfo.IME_ACTION_DONE || keyEvent.getAction() == KeyEvent.ACTION_DOWN){\r\n addRoom();\r\n }\r\n return true;\r\n }\r\n });\r\n\r\n //inflate and set the layout for the dialog\r\n //pass null as the parent view cause its going in the dialog layout.\r\n builder.setView(rootView).setPositiveButton(R.string.button_done, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n addRoom();\r\n }\r\n });\r\n\r\n return builder.create();\r\n }", "private void showbadgedialog() {\n final LayoutInflater li = LayoutInflater.from(mContext);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dialog_badges, null);\n // number=session.getMobileNumber();\n //Initizliaing confirm button fo dialog box and edittext of dialog box\n final Button buttonconfirm = (Button) confirmDialog.findViewById(R.id.buttonConfirm);\n\n\n AlertDialog.Builder alert = new AlertDialog.Builder(mContext);\n\n alert.setView(confirmDialog);\n\n final AlertDialog alertDialog = alert.create();\n alertDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n alertDialog.show();\n\n //On the click of the confirm button from alert dialog\n buttonconfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n }\n });\n\n }", "@Override\n protected void onPreExecute()\n {\n dialog.show();\n super.onPreExecute();\n }", "void showDialog() {\n DialogFragment newFragment = MyAlertDialogFragment.newInstance(R.string.alert_dialog_two_buttons_title);\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\n public void onClick(View v) {\n try {\n InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n } catch (Exception e) {\n e.printStackTrace();\n }\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void modositodialog(){\n mennyisegmodositodialog.setTargetFragment(Targyleirasreszletek.this,9999);\n mennyisegmodositodialog.show(getFragmentManager(),\"TargyMennyisegModositoDialog\");\n }", "@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}", "public static void showKeyboard(final View view, final Context context) {\n view.post(new Runnable() {\n @Override\n public void run() {\n view.requestFocus();\n InputMethodManager imgr = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imgr.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);\n\n }\n });\n\n\n }", "@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n InputMethodManager inputMethodManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n }", "public void showKeyboard(Activity activity, EditText et) {\n InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.showSoftInputFromInputMethod(et.getWindowToken(), 0);\n }", "public void showDatePickerDialog() {\n DialogFragment newFragment = new DatePickerFragment();\n newFragment.show(getSupportFragmentManager(), \"datePicker\");\n }", "public static void requestEditTextFocus(Context context, EditText e){\n e.post(() -> {\n e.requestFocus();\n ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE))\n .showSoftInput(e, 0);\n });\n }", "@Override\r\n\tprotected void onStart() {\r\n\t\tsuper.onStart();\r\n\t\t\r\n\t\tif (dontAsk==0 && !getIMEStatus()) {\r\n\t\t\tdontAsk=1;\r\n\t\t\tshowDialog(D_ENABLE);\r\n\t\t} else if (dontAsk==1 && getIMEStatus()) {\r\n\t\t\tdontAsk=2;\r\n\t\t\tshowDialog(D_PICKER);\r\n\t\t}\r\n\t}", "public void onOpen() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\txformsWidget.hideWindow();\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\t\t\t\ttry {\n\t\t\t\t\t//openFile();\n\t\t\t\t\txformsWidget.setXform(\"\");\n\t\t\t\t\txformsWidget.showOpenButton(true);\n\t\t\t\t\txformsWidget.showWindow();\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}", "@Override\n public void onShow(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(View v) {\n showDialog();\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n showDatePickerDialog();\n }\n }", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "public void activarControladores() {\n tv_lugar.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\n\n if(actionId == EditorInfo.IME_ACTION_SEARCH\n || actionId== EditorInfo.IME_ACTION_DONE\n || event.getAction()==KeyEvent.ACTION_DOWN\n || event.getAction()==KeyEvent.KEYCODE_ENTER ){\n\n buscarLugar();\n }\n\n return false;\n }\n });\n\n //se abre un fragmento para seleccionar la fecha\n tv_fecha.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n DatePickerFragment newFragment = DatePickerFragment.newInstance(new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n final String fechaSeleccionada = dayOfMonth + \"/\" + (month + 1) + \"/\" + year;\n tv_fecha.setText(fechaSeleccionada);\n }\n\n });\n newFragment.show(getActivity().getFragmentManager(), \"Seleccione Fecha\");\n }\n });\n\n //se abre un fragmento para seleccionar la hora\n tv_hora.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n TimePickerFragment timerFragment = TimePickerFragment.newInstance(new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n final String horaSeleccionada = \"\"+hourOfDay+\":\"+minute;\n tv_hora.setText(horaSeleccionada);\n }\n });\n timerFragment.show(getActivity().getFragmentManager(), \"Seleccione Hora\");\n }\n });\n\n\n btn_publicar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (isOnlineNet()) {\n\n lugar = \"\" + tv_lugar.getText().toString().trim();\n hora = \"\" + tv_hora.getText().toString().trim();\n fecha = \"\" + tv_fecha.getText().toString().trim();\n mas_info = \"\" + tv_mas_info.getText().toString().trim();\n plazas = \"\" + picker_plazas.getValue();\n deporte = \"\" + spinner_deporte.getSelectedItem().toString().trim();\n //se verifican los datos introducidos\n if (!lugar.isEmpty() && !hora.isEmpty() &&\n !fecha.isEmpty() && !deporte.isEmpty() && !plazas.isEmpty()) {\n //subir quedada\n String fecha_obtenida = \"\" + fecha + \" \" + hora;\n\n Validador validador= new Validador();\n if(validador.validateFecha(fecha)){\n if (compararFechaActualCon(fecha_obtenida)) {\n\n //se busca el lugar introducido en el texto para seleccionar ubicacion\n buscarLugar();\n\n btn_publicar.setEnabled(false);\n\n //si la ubicacion es valida\n if (ubicacionEncontrada == true) {\n\n progressDialog.setMessage(\"Se está creando la quedada\");\n progressDialog.setCancelable(false);\n progressDialog.show();\n\n longitud = \"\" + localizacion.getLongitude();\n latitud = \"\" + localizacion.getLatitude();\n id = \"\" + (localizacion.getLongitude() + localizacion.getLatitude()) + \"\" + fecha + hora;\n\n //se publica la quedada\n quedada = new Quedada(id.trim(), \"\", lugar, fecha, hora, deporte, mas_info, plazas,\n longitud, latitud);\n\n presenter.CrearQuedada(quedada);\n } else {\n btn_publicar.setEnabled(true);\n Snackbar.make(myView, \"No se pudo encontrar la ubicación seleccionada!\", 4000).show();\n\n }\n } else {\n AlertDialog.Builder myBuild = new AlertDialog.Builder(getContext());\n myBuild.setMessage(\"La fecha propuesta de la quedada ya ha expirado.\\n\\nIntroduzca una fecha válida!\");\n myBuild.setTitle(\"Alerta\");\n\n myBuild.setNegativeButton(\"Cerrar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n myBuild.show();\n }\n }else {\n\n Snackbar.make(myView, \"Fecha no valida!\", Snackbar.LENGTH_SHORT).show();\n\n }\n }else {\n\n Snackbar.make(myView, \"Debe de rellenar todos los campos obligatorios\", Snackbar.LENGTH_SHORT).show();\n\n }\n }else {\n\n Snackbar.make(myView, \"No hay conexión a internet\", Snackbar.LENGTH_SHORT).show();\n\n }\n }\n });\n\n btn_cancelar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (isOnlineNet()) {\n\n fragment = new ListadoQuedadasUsuarioVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment).commit();\n } else {\n\n Snackbar.make(myView, \"No hay conexión a internet\", Snackbar.LENGTH_SHORT).show();\n\n }\n }\n });\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n setRetainInstance(true);\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n View view = inflater.inflate(R.layout.void_reason_dialog, null);\n\n final TextView voidSummaryText = (TextView) view.findViewById(R.id.void_summary);\n\n if(voidOrder)\n voidSummaryText.setText(getString(R.string.void_order));\n else\n voidSummaryText.setText(getString(R.string.void_summary, noItems));\n\n voidReason = (EditText) view.findViewById(R.id.reason_text);\n\n builder.setTitle(R.string.void_title);\n builder.setView(view)\n // Add action buttons\n .setPositiveButton(R.string.void_item, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //Nothing on purpose to avoid closing the dialog when the reason is not filled out\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n VoidReasonDialogFragment.this.getDialog().cancel();\n }\n });\n\n Dialog dialog = builder.create();\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n return dialog;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}", "@Override\n public void onClick(View view) {\n dialog = new Dialog(getActivity());\n dialog.getWindow().getAttributes().windowAnimations = R.style.up_down;\n dialog.setContentView(R.layout.add_food_fragment);\n dialog.setCancelable(true);\n Window window = dialog.getWindow();\n window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n if (dialog != null && dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n }\n initDialog();\n\n\n //Spinner to show list add Food Ways\n spinner();\n\n dialog.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.exit(1);\n /*\n Intent homeIntent= new Intent(getContext(), MainCardActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n */\n }\n });\n return builder.create();\n }", "@Override\r\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n sendFocusToJail();\r\n\r\n return false;\r\n }", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "@Override\n protected void onResume() {\n if(dialogHandler.isShowing())\n dialogHandler.hide();\n super.onResume();\n }", "@Override\n\tpublic void enter(ViewChangeEvent event) {\n\t\tuserTextField.focus();\n\t}", "public void openDialog(){\n DialogforTheboysHeroImage dialogforTheboysHeroImage = new DialogforTheboysHeroImage();\n dialogforTheboysHeroImage.show(getSupportFragmentManager(), \"Heros info\");\n }", "public void openDialog(){\n if (!isAdded()) return;\n homeViewModel.getAllSets().removeObservers(getViewLifecycleOwner());\n ChooseSetDialog dialog = new ChooseSetDialog(setsTitles);\n dialog.show(getChildFragmentManager(), \"choose_set_dialog\");\n dialog.setOnSelectedListener(choice -> {\n Word word = new Word(setsObjects.get(choice).getId(), original, translation);\n homeViewModel.insertWord(word);\n original=\"\"; translation=\"\";\n etOrigWord.setText(\"\"); etTransWord.setText(\"\");\n });\n }", "@Override\n public void initiateKeyboard() {\n\n KeyboardHandler kb = new KeyboardHandler();\n kb.addRunnablePress(37, new ScrollLeft(this.model, this.view));\n kb.addRunnablePress(39, new ScrollRight(this.model, this.view));\n kb.addRunnablePress(36, new ScrollToFront(this.model, this.view));\n kb.addRunnablePress(35, new ScrollToEnd(this.model, this.view));\n kb.addRunnablePress(32, new PauseC(this.view));\n kb.addRunnablePress(82, new ResetC(this.view));\n kb.addRunnablePress(8, new RemoveNote(this.model, this.view));\n kb.addRunnablePress(65, new ResetQueue(kb));\n\n view.addKeyListener(kb);\n\n }", "@Override\r\n\t\t\tpublic void onFocusChange(View view, boolean hasfocus) {\n\t\t\t\tif (hasfocus) {\r\n\t\t\t\t\tetSearch.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\tnavigation.setVisibility(View.GONE);\r\n\t\t\t\t\tbaseDialog = getDialog(NoteListActivity.this);\r\n\t\t\t\t\tetDialogSearch.setHint(\"Search\");\r\n\t\t\t\t\tetDialogSearch.findFocus();\r\n\t\t\t\t\tetDialogSearch.addTextChangedListener(new TextWatcher() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onTextChanged(CharSequence s, int start,\r\n\t\t\t\t\t\t\t\tint before, int count) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void beforeTextChanged(CharSequence s,\r\n\t\t\t\t\t\t\t\tint start, int before, int count) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void afterTextChanged(Editable arg0) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t// lvDialog.setBackgroundResource(R.drawable.bg_body);\r\n\t\t\t\t\t\t\tString keyWords = etDialogSearch.getText()\r\n\t\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\t\tif (!keyWords.equals(\"\")) {\r\n\t\t\t\t\t\t\t\tList<Note> notes = databaseHelper\r\n\t\t\t\t\t\t\t\t\t\t.searchNotes(keyWords);\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < notes.size(); i++) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(notes.get(i).toString());\r\n\t\t\t\t\t\t\t\t\tdialogAdapter = new NoteAdapter(\r\n\t\t\t\t\t\t\t\t\t\t\tNoteListActivity.this, notes, false);\r\n\t\t\t\t\t\t\t\t\tlvDialog.setAdapter(dialogAdapter);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public void setFocus();", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showKeyboard();\n else {\n hideKeyboard();\n }\n\n }", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "public void onClick(View view) {\n\n openDialog();\n }", "public void installContent() {\n\n if (mView == null || !canTextInput(mView)) {\n mWindow.setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,\n WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);\n } else {\n mWindow.clearFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);\n }\n if (mResId == 0) {\n mWindow.setContentView(R.layout.qui_alert_dialog);\n } else {\n mWindow.setContentView(mResId);\n }\n\n if (mItems != null && mItems.length > 0) {\n setupMenus();\n } else {\n setupView();\n }\n\n }", "public void setFocus() {\n }", "@Override\n public void onClick(View view) {\n FragmentManager fm = getSupportFragmentManager();\n EditNameDialog editNameDialog = new EditNameDialog();\n editNameDialog.show(fm, \"fragment_edit_name\");\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }", "@Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n NuevoDialogListener activity = (NuevoDialogListener) getActivity();\n activity.FinalizaCuadroDialogo(mEditText.getText().toString());\n this.dismiss();\n return true;\n }", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }" ]
[ "0.70598114", "0.70598114", "0.675631", "0.66885775", "0.65540016", "0.64906603", "0.64274395", "0.63887274", "0.62003326", "0.61938936", "0.61627626", "0.61222893", "0.60944045", "0.608533", "0.60765743", "0.6046717", "0.6042277", "0.6001335", "0.5989685", "0.59874207", "0.597949", "0.5963536", "0.5962341", "0.5958941", "0.5956443", "0.5934599", "0.593306", "0.5928107", "0.5927791", "0.588932", "0.58860534", "0.5876899", "0.5840057", "0.58387816", "0.582213", "0.58015835", "0.57973665", "0.57862025", "0.5785831", "0.5777123", "0.57672", "0.57476616", "0.57435936", "0.5728298", "0.57276547", "0.5726191", "0.57249457", "0.57191056", "0.5710761", "0.5710651", "0.5705309", "0.5701835", "0.5694682", "0.5691137", "0.5689514", "0.56825745", "0.5678717", "0.56692564", "0.56672615", "0.5666348", "0.5655279", "0.56540287", "0.56518006", "0.5647304", "0.56357765", "0.5629873", "0.5625119", "0.56189513", "0.5614698", "0.5613452", "0.560413", "0.5603454", "0.5602319", "0.5599616", "0.5594198", "0.5589542", "0.5583468", "0.5577985", "0.5576146", "0.55730295", "0.5571545", "0.5561978", "0.5558724", "0.5557798", "0.55556643", "0.55518425", "0.55513626", "0.55512327", "0.55505717", "0.55505407", "0.5546014", "0.55385464", "0.55354244", "0.55211425", "0.5520422", "0.5515389", "0.55129963", "0.55125576", "0.5509996", "0.55082744" ]
0.55778295
78
Use the Builder class for convenient dialog construction
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); // Get the layout inflater LayoutInflater inflater = getActivity().getLayoutInflater(); View rootView = inflater.inflate(R.layout.filter_dialog, null); /* Inflate and set the layout for the dialog */ /* Pass null as the parent view because its going in the dialog layout*/ builder.setView(rootView) /* Add action buttons */ .setPositiveButton(R.string.filter, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { addShoppingList(); } }); return builder.create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dialog() {\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "public StandardDialog() {\n super();\n init();\n }", "public FiltroGirosDialog() {\n \n }", "private Dialogs () {\r\n\t}", "public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }", "protected abstract JDialog createDialog();", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "public Builder(){\n }", "public static Builder builder(){ return new Builder(); }", "static Builder builder() {\n return new Builder();\n }", "protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }", "private void initDialog() {\n }", "private AlertDialog cargando() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater inflater = getLayoutInflater();\n\n @SuppressLint(\"InflateParams\") View v = inflater.inflate(R.layout.loading, null);\n\n\n builder.setView(v);\n builder.setCancelable(false);\n\n return builder.create();\n\n }", "private Builder() {}", "private Builder() {\n\t\t}", "private Builder() {\n }", "private Builder() {\n }", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }", "private Builder()\n {\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "@Override\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n //call qr scan intent\n Intent prefScreen = new Intent(TempMeasure.this, Preferences.class);\n startActivityForResult(prefScreen, 0);\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n return alert;\n }", "public abstract void initDialog();", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public Builder() {\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public Builder() { }", "private AlertDialog createAboutDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this).setTitle(R.string.license_title)\n .setMessage(R.string.license).setIcon(R.drawable.about)\n .setNeutralButton(R.string.about_button, null);\n AlertDialog alert = builder.create();\n return alert;\n }", "private Form(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface DialogFactory {\n MessageDialog createMessageDialog();\n ListDialog createListDialog();\n SingleChoiceDialog createSingleChoiceDialog();\n MultiChoiceDialog createMultiChoiceDialog();\n}", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }", "public Dialog(String text) {\n initComponents( text);\n }", "public PacManUiBuilder() {\n this.defaultButtons = false;\n this.buttons = new LinkedHashMap<>();\n this.keyMappings = new HashMap<>();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "Dialog createDialog(int id) {\n // First we treat the color picker\n if (id >= DIALOG_MASK_COLORS) {\n int icp = id - DIALOG_MASK_COLORS;\n String title = getResources().getStringArray(R.array.items_colors)[icp];\n ColoredPart cp = ColoredPart.values()[icp];\n\n // We can embed our nice color picker view into a regular dialog.\n // For that we use the provided factory method.\n return ColorPickerView.createDialog(this, title, cp.color, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n cp.color = which;\n bmView.invalidate();\n }\n });\n }\n\n // Now we treat all the cases which can easily be built as an AlertDialog.\n // For readability throughout the many cases we don't use chaining.\n AlertDialog.Builder b = new AlertDialog.Builder(this);\n\n switch (id) {\n case DIALOG_LEVEL:\n b.setTitle(R.string.menu_level);\n b.setSingleChoiceItems(R.array.items_level, bmView.level - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.newGame(which + 1);\n }\n });\n break;\n\n case DIALOG_SIZE:\n b.setTitle(R.string.menu_size);\n b.setSingleChoiceItems(R.array.items_size, bmView.size - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.initField(which + 1);\n bmView.newGame(0);\n }\n });\n break;\n\n case DIALOG_LIVES:\n b.setTitle(R.string.menu_lives);\n // We use an array adapter in order to be able to relate the selected\n // value to its list position. NOTE: For unclear reasons, passing this\n // adapter even with an additional text view layout id to the builder\n // does not give the same layout as passing the resource id directly.\n // So, we do use the resource id again for that purpose in the call\n // to setSingleChoiceItems.\n final ArrayAdapter<CharSequence> a =\n ArrayAdapter.createFromResource(this, R.array.items_lives, android.R.layout.select_dialog_singlechoice);\n int liv = bmView.getLives();\n int pos = (liv == 0) ? a.getCount() - 1 : a.getPosition(Integer.toString(liv));\n b.setSingleChoiceItems(R.array.items_lives, pos, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n // First check for infinity choice, then for all other possible choices\n if (which == a.getCount() - 1)\n bmView.setLives(0);\n else\n try {\n bmView.setLives(Integer.parseInt(String.valueOf(a.getItem(which))));\n } catch (Exception e) {\n // Do nothing\n Log.e(LOG_TAG, e.getLocalizedMessage(), e);\n }\n }\n });\n break;\n\n case DIALOG_COLORS:\n b.setTitle(R.string.menu_colors);\n b.setItems(R.array.items_colors, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n if (which == ColoredPart.values().length) {\n // Reset colors\n ColoredPart.resetAll();\n bmView.invalidate();\n } else {\n // Call color picker dialog\n doDialog(which + DIALOG_MASK_COLORS);\n }\n }\n });\n break;\n\n case DIALOG_BACKGROUND:\n b.setTitle(R.string.menu_background);\n b.setSingleChoiceItems(R.array.items_background, bmView.background, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.background = which;\n bmView.invalidate();\n }\n });\n break;\n\n case DIALOG_SOUND:\n b.setTitle(R.string.menu_sound);\n // Special treatment for eventually using only a subset of the menu items\n String[] menuIts = new String[NUM_ITEMS_SOUND];\n boolean[] menuSts = new boolean[NUM_ITEMS_SOUND];\n System.arraycopy(\n getResources().getStringArray(R.array.items_settings),\n 0, menuIts, 0, NUM_ITEMS_SOUND);\n System.arraycopy(\n new boolean[]{bmView.isHapticFeedbackEnabled(), bmView.isSoundEffectsEnabled(), musicPlayer.isMusicEnabled},\n 0, menuSts, 0, NUM_ITEMS_SOUND);\n b.setMultiChoiceItems(menuIts, menuSts, (dialog, which, isChecked) -> {\n switch (which) {\n case 0:\n bmView.setHapticFeedbackEnabled(isChecked);\n break;\n\n case 1:\n bmView.setSoundEffectsEnabled(isChecked);\n setVolumeControlStream();\n break;\n\n case 2:\n musicPlayer.toggle(isChecked);\n setVolumeControlStream();\n break;\n\n default:\n dialog.dismiss();\n }\n });\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_CENTER:\n b.setTitle(R.string.menu_center);\n b.setSingleChoiceItems(R.array.items_center, centerDialogs ? 0 : 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n centerDialogs = (which == 0);\n }\n });\n break;\n\n case DIALOG_MIDI:\n b.setTitle(R.string.title_midi);\n b.setMessage(R.string.text_midi);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_ABOUT:\n b.setTitle(R.string.menu_about);\n b.setMessage(R.string.text_about);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_HELP:\n default:\n b.setTitle(R.string.menu_help);\n b.setMessage(R.string.text_help);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n }\n\n return b.create();\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "private Construct(Builder builder) {\n super(builder);\n }", "public Builder() {\n\t\t}", "public void buildAndShow(String p_Message, String p_Title, String p_PositiveButton, String p_NegativeButton){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getParameter());\r\n builder.setMessage(p_Message)\r\n .setTitle(p_Title);\r\n builder.setPositiveButton(p_PositiveButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickPositive();\r\n }\r\n });\r\n builder.setNegativeButton(p_NegativeButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickNegative();\r\n }\r\n });\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }", "private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n }", "public Builder() {\n }", "public DialogManager() {\n }", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private Builder(Context context){ this.context=context;}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.app_help_title);\n builder.setMessage(R.string.app_help_message)\n .setPositiveButton(R.string.app_help_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n return builder.create();\n }", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }", "private AlertDialog buildDialog(String deviceName) {\n Builder builder = new Builder(this);\n CharSequence[] items = {\n getString(R.string.bluetooth_pbap_server_authorize_alwaysallowed)\n };\n boolean[] checked = {\n false\n };\n\n String msg = getString(R.string.bluetooth_pbap_server_authorize_message, deviceName);\n\n Log.d(TAG, \"buildDialog : items=\" + items[0]);\n\n builder.setIcon(android.R.drawable.ic_dialog_info).setTitle(R.string.bluetooth_pbap_server_authorize_title).setView(\n createView(msg))\n // .setMessage(msg)\n /*\n * .setMultiChoiceItems (items, checked, new DialogInterface.OnMultiChoiceClickListener(){ public void\n * onClick (DialogInterface dialog, int which, boolean isChecked){ if(which == 0) { mAlwaysAllowedValue =\n * isChecked; }else{ Log.w(TAG, \"index of always allowed is not correct : \"+which); } } } )\n */\n .setPositiveButton(R.string.bluetooth_pbap_server_authorize_allow, this).setNegativeButton(\n R.string.bluetooth_pbap_server_authorize_decline, this);\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }", "private void openDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.allmark));\n\t\tfinal List<ReaderTags> listData = ReaderDataBase\n\t\t\t\t.getReaderDataBase(this);\n\t\tif (listData.size() > 0) {\n\t\t\tListView list = new ListView(this);\n\t\t\tfinal MTagAdapter myAdapter = new MTagAdapter(this, listData);\n\t\t\tlist.setAdapter(myAdapter);\n\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tJump(arg2, listData, myAdapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\tlist.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tdeleteOneDialog(arg2, listData, myAdapter);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuilder.setView(list);\n\t\t} else {\n\t\t\tTextView txt = new TextView(this);\n\t\t\ttxt.setText(getString(R.string.nomark));\n\t\t\ttxt.setPadding(10, 5, 0, 5);\n\t\t\ttxt.setTextSize(16f);\n\t\t\tbuilder.setView(txt);\n\t\t}\n\t\tbuilder.setNegativeButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }", "public ReorganizeDialog() { }", "private Win(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "@Override\n\n public Dialog onCreateDialog (Bundle savedInstanceState){\n Bundle messages = getArguments();\n Context context = getActivity();\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n if(messages != null) {\n //Add the arguments. Supply a default in case the wrong key was used, or only one was set.\n builder.setTitle(messages.getString(TITLE_ID, \"Error\"));\n builder.setMessage(messages.getString(MESSAGE_ID, \"There was an error.\"));\n }\n else {\n //Supply default text if no arguments were set.\n builder.setTitle(\"Error\");\n builder.setMessage(\"There was an error.\");\n }\n\n AlertDialog dialog = builder.create();\n return dialog;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }", "private Contacts(final Builder builder){\n this.mUsername = builder.mUsername;\n this.checked = builder.checked;\n\n }", "private Dialog buildLoadingDialog() {\n ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(getText(R.string.dialog_loading));\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n return dialog;\n }", "@Override\n public Dialog onCreateDialog (Bundle SaveInstanceState) {\n\n /* Get context from current activity.*/\n Context context = getActivity();\n\n /* Create new dialog, and set message. */\n AlertDialog.Builder ackAlert = new AlertDialog.Builder(context);\n String message = getString(R.string.msg_about_us);\n ackAlert.setMessage(message);\n\n /* Create button in dialog. */\n ackAlert.setNeutralButton(R.string.btn_got_it, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n /* Set title and show dialog. */\n ackAlert.setTitle(\"About us\");\n ackAlert.create();\n\n return ackAlert.create();\n }", "private static AlertDialog createDialog(\n Context context, MenuDialogListenerHandler listenerHandler) {\n Resources resources = context.getResources();\n String[] menuDialogItems = resources.getStringArray(R.array.menu_dialog_items);\n String appName = resources.getString(R.string.app_name);\n for (int i = 0; i < menuDialogItems.length; ++i) {\n menuDialogItems[i] = String.format(menuDialogItems[i], appName);\n }\n\n AlertDialog dialog = new AlertDialog.Builder(context)\n .setTitle(R.string.menu_dialog_title)\n .setAdapter(new MenuDialogAdapter(context, menuDialogItems), listenerHandler)\n .create();\n dialog.setOnDismissListener(listenerHandler);\n return dialog;\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private ListSelectionDialogFactory() {\n }" ]
[ "0.70603955", "0.69790804", "0.6929949", "0.692271", "0.6866671", "0.67297786", "0.66794777", "0.6679368", "0.6638751", "0.6617405", "0.6549817", "0.6539394", "0.652435", "0.65164286", "0.6469162", "0.64641607", "0.6451098", "0.6425593", "0.6419002", "0.6419002", "0.63697636", "0.6362946", "0.6348533", "0.63397425", "0.63205034", "0.6315255", "0.62899107", "0.6279066", "0.6255064", "0.62463814", "0.6233295", "0.6221355", "0.6221355", "0.6221355", "0.621799", "0.6214696", "0.6212629", "0.62022954", "0.61911577", "0.61677307", "0.61590385", "0.61547756", "0.61547756", "0.61547756", "0.61547756", "0.6152405", "0.6150748", "0.6126093", "0.6126093", "0.6126093", "0.6108865", "0.6107269", "0.61021024", "0.6101541", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.60972", "0.6083444", "0.60832953", "0.608137", "0.6077906", "0.60771704", "0.6075108", "0.6075108", "0.606598", "0.6060883", "0.6042717", "0.603757", "0.6034628", "0.6034444", "0.60330576", "0.60299385", "0.60270756", "0.60245895", "0.6022762", "0.6019728", "0.60144365", "0.6000957", "0.6000562", "0.59880924", "0.5983779", "0.59832495", "0.5982931", "0.59794927", "0.59721416", "0.59631276", "0.59615767", "0.5956427", "0.5951335", "0.5944818", "0.59437215", "0.5942802" ]
0.0
-1
Add new active list
public void addShoppingList() { /* Close the dialog fragment */ FilterDialogFragment.this.getDialog().cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }", "public void addToList() {\n addToCurrentListButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //getting the variables from the user input\n String address = enterAddress.getText();\n String issue = enterAddress.getText();\n String model = enterModel.getText();\n //date method\n Date date = new Date();\n //creating a quick CentralAC list\n CentralAC acEntry = new CentralAC(address, issue, date, model);\n //adding items to the Arraylist\n HVACGUI.newCentralAC.add(acEntry);\n //adding items to the default list model\n HVACGUI.openService.addElement(acEntry);\n //disposing the form\n CentralAC_GUI.this.dispose();\n\n\n }\n });\n }", "public static void addList() {\n\t}", "private void addList(){\n boolean unique = true;\n String name =this.stringPopUp(\"List name:\");\n do {\n if(name == null){\n return;\n }\n if(!unique){\n unique = true;\n name = this.stringPopUp(\"List with this name already exists\");\n }\n for (Component p : window.getComponents()) {\n if (p.getName().equals(name)) {\n unique = false;\n }\n }\n }while (!unique);\n numberOfLists++;\n\n Users user = new Users();\n user.setEmail(agenda.getUsername());\n ColorPicker colorPicker = ColorPicker.createColorPicker(4);\n JOptionPane.showConfirmDialog(null, colorPicker, \"Chose default priority\", JOptionPane.OK_CANCEL_OPTION);\n Items item = new Items(name,ColorPicker.getColorName(colorPicker.getColor()),\"list\",user);\n agenda.getConnector().addItem(item,user);\n comboBox.addItem(name);\n currentList = agenda.getConnector().getItem(agenda.getUsername(),\"list\",name);\n JPanel panel = new JPanel();\n setUpList(panel);\n setup.put(name,true);\n comboBox.setSelectedItem(name);\n panel.setName(name);\n window.add(name, panel);\n this.showPanel(name);\n this.updateComponent(panel);\n comboBox.setSelectedIndex(numberOfLists-1);\n\n if(numberOfLists==1){\n setUpHeader();\n }\n }", "public void addList(String name){\n }", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerformed(actionEvent);\n }\n });\n addButton(addButton);\n }", "public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}", "private void createNewListSection() {\n\t\tImageIcon image10 = new ImageIcon(sURLFCL1);\n\t\tImageIcon image11 = new ImageIcon(sURLFCL2);\n\t\tImageIcon image12 = new ImageIcon(sURLFCL3);\n\t\tjbCreateLists = new JButton(\"New PlayList\");\n\t\tjbCreateLists.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbCreateLists.setForeground(new Color(150,100,100));\n\t\tjbCreateLists.setIcon(image10);\n\t\tjbCreateLists.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setRolloverIcon(image11);\n\t\tjbCreateLists.setRolloverSelectedIcon(image12);\t\n\t\tjbCreateLists.setContentAreaFilled(false);\n\t\tjbCreateLists.setFocusable(false);\n\t\tjbCreateLists.setBorderPainted(false);\n\t}", "public void setCurrentListToBeDoneList();", "public void addToList() {\n loadClubList();\n\n Intent intent = getIntent();\n String name = intent.getStringExtra(AddClub.NAME);\n String description = intent.getStringExtra(AddClub.DESCRIPTION);\n int image = intent.getIntExtra(AddClub.IMAGE, 0);\n\n if (name != null & description != null & image != 0) {\n clubList.add(new Club(name, description, image));\n }\n\n saveClubList();\n }", "private void editList(){\n String name =this.stringPopUp(\"New name:\");\n Color newDefaultPriority = ColorPicker.colorPopUp(ColorPicker.getColor(currentList.getColor()));\n if(name != null && !name.isEmpty()) {\n String oldName = getPanelForList().getName();\n JPanel panel = getPanelForList();\n currentList.setName(name);\n currentList.setColor(ColorPicker.getColorName(newDefaultPriority));\n agenda.getConnector().editItem(currentList);\n setup.remove(oldName);\n window.remove(panel);\n setup.put(name,true);\n panel.setName(name);\n comboBox.addItem(name);\n comboBox.setSelectedItem(name);\n window.add(name,panel);\n comboBox.removeItem(oldName);\n this.updateComponent(panel);\n this.showPanel(name);\n this.updateComponent(header);\n }\n }", "private void addElementsToPanelList(JList<String> jlist, JButton clickUpdate, JButton clickDelete,\r\n JButton clickComplete, JButton clickIncomplete,\r\n JButton clickCreate, JButton showComplete,\r\n JButton clickSave) {\r\n panelList.add(jlist);\r\n panelList.add(clickUpdate);\r\n panelList.add(clickDelete);\r\n panelList.add(clickComplete);\r\n panelList.add(clickIncomplete);\r\n panelList.add(clickCreate);\r\n panelList.add(showComplete);\r\n panelList.add(clickSave);\r\n }", "public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add(client1);\n clientsList.add(client2);\n clientsList.add(client3);\n clientsList.add(client4);\n clientsList.add(client5);\n }", "private void createUserList() {\n\t\tif (!userList.isEmpty() && !listUsers.isSelectionEmpty()) {\n\t\t\tlistUsers.clearSelection();\n\t\t}\t\t\n\t\tif (!archivedUserList.isEmpty() && !listArchivedUsers.isSelectionEmpty()) {\n\t\t\tlistArchivedUsers.clearSelection();\n\t\t}\t\t\n\t\tarchivedUserList.clear();\n\t\tuserList.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).active()) {\n\t\t\t\tuserList.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t\t} else {\n\t\t\t\tarchivedUserList.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t\t}\t\t\n\t\t}\n\t}", "public List<New> listByActiveCiteria(String active);", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "private void addNewCoursesOnClick(){\n dataSource.open();\n dataSource.createCourses(editTextCourses.getText().toString(),editTextTeacher.getText().toString(),editTextWhen.getText().toString(),editTextWhere.getText().toString(),editTextGrading.getText().toString(),editTextOther.getText().toString());\n dataSource.close();\n CoursesListElement courses = new CoursesListElement(editTextCourses.getText().toString(),editTextTeacher.getText().toString(),editTextWhen.getText().toString(),editTextWhere.getText().toString(),editTextGrading.getText().toString(),editTextOther.getText().toString(),0);\n listElements.add(courses);\n // setting list adapter\n listView.setAdapter(new ActionListAdapter(getActivity(),R.id.list_courses, listElements));\n newCourses.setVisibility(View.GONE);\n editTextCourses.setText(\"\");\n editTextTeacher.setText(\"\");\n editTextWhen.setText(\"\");\n editTextWhere.setText(\"\");\n editTextGrading.setText(\"\");\n editTextOther.setText(\"\");\n }", "private void add() {\n\t\tlist = new ArrayList<Fragment>();\n\t\tlist.add(new HomeFragment());\n\t\tlist.add(new MenuFragment());\n\t\tlist.add(new FriendsFragment());\n\t\tlist.add(new MineFragment());\n\t}", "@RequestMapping(value = \"/active\", method = RequestMethod.GET)\r\n\tpublic static ClearList getActiveList() {\r\n\t\tClearList clist = new ClearList();\r\n\t\tArrayList<ClearList> lists = new ArrayList<>();\r\n\t\tlists.addAll(ClearListController.getAllClearlists());\r\n\t\tfor (ClearList list:lists) {\r\n\t\t\tif(list.isActive() == true) {\r\n\t\t\t\tclist = list;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn clist;\r\n\t}", "public void addLayersToGUI() {\n Layer previousActiveLayer = activeLayer;\n\n layerList.forEach(this::addLayerToGUI);\n\n setActiveLayer(previousActiveLayer, AddToHistory.NO);\n }", "public void addItem(ArrayList<HashMap<String, String>> new_list) {\n list = new_list;\n notifyDataSetChanged();\n }", "public void doAdd() {\r\n\t\tif (_mode == MODE_LIST_ON_PAGE && _listForm != null) {\r\n\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\tDataStoreBuffer ds = getDataStore();\r\n\t\t\tif (listDs == ds && ds != null) {\r\n\t\t\t\t//same datastore on list and detail\r\n\t\t\t\tif (ds.getRowCount() > 0 && (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW))\r\n\t\t\t\t\treturn;\r\n\r\n if (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW_MODIFIED) ds.deleteRow();\r\n if (isDataModified()) undoChanges();\r\n\r\n\t\t\t\tds.insertRow();\r\n\t\t\t\tif (_listForm.getDataTable() != null) {\r\n\t\t\t\t\tJspDataTable tab = _listForm.getDataTable();\r\n\t\t\t\t\tif (!tab.isRowOnPage(ds.getRowCount() - 1))\r\n\t\t\t\t\t\ttab.setPage(tab.getPage(ds.getRowCount() - 1));\r\n\t\t\t\t}\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\r\n\t\t\t} else if (_ds != null) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tif (listDs != null)\r\n\t\t\t\t\tlistDs.clearSelectedRow();\r\n\t\t\t\t_listSelectedRow = null;\r\n\t\t\t\t_ds.reset();\r\n\t\t\t\t_ds.insertRow();\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsetVisible(true);\r\n\t\t} else {\r\n\t\t\t_listSelectedRow = null;\r\n\t\t\t_ds.reset();\r\n\t\t\t_ds.insertRow();\r\n\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\tif (comp != null)\r\n\t\t\t\tcomp.setFocus();\r\n\t\t\tscrollToMe();\r\n\t\t}\r\n\t}", "private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}", "public void addFriendList(FriendList list);", "public void addCombo(Combo newCombo){\n ComboList.add(newCombo);\n\n }", "public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }", "private void add() {\n \t\r\n\tArrayAdapter<String> adp=new ArrayAdapter<String>(this,\r\n\t\tandroid.R.layout.simple_dropdown_item_1line,li);\r\n\t \t\r\n\tadp.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n\tauto.setThreshold(1);\r\n\tauto.setAdapter(adp);\r\n\tsp.setAdapter(adp);\r\n\t\r\n }", "public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "private void addSavedCourseToACL() {\n System.out.println(\"(note that selecting a saved course will extract it and it will need to be saved again)\\n\");\n int numSavedCourses = courseList.getCourseList().size();\n if (numSavedCourses == 0) {\n System.out.println(\"There are no saved courses at the moment\");\n return;\n }\n System.out.println(\"The current saved courses are \\n\");\n printSavedCoursesNames();\n System.out.println(\"Select which one you want to add (select number) \");\n int courseSelected = obtainIntSafely(1, numSavedCourses,\n \"Please choose the number next to a course\");\n\n activeCourseList.add(courseList.getCourseList().get(courseSelected - 1));\n courseList.removeCourseFromList(courseSelected - 1);\n System.out.println(\"Added!\");\n }", "public void createNewList(ActionEvent actionEvent) {\n // ideally again, this would have its own window\n // give it a title, and optionally populate it with some items\n }", "@RequestMapping(value = \"/{listName}/add\", method = RequestMethod.POST)\r\n\tpublic String addList(\r\n\t\t\t@PathVariable String listName\r\n\t\t\t){\r\n\t\tClearList clearList = new ClearList();\r\n\t\tclearList.setListName(listName);\r\n\t\tclearList.setActive(false);\r\n\t\tclearListRepository.save(clearList);\r\n\t\t\r\n\t\treturn \"A Clearlist has been successfully created\";\r\n\t}", "private void addItemToList(String item) {\n itemList.add(item);\n\n // ListView aktualisieren\n adapter.notifyDataSetChanged();\n }", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "@Override\n public void addToOpenList(AState state) throws Exception {\n if (state == null)\n throw new IllegalArgumentException(\"State cannot be null\");\n openList.add(state);\n }", "private void makeList(String url, String site_name)\n {\n // originalSiteList will be null if we're modifying an existing search\n String originalSiteList = savedSiteList.getString(site_name, null);\n\n // get a SharedPreferences.Editor to store new url/site name pair\n SharedPreferences.Editor preferencesEditor = savedSiteList.edit();\n preferencesEditor.putString(site_name, url); // store current search\n preferencesEditor.apply(); // store the updated preferences\n \n // if this is a new site name, add its GUI\n if (originalSiteList == null) \n reloadButtons(site_name); // adds a new button for this list\n }", "public void updateAllFilteredListToShowAllActiveEntries();", "public void setListActividad(List<Pair> listActividad) {\n this.listActividad = listActividad;\n }", "private DefaultListModel<String> addItem(DefaultListModel<String> listModel) {\r\n\t\tString newItem = JOptionPane.showInputDialog(null, \"Name of new exercise:\");\r\n\t\tlistModel.addElement(newItem);\r\n\t\treturn listModel;\r\n\t}", "void addList(ShoppingList _ShoppingList);", "@RequestMapping(value = \"/{listId}/active\", method = RequestMethod.GET)\r\n\tpublic static String changeActiveList(@PathVariable long listId) {\r\n\t\tClearList aList = ClearListController.getClearlistById(listId);\r\n\t\tArrayList<ClearList> lists = new ArrayList<>();\r\n\t\tlists.addAll(ClearListController.getAllClearlists());\r\n\t\tfor (ClearList list:lists) {\r\n\t\t\tlist.setActive(false);\r\n\t\t}\r\n\t\taList.setActive(true);\r\n\t\tclearListRepository.save(aList);\r\n\t\tString listname = aList.getListName();\r\n\t\treturn String.format(\"The active list has successfully been changed to %s\",listname);\r\n\t}", "public void onSetNewCurrentItem() {\n }", "public void updateList() {\n if (getActivity().getClass().getName().contains(\"BookmarksActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadBookmarks();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n else if (getActivity().getClass().getName().contains(\"BrowseActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadList();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n }", "public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString playerName = \"\";\n\t\t\tint playerNr = 1;\n\t\t\t\n\t\t\tfor(Player p : player){\n\t\t\t\tplayerName += playerNr+\": \"+p.getName()+\"<br>\"; \n\t\t\t\tplayerNr++;\n\t\t\t}\n\t\t\t\n\t\t\ttotPlayers++;\n\t\t\tlblPlayerList.setText(\"<html><h2>PLAYER LIST</h2>\"+playerName+\"</html>\");\n\t\t\ttxtFieldPlayerName.setText(\"\");\n\t\t}\n\t\t\n\t\tif(totPlayers >= minimumPlayersAllowed){\n\t\t\tbtnPlay.setEnabled(true);\n\t\t}\n\t\t\n\t\tif(totPlayers >= maximumPlayersAllowed){\n\t\t\tbtnAddPlayer.setEnabled(false);\n\t\t\ttxtFieldPlayerName.setEnabled(false);\n\t\t}\n }", "private void loadLists() {\n setUpFooter();\n if (numberOfLists > 0) {\n this.updateComponent(footer);\n for (Object l : agenda.getConnector().getItems(agenda.getUsername(), \"list\")) {\n Items list = (Items) l;\n comboBox.addItem(list.getName());\n JPanel panel = new JPanel();\n panel.setName(list.getName());\n setup.put(list.getName(), false);\n window.add(list.getName(), panel);\n currentList = list;\n }\n setUpHeader();\n for (Component c : window.getComponents()) {\n if (!setup.get(c.getName())){\n setUpList((JPanel) c);\n setup.replace(c.getName(),true);\n break;\n }\n }\n comboBox.setSelectedIndex(numberOfLists-1);\n } else{\n setUpHeader();\n }\n }", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }", "public void setList(java.util.List newAktList) {\n\t\tlist = newAktList;\n\t}", "public org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList addNewExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().add_element_user(EXTLST$14);\n return target;\n }\n }", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public void addList(ShoppingList list) {\n\n lists.add(0, list);\n list.save();\n notifyItemInserted(0);\n\n }", "public void populerListView() {\n Turnering valgtTurnering;\n valgtTurnering = fp_kombo_turnering.getSelectionModel().getSelectedItem();\n valgtTurnering.hentParti();\n for (Parti p: valgtTurnering.hentParti()) {\n fp_liste_parti.getItems().add(p);\n }\n this.partierLastet = true;\n this.fp_knapp_velg_parti.setDisable(false);\n this.fp_knapp_søk_parti.setDisable(false);\n }", "private void addToChatList(Chat[] newChats){\n if ( newChats == null || newChats.length == 0 ) {\n return;\n }\n if ( chatList.size() == 0 ) { // no chat history loaded yet\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n headIndex = newChats[0].id; // update the tail index\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else if ( newChats[newChats.length-1].id < chatList.get(0).id ) { // new.tail is prior to current.head\n // prepend the new chats to the head of the current chat\n int selection = lv_chat.getFirstVisiblePosition();\n selection += newChats.length;\n for ( int i = newChats.length-1; i >= 0; i-- ) {\n chatList.push(newChats[i]);\n }\n lv_chat.setSelection(selection);\n adapter.notifyDataSetChanged();\n Log.d(TAG,\"select:\"+selection);\n headIndex = newChats[0].id; // update the headIndex\n } else if ( newChats[0].id > chatList.get(chatList.size()-1).id ) { // new.head is after current.tail\n // append the new chats to the tail of the current chat\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else {\n Log.e(TAG,\"Loaded duplicated chat!\");\n }\n }", "private void add() {\n\n\t}", "public void rbListAddElement() {\n rbProductType.clear();\n rbProductType.add(rbScs);\n rbProductType.add(rbSko);\n rbProductType.add(rbMko);\n rbProductType.add(rbZko);\n }", "public void addList()\n\t{\n\t\tdlm_patch.clear();\n\t\tif (pf.getAllPatch_DB() != null)\n\t\t{\n\t\t\tfor ( Patch p : pf.getAllPatch_DB() )\n\t\t\t\tdlm_patch.addElement(p);\n\t\t}\n\t}", "private void addDataForListView() {\n \t\n \tif(loadable)\n \t{\t\n \tloadable = false;\n \tdirection = BACKWARD;\n \tstrUrl = Url.composeHotPageUrl(type_id, class_id, last_id);\n \trequestData();\n \t}\n\t}", "private List<Turtle> createActiveDisplay() {\n\t\tactiveListDisplay = new FlowPane();\n\t\tactiveListDisplay.setPrefWrapLength(turtleView.getWidth());\n\t\tif (tManager != null) {\n\t\t\tactiveTurtles = tManager.getActiveTurtles();\n\t\t\tfor(Turtle turtle: activeTurtles) {\n\t\t\t\tLabel currentTurtle = new Label(Double.toString(turtle.getID()));\n\t\t\t\tturtleView.getChildren().add(currentTurtle);\n\t\t\t\tlabels.add(currentTurtle);\n\t\t\t\ttoggleTurtle(currentTurtle, turtle);\n\t\t\t}\n\t\t\treturn activeTurtles;\n\t\t}\n\t\treturn null;\n\t}", "private void addToArrayList(String getName) {\n\t\tUser newUser = new User(getName);\n\t\tmgUsr.arrList.add(newUser);\n\t\tobs = FXCollections.observableArrayList(mgUsr.arrList);\n\n\t\tsetOnListView();\n\t}", "public void add_to_my_list_process(View v) {\n\n addToCart_flag = false;\n // get current login value saved in sharedpreferences object\n SharedPreferences loginSharedPref = getSharedPreferences(\"LoginData\", MODE_PRIVATE);\n // get current agent id\n final String AgentID = loginSharedPref.getString(\"ID\", \"\");\n // create string\n create_final_string_product();\n /* get all list names into arraylist object */\n ArrayList<String> listNames = get_list_data_from_local_DB(AgentID);\n // display alert box to choose list name by user\n display_list_names(listNames, AgentID);\n // clear all data after adding product into cart\n clear_data();\n }", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList addNewServiceConfigurationList();", "@Override\n\tpublic void add(Component component) {\n\t\tlist.add(component);\n\t}", "private static void addActivePosition(List<Integer> position, int count){\n if (count == 3 && !positions.contains(position)){\n// System.out.println(\"changed to active\");\n// System.out.println(\"Position: \" + position + \" count: \" + count);\n newPositions.add(position);\n } else if ((count == 2 || count == 3) && positions.contains(position)){\n// System.out.println(\"Stayed active\");\n// System.out.println(\"Position: \" + position + \" count: \" + count);\n newPositions.add(position);\n }\n }", "public void showPanelToNewPlayList() {\n\t\tjpIntroduceNameList.setVisible(true);\n\t\tjpIntroduceNameList.setFocusable(true);\n\t\tjpIntroduceNameList.requestFocus(true);\n\t\tjpIntroduceNameList.setRequestFocusEnabled(true);\n\t\tjpIntroduceNameList.requestFocus();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void createList(String dataType) {\n\t\tlistModel.clear();\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t\tlist.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent evt) {\n\t\t\t\tif (evt.getClickCount() == 1) { //One click to select a link\n\t\t\t\t\taddRemoveButton();\n\t\t\t\t} else if (evt.getClickCount() == 2) { //Double click to open a link\n\t\t\t\t\tlayer.show(userViewPort, \"WebBrowser\");\n\t\t\t\t\tmenuBar.remove(backButton);\n\t\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\t\tmenuBar.revalidate();\n\t\t\t\t\tif (viewMode == 2) {\n\t\t\t\t\t\tnavigation.validateURL(userData.deriveFrom(\"history\").get(list.getSelectedIndex()), true);\n\t\t\t\t\t} else if (viewMode == 3) {\n\t\t\t\t\t\tnavigation.validateURL(userData.deriveFrom(\"bookmarks\").get(list.getSelectedIndex()), true);\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\tviewMode = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tif (userData.getValue(dataType).length() != 0) {\n\t\t\tfor (String s : userData.deriveFrom(dataType)) {\n\t\t\t\ttry {\n\t\t\t\t\tlistModel.addElement(new URL(s).getHost());\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tnavigation.showError(\"Something went wrong!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean addList(ArrayList<Npcinfo> NpcinfoList);", "@RequestMapping(value = \"/list\")\n\tpublic String list() {\n\t\treturn \"framework/system/activeaddition/activeAdditionList\";\n\t}", "public void refresh(ArrayList pNewList) {\n listLivingBeings.setListData(pNewList.toArray());\n if (!pNewList.isEmpty()) {\n listLivingBeings.setSelectedIndex(0);\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n Button addBtn = (Button)findViewById(R.id.add);\n addBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getBaseContext(), AddNewTask.class);\n startActivity(intent);\n }\n });\n\n note_Singleton Notes = note_Singleton.getInstance(this);\n final ListView listView = (ListView) findViewById(R.id.listV_main);\n\n listView.setAdapter(new ItemListBaseAdapter(this, Notes.getItems()));\n ((BaseAdapter) listView.getAdapter()).notifyDataSetChanged();\n }", "private static void testAdd(ArrayList list, int[] content) {\n System.out.print(\"Adding to the list: \");\n for (int index = 0; index < content[index]; index++) {\n list.addToEnd(content);\n } // end for\n System.out.println();\n displayList(list);\n }", "a(List list) {\n super(1);\n this.$sortedList = list;\n }", "private void CreateList (MouseEvent evt)\n {\n if(currentPlayers < nPlayers)\n {\n label2.setText(\"List not full\");\n }\n else\n {\n new TEST(Names);\n label2.setText(\"List created\");\n }\n }", "public void addedToDom() {\n activateTab();\n }", "public void createNewItem(ActionEvent actionEvent) {\n // we will create a new item instance here (ideally we would use another window for this)\n // and then we will simply addItem() to the currently selected list\n }", "public void addActor(){\n actorProfileList.add(new ActorProfile());\n }", "public void addToList(View view) {\n Items newItem = new Items();\n EditText ETNew = (EditText) findViewById(R.id.ETNew);\n newItem.todo = ETNew.getText().toString();\n newItem.done = false;\n helper.create(newItem);\n Toast.makeText(this, \"Item added\", Toast.LENGTH_SHORT).show();\n adaptList2();\n ETNew.setText(\"\");\n ETNew.setHint(\"my new to-do\");\n }", "public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }", "public static void addView() {\n\t\tListView listview = (ListView) main_detail.findViewById(R.id.listview);\n\t\tbaseAdapter = new BaseAdapter(getActivity(), new ArrayList<Object>()) {\n\t\t\t@Override\n\t\t\tpublic BaseView getView(Context context, Object data) {\n\t\t\t\tfinal ProfileRecommentItemView profileRecommentItemView = new ProfileRecommentItemView(context);\n\t\t\t\treturn profileRecommentItemView;\n\t\t\t}\n\t\t};\n\t\tbaseAdapter.clear();\n\t\tbaseAdapter.addAllItems(baseItemsCreditMain);\n\t\tbaseAdapter.notifyDataSetChanged();\n\t\tlistview.setOnItemClickListener(new OnItemClickListener() {\n\t\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tBaseItem baseItem = (BaseItem) parent.getItemAtPosition(position);\n//\t\t\t\tfinishEC(baseItem.getString(\"id_card\"));\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tlistview.setAdapter(baseAdapter);\n\t}", "public TaskList(List<ListItem> inputList) {\n this.listItems = new ArrayList<ListItem>(inputList);\n }", "private void fillList(JList aListComponent,ArrayList<String> theList) {\n DefaultListModel itsModel = new DefaultListModel();\n aListComponent.setModel(itsModel);\n for(String anItem : theList){\n itsModel.addElement(anItem);\n }\n aListComponent.setModel(itsModel);\n }", "public void add() {\n\t\t\n\t}", "private void contactsListEvent(){\n UI.getContacts().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n UI.getProperList().clear(); //Clear screen\r\n UI.getContacts().setCellRenderer(clearNotification); //Clear notification\r\n UI.getUserName().setText((String) UI.getContacts().getSelectedValue()); //Set selected username\r\n String currentChat = (String)UI.getContacts().getSelectedValue();\r\n if(chats.containsKey(currentChat)){ //If database exists\r\n for(String s: chats.get(currentChat)){ //Load messages to screen\r\n UI.getProperList().addElement(s);\r\n }\r\n }\r\n }\r\n });\r\n }", "private void syncListFromTodo() {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n for (Task task : myTodo.getTodo().values()) {\r\n if (!task.isComplete() || showCompleted) {\r\n String display = String.format(\"%1s DueDate: %10s %s %3s\", task.getName(), task.getDueDate(),\r\n task.isComplete() ? \" Completed!\" : \" Not Completed\", task.getPriority());\r\n dlm.addElement(display);\r\n list.setFont(new Font(\"TimesRoman\", Font.PLAIN, 15));\r\n }\r\n }\r\n list.setModel(dlm);\r\n }", "private void initList() {\n\n }", "public void cbListAddElement() {\n cbWorker.clear();\n cbWorker.add(cbJ);\n cbWorker.add(cbK);\n cbWorker.add(cbM);\n cbWorker.add(cbP);\n cbWorker.add(cbA);\n cbWorker.add(cbS);\n }", "public void updateList(boolean connected) {\n listAdapter.changeLayout(connected);\n drawerListLeft.setAdapter(listAdapter);\n }", "private void jbt_addTeacherActionPerformed(java.awt.event.ActionEvent evt) {\n String name = jtf_TeacherName.getText();\n //Teachers t = new Teachers(name);\n TeacherList.add(name);\n\n listdisplay.addElement(name);\n\n jlist_teacher.setModel(listdisplay);\n\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }", "private JList Add(String[] ss, String s) {\n\t\t// if (ss.length > 0) {\n\t\tJList l = new JList(ss);\n\t\tint indices[] = new int[ss.length];\n\t\tfor (int i = 0; i < ss.length; i++) {\n\t\t\tindices[i] = i;\n\t\t}\n\t\tl.setSelectedIndices(indices);\n\t\ttheTabbedPane.addTab(s, new JScrollPane(l));\n\t\treturn l;\n\t\t// }\n\t\t// return null;\n\t}", "ListItem createListItem();", "private void ActualizarListView(ArrayList<String> lista)\n {\n theAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_selectable_list_item, lista);\n lv_listaComponente.setAdapter(theAdapter);\n }", "private void registerClick() {\n listView = (ListView) findViewById(R.id.listViewPick);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n private AdapterView parent;\n\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n this.parent = parent;\n TextView textView = (TextView) viewClicked;\n //String message = \"You clicked # \" + position + \", which is list: \" + textView.getText().toString();\n //Toast.makeText(PickExisting.this, message, Toast.LENGTH_SHORT).show();\n\n String name = textView.getText().toString();\n Product product = new Product();\n product = myDB.findProdByName(name);\n\n if (FROM.equals(\"UseList\")) {\n myDB.addListProduct(FORWARD, product);\n }else{\n myDB.addInventoryProduct(FORWARD, product);\n }\n }\n });\n }", "public void setList() \n\t\t{\n\t\t\tVector<Course> items = client.ProfessorCourseList(prof.getID());\n\t\t\tmodel.removeAllElements();\n\t\t\tif(items == null)return;\n\t\t\tString s;\n\t\t\tfor(int i = 0; i < items.size(); i++)\n\t\t\t{\n\t\t\t\ts = items.get(i).getName();\n\t\t\t\tmodel.addElement(items.get(i));\n\t\t\t}\n\t\t}", "static public void addPersona(Persona c) { //metodo para añadir a lista y actualizar la lista en tiempo real\r\n listaPersona.add(c);\r\n listaG.setListaGrafica();\r\n \r\n \r\n \r\n }", "void loadNewData(List<Todo> newTodo) {\n mTodoList = newTodo;\n notifyDataSetChanged();\n }", "public void add(String text) {\n list.add(text);\n }", "public AddRandomList() {\n setTitleText(\"Add new random List\");\n\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n addButton(addButton);\n }", "public OrderListController() {\n selectedOrderList = new ArrayList();\n }", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "public final void addToInitList() {\n\t\tEngine.getSingleton().addToInitList(this);\n\t}", "public void updateUsersList() {\n\t adapter = new UsersAdapter(getActivity(), allUsers);\n setListAdapter(adapter);\n\t getListView().setOnItemClickListener(this);\n\t}", "private void reloadButtons(String newList) \n {\n // store saved url/url names in the lists array\n String[] lists = \n savedSiteList.getAll().keySet().toArray(new String[0]); \n Arrays.sort(lists, String.CASE_INSENSITIVE_ORDER); // sort by list\n\n // if a new list was added, insert in GUI at the appropriate location\n if (newList != null)\n {\n makeListGUI(newList, Arrays.binarySearch(lists, newList));\n }\n else // display GUI for all lists\n { \n // display all saved searches\n for (int index = 0; index < lists.length; ++index)\n makeListGUI(lists[index], index);\n } \n }" ]
[ "0.736416", "0.6595705", "0.6506521", "0.6468223", "0.62775886", "0.6230777", "0.6163827", "0.60276926", "0.6023912", "0.6018844", "0.6011591", "0.60049134", "0.5951937", "0.58810836", "0.5880806", "0.584309", "0.5791795", "0.5753008", "0.5739082", "0.5724585", "0.57175946", "0.57114947", "0.57081074", "0.57071257", "0.5696792", "0.5689681", "0.5672718", "0.5642599", "0.5638183", "0.56087613", "0.560183", "0.5596146", "0.5587143", "0.55596495", "0.5539868", "0.552211", "0.55215657", "0.5521348", "0.551995", "0.5511691", "0.5503846", "0.5488227", "0.54817003", "0.5472218", "0.5466135", "0.5458883", "0.5457625", "0.5448208", "0.5445528", "0.54445946", "0.54369396", "0.54278356", "0.54251057", "0.5423242", "0.5420813", "0.5419212", "0.5418458", "0.53967357", "0.5385091", "0.53787166", "0.5374809", "0.5371592", "0.53683895", "0.53545946", "0.53373414", "0.53365666", "0.53323627", "0.53279847", "0.5321482", "0.53194577", "0.5317033", "0.5312505", "0.53088367", "0.52965355", "0.529261", "0.52905256", "0.5290144", "0.52866966", "0.5286058", "0.5281064", "0.5279737", "0.5276883", "0.527276", "0.5272342", "0.5270816", "0.52683985", "0.5267694", "0.5262995", "0.5261701", "0.5258976", "0.5251786", "0.52509975", "0.524966", "0.52477336", "0.52468383", "0.52425885", "0.52400166", "0.5230506", "0.5226578", "0.52199", "0.5217233" ]
0.0
-1
/ %L Cytoscape Filters Impl (filterimpl) $Id:$ $HeadURL:$ %% Copyright (C) 2006 2013 The Cytoscape Consortium %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Lesser Public License for more details. You should have received a copy of the GNU General Lesser Public License along with this program. If not, see < L% Interface for listening to Index events.
public interface IndexListener { /** * Index has been reset. */ void indexReset(); /** * Item has been added to the index. * * @param key Object key. * @param o Object o. */ void itemAddedToIndex(Object key, Object o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "void filterChanged(Filter filter);", "public void clickonFilter() {\n\t\t\n\t}", "@Override\n\tpublic void filterClick() {\n\t\t\n\t}", "EventChannelFilter filter();", "public abstract void updateFilter();", "@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();", "void onFilterChanged(ArticleFilter filter);", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "IViewFilter getViewFilter();", "public interface Filter {\n\n}", "@Override\n\tpublic void filterClick() throws Exception {\n\t\t\n\t}", "public interface FilterVisitor<R> {\r\n\r\n /**\r\n * A FilterVistor must visit all these methods below, per visitor design pattern. \r\n * And a FilterExpression just need implements an accept() method.\r\n */\r\n\r\n <T extends Comparable<T>> R visit(Eq<T> eq);\r\n\r\n <T extends Comparable<T>> R visit(NotEq<T> notEq);\r\n\r\n <T extends Comparable<T>> R visit(LtEq<T> ltEq);\r\n\r\n <T extends Comparable<T>> R visit(GtEq<T> gtEq);\r\n\r\n R visit(Not not);\r\n\r\n R visit(And and);\r\n\r\n R visit(Or or);\r\n\r\n}", "public abstract void filter();", "public interface IVectorLayerFilter {\n\n public boolean accept(IFeature feature,\n int iIndex);\n\n\n}", "public interface IFilterObserver {\n\n\t/**\n\t * Indicates that something about the passed filter has changed. This could\n\t * include a change to the set of findings entering the filter, a change to\n\t * the set of values in the filter, and/or a change to the porousness of the\n\t * filter.\n\t * \n\t * @param filter\n\t * a filter.\n\t */\n\tvoid filterChanged(Filter filter);\n\n\t/**\n\t * Indicates that the passed filter is in the process of being disposed by\n\t * its owing selection.\n\t * \n\t * @param filter\n\t * a filter.\n\t */\n\tvoid filterDisposed(Filter filter);\n}", "public abstract INexusFilterDescriptor getFilterDescriptor();", "public static interface Filter\n\t\t{\n\t\t/**\n\t\t * Accept a frame? if false then all particles will be discarded\n\t\t */\n\t\tpublic boolean acceptFrame(EvDecimal frame);\n\t\t\n\t\t/**\n\t\t * Accept a particle?\n\t\t */\n\t\tpublic boolean acceptParticle(int id, ParticleInfo info);\n\t\t}", "public interface FilterChain {\n\n // execute current filter's onEntry\n void onEntry(FilterContext ctx) throws SoaException;\n\n // execute current filter's onExit\n void onExit(FilterContext ctx)throws SoaException;\n\n\n}", "FeatureHolder filter(FeatureFilter filter);", "Update withFilter(EventChannelFilter filter);", "@FXML\n public void getFilteredResults(ActionEvent event) throws IOException {\n int filterValueInt = 0;\n String filterName = filterChoiceBox.getValue(); //Get value from text field\n\n UpdateHandler.setFilter_Changed(true);\n\n if (!filterName.equals(ALL_FILTER)) {\n try {\n filterValueInt = Integer.parseInt(filterValue.getText());\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(null, \"Has to be a number.\");\n }\n UpdateHandler.setFILTER_NAME(filterName);\n UpdateHandler.setFILTER_VALUE(filterValueInt);\n } else {\n UpdateHandler.setFILTER_NAME(\"All\");\n UpdateHandler.setFILTER_VALUE(0);\n }\n }", "@Override\n public void visit(final OpFilter opFilter) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpFilter\");\n }\n addOp(OpFilter.filterBy(opFilter.getExprs(), rewriteOp1(opFilter)));\n }", "Filter getFilter();", "public abstract Filter<T> filter();", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "public interface Filter {\n void doFilter();\n}", "interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }", "public void setFilters(List<COSName> filters) {\n/* 333 */ COSArray cOSArray = COSArrayList.converterToCOSArray(filters);\n/* 334 */ this.stream.setItem(COSName.FILTER, (COSBase)cOSArray);\n/* */ }", "public void addFilterToMethods(ViewerFilter filter);", "public void addNodeFilter (INodeFilter filter);", "public interface FilterAction {\n /**\n * Takes search entities that has been returned from {@link cz.muni.fi.pb162.find.filesystem.FSWalkResult}\n * Applies all the filters that have been enabled and returns filtered entries.\n *\n * To check which filters are active use {@link cz.muni.fi.pb162.find.ApplicationOptions}\n *\n * @param entries - Not filtered search entities\n * @return filtered search entities\n */\n List<SearchEntry> filter(List<SearchEntry> entries);\n}", "public Filter () {\n\t\tsuper();\n\t}", "public interface GridFilter {\n\n public abstract String getLabel();\n\n public abstract AbstractField getCampo();\n\n public abstract boolean matches(Data d);\n}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "@Override\n\tpublic Object visit(ASTFilterIs node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" is \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "public interface Filter extends Predicate<Element> {\n\n}", "public void ChangeFilter(String arg) {\r\n\t\tSelect dropDown = new Select(filter);\r\n\t\tdropDown.selectByIndex(1);;\r\n\t\tReporter.log(\"Filter clicked\"+arg,true);\r\n\t}", "public void setFilteredIndex(int index)\n\t{\n\t\tthis.filteredIndex = index;\n\t}", "void setFilter(Filter f);", "public Object accept(FilterVisitor visitor, Object extraData) {\n \treturn visitor.visit(this,extraData);\n }", "CompiledFilter() {\n }", "@Override public Filter getFilter() { return null; }", "public void addFilter(int index, MessageFilter filter);", "@Override\n public void visit(Index node) {\n }", "public interface FilterService {\n\n /**Method that will getFilteredItems the filter and return the result as a JSONArray\n * @return the filtered result as a JSONArray*/\n List<JSONObject> getFilteredItems();\n\n /**Method that returns the name of the class\n * @return class simple name*/\n String getFilterName();\n\n /**Method that prints all items on the list*/\n void printFilteredItems();\n\n /**Method that prints the number of the items on the list*/\n void printNumberOfFilteredItems();\n\n // TODO IMPLEMENTED WITH OSGI Method that will return the number of the selected number, used for managing the filters\n //int getFilterNumber();\n}", "public void addFilterToParentLayer(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToParentLayer(ViewerFilter filter);", "public String getFilter();", "public interface Filterable extends Patternable {\n ExprList getExpList(Model model);\n}", "protected void ACTION_B_FILTER(ActionEvent e) {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif(RB_FILTER_ENABLE.isSelected())\r\n\t\t\t{\r\n\t\t\t\tif(RB_PORT_HTTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"ip and tcp\", true);\r\n\t\t\t\t}\r\n\t\t\t\telse if(RB_PORT_DNS.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"udp dst port 53\", true);\r\n\t\t\t\t}else if(RB_PORT_SMTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"smtp dst port 25\", true);\r\n\t\t\t\t}else if(RB_PORT_SSL.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"port 443\", true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Filtering is Disabled\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e2) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(e2);\r\n\t\t}\r\n\t\t\r\n\t}", "public void refreshDataFilter();", "public interface MyFilterListener {\n void onContentChange(List<Article> newArticleList);\n\n void initialise(List<Article> initialArticleList, List<Article> filteredArticleList);\n}", "public void addBusinessFilterToMethods(ViewerFilter filter);", "@Test\n public void eventFilterTest() {\n // TODO: test eventFilter\n }", "public interface iFilter {\n\n /**\n * method to add a value to datastructure.\n *\n * @param value\n */\n void add(String value);\n\n /**\n * method to check whether datastructure has value.\n *\n * @param value\n * @return boolean\n */\n boolean contains(String value);\n}", "interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }", "public interface FilterComponent<E> {\n\n public JComponent getComponent();\n\n public boolean isSelectDeselectAllVisible();\n\n public ActionListener getSelectAction();\n public ActionListener getDeselectAction();\n\n public MatcherEditor<E> getMatcherEditor();\n\n public void dispose();\n}", "public void addFilterToComboRO(ViewerFilter filter);", "public void addFilterToImplements_(ViewerFilter filter);", "void onEntry(FilterContext ctx) throws SoaException;", "public void addFilterToParentModule(ViewerFilter filter);", "public void setFilter(Expression filter) {\n this.filter = filter;\n }", "public void onUpdateFilters(SearchFilter newFilter) {\n filter.setSort(newFilter.getSort());\n filter.setBegin_date(newFilter.getBegin_date());\n filter.setNewsDeskOpts(newFilter.getNewsDeskOpts());\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n fetchArticles(0,true);\n }", "@Override\n public R visit(Filter n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.constraint.accept(this, argu);\n return _ret;\n }", "public void addFilterToCreator(ViewerFilter filter);", "@SuppressWarnings(\"unchecked\")\n \tprivate void notifyFilterAdded(final IUIFilter filter) {\n \t\tfor (final L next : getListeners()) {\n \t\t\tnext.filterAdded((S) this, filter);\n \t\t}\n \t\tfor (final ISimpleNavigationNodeListener next : getSimpleListeners()) {\n \t\t\tnext.filterAdded(this, filter);\n \t\t}\n \t}", "public void addFilterToCombo(ViewerFilter filter);", "public void onFilterChanged(List<List<T>> filteredCellItems, List<T> filteredRowHeaderItems) {\n }", "@Override\n public boolean shouldFilter() {\n return true;\n }", "public abstract boolean isFilterApplicable ();", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "@Override\n public void accept(OrcFilterContext batch) {\n }", "protected abstract ITitleAndSearchPanelFilter instantiateHeaderAndSearchFilter ( ) ;", "@Override\n\tprotected void openFilterDialog(int index, SearchIfListener listener) {\n\t\tItemSearchableInformations.values()[index].openDialog(this, SearchTypes.FILTER, listener);\n\t}", "@Override\n public Filter getFilter() {\n return main_list_filter;\n }", "public Filter() {\n }", "void registerFilterListener(FilterListener listener);", "public InvertFilter(String name)\n {\n super(name);\n }", "@Override\n\tpublic Object visit(ASTRelFilter node, Object data) {\n\t\treturn null;\n\t}", "public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}", "private void filterHandler(Request req, ProductCategory filter) throws SQLException {\n generalHandler(req);\n params.put(\"currFilter\", filter);\n params.put(\"products\", filter.getProducts());\n }", "public void addBusinessFilterToParentModule(ViewerFilter filter);", "public void setFilter(int index, java.lang.String value) {\n\t\tthis.setValue(FILTER, index, value);\n\t}", "void setFilter(String filter);", "public ABMListadoFilterView() {\n super();\n \n this.crearObjetos();\n this.renderObjetos();\n \n //((FWContentPanePrincipal) ApplicationInstance.getActive().getDefaultWindow().getContent()).abrirVentana(this);\n\n }", "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "@VTID(9)\n void treeFilter(\n IUIAutomationCondition filter);", "@Override\n\tpublic Object visit(ASTFilterEq node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" eq \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "public void filterNodes(String filter) {\n\n\n tree_graphs.getChildren().clear();\n populate(universe, filter, this.showNodes, this.showEdges,\n this.showHyperEdges);\n\n\n tree_nodes.getChildren().clear();\n for (INode node : universe.getNodes()) {\n if (node.getID().contains(filter)) {\n parseNode(node, tree_nodes, filter);\n }\n }\n\n }", "void filterChanged(String filter) {\n if (filter.isEmpty()) {\n treeView.setRoot(rootTreeItem);\n } else {\n TreeItem<FilePath> filteredRoot = createTreeRoot();\n filter(rootTreeItem, filter, filteredRoot);\n treeView.setRoot(filteredRoot);\n }\n }", "public interface FilterResultsCallback {\n void onPublish(int filterResults);\n}", "<E extends CtElement> List<E> getElements(Filter<E> filter);", "@Override \n\t\tprotected void publishResults(CharSequence constraint, FilterResults results)\n\t\t{\n\t\t\t\n \n filteredData = (ArrayList<IndexEntry>) results.values;\n notifyDataSetChanged();\n \n if (callback != null){\n \tcallback.valuesFiltered();\n \tcallback = null;\n }\n \n\t\t}", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "public void setFilterExpression(Expression filterExpr) {\n\t\tthis.filterExpr = filterExpr;\n\t}", "public Filter getFilterComponent()\n {\n return filterComponent;\n }", "Results processFilter(FilterSpecifier filter) throws SearchServiceException;" ]
[ "0.6481726", "0.64706564", "0.6396241", "0.6306563", "0.6302035", "0.62290967", "0.61969167", "0.6096373", "0.60096556", "0.59708285", "0.5952288", "0.5907961", "0.58731246", "0.5857173", "0.5823371", "0.57873803", "0.57653844", "0.5745777", "0.5723732", "0.5721536", "0.5701253", "0.5658904", "0.5625754", "0.56207025", "0.55644506", "0.5547345", "0.5547345", "0.553232", "0.5496798", "0.546358", "0.5456312", "0.54511005", "0.5450265", "0.5428277", "0.5417447", "0.5411533", "0.5390672", "0.5388327", "0.53801006", "0.5368924", "0.5367971", "0.5356419", "0.53290415", "0.5319128", "0.530136", "0.5289301", "0.5289012", "0.5286632", "0.5281433", "0.5281433", "0.52733994", "0.527138", "0.52571535", "0.5246309", "0.5245032", "0.5240965", "0.5234338", "0.5221698", "0.5218414", "0.5214198", "0.5209912", "0.5209116", "0.5208781", "0.5206963", "0.51808655", "0.51760465", "0.517107", "0.5162812", "0.5157092", "0.5155032", "0.5150848", "0.51444054", "0.5139665", "0.513924", "0.51365376", "0.5133441", "0.5132405", "0.5125835", "0.5108638", "0.5104866", "0.51008636", "0.5086021", "0.508365", "0.5082711", "0.50814795", "0.5075065", "0.5074296", "0.5060473", "0.5058419", "0.50551486", "0.5037136", "0.5032596", "0.5031511", "0.5026049", "0.50080717", "0.5005483", "0.500391", "0.5003746", "0.5002663", "0.5001992", "0.49930748" ]
0.0
-1
Index has been reset.
void indexReset();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onIndexReset();", "public void reset() {\n index = 0;\n }", "public void Reset() \r\n {\r\n _index = -1;\r\n }", "public abstract void reset(int index);", "public void reset() {\n this.index = this.startIndex;\n }", "public void reset() {\n this.setIndex(0);\n }", "public synchronized void resetCurrentIndex()\n {\n // Reset the current index to start from 1 (speechgen0001.mp3)\n currentIndex = 1;\n }", "private void resetCurrentMemoryIndex() throws Exception {\n // by using the globalParameters, the memory index can startup counters etc.\n // we set the documentCount to ensure all documents are given a unique number.\n tupleFlowParameters.getJSON().set(\"documentNumberOffset\", this.globalDocumentCount);\n currentMemoryIndex = new MemoryIndex(tupleFlowParameters);\n }", "public final void Reset()\n\t{\n\t\t_curindex = -1;\n\t}", "public void reset(){\n\t\tthis.currentIndex = 0;\n\t}", "public void clear() {\n index.clear();\n }", "public void reset() {\n\t\tterminateAll($$eqHashIndex_0.iterator());\n\t}", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "private void reset() {\n }", "public void reset() {\n\t\tthis.count = 0;\n\t}", "public void reset() {\n _pageIndex = 0;\n //cbxPage.setSelectedIndex(0);\n dispatchEvent(new Event(\"reset\", true, false));\n }", "public void reset () {}", "public synchronized void reset() {\n }", "@Override\n\tpublic void reset(int index) {\n\t\tif (sorted) {\n\t\t\tsortedReader.reset(index);\n\t\t}\n\t}", "protected void reset() {\n\t\t}", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n }", "public void reset() {\n\t\tcount = 0;\n\t}", "public void reset() {\n\n\t}", "boolean reset(final long nextLogIndex);", "public void resetProductResponseIndex() {\r\n/* 41 */ this.currentProductResponseIndex = 0;\r\n/* */ }", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset()\n\t{\n\t}", "public void reset()\n\t{\n\t}", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void reset() {\n globalIndex = new AtomicLong(0);\n lastIssuedMap = new ConcurrentHashMap<>();\n }", "public void reset() {\n\n }", "public void reset() {\n\r\n\t}", "@Override\n public void reset() \n {\n\n }", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "public void reset(){\n }", "@Override\n public void reset() {\n }", "@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}", "public Builder clearIndex() {\n\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n \n index_ = 0;\n onChanged();\n return this;\n }", "public final void Reset()\n\t{\n\t}", "@Override\r\n\tpublic void reset() {\n\t}", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void clear()\n\t\t{\n\t\t\tindices.clear();\n\t\t}", "void reset() {\n for (int i = 0; i < array.length; i++) {\n array[i] = -1;\n }\n }", "@Override\n\tpublic void reset() {\n\n\t}", "private Reindex() {}", "private Reindex() {}", "@Override\n public void reset() {\n\n }", "public void reset() throws Exception;", "@Override\n\tpublic void reset() {\n\t}", "public void UpdatePushIndex() {\n\t\tsetorgetState(true,false);\n\t}", "@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "public void reset() {\n position = 0;\n }", "public void reset()\n {\n currentPosition = 0;\n }", "@Override\r\n\tpublic int reset() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "public Builder clearIndex() {\n \n index_ = 0;\n onChanged();\n return this;\n }", "public Cluster ResetIndex()\n {\n ResetIndex( new Random() );\n return this;\n }", "void reset() {\n count = 0;\n\n }", "public void reset() {\n firstUpdate = true;\n }", "public void setNoIndex() {\n noIndex= true;\n }", "protected abstract void reset();", "public void clear(long index);", "public void reset() {\n itemCount = 0;\n stock = new VendItem[maxItems];\n totalMoney = 0;\n userMoney = 0;\n vmStatus = null;\n }", "public void reset () {\n lastSave = count;\n count = 0;\n }", "public void updateIndex() {\n int i = this.index;\n if (i == -1 || i > HashBiMap.this.size || !Objects.equal(HashBiMap.this.keys[this.index], this.key)) {\n this.index = HashBiMap.this.findEntryByKey(this.key);\n }\n }", "public void resetCount() {\n count = 0;\n }", "private void reIndex()\n {\n for(int i = 0; i < NodeList.size(); i++)\n NodeList.get(i).setID(i);\n ID = NodeList.size();\n }", "void reset() ;", "void reset();", "void reset();" ]
[ "0.85701454", "0.8460138", "0.82906514", "0.7917246", "0.77893955", "0.76990086", "0.74210775", "0.7419228", "0.74160707", "0.73102975", "0.72740144", "0.71056384", "0.6997131", "0.6976954", "0.69697607", "0.6968553", "0.6903902", "0.68933254", "0.68629223", "0.6862043", "0.6856091", "0.6856091", "0.6856091", "0.6856091", "0.6835407", "0.68191373", "0.68164617", "0.6811097", "0.67939353", "0.67939353", "0.67939353", "0.67939353", "0.6786906", "0.6786906", "0.6773907", "0.67424566", "0.67424566", "0.67424566", "0.67424566", "0.6740502", "0.6731427", "0.6731208", "0.6720675", "0.6713718", "0.6707348", "0.67002434", "0.66770345", "0.665655", "0.665655", "0.665655", "0.66556066", "0.66498566", "0.6627713", "0.6620111", "0.6620111", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.66184396", "0.6606572", "0.65969366", "0.6588798", "0.6587369", "0.6587369", "0.658592", "0.65769583", "0.65744865", "0.65718746", "0.6570616", "0.6568282", "0.6568282", "0.6550334", "0.6534639", "0.65331423", "0.65290254", "0.65241826", "0.65231395", "0.6510242", "0.6508082", "0.65020764", "0.6498991", "0.6492506", "0.64919186", "0.648888", "0.6483933", "0.6469378", "0.64542896", "0.6452464", "0.6452464" ]
0.8707425
0
Item has been added to the index.
void itemAddedToIndex(Object key, Object o);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}", "public boolean add(final OrderedItem item) {\n\t\t\tfinal int i = item.getIndex();\n\t\t\tif (table[index].get(i)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttable[index].set(i);\n\t\t\treturn true;\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void addItemEventOccurred(AddItemEvent event) {\n\r\n\t\t\t\t\t}", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "public void onAddAgendaItem() {\n AgendaItemDialog agendaItemDialog = AgendaItemDialog.getNewInstance();\n Optional<AgendaItem> result = agendaItemDialog.showAndWait();\n if (!result.isPresent()) {\n return;\n }\n\n if (controller.addAgendaItem(result.get())) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_AGENDAITEM_ADD, null);\n }", "public void addItem(LineItem item)\r\n {\r\n\t ChangeEvent event = new ChangeEvent(this);\r\n\t if(items.contains(item))\r\n\t {\r\n\t\t \r\n\t\t counter = 0;\r\n\t\t items.add(item);\r\n\t\t //tem.addQuantity();\r\n\t\t //tem.getQuantity();\r\n\t\t for(int i = 0; i < items.size(); i++)\r\n\t\t {\r\n\t\t\t if(items.get(i).equals(item))\r\n\t\t\t {\r\n\t\t\t counter++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t\t System.out.print(\"\\r Quantity of \" + item.toString() + \": \"+ counter);\r\n\t\t \r\n\t }\r\n\t else\r\n\t {\r\n\t\t counter = 1;\r\n\t// item.addQuantity();\r\n\t// item.getQuantity();\r\n\t\t items.add(item);\r\n\t// System.out.println(item.getQuantity());\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t \t\r\n\t \tSystem.out.print(\"\\n Quantity of \" + item.toString() + \": \"+ counter);\r\n\t \r\n\t\t \r\n\t }\r\n\t\t\r\n \r\n }", "public boolean addItem(StudentClass newItem)\n {\n int hash = generateHash(newItem) % tableSize;\n int workingIndex = hash; \n int probe = 0;\n int QUAD_VAL = 2;\n \n StudentClass itemAccessed;\n\n System.out.print(newItem.toString() + generateHash(newItem));\n\n while(workingIndex < tableSize)\n {\n \titemAccessed = tableArray[workingIndex];\n \t\n if(itemAccessed == null)\n {\n tableArray[workingIndex] = newItem;\n System.out.print(\"\\n\" + \"indices probed: \" + workingIndex +\n \"\\n\");\n return true;\n }\n else if(itemAccessed.compareTo(newItem) == 0)\n {\n tableArray[workingIndex] = newItem;\n return true;\n }\n probe++;\n\n if(probeFlag == QUADRATIC_PROBING)\n {\n workingIndex = generateHash(newItem) %\n \t\ttableSize + toPower(probe, QUAD_VAL);\n }\n else\n {\n workingIndex += 1;\n }\n workingIndex %= tableSize;\n }\n return false;\n }", "public boolean addNewItem(VendItem item) {\n if (itemCount < maxItems) {\n stock[itemCount] = item;\n itemCount++;\n return true;\n } else {\n return false;\n }\n }", "public Boolean add(Item item) {\n \tif (itemCollection.containsKey(item.getItemName())) {\r\n \tif (checkAvailability(item, 1)) {\r\n \t\titem.setQuatity(item.getQuatity() + 1);\r\n \t\titemCollection.put(item.getItemName(), item);\r\n \t\treturn true;\r\n \t} else return false;\r\n } else {\r\n \titemCollection.put(item.getItemName(), item);\r\n \treturn true;\r\n }\r\n \t\r\n }", "@Override\r\n\tpublic void AddItem(int n) {\n\t\tSystem.out.println(\"ADDED:\" + n);\r\n\r\n\t}", "public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }", "public void addReceived() {\n this.indexExpected++;\n }", "void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item again if missing\n mItems.add(ADD_NEW_ENTRY);\n // need to manually call, since this item is not in Db and hence ignored by DiffUtil\n notifyItemInserted(mItems.size() - 1);\n }\n }", "@Override\n protected void dataItemAdded(Series<Number, Number> series, int itemIndex, Data<Number, Number> item) {\n }", "@Override\n protected void dataItemAdded(Series<Number, Number> series, int itemIndex, Data<Number, Number> item) {\n }", "@Override\n\tpublic boolean add(T insertItem) {\n\t\t// TODO Just add the item to the array\n\t\tif (isFull()) {\n\t\t\treturn false;\n\t\t}\n\t\tdata[size++] = insertItem;\n\t\treturn true;\n\t}", "public boolean add(T item) {\n boolean addSuccessful = items.add(item);\n if (addSuccessful) {\n currentSize = -1.0;\n inCapacitySize = -1.0;\n }\n return addSuccessful;\n }", "public static boolean isAdded() {\n return true;\n }", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "void addVersionedItemWritten( AbstractVersionedItem versionedItem ) {\n\n // Sanity check the input.\n Objects.requireNonNull( versionedItem );\n\n // Track all versioned items written by this transaction.\n this.versionedItemsWritten.add( versionedItem );\n\n // If we have already seen a write conflict, fail early.\n if ( this.newerRevisionSeen ) {\n throw new WriteConflictException();\n }\n\n }", "public boolean addItem(FoodItem newItem) {\n // find index of same item if exists\n int index = findIndexInStock(newItem);\n // if doesn't exist, add in the last clear space, which is the\n if (index < 0) {\n // if there's no space in the array, stop and return false.\n if (this._noOfItems == MAX_STOCK_SIZE)\n return false;\n\n addAtIndex(findIndexToAddNew(newItem.getCatalogueNumber()), newItem);\n }\n else {\n // if exists, increase quantity\n FoodItem existItem = this._stock[index];\n int oldQuantity = existItem.getQuantity();\n // add to old item the quantity\n existItem.setQuantity(oldQuantity+newItem.getQuantity());\n }\n // and return true\n return true;\n }", "public boolean add (E item)\n {\n add(size, item); // calling public method add\n return true;\n }", "public boolean insertItem(MoviePanelBasicView item) {\r\n if (!this.contains(item)) {\r\n this.list.add(item);\r\n return true;\r\n } else {\r\n logger.debug(\"File \" + item.getFile() + \" is already in list!\");\r\n return false;\r\n }\r\n \r\n }", "@Override\r\n\t\t protected void dataItemAdded(Series<Number, Number> series, int itemIndex, Data<Number, Number> item) {\r\n\r\n\t\t }", "@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}", "public void onSetNewCurrentItem() {\n }", "@Override\n public void onItemAdded(Object toAdd) {\n if(toAdd instanceof SpotifyItem)\n return;\n\n //Reflect changes in the drink list\n DrinkInfo item = (DrinkInfo)toAdd;\n Log.d(TAG, \"Array size = \" + mDrinkInfos.size());\n mDrinkInfos.add(mDrinkInfos.size(), item);\n mDrinkQueueAdapter.notifyDataSetChanged();\n Log.d(TAG, \"Added song: \" + item.getDrinkName());\n }", "@Override\n public boolean add(E item) {\n if (item == null)\n throw new IllegalArgumentException(\"null invalid value for bag\");\n Counter count = map.get(item);\n if (count == null)\n map.put(item, new Counter(1));\n else\n count.increment();\n return true;\n }", "public int addItem(Item i);", "void add(Item item);", "public void addItem(final Item item) {\n\t\tnumberOfItems++;\n\t}", "public String addItem(Item item){\n EntityManager em = emf.createEntityManager();\n try{\n utx.begin();\n em.joinTransaction();\n for(Tag tag : item.getTags()) {\n tag.incrementRefCount();\n tag.getItems().add(item);\n em.merge(tag);\n }\n em.persist(item);\n utx.commit();\n // index item\n if(bDebug) System.out.println(\"\\n***Item id of new item is : \" + item.getItemID());\n indexItem(new IndexDocument(item));\n \n } catch(Exception exe){\n try {\n utx.rollback();\n } catch (Exception e) {}\n throw new RuntimeException(\"Error persisting item\", exe);\n } finally {\n em.close();\n }\n return item.getItemID();\n }", "@Override\n\tpublic Boolean insert(Intervention item) {\n\t\treturn true;\n\t}", "boolean hasItemIndex();", "boolean hasItemIndex();", "boolean hasItemIndex();", "public boolean add (T item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\t// find the item and return false if item is in the AVLTree\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\tif (!table[index].add(item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\t// we will add item, so increment modCount\n\t\t\t\tmodCount++;\n\n\t\t\t\thashTableSize++;\n\n\t\t\t\tif (hashTableSize >= tableThreshold)\n\t\t\t\t\trehash(2 * table.length + 1);\n\n\t\t\t\treturn true;\n\t}", "public void addItem(Item itemToAdd){\n\t\tif(!isFull()){\n\t\t\tint index = findFreeSlot();\n\t\t\tinventoryItems[index] = itemToAdd;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Inventory full.\");\n\t\t}\n\t\t\n\t}", "public boolean getAdded() {\r\n return this.added;\r\n }", "public boolean addItemToInventory(InventoryItem itemToAdd) {\n if (inventory.size() >= MAX_ITEMS) {\n // Inventory full, could not add the item\n return false;\n }\n\n // Let the strategy know this player received an item\n strategy.onReceiveItem(itemToAdd);\n inventory.add(itemToAdd);\n return true;\n }", "public void addItem(int indexItemset, Item item) {\n itemsets.get(indexItemset).addItem(item);\n numberOfItems++;\n }", "private void addAtIndex(int index, FoodItem item) {\n // store the \"pushed\" forward item\n FoodItem toMoveNext = this._stock[index];\n // and set the new item in index\n this._stock[index] = new FoodItem(item);\n\n // \"push\" forward in the array each item, until no more items to push.\n for (int i = index+1; i < _noOfItems+1; i++) {\n FoodItem tempToMoveNext = _stock[i];\n _stock[i] = toMoveNext;\n toMoveNext = tempToMoveNext;\n }\n\n // we added a new item for _stock, so now increase the noOfItem:\n this._noOfItems++;\n }", "public void addItem( Item anItem) {\n currentItems.add(anItem);\n }", "public boolean putItem(@NonNull Item item) {\n return items.add(item);\n }", "@Override\n\tpublic void onHit(WorldObj obj, Items item) {\n\t\t\n\t\tcounter++;\n\t}", "private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }", "public void add(int Item) {\n\t\t\tif (nowLength < MAXSIZE) {\n\t\t\t\tray[nowLength] = Item;\n\t\t\t\tnowLength++;\n\t\t\t}\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "void addItem(DataRecord record);", "public void add(int item) {\r\n if (!contains(item)) {\r\n items[NumItems++] = item;\r\n } else if (NumItems == MAX_LIST) {\r\n throw new ListFullException(\"List is full\");\r\n }\r\n }", "public boolean hasItem() {\n return (this.curItem != null);\n }", "void notifyListItemInserted(int position);", "@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}", "@Override\n public void onAdded() {\n }", "public boolean add(T item) {\n\t\treturn list.add(item);\n\t}", "public void store(Item item) {\n this.items.add(item);\n }", "public boolean add(@NonNull T object) {\n final boolean added = data.add(object);\n notifyItemInserted(data.size() + 1);\n return added;\n }", "public void addItem(SalesItem salesItem)\n {\n this.salesItem[numItemsAdded] = salesItem;\n numItemsAdded = numItemsAdded + 1;\n }", "public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }", "public int addItem(SingleQuery singleQuery)\n {\n int queryIndex;\n queries.put(itemsCount, singleQuery);\n queryIndex = itemsCount;\n itemsCount++;\n return queryIndex;\n }", "public void add(T item) {\n\t\tcounts.put(item, counts.getOrDefault(item, 0) + 1);\n\t}", "@Override\n\t\t\t\tpublic void onAddSuccess() {\n\t\t\t\t\tif (addListener != null) {\n\t\t\t\t\t\taddListener.onAddSuccess();\n\t\t\t\t\t}\n\t\t\t\t}", "public void addItem(Item item) {\r\n\t\tif (items.containsKey(item)) {\r\n\t\t\titem.increaseCount();\r\n\t\t\titems.put(item, item.getCount());\r\n\t\t} else {\r\n\t\t\titems.put(item, item.getCount());\r\n\t\t}\r\n\t}", "public void add(@NonNull final E e) {\n if (mItems.add(e)) {\n final int position = mItems.size() - 1;\n mDatasourceObservable.notifyItemRangeInserted(position, 1);\n }\n }", "@Override\n public void updateItemSearchIndex() {\n try {\n // all item IDs that don't have a search index yet\n int[] allMissingIds = mDatabaseAccess.itemsDAO().selectMissingSearchIndexIds();\n // Selects the item to the id, extract all parts of the item name to create the\n // search index (all ItemSearchEntity's) and insert them into the database\n for (int missingId : allMissingIds) {\n try {\n ItemEntity item = mDatabaseAccess.itemsDAO().selectItem(missingId);\n List<ItemSearchEntity> searchEntities = createItemSearchIndex(item);\n mDatabaseAccess.itemsDAO().insertItemSearchParts(searchEntities);\n } catch (Exception ex) {\n Log.e(TAG, \"An error occurred trying to create the search index to the id\" +\n missingId, ex);\n }\n }\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load and process all \" +\n \"item IDs to generate a search index\", ex);\n }\n }", "public abstract void add(int index, E e);", "public boolean add(E item) {\n if (item == null) { //Checks if the item is null if it is throws a new exception\n throw new IllegalArgumentException(\"Yeah Nah, No thanks null.\");\n }\n\n int index = findIndexOf(item); //For simplification\n\n if (data[index] != null) { //if the item at the index is not null\n if (data[index].equals(item))\n return false;\n }\n for (int i = count; i >= index; i--) { //iterates backward through the collection.\n\n if (i == index || i == 0) { //while iterating it checks if the value i is the same as index or 0, increments count and swaps the item.\n count++;\n ensureCapacity(); //checks capacity works, and if so adds item to and returns true.\n data[i] = item;\n return true;\n }\n data[i] = data[i - 1];\n }\n return false;\n }", "public abstract void addItem(AbstractItemAPI item);", "@SuppressWarnings(\"unchecked\")\n\tpublic void add(T item){\n\t\t\n\n\t\tif(currentsize == data.length-1){\n\t\t\tgrow();\n\t\t}\n\n\t\t\n\t\tdata[currentsize] = item;\n\t\tcurrentsize++;\n\n\n\t}", "public void addItem(Item item){\r\n items.add(item);\r\n total = items.getTotal();\r\n }", "@Override\r\n\tpublic void insertEncoreItem(Item item) {\n\t\tint i = sqlSession.insert(ns+\".insertEncoreItem\", item);\r\n\t\tif(i>0) System.out.println(\"insert Encore item1\");\r\n\t}", "@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}", "public boolean offer(Object item) {\r\n\r\n\t\tdata.add(item);\r\n\t\t// no size restriction so it should always be true\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void add() {\n\t\tHashMap<String, String> data = new HashMap<>();\n\t\tdata.put(\"title\", title);\n\t\tdata.put(\"author\", author);\n\t\tdata.put(\"publisher\", publisher);\n\t\tdata.put(\"isbn\", isbn);\n\t\tdata.put(\"bookID\", bookID);\n\t\tHashMap<String, Object> result = null;\n\t\tString endpoint = \"bookinfo/post.php\";\n\t\ttry {\n\t\t\tresult = APIClient.post(BookInfo.host + endpoint, data);\n\t\t\tvalid = result.get(\"status_code\").equals(\"Success\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void insertOrUpdateItem(){\n Toaster toaster = new Toaster(getContext());\n DBManager dbManager = new DBManager(getContext());\n if((Afegir.getText() == getText(R.string.actualitza) && updateItem(dbManager)) ||\n (Afegir.getText() == getText(R.string.afegir) && insertItem(dbManager))){\n\n ((MainActivity) getActivity()).swapFrameLayoutVisibility(true);\n ((MainActivity) getActivity()).refreshListView();\n toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.commit_insert).toString(), null);\n reset(true);\n }\n\n else toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.reboke_action).toString(), getContext().getDrawable(R.drawable.ic_error_vector));\n }", "public void add(Item nextItemToAdd) {\n items.add(nextItemToAdd);\n Collections.sort(items);\n fireIntervalAdded(nextItemToAdd, indexOf(nextItemToAdd), indexOf(nextItemToAdd));\n }", "public void add(final int item) {\n if (!contains(item)) {\n set[size] = item;\n size += 1;\n }\n }", "public void addItem(final StockItem stockItem) {\n\t\ttry {\n\t\t\tStockItem item = getItemByName(stockItem.getName());\n\t\t\titem.setQuantity(item.getQuantity() + stockItem.getQuantity());\n\t\t\tdomainController.modifyStockItem(item);\n\t\t\tlog.debug(\"Found existing item \" + stockItem.getName()\n\t\t\t\t\t+ \" increased quantity by \" + stockItem.getQuantity());\n\t\t}\n\t\tcatch (NoSuchElementException e) {\n\t\t\ttry {\n\t\t\trows.add(stockItem);\n\t\t\tlog.debug(\"Added \" + stockItem.getName()\n\t\t\t\t\t+ \" quantity of \" + stockItem.getQuantity());\n\t\t\t\n\t\t\t\tdomainController.addNewStockItem(stockItem);\n\t\t\t} catch (VerificationFailedException e1) {\n\t\t\t\tlog.debug(\"Error adding to database\");\n\t\t\t}\n\t\t}\n\t\tcatch (VerificationFailedException ve) {\n\t\t\tlog.debug(\"Error adding to database\");\n\t\t}\n\t\tfireTableDataChanged();\n\t}", "public void addItemTrackBagging(Item item, boolean bool) {\n\t\tthis.purchaseList.setItemTrackBagging(item, bool);\n\t}", "@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }", "public final void insert(Envelope envelope, final int item) {\n visit(envelope, true, (bin, mapKey) -> {\n /*\n * Note: here we can end-up having several time the same object in the same bin, if\n * the client insert multiple times the same object with different envelopes.\n * However we do filter duplicated when querying, so apart for memory/performance\n * reasons it should work. If this becomes a problem, we can use a set instead of a\n * list.\n */\n bin.add(item);\n nEntries++;\n return false;\n });\n nObjects++;\n }", "public boolean add(Type item);", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public void onIndexUpdate();", "@Override\n public void onNewItem(int faceId, Face item)\n {\n Log.d(APP_LOG_TAG, \"face detected\");\n }", "public int add(E value) {\r\n int index = items.size();\r\n items.add(value);\r\n return index;\r\n }", "public void addItem(Item item){\n if(ChronoUnit.DAYS.between(LocalDate.now(), item.getBestBefore()) <= 2){\n //testInfoMessage = true; //ONLY FOR TESTING\n infoMessage(item.getName(), item.getBestBefore()); // DISABLE FOR TESTING\n }\n itemList.add(item);\n totalCost += item.getPrice();\n }", "public void insert(int newItem){\n itemArray[count] = newItem;\n count++;\n }", "public static void itemAddedMessage(String addedItemName, int addedItemQuantity) {\n System.out.println(addedItemQuantity + \" \" + addedItemName + \" is added into Inventory!\");\n }", "public boolean addVenue(Venue newVenue) // --> Legger til et nytt lokale i listen.\n\t{\n\t\treturn list.add(newVenue);\n\t}", "public void insert(KeyedItem newItem);", "@Override\n public void DataIsInserted() {\n }", "public void add(ItemInfo item) {\n\t\tsynchronized (mContents) {\n\t\t\titem.registerObserver(this);\n\t\t\tmContents.add(item);\n\t\t\tif (item instanceof ShortCutInfo) {\n\t\t\t\tif (((ShortCutInfo) item).getRelativeItemInfo() == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tmTotleUnreadCount += ((ShortCutInfo) item).getRelativeItemInfo().getUnreadCount();\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testAddItem() throws IOException{\n\t\tModel.addItem(item, amount + \"\");\n\t\tassertEquals(amount + \"\", Model.hash.get(item));\n\t\t\n\t}", "public boolean hasItem() {\n return this.item != null;\n }", "public void dvAdded()\r\n/* 76: */ {\r\n/* 77:160 */ this.numDVRecords += 1;\r\n/* 78: */ }", "public void addItemAt(MySmsMessage itemTemp,int positionTemp){\n dataset.add(positionTemp,itemTemp);\n notifyItemInserted(positionTemp);\n }", "public boolean addItem(int itemId) {\n\t\tint nextFreeSlot = getSlotForId(1);\n\t\tif (itemId <= 0)\n\t\t\treturn false;\n\t\tif (nextFreeSlot != -1 && burdenedItems[nextFreeSlot] == 0) {\n\t\t\tburdenedItems[nextFreeSlot] = itemId;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void add( int index, Comparable newVal ) { \n \t//checks if there is a meaningful value at index\n \tif (index> _lastPos){\n\t System.out.println(\"No meaningful int at index\");\n \t} else {\n\t //If _data is full, increase length of _data\n\t if (_size == _data.length) {\n\t\texpand();\n\t }\t\t\n\t //copies everything before index from _data to temp \n\t for (int i = _lastPos; i >= index; i--) {\n\t\t_data[i+1]= _data[i];\n\t }\n\t _data[index]= newVal;\n\t _size++;\n\t _lastPos++;\n\t}//end else\n\t \n }" ]
[ "0.6571317", "0.6524996", "0.6426772", "0.63110304", "0.6219912", "0.6187454", "0.6169723", "0.6164771", "0.6136211", "0.611956", "0.6117015", "0.61030734", "0.60847425", "0.6079714", "0.60788995", "0.6051494", "0.6037737", "0.6004899", "0.60005105", "0.5987087", "0.59773135", "0.5971746", "0.59491575", "0.5948785", "0.591221", "0.5907384", "0.5888768", "0.5874779", "0.5864471", "0.5845507", "0.58338434", "0.58333904", "0.5832142", "0.5826067", "0.5826067", "0.5826067", "0.5824492", "0.5811215", "0.58099", "0.58071333", "0.5796246", "0.5778737", "0.57632744", "0.57610965", "0.5757246", "0.57444996", "0.57369095", "0.5728532", "0.5727176", "0.5721268", "0.57206947", "0.5708911", "0.57075864", "0.57075065", "0.56957823", "0.56849474", "0.56516814", "0.5648473", "0.56465554", "0.5645492", "0.5645431", "0.56240296", "0.5621977", "0.56141335", "0.56113815", "0.55908644", "0.5577867", "0.5570584", "0.5565438", "0.5563061", "0.55497354", "0.5549411", "0.5537827", "0.5535137", "0.55331033", "0.55320626", "0.55271137", "0.5524722", "0.5523947", "0.5518293", "0.5515726", "0.5505144", "0.5498178", "0.5493019", "0.5490378", "0.54863036", "0.54808086", "0.54769814", "0.54757607", "0.54740447", "0.5473676", "0.5470484", "0.54703337", "0.54628164", "0.5459572", "0.5455281", "0.545265", "0.54525983", "0.5452113", "0.5439536" ]
0.6225533
4
Created by zhanghong on 16/1/4.
public interface FileUploadService { /** * * @param form * @param path * @param fileName * @throws Exception */ void uploadBase64Image(Base64ImageForm form, String path, String fileName) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "public void mo4359a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "private void init() {\n\n\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void init() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void m50366E() {\n }", "@Override\n void init() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo6081a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "public void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {}", "public void skystonePos4() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo12628c() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "static void feladat9() {\n\t}", "public abstract void mo70713b();", "public void mo21877s() {\n }" ]
[ "0.6060951", "0.60346925", "0.59818333", "0.59739214", "0.5942642", "0.5886231", "0.5886231", "0.5884409", "0.5861216", "0.5837405", "0.5795568", "0.5787394", "0.57830054", "0.57798976", "0.5758251", "0.5734579", "0.5734236", "0.57233787", "0.57232594", "0.57180345", "0.5707147", "0.570273", "0.5699956", "0.5697885", "0.5696847", "0.5695928", "0.56887674", "0.56887674", "0.56887674", "0.56887674", "0.56887674", "0.56771827", "0.56521136", "0.56356645", "0.5598402", "0.5596137", "0.55959946", "0.55873334", "0.5586434", "0.55818665", "0.55818665", "0.55818665", "0.5569062", "0.5569062", "0.5552845", "0.5552845", "0.5552637", "0.5546718", "0.5544364", "0.5538682", "0.5537415", "0.5537415", "0.5537415", "0.5536478", "0.5534579", "0.55340856", "0.55286175", "0.55286175", "0.55286175", "0.55149287", "0.55139345", "0.55139345", "0.55139345", "0.55139345", "0.55139345", "0.55139345", "0.55139345", "0.5507309", "0.55055785", "0.54973465", "0.549189", "0.54720956", "0.54719436", "0.54596496", "0.54550874", "0.54457563", "0.54457563", "0.5444442", "0.544351", "0.54432833", "0.54327625", "0.5430624", "0.5430188", "0.54262793", "0.54221267", "0.5421006", "0.54204416", "0.5420129", "0.5411528", "0.54054016", "0.54006904", "0.53908515", "0.5389374", "0.53829175", "0.5379408", "0.53742623", "0.53698915", "0.53659993", "0.53653014", "0.53633", "0.5359224" ]
0.0
-1
some fields are mandatory to build a valid RSS feed, that's why some are hardcoded there
@Asynchronous public Future<?> doGenerate() { final AtomLink atomLink = newChannelAtomLink(); final Channel channel = newChannel(atomLink); visitor.visit(p -> { final String url = visitor.buildLink(p); final Guid guid = new Guid(); guid.setValue(url + "?rssGuid=" + Long.toString(p.getId())); final AtomLink link = new AtomLink(); link.setRel("self"); link.setType(atomLink.getType()); link.setHref(atomLink.getHref() + "?post=" + p.getId()); final Item item = new Item(); item.setTitle(p.getTitle()); item.setLink(url); item.setDescription(p.getSummary()); item.setPubDate(RFC_1123_DATE_TIME.format(ZonedDateTime.ofInstant(p.getUpdated().toInstant(), ZoneId.systemDefault()))); item.setGuid(guid); item.setAtomLink(link); channel.getItem().add(item); }); final Rss rss = new Rss(); rss.setChannel(channel); this.rss = rss; return new AsyncResult<>(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillMandatoryFields() {\n\n }", "public void PopulateRSSData()\n {\n try\n {\n URL Feed = ParseRSSFromFeed();\n ParseRSS(Feed);\n }\n catch(java.net.MalformedURLException exp)\n {\n String message = exp.getMessage();\n System.out.println(message);\n }\n catch(com.rometools.rome.io.FeedException fexp)\n {\n String message = fexp.getMessage();\n System.out.println(message);\n }\n catch(java.io.IOException ioexp)\n {\n String message = ioexp.getMessage();\n System.out.println(message);\n }\n }", "private RSS(Properties props) throws ParameterError {\n super(new String[0], null);\n Logger static_logger = Logging.getLogger(RSS.class);\n if (static_logger.isDebugEnabled()) {\n static_logger.debug(\"QRS Property=\" + props);\n }\n this.props = props;\n instance = this;\n this.sitesurl_string = props.getProperty(\"qrs.SitesURL\");\n data_feeds = new Hashtable<String, DataFeed>();\n\n String raw_feed_data = props.getProperty(\"qrs.DataFeeds\");\n if (raw_feed_data != null) {\n StringTokenizer tokenizer = new StringTokenizer(raw_feed_data, \" \");\n while (tokenizer.hasMoreTokens()) {\n String feed_name = tokenizer.nextToken().trim();\n makeFeed(feed_name, props);\n }\n }\n\n String sysstat_interval_str = props.getProperty(\"qrs.sysstat\");\n if (sysstat_interval_str != null) {\n int sysstat_interval = Integer.parseInt(sysstat_interval_str);\n TimerQueueingDataFeed feed = new TimerQueueingDataFeed();\n registerFeed(feed, \"DirectEntry\");\n DirectSysStatSupplier supplier = new DirectSysStatSupplier(null, feed);\n supplier.schedule(sysstat_interval);\n }\n\n String gui_id = props.getProperty(GUI_PROPERTY);\n if (gui_id != null) {\n new org.cougaar.qos.qrs.gui.MainWindow(gui_id);\n }\n\n }", "private boolean isNotValidRss(final String url) throws FeedException, IOException {\n final SyndFeed feed = FeedHandler.getFeed(url);\n final List<SyndEntry> items = feed.getEntries();\n if (items.isEmpty()) {\n return true;\n }\n for (SyndEntry item : items) {\n if (item.getPublishedDate() == null) {\n return true;\n }\n }\n return false;\n }", "private void fillMandatoryFields_custom() {\n\n }", "public static void validate(FeedProvider _feedProvider) throws FeedInvalidException {\n\t\tif(_feedProvider.getnNumber() == null || _feedProvider.getnNumber().equals(\"\") \r\n\t\t\t\t|| _feedProvider.getNickName() == null || _feedProvider.getNickName().equals(\"\")\r\n\t\t\t\t|| _feedProvider.getUrl() == null || _feedProvider.getUrl().equals(\"\") )\r\n\t\t\tthrow new FeedInvalidException(message_02);\r\n\t\t\r\n\t\tUrlValidator urlValidator = new UrlValidator();\t\t \r\n\t //validation URL\r\n\t if (!urlValidator.isValid(_feedProvider.getUrl())) \r\n\t \tthrow new FeedInvalidException(message);\r\n\t \r\n\t // verify if URL is a valid RSS\r\n\t try {\r\n\t\t \r\n\t \tDocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n\t\t org.w3c.dom.Document doc = builder.parse(_feedProvider.getUrl()); \r\n\t\t boolean validRss = doc.getDocumentElement().getNodeName().equalsIgnoreCase(\"rss\");\r\n\t\t if(!validRss)\r\n\t\t \tthrow new FeedInvalidException(message);\r\n\t\t \r\n\t } catch (FeedInvalidException fe) {\r\n\t \t\r\n\t\t throw fe;\r\n\t\t \r\n\t } catch (Exception e) {\r\n\t \t//for unknown case\r\n\t \tthrow new FeedInvalidException( message +\"\\n\"+ e.getMessage() );\r\n\t\t}\r\n\t \r\n\t}", "public void ParseRSS(URL feedUrl) throws com.rometools.rome.io.FeedException, java.io.IOException {\n //TODO: EVERY THING HERE SHOULD BE IN A TRANSACTION\n List<String> HashFields = new ArrayList<>();\n SyndFeedInput input = new SyndFeedInput();\n SyndFeed feed = input.build(new XmlReader(feedUrl));\n RSSChannelElements ChannelElements = new RSSChannelElements();\n Date CurrentDate = new Date();\n SimpleDateFormat SDF = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n //GET ADDITIONAL PROPERTIES OF THE CHANNEL\n //GET CHANNEL AUTHOR\n String ch_author = feed.getAuthor();\n ChannelElements.Author = ch_author;\n //GET PUBLISHED DATE\n Date ch_PubDate = feed.getPublishedDate();\n ChannelElements.PublishedDate = ch_PubDate;\n //GET LANGUAGE\n String ch_Language = feed.getLanguage();\n ChannelElements.Language = ch_Language;\n //GET WEBMASTER\n String ch_WebMaster = feed.getWebMaster();\n ChannelElements.webMaster = ch_WebMaster;\n //GET MANAGING EDITOR\n String ch_ME = feed.getManagingEditor();\n ChannelElements.managingEditor = ch_ME;\n //GET GENERATOR\n String ch_generator = feed.getGenerator();\n ChannelElements.Generator = ch_generator;\n //GET DESCRIPTION\n String ch_description = feed.getDescription();\n ChannelElements.Description = ch_description;\n int CurrentChannelID = 0;\n //TODO: DO THIS IN A STORED PROCEDURE\n try\n {\n TimeValidations ValidateTime = new TimeValidations();\n if (ValidateTime.IsWithinValidWindow(CurrentDate, ch_PubDate, ReadInterval))\n {\n //INSERT TO DB THE CHANNEL DETAILS\n CurrentChannelID = InsertChannelDetails(ChannelElements);\n }\n }\n catch(java.sql.SQLException exp)\n {\n String message = exp.getMessage();\n System.out.println(message);\n }\n\n\n //GET ELEMENTS FROM THE \"ITEMS\"\n List entries = feed.getEntries();\n Iterator it = entries.iterator();\n while (it.hasNext()) {\n RSSFields RssFieldValues = new RSSFields();\n SyndEntry entry = (SyndEntry) it.next();\n //GET TITLE\n System.out.println(entry.getTitle());\n String Title = entry.getTitle();\n RssFieldValues.Title = Title;\n //HashFields.add(Title);\n //GET LINK\n System.out.println(entry.getLink());\n RssFieldValues.Link = entry.getLink();\n HashFields.add(RssFieldValues.Link);\n //GET DESCRIPTION\n SyndContent description = entry.getDescription();\n System.out.println(description.getValue());\n RssFieldValues.Description = description.getValue();\n //HashFields.add(description.getValue());\n //GET PUBLISHED DATE\n Date Pub_Date = entry.getPublishedDate();\n System.out.println(SDF.format(Pub_Date));\n RssFieldValues.PublishedDate = entry.getPublishedDate();\n //GET UPDATED DATE\n Date U_date = entry.getUpdatedDate();\n System.out.println(U_date);\n RssFieldValues.UpdatedDate = entry.getPublishedDate();\n //GET AUTHOR\n String Author = entry.getAuthor();\n RssFieldValues.Author = Author;\n System.out.println(Author);\n //GET COMMENTS;\n String Comments = entry.getComments();\n RssFieldValues.Comments = Comments;\n System.out.println();\n try {\n //org.joda.time.Period P = new org.joda.time.Period(Pub_Date, CurrentDate);\n //if(SDF.parse(Pub_Date.toString()) == SDF.parse(CurrentDate.toString()))\n //org.joda.time.Period p = new org.joda.time.Period(CurrentDate, Pub_Date);\n //ONLY INSERT IF THE FEED IS WITHIN THE SPECIFIED PERIOD\n TimeValidations ValidateTime = new TimeValidations();\n if (ValidateTime.IsWithinValidWindow(CurrentDate, U_date, ReadInterval))\n {\n //INSERT NEWS SPECIFIC VALUES TO DB\n HashGenerator Gen = new HashGenerator();\n RssFieldValues.ComputedHash = Gen.HashCalculator(HashFields);\n InsertToDB(RssFieldValues, CurrentChannelID);\n }\n } catch (java.sql.SQLException ex) {\n String message = ex.getMessage();\n System.out.println(message);\n }\n }\n // System.out.println(feed);\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }", "public boolean isRSS() { return _rss!=null; }", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "private void validateInputAttributes() throws JspTagException {\n if (query == null) {\n if (var == null) {\n throw new JspTagException(\"<tolog:set> : requires a 'var'- or a\"\n + \" 'query'-attribute (or both), but got neither.\");\n }\n\n if (!(reqparam == null || value == null)) {\n throw new JspTagException(\"<tolog:set> : requires either a\"\n + \" 'query'-, a 'reqparam'- or a 'value'-attribute,\"\n + \" but got both.\");\n }\n\n } else {\n if (reqparam != null || value != null) {\n throw new JspTagException(\"<tolog:set> : requires either a\"\n + \" 'query'-, a 'reqparam'- or a 'value'-attribute,\"\n + \" but got more than one of them.\");\n }\n }\n }", "protected Feed(String url, List<String> userTitle, Settings settings) {\n\t\tthis.url = url;\n\t\tthis.items = Collections.synchronizedSet(new HashSet<FeedItem>());\n\t\tthis.userTitle = new ArrayList<>(userTitle);\n\t\tthis.settings = settings;\n\t}", "private void validationEmptyFieldsInWeatherCalender(WeatherCalender weatherCalender) {\n\t\tLocalDate dt = weatherCalender.getCalenderdate();\n\t\tString typCd = weatherCalender.getWeather().getWeatherTypeCd();\n\t\t\n\t\tif(dt == null || typCd == null) {\n\t\t\tthrow new EmptyFieldWeatherCalenderException(dt, typCd);\n\t\t}\n\t}", "private boolean checkChannelEpisodeInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"channel\") != null && request.getParameter(\"channel\").length() > 0\n && request.getParameter(\"episode\") != null && request.getParameter(\"episode\").length() > 0\n && request.getParameter(\"date\") != null && request.getParameter(\"date\").length() > 0\n && request.getParameter(\"time\") != null && request.getParameter(\"time\").length() > 0;\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "private void validate() {\r\n if (cmtFileSetList.size() == 0) {\r\n throw new BuildException(\"Nested Element 'fileset' missing for task 'cmt'.\");\r\n }\r\n if (output == null) {\r\n throw new BuildException(\"Parameter 'output' missing for task 'cmt'.\");\r\n }\r\n }", "private Boolean checkFields(String title, String description) {\n if (title.trim().length() > 30) {\n Toast.makeText(getActivity(), R.string.too_long_title, Toast.LENGTH_SHORT).show();\n } else if (description.trim().length() > 150) {\n Toast.makeText(getActivity(), R.string.too_long_description, Toast.LENGTH_SHORT).show();\n } else if (title.trim().length() == 0 || title.isEmpty()) {\n Toast.makeText(getActivity(), R.string.title_field_empty, Toast.LENGTH_SHORT).show();\n } else if (description.trim().length() == 0 || description.isEmpty()) {\n Toast.makeText(getActivity(), R.string.description_field_empty, Toast.LENGTH_SHORT).show();\n } else if (!isValidDate()) {\n Toast.makeText(getActivity(), R.string.wrong_date, Toast.LENGTH_SHORT).show();\n } else {\n return false;\n }\n return true;\n }", "public interface Feed extends Element {\n\n /**\n * Returns the feed type.\n */\n public FeedType getType();\n \n /**\n * Convenience method to retrieve the feed title.\n */\n public String getTitle();\n \n /**\n * Convenience method to retrieve the feed link.\n */\n public String getLink();\n \n /**\n * Convenience method to retrieve the feed description.\n */\n public String getDescription();\n \n /**\n * Convenience method to retrieve the language.\n */\n public String getLanguage();\n \n /**\n * Convenience method to retrieve the copyright.\n */\n public String getCopyright();\n \n /**\n * Convenience method to retrieve the published date.\n */\n public Date getPubDate();\n \n /**\n * Convenience method to retrieve a list of categories.\n */\n public List<String> getCategories();\n \n /**\n * Returns a list of Items in the feed.\n */\n public List<Item> getItemList();\n}", "@Override\n\tpublic InputStream createForumRss(String objectId, String link)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "private static boolean arePostRequestParametersValid(String title, String description,\n String imageUrl, String releaseDate, String runtime, String genre, String directors,\n String writers, String actors, String omdbId) {\n return isParameterValid(title, MAX_TITLE_CHARS) && isParameterValid(description, MAX_CHARS)\n && isParameterValid(imageUrl, MAX_CHARS) && isParameterValid(releaseDate, MAX_CHARS)\n && isParameterValid(runtime, MAX_CHARS) && isParameterValid(genre, MAX_CHARS)\n && isParameterValid(directors, MAX_CHARS) && isParameterValid(writers, MAX_CHARS)\n && isParameterValid(actors, MAX_CHARS) && isParameterValid(omdbId, MAX_CHARS);\n }", "private void validateProperties() throws BuildException {\r\n if (this.port == null || this.port.length() == 0) {\r\n throw new BuildException(\"Attribute 'port' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.userName == null || this.userName.length() == 0) {\r\n throw new BuildException(\"Attribute 'userName' must be set.\");\r\n }\r\n if (this.password == null || this.password.length() == 0) {\r\n throw new BuildException(\"Attribute 'password' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.p4ExecutablePath == null || this.p4ExecutablePath.length() == 0) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' must be set.\");\r\n }\r\n File p4Executable = new File(this.p4ExecutablePath);\r\n if (!p4Executable.exists()) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' \" + this.p4ExecutablePath +\r\n \" does not appear to point to an actual file.\");\r\n }\r\n \r\n // If default* is specified, then all should be specified. \r\n if (((this.defaultHackystatAccount != null) || \r\n (this.defaultHackystatPassword != null) ||\r\n (this.defaultHackystatSensorbase != null)) &&\r\n ((this.defaultHackystatAccount == null) || \r\n (this.defaultHackystatPassword == null) ||\r\n (this.defaultHackystatSensorbase == null))) {\r\n throw new BuildException (\"If one of default Hackystat account, password, or sensorbase \" +\r\n \"is specified, then all must be specified.\");\r\n }\r\n \r\n // Check to make sure that defaultHackystatAccount looks like a real email address.\r\n if (!ValidateEmailSyntax.isValid(this.defaultHackystatAccount)) {\r\n throw new BuildException(\"Attribute 'defaultHackystatAccount' \" + this.defaultHackystatAccount\r\n + \" does not appear to be a valid email address.\");\r\n }\r\n \r\n // If fromDate and toDate not set, we extract commit information for the previous day.\r\n if (this.fromDateString == null && this.toDateString == null) {\r\n Day previousDay = Day.getInstance().inc(-1);\r\n this.fromDate = new Date(previousDay.getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(previousDay.getLastTickOfTheDay());\r\n }\r\n else {\r\n try {\r\n if (this.hasSetToAndFromDates()) {\r\n this.fromDate = new Date(Day.getInstance(this.dateFormat.parse(this.fromDateString))\r\n .getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(Day.getInstance(this.dateFormat.parse(this.toDateString))\r\n .getLastTickOfTheDay());\r\n }\r\n else {\r\n throw new BuildException(\r\n \"Attributes 'fromDate' and 'toDate' must either be both set or both not set.\");\r\n }\r\n }\r\n catch (ParseException ex) {\r\n throw new BuildException(\"Unable to parse 'fromDate' or 'toDate'.\", ex);\r\n }\r\n\r\n if (this.fromDate.compareTo(this.toDate) > 0) {\r\n throw new BuildException(\"Attribute 'fromDate' must be a date before 'toDate'.\");\r\n }\r\n }\r\n }", "private Feed(Entity entity, Settings settings) {\n\t\tthis.url = entity.getKey().getName();\n\t\tthis.items = Collections.synchronizedSet(new HashSet<FeedItem>());\n\t\tList<EmbeddedEntity> savedItems = (List<EmbeddedEntity>) entity.getProperty(\"items\"); //NOI18N\n\t\tif (savedItems != null)\n\t\t\tfor (EmbeddedEntity item : savedItems)\n\t\t\t\tthis.items.add(new FeedItem(this, item));\n\t\tthis.settings = settings;\n\t}", "protected GiphyModel getValidModelFromFields() {\n GiphyModel model = new GiphyModel();\n\n model.title = (mEtTitle.getText() != null) ? mEtTitle.getText().toString() : null;\n model.author = (mEtAuthor.getText() != null) ? mEtAuthor.getText().toString() : null;\n model.src = (mEtGiphySrc.getText() != null) ? mEtGiphySrc.getText().toString() : null;\n\n\n boolean isValid = true;\n\n if(model.title == null || model.title.isEmpty()) {\n mTlTitle.setError(\"Title cannot be blank\");\n isValid = false;\n }\n if(model.author == null || model.author.isEmpty()) {\n mTlAuthor.setError(\"Author cannot be blank\");\n isValid = false;\n }\n if(model.src == null || model.src.isEmpty()) {\n mTlGiphySrc.setError(\"Cannot have empty giphy\");\n isValid = false;\n }\n\n if(isValid) {\n //Timestamp and return\n model.date = new Date();\n model.viewOrder = -1;\n return model;\n\n }\n else {\n return null;\n }\n }", "private boolean validateInput(EditText titleInput, EditText descriptionInput, EditText priceInput) {\n String title = titleInput.getText().toString();\n String description = descriptionInput.getText().toString();\n int price = (TextUtils.isEmpty(priceInput.getText().toString()))? -1 : Integer.parseInt(priceInput.getText().toString());\n if (TextUtils.isEmpty(title) || TextUtils.isEmpty(description) || price < 0) {\n Toast.makeText(this.getActivity(),\n \"Please, fill in all fields.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n if (photoURI == null) {\n Toast.makeText(this.getActivity(),\n \"Please, add a picture to this item before submitting it.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "private boolean checkEpisodeInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"episodeTitle\") != null && request.getParameter(\"episodeTitle\").length() > 0\n && request.getParameter(\"episodeDescription\") != null && request.getParameter(\"episodeDescription\").length() > 0\n && request.getParameter(\"episodeNumber\") != null && request.getParameter(\"episodeNumber\").length() > 0\n && request.getParameter(\"episodeSeason\") != null && request.getParameter(\"episodeSeason\").length() > 0\n && request.getParameter(\"series\") != null && request.getParameter(\"series\").length() > 0;\n }", "private static void addFields(StringBuilder xml, final String input) {\n\t\tMatcher m = FIELDS.matcher(input);\n\n\t\twhile (m.find()) {\n\t\t\tString tag = FIELDS_TO_TAGS.get(m.group(1));\n\n\t\t\tif (tag != null) {\n\t\t\t\tString value = m.group(2);\n\n\t\t\t\t// test for semester\n\t\t\t\tMatcher semMatcher = SEMESTER.matcher(value);\n\t\t\t\tif (semMatcher.find()) {\n\t\t\t\t\tif (semMatcher.group(1).equals(\"WS\")) {\n\t\t\t\t\t\tvalue = \"20\" + semMatcher.group(2)\n\t\t\t\t\t\t\t+ \"/20\" + semMatcher.group(3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvalue = semMatcher.group(2) + semMatcher.group(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\taddTag(xml, tag, value);\n\t\t\t}\n\t\t}\n\t}", "public interface FeedParserConstants {\n\tpublic static final String TITLE = \"title\";\n\tpublic static final String DESCRIPTION = \"description\";\n\tpublic static final String CHANNEL = \"channel\";\n\tpublic static final String COPYRIGHT = \"copyright\";\n\tpublic static final String LINK = \"link\";\n\tpublic static final String AUTHOR = \"creator\";\n\tpublic static final String ITEM = \"item\";\n\tpublic static final String PUB_DATE = \"pubDate\";\n\tpublic static final String CONTENT = \"encoded\";\n}", "public List<LinkDetails> scrapeRSSPageForLinks(String rssUrl) {\n\t\tString description = \"\";\n\t\tString title = \"\";\n\t\tString link = \"\";\n\t\tString pubdate = \"\";\n\t\tURL url;\n\t\tInputStream in;\n\n\t\tList<LinkDetails> rssProcessedData = new ArrayList<LinkDetails>();\n\n\t\ttry {\n\t\t\turl = new URL(rssUrl);\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\ttry {\n\t\t\tin = url.openStream();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\t// create XML input factory\n\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\n\t\t// read the XML document\n\t\ttry {\n\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\n\t\t\tboolean isFeedHeader = true;\n\t\t\twhile (eventReader.hasNext()) {\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\tif (event.isStartElement()) {\n\t\t\t\t\tString localPart = event.asStartElement().getName().getLocalPart();\n\n\t\t\t\t\t// System.out.println(localPart);\n\n\t\t\t\t\tswitch (localPart) {\n\n\t\t\t\t\tcase \"item\":\n\t\t\t\t\t\t// if (isFeedHeader) {\n\t\t\t\t\t\t// isFeedHeader = false;\n\t\t\t\t\t\t// System.out.println(\" title: \"+title+ \" description: \"+ description + \" link:\n\t\t\t\t\t\t// \"+link+\" pubDate: \"+pubdate);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"title\":\n\t\t\t\t\t\ttitle = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"title: \"+title);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"description\":\n\t\t\t\t\t\tdescription = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"description: \"+description);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"link\":\n\t\t\t\t\t\tlink = getCharacterData(event, eventReader);\n\t\t\t\t\t\tSystem.out.println(\"link: \" + link);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"pubDate\":\n\t\t\t\t\t\tpubdate = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"pubDate: \"+pubdate);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t} else if (event.isEndElement()) {\n\t\t\t\t\tif (event.asEndElement().getName().getLocalPart() == (\"item\")) {\n\n\t\t\t\t\t\tLinkDetails linkDetails = new LinkDetails(link, title, description, pubdate);\n\t\t\t\t\t\trssProcessedData.add(linkDetails);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (XMLStreamException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn rssProcessedData;\n\t}", "@Override\n public void startElement(String uri, String localName, String qName, Attributes atrbts) throws SAXException {\n if(qName.equalsIgnoreCase(\"author\")){\n isAuthor = true;\n author = new Author();\n \n }\n if(isAuthor){\n if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname = true;\n }else if(qName.equalsIgnoreCase(\"fullname\")){\n isFullname = true;\n }else if(qName.equalsIgnoreCase(\"email\")){\n isEmail = true;\n }else if(qName.equalsIgnoreCase(\"address\")){\n isAddress = true;\n }else if(qName.equalsIgnoreCase(\"birthday\")){\n isBirthday = true;\n }\n }\n if(qName.equalsIgnoreCase(\"book\")){\n isBook = true;\n book = new Book();\n }\n if(isBook){\n if(qName.equalsIgnoreCase(\"title\")){\n isTitle = true;\n }else if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname2 = true;\n }else if(qName.equalsIgnoreCase(\"nxb\")){\n isNxb = true;\n }else if(qName.equalsIgnoreCase(\"description\")){\n isDes = true;\n }\n }\n }", "private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }", "@Override\n\tpublic InputStream createUserRss(String userId, String link)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public void fillFromEntry(BlogEntry entry) {\n\t\tif(entry.getId()==null) {\n\t\t\tthis.id = \"\";\n\t\t} else {\n\t\t\tthis.id = entry.getId().toString();\n\t\t}\n\t\tthis.title = entry.getTitle();\n\t\tthis.text = entry.getText();\n\t\t\n\t}", "public interface AuthorValidationMessages {\n\n String EMPTY_AUTHORNAME_FIELD = \"EMPTY AUTHOR NAME\";\n String AUTHORNAME_ALREADY_EXISTS = \"AUTHORNAME ALREADY EXISTS\";\n String EMPTY_AUTHORSURNAME_FIELD = \"EMPTY AUTHOR SURNAME\";\n}", "private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }", "@Test\n public void createFeedSourceWithNoUrlTest() {\n HttpResponse createFeedSourceResponse = TestUtils.makeRequest(\"/api/manager/secure/feedsource\",\n JsonUtil.toJson(feedSourceWithNoUrl),\n HttpUtils.REQUEST_METHOD.POST\n );\n assertEquals(OK_200, createFeedSourceResponse.getStatusLine().getStatusCode());\n assertEquals(0, jobCountForFeed(feedSourceWithNoUrl.id));\n }", "public void validateDescription (String description){\n boolean isValid = description != null && !description.isEmpty();\n setDescriptionValid(isValid);\n }", "private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"[email protected]\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}", "public void populate(HttpServletRequest request, Context context, IndexableObject dso,\n List<IndexableObject> items, Map<String, String> labels) {\n String logoURL = null;\n String objectURL = null;\n String defaultTitle = null;\n boolean podcastFeed = false;\n this.request = request;\n // dso is null for the whole site, or a search without scope\n if (dso == null) {\n defaultTitle = configurationService.getProperty(\"dspace.name\");\n feed.setDescription(localize(labels, MSG_FEED_DESCRIPTION));\n objectURL = resolveURL(request, null);\n } else {\n Bitstream logo = null;\n if (dso instanceof IndexableCollection) {\n Collection col = ((IndexableCollection) dso).getIndexedObject();\n defaultTitle = col.getName();\n feed.setDescription(collectionService.getMetadataFirstValue(col,\n CollectionService.MD_SHORT_DESCRIPTION, Item.ANY));\n logo = col.getLogo();\n String cols = configurationService.getProperty(\"webui.feed.podcast.collections\");\n if (cols != null && cols.length() > 1 && cols.contains(col.getHandle())) {\n podcastFeed = true;\n }\n objectURL = resolveURL(request, col);\n } else if (dso instanceof IndexableCommunity) {\n Community comm = ((IndexableCommunity) dso).getIndexedObject();\n defaultTitle = comm.getName();\n feed.setDescription(communityService.getMetadataFirstValue(comm,\n CommunityService.MD_SHORT_DESCRIPTION, Item.ANY));\n logo = comm.getLogo();\n String comms = configurationService.getProperty(\"webui.feed.podcast.communities\");\n if (comms != null && comms.length() > 1 && comms.contains(comm.getHandle())) {\n podcastFeed = true;\n }\n objectURL = resolveURL(request, comm);\n }\n\n if (logo != null) {\n logoURL = urlOfBitstream(request, logo);\n }\n }\n feed.setTitle(labels.containsKey(MSG_FEED_TITLE) ?\n localize(labels, MSG_FEED_TITLE) : defaultTitle);\n feed.setLink(objectURL);\n feed.setPublishedDate(new Date());\n feed.setUri(objectURL);\n\n // add logo if we found one:\n if (logoURL != null) {\n // we use the path to the logo for this, the logo itself cannot\n // be contained in the rdf. Not all RSS-viewers show this logo.\n SyndImage image = new SyndImageImpl();\n image.setLink(objectURL);\n if (StringUtils.isNotBlank(feed.getTitle())) {\n image.setTitle(feed.getTitle());\n } else {\n image.setTitle(localize(labels, MSG_LOGO_TITLE));\n }\n image.setUrl(logoURL);\n feed.setImage(image);\n }\n\n // add entries for items\n if (items != null) {\n List<SyndEntry> entries = new ArrayList<>();\n for (IndexableObject idxObj : items) {\n if (!(idxObj instanceof IndexableItem)) {\n continue;\n }\n Item item = ((IndexableItem) idxObj).getIndexedObject();\n boolean hasDate = false;\n SyndEntry entry = new SyndEntryImpl();\n entries.add(entry);\n\n String entryURL = resolveURL(request, item);\n entry.setLink(entryURL);\n entry.setUri(entryURL);\n\n String title = getOneDC(item, titleField);\n entry.setTitle(title == null ? localize(labels, MSG_UNTITLED) : title);\n\n // \"published\" date -- should be dc.date.issued\n String pubDate = getOneDC(item, dateField);\n if (pubDate != null) {\n entry.setPublishedDate((new DCDate(pubDate)).toDate());\n hasDate = true;\n }\n // date of last change to Item\n entry.setUpdatedDate(item.getLastModified());\n\n StringBuilder db = new StringBuilder();\n for (String df : descriptionFields) {\n // Special Case: \"(date)\" in field name means render as date\n boolean isDate = df.indexOf(\"(date)\") > 0;\n if (isDate) {\n df = df.replaceAll(\"\\\\(date\\\\)\", \"\");\n }\n\n List<MetadataValue> dcv = itemService.getMetadataByMetadataString(item, df);\n if (dcv.size() > 0) {\n String fieldLabel = labels.get(MSG_METADATA + df);\n if (fieldLabel != null && fieldLabel.length() > 0) {\n db.append(fieldLabel).append(\": \");\n }\n boolean first = true;\n for (MetadataValue v : dcv) {\n if (first) {\n first = false;\n } else {\n db.append(\"; \");\n }\n db.append(isDate ? new DCDate(v.getValue()).toString() : v.getValue());\n }\n db.append(\"\\n\");\n }\n }\n if (db.length() > 0) {\n SyndContent desc = new SyndContentImpl();\n desc.setType(\"text/plain\");\n desc.setValue(db.toString());\n entry.setDescription(desc);\n }\n\n // This gets the authors into an ATOM feed\n List<MetadataValue> authors = itemService.getMetadataByMetadataString(item, authorField);\n if (authors.size() > 0) {\n List<SyndPerson> creators = new ArrayList<>();\n for (MetadataValue author : authors) {\n SyndPerson sp = new SyndPersonImpl();\n sp.setName(author.getValue());\n creators.add(sp);\n }\n entry.setAuthors(creators);\n }\n\n // only add DC module if any DC fields are configured\n if (dcCreatorField != null || dcDateField != null ||\n dcDescriptionField != null) {\n DCModule dc = new DCModuleImpl();\n if (dcCreatorField != null) {\n List<MetadataValue> dcAuthors = itemService\n .getMetadataByMetadataString(item, dcCreatorField);\n if (dcAuthors.size() > 0) {\n List<String> creators = new ArrayList<>();\n for (MetadataValue author : dcAuthors) {\n creators.add(author.getValue());\n }\n dc.setCreators(creators);\n }\n }\n if (dcDateField != null && !hasDate) {\n List<MetadataValue> v = itemService.getMetadataByMetadataString(item, dcDateField);\n if (v.size() > 0) {\n dc.setDate((new DCDate(v.get(0).getValue())).toDate());\n }\n }\n if (dcDescriptionField != null) {\n List<MetadataValue> v = itemService\n .getMetadataByMetadataString(item, dcDescriptionField);\n if (v.size() > 0) {\n StringBuilder descs = new StringBuilder();\n for (MetadataValue d : v) {\n if (descs.length() > 0) {\n descs.append(\"\\n\\n\");\n }\n descs.append(d.getValue());\n }\n dc.setDescription(descs.toString());\n }\n }\n entry.getModules().add(dc);\n }\n\n //iTunes Podcast Support - START\n if (podcastFeed) {\n // Add enclosure(s)\n List<SyndEnclosure> enclosures = new ArrayList();\n try {\n List<Bundle> bunds = itemService.getBundles(item, \"ORIGINAL\");\n if (bunds.get(0) != null) {\n List<Bitstream> bits = bunds.get(0).getBitstreams();\n for (Bitstream bit : bits) {\n String mime = bit.getFormat(context).getMIMEType();\n if (ArrayUtils.contains(podcastableMIMETypes, mime)) {\n SyndEnclosure enc = new SyndEnclosureImpl();\n enc.setType(bit.getFormat(context).getMIMEType());\n enc.setLength(bit.getSizeBytes());\n enc.setUrl(urlOfBitstream(request, bit));\n enclosures.add(enc);\n\n }\n }\n }\n //Also try to add an external value from dc.identifier.other\n // We are assuming that if this is set, then it is a media file\n List<MetadataValue> externalMedia = itemService\n .getMetadataByMetadataString(item, externalSourceField);\n if (externalMedia.size() > 0) {\n for (MetadataValue anExternalMedia : externalMedia) {\n SyndEnclosure enc = new SyndEnclosureImpl();\n enc.setType(\n \"audio/x-mpeg\"); //We can't determine MIME of external file, so just\n // picking one.\n enc.setLength(1);\n enc.setUrl(anExternalMedia.getValue());\n enclosures.add(enc);\n }\n }\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n entry.setEnclosures(enclosures);\n\n // Get iTunes specific fields: author, subtitle, summary, duration, keywords\n EntryInformation itunes = new EntryInformationImpl();\n\n String author = getOneDC(item, authorField);\n if (author != null && author.length() > 0) {\n itunes.setAuthor(author); // <itunes:author>\n }\n\n itunes.setSubtitle(title == null ? localize(labels, MSG_UNTITLED) : title); // <itunes:subtitle>\n\n if (db.length() > 0) {\n itunes.setSummary(db.toString()); // <itunes:summary>\n }\n\n String extent = getOneDC(item,\n \"dc.format.extent\"); // assumed that user will enter this field\n // with length of song in seconds\n if (extent != null && extent.length() > 0) {\n extent = extent.split(\" \")[0];\n long duration = Long.parseLong(extent);\n itunes.setDuration(new Duration(duration)); // <itunes:duration>\n }\n\n String subject = getOneDC(item, \"dc.subject\");\n if (subject != null && subject.length() > 0) {\n String[] subjects = new String[1];\n subjects[0] = subject;\n itunes.setKeywords(subjects); // <itunes:keywords>\n }\n\n entry.getModules().add(itunes);\n }\n }\n feed.setEntries(entries);\n }\n }", "@Override void init(Element element) {\n String name = element.getTagName();\n if (name.equals(\"published\")) {\n this.published = element.getTextContent().trim();\n }\n else if (name.equals(\"content\")) {\n this.content = parseContent(element);\n }\n else {\n super.init(element);\n }\n }", "@Override\n\tpublic void setMandatory(boolean mandatory) {\n\t\t\n\t}", "@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}", "public Buoy addBuoy(String title, String link, String textDescription, String htmlDescription) throws BuoyException\n {\n Buoy buoy = null;\n\n // If title is null then cannot process much. Since we have no\n // unioque way to identify the buoy\n if (title == null)\n {\n throw new BuoyException(\"Buoy record in feed with null title element\");\n\n } else\n {\n\n // Extract station ID, Full Name and URL link\n \n buoy = createBuoy(title);\n buoy.setLinkURL(link);\n\n // Extract Data Fields by parsing the HTML Description\n List<String> strongTags = extractDataFields(htmlDescription);\n\n // Use the extracted placeholders to set the reporting time\n // and Weather\n if (strongTags != null && strongTags.size() > 1)\n {\n String reportTime = strongTags.get(0);\n buoy.setReportTime(reportTime);\n strongTags.remove(0);\n\n //System.out.println(\"Buoy : <\" + buoy.getStationID() + \"> Reporting @ <\" + reportTime + \">\");\n int i = 0;\n String leftTag = \"\";\n String rightTag = \"\";\n String value = \"\";\n for (String tag : strongTags)\n {\n\n leftTag = tag;\n if (i < strongTags.size() - 1)\n {\n rightTag = strongTags.get(i + 1);\n } else\n {\n rightTag = \"\";\n }\n i++;\n value = extractDataValue(textDescription, leftTag, rightTag);\n\n if (tag.startsWith(LOCATION_PREFIX))\n {\n // Treat this differently\n extractLatLongAndRelativeLocation(buoy, value);\n\n } else\n {\n // Add the waether condition value to the list of data\n buoy.addWeatherCondition(tag.replace(\":\", \"\"), value);\n }\n }\n } else\n {\n throw new BuoyException(\"Buoy record in feed with incomplete Weather Conditions\");\n }\n }\n\n return buoy;\n }", "private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }", "public NewsSource(String name, String link, String rss_link)\n\t{\n\t\tthis.name = name;\n\t\tthis.link = link;\n\t\tthis.rss_link = rss_link;\n\t}", "public void setRssData(RSSFilingData rssData) {\n this.rssData = rssData;\n }", "private String genFeedURL(String startDate, String endDate) {\n\t\treturn String.format(\"%sfeed?start_date=%s&end_date=%s&detailed=false&api_key=%s\", \n\t\t\t\tconfig.getApiBaseURL(), startDate, endDate, config.getAPIKey());\n\t}", "private void validateEmptyElements()\n {\n // Check if something is missing\n if (_dietTreatment.getName().length() < 1)\n {\n getErrors().add(\"Kein Name angegeben.\");\n }\n\n // TODO: check that at least one user is TREATING!\n if (_dietTreatment.getSystemUsers().isEmpty())\n {\n getErrors().add(\"Kein verantwortlicher User angegeben.\");\n }\n\n if (_dietTreatment.getPatientStates().isEmpty())\n {\n getErrors().add(\"Keine Zuweisungsdiagnose angegeben.\");\n }\n }", "protected static Book goodBookValues(String bidField, String bnameField, String byearField, String bpriceField, String bauthorField, String bpublisherField) throws Exception{\n Book myBook;\n String [] ID,strPrice;\n String Name;\n int Year;\n double Price;\n \n try{\n ID = bidField.split(\"\\\\s+\"); // split using spaces\n if (ID.length > 1 || ID[0].equals(\"\")) // id should only be one word\n {\n throw new Exception (\"ERROR: The ID must be entered\\n\"); // if the id is empty, it must be conveyed to this user via this exception\n }\n if (ID[0].length() !=6) // id must be 6 digits\n throw new Exception (\"ERROR: ID must be 6 digits\\n\");\n if (!(ID[0].matches(\"[0-9]+\"))) // id must only be numbers\n throw new Exception (\"ERROR: ID must only contain numbers\");\n Name = bnameField;\n if (Name.equals(\"\")) // name must not be blank\n throw new Exception (\"ERROR: Name of product must be entered\\n\");\n if (byearField.equals(\"\") || byearField.length() != 4) // year field cannot be blank\n {\n throw new Exception (\"ERROR: Year of product must be 4 numbers\\n\");\n } else {\n Year = Integer.parseInt(byearField);\n if (Year > 9999 || Year < 1000)\n {\n throw new Exception (\"Error: Year must be between 1000 and 9999 years\");\n }\n }\n \n strPrice = bpriceField.split(\"\\\\s+\");\n if (strPrice.length > 1 || strPrice[0].equals(\"\"))\n Price = 0;\n else\n Price = Double.parseDouble(strPrice[0]);\n \n myBook = new Book(ID[0],Name,Year,Price,bauthorField,bpublisherField);\n ProductGUI.Display(\"Book fields are good\\n\");\n return myBook;\n } catch (Exception e){\n throw new Exception (e.getMessage());\n }\n \n }", "public NewsParamPanel() {\n initComponents();\n titleAnalyzer.setFieldName(\"TITLE\");\n dateAnalyzer.setFieldName(\"DATE\");\n sourceExtractor.setFieldName(\"SOURCENAME\");\n authorExtractor.setFieldName(\"AUTHOR\");\n commentsExtractor.setFieldName(\"COMMENT_COUNT\");\n clicksExtractor.setFieldName(\"CLICK_COUNT\");\n transmitExtractor.setFieldName(\"TRANSMIT_COUNT\");\n summaryExtractor.setFieldName(\"SUMMARY\");\n chnlExtractor.setFieldName(\"CHANNEL\");\n contentExtractor.setFieldName(\"CONTENT\");\n }", "@Override\n public void endElement(String uri, String localName, String qName) throws SAXException {\n if(qName.equalsIgnoreCase(\"author\")){\n isAuthor = false;\n authorList.add(author);\n author = null;\n }\n if(isAuthor){\n if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname = false;\n }else if(qName.equalsIgnoreCase(\"fullname\")){\n isFullname = false;\n }else if(qName.equalsIgnoreCase(\"email\")){\n isEmail = false;\n }else if(qName.equalsIgnoreCase(\"address\")){\n isAddress = false;\n }else if(qName.equalsIgnoreCase(\"birthday\")){\n isBirthday = false;\n }\n }\n if(qName.equalsIgnoreCase(\"book\")){\n isBook = false;\n bookList.add(book);\n book = null;\n }\n if(isBook){\n if(qName.equalsIgnoreCase(\"title\")){\n isTitle = false;\n }else if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname2 = false;\n }else if(qName.equalsIgnoreCase(\"nxb\")){\n isNxb = false;\n }else if(qName.equalsIgnoreCase(\"description\")){\n isDes = false;\n }\n }\n }", "@Override\n\tprotected void validators() {\n\t\tString nsrmc = getDj_nsrxx().getNsrmc();\n\n\t\tif (ValidateUtils.isNullOrEmpty(nsrmc)) {\n\t\t\tthis.setSystemMessage(\"纳税人名称不能为空\", true, null);\n\t\t}\n\n\t}", "private void AssertNotNull(List<Object> posts) {\n\t\t\n\t}", "@Override\n\tpublic void endElement(String uri, String localName, String qName) throws SAXException {\n\n\t\tif (localName.equalsIgnoreCase(\"title\")){\n if (currentArticle.getTitle() != null && currentArticle.getGuid() != null) {\n articleList.add(currentArticle);\n\n currentArticle = new Article();\n\n }\n currentArticle.setTitle(chars.toString());\n\t\t} else if (localName.equalsIgnoreCase(\"guid\")){\n currentArticle.setGuid(chars.toString());\n\t\t} else if (localName.equalsIgnoreCase(\"description\")){\n currentArticle.setDescription(chars.toString());\n\t\t} else if (localName.equalsIgnoreCase(\"url\")){\n try {\n currentArticle.setUrl(new URL(chars.toString()));\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (localName.equalsIgnoreCase(\"pubDate\")){\n currentArticle.setPubDate(chars.toString());\n\t\t} else if (localName.equalsIgnoreCase(\"author\")){\n currentArticle.setAuthor(chars.toString());\n\t\t}\n\t}", "private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }", "private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }", "public void validateTitle(String title){\n boolean isValid = title != null && !title.isEmpty();\n setTitleValid(isValid);\n }", "@Test(expected = BadEntry.class)\r\n\tpublic void testConsultItemWithNullTitle() throws BadEntry{\r\n\t\tsn.consultItems(null);\r\n\t}", "@Test\n\tpublic void testFeedWithSimpleEntity() {\n\n\t\tinitializeWithDefaultSimpleEntity();\n\t\tupdateDay(OTHER_DAY);\n\t\tupdateDay(null);\n\n\t\tList<DomNodeTester> feedItems = findBody()//\n\t\t\t.findNode(EmfTestMarker.LOG_FEED_MAIN)\n\t\t\t.findNodes(EmfTestMarker.LOG_FEED_ITEM)\n\t\t\t.assertSize(3);\n\t\tfeedItems//\n\t\t\t.get(0)\n\t\t\t.assertDoesNotContainText(BADGE_ADD)\n\t\t\t.assertDoesNotContainText(BADGE_MODIFY)\n\t\t\t.assertContainsText(BADGE_REMOVE)\n\t\t\t.assertContainsText(LABEL_DAY)\n\t\t\t.assertContainsText(OTHER_DAY.toString());\n\t\tfeedItems//\n\t\t\t.get(1)\n\t\t\t.assertDoesNotContainText(BADGE_ADD)\n\t\t\t.assertContainsText(BADGE_MODIFY)\n\t\t\t.assertDoesNotContainText(BADGE_REMOVE)\n\t\t\t.assertContainsText(LABEL_DAY)\n\t\t\t.assertContainsText(OTHER_DAY.toString());\n\t\tfeedItems//\n\t\t\t.get(2)\n\t\t\t.assertContainsText(BADGE_ADD)\n\t\t\t.assertDoesNotContainText(BADGE_MODIFY)\n\t\t\t.assertDoesNotContainText(BADGE_REMOVE)\n\t\t\t.assertContainsText(LABEL_DAY)\n\t\t\t.assertContainsText(DEFAULT_DAY.toString());\n\t}", "public interface IPSDTDPublisherEdition\n{\n /*\n * Element names\n */\n static public final String ELEM_ROOT = \"psxpub:pubdata\";\n static public final String ELEM_SITE = \"destsite\";\n static public final String ELEM_CONTENTLIST = \"contentlist\";\n static public final String ELEM_CONTENTITEM = \"contentitem\";\n static public final String ELEM_CONTENTTITLE = \"title\";\n static public final String ELEM_CONTENTURL = \"contenturl\";\n static public final String ELEM_DELIVERY = \"delivery\";\n static public final String ELEM_LOCATION = \"location\";\n static public final String ELEM_MODIFYDATE = \"modifydate\";\n static public final String ELEM_MODIFYUSER = \"modifyuser\";\n static public final String ELEM_EXPIREDATE = \"expiredate\";\n static public final String ELEM_CONTENTTYPE = \"contenttype\";\n static public final String ELEM_CONFIG = \"publisherconfig\";\n static public final String ELEM_PARAM = \"param\";\n static public final String ELEM_CUSTOMPROPERTIES =\"customproperties\";\n /*\n * Attribute names\n */\n static public final String ATTR_NS = \"xmlns:psxpub\";\n static public final String ATTR_USERID = \"userid\";\n static public final String ATTR_PASSWORD = \"password\";\n static public final String ATTR_IPADDRESS = \"ipaddress\";\n static public final String ATTR_PORT = \"port\";\n static public final String ATTR_ROOTDIR = \"rootdir\";\n static public final String ATTR_NAME = \"name\";\n static public final String ATTR_EDITIONID = \"editionid\";\n static public final String ATTR_SRCSITEID = \"srcsiteid\";\n static public final String ATTR_RECOVERYPUBSTATUSID = \"recoverypubstatusid\";\n static public final String ATTR_SITEID = \"siteid\";\n static public final String ATTR_PUBLISHERID = \"publisherid\";\n static public final String ATTR_PUBLICATIONID = \"publicationid\";\n static public final String ATTR_PUBSTATUSID = \"pubstatusid\";\n static public final String ATTR_DELIVERYTYPE = \"deliverytype\";\n static public final String ATTR_UNPUBLISH = \"unpublish\";\n static public final String ATTR_CONTENTID = \"contentid\";\n static public final String ATTR_REVISION = \"revision\";\n static public final String ATTR_CONTEXT = \"context\";\n static public final String ATTR_VARIANTID = \"variantid\";\n static public final String ATTR_CLISTID = \"clistid\";\n static public final String ATTR_PAGEINDEX = \"pageindex\";\n static public final String ATTR_ISLASTPAGE = \"islastpage\";\n public static final String ATTR_ELAPSETIME = \"elapsetime\";\n\n\n /**\n * The name for the attribute holding the publisher user identification,\n * never <code>null</code>.\n */\n static public final String ATTR_PUBUID = \"pubuid\";\n\n /**\n * The name for the attribute holding the publisher password, never\n * <code>null</code>.\n */\n static public final String ATTR_PUBPW = \"pubpw\";\n\n /**\n * The parameter name for the rhythmyx server name.\n */\n static public final String PARAM_RXSERVER = \"rxserver\";\n\n /**\n * The parameter name for the rhythmyx server port.\n */\n static public final String PARAM_RXPORT = \"rxport\";\n\n /**\n * The parameter name for the rhythmyx server SSL port.\n */\n static public final String PARAM_RXSSLPORT = \"rxsslport\";\n\n /**\n * The parameter name for the rhythmyx server user name.\n */\n static public final String PARAM_USERID = \"userid\";\n\n /**\n * The parameter name for the rhythmyx server password.\n */\n static public final String PARAM_PASSWORD = \"password\";\n\n /**\n * The parameter name for the publisher user name parameter.\n */\n static public final String PARAM_PUBUID = \"pubuid\";\n\n /**\n * The parameter name for the publisher password.\n */\n static public final String PARAM_PUBPW = \"pubpw\";\n\n /**\n * The parameter name for the publisher SSL port. Use this name to specify\n * the publisher SSL port in the publisher setup form.\n */\n static public final String PARAM_SSLPORT = \"sslport\";\n\n /**\n * The parameter name for the publisher log location. Use this name to\n * specify the log location in the publisher setup form.\n */\n static public final String PARAM_LOG_LOCATION = \"loglocation\";\n\n /**\n * The parameter name for the publisher soap request file. Use this name to\n * specify the soap request file in the publisher setup form.\n */\n static public final String PARAM_SOAP_REQUEST = \"soaprequest\";\n\n /**\n * The parameter name for the database publisher jdbc context factory used\n * for jndi lookups. Use this name to specify the database publisher jdbc\n * context factory in the publisher setup form.\n */\n static public final String PARAM_JDBC_CONTEXTFACTORY = \"jdbccontextfactory\";\n\n /**\n * The parameter name for the database publisher jndi provider url to use.\n * Use this name to specify the database publisher jndi provider url in the\n * publisher setup form.\n */\n static public final String PARAM_JNDI_PROVIDERURL = \"jndiproviderurl\";\n\n\n /**\n * The parameter name for the number of items after which the FTP client will\n * log out of and then log back into a server session. Defaults to\n * Integer.MAX_INT if not found in the database.\n */\n static public final String PARAM_FTP_RELOGIN_ITEMCOUNT =\n \"ftpreloginitemcount\";\n\n /**\n * The parameter name for the time (in seconds) that the FTP Publisher\n * client will wait for the complete content list to arrive. The client\n * will time out if this request is not complete in the specified number\n * of seconds. Defaults to 0 if not found in the database.\n */\n static public final String PARAM_SERVER_REQUEST_TIMEOUT =\n \"serverrequesttimeout\";\n\n /**\n * The parameter name for the field that indicates whether to use\n * Active mode (false) or Passive mode (true) in FTP Publisher requests.\n * Defaults to false (use Active mode) if not found in the database.\n */\n static public final String PARAM_FTP_USE_PASSIVE_MODE =\n \"enablepassivemode\";\n\n /** Parameter name for the time (in seconds) to wait for data to arrive on FTP\n * sockets when publishing. Note that timeouts should be rare,\n * especially since most of the time we're tranmitting data, not\n * receiving it.\n *\n * Defaults to 60 seconds. 0 means no timeout is set.\n *\n * @see net.oroinc.ftp.FtpClient#setDataTimeout\n * @see net.oroinc.net.SocketClient#setSoTimeout\n */\n static public final String PARAM_FTP_RCV_TIMEOUT =\n \"ftprcvtimeout\";\n}", "public PostkastenItem(String name) //, String street, String plz, String www, String tel)\r\n\t{\r\n\t\tsuper(\"\");\r\n\t\t\r\n\t\tthis.name = name;\r\n\t\t/*\r\n\t\tthis.street = street;\r\n\t\tthis.plz = plz;\r\n\t\tthis.tel = tel;\r\n\t\tthis.www = www;\r\n\t\t*/\r\n\t}", "protected void validateConfig() {\n A.notNull(getStreamer(), \"Streamer\");\n A.notNull(getIgnite(), \"Ignite\");\n A.notNull(endpointUrl, \"Twitter Streaming API endpoint\");\n\n A.ensure(getSingleTupleExtractor() != null || getMultipleTupleExtractor() != null, \"Twitter extractor\");\n\n String followParam = apiParams.get(SITE_USER_ID_KEY);\n\n A.ensure(followParam != null && followParam.matches(\"^(\\\\d+,? ?)+$\"),\n \"Site streaming endpoint must provide 'follow' param with value as comma separated numbers\");\n }", "public interface RSSService {\n\n //if only RSS feeds used the last-modified tag..\n @HEAD\n Call<Void> headFeed(@Url String url);\n\n @GET\n Call<RSSFeed> getFeed(@Url String url);\n}", "protected RMShapeRSS getRSS() { return _rss!=null? _rss : (_rss=new RMShapeRSS()); }", "public abstract List<String> requiredFields();", "@Test\n\tpublic void testCreateLinkNullUrl() {\n\t\tLink result = helper.createLink(null);\n\t\tassertEquals(null, result.getUrl());\n\t\tassertFalse(result.isValid());\n\t}", "@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes attributes) throws SAXException {\n\t\tsuper.startElement(uri, localName, qName, attributes);\n\t\ttag = qName;\n\t\tsb.delete(0, sb.length());\n\t\tif (qName.equals(\"entry\")) {\n\t\t\tisFeed = true;\n\t\t\tcommentsInfo = new CommentsInfo();\n\t\t} else if (qName.equals(\"feed\")) {\n\t\t\tisFeed = false;\n\t\t}\n\n\t}", "@Test\n public void testIsValid_NullProducesOrNullAccepts() {\n CollectorWithNullProducesOrAndAccepts collector = new CollectorWithNullProducesOrAndAccepts();\n Set errors = validator.validate(collector);\n assertFalse(errors.isEmpty());\n }", "private void submitRssQuery(ContactRssImpl rssContact,\n boolean userRequestedUpdate)\n {\n Message msg;\n boolean newName = false;\n boolean newItem = false;\n boolean update = false;\n String newDisplayName = new String();\n String oldDisplayName = new String();\n \n RssFeedReader rssFeed = rssContact.getRssFeedReader();\n try\n {\n rssFeed.retrieveFlow();\n }\n catch (OperationFailedException ex)\n {\n logger.error(\"Failed to retrieve RSS flow. Error was: \"\n + ex.getMessage()\n , ex);\n return;\n }\n \n \n //we recover the feed's old name\n oldDisplayName = rssContact.getDisplayName();\n \n //we change the contact's displayName according to the feed's title\n newDisplayName = rssFeed.getTitle();\n if (! (newDisplayName.equals(oldDisplayName)))\n {\n newName = true;\n }\n rssContact.setDisplayName(newDisplayName);\n \n //we create the message containing the new items retrieved\n msg = createMessage(rssFeed.feedToString(rssContact.getLastItemKey()));\n \n //if a newer date is available for the current feed/contact looking\n //the date of each item of the feed retrieved, we update this date\n if (rssFeed.getLastItemKey().usesDate())\n {\n if(rssFeed.getLastItemKey().getItemDate()\n .compareTo(rssContact.getLastItemKey().getItemDate()) > 0)\n {\n rssContact.setLastItemKey(\n new RssItemKey(rssFeed.getLastItemKey().getItemDate()));\n newItem = true;\n update = true;\n }\n }\n else\n {\n if (!rssFeed.getLastItemKey().getItemUri().equalsIgnoreCase(\n rssContact.getLastItemKey().getItemUri()))\n {\n rssContact.setLastItemKey(\n new RssItemKey(rssFeed.getLastItemKey().getItemUri()));\n \n newItem = true;\n update = true;\n }\n }\n \n //if we have a new date or a new name on this feed/contact, we fire\n //that the contact has his properties modified in order to save it\n if (newName || newItem)\n this.opSetPersPresence.fireContactPropertyChangeEvent(\n ContactPropertyChangeEvent.\n PROPERTY_DISPLAY_NAME, rssContact,\n oldDisplayName, newDisplayName);\n \n //if the feed has been updated or if the user made a request on a\n //specific feed/contact, we fire a new message containing the new items\n //to the user\n if(update || userRequestedUpdate)\n fireMessageReceived(msg, rssContact);\n }", "public NewsItem(String newsHeadline, String newsSection, String newsDate, String newsAuthor, String url) {\n mHeadline = newsHeadline;\n mSection = newsSection;\n mDate = newsDate;\n mAuthor = newsAuthor;\n mUrl = url;\n }", "private boolean validParams(String name, String company) {\n\t\treturn (name != null && !name.trim().equals(\"\")) \n\t\t\t\t&& (company != null && !company.trim().equals(\"\"));\n\t}", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "private RSSAggregator() {\n }", "private void setValidSourcesRequired ( final String validSourcesRequired )\n {\n if ( ( validSourcesRequired == null ) || validSourcesRequired.isEmpty () )\n {\n this.noOfValidSourcesRequired = 0;\n return;\n }\n // special case 100%:\n // all values must be valid to have a valid result\n if ( validSourcesRequired.equals ( \"100%\" ) )\n {\n this.noOfValidSourcesRequired = this.sourceIds.size ();\n return;\n }\n try\n {\n if ( validSourcesRequired.endsWith ( \"%\" ) )\n {\n // handle percentages\n final int percent = Integer.parseInt ( validSourcesRequired.replace ( \"%\", \"\" ) );\n if ( percent >= 100 )\n {\n this.noOfValidSourcesRequired = this.sourceIds.size ();\n return;\n }\n this.noOfValidSourcesRequired = Long.valueOf ( Math.round ( ( percent * this.sourceIds.size () ) / 100.0 ) ).intValue ();\n }\n else\n {\n // handle absolute values\n this.noOfValidSourcesRequired = Integer.parseInt ( validSourcesRequired );\n if ( this.noOfValidSourcesRequired > this.sourceIds.size () )\n {\n logger.warn ( \"'validSourcesRequired' was '{}' which should be less then the number of all elements\", validSourcesRequired, this.sourceIds.size () );\n this.noOfValidSourcesRequired = this.sourceIds.size ();\n }\n }\n }\n catch ( final NumberFormatException e )\n {\n logger.warn ( \"'validSourcesRequired' was '{}' which could not be parsed\", validSourcesRequired, e );\n // re-throw for the CA to get notified\n throw e;\n }\n }", "@Test\n public void testSsnvalidatorNull(){\n assertFalse(register.ssnValidator(\"\")); // a date can`t start with 70\n }", "public void validate() {\n DBQueryHandler handler = new DBQueryHandler();\n ActionHelper helper = new ActionHelper();\n \n if( ratingValue.equals(\"0\") )\n {\n rating = 0;\n }\n else if( ratingValue.equals(\"1\") )\n {\n rating = 1;\n }\n else if( ratingValue.equals(\"2\") )\n {\n rating = 2;\n }\n else if( ratingValue.equals(\"3\") )\n {\n rating = 3;\n }\n else if( ratingValue.equals(\"4\") )\n {\n rating = 4;\n }\n else if( ratingValue.equals(\"5\") )\n {\n rating = 5;\n }\n else if( ratingText.length() != 0 || ratingText != null )\n {\n ratingText = helper.injectionReplace(ratingText);\n }\n else\n {\n ratingDate = new Date();\n }\n\n }", "private boolean checkGenreSeriesInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"genre\") != null && request.getParameter(\"genre\").length() > 0\n && request.getParameter(\"series\") != null && request.getParameter(\"series\").length() > 0;\n }", "private boolean validateXML(String xml, ArrayList<Map> fieldsAttribs, String outputFileName) {\n String acceptedChars = \"\\\\/\\\\-\\\\_\\\\!\\\\@\\\\#\\\\$\\\\%\\\\^\\\\&\\\\*\\\\(\\\\)\\\\+\\\\=\\\\{\\\\[\\\\}\\\\]\\\\;\\\\:\\\\?\\\\.\\\\,\";\n String pat = \"(<(\\\\w+)?>([a-zA-Z0-9\" + acceptedChars + \" ]+?)<\\\\/(\\\\2)>)\";\n String error = \"***Error- \";\n ArrayList<Map> fieldValues = new ArrayList<Map>();\n Matcher m = Pattern.compile(pat).matcher(xml);\n Map tempMap = new HashMap();\n while(m.find()){\n if(tempMap.containsKey(m.group(2))){\n fieldValues.add(tempMap);\n tempMap = new HashMap();\n }\n tempMap.put(m.group(2), m.group(3));\n }\n if(tempMap!=null){\n fieldValues.add(tempMap);\n }\n String tableName = fieldsAttribs.get(0).get(\"name\").toString();\n fieldsAttribs.remove(0);\n int i = 0;\n ArrayList<Object> fieldsXSD = new ArrayList<Object>();\n for(Map attribs : fieldsAttribs){\n Object field = attribs.get(\"name\");\n fieldsXSD.add(field);\n }\n for(Map record : fieldValues){\n i++;\n Set fieldsXML = record.keySet();\n if(fieldsXML.size() != fieldsXSD.size()){\n int count =0;\n if((count = Math.abs(fieldsXML.size() - fieldsXSD.size())) == 1)\n System.out.println(\"In record #\" + i + \", there is an undefined tags in xml file, and is ignored.\");\n else\n System.out.println(\"In record #\" + i + \", there are \"+count+\" undefined tags in xml file, and are ignored.\");\n }\n }\n for (Map record : fieldValues){\n for (Map attrib : fieldsAttribs){\n String column = attrib.get(\"name\").toString();\n String type = attrib.get(\"type\").toString();\n String max = attrib.get(\"maxOccurs\").toString();\n String min = attrib.get(\"minOccurs\").toString();\n String fraction = \"\";\n String date = \"\";\n if(attrib.containsKey(\"date\")){\n date = attrib.get(\"date\").toString();\n }\n if(attrib.containsKey(\"fraction\")){\n fraction = attrib.get(\"fraction\").toString();\n }\n String columnValue = \"\";\n if(record.containsKey(column))\n columnValue = record.get(column).toString();\n else {\n System.out.println(error + \" program could not find \"+ column + \" in xml file.\");\n return false;\n }\n if(type.equals(\"string\") || type.equals(\"integer\") || type.equals(\"int\")){\n if(columnValue.length() > Integer.parseInt(max)){\n System.out.println(error + column + \" \" + columnValue + \" length is more than the limit \"\n + Integer.parseInt(max));\n return false;\n }\n if(columnValue.length() < Integer.parseInt(min)){\n System.out.println(error + column + \" \" + columnValue + \" length is less than the limit \"\n + Integer.parseInt(min));\n return false;\n }\n }\n if(type.equals(\"decimal\")){\n String[] part = columnValue.split(\"\\\\.\");\n if(part.length > 2){\n System.out.println(error + column + \" \" + columnValue + \" is not a valid decimal \");\n return false;\n }\n if(part[0].length() > Integer.parseInt(max)){\n System.out.println(error + column + \" \" + columnValue + \" length is more than the limit \"\n + Integer.parseInt(max));\n return false;\n }\n if(part[0].length() < Integer.parseInt(min)){\n System.out.println(error + column + \" \" + columnValue + \" length is less than the limit \"\n + Integer.parseInt(min));\n return false;\n }\n if(this.isNotNumeric(part[0])){\n System.out.println(error + column + \" \" + columnValue + \" not a valid decimal\");\n return false;\n }\n if(part.length == 2){\n if(part[1].length() != Integer.parseInt(fraction)){\n System.out.println(error + column + \" \" + columnValue + \" fraction part should be \"\n + Integer.parseInt(fraction) + \" digit long\");\n return false;\n }\n if(this.isNotNumeric(part[1])){\n System.out.println(error + column + \" \" + columnValue + \" not a valid decimal\");\n return false;\n }\n }\n }\n if(type.equals(\"date\")){\n String[] ValuePart = columnValue.split(\"\\\\/\");\n String[] xsdPart = date.split(\"\\\\/\");\n if(xsdPart.length != 3){\n System.out.println(error + \"date should be in format either mm/dd/yy or mm/dd/yyyy \" +\n \"in xsd file\");\n return false;\n }\n if((ValuePart.length != 3) || (ValuePart[0].length() != 2) || (ValuePart[1].length() != 2)){\n System.out.println(error + column + \" \" + columnValue + \" should be in format either \" +\n \"mm/dd/yy or mm/dd/yyyy\");\n return false;\n }\n if(ValuePart[2].length() > xsdPart[2].length()){\n System.out.println(error + column + \" \" + columnValue + \" should be in \" + date + \" format\");\n return false;\n }\n if(this.isNotNumeric(ValuePart[0]) || this.isNotNumeric(ValuePart[1]) || this.isNotNumeric(ValuePart[2])){\n System.out.println(error + column + \" \" + columnValue + \" mm, dd, & [yy]yy values must \" +\n \"be integers\");\n return false;\n }\n }\n }\n }\n this.printSQLCommands(fieldValues, fieldsAttribs, tableName, outputFileName);\n return true;\n }", "private void prepareUserFields(String fieldInput) throws AutomicException {\n String[] fields = fieldInput.split(\",\");\n userInputFields = new ArrayList<String>(fields.length);\n uniqueFields = new HashSet<String>(fields.length);\n for (String field : fields) {\n String temp = field.trim();\n if (CommonUtil.checkNotEmpty(temp)) {\n userInputFields.add(temp);\n uniqueFields.add(temp.toLowerCase());\n }\n }\n if (uniqueFields.isEmpty()) {\n throw new AutomicException(String.format(\"Invalid Fields have been provided [%s] \", fieldInput));\n }\n }", "protected void validateLogItem(LogItem logItem) throws WikiException {\r\n\t\tcheckLength(logItem.getUserDisplayName(), 200);\r\n\t\tcheckLength(logItem.getLogParamString(), 500);\r\n\t\tlogItem.setLogComment(StringUtils.substring(logItem.getLogComment(), 0, 200));\r\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }", "@Test\n\tpublic void testNewInvalidNoTargetType() {\n\t\ttry {\n\t\t\tthis.createCollectionProperty(\"<property name=\\\"locales\\\"/>\");\n\t\t\tAssert.fail(\"expected ModelValidationException\");\n\t\t} catch (ModelValidationException e) {\n\t\t\tAssert.assertTrue(e.getMessage().contains(\"no targettype specified\"));\n\t\t}\n\t}", "java.lang.String getFeed();", "private boolean checkIfHasRequiredFields(BoxItem shareItem){\n return shareItem.getSharedLink() != null && shareItem.getAllowedSharedLinkAccessLevels() != null;\n }", "private URL getFeedUrl() throws MalformedURLException{\n String feedUrl = \"http://\" + host + \":\" + port + \"/xmlfeed\";\n URL url = new URL(feedUrl);\n return url;\n }", "@Override\n public void validateSearchParameters(Map fieldValues) {\n List<String> lookupFieldAttributeList = null;\n if (getBusinessObjectMetaDataService().isLookupable(getBusinessObjectClass())) {\n lookupFieldAttributeList = getBusinessObjectMetaDataService().getLookupableFieldNames(getBusinessObjectClass());\n }\n if (ObjectUtils.isNull(lookupFieldAttributeList)) {\n throw new RuntimeException(\"Lookup not defined for business object \" + getBusinessObjectClass());\n }\n\n String agencyNumber = (String) fieldValues.get(KFSPropertyConstants.AGENCY_NUMBER);\n String proposalNumber = (String) fieldValues.get(KFSPropertyConstants.PROPOSAL_NUMBER);\n String invoiceDocumentNumber = (String) fieldValues.get(ArPropertyConstants.INVOICE_DOCUMENT_NUMBER);\n String customerNumber = (String) fieldValues.get(ArPropertyConstants.CustomerInvoiceWriteoffLookupResultFields.CUSTOMER_NUMBER);\n String customerName = (String) fieldValues.get(ArPropertyConstants.CustomerInvoiceWriteoffLookupResultFields.CUSTOMER_NAME);\n\n if ((ObjectUtils.isNull(customerNumber) || StringUtils.isBlank(customerNumber)) && (ObjectUtils.isNull(agencyNumber) || StringUtils.isBlank(agencyNumber)) && (ObjectUtils.isNull(customerName) || StringUtils.isBlank(customerName)) && (ObjectUtils.isNull(proposalNumber) || StringUtils.isBlank(proposalNumber)) && (ObjectUtils.isNull(invoiceDocumentNumber) || StringUtils.isBlank(invoiceDocumentNumber))) {\n GlobalVariables.getMessageMap().putError(KFSPropertyConstants.AGENCY_NUMBER, ArKeyConstants.ReferralToCollectionsDocumentErrors.ERROR_EMPTY_REQUIRED_FIELDS);\n }\n\n if (GlobalVariables.getMessageMap().hasErrors()) {\n throw new ValidationException(\"errors in search criteria\");\n }\n\n }", "protected void validateItem(Item[] param) {\r\n }", "public boolean isValidHeader(ArticleHeader header) {\n // 'Newgroups', 'From' and 'Subject' fields are mandatory\n if (!(header.contains(\"Newsgroups\") && header.contains(\"From\") && header.contains(\"Subject\"))) {\n return false;\n }\n\n return isValidFrom(header.get(\"From\")) && newsgroupValidator.isValidListOfNewsgroupNames(header.get(\"Newsgroups\"));\n }", "private RentSettings() throws DateFormatException {\r\n \tthis.rentDate = \"\";\r\n \tthis.dueDate = \"\";\r\n }", "public void createDataFeeds(){\n\n\t\tfinal MyDbHelper helper = new MyDbHelper(this);\n\t\tfinal SQLiteDatabase db = helper.getWritableDatabase();\n\t\t\n\t\tContentValues values = new ContentValues();\n\t\t\n\t\tDummyFeed.createFeeds(db, values);\t\t\n\t\t\n\t\tdb.close();\n\t\t\n\t}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "private String clean_fields(String data) {\n\t\treturn data.replace(\"<\", \"\").replace(\">\", \"\");\n\t}", "private void populateEmptyFields(DublinCoreMetadataCollection dublinCoreMetadata, Set<String> emptyFields) {\n for (String field : emptyFields) {\n try {\n dublinCoreMetadata.addField(dublinCoreProperties.get(field), \"\", getListProvidersService());\n } catch (Exception e) {\n logger.error(\"Skipping metadata field '{}' because of error: {}\", field, ExceptionUtils.getStackTrace(e));\n }\n }\n }", "private void ValidateEditTextFields() {\n\tfor (int i = 0; i < etArray.length; i++) {\n\t if (etArray[i].getText().toString().trim().length() <= 0) {\n\t\tvalidCustomer = false;\n\t\tetArray[i].setError(\"Blank Field\");\n\t }\n\t}\n\n\tif (etPhoneNumber.getText().length() != 11) {\n\t validCustomer = false;\n\t etPhoneNumber.setError(\"Invalid Phone Number\");\n\t}\n\n\tif (etEmergencyNumber.getText().length() != 11) {\n\t validCustomer = false;\n\t etEmergencyNumber.setError(\"Invalid Phone Number\");\n\t}\n\n\tif (calendarDob == null) {\n\t validCustomer = false;\n\t}\n }", "private boolean validate() {\n if (activityAddTodoBinding.etTitle.getText().toString().trim().isEmpty())\n {\n activityAddTodoBinding.etTitle.setError(getString(R.string.enter_title));\n return false;\n }\n else if (activityAddTodoBinding.etDesc.getText().toString().trim().isEmpty())\n {\n activityAddTodoBinding.etDesc.setError(getString(R.string.enter_desc));\n return false;\n }\n return true;\n }", "void initializeMandatorySectionFields();", "private boolean isMissingProjectData(String title, String assignee, LocalDate deadline) {\n return isEmptyText(title) || isEmptyText(assignee) || isEmptyText(deadline.toString());\n }", "@Override\n\tpublic void characters(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\tsuper.characters(ch, start, length);\n\t\tsb.append(ch, start, length);\n\t\tString s = sb.toString();\n\t\tif (tag.equals(\"id\") && isFeed) {\n\t\t\tcommentsInfo.setId(Integer.parseInt(s));\n\t\t} else if (tag.equals(\"title\") && isFeed) {\n\t\t\tcommentsInfo.setTitle(s);\n\t\t} else if (tag.equals(\"published\") && isFeed) {\n\t\t\tcommentsInfo.setPublished(s);\n\t\t} else if (tag.equals(\"updated\") && isFeed) {\n\t\t\tcommentsInfo.setUpdated(s);\n\t\t} else if (tag.equals(\"name\") && isFeed) {\n\t\t\tcommentsInfo.setAuthorName(s);\n\t\t} else if (tag.equals(\"uri\") && isFeed) {\n\t\t\tcommentsInfo.setAuthorUri(s);\n\t\t} else if (tag.equals(\"content\") && isFeed) {\n\t\t\tcommentsInfo.setContent(s);\n\t\t}\n\n\t}", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }" ]
[ "0.5909116", "0.5863", "0.5610276", "0.55942667", "0.55750525", "0.5329123", "0.52430755", "0.5239124", "0.5221562", "0.51543444", "0.50521827", "0.5019765", "0.50075537", "0.5000027", "0.49639648", "0.49304798", "0.49148625", "0.48980266", "0.48863727", "0.48600626", "0.48364198", "0.48269948", "0.48209888", "0.4809091", "0.47975695", "0.47579917", "0.47561544", "0.4751404", "0.4746833", "0.4731173", "0.47311282", "0.47281054", "0.47242573", "0.47141185", "0.47110492", "0.4703457", "0.47021276", "0.4700292", "0.469572", "0.4680022", "0.4677956", "0.4671563", "0.466237", "0.46573704", "0.46480948", "0.46273294", "0.4622112", "0.46190983", "0.46189365", "0.46182874", "0.46145505", "0.46047005", "0.459591", "0.4590726", "0.45876956", "0.4584111", "0.4579123", "0.45770603", "0.45691508", "0.45576525", "0.4557128", "0.45543042", "0.4550439", "0.454226", "0.45288977", "0.45239335", "0.45213377", "0.4510248", "0.4503494", "0.4500138", "0.44979304", "0.44955778", "0.44947615", "0.44767717", "0.4473384", "0.4471884", "0.4465702", "0.4463077", "0.44627506", "0.44528767", "0.44515604", "0.44457752", "0.44424406", "0.4440528", "0.44401568", "0.44366315", "0.44338617", "0.4431975", "0.4422169", "0.44220206", "0.44213197", "0.44171616", "0.44168794", "0.4413933", "0.44120255", "0.44104198", "0.4410066", "0.44096226", "0.44095308", "0.4403124", "0.4400163" ]
0.0
-1
Created by zhaopeng on 2017/6/16.
public interface SendService { public void sendMessage(RemotingCommand remotingCommand, long timeout); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "public void mo38117a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo4359a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo6081a() {\n }", "private void init() {\n\n\n\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void initialize() { \n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "public void mo55254a() {\n }", "@Override\n public void init() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}" ]
[ "0.6122166", "0.60172033", "0.5886874", "0.5831145", "0.5831145", "0.5806034", "0.5767783", "0.57332885", "0.5719543", "0.5705356", "0.56908447", "0.5660277", "0.56517994", "0.5650177", "0.56389385", "0.5631137", "0.56306124", "0.5623244", "0.56135416", "0.560911", "0.5601581", "0.5601494", "0.55990034", "0.55984414", "0.5596924", "0.5596924", "0.5596924", "0.5596924", "0.5596924", "0.5589738", "0.5583088", "0.5579887", "0.55727565", "0.55663943", "0.55593157", "0.5545098", "0.5543303", "0.553488", "0.55346674", "0.5517802", "0.5517802", "0.5517802", "0.5517802", "0.5517802", "0.5517802", "0.5514894", "0.5514894", "0.55134845", "0.55134845", "0.55134845", "0.54952466", "0.54952466", "0.549292", "0.549292", "0.549292", "0.54813665", "0.5476363", "0.54762393", "0.54762393", "0.54762393", "0.54730606", "0.5470573", "0.54594594", "0.5458038", "0.54569817", "0.54569817", "0.5454115", "0.5445938", "0.54280126", "0.5423842", "0.54134023", "0.54134023", "0.54134023", "0.54134023", "0.54134023", "0.54134023", "0.54134023", "0.54095083", "0.54023975", "0.5400176", "0.5384854", "0.53814906", "0.53806007", "0.5377137", "0.5359348", "0.5355269", "0.53537834", "0.53447163", "0.5336828", "0.53343683", "0.5333501", "0.5322528", "0.53073096", "0.5306843", "0.5303334", "0.52913606", "0.5290374", "0.5288806", "0.52835566", "0.5282766", "0.5282766" ]
0.0
-1
Method to add node to the graph
public Node<E> addNode(E value){ Node<E> newNode = new Node<>(value); if(value != null){ nodes.putIfAbsent(newNode, new HashSet<>()); } return newNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "public void addNode(String node) {\n this.graph.put(node, new LinkedList<>());\n }", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}", "public void addNode(GraphNode<T> node) {\n\tmRoot.addNode(node);\n\tmNodesCount++;\n }", "private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}", "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "void addNode(int node);", "public void addNode(Node node){subNodes.add(node);}", "void addNode(String node);", "public void addNode(Character charId, Node node) {\n graph.put(charId, node);\n }", "private void addNode() {\n // Add GUI node\n int nodeCount = mGraph.getNodeCount();\n Node node = mGraph.addNode(String.valueOf(nodeCount));\n node.addAttribute(\"ui.label\", nodeCount);\n\n // Add Node_GUI node for algorithm to read from\n Node_GUI listNode = new Node_GUI();\n mNodeList.add(listNode);\n }", "public void addNode(NodeImpl node) {\n supervisedNodes.add(node);\n \n colorNodes();\n shortenNodeLabels();\n colorNodeLabels();\n colorNodeLabelBorders();\n }", "public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}", "public void addNode(Node node) {\n\t\tnodes.add(node);\n\t}", "protected void addingNode( SearchNode n ) { }", "public void addNode(final Instruction instruction) {\n instructions.add(instruction);\n if (prevInstruction != null) {\n addEdge(prevInstruction, instruction);\n }\n prevInstruction = instruction;\n }", "public void addNode(Node node) {\n\t\tthis.nodes.add(node);\n\t}", "@Override\n\tpublic void addNode(node_data n) {\n\t\tif (Nodes.keySet().contains(n.getKey())) {\n\t\t\tSystem.err.println(\"Err: key already exists, add fail\");\n\t\t\treturn;\n\t\t}\n\t\tif(n.getWeight()<=0)\n\t\t{\n\t\t\tSystem.err.println(\"The weight must be positive! . The node hadn't been added successfully..\");\n\t\t\treturn;\n\t\t}\n\t\tthis.Nodes.put(n.getKey(), n);//n used to be casted into (node)\n\t\tthis.Edges.put(n.getKey(), new HashMap<Integer,edge_data>());\n\t\tMC++;\n\n\t}", "public void nodeAdded(GraphEvent e);", "public void addNode(Node p_node) {\n\t\tnodes.add(p_node);\n\t}", "boolean addNode(long idNum, String label);", "public void add(DefaultGraphCell node) {\n nodes.add(node);\n groupObject.add(node);\n fragmentName.append(((NodeData)node.getUserObject()).getName() + \" \");\n \n }", "String addNewNode(Double lat, Double lon);", "public void addVertex();", "public void addNode (NodeState node) throws RepositoryException, IOException\n\t{\n\t}", "void addNode(Entity entity) {\n\t\tProcessing.nodeSet.add(entity);\n\t\tSystem.out.println(\"the entity was successfully added to the network.\");\n\t}", "@Override\n\tpublic boolean addNode(N node)\n\t{\n\t\tif (node == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (nodeEdgeMap.containsKey(node))\n\t\t{\n\t\t\t// Node already in this Graph\n\t\t\treturn false;\n\t\t}\n\t\tnodeList.add(node);\n\t\tnodeEdgeMap.put(node, new HashSet<ET>());\n\t\tgcs.fireGraphNodeChangeEvent(node, NodeChangeEvent.NODE_ADDED);\n\t\treturn true;\n\t}", "public void addNode(int key)\n{\n Node n1 = new Node(key);\n\t\n\tif(!getNodes().containsKey(n1.getKey())) \n\t{\n\tmc++;\n\tthis.getNodes().put(n1.getKey(),n1);\n\t\t\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"Node already in the graph\");\n\t}\n}", "public void addNode(INode node) {\r\n\t\tnodeList.add(node);\r\n\t}", "private void addNode(Node node)\n\t{\n\t\tif (node == null)\n\t\t\treturn;\n\t\tthis.nodes[node.getRowIndex()][node.getColumnIndex()] = node;\n\t}", "public boolean addNode(DAGNode node) {\r\n\t\treturn true;\r\n\t}", "void addNode(int weight) \n {\n Node newNode = new Node(this.numNodes, weight);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n \n }", "private void add_node(Node node) {\n if (this.nodes.get(node.name) != null) {\n throw new RuntimeException(\"Node \" + node.name + \" already exists!\");\n }\n this.nodes.put(node.name, node);\n this.bars.put(node.name, new TreeMap<String, Bar>());\n }", "public Node appendNode(Node node);", "public boolean addNode(GraphNode node){\n if(!graphNodes.contains(node)){\n graphNodes.add(node);\n return true;\n }\n return false;\n }", "public void addEdge(Node from, Node to);", "@Override\n public void visit(Node node) {\n nodes.add(node);\n }", "boolean addNode(N node);", "private void addNode(String name)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MERGE (a:Node {value: {x}})\", parameters(\"x\", name));\n tx.success(); // Mark this write as successful.\n }\n }\n }", "public void addNode(DijkstraNode node) {\n\t\tthis.cache.put(node.getCoordinate(), node);\n\t}", "void add(Vertex vertex);", "public abstract void addChild(Node node);", "void addFlight(Node toNode);", "public String addNode(PlainGraph graph, String nodeName, String label) {\n Map<String, PlainNode> nodeMap = graphNodeMap.get(graph);\n if (!nodeMap.containsKey(nodeName)) {\n PlainNode node = graph.addNode();\n\n // if a label is given add it as an edge\n if (label != null) {\n if (!label.contains(\":\")) {\n // if the label does not contain \":\" then 'type:' should be added\n label = String.format(\"%s:%s\", TYPE, label);\n }\n graph.addEdge(node, label, node);\n }\n\n nodeMap.put(nodeName, node);\n }\n return nodeName;\n }", "public Node addNode(String node) {\n return nodeRepository.save(new Node(node));\n }", "public void addNode(ConfigurationNode node)\n {\n if (node == null || node.getName() == null)\n {\n throw new IllegalArgumentException(\n \"Node to add must have a defined name!\");\n }\n node.setParentNode(null); // reset, will later be set\n\n if (nodes == null)\n {\n nodes = new ArrayList<ConfigurationNode>();\n namedNodes = new HashMap<String, List<ConfigurationNode>>();\n }\n\n nodes.add(node);\n List<ConfigurationNode> lst = namedNodes.get(node.getName());\n if (lst == null)\n {\n lst = new LinkedList<ConfigurationNode>();\n namedNodes.put(node.getName(), lst);\n }\n lst.add(node);\n }", "@Override\n public void addNode(node_data n) {\n this.modeCount += this.nodes.putIfAbsent(n.getKey(), n) == null ? 1 : 0; // if the node was already in the graph - it will simply do nothing, if it wasn't - it will add it to the graph and increment modeCount by 1\n }", "public boolean addNode(T node) {\n\t\tif (node == null) {\n\t\t\tthrow new NullPointerException(\"The input node cannot be null.\");\n\t\t}\n\t\tif (graph.containsKey(node))\n\t\t\treturn false;\n\n\t\tgraph.put(node, new HashMap<T, Path>());\n\t\treturn true;\n\t}", "@POST\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic Response addNode(Entity entity) {\n\t\tif(currentGraph != null) {\n\t\t\tcurrentGraph.agregarNodo(entity);\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph)\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(400)\n\t\t\t\t\t.build();\n\t\t}\n\n\t}", "void addVertex(Vertex v);", "protected void addNode (Node node, int index)\n {\n Node currentNode = adjacencySequences[index];\n if (currentNode == null)\n adjacencySequences[index] = node;\n else\n {\n Node previousNode = null;\n while (currentNode != null && currentNode.edgeWeight < node.edgeWeight)\n {\n previousNode = currentNode;\n currentNode = currentNode.nextNode;\n }\n\n if (previousNode == null)\n adjacencySequences[index] = node;\n else\n previousNode.nextNode = node;\n \n node.nextNode = currentNode;\n }\n }", "protected void addNode(INode node) {\n\n if (node != null) {\n\n this.ids.add(node.getID());\n this.nodeMap.put(node.getID(), node);\n }\n }", "private Node addNode(String nodeName)\r\n\t{\r\n\t final Node n = new Node(nodeName, attributes, numNodes());\r\n\t if (nodeMap.put(nodeName, n) != null)\r\n\t\tthrow new RuntimeException(\"Node <\"+n+\"> already exists!\");\r\n\t return n;\r\n\t}", "public boolean add(Node n) {\n\t\t\n\t\t//Validate n is not null\n\t\tif (n == null) { \n\t\t\tSystem.out.println(\"Enter a valid node\");\n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//If the node is present in the network return\n\t\tif (nodes.contains(n)) {\n\t\t\tSystem.out.println(\"Node name already exists\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Add the node to the network, with a new array for its neighbors\n\t\tnodes.add(n);\n\t\t\n\t\t//Successfully added\n\t\treturn true;\n\t}", "public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }", "public static void addNode(String nodeId) {\n\t\tif (con.isConnected()) {\n\t\t\t// Create and publish\n\t\t\tConfigureForm form = new ConfigureForm(FormType.submit);\n\t\t\tform.setPersistentItems(false);\n\t\t\tform.setSubscribe(true);\n\t\t\tform.setDeliverPayloads(true);\n\t\t\tform.setAccessModel(AccessModel.open);\n\t\t\tform.setPublishModel(PublishModel.open);\n\n\t\t\t// add node\n\t\t\ttry {\n\t\t\t\tLeafNode myNode = (LeafNode) manager.createNode(nodeId, form);\n\t\t\t\tSystem.out.println(\"node created: \" + nodeId);\n\t\t\t} catch (XMPPException e1) {\n\t\t\t\tSystem.out.println(\"creating/retrieving node fails:\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}", "public boolean addNode(NodeType node) {\n\t\treturn false;\n\t}", "private void addNode(DLinkedNode node){\n node.pre = head;\n node.post = head.post;\n\n head.post.pre = node;\n head.post = node;\n }", "public void add(NODE node) {\n root = root == null ? node : root.add(node);\n }", "public void addNode(byte b, Node node) {\n nodes.put(b, node);\n }", "void add(Edge edge);", "public abstract boolean addEdge(Node node1, Node node2, int weight);", "private void addNode(DLinkedNode node) {\n\t\t\tnode.pre = head;\n\t\t\tnode.post = head.post;\n\n\t\t\thead.post.pre = node;\n\t\t\thead.post = node;\n\t\t}", "void add(Member node, long now);", "public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }", "public void addNeighbor(Node node){\n neighbors.add(node);\n liveNeighbors.add(node);\n }", "public void addInputNode(Node node) {\n\t\t// nodes.add(node);\n\t\tnodeArray.add(node);\n\t}", "@Override\n public boolean addNode(String nodeName) throws NodeException {\n Node newNode = new Node(nodeName);\n\n if(!containsNode(newNode)) {\n nodes.add(new Node(nodeName));\n return true;\n } else {\n // Dany prvek uz v listu existuje\n throw new NodeException(\"Vámi zadaný prvek už v listu existuje!\");\n }\n }", "void add(int vertex);", "public void addChild(Node node){\n children.add(node);\n \n }", "public int addNode(node_type node) {\n if (node.getIndex() < (int) nodeVector.size()) {\n //make sure the client is not trying to add a node with the same ID as\n //a currently active node\n assert nodeVector.get(node.getIndex()).getIndex() == invalid_node_index :\n \"<SparseGraph::AddNode>: Attempting to add a node with a duplicate ID\";\n\n nodeVector.set(node.getIndex(), node);\n\n return nextNodeIndex;\n } else {\n //make sure the new node has been indexed correctly\n assert node.getIndex() == nextNodeIndex : \"<SparseGraph::AddNode>:invalid index\";\n\n nodeVector.add(node);\n edgeListVector.add(new EdgeList());\n\n return nextNodeIndex++;\n }\n }", "void addNode(CommunicationLink communicationLink)\n {\n int nodeId = communicationLink.getInfo().hashCode();\n assert !nodeIds.contains(nodeId);\n nodeIds.add(nodeId);\n allNodes.put(nodeId, communicationLink);\n }", "@PostMapping(path = \"/\")\n public @ResponseBody String addNode(@RequestBody Node node){\n\n return nodeService.addNode(node);\n }", "@Override\n public boolean addNode(@Nonnull LinkNode node, @Nullable StandardPathComponent path) {\n if (path == null || path.isEmpty()) return false;\n if (this.linkNodes.containsKey(path) || this.linkNodes.containsValue(node)) return false;\n this.linkNodes.put(path, node);\n this.linkNodesCopy = ImmutableMap.copyOf(this.linkNodes);\n return true;\n }", "private void addNode(int nodeId, short startNodeOutgoingNodes) {\n if (!nodes.containsKey(nodeId)) {\n statistic.log(Type.LOADED_NODES);\n nodes.put(nodeId, new NodeBINE(nodeId, startNodeOutgoingNodes));\n maxNodeSize = Math.max(maxNodeSize,nodes.size());\n }\n }", "public void addCurrentNode(String currentNodeID)\r\n {\r\n visitedNodes.add(currentNodeID);\r\n }", "@Override\n\tpublic void putNode(N node) {\n\t\t\n\t}", "TreeNode addChild(TreeNode node);", "void addHasNodeID(Integer newHasNodeID);", "public boolean addNode(Integer id, String nodeName)\r\n {\r\n System.out.printf (\"UGraph: Node %d added named %s\\n\", id, nodeName);\r\n if (uNodes.put( id, new UNode( id, nodeName)) == null) { \r\n return true;\r\n }\r\n \r\n return false;\r\n }", "void addEdge(int source, int destination, int weight);", "public void add(DNode node)\n\t{\n\t\tif(first==null)\n\t\t{\n\t\t\tfirst=node;\n\t\t\t//System.out.println(\"add first\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//System.out.println(\"add next\");\n\t\t\tDNode tem=first;\n\t\t\twhile(tem.nextDNode!=null)\n\t\t\t{\n\t\t\t\ttem=tem.nextDNode;\n\t\t\t}\n\t\t\ttem.nextDNode=node;\n\t\t}\n\t}", "public void addNode(String ip, int port) throws UnknownHostException {\t\r\n\t\tNodeRef ref = new NodeRef(ip, port); // create data node reference\r\n\t\tnodeMap.put(ref.getIp().getHostAddress(), ref);\r\n\t}", "@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}", "public Node addNode(String nodeName, Attributes a) \r\n {\r\n\tnodes = null;\r\n\treturn ntMap.get(a.getName()).addNode(nodeName);\r\n }", "private Graph<Node, DefaultEdge> addNodes(Graph<Node, DefaultEdge> g) {\n List<Node> nodes = nodeRepository.findAll();\n nodes.forEach(g::addVertex);\n return g;\n }", "public INode addOrGetNode(String label);", "public void addNode(org.ow2.petals.cloud.controllers.api.runtime.Runtime runtime) {\n if (runtime == null) {\n LOG.warn(\"Can not add a null runtime to the topology\");\n return;\n }\n\n LOG.debug(\"Adding node to the topology {}\", runtime);\n\n Iterator<NotificationListener> iter = topologyListeners.iterator();\n while(iter.hasNext()) {\n NotificationListener listener = iter.next();\n // TODO : Do it async...\n // TODO : Generics...\n listener.on(\"add\", runtime);\n }\n }", "public void addEdge(N startNode, N endNode, E label)\r\n/* 43: */ {\r\n/* 44: 89 */ assert (checkRep());\r\n/* 45: 90 */ if (!contains(startNode)) {\r\n/* 46: 90 */ addNode(startNode);\r\n/* 47: */ }\r\n/* 48: 91 */ if (!contains(endNode)) {\r\n/* 49: 91 */ addNode(endNode);\r\n/* 50: */ }\r\n/* 51: 92 */ ((Map)this.map.get(startNode)).put(endNode, label);\r\n/* 52: 93 */ ((Map)this.map.get(endNode)).put(startNode, label);\r\n/* 53: */ }", "protected void addNode( String workspaceName,\n NodeKey key,\n Path path,\n Name primaryType,\n Set<Name> mixinTypes,\n Properties properties ) {\n }", "@Override\n public void add(EventNode node) {\n nodes.add(node);\n // Invalidate the relations cache.\n //\n // NOTE: The reason we do not update the relations here is because the\n // node might not be finalized yet. That is, the node's transitions\n // might not be created/added yet, so at this point we do not know the\n // exact set of relations associated with this node.\n cachedRelations = null;\n }", "void addNodes(List<CyNode> nodes);", "public void tryAddNode(VK nodeKey, VV nodeValue) {\r\n if(!nodes.containsKey(nodeKey)){\r\n \tV vertex = vertexCtor.apply(nodeKey, nodeValue);\r\n nodes.put(nodeKey, vertex);\r\n heads.add(vertex);\r\n }\r\n }", "void addEdge(int x, int y);", "public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}", "public void add(int num){\r\n\t\t\tNode newNode = new Node(num);\r\n\t\t\tthis.addNode(newNode);\r\n\t\t}", "public void addNode(int data) {\n\t\t \n\t\tNode newNode = new Node(data);\n\t\t\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}", "public void addNode(String line)\n\t{\n\t\tScanner scanner = new Scanner(line);\n\t\tString name = scanner.next();\n\t\t\n\t\tStringTokenizer tokenizer = new StringTokenizer(line.substring(line.indexOf(' ') + 1), \",\");\n\t\t\n\t\tArrayList<String> values = new ArrayList<String>();\n\t\twhile (tokenizer.hasMoreTokens())\n\t\t\tvalues.add(tokenizer.nextToken());\n\t\t\n\t\tthis.nodes.put(name, new Node(name, values));\n\t}" ]
[ "0.7652992", "0.7593494", "0.75576216", "0.74996144", "0.7496916", "0.74492425", "0.74399203", "0.7403641", "0.7394253", "0.73735607", "0.7371398", "0.734503", "0.73221576", "0.7308676", "0.7277283", "0.72198075", "0.7214659", "0.7202154", "0.7173154", "0.71530706", "0.7134445", "0.7127827", "0.7110424", "0.7097702", "0.7084785", "0.7082154", "0.7068574", "0.70471793", "0.7026576", "0.69801", "0.6976575", "0.69441533", "0.68927634", "0.68845505", "0.68458736", "0.6811155", "0.67963535", "0.6771392", "0.67604375", "0.67514575", "0.67513937", "0.67503226", "0.6679628", "0.6656427", "0.665437", "0.6640201", "0.66372263", "0.661126", "0.66014314", "0.65938807", "0.6584961", "0.65785563", "0.65659374", "0.65615827", "0.6555045", "0.6541153", "0.65226805", "0.65024525", "0.6493904", "0.64888424", "0.6456952", "0.6449025", "0.6443258", "0.6414505", "0.6403984", "0.63822436", "0.63759184", "0.6373281", "0.6372896", "0.63605726", "0.6358871", "0.6353463", "0.6340803", "0.6322421", "0.6320555", "0.6315955", "0.63150775", "0.6282549", "0.6280882", "0.6274499", "0.6270862", "0.6270326", "0.6265399", "0.62622786", "0.62554353", "0.62486947", "0.6239026", "0.6228409", "0.62170315", "0.61945635", "0.6191753", "0.61905265", "0.6187104", "0.61832196", "0.6165849", "0.6155847", "0.6155846", "0.6151655", "0.61425096", "0.6122496" ]
0.6200229
89
Method to add edge to a node
public void addEdge(Node src, Node dest, int cost){ if(nodes.containsKey(src) && nodes.containsKey(dest)){ Edge newEdge = new Edge(src, dest, cost); nodes.get(src).add(dest); src.addNodeEdge(newEdge); Edge otherEdge = new Edge(dest, src, cost); nodes.get(dest).add(src); dest.addNodeEdge(otherEdge); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEdge(Node from, Node to);", "void add(Edge edge);", "void addEdge(int x, int y);", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "public void addEdge(int start, int end);", "public abstract boolean addEdge(Node node1, Node node2, int weight);", "public Edge<V> addEdge(V source, V target);", "boolean addEdge(E edge);", "public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}", "public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}", "void addEdge(int source, int destination, int weight);", "public abstract void addEdge(Point p, Direction dir);", "public void addEdge(Edge e){\n edgeList.add(e);\n }", "public void addEdge(int start, int end, double weight);", "public void addEdge(){\n Node[] newAdjacent = new Node[adjacent.length + 1];\n for (int i = 0; i < adjacent.length; i++) {\n newAdjacent[i] = adjacent[i];\n }\n adjacent = newAdjacent;\n }", "void addEdge(Edge e) {\n\t\t\tif(!_edges.containsKey(e.makeKey())) {\n\t\t\t\t_edges.put(e.makeKey(),e);\n\t\t\t\te._one.addNeighborEdge(e);\n\t\t\t\te._two.addNeighborEdge(e);\n\t\t\t}\n\t\t}", "void addEdge(Edge e) {\n if (e.getTail().equals(this)) {\n outEdges.put(e.getHead(), e);\n\n return;\n } else if (e.getHead().equals(this)) {\n indegree++;\n inEdges.put(e.getTail(), e);\n\n return;\n }\n\n throw new RuntimeException(\"Cannot add edge that is unrelated to current node.\");\n }", "public E addEdge(V tail, V head);", "void addEdge(JNode edge) {\n List<JNode> newEdges = this.getEdges();\n newEdges.add(edge);\n this.setEdges(newEdges);\n }", "protected void addEdge(CyEdge edge, LayoutNode v1, LayoutNode v2) {\n\tLayoutEdge newEdge = new LayoutEdge(edge, v1, v2);\n\tupdateWeights(newEdge);\n\tedgeList.add(newEdge);\n }", "public void addEdge(N startNode, N endNode, E label)\r\n/* 43: */ {\r\n/* 44: 89 */ assert (checkRep());\r\n/* 45: 90 */ if (!contains(startNode)) {\r\n/* 46: 90 */ addNode(startNode);\r\n/* 47: */ }\r\n/* 48: 91 */ if (!contains(endNode)) {\r\n/* 49: 91 */ addNode(endNode);\r\n/* 50: */ }\r\n/* 51: 92 */ ((Map)this.map.get(startNode)).put(endNode, label);\r\n/* 52: 93 */ ((Map)this.map.get(endNode)).put(startNode, label);\r\n/* 53: */ }", "public void addEdge(Integer id, UNode n1, UNode n2, String edge)\r\n {\r\n UEdge e = new UEdge(id, n1, n2, edge);\r\n n1.addOutEdge(e);\r\n n2.addInEdge(e);\r\n uEdges.put (id, e);\r\n }", "public void addEdge(Edge e) {\n incident.add(e);\n }", "public void addEdge(Edge e)\r\n\t{\n\t\tint v = e.either(), w = e.other(v);\r\n\t\tadj[v].add(e);\r\n\t\tadj[w].add(e);\r\n\t}", "public void addEdge(edge_type edge) {\n //first make sure the from and to nodes exist within the graph\n assert (edge.getFrom() < nextNodeIndex) && (edge.getTo() < nextNodeIndex) :\n \"<SparseGraph::AddEdge>: invalid node index\";\n\n //make sure both nodes are active before adding the edge\n if ((nodeVector.get(edge.getTo()).getIndex() != invalid_node_index)\n && (nodeVector.get(edge.getFrom()).getIndex() != invalid_node_index)) {\n //add the edge, first making sure it is unique\n if (isEdgeNew(edge.getFrom(), edge.getTo())) {\n edgeListVector.get(edge.getFrom()).add(edge);\n }\n\n //if the graph is undirected we must add another connection in the opposite\n //direction\n if (!isDirectedGraph) {\n //check to make sure the edge is unique before adding\n if (isEdgeNew(edge.getTo(), edge.getFrom())) {\n GraphEdge reversedEdge = new GraphEdge(edge.getTo(),edge.getFrom(),edge.getCost());\n edgeListVector.get(edge.getTo()).add(reversedEdge);\n }\n }\n }\n }", "void addEdge(Edge e) {\n edges.add(e);\n addVerticle(e.v1);\n addVerticle(e.v2);\n }", "public IEdge addEdge(String from, String to, Double cost);", "public void addEdge(FlowEdge e){\n int v = e.getFrom();\n int w = e.getTo();\n adj[v].add(e); //add forward edge\n adj[w].add(e); //add backward edge\n }", "private void addEdge(int from, int to, Edge e) {\n _edges.get(from).set(to, e);\n _edgeMap.put(e, new int [] {from, to});\n }", "public void addEdge(StubEdge e) {\n }", "public abstract boolean putEdge(Edge incomingEdge);", "public void addEdge(DrawView edge){\n drawnEdges.add(edge);\n }", "public boolean addEdge(T begin, T end, int weight);", "public void addEdge(DirectedEdge e) \n {\n int v = e.from();\n adj[v].add(e);\n E++;\n }", "public void addEdge(Edge edge){\n \n synchronized(vertexes){\n Long start = edge.getStart();\n Vertex sVertex = vertexes.get(start);\n if(sVertex != null){\n sVertex.addEdge(edge, true);\n }\n// if undirected graph then adds edge to the finish vertex too \n if(!edge.isDirected()){\n Long finish = edge.getFinish();\n Vertex fVertex = vertexes.get(finish);\n if(fVertex != null){\n fVertex.addEdge(edge, false);\n }\n }\n }\n \n }", "protected void addEdge(CyEdge edge) {\n\tLayoutEdge newEdge = new LayoutEdge(edge);\n\tupdateWeights(newEdge);\n\tedgeList.add(newEdge);\n }", "public void addEdge(String node1, String node2) {\n\r\n LinkedHashSet<String> adjacent = map.get(node1);\r\n// checking to see if adjacent node exist or otherwise is null \r\n if (adjacent == null) {\r\n adjacent = new LinkedHashSet<String>();\r\n map.put(node1, adjacent);\r\n }\r\n adjacent.add(node2); // if exist we add the instance node to adjacency list\r\n }", "void addNeighborEdge(Edge e) {\n\t\t\t_neighborEdges.put(e,false);\n\t\t}", "int addEdge(int tail, int head);", "void addEdge(int x,int y) {\n adj[x].add(y);\n }", "boolean addEdge(V v, V w);", "void addEdge(Vertex v1, Vertex v2, Double w) throws VertexNotInGraphException;", "public void addEdge(Edge e) {\n int v = e.either();\n int w = e.other(v);\n adj[v].add(e);\n adj[w].add(e);\n E++;\n }", "public void addEdge(Character sourceId, Character destinationId) {\n Node sourceNode = getNode(sourceId);\n Node destinationNode = getNode(destinationId);\n sourceNode.adjacent.add(destinationNode);\n }", "public boolean addEdge(T beg, T end);", "public void addEdge(int v1, int v2) {\r\n addEdge(v1, v2, null);\r\n }", "public boolean addEdge(Edge edge) {\r\n\t\treturn true;\r\n\t}", "public void addEdge(DocTokenInf newEdge) {\n\t\tlist[newEdge.end].put(newEdge);\n\t}", "public void addEdge(int u, int v, double w) {\n\t\t\n\t}", "public void addEdge(String inLabel, double inDistance, String inMode,\n int inTime, int inPeakTime, DSAGraphNode<E> inNode)\n {\n links.insertLast(inNode);\n DSAGraphEdge<E> edge = new DSAGraphEdge<E>(inLabel, inDistance, inMode,\n inTime, inPeakTime, this,\n inNode);\n edgeList.insertLast(edge);\n }", "@Override\n\tpublic boolean addEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (edgeList.contains(edge))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> graphNodes = edge.getAdjacentNodes();\n\t\tfor (N node : graphNodes)\n\t\t{\n\t\t\taddNode(node);\n\t\t\tnodeEdgeMap.get(node).add(edge);\n\t\t}\n\t\tedgeList.add(edge);\n\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_ADDED);\n\t\treturn true;\n\t}", "public void addEdge(int v1, int v2) {\n addEdge(v1, v2, null);\n }", "public void addEdge(int v1, int v2) {\n addEdge(v1, v2, null);\n }", "private Edge addEdge(Node source, Node dest, double weight)\r\n\t{\r\n\t final Edge newEdge = new Edge(edgeType, source, dest, weight);\r\n\t if (!eSet.add(newEdge))\r\n\t\tthrow new RuntimeException(\"Edge already exists!\");\r\n\t source.addEdge(newEdge);\n\t return newEdge;\r\n\t}", "public void treeEdge(Edge e) {}", "void addEdge(int from, int to) {\n\t\tadjList.get(from).add(to);\n\t}", "public void addEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge = new Edge(v1, v2, edgeInfo);\n if(adjLists[v1].contains(edge)){\n return;\n }\n adjLists[v1].addLast(edge);\n }", "EdgeNode(VertexNode correspondingVertex){\n setCorrespondingVertex(correspondingVertex);\n }", "public void addEdge(int v1, int v2) {\n\t\tedges[v1][v2] = 1;\n\t\tedges[v2][v1] = 1;\n\t\tsize++;\n\t}", "public Node(Edge edge) {\n this.edge = edge;\n }", "public void addEdge (E vertex1, E vertex2, int edgeWeight) throws IllegalArgumentException\n {\n if(vertex1 == vertex2)\n return;\n \n int index1 = this.indexOf (vertex1);\n if (index1 < 0)\n throw new IllegalArgumentException (vertex1 + \" was not found!\");\n \n int index2 = this.indexOf (vertex2);\n if (index2 < 0)\n throw new IllegalArgumentException (vertex2 + \" was not found!\");\n\n\n if (this.hasEdge (vertex1, vertex2))\n {\n this.removeNode (index1, index2);\n this.removeNode (index2, index1);\n }\n \n Node node = new Node(index2, edgeWeight);\n this.addNode(node, index1);\n node = new Node(index1, edgeWeight);\n this.addNode(node, index2);\n }", "public void addEdge( Edge edge ) {\r\n if ( edge == null ) return;\r\n edges.addElement(edge);\r\n }", "void addEdgeTo(char v, int e) {\r\n\t\t// does an edge to v already exist?\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tneighbor.edge = e;\r\n\t\t\t\tfindNeighbor(findVertex(v).inList, currentVertex.label).edge = e;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// add to current's inList\r\n\t\tNeighbor newNeighbor = new Neighbor(findVertex(v), e);\r\n\t\tcurrentVertex.outList.add(newNeighbor);\r\n\r\n\t\t// add to neighbor's outList\r\n\t\tNeighbor current = new Neighbor(currentVertex, e);\r\n\t\tnewNeighbor.vertex.inList.add(current);\r\n\r\n\t\tedges++;\r\n\t}", "public void addEdge(Vertex other) {\n edges.add(other);\n other.edges.add(this);\n }", "private void addEdgeWithInst(NasmInst source, NasmInst destination) {\n if (source == null || destination == null)\n throw new FgException(\"ERROR: Can't create an edge without a source and a destination\");\n Node from = inst2Node.get(source);\n Node to = inst2Node.get(destination);\n if (from == null || to == null)\n throw new FgException(\"ERROR: No nodes matching with given Source or destination \");\n graph.addEdge(from, to);\n }", "public void addEdge(String n1, String n2) {\n if (!this.graph.containsKey(n1)) {\n addNode(n1);\n }\n if (!this.graph.containsKey(n2)) {\n addNode(n2);\n }\n Edgeq edge = new Edgeq(n1, n2);\n this.graph.get(n1).add(edge);\n\n edge = new Edgeq(n2, n1);\n this.graph.get(n2).add(edge);\n }", "private void addEdge(int start, int end) {\n adjMatrix[start][end] = 1;\n // for undirected graph\n adjMatrix[end][start] = 1;\n }", "boolean addEdge(V v, V w, double weight);", "public void addEdge(Edge e) {\r\n int v = e.from();\r\n int w = e.to();\r\n validateVertex(v);\r\n validateVertex(w);\r\n adj[v].add(e);\r\n indegree[w]++;\r\n E++;\r\n }", "void addEdge(String origin, String destination, double weight){\n\t\tadjlist.get(origin).addEdge(adjlist.get(destination), weight);\n\t\tedges++;\n\t}", "public void addEdge(int source, int target, Cost w) {\n\t\tedges[source][target] = w;\n\t}", "@Override\n public void addEdge(V source, V destination, double weight)\n {\n super.addEdge(source, destination, weight);\n super.addEdge(destination, source, weight);\n }", "public void addEdge(Edge edgeToAdd){\n for(int i = 0; i<edges.size(); i++){\n Edge edge = edges.get(i);\n if(edge.end() == edgeToAdd.end()){\n edge.setWeight(edgeToAdd.weight()); // Change weight and return if edge is present\n return;\n }\n }\n this.edges.add(edgeToAdd); // Add edge normally\n }", "public void addEdge(DirectedEdge edge){\r\n\t\tmEdgeList.offer(edge);\r\n\t\t\r\n\t\tint src=edge.from();\r\n\t\tint dest = edge.to();\r\n\t\t\r\n\t\tmVisitStatus.put(src,false);\r\n\t\tmVisitStatus.put(dest,false);\r\n\t\t\r\n\t\tmVertexList.add(src);\r\n\t\tmVertexList.add(dest);\r\n\t\t\r\n\t\t/* Forward Edge */\r\n\t\tList<DirectedEdge> edgeList = adjList.get(src);\r\n\t\tif(edgeList==null)\r\n\t\t\tedgeList = new ArrayList<DirectedEdge>();\r\n\t\t\r\n\t\tedgeList.add(edge);\r\n\t\tadjList.put(src, edgeList);\r\n\t}", "public void addEdge(int v1, int v2) {\r\n\t\tadjList[v1].add(v2);\r\n\t}", "public Edge addEdge(EdgeType et, Node source, Node dest, double weight)\r\n {\r\n\tfinal String edgeTypeName = et.getName();\r\n Edge existingEdge = getEdge(edgeTypeName, source, dest);\r\n if (existingEdge == null)\r\n {\r\n existingEdge = ethMap.get(edgeTypeName).addEdge(source, dest, weight);\r\n edges = null;\r\n }\r\n else\r\n existingEdge.addWeight(weight);\n return existingEdge;\r\n }", "public Edge addEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tif(edges.add(edge)) {\n\t\t\t\n\t\t\t// The weight is only updated if the edge was not in the graph\n\t\t\tweights.put(edge.hashCode(), DEFAULT_WEIGHT);\n\t\t}\n\t\treturn edge;\n\t}", "public void insert(Edge edge){\n edges[edge.getSource()].add(edge);\n if (isDirected()){\n edges[edge.getDest()].add(new Edge(edge.getDest(), edge.getSource(),edge.getWeight()));\n }\n }", "public Edge addEdge(Id nodeAIn, Id nodeBIn){//adds an edge to the list\n\t\tint i;\n\t\tEdge e = null;\n\t\tfor(i = 0; i < listOfEdges.size(); i++){\n\t\t\te = listOfEdges.get(i);\n\t\t\tif(e==null) continue;\n\t\t\tif((nodeAIn.compare(e.getNodeA()) && nodeBIn.compare(e.getNodeB())) || (nodeBIn.compare(e.getNodeA()) && nodeAIn.compare(e.getNodeB()))) break;\n\t\t}\n\t\tif(i < listOfEdges.size()){ // found duplicate\n\t\t\t//System.out.println(\"found dupe\");\n\t\t\treturn e;\n\t\t}\n\t\tNode A = returnNodeById(nodeAIn);\n\t\tNode B = returnNodeById(nodeBIn);\n\t\tif(A == null || B == null) return null;\n\t\tedge_count++;\n\t\tfor(; edge_arrayfirstopen < edge_arraysize && listOfEdges.get(edge_arrayfirstopen) != null; edge_arrayfirstopen++);\n\t\tif(edge_arrayfirstopen >= edge_arraysize){\t//resize\n\t\t\tedge_arraysize = edge_arrayfirstopen+1;\n\t\t\tlistOfEdges.ensureCapacity(edge_arraysize);\n\t\t\tlistOfEdges.setSize(edge_arraysize);\n\t\t}\n\t\tId eid = new Id(edge_arrayfirstopen, edge_count);\n\t\te = new Edge(nodeAIn, nodeBIn, eid);\n\t\tlistOfEdges.set(edge_arrayfirstopen, e);\n\t\t\n\t\tif(edge_arraylasttaken < edge_arrayfirstopen) edge_arraylasttaken = edge_arrayfirstopen; //todo redo\n\n\t\tA.addEdgeId(eid);\n\t\tB.addEdgeId(eid);\n\t\te.updateLength(this);\n\t\treturn e;\n\t}", "public void addEdge( EdgeIntf edge ) throws Exception {\r\n DirectedEdge dEdge = ( DirectedEdge ) edge;\r\n Vertex fromVertex = dEdge.getSource();\r\n Vertex toVertex = dEdge.getSink();\r\n\r\n if( !isPath( toVertex, fromVertex ))\r\n super.addEdge( dEdge );\r\n else\r\n throw new CycleException();\r\n }", "void addEdge(int vertex1, int vertex2){\n adjList[vertex1].add(vertex2);\n adjList[vertex2].add(vertex1);\n }", "Edge createEdge(Vertex src, Vertex tgt, boolean directed);", "protected void addEdge(IEdge edge) {\n\n if (edge != null) {\n\n this.ids.add(edge.getID());\n this.edgeMap.put(edge.getID(), edge);\n }\n }", "public void addEdge(Edge edge) {\n\t\tthis.edges.add(edge);\n\t\tnrOfEdges++;\n\t}", "public void addVirtualEdge(E e){\n\t\tedges.add(e);\n\t\tvirtualEdges.add(e);\n\t}", "@Override\n\tpublic void addEdge(Location src, Location dest, Path edge) {\n\t\tint i = locations.indexOf(src);\n\t\tpaths.get(locations.indexOf(src)).add(edge);\n\t}", "void addEdge(int a, int b) {\n Edge e = new Edge(V[a], V[b]);\n V[a].Adj.add(e);\n V[b].Adj.add(e);\n }", "private void addEdge() {\n childMatrix[randomParent][childMatrix[randomParent][0]] = randomChild;\n childMatrix[randomParent][0]++;\n parentMatrix[randomChild][parentMatrix[randomChild][0]] = randomParent;\n parentMatrix[randomChild][0]++;\n }", "public boolean addEdge(String id1, String id2)\n\t{\n\t\treturn addEdge(id1, id2, null);\n\t}", "void addEdge(Vertex u, Vertex v) {\r\n\t\tu.addNeighbor(v);\r\n\t}", "private void addEdge(int node1, int node2, int cost, int bandwidth) throws IllegalArgumentException {\n // We can't add edges between non-existent nodes\n int nodeCount = mGraph.getNodeCount();\n if (node1 >= nodeCount || node2 >= nodeCount) {\n throw new IllegalArgumentException();\n }\n\n // Add forward edge\n int edgeCount = mGraph.getEdgeCount() / 2;\n\n Edge forward = mGraph.addEdge(String.valueOf(edgeCount + \"f\"), node1, node2, true);\n forward.addAttribute(\"ui.label\", String.valueOf(edgeCount));\n forward.addAttribute(\"edge.cluster\", String.valueOf(edgeCount));\n forward.addAttribute(\"cost\", cost);\n\n // Add backward edge\n Edge backward = mGraph.addEdge(String.valueOf(edgeCount + \"b\"), node2, node1, true);\n backward.addAttribute(\"edge.cluster\", String.valueOf(edgeCount));\n backward.addAttribute(\"cost\", cost);\n\n // Add edge to the SimpleEdge list\n mEdgeList.add(new SimpleEdge(node1, node2, cost, bandwidth));\n }", "void addEdge(SimpleVertex vertexOne, SimpleVertex vertexTwo, int weight) {\n\n\t\tSimpleEdge edge = new SimpleEdge(vertexOne, vertexTwo);\n\t\tedge.weight = weight;\n\t\t// edgeList.add(edge);\n\t\t// System.out.println(edge);\n\t\tvertexOne.neighborhood.add(edge);\n\n\t}", "private void addEdgeWithLabel(NasmInst source, NasmLabel destination) {\n if (source == null || destination == null)\n throw new FgException(\"ERROR: Can't create an edge without a source and a destination\");\n\n if (systemCalls.contains(destination.toString()))\n return; // System call: iprintLF, readline or atoi. No edge needed\n\n NasmInst destinationInst = label2Inst.get(destination.toString());\n if (destinationInst == null)\n throw new FgException(\"ERROR: No instruction matching with the given label\");\n addEdgeWithInst(source, destinationInst);\n }", "public void addEdge(Node n1, Node n2, int weight) {\n\t\tthis.edges.add(new Edge(n1, n2, weight));\n\t\tadjacencyList.get(n1.getIdNode()).add(new NodePair(n2.getIdNode(), weight));\n\n\n\t\tnrOfEdges++;\n\t}", "public void insert(Edge edge) {\r\n edges[edge.getSource()].add(edge);\r\n if (!isDirected()) {\r\n edges[edge.getDest()].add(new Edge(edge.getDest(),\r\n edge.getSource(),\r\n edge.getWeight()));\r\n }\r\n }", "@Override\n public void addEdge(E pEdge, TimeFrame tf) {\n \n // If The Edge ID is not initialized yet, initalialize it\n if (pEdge.getId() < 0) {\n int id = edgeIdGen.getNextAvailableID();\n pEdge.setId(id);\n mapAllEdges.add(id, pEdge);\n //System.out.println(\"\\t\\t\\t\\t\\t\\t====***************** DynamicGraph.addEdge() edge (id, mapAllEdges.size) = \" + id + \", \" + mapAllEdges.size());\n }\n // Adding to the adjacent list\n if (!darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).contains(pEdge)) {\n darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).add(pEdge);\n //System.out.println(\"\\t\\t\\t\\t\\t\\t====***************** DynamicGraph.addEdge() ading to darrGlobalAdjList \");\n if(!pEdge.isDirected() &&\n !darrGlobalAdjList.get(pEdge.getDestination().getId()).get(tf).contains(pEdge)) {\n darrGlobalAdjList.get(pEdge.getDestination().getId()).get(tf).add(pEdge);\n }\n }\n \n hmpGraphsAtTimeframes.get(tf).addEdge(pEdge);\n \n }", "public void addEdge( String sourceName, String destName , Double distance)\n {\n Vertex v = getVertex( sourceName );\n Vertex w = getVertex( destName );\n v.adjEdge.put(w.name, new Edge(w,distance) );\n \n // v.weightnext.put(w.name,(Double) distance);\n }", "public void addEdge(int v1, int v2, int weight) {\n\t\tedges[v1][v2] = weight;\n\t\tedges[v2][v1] = weight;\n\t\tsize++;\n\n\t}", "Edge(Node from,Node to, int length){\n this.source=from;\n this.destination=to;\n this.weight=length;\n }", "public boolean addEdge(String id1, String id2, Integer weight)\n\t{\n\t\t// if its a new edge, or a new edge weight\n\t\tif (!hasEdge(id1, id2) || (weight != null && edgeWeight(id1, id2) == null))\n\t\t{\n\t\t\tNode n1 = getNode(id1);\n\t\t\tNode n2 = getNode(id2);\n\t\t\tn1.addEdge(n2, weight);\n\t\t\tn2.addEdge(n1, weight);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void addEdge(int v1, int v2, Object edgeInfo) {\n //your code here\n \tfor (Edge e : myAdjLists[v1]) {\n \t\tif (e.to() == v2) {\n \t\t\te.setObjectInfo(edgeInfo);\n \t\t\treturn;\n \t\t}\n \t}\n \tEdge toAdd = new Edge(v1, v2, edgeInfo);\n \tmyAdjLists[v1].add(toAdd);\t\n }" ]
[ "0.83805084", "0.80521315", "0.8001569", "0.7861704", "0.7794815", "0.77245104", "0.7696741", "0.76866955", "0.7644573", "0.7636593", "0.76275074", "0.75618774", "0.7547222", "0.7524645", "0.7434033", "0.73865753", "0.73746824", "0.7302233", "0.7295931", "0.72894657", "0.7283001", "0.72672147", "0.72588396", "0.72564083", "0.72378844", "0.7233684", "0.72226346", "0.71871156", "0.7178737", "0.7165289", "0.71480745", "0.7135331", "0.7110467", "0.7089947", "0.7085524", "0.7076501", "0.70679295", "0.70111865", "0.70101094", "0.6990935", "0.69722486", "0.6965278", "0.6953071", "0.6929757", "0.69212687", "0.6897322", "0.689602", "0.6878271", "0.68745023", "0.68692017", "0.6860277", "0.6857656", "0.6857656", "0.6855061", "0.68445367", "0.68359286", "0.68337184", "0.68254197", "0.68133193", "0.6794643", "0.6792113", "0.67883086", "0.6774721", "0.6767513", "0.6736234", "0.6730339", "0.67064846", "0.67059803", "0.6704965", "0.670141", "0.6692639", "0.667646", "0.666864", "0.6660849", "0.6647029", "0.6646291", "0.66444457", "0.6644384", "0.6643263", "0.66318226", "0.6622459", "0.66115457", "0.66010565", "0.65976536", "0.6595559", "0.65902877", "0.65878826", "0.65805286", "0.65441984", "0.65411675", "0.6538321", "0.6533123", "0.6530422", "0.65250164", "0.6521197", "0.6519076", "0.6498181", "0.64975256", "0.649697", "0.64920264", "0.64838785" ]
0.0
-1
Method to return all nodes in the graph
public Set<Node<E>> getNodes(){ return nodes.keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Node> allNodes();", "public Set<String> getAllNodes() {\n return this.graph.keySet();\n }", "protected abstract Node[] getAllNodes();", "public List<INode> getAllNodes();", "@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();", "List<Node> getNodes();", "public List<Node> getNodes();", "public List<Node> getAllNodes() {\n return nodeRepository.findAll();\n }", "List<Node> nodes();", "public List<Node> getNodes() {\n List<Node> list = getNodes(false, false);\n return list;\n }", "public Collection<GraphNode> getGraphNodes() {\n\t\treturn graphNodeMap.values();\n\t}", "public ArrayList<GraphNode> getNodes() {\n return selectedNodes;\n }", "public Set<DefaultGraphCell> getNodes() {\n return nodes;\n }", "@Override\r\n\tpublic Iterable<Entity> getNodes()\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n public ArrayList<Node> getAllNodes() {\n return getAllNodesRecursive(root);\n\n }", "public List<TbNode> getAll() {\n return qureyNodeList(new NodeParam());\n }", "public Nodes nodes() {\n return this.nodes;\n }", "private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}", "@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }", "public Nodes getNodes()\n {\n return nodes;\n }", "public List<Nodes> getNodes() {\n return nodes;\n }", "private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }", "public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}", "@Override\n public Iterator<Node<E>> iterator() {\n return new ArrayList<Node<E>>(graphNodes.values()).iterator();\n }", "public HashSet<Node> getNodes(){\n\t\t\n\t\t//Return nodes hashset\n\t\treturn this.nodes;\n\t\t\n\t}", "public Node[] getNodes() {\n\t\treturn nodes;\n\t}", "List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "@Override\n public Collection<? extends INode> getNodes() {\n\n return new LinkedList<>(Collections.unmodifiableCollection(this.nodeMap\n .values()));\n }", "public MyArrayList<Node> getNodes() {\n return this.nodes;\n }", "public List<OSMNode> nodes() {\n return nodes;\n }", "java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();", "@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }", "@Override\n\tpublic synchronized Set<PetrinetNode> getNodes() {\n\t\tSet<PetrinetNode> nodes = new HashSet<PetrinetNode>();\n\t\tnodes.addAll(this.transitions);\n\t\tnodes.addAll(this.places);\n\t\treturn nodes;\n\t}", "public HashMap<Integer, Node> getNodeList()\n\t{\n\t\treturn nodeManager.getNodes();\n\t}", "public abstract List<AStarNode> getNeighbours();", "java.util.List<entities.Torrent.NodeId>\n getNodesList();", "@Override\n public Set<EventNode> getNodes() {\n return nodes;\n }", "public Node[] getNodes()\r\n {\r\n if(nodes == null)\r\n\t{\r\n\t nodes = new Node[numNodes()];\r\n\t int i = 0;\r\n\t for (final NodeTypeHolder nt : ntMap.values())\r\n\t\tfor (final Node node : nt.getNodes())\r\n\t\t nodes[i++] = node;\r\n\t}\r\n return nodes.clone();\r\n }", "public Map<String, Node> nodes() {\n return this.nodes;\n }", "protected ArrayList<AStarNode> getNodes() {\n return nodes;\n }", "Iterable<Long> vertices() {\n return nodes.keySet();\n }", "public List<Node> getAll() throws SQLException {\n var nodes = new ArrayList<Node>();\n var statement = connection.createStatement();\n var result = statement.executeQuery(\"SELECT identifier, x, y, parentx, parenty, status, owner, description FROM nodes\");\n while (result.next()) {\n nodes.add(\n new Node(\n result.getInt(\"identifier\"),\n result.getInt(\"x\"),\n result.getInt(\"y\"),\n result.getInt(\"parentx\"),\n result.getInt(\"parenty\"),\n result.getString(\"status\"),\n result.getString(\"owner\"),\n result.getString(\"description\")\n )\n );\n }\n result.close();\n statement.close();\n return nodes;\n }", "List<CyNode> getNodeList();", "public LinkedList<AbstractNode> getNodes() {\n\t\treturn nodes;\n\t}", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> \n getNodeList();", "@GET\n\t@Produces(\"application/json\")\n\tpublic Response getGraphNodes() {\n\n\t\tif (currentGraph != null) {\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph.getNodes())\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(404)\n\t\t\t\t\t.entity(\"NO ESTA\")\n\t\t\t\t\t.build();\n\t\t}\n\n\t\t\n\t}", "public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }", "@Override\n public List<GraphNode> getNodes() {\n List<String> namesOfFiles = ProjectFileNamesUtil.getFileNamesFromProject(project.getBaseDir());\n this.relations = RelationsService.getRelations(project, namesOfFiles);\n List<GraphNode> nodes = new ArrayList<>();\n nodeHashTable = new Hashtable();\n nodeHashTable.clear();\n resultsOfRanTests = HashtableResultsUtil.copyHashtableTestResults(TestResultsCollector.getInstance().getTestResults());\n int i = 0;\n for (String nameOfFile : namesOfFiles){ //for each name of file\n String[] str = nameOfFile.split(\"/\");\n String file = str[str.length-1];\n Hashtable fileTestResults = (Hashtable) resultsOfRanTests.get(file.replace(\".py\",\"\"));\n if (nodeHashTable.get(file)!=null){ //a node with this name already exists\n file=file.concat(\" (\" + i++ + \")\");\n }\n CoverageNode node = new CoverageNode(file,nameOfFile);\n node.setCoverage(GetOnlyCoveragedFileNames.getCovForFile(file,project)); //get coverage\n node.getTypes().add(\"Coverage is: \" + node.getCoverage() + \"%.\");\n node.setColor(node.getCoverage()/10);\n if (fileTestResults != null) { //check for test changes in node\n node.setOutColorNumber(getNodeOutColor(fileTestResults));\n }\n HashMap<String, Object> properties = new HashMap<>();\n getPropertiesForNodes(properties, nameOfFile);\n ResultsPropertyContainer resultsPropertyContainer = new ResultsPropertyContainer(properties);\n node.setResultsPropertyContainer(resultsPropertyContainer);\n nodeHashTable.put(file, node);\n nodes.add(node);\n }\n if (HashtableResultsUtil.getInstance().getOnlyCoveraged()) { //this runs if we want only coveraged nodes\n nodes = doCleaning(nodes);\n }\n HashtableResultsUtil.getInstance().setNodes(nodes);\n return nodes;\n }", "public List<OSMNode> nonRepeatingNodes() {\n if (isClosed()) {\n return nodes.subList(0, nodes.size() - 1);\n } else {\n return nodes;\n }\n }", "@Override\n public int nodeCount() {\n return graphNodes.size();\n }", "@Override\n\tpublic int getNodes() {\n\t\treturn model.getNodes();\n\t}", "public List<Node> getNodes()\t{return Collections.unmodifiableList(nodes);}", "@Override\n\tpublic List<N> getNodeList()\n\t{\n\t\treturn new ArrayList<N>(nodeList);\n\t}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInterpretedBy_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "@Override\n public Collection<node_data> getV() {\n return this.nodes.values();\n }", "public Iterator<Node> getNodeIter() {\n\t\treturn nodes.iterator();\n\t}", "public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }", "public Iterator nodeIterator() { return nodes.keySet().iterator(); }", "public Graph getGraph();", "public ArrayList<Node> getListNodes(){\r\n return listNodes;\r\n }", "public static Collection<SxpNode> getNodes() {\n return Collections.unmodifiableCollection(NODES.values());\n }", "private List<Node> compute() {\n\t\t\tgetGraphFromResolvedTree(root);\n\t\t\tdepthFirst(root);\n\t\t\treturn result;\n\t\t}", "Set<Object> getAllCells() {\n Set<Object> ret = new HashSet<Object>();\n ret.addAll(getNodes());\n ret.addAll(getEdges());\n \n // ports\n for( DefaultGraphCell node : getNodes() ) {\n ret.add(node.getChildAt(0));\n }\n \n return ret;\n }", "@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }", "public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }", "String showAllNodes();", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Node<A>> neighbours(){\n\t\t\n\t\tArrayList<Node<A>> output = new ArrayList<Node<A>>();\n\t\t\n\t\tif (g == null) return output;\n\t\t\n\t\tfor (Object o: g.getEdges()){\n\n\t\t\t\n\t\t\tif (((Edge<?>)o).getTo().equals(this)) {\n\t\t\t\t\n\t\t\t\tif (!output.contains(((Edge<?>)o).getFrom()))\n\t\t\t\t\t\toutput.add((Node<A>) ((Edge<?>)o).getFrom());\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\t\treturn output;\n\t\t\n\t}", "public List<NetworkNode> listNetworkNode();", "@Override\n\tpublic Collection<node_data> getV() {\n\t\treturn Nodes.values();\n\t}", "public int[] getFinalNodes() {\n return IntStream.range(0, links.length)\n .filter(i -> getNextNodes(i).length == 0)\n .toArray();\n }", "private static int[] nodes(graph g) {\n int size = g.nodeSize();\n Collection<node_data> V = g.getV();\n node_data[] nodes = new node_data[size];\n V.toArray(nodes); // O(n) operation\n int[] ans = new int[size];\n for(int i=0;i<size;i++) {ans[i] = nodes[i].getKey();}\n Arrays.sort(ans);\n return ans;\n }", "java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();", "List<String> getNodeNames()\n {\n return allNodes.values().stream().map(CommunicationLink::getName).collect(Collectors.toList());\n }", "@Override\r\n\tpublic List<JedisPool> getNodes() {\n\t\treturn Collections.emptyList();\r\n\t}", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> getNodeList() {\n if (nodeBuilder_ == null) {\n return java.util.Collections.unmodifiableList(node_);\n } else {\n return nodeBuilder_.getMessageList();\n }\n }", "public List<GraphNode> getGraphNodesDFS(GraphNode root){\n List<GraphNode> graphNodeList = new ArrayList<>();\n depthFirstTraversal(root, graphNodeList);\n return graphNodeList;\n }", "public Collection<node_info> getV()\n{\n\treturn this.getNodes().values();\n}", "io.netifi.proteus.admin.om.Node getNodes(int index);", "private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllEncodedBy_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), ENCODEDBY);\r\n\t}", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> getNodeList() {\n return node_;\n }", "public ReadOnlyIterator<ContextNode> getAllContextNodes();", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllPartOfSet_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), PARTOFSET);\r\n\t}", "public HashSet<N> getNodes()\r\n/* 99: */ {\r\n/* 100:182 */ assert (checkRep());\r\n/* 101: */ \r\n/* 102:184 */ return new HashSet(this.map.keySet());\r\n/* 103: */ }", "public Iterator<LayoutNode> nodeIterator() {\n\treturn nodeList.iterator();\n }", "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInterpretedBy_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INTERPRETEDBY, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "public Set<Node<E>> getNeighbors(Node<E> node){\n Set<Node<E>> result = new HashSet<>();\n result = nodes.get(node);\n return result;\n }", "List<GraphEdge> getNeighbors(NodeKey key);", "public List<Node<T>> getNodesCollection() {\n if (root == null) {\n return new ArrayList<>();\n }\n\n ArrayList<Node<T>> nodesCollection = new ArrayList<>();\n\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n while (pendingNodes.size() > 0) {\n Node<T> currNode = pendingNodes.poll();\n nodesCollection.add(currNode);\n\n for (Node<T> child : currNode.getChildren()) {\n pendingNodes.add(child);\n }\n }\n\n return nodesCollection;\n }", "public abstract List<Node> getChildNodes();", "private List<Node> returnAllNodes(Node node) {\n List<Node> listOfNodes = new ArrayList<Node>();\n if (node != null) {\n listOfNodes.add(node);\n for (int i = 0; i < listOfNodes.size(); ++i) {\n Node n = listOfNodes.get(i);\n List<Node> children = n.children;\n if (children != null) {\n for (Node child : children) {\n if (!listOfNodes.contains(child)) {\n listOfNodes.add(child);\n }\n }\n }\n }\n }\n return listOfNodes;\n }", "public LinkedList<Node> getNodesToRoot()\n {\n LinkedList<Node> nodes = new LinkedList<>();\n Node node = this;\n for (;node != null;node = node.getParent())\n nodes.addFirst(node);\n return nodes;\n }", "@Override\r\n public Node[] getRootNodes() {\r\n return new Node[] {getNetworkNode()};\r\n }", "public Vector<Node> GetAdditionalSubNodes();", "java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList();", "public ParseTree getGraph() {\n return graph;\n }", "public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }", "@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }", "public Object[] getStartNodes ();" ]
[ "0.8200387", "0.8058597", "0.7921304", "0.78892684", "0.77797484", "0.7771333", "0.7724797", "0.76293707", "0.74934775", "0.74653095", "0.7451422", "0.72825366", "0.72782004", "0.71877575", "0.7186289", "0.7184858", "0.7162999", "0.7136602", "0.7105816", "0.7105722", "0.71032643", "0.70980704", "0.7098003", "0.7092639", "0.7089277", "0.7087757", "0.70569927", "0.70560664", "0.7047185", "0.70235837", "0.7022586", "0.6998039", "0.6958097", "0.6948727", "0.69310707", "0.6901414", "0.68908155", "0.68733096", "0.68389815", "0.6831661", "0.6825967", "0.68248755", "0.68116647", "0.67894316", "0.67880154", "0.6779319", "0.67323595", "0.67189646", "0.6662282", "0.66582984", "0.6654922", "0.6650085", "0.66476315", "0.6604699", "0.65855473", "0.6579051", "0.6574382", "0.65696144", "0.6531172", "0.6511149", "0.6505765", "0.6489524", "0.64709985", "0.646186", "0.6460884", "0.644361", "0.6429603", "0.64213794", "0.64178616", "0.64153254", "0.6406015", "0.6403149", "0.6391868", "0.6359615", "0.6355825", "0.6329074", "0.63241684", "0.63136125", "0.63094896", "0.62994516", "0.6293521", "0.62884724", "0.62552476", "0.62329555", "0.6227425", "0.6219512", "0.61979824", "0.6192904", "0.6179937", "0.6169838", "0.6167393", "0.6166541", "0.6165739", "0.6163886", "0.6150897", "0.6149021", "0.61466813", "0.61432874", "0.61313474", "0.61204666" ]
0.73291147
11
Method to return neighbors
public Set<Node<E>> getNeighbors(Node<E> node){ Set<Node<E>> result = new HashSet<>(); result = nodes.get(node); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<N> neighbors();", "private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }", "public List<Location> neighbors (Location pos);", "private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}", "public Iterable<Board> neighbors() {\n int[] pos = zeroPosition();\n int x = pos[0];\n int y = pos[1];\n\n Stack<Board> q = new Stack<>();\n if (x > 0) {\n q.push(twinBySwitching(x, y, x-1, y));\n }\n\n if (x < dimension() - 1) {\n q.push(twinBySwitching(x, y, x+1, y));\n }\n\n if (y > 0) {\n q.push(twinBySwitching(x, y, x, y-1));\n }\n\n if (y < dimension() - 1) {\n q.push(twinBySwitching(x, y, x, y+1));\n }\n\n return q;\n }", "public MapCell[] getNeighbors(){\n\t\tMapCell[] neighbors = new MapCell[4];\n\t\tneighbors[0] = getNeighbor(\"east\");\n\t\tneighbors[1] = getNeighbor(\"north\");;\n\t\tneighbors[2] = getNeighbor(\"west\");\n\t\tneighbors[3] = getNeighbor(\"south\");\n\t\treturn neighbors;\n\t}", "public abstract List<AStarNode> getNeighbours();", "protected Cell[] getNeighbours() {\r\n\t\treturn this.neighbours;\r\n\t}", "public Iterable<Board> neighbors() {\n int emptyRow = -1; // Row of the empty tile\n int emptyCol = -1; // Column of the empty tile\n\n // Iterate through each tile in the board, searching for empty tile\n search:\n for (int row = 0; row < N; row++) // For each row in the board\n for (int col = 0; col < N; col++) // For each column in the row\n if (tiles[row][col] == 0) { // If the current tile is empty (value of 0)\n emptyRow = row; // Store the row of the empty tile\n emptyCol = col; // Store the column of the empty tile\n break search; // Break from search\n }\n\n Stack<Board> neighbors = new Stack<Board>(); // Initialize a stack of neighboring board states\n\n if (emptyRow - 1 >= 0) // If there is a row of tiles above the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow - 1, emptyCol)); // Swap empty tile with the above adjacent tile and add to neighbors stack\n\n if (emptyRow + 1 < N) // If there is a row of tiles below the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow + 1, emptyCol)); // Swap empty tile with the below adjacent tile and add to neighbors stack\n\n if (emptyCol - 1 >= 0) // If there is a column of tiles to the left of the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow, emptyCol - 1)); // Swap empty tile with the left adjacent tile and add to neighbors stack\n\n if (emptyCol + 1 < N) // If there is a column of tiles to the right of the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow, emptyCol + 1)); // Swap empty tile with the right adjacent tile and add to neighbors stack\n\n return neighbors; // Return iterable stack of neighboring board states\n }", "@Override\n public Iterable<WorldState> neighbors() {\n Queue<WorldState> neighbor = new ArrayDeque<>();\n int xDim = 0, yDim = 0;\n int[][] tiles = new int[_N][_N];\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n tiles[i][j] = _tiles[i][j];\n if (_tiles[i][j] == 0) {\n xDim = i;\n yDim = j;\n }\n }\n }\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (Math.abs(i - xDim) + Math.abs(j - yDim) == 1) {\n tiles[i][j] = _tiles[xDim][yDim];\n tiles[xDim][yDim] = _tiles[i][j];\n neighbor.add(new Board(tiles));\n // System.out.println(new Board(tiles));\n tiles[xDim][yDim] = _tiles[xDim][yDim];\n tiles[i][j] = _tiles[i][j];\n }\n }\n }\n return neighbor;\n }", "public Vector getNeighbors()\n\t{\n\t\tVector neighbors = new Vector(8);\n\t\t\n\t\tneighbors.addElement(getNeighbor(NORTH));\n\t\tneighbors.addElement(getNeighbor(NORTHEAST));\n\t\tneighbors.addElement(getNeighbor(EAST));\n\t\tneighbors.addElement(getNeighbor(SOUTHEAST));\n\t\tneighbors.addElement(getNeighbor(SOUTH));\n\t\tneighbors.addElement(getNeighbor(SOUTHWEST));\n\t\tneighbors.addElement(getNeighbor(WEST));\n\t\tneighbors.addElement(getNeighbor(NORTHWEST));\n\n\t\treturn neighbors;\n\t}", "List<Integer> getNeighbors(int x);", "public java.util.List<Integer> getNeighbors(int index);", "public ArrayList<SearchNode> neighbors() {\n ArrayList<SearchNode> neighbors = new ArrayList<SearchNode>();\n // StdOut.println(\"before: \" + this.snBoard);\n Iterable<Board> boards = new ArrayList<Board>();\n boards = this.snBoard.neighbors();\n // StdOut.println(\"after: \" + this.snBoard);\n for (Board b: boards) {\n // StdOut.println(b);\n // StdOut.println(\"checking: \"+b);\n // StdOut.println(\"checking father: \"+this.getPredecessor());\n if (this.getPredecessor() == null) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // sn.addMovesToPriority(this.priority - this.snBoard.hamming()+1);\n neighbors.add(sn);\n } else { \n if (!b.equals(this.getPredecessor().snBoard)) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n neighbors.add(sn);\n }\n }\n \n }\n return neighbors;\n }", "public Iterable<Board> neighbors() {\n LinkedList<Board> states = new LinkedList<>();\n LinkedList<int[]> neighbors = neighborFinder();\n int[] curr_loc = blankFinder();\n\n for(int[] temp : neighbors){\n tiles[curr_loc[0]][curr_loc[1]] = tiles[temp[0]][temp[1]];\n tiles[temp[0]][temp[1]] = 0;\n states.add(new Board(deepCopy(tiles)));\n tiles[temp[0]][temp[1]] = tiles[curr_loc[0]][curr_loc[1]];\n tiles[curr_loc[0]][curr_loc[1]] = 0;\n\n }\n return states;\n }", "public abstract LinkedList<Integer> getNeighbours(int index);", "public List<Cell> getNeighbors() {\n return this.neighbors;\n }", "public ArrayList<Integer> getNeighbors() {\n\t\treturn neighbors;\n\t}", "public ArrayList<PuzzleState> getNeighbors() {\n\t\tArrayList<PuzzleState> neighbors = new ArrayList<PuzzleState>();\n\t\tPuzzleState neighbor;\n\t\t//System.out.println(\"getting neighbors.\");\n\t\tfor (String act: ACTIONS) {\n\t\t\tif (current.validAction(act)){\n\t\t\t\t//System.out.println(\"Action: \" + act + \" on \" + current.getString());\n\t\t\t\tneighbor = new PuzzleState(current.getString(current.getState()),\n\t\t\t\t\t\t\t\t\t\t\tcurrent.getString(current.getGoalState()));\n\t\t\t\tsearchCost++;\n\t\t\t\tneighbor.act(act);\n\t\t\t\tneighbors.add(neighbor);\n\t\t\t}\t\n\t\t}\n\t\treturn neighbors;\n\t}", "Set<MacAddress> neighbors();", "public List<Point> getPossibleNeighbours() {\n List<Point> points = new ArrayList<>();\n int x = point.getX();\n int y = point.getY();\n Arrays.asList(x - 1, x, x + 1).forEach(i -> {\n Arrays.asList(y - 1, y, y + 1).forEach(j -> {\n points.add(new Point(i, j));\n });\n });\n // remove self\n points.remove(new Point(x, y));\n return points;\n }", "protected abstract List<Integer> getNeighbors(int vertex);", "public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }", "public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }", "public ArrayList<Collidable> getNeighbors();", "public abstract int getNeighboursNumber(int index);", "public TriangleElt3D[] getNeighbours() {\n\t\tint counter = 0;\n\t\tif (this.eltZero != null)\n\t\t\tcounter++;\n\t\tif (this.eltOne != null)\n\t\t\tcounter++;\n\t\tif (this.eltTwo != null)\n\t\t\tcounter++;\n\n\t\tTriangleElt3D[] neighbours = new TriangleElt3D[counter];\n\n\t\tcounter = 0;\n\t\tif (this.eltZero != null) {\n\t\t\tneighbours[counter] = this.eltZero;\n\t\t\tcounter++;\n\t\t}\n\t\tif (this.eltOne != null) {\n\t\t\tneighbours[counter] = this.eltOne;\n\t\t\tcounter++;\n\t\t}\n\t\tif (this.eltTwo != null) {\n\t\t\tneighbours[counter] = this.eltTwo;\n\t\t}\n\n\t\treturn neighbours;\n\t}", "private List<Cell> getNeighbours(int row,int col){\n List<Cell> neighbours = new ArrayList<Cell>();\n for(int i = row -1 ; i <= row+1 ; i++ )\n for(int j = col -1 ; j <= col+1 ; j++)\n if(i>=0 && i<cells.length && j>=0 && j<cells[0].length)\n neighbours.add(cells[i][j]);\n return neighbours;\n }", "public abstract int getNumberOfLivingNeighbours(int x, int y);", "public Point[] neighbors (Point p) {\n Point[] pointsAround = this.pointsAround(p);\n ArrayList<Point> neighbors = new ArrayList<Point>();\n for (Point p2 : pointsAround)\n if (this.adjacence(p, p2))\n neighbors.add(p2);\n return neighbors.toArray(new Point[neighbors.size()]);\n }", "Set<E> getForwardNeighbors();", "public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }", "ArrayList<PathFindingNode> neighbours(PathFindingNode node);", "private double[] getNeighbors(double[] row) {\n\n double[] neighbors = {0};\n return neighbors;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Node<A>> neighbours(){\n\t\t\n\t\tArrayList<Node<A>> output = new ArrayList<Node<A>>();\n\t\t\n\t\tif (g == null) return output;\n\t\t\n\t\tfor (Object o: g.getEdges()){\n\n\t\t\t\n\t\t\tif (((Edge<?>)o).getTo().equals(this)) {\n\t\t\t\t\n\t\t\t\tif (!output.contains(((Edge<?>)o).getFrom()))\n\t\t\t\t\t\toutput.add((Node<A>) ((Edge<?>)o).getFrom());\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\t\treturn output;\n\t\t\n\t}", "private ArrayList<GridPiece> getDirectNeighbors(GridPiece piece) {\n neighbors.clear();\n\n //Top\n if (game.gridMap.size() > piece.row + 1) {\n neighbors.add(game.gridMap.get(piece.row + 1).get(piece.column));\n }\n //Bottom\n if (piece.row > 0) {\n neighbors.add(game.gridMap.get(piece.row - 1).get(piece.column));\n }\n\n //Right\n if (game.gridMap.get(0).size() > piece.column + 1) {\n neighbors.add(game.gridMap.get(piece.row).get(piece.column + 1));\n }\n\n //Left\n if (piece.column > 0) {\n neighbors.add(game.gridMap.get(piece.row).get(piece.column - 1));\n }\n\n return neighbors;\n }", "private ArrayList<int[]> getAllNeighbours(int[] solution){\n ArrayList<int[]> neighbours = new ArrayList<int[]>();\n\n for(int i = 0; i <= solution.length - 1; i++){\n for(int j = solution.length - 1; j > i; j--){\n neighbours.add(getNeighbourSolution(solution, i, j));\n }\n }\n\n this.numberOfNeighbours = neighbours.size();\n return neighbours;\n }", "public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }", "private static Iterable<Cell> getNeighbors(Grid<Cell> grid, Cell cell) {\n\t\tMooreQuery<Cell> query = new MooreQuery<Cell>(grid, cell);\n\t\tIterable<Cell> neighbors = query.query();\n\t\treturn neighbors;\n\t}", "java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> \n getNeighborList();", "@Override public ArrayList<Location> neighbors(final Location id) {\n ArrayList<Location> neighbours = new ArrayList<>();\n for (Location direction : directions){\n\n Location position = new Location(direction.x + id.x, direction.y + id.y);\n\n if (inBounds(position) && isPassable(position))\n neighbours.add(position);\n }\n return neighbours;\n }", "public abstract ArrayList<String> neighbours(String vertLabel);", "Neighbors() {\n HashMap<Integer, Double> neighbors = new HashMap<>();\n }", "public List<Edge> getNeighbors() {\n\t\treturn neighbors;\n\t}", "private List<CellIndex> getNeighbours( CellIndex index )\r\n {\n List<CellIndex> neighbours = new ArrayList<World.CellIndex>();\r\n if( index.x % EnvSettings.getMAX_X() != 0 )\r\n {\r\n neighbours.add( new CellIndex( index.x - 1, index.y, index.z ) );\r\n }\r\n if( index.x % EnvSettings.getMAX_X() != EnvSettings.getMAX_X() - 1 )\r\n {\r\n neighbours.add( new CellIndex( index.x + 1, index.y, index.z ) );\r\n }\r\n if( index.y % EnvSettings.getMAX_Y() != 0 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y - 1, index.z ) );\r\n }\r\n if( index.y % EnvSettings.getMAX_Y() != EnvSettings.getMAX_Y() - 1 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y + 1, index.z ) );\r\n }\r\n if( index.z % EnvSettings.getMAX_Z() != 0 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y, index.z - 1 ) );\r\n }\r\n if( index.z % EnvSettings.getMAX_Z() != EnvSettings.getMAX_Z() - 1 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y, index.z + 1 ) );\r\n }\r\n return neighbours;\r\n }", "public ArrayList<Integer> neighNumbers() {\n ArrayList<Integer> neighNumbers = new ArrayList<Integer>();\n if(isValid(this.frame-10)) { neighNumbers.add(this.frame-10); }\n if(isValid(this.frame+10)) { neighNumbers.add(this.frame+10); }\n\n //Right edge\n if(this.frame % 10 == 0) {\n if(isValid(this.frame+9)) { neighNumbers.add(this.frame+9); }\n if(isValid(this.frame-1)) { neighNumbers.add(this.frame-1); }\n if(isValid(this.frame-11)) { neighNumbers.add(this.frame-11); }\n\n }\n\n //Left edge\n else if((this.frame -1) % 10 == 0) {\n if(isValid(this.frame-9)) { neighNumbers.add(this.frame-9); }\n if(isValid(this.frame+1)) { neighNumbers.add(this.frame+1); }\n if(isValid(this.frame+11)) { neighNumbers.add(this.frame+11); }\n }\n\n else {\n if(isValid(this.frame-11)) { neighNumbers.add(this.frame-11); }\n if(isValid(this.frame+11)) { neighNumbers.add(this.frame+11); }\n if(isValid(this.frame-1)) { neighNumbers.add(this.frame-1); }\n if(isValid(this.frame+1)) { neighNumbers.add(this.frame+1); }\n if(isValid(this.frame-9)) { neighNumbers.add(this.frame-9); }\n if(isValid(this.frame+9)) { neighNumbers.add(this.frame+9); }\n }\n\n return neighNumbers;\n }", "public ArrayList<Integer> getNeighbours() {\n\t\tArrayList<Integer> result = new ArrayList<Integer>();\n\n\t\tfor (Border curBorder: allBorder) {\n\t\t\tresult.add(curBorder.countryID);\n\t\t}\n\n\t\treturn result;\n\t}", "public List<Board> neighbors(int player)\n\t{\n\t\tList<Board> ret = new ArrayList<Board>();\n\t\t\n\t\tList<Integer> moves = getLegalMoves();\n\t\tfor (int i : moves)\n\t\t{\n\t\t\tret.add(makeMove(i,player));\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "public abstract Set<Tile> getNeighbors(Tile tile);", "public List neighbors(int vertex) {\n// your code here\n LinkedList<Integer> result = new LinkedList<>();\n LinkedList<Edge> list = adjLists[vertex];\n for (Edge a : list) {\n result.add(a.to());\n }\n//List<Integer> list = new List<Integer>();\n return result;\n }", "int[] neighbor(int sourceId) {\n\t\tint opposite = ((sourceId + 2) > amount - 1) ? (sourceId + 2) - amount : sourceId + 2; // needed\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ir\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 3\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// array\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// points\n\t\tint neighborLeft = ((sourceId + 1) > amount - 1) ? (sourceId + 1) - amount : sourceId + 1; // neede\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// only\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 3\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// array\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// point\n\t\tint neighborRight = ((sourceId - 1) < 0) ? amount + (sourceId - 1) : sourceId - 1; // neede\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// only\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// array\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pointer\n\t\tint[] neighbors = { neighborLeft, neighborRight, opposite // 0, 1, 2\n\t\t};\n\t\treturn neighbors;\n\t}", "public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }", "public Cell[] getNeighbors(Cell cell) {\n int index = 0;\n Cell neighbors[] = new Cell[4];\n //check top neighbour\n if (cell.getRow() > 0) {\n neighbors[index] = cells[cell.getRow() - 1][cell.getColumn()];\n index++;\n }\n //check left neighbor\n if (cell.getColumn() > 0) {\n neighbors[index] = cells[cell.getRow()][cell.getColumn()-1];\n index++;\n }\n //check bottom neighbor\n if (cell.getRow() < height - 1) {\n neighbors[index] = cells[cell.getRow() + 1][cell.getColumn()];\n index++;\n }\n //check right neighbor\n if (cell.getColumn() < width - 1) {\n neighbors[index] = cells[cell.getRow()][cell.getColumn()+1];\n index++;\n }\n\n //if there are only 3 neighbor cells, copy cells into smaller array\n if (index == 3) {\n Cell neighbors2[] = new Cell[3];\n for (int i = 0; i < neighbors2.length; i++) {\n neighbors2[i] = neighbors[i];\n }\n return neighbors2;\n //if there are only 2 neighbor cells, copy cells into smaller array\n } else if (index == 2) {\n Cell neighbors2[] = new Cell[2];\n for (int i = 0; i < neighbors2.length; i++) {\n neighbors2[i] = neighbors[i];\n }\n return neighbors2;\n }\n return neighbors;\n }", "private ArrayList<Point> getNeighbors(Point p) {\n\t\tArrayList<Point> arr = new ArrayList<Point>();\n\t\tfor (int y = -1; y <= 1; y++) {\n\t\t\tfor (int x = -1; x <= 1; x++) {\n\t\t\t\tPoint npoint = new Point( p.x + x, p.y + y);\n\t\t\t\tint sind = spacesContains(npoint);\n\t\t\t\tif ( p.compareTo(npoint) != 0 && sind >= 0 ) { \n\t\t\t\t\tarr.add( spaces.get(sind) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public Collection<IntPair> findEmptyNeighbors(int x, int y);", "public Set<V> getNeighbours(V vertex);", "public ArrayList<? extends Puzzle> getNeighbors();", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "@Override\n\tpublic List<Cell> calcNeighbors(int row, int col) {\n\t\tList<Cell> neighborLocs = new ArrayList<>();\n\t\tint shift_constant = 1 - 2*((row+col) % 2);\n\t\tif(!includesDiagonals) {\n\t\t\tfor(int a = col - 1; a <= col + 1; a++) {\n\t\t\t\tif(a == col)\n\t\t\t\t\taddLocation(row + shift_constant,a,neighborLocs);\n\t\t\t\telse \n\t\t\t\t\taddLocation(row,a,neighborLocs);\n\t\t\t}\n\t\t\treturn neighborLocs;\n\t\t}\n\t\tfor(int b = col - 2; b <= col + 2; b++) {\n\t\t\tfor(int a = row; a != row + 2*shift_constant; a += shift_constant) {\n\t\t\t\tif(a == row && b == col)\n\t\t\t\t\tcontinue;\n\t\t\t\taddLocation(a,b,neighborLocs);\n\t\t\t}\n\t\t}\n\t\tfor(int b = col -1; b <= col + 1; b++) {\n\t\t\taddLocation(row - shift_constant,b,neighborLocs);\n\t\t}\n\t\treturn neighborLocs;\n\t}", "@Override\n\tpublic List<Location> getNeighbors(Location vertex) {\n\n\t\tArrayList<Location> neighbors = new ArrayList<Location>();\n\n\t\tfor (Path p : getOutEdges(vertex))\n\t\t\tneighbors.add(p.getDestination());\n\n\t\treturn neighbors;\n\n\n\t}", "@Override\n\tpublic List<Cell> getSurroundingNeighbors(Cell cell, int vision) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tCell northCell = cell, eastCell = cell, southCell = cell, westCell = cell;\n\t\tint north, east, south, west;\n\t\tfor (int i = 1; i <= vision; i++) {\n\t\t\tnorth = getNorthCell(northCell);\n\t\t\teast = getEastCell(eastCell);\n\t\t\tsouth = getSouthCell(southCell);\n\t\t\twest = getWestCell(westCell);\n\t\t\tif (north != -1) { \n\t\t\t\tnorthCell = getCellList().get(north);\n\t\t\t\tneighbors.add(northCell); }\n\t\t\tif (east != -1) { \n\t\t\t\teastCell = getCellList().get(east);\n\t\t\t\tneighbors.add(eastCell); }\n\t\t\tif (south != -1) { \n\t\t\t\tsouthCell = getCellList().get(south);\n\t\t\t\tneighbors.add(getCellList().get(south)); }\n\t\t\tif (west != -1) { \n\t\t\t\twestCell = getCellList().get(west);\n\t\t\t\tneighbors.add(getCellList().get(west)); }\n\t\t}\n\t\treturn neighbors;\n\t}", "private List<Node> getNeighbors(Node node) {\n List<Node> neighbors = new LinkedList<>();\n\n for(Node adjacent : node.getAdjacentNodesSet()) {\n if(!isSettled(adjacent)) {\n neighbors.add(adjacent);\n }\n }\n\n return neighbors;\n }", "public static List<HantoCoordinate> getAllNeighbors(HantoCoordinate c){\n\n\t\tList<HantoCoordinate> neighbors = new ArrayList<HantoCoordinate>();\n\n\t\tneighbors.add(new HantoCoord(c.getX(), c.getY() - 1));\n\t\tneighbors.add(new HantoCoord(c.getX(), c.getY() + 1));\n\t\tneighbors.add(new HantoCoord(c.getX() - 1, c.getY()));\n\t\tneighbors.add(new HantoCoord(c.getX() - 1, c.getY() + 1));\n\t\tneighbors.add(new HantoCoord(c.getX() + 1, c.getY()));\n\t\tneighbors.add(new HantoCoord(c.getX() + 1, c.getY() - 1));\n\n\t\treturn neighbors;\n\t}", "private ArrayList<Pixel> getNeightbors(Pixel pixel)\n {\n ArrayList<Pixel> neighbors = new ArrayList<Pixel>();\n\n for(int i=-1;i<=1;i++)\n {\n int n_w=pixel.p+i;\n if(n_w<0 || n_w==this.image.getWidth()) continue;\n for(int j=-1;j<=1;j++)\n {\n int n_h=pixel.q+j;\n if(n_h<0 || n_h==this.image.getHeight()) continue;\n if(i==0 && j==0) continue;\n neighbors.add( new Pixel(n_w, n_h) );\n }//end for j\n }//end for i\n\n return neighbors;\n }", "public ArrayList<Cell> getNeighbours(int radius) {\r\n return locateCell.getAdjacentCells(radius);\r\n }", "public int[] neighbors(int a){\n int[] neighbors = new int[size];\n \n for(int i=0;i<size;i++){\n neighbors[i] = (-1);\n }\n\n int iter =0, i=0;\n while(i<size){\n if(adjMatrix[a][i]==1){\n neighbors[iter] = i;\n iter++;\n }\n i++;\n }\n return neighbors;\n }", "public HashSet<Position> getNeighborPos() { return neighborPos; }", "public ArrayList<ThresholdDataPoint> getNeighbours(int connec) {\n\t\tif(connec == 8){\n\t\t\treturn eightNeighbours;\n\t\t} else if(connec == 4){\n\t\t\treturn fourNeighbours;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Invalid number of neighbours\");\n\t\t}\n\t}", "@Override\n\tpublic List<Integer> getNeighbours(int v) {\n\t\treturn null;\n\t}", "public ArrayList<CoordinateTile> getListOfNeighbours(int i, int j)\n\t{\n\t\tArrayList<CoordinateTile> allNeighbours = new ArrayList<CoordinateTile>();\n\t\tif(this.checkValidCoordinate(i, j+1))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i][j+1]);\n\t\t}\n\t\tif(this.checkValidCoordinate(i, j-1))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i][j-1]);\n\t\t}\n\t\tif(this.checkValidCoordinate(i+1, j))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i+1][j]);\n\t\t}\n\t\tif(this.checkValidCoordinate(i-1, j))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i-1][j]);\n\t\t}\n\t\treturn allNeighbours;\n\t}", "@Override\n public HashMap<Direction,Cell> getNeighbors() throws StateNotSupportedException{\n if (status==CellStatus.PreInitialized)\n throw new StateNotSupportedException();\n else return neighbors;\n }", "protected abstract int countNeighbors(int x, int y);", "public List<SearchNode> expand() {\n\n List<SearchNode> neighbours = new ArrayList<>();\n\n if (this.getX() > 0) {\n SearchNode left = new SearchNode(this.getX() - 1, this.getY(), this.getDepth() + 1);\n neighbours.add(left);\n }\n if (this.getX() < 14) {\n SearchNode right = new SearchNode(this.getX() + 1, this.getY(), this.getDepth() + 1);\n neighbours.add(right);\n }\n if (this.getY() > 0) {\n SearchNode up = new SearchNode(this.getX(), this.getY() - 1, this.getDepth() + 1);\n neighbours.add(up);\n }\n if (this.getY() < 14) {\n SearchNode down = new SearchNode(this.getX(), this.getY() + 1, this.getDepth() + 1);\n neighbours.add(down);\n }\n\n return neighbours;\n }", "public List<Integer> getNeighbourIds() {\n List<Integer> neighbours = new ArrayList<>();\n // get references from the neighbouring cells.\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n VoronoiEdge edge = halfEdge.getEdge();\n if (edge.getLeftSite() != null && edge.getLeftSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getLeftSite().getIdentifier());\n } else if (edge.getRightSite() != null && edge.getRightSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getRightSite().getIdentifier());\n }\n }\n return neighbours;\n }", "public Set<Integer> getNeighbors() {\n HashSet<Integer> retSet = new HashSet<Integer>();\n retSet.addAll(this.getActiveNeighbors());\n retSet.addAll(this.purgedNeighbors);\n\n return retSet;\n }", "public Iterator<Integer> neighbors(int i)\n {\n return adjList[i].iterator();\n }", "private GoLNeighborhood getNeighborhood(int x, int y) {\n\n \tGoLCell[][] tempArray = new GoLCell[3][3];\n\n \ttempArray[0][0] = ((x>0)&&(y>0))?myGoLCell[x-1][y-1]:(new GoLCell(false));\n \ttempArray[1][0] = (y>0)?myGoLCell[x][y-1]:(new GoLCell(false));\n \ttempArray[2][0] = ((x<19)&&(y>0))?myGoLCell[x+1][y-1]:(new GoLCell(false));\n \ttempArray[0][1] = ((x>0))?myGoLCell[x-1][y]:(new GoLCell(false));\n \ttempArray[1][1] = myGoLCell[x][y];\n \ttempArray[2][1] = ((x<19))?myGoLCell[x+1][y]:(new GoLCell(false));\n \ttempArray[0][2] = ((x>0)&&(y<19))?myGoLCell[x-1][y+1]:(new GoLCell(false));\n \ttempArray[1][2] = (y<19)?myGoLCell[x][y+1]:(new GoLCell(false));\n \ttempArray[2][2] = ((x<19)&&(y<19))?myGoLCell[x+1][y+1]:(new GoLCell(false));\n\n \treturn new GoLNeighborhood(tempArray);\n\n }", "@Override\n\tpublic List<Cell> getImmediateNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint north, east, south, west;\n\t\t\n\t\tnorth = getNorthCell(cell);\n\t\teast = getEastCell(cell);\n\t\tsouth = getSouthCell(cell);\n\t\twest = getWestCell(cell);\n\t\t\n\t\tif (north != -1) { neighbors.add(getCellList().get(north)); }\n\t\tif (east != -1) { neighbors.add(getCellList().get(east)); }\n\t\tif (south != -1) { neighbors.add(getCellList().get(south)); }\n\t\tif (west != -1) { neighbors.add(getCellList().get(west)); }\n\t\t\n\t\treturn neighbors;\n\t}", "@Override\r\n public List<INavMeshAtom> getNeighbours(NavMesh mesh) { \r\n List<INavMeshAtom> neighbours = new ArrayList<INavMeshAtom>();\r\n \r\n if(pId > 0) neighbours.add(new NavMeshPolygon(pId));\r\n \r\n for(OffMeshEdge oe : outgoingEdges) {\r\n neighbours.add(oe.getTo());\r\n }\r\n \r\n return neighbours;\r\n }", "public int infectNeighbours(Map map);", "public synchronized LinkedList[] getKHopNeighbors()\r\n {\r\n return kHopNeighbors;\r\n }", "public static LinkedList2 generateNeighbors(LocNode state) {\n\t \n\t \n\t\n\t LinkedList2 Neighbors = new LinkedList2();\n\t \n\n\t\n\tchar [][] Matrix = state.getData(); \n\t\n\t\n\t\n\tchar [][] Neighbor = copyMatrix(Matrix);\n\n\t\t\n\t\tfor(int i=0 ;i<size ;i++ ) {\n\t\tfor (int j=0 ;j<size ;j++) {\n\t\t\tif (Neighbor[i][j]=='-'||Neighbor[i][j]=='v') {\n\t\t\t\tNeighbor[i][j]='c';\n\t\t\t\t\n\t\t\t\t\n\t updateVisibility(i,j,Neighbor);\n\t \n\t Neighbors.insert(Neighbor, calculateOpjectiveFunction(Neighbor));\n\t \n\t \n\t \n\t\t\t\tNeighbor = copyMatrix(Matrix);\n\t\n\t\t\t\n\t\t\t}\n\t\t}\t\n\t\t}\n\t\t\n\tLinkedList2 ApplyingRemoveAction=removeOneCamera(state.data);\n\t\n\n\tif(!ApplyingRemoveAction.empty()){\n\t\t\n\t\tApplyingRemoveAction.findFirst();\n\t\twhile(!ApplyingRemoveAction.last()) {\n\t\t\t Neighbors.insert(ApplyingRemoveAction.retrieve_data(), ApplyingRemoveAction.retrieve_opjectiveFunctoin());\n\t\t\t ApplyingRemoveAction.findNext();\n\t\t}\n\t\t\n\t\t Neighbors.insert(ApplyingRemoveAction.retrieve_data(), ApplyingRemoveAction.retrieve_opjectiveFunctoin());\n\t}\n\t\t\n\t\t\n\t return Neighbors;\n\t \n\t \n}", "@Override\n public List<V> getNeighbors(V v, TimeFrame pTimeFrame) {\n List<V> lstNeighbors = new ArrayList<>();\n// System.out.println(\"DynamicGraph.getNeighbor() : \" + darrGlobalAdjList.get(v.getId()).get(pTimeFrame));\n if (darrGlobalAdjList.get(v.getId()).containsKey(pTimeFrame)) {\n for (E e : darrGlobalAdjList.get(v.getId()).get(pTimeFrame)){\n if (e.getOtherEndPoint(v) != null) {\n lstNeighbors.add(e.getOtherEndPoint(v));\n }\n }\n }\n return lstNeighbors;\n }", "public List neighbors(int vertex) {\n // your code here\n \tList toReturn = new ArrayList<Integer>();\n \tfor (Edge e : myAdjLists[vertex]) {\n \t\ttoReturn.add(e.to());\n \t}\n return toReturn;\n }", "private int getNeighbours(Container[][][] buffer) {\n int neighbours = 0;\n if (indexPosition.x + 1 < buffer.length && buffer[(int) indexPosition.x + 1][(int) indexPosition.y][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.x - 1 >= 0 && buffer[(int) indexPosition.x - 1][(int) indexPosition.y][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.y + 1 < buffer[0].length && buffer[(int) indexPosition.x][(int) indexPosition.y + 1][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.y - 1 >= 0 && buffer[(int) indexPosition.x][(int) indexPosition.y - 1][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.z + 1 < buffer[0][0].length && buffer[(int) indexPosition.x][(int) indexPosition.y][(int) indexPosition.z + 1] != null) {\n neighbours++;\n }\n if (indexPosition.z - 1 >= 0 && buffer[(int) indexPosition.x][(int) indexPosition.y][(int) indexPosition.z - 1] != null) {\n neighbours++;\n }\n return neighbours;\n }", "public void populateNeighbors(Cell[][] cells) {\n\t\tint limitHoriz = cells[0].length;\n\t\tint limitVert = cells.length;\n\t\t// above left\n\t\tif (myRow > 0 && myRow < limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) {\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t\t// ADD 8 cells to neighbors (see the diagram from the textbook)\n\t\t\t}\n\t\t\tif (myCol == 0) { // left edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow+1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // right edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow -1][myCol]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == 0) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // top edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol -1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // top left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // top right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // bottom edge\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // bottom left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // bottom right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t}\n\t\t}\n\t}", "private ArrayList<Position3D> findNeighbors(Position3D current, Maze3D myMaze,boolean [][][]VisitedCells) throws Exception {\n ArrayList<Position3D> neighbors = new ArrayList<>();\n //for each neighbor, add him into the neighbors array, if it's on the grid (maze), if it's not a corner, not the current position itself, and it's unvisited\n //iterate over all neighbors in the same depth\n for (int x = current.getRowIndex()-2; x < current.getRowIndex()+3; x=x+2) {\n for (int y = current.getColumnIndex()-2; y < current.getColumnIndex()+3 ; y=y+2) {\n if (pointOnGrid(current.getDepthIndex(),x, y, myMaze) && pointNotCorner(current ,current.getDepthIndex(), x, y)\n && pointNotMyCell(current,current.getDepthIndex(), x, y) && !(Visited(current.getDepthIndex(),x,y,VisitedCells))) {\n neighbors.add(new Position3D(current.getDepthIndex(),x, y));\n }\n }\n }\n //check the options from the other depths\n\n if (pointOnGrid(current.getDepthIndex()+2,current.getRowIndex(), current.getColumnIndex(), myMaze) && !(Visited(current.getDepthIndex()+2,current.getRowIndex(),current.getColumnIndex(),VisitedCells))){\n neighbors.add(new Position3D(current.getDepthIndex()+2,current.getRowIndex(), current.getColumnIndex()));\n }\n if (pointOnGrid(current.getDepthIndex()-2,current.getRowIndex(), current.getColumnIndex(), myMaze) && !(Visited(current.getDepthIndex()-2,current.getRowIndex(),current.getColumnIndex(),VisitedCells))){\n neighbors.add(new Position3D(current.getDepthIndex()-2,current.getRowIndex(), current.getColumnIndex()));\n }\n return neighbors;\n }", "@NotNull\r\n public Collection<Index> getNeighbors(@NotNull final Index index){\r\n Collection<Index> list = new ArrayList<>();\r\n int extracted = -1;\r\n try{\r\n extracted = primitiveMatrix[index.row+1][index.column]; //down\r\n list.add(new Index(index.row+1,index.column));\r\n }catch (ArrayIndexOutOfBoundsException ignored){}\r\n try{\r\n extracted = primitiveMatrix[index.row][index.column+1];//right\r\n list.add(new Index(index.row,index.column+1));\r\n }catch (ArrayIndexOutOfBoundsException ignored){}\r\n try{\r\n extracted = primitiveMatrix[index.row-1][index.column];//up\r\n list.add(new Index(index.row-1,index.column));\r\n }catch (ArrayIndexOutOfBoundsException ignored){}\r\n try{\r\n extracted = primitiveMatrix[index.row][index.column-1];//left\r\n list.add(new Index(index.row,index.column-1));\r\n }catch (ArrayIndexOutOfBoundsException ignored){}\r\n return list;\r\n }", "public ArrayList<Block> getAdj (Block b) { // gets the adjacent blocks\n\t\tArrayList<Block> neighbors = new ArrayList<Block> ();\n\t\tif (b.x+1 < size) neighbors.add(get(b.x+1, b.y, b.z));\n\t\tif (b.x-1 > -1) neighbors.add(get(b.x-1, b.y, b.z));\n\t\tif (b.y+1 < size) neighbors.add(get(b.x, b.y+1, b.z));\n\t\tif (b.y-1 > -1) neighbors.add(get(b.x, b.y-1, b.z));\n\t\tif (b.z+1 < size) neighbors.add(get(b.x, b.y, b.z+1));\n\t\tif (b.z-1 > -1) neighbors.add(get(b.x, b.y, b.z-1));\n\t\treturn neighbors;\n\t}", "public Collection<GridNode> getNeighbors(\n final GridMover mover,\n final GridNode node) {\n ArrayList<GridNode> neighbors = new ArrayList<GridNode>();\n addPassableNode(mover, neighbors, node.x() + 1, node.y());\n\n addPassableNode(mover, neighbors, node.x(), node.y() + 1);\n addPassableNode(mover, neighbors, node.x(), node.y() - 1);\n\n addPassableNode(mover, neighbors, node.x() - 1, node.y());\n\n return neighbors;\n }", "public abstract List<GraphNode<N, E>> getNeighborNodes(N value);", "public NodeStack findNeighborsOfNode(Node node) {\n NodeStack neighbors = new NodeStack(10);\n \n for (int x = node.getX() - 1; x <= node.getX() + 1; x++) {\n for (int y = node.getY() - 1; y <= node.getY() + 1; y++) {\n if (pointIsWithinMazeBounds(x, y) && !(x == node.getX() && y == node.getY())) {\n neighbors.push(nodeArray[x][y]);\n }\n }\n }\n \n return neighbors;\n }", "@Override\n public List<Coordinate> getNeighbors(int r, int c) {\n allCoordinates = new ArrayList<>();\n boolean addedRow = false;\n for (int row = 0; row < numRows; row++) {\n if (addedRow) break;\n if (row==r) {\n for (int col = 0; col < numCols;col++) {\n addCoord(r,c,row,col);\n }\n addedRow=true;\n }\n }\n return allCoordinates;\n }", "private ArrayList<Integer> setUnvisitedNeighbors(int currentIndex) {\n\t\t\n\t\tint row = currentIndex / width;\t\t\t\t\t\t\t\t\t\t\t\t//number of row\n\t\tint column = currentIndex % width;\t\t\t\t\t\t\t\t\t\t\t//number of column\n\t\t\n\t\tArrayList<Integer> neighbors = new ArrayList<Integer>();\n\t\t\n\t\tif(row != 0 && !cells[currentIndex - width].visited ) {\t\t\t\t\t\t// cell has upper neighbor\n\t\t\tint upperIndex = ((row - 1) * width) + column;\n\t\t\tneighbors.add(upperIndex);\n\t\t}\n\t\tif(row != height - 1 && !cells[currentIndex + width].visited ) {\t\t\t//cell has lower neighbor\n\t\t\tint lowerIndex = ((row + 1) * width) + column;\n\t\t\tneighbors.add(lowerIndex);\n\t\t}\n\t\tif(column != 0 && !cells[currentIndex - 1].visited) {\t\t\t\t\t\t//cell has left neighbor\n\t\t\tint leftIndex = currentIndex - 1;\n\t\t\tneighbors.add(leftIndex);\n\t\t}\n\t\tif(column != width - 1 && !cells[currentIndex + 1].visited) {\t\t\t\t//cell has right neighbor\n\t\t\tint rightIndex = currentIndex + 1;\n\t\t\tneighbors.add(rightIndex);\n\t\t}\n\t\treturn neighbors;\n\t}", "@Override\n\tpublic List<Cell> getDiagonalNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint northEast, northWest, southEast, southWest;\n\t\t\n\t\tnorthEast = getNorthEastCell(cell);\n\t\tnorthWest = getNorthWestCell(cell);\n\t\tsouthEast = getSouthEastCell(cell);\n\t\tsouthWest = getSouthWestCell(cell);\n\t\t\n\t\tif (northEast != -1) { neighbors.add(getCellList().get(northEast)); }\n\t\tif (northWest != -1) { neighbors.add(getCellList().get(northWest)); }\n\t\tif (southEast != -1) { neighbors.add(getCellList().get(southEast)); }\n\t\tif (southWest != -1) { neighbors.add(getCellList().get(southWest)); }\n\t\t\n\t\treturn neighbors;\n\t}", "public interface INeighbor {\n public Set<Cell> getNeighbours();\n}", "public Square[] adjacentCells() {\n\t\tArrayList<Square> cells = new ArrayList <Square>();\n\t\tSquare aux;\n\t\tfor (int i = -1;i <= 1; i++) {\n\t\t\tfor (int j = -1; j <= 1 ; j++) {\n\t\t\t\taux = new Square(tractor.getRow()+i, tractor.getColumn()+j); \n\t\t\t\tif (isInside(aux) && abs(i+j) == 1) { \n\t\t\t\t\tcells.add(getSquare(aux));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cells.toArray(new Square[cells.size()]);\n\t}", "public ArrayList<Variable> getNeighbours(Variable X) {\n\t\tArrayList<Variable> neighbours = new ArrayList<Variable>();\n\t\tfor (int i = 0; i < X.arcs.size(); i++) {\n\t\t\tneighbours.add(X.arcs.get(i).Y);\n\t\t}\n\t\treturn neighbours;\n\t}", "Set getNi()\n {\n return neighbors.keySet();\n }", "List<GraphEdge> getNeighbors(NodeKey key);", "public ArrayList<Territory> getNeighbours() {\n\t\treturn neighbours;\n\t}" ]
[ "0.85008824", "0.8455368", "0.81724906", "0.7883632", "0.78809404", "0.77418613", "0.77402335", "0.766574", "0.76048434", "0.75942403", "0.7593873", "0.7593241", "0.7591577", "0.75885534", "0.7499749", "0.749391", "0.74679935", "0.7402538", "0.7394949", "0.73652846", "0.73597914", "0.73520476", "0.7296993", "0.72907156", "0.72779346", "0.7259232", "0.72481275", "0.7243415", "0.7235454", "0.721605", "0.7212887", "0.718228", "0.7168572", "0.7141539", "0.71090966", "0.7056629", "0.7055011", "0.7051439", "0.70495415", "0.7049363", "0.70433915", "0.7042068", "0.7041433", "0.70373714", "0.7023297", "0.7001996", "0.69999665", "0.6996107", "0.6989383", "0.6963495", "0.69559366", "0.6949295", "0.6935311", "0.69346404", "0.6901454", "0.6885172", "0.6881585", "0.68643767", "0.6844319", "0.6828529", "0.68148184", "0.6811461", "0.68106794", "0.68051696", "0.6802529", "0.6799673", "0.6788807", "0.67831117", "0.67809254", "0.6775236", "0.6769377", "0.6757412", "0.67399395", "0.67222315", "0.6713439", "0.6708188", "0.66953623", "0.6691867", "0.66417444", "0.6628347", "0.6620228", "0.6606506", "0.65965235", "0.65846705", "0.657257", "0.6565117", "0.654149", "0.65335655", "0.6521572", "0.6520443", "0.65166014", "0.65041083", "0.6471919", "0.6470053", "0.6469264", "0.64680636", "0.6441421", "0.64292103", "0.64252234", "0.6420568", "0.6418913" ]
0.0
-1
Method to return the total number of nodes in the graph
public int size(){ return nodes.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int totalNumberOfNodes();", "int getNodesCount();", "int getNodesCount();", "@Override\n public int nodeCount() {\n return graphNodes.size();\n }", "public int nodesCount() {\n return nodes.size();\n }", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "public int totalNumNodes () { throw new RuntimeException(); }", "int nodeCount();", "int getNodeCount();", "int getNodeCount();", "public int getNumNodes() {\n\t\treturn nodes.size();\n\t}", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int countNodes(){\r\n \treturn count(root);\r\n }", "@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }", "public int getNodeCount() {\n return node_.size();\n }", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "int getTotalNumOfNodes() {\n\t\treturn adjList.size();\n\t}", "public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }", "public int getNodeCount() {\n return nodeCount;\n }", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public int numNodes() {\n return nodeVector.size();\n }", "@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "public int getNodesCount() {\n if (nodesBuilder_ == null) {\n return nodes_.size();\n } else {\n return nodesBuilder_.getCount();\n }\n }", "public int numNodes() {\n\t\treturn numNodes;\n\t}", "public int nodeSize()\n{\n\treturn getNodes().size();\n}", "public int countNodes()\r\n {\r\n return countNodes(root);\r\n }", "public int countNodes() {\n\t\t\n\t\tif(isEmpty()==false){\n\t\t\tint count =1;\n\t\t\tDoubleNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\tcount++;\n\t\t\t\ttemp=temp.getNext();\n\t\t}\n\t\treturn count;\n\t\t}\n\t\telse{\n\t\t\treturn 0;\n\t\t}\n\t}", "public int nodeCount(){\r\n\t\treturn size;\r\n\t}", "public int numberOfNodes() {\n return numberOfNodes(root);\n }", "int numNodes() {\n\t\treturn num_nodes;\n\t}", "public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }", "public int my_node_count();", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public int size() {\n return nodes.size();\n }", "public int size()\n {\n return nodes.size();\n }", "public int nodeCount() {\n\treturn nodeList.size();\n }", "public final int size() {\n return nNodes;\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}", "int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}", "@Override\n public int nodeSize() {\n return this.nodes.size();\n }", "int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }", "public int size()\r\n { \r\n return numNodes;\r\n }", "public int numNodes() {\r\n\t\treturn numNodes(root);\r\n\t}", "public double getTotalNodeCount() {\n return this.node.getFullNodeList().values().stream()\n .filter(BaseNode::checkIfConsensusNode).count();\n }", "public int size() {\n\t\treturn nodes.size();\n\t}", "public int getNodeCount() {\n return dataTree.getNodeCount();\n }", "public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }", "public int nodeCount() {\n return this.root.nodeCount();\n }", "public int getNumberOfNodesEvaluated();", "@Override\n\tpublic int nodeSize() {\n\t\treturn this.Nodes.size();\n\t}", "@Override\n public int edgeCount() {\n int count = 0;\n\n for(MyNode n : graphNodes.values()){\n count += n.inDegree();\n }\n\n return count;\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int size() {\n\t\treturn nodeCount;\n\t}", "public int numberOfNodes() {\r\n\t\tBinaryNode<AnyType> t = root;\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfNodes(root.left) + numberOfNodes(root.right) + 1;\r\n\t}", "public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }", "@Override\n\tpublic int getNodeCount()\n\t{\n\t\treturn nodeList.size();\n\t}", "int getNrNodes() {\n\t\treturn adjList.size();\n\t}", "@Override\n public int size() {\n return this.numNodes;\n }", "public int nodeCounter() {\n\n\t\tDLNode n = head;\n\t\tint nodeCounter = 0;\n\t\twhile (n != null) {\n\t\t\tn = n.next;\n\t\t\tnodeCounter++;\n\t\t}\n\t\treturn nodeCounter;\n\t}", "@Override\n\tpublic int size() {\n\t\tif(top == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tNode<T> tempNode = top;\n\t\tint counter = 1;\n\t\twhile(tempNode.getLink() != null) {\n\t\t\tcounter++;\n\t\t\ttempNode = tempNode.getLink();\n\t\t}\n\t\treturn counter;\n\t}", "public int size( )\r\n {\r\n int size = (int) manyNodes;// Student will replace this return statement with their own code:\r\n return size;\r\n }", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public int size() {\n\t\tint count = 0;\n\t\tfor (Node<T> current = start; current == null; current = current.next) {\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "int node_size()\n {\n Node temp =headnode;\n int count=0;\n while (temp.next!=null)\n {\n count++;\n temp=temp.next;\n }\n return count;\n }", "public int totalNodes(Node<T> n)\n\t{\n\t\tif (n == null) \n return 0; \n else \n { \n \t\n int lTotal = totalNodes(n.left); \n int rTotal = totalNodes(n.right); \n \n return (lTotal + rTotal + 1); \n \n \n \n } \n\t}", "public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}", "public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}", "@Override\n public int getNumberOfNodesEvaluated() {\n int result = evaluatedNodes;\n evaluatedNodes = 0;\n return result;\n }", "public int size() {\n\r\n int size = 0;\r\n for(Node n = head; n.getNext() != null; n = n.getNext()) {\r\n size++;\r\n }\r\n\r\n return size;\r\n }", "public int size()\n\t{\n\t\tint count = 0;\n\t\tif(this.isEmpty())\n\t\t\treturn count;\n\t\telse\n\t\t{\n\t\t\t// Loop through and count the number of nodes.\n\t\t\tNode<T> curr = head;\t\n\t\t\twhile(curr != null)\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t\tcurr = curr.getNext();\n\t\t\t}\n\t\t\treturn count;\n\t\t}\n\t}", "public int numEdges();", "public int size()\n {\n Node n = head.getNext();\n int count = 0;\n while(n != null)\n {\n count++; \n n = n.getNext();\n }\n return count;\n }", "public int getNetSize() {\n return graph.size();\n }", "public int size(){\n\t\tNode<E> current = top;\n\t\tint size = 0;\n\t\t\n\t\twhile(current != null){\n\t\t\tcurrent = current.next;\n\t\t\tsize++;\n\t\t}\n\t\t\n\t\treturn size;\n\t}", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "public int Sizeofnetwork() {\n\t\treturn Nodeswithconnect.size();\n\t}", "int getNumberOfEdges();", "public int length()\n {\n int count = 0;\n Node position = head;\n\n while(position != null)\n {\n count++;\n position = position.nLink;\n } // end while\n\n return count;\n }", "public long getNodesArrayLength() {\n\t\treturn nodesLength;\n\t}", "@Override\n public int size()\n {\n int numLinks = 0;\n Node currNode = this.head.next; \n while(currNode.next != null)\n {\n numLinks++;\n currNode = currNode.next;\n }\n return numLinks;\n }", "public int getNumberOfNodesEvaluated() {\r\n\t\treturn this.evaluatedNodes;\r\n\t}", "public int size() {\n Node<T> temp = head;\n int count = 0;\n while (temp != null)\n {\n count++;\n temp = temp.next;\n }\n return count;\n }", "public int numberOfFullNodes() {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfFullNodes(root);\r\n\t}", "static int nodeCount(Node node) {\n\t\tNode current = node;\n\t\tif(current == null) {\n\t\t\treturn 0;\n\t\t} else if(current.next == null) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 1 + nodeCount(current.next);\n\t\t}\n\t}", "public int length() {\n return nodeList.size();\n }", "public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}", "public int size()\n { \t\n \t//initialize a counter to measure the size of the list\n int sizeVar = 0;\n //create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //update counter while there are still nodes\n while(localNode != null)\n {\n sizeVar += 1;\n localNode = localNode.getNext();\n }\n \n return sizeVar;\n }", "public int NumActiveNodes() {\n int count = 0;\n\n for (int n = 0; n < nodeVector.size(); ++n) {\n if (nodeVector.get(n).getIndex() != invalid_node_index) {\n ++count;\n }\n }\n\n return count;\n }", "public int getSize() {\n\t\tint size=0;\n\t\tfor(Node<E> p=head.next;p!=null; p=p.next){\n\t\t\tsize++;\n\t\t}\n\t\treturn size;\n\t}", "public int Count()\n {\n\tint total = 0;\n\tnode cur = new node();\n\tcur = Head.Next;\n\tif(cur == Head)\n\t return total;\n\twhile(cur != Head)\n\t {\n\t\ttotal++;\n\t\tcur = cur.Next;\n\t }\n\treturn total;\n }", "int getEdgeCount();", "private int numberOfNodes(Node root){\n if(root==null){\n return 0;\n }\n return 1 + numberOfNodes(root.getLeft()) + numberOfNodes(root.getRight());\n }", "@Override\n\tpublic int graphSize() {\n\t\treturn edges.size();\n\t}" ]
[ "0.87476826", "0.87305677", "0.87305677", "0.8665024", "0.8463454", "0.84494376", "0.83023715", "0.82913435", "0.8229199", "0.8220176", "0.8220176", "0.8214873", "0.81977355", "0.818331", "0.817208", "0.81665665", "0.8159081", "0.81327444", "0.81325006", "0.8127901", "0.81080866", "0.8089214", "0.8084708", "0.80790263", "0.80790263", "0.80722696", "0.80598843", "0.8052563", "0.80474323", "0.8030979", "0.8016257", "0.8003657", "0.7997798", "0.79972863", "0.79956734", "0.7971233", "0.7967429", "0.7945124", "0.794307", "0.7872491", "0.7855306", "0.7840474", "0.78352034", "0.7816012", "0.7806022", "0.7804079", "0.77985954", "0.77948475", "0.77852774", "0.77851033", "0.7784248", "0.77679574", "0.77274626", "0.7725211", "0.77119035", "0.7708337", "0.7679369", "0.76125944", "0.7573234", "0.7562312", "0.75230837", "0.7521196", "0.7505572", "0.7484079", "0.7473424", "0.7467875", "0.74561864", "0.74514264", "0.7436603", "0.74054885", "0.73984575", "0.73856556", "0.7357495", "0.73332393", "0.7306132", "0.72790235", "0.7262655", "0.7204703", "0.7181643", "0.7180649", "0.7163828", "0.71533054", "0.7146249", "0.7144589", "0.71167445", "0.70955867", "0.70892906", "0.708167", "0.7077254", "0.7039673", "0.7025676", "0.70256", "0.70194966", "0.70165664", "0.7011847", "0.7005255", "0.7002668", "0.70024085", "0.6997262", "0.6996763" ]
0.77669674
52
Method for breadthfirst traversal
public List<Node<E>> breadthFirst(Node<E> start){ //set that will contain visited nodes HashSet<Node<E>> visited = new HashSet<>(); // resulting nodes List<Node<E>> result = new ArrayList<>(); //queue for traversal Queue<Node<E>> nodeList = new LinkedList<>(); //check if the node exists in the graph if(start == null){ throw new IllegalArgumentException("Node cannot be null"); } if(nodes.containsKey(start)){ nodeList.add(start); visited.add(start); result.add(start); } else{ throw new IllegalArgumentException("Node is not in the graph"); } //traverse through the queue while(!nodeList.isEmpty()){ Node<E> curNode = nodeList.poll(); //check if the node has been visited, if not add to the result if(!visited.contains(curNode)){ result.add(curNode); } //add the node to visited visited.add(curNode); //get all the neighbors of the node and add to the queue nodes.get(curNode).forEach( neighbor -> { if(!visited.contains(neighbor)) { nodeList.add(neighbor); } }); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];\n\t\tqueue.add(current);\n\n\t\twhile (queue.peek() != null) {\n\n\t\t\tcurrent = queue.remove();\n\t\t\tSystem.out.println(\"current: \" + current);\n\t\t\tvisited.put(current, true);\n\n\t\t\tfor (Integer neighbor: edges.get(current)) {\n\t\t\t\tif (!visited.get(neighbor)) {\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void treeBreadthFirstTraversal() {\n Node currNode = root;\n java.util.LinkedList<Node> queue = new java.util.LinkedList<Node>();\n\n // Highlights the first Node.\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores Nodes until the queue is empty.\n while (true) {\n\n // Marks that this Node's children should be explored.\n for (int i = 0; i < getNumChildren(); ++i) {\n if (currNode.children[i] != null) {\n queue.addLast(currNode.children[i]);\n queueQueueAddAnimation(currNode.children[i],\n \"Queueing \" + currNode.children[i].key,\n AnimationParameters.ANIM_TIME);\n\n }\n }\n\n // Pops the next Node from the queue.\n if (!queue.isEmpty()) {\n currNode = queue.pop();\n queueListPopAnimation(\"Popped \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }\n // If the queue is empty, breaks.\n else break;\n\n }\n }", "public void breadthFirstTraversal() {\n beginAnimation();\n treeBreadthFirstTraversal();\n stopAnimation();\n\n }", "public void breadthFirst() {\n\t\tQueue<Node> queue = new ArrayDeque<>();\n\t\tqueue.add(root);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tif(queue.peek().left!=null)\n\t\t\t\tqueue.add(queue.peek().left);\n\t\t\tif(queue.peek().right!=null)\n\t\t\t\tqueue.add(queue.peek().right);\n\t\t\tSystem.out.println(queue.poll().data);\n\t\t}\n\t}", "public void breadthFirstSearch(){\n Deque<Node> q = new ArrayDeque<>(); // In an interview just write Queue ? Issue is java 8 only has priority queue, \n // meaning I have to pass it a COMPARABLE for the Node class\n if (this.root == null){\n return;\n }\n \n q.add(this.root);\n while(q.isEmpty() == false){\n Node n = (Node) q.remove();\n System.out.print(n.val + \", \");\n if (n.left != null){\n q.add(n.left);\n }\n if (n.right != null){\n q.add(n.right);\n }\n }\n }", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void getAllNodesBreadthFirstSearch(List<Expression> nodesList)\n/* */ {\n/* 156 */ int indx = 0;\n/* 157 */ nodesList.add(this);\n/* */ \n/* 159 */ while (indx < nodesList.size()) {\n/* 160 */ Expression node = (Expression)nodesList.get(indx++);\n/* 161 */ for (Expression child : node.childs) {\n/* 162 */ nodesList.add(child);\n/* */ }\n/* */ }\n/* */ }", "public void breadthFirstTraversal(NodeVisitor action)\n\t{\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\twhile( ! queue.isEmpty() )\n\t\t{\n\t\t\tBinaryTree tree = (BinaryTree)queue.dequeue();\n\t\t\tif ( ! tree.isEmpty() )\n {\n \t\t\taction.visit(tree.getElement());\n \t\t\tqueue.enqueue(tree.leftTree());\n \t\t\tqueue.enqueue(tree.rightTree());\n }\n\t\t}\n\t}", "public List<String> breadthFirstSearch(List<String> array) {\n // Write your code here.\n Queue<Node> queue = new ArrayDeque<>();\n queue.add(this);\n // breadthFirstSearch(this, queue, array);\n while (queue.size() > 0) {\n Node node = queue.poll();\n array.add(node.name);\n queue.addAll(node.children);\n }\n return array;\n }", "public List<T> breadthFirstTraversal() {\n var result = new ArrayList<T>();\n var queue = new LinkedList<Node<T>>();\n queue.add(root);\n while(!queue.isEmpty()) {\n var node = queue.pop();\n result.add(node.value);\n acceptNotNull(node.left, queue::add);\n acceptNotNull(node.right, queue::add);\n }\n return result;\n }", "public void testTrivialTraversal_breadthFirst() {\n List<String> breadthFirst = Lists.newArrayList(Iterables.transform(\n TreeIterables.breadthFirstTraversal(trivialTree, new TestElementTreeViewer()),\n new TestElementStringConvertor()));\n assertThat(breadthFirst, is((List<String>) Lists.newArrayList(\"a\", \"b\", \"c\", \"d\")));\n }", "public void breadthFirst(Vertex[] vertices ){\n\t\t\n\t\tVertex temp = vertices[0];\n\t\ttemp.state=1; //for tracking the visited nodes, visited/discovered A\n\t\tboolean[] seen = new boolean[vertices.length];\n\t\tQueue<Vertex> q = new LinkedList<Vertex>(); //queue for breadth first traversal\n\t\t\n\t\tq.add(temp); //root node added to queue\n\t\tseen[0] = true;\n\t\tSystem.out.println(\"Begin breadth first traversal: \\n\" + \n\t\t\t\tq.toString());\n\t\t\t\t\n\t\tfor (int i = 0; i < vertices.length; i++){\n\t\t\ttemp = vertices[i];\n\t\t\twhile (!q.isEmpty() ) {\n\t Vertex v = q.remove();\n\t for (int j : v.neighbors) {\n\t if (!seen[j]) {\n\t q.add(vertices[j]);\n\t seen[j] = true;\n\t vertices[j].state=1;\n\t }\n\t }\n\t System.out.println(q.toString());\n \t}\n\t\t}\n\t}", "public static void breadthFirstSearch(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"BFS:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tQueue<Node> queue = new LinkedList<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tqueue.add(node);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()) {\n\t\t\t\tnode = queue.remove();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the queue for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "private Queue<Integer> breadthSearch(int i, int j, Queue<Integer> queue, Queue<Integer> path) {\n while(queue.size() != 0) {\n queue.poll();\n }//while\n return new LinkedList();\n }", "private static void breadthFirstSearch(int source, ArrayList<ArrayList<Integer>> nodes) {\n\t\tArrayList<ArrayList<Integer>> neighbours = nodes;\n\t\tQueue<Integer> queue= new LinkedList<Integer>();\n\t\t\n\t\tboolean[] visited = new boolean[nodes.size()];\n\t\t\n\t\tqueue.add(source);\n\t\tvisited[source]=true;\n\t\t\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint k =queue.remove();\n\t\t\tSystem.out.println(k);\n\t\t\tfor(int p : nodes.get(k)) {\n\t\t\t\tif(!visited[p]) {\n\t\t\t\t\tqueue.add(p);\n\t\t\t\t\tvisited[p]=true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "private static int breadthFirstSearch(Vertex start) throws Queue.UnderflowException, Queue.EmptyException {\n boolean visited[] = new boolean[48];\n //Keep a queue of vertecies and a queue of the depth of the verticies - they will be added to and poped from identically\n ListQueue<Vertex> queue = new ListQueue<Vertex>();\n ListQueue<Integer> numQueue = new ListQueue<Integer>();\n //Set the starting node as visited\n visited[start.index()] = true;\n queue.enqueue(start);\n numQueue.enqueue(new Integer(1));\n\n //Keep last\n int last = -1;\n //While the queue isnt empty\n while (!queue.isEmpty()) {\n //Pop off the top from both queues and mark as visited\n start = queue.dequeue();\n int current = numQueue.dequeue();\n visited[start.index] = true;\n //For all neigbors\n for (Vertex v : start.neighbors) {\n //If we havent visited it make sure to visit it\n if (visited[v.index()] == false) {\n //As we keep adding new nodes to visit keep track of the depth\n queue.enqueue(v);\n numQueue.enqueue(current + 1);\n }\n }\n //Keep track of the most recent depth before we pop it off (queue will be empty when we exit)\n last = current;\n }\n //Return the max of the depth\n return last;\n }", "public void bfs()\n{\n Queue q=new LinkedList();\n q.add(this.rootNode);\n printNode(this.rootNode);\n rootNode.visited=true;\n while(!q.isEmpty())\n {\n Node n=(Node)q.remove();\n Node child=null;\n while((child=getUnvisitedChildNode(n))!=null)\n {\n child.visited=true;\n printNode(child);\n q.add(child);\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "public void inOrderTraverseIterative();", "public void BFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\tBFS(this.vertices[3], visited, queue); // BFS starting with 40\r\n\r\n\t\t// Call the helper function to print BFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tBFS(this.vertices[i], visited, queue);\r\n\t}", "public void inOrderTraverseRecursive();", "@Override\r\n public List<T> breadthFirstPath(T start, T end) {\r\n\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n LinkedList<Vertex<T>> vertexList = new LinkedList<>();\r\n //Set<Vertex<T>> visited = new HashSet<>();\r\n ArrayList<Vertex<T>> visited = new ArrayList<>();\r\n\r\n LinkedList<Vertex<T>> pred = new LinkedList<>();\r\n int currIndex = 0;\r\n\r\n pred.add(null);\r\n\r\n vertexList.add(startV);\r\n visited.add(startV);\r\n\r\n LinkedList<T> path = new LinkedList<>();\r\n\r\n if (breadthFirstSearch(start, end) == false) {\r\n path = new LinkedList<>();\r\n return path;\r\n } else {\r\n while (vertexList.size() > 0) {\r\n Vertex<T> next = vertexList.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if (next == endV) {\r\n path.add(endV.getValue());\r\n break;\r\n }\r\n for (Vertex<T> neighbor : next.getNeighbors()) {\r\n if (!visited.contains(neighbor)) {\r\n pred.add(next);\r\n visited.add(neighbor);\r\n vertexList.add(neighbor);\r\n }\r\n }\r\n currIndex++;\r\n //path.add(next.getValue());\r\n\r\n }\r\n while (currIndex != 0) {\r\n Vertex<T> parent = pred.get(currIndex);\r\n path.add(parent.getValue());\r\n currIndex = visited.indexOf(parent);\r\n }\r\n }\r\n Collections.reverse(path);\r\n return path;\r\n }", "private void breadthFirstSearch(Node sourceNode, Node destinationNode, String path, HashSet<Character> visited) {\n // Create a list of nodes to visit (children of nodes)\n LinkedList<Node> nextToVisit = new LinkedList<>();\n // Add the first node to the list\n nextToVisit.add(sourceNode);\n\n // Traverse level by level by traversing to all of its children first\n while(!nextToVisit.isEmpty()) {\n Node node = nextToVisit.remove();\n // If its visited already, continue to the next child\n if(visited.contains(node.charId)) {\n continue;\n }\n // Mark the node as visited\n path += \"->\" + node.charId;\n visited.add(node.charId);\n // If destination is reached\n if(node == destinationNode) {\n paths.add(path);\n return;\n }\n // Add all of its children to the next node to visit\n for(Node children : node.adjacent) {\n nextToVisit.add(children);\n }\n }\n\n }", "public List breadthFirstTraverse(Tree newTree) {\n Queue<Node> queue = new Queue<>();\n List frontNodeValues = new ArrayList<>();\n queue.enqueue(newTree.getRoot());\n\n while(!queue.isEmpty()) {\n Node current = queue.dequeue();\n frontNodeValues.add(current.getData());\n if(current.getLeftChildNode() != null){\n queue.enqueue( current.getLeftChildNode());\n }\n else if(current.getRightChildNode() != null) {\n queue.enqueue(current.getRightChildNode());\n }\n }\n return frontNodeValues;\n }", "public static void bfs (String input)\r\n\t{\r\n\t\tNode root_bfs = new Node (input);\r\n\t\tNode current = new Node(root_bfs.getState());\r\n\t\t\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\tQueue<Node> queue_bfs = new LinkedList<Node>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint queue_max_size = 0;\r\n\t\tint queue_size = 0;\r\n\t\tcurrent.cost = 0;\r\n\t\t\r\n\t\t// Initial check for goal state\r\n\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\r\n\t\twhile(!goal_bfs)\r\n\t\t{\r\n\t\t\t// Add the current node to the visited array\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\t// Get the nodes children from the successor function\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t// State checking, don't add already visited nodes to the queue\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t// Create child node from the children array and add it to the current node\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Obtaining the path cost\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// State check and adding the child to the queue. Increasing size counter\r\n\t\t\t\t\tif (!queue_bfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_bfs.add(nino);\r\n\t\t\t\t\t\tqueue_size++;\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}\r\n\t\t\t\r\n\t\t\t// Pop a node off the queue\r\n\t\t\tcurrent = queue_bfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\t// Added this because my queue size variable was always one off based on where my goal check is\r\n\t\t\tif (queue_size > queue_max_size)\r\n\t\t\t{\r\n\t\t\t\tqueue_max_size = queue_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Decrease queue size because a node has been popped and check for goal state\r\n\t\t\tqueue_size--;\r\n\t\t\tgoal_bfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Now that a solution has been found, set the boolean back to false for another run\r\n\t\tgoal_bfs = false;\r\n\t\tSystem.out.println(\"BFS Solved!!\");\r\n\t\t\r\n\t\t// Send metrics to be printed to the console\r\n\t\tSolution.performSolution(current, root_bfs, nodes_popped, queue_max_size);\r\n\t\t\t\r\n\t}", "public static List<Node> breadthFirstSearch(BinarySearchTree BST) {\n List<Node> breadthFirst = new LinkedList<Node>();\n LinkedList<Node> currentNodes = new LinkedList();\n Node currentNode;\n\n //Add the root node to get started\n currentNodes.add(BST.getRoot());\n //If they aren't null, add them to the queue, loop through, then remove the left-most child, add it to the\n // list, then continue looping until there are no more nodes\n while(currentNodes.size() > 0) {\n currentNode = currentNodes.removeFirst();\n breadthFirst.add(currentNode);\n if(currentNode.getLeftChild() != null) {\n currentNodes.add(currentNode.getLeftChild());\n }\n if(currentNode.getRightChild() != null) {\n currentNodes.add(currentNode.getRightChild());\n }\n }\n return breadthFirst;\n }", "private void breadthFirstSearch (int start, int[] visited, int[] parent){\r\n Queue< Integer > theQueue = new LinkedList< Integer >();\r\n boolean[] identified = new boolean[getNumV()];\r\n identified[start] = true;\r\n theQueue.offer(start);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = 1; //ziyaret edilmis vertexler queuedan cikarilan vertexlerdir\r\n Iterator < Edge > itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n if (!identified[neighbor]) {\r\n identified[neighbor] = true;\r\n theQueue.offer(neighbor);\r\n parent[neighbor] = current;\r\n }\r\n }\r\n }\r\n }", "public String breadthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 1;\n //make new vertex to check if its in list\n //make queue to hold vertices\n SemiConstantTimeQueue<Vertex<AnyType>> queue = new SemiConstantTimeQueue<Vertex<AnyType>>();\n //loop through and set not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if it's in list then set exists to true\n //and set visited \n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n } \n //if doesn't exist then throw the exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //make new queue\n queue.add(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n counter = 1;\n int k=0;\n Vertex<AnyType>e;\n //while the queue isn't empty\n while(queue.peek() !=null){\n //make e the top of the queue \n e = queue.peek(); \n //go through the list and if you reach the begining it exits loop\n for( k = 0; k < vertex_adjacency_list.size()-1; k++){\n if(vertex_adjacency_list.get(k).compareTo(e)==0){\n break;\n }\n } \n //go through loop and check if visited, if not then add it to queue, set visited\n for( int j = 0; j< vertex_adjacency_list.get(k).numberOfAdjacentVertices(); j++){\n if(vertex_adjacency_list.get(k).getAdjacentVertex(j).hasBeenVisited()==false){\n counter++;\n queue.add(vertex_adjacency_list.get(k).getAdjacentVertex(j));\n vertex_adjacency_list.get(k).getAdjacentVertex(j).setVisited(counter);\n }\n }\n //remove from queue when through loop once\n k++;\n queue.remove();\n }\n //loop through list and print vertex and when it was visited\n for(int o = 0; o< vertex_adjacency_list.size(); o++){\n buffer.append(vertex_adjacency_list.get(o) + \":\" + vertex_adjacency_list.get(o).getVisited()+ \"\\n\");\n }\n return buffer.toString();\n }", "private void bfs(int nodeKey) {\n Queue<Integer> q = new LinkedList<>();\n // initialize all the nodes\n for (node_data node : G.getV())\n node.setTag(0);\n\n int currentNode = nodeKey;\n\n // iterate the graph and mark nodes that have been visited\n while (G.getNode(currentNode) != null) {\n for (edge_data edge : G.getE(currentNode)) {\n node_data dest = G.getNode(edge.getDest());\n if (dest.getTag() == 0) {\n q.add(dest.getKey());\n }\n G.getNode(currentNode).setTag(1);\n }\n if(q.peek()==null)\n currentNode=-1;\n else\n currentNode = q.poll();\n }\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "int main()\n{\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n \n cout << \"Following is Breadth First Traversal \"\n << \"(starting from vertex 2) n\";\n g.BFS(2);\n \n return 0;\n}", "protected abstract void traverse();", "private void breadthFirst(PathBetweenNodes graph, LinkedList<String> visited) {\r\n\r\n LinkedList<String> nodes = graph.adjacentNodes(visited.getLast());\r\n for (String node : nodes)\r\n {\r\n if (visited.contains(node))\r\n {\r\n continue;\r\n }\r\n if (node.equals(END))\r\n {\r\n \tif (mode1 && mode){\r\n visited.add(node);\r\n printPath(visited); \r\n graph.flag=false;\r\n mode=false;\r\n visited.removeLast();\r\n \t} else if(mode2){\r\n visited.add(node);\r\n printPath(visited); \r\n flag=mode2; \r\n visited.removeLast();\r\n \t} \r\n } \r\n }\r\n\r\n for (String node : nodes) { // implementing a for loop to call each node in the array nodes\r\n if (visited.contains(node) || node.equals(END)) { // if statement to see if node is already visited or it is the end node\r\n continue;\r\n }\r\n flag=true;\r\n visited.addLast(node); //adding the last node to visited array\r\n breadthFirst(graph, visited); // implementing the breath first search\r\n visited.removeLast(); // removing the last node from array visited\r\n }\r\n if (flag == false) {\r\n System.out.println(\"No path Exists between \" + START + \" and \" + END);\r\n flag = true;\r\n }\r\n }", "@Override\r\n public boolean breadthFirstSearch(T start, T end) {\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n Queue<Vertex<T>> queue = new LinkedList<Vertex<T>>();\r\n Set<Vertex<T>> visited = new HashSet<>();\r\n\r\n queue.add(startV);\r\n visited.add(startV);\r\n\r\n while(queue.size() > 0){\r\n Vertex<T> next = queue.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if(next == endV){\r\n return true;\r\n }\r\n\r\n for (Vertex<T> neighbor: next.getNeighbors()){\r\n if(!visited.contains(neighbor)){\r\n visited.add(neighbor);\r\n queue.add(neighbor);\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n }", "public void traverseBFS(Node root) {\n if (root != null) {\n Queue<Node> queue = new LinkedList<>();\n //Insert the root in the queue\n queue.add(root);\n while (!queue.isEmpty()) {\n // Extract the Node from the queue\n Node node = queue.remove();\n // Print the extracted Node\n System.out.println(node.value);\n // Insert the Node's children into the queue\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }\n }", "public static void bfsTraversal(BSTNode root) {\n\t\t // base condition\n\t\t if (root == null) {\n\t\t return;\n\t\t }\n\t\t // let's have a queue to maintain nodes\n\t\t Queue<BSTNode> q = new LinkedList<>();\n\t\t if (root != null) {\n\t\t q.add(root);\n\t\t }\n\t\t \n\t\t while (!q.isEmpty()) {\n\t\t BSTNode curr = q.poll();\n\t\t if (curr != null) {\n\t\t\t q.add(curr.left);\n\t\t\t q.add(curr.right);\n\t\t\t \n\t\t\t System.out.print(curr.data + \" \");\n\t\t }\n\t\t }\n\t\t \n\t}", "@Override\n\tpublic List<Node<E>> bfs(DirectedGraph<E> graph) {\n\t\tList<Node<E>> returnList = new ArrayList<>(); // O(1)\n\t\tHashSet<Node<E>> visitedList = new HashSet<>(); // O(1)\n\t\tHashSet<Node<E>> hashSet = new HashSet<>(); // O(1)\n\n\t\t// If the graph does contains heads, iterate from the head.\n\t\tif(graph.headCount() > 0) { // O(1)\n\t\t\tIterator<Node<E>> heads = graph.heads(); // O(1)\n\t\t\twhile(heads.hasNext()) { // O(n)\n\t\t\t\tNode<E> node = heads.next(); // O(1)\n\n\t\t\t\tif(!visitedList.contains(node)) { // O(1)\n\t\t\t\t\tnode.num = visitedList.size(); // O(1)\n\t\t\t\t\tvisitedList.add(node); // O(1)\n\t\t\t\t\thashSet.add(node); // O(1)\n\t\t\t\t\treturnList.add(node); // O(1)\n\t\t\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Else start from the first node in the graph.\n\t\telse {\n\t\t\thashSet.add(graph.getNodeFor(graph.allItems().get(0))); // O(1)\n\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t}\n\t\treturn returnList;\n\t}", "public static void bfs(TreeNode root){\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n System.out.println(root.val);\n root.visited=true;\n\n while (!queue.isEmpty()){\n TreeNode node=queue.remove();\n TreeNode child=null;\n if((child=getUnVisitedChiledNode(node))!=null){\n child.visited=true;\n System.out.println(child.val);\n queue.add(child);\n }\n }\n // cleearNodes();\n }", "public ArrayList<Integer> breadthFirstTraversal(BinaryTree tree) throws Exception{\r\n Node current = tree.root;\r\n if (current == null) {\r\n throw new Exception(\"Tree is empty!\");\r\n }\r\n \r\n Queue<Node> que = new LinkedList<>();\r\n que.add(current);\r\n while (!que.isEmpty()) {\r\n\r\n current = (Node) que.peek();\r\n que.remove();\r\n numbers.add(current.value);\r\n if (current.left != null) {\r\n que.add(current.left);\r\n }\r\n if (current.right != null) {\r\n que.add(current.right);\r\n }\r\n\r\n }\r\n return numbers;\r\n }", "private void breadthHelper(Graph<VLabel, ELabel>.Vertex v) {\n LinkedList<Graph<VLabel, ELabel>.Vertex> fringe =\n new LinkedList<Graph<VLabel, ELabel>.Vertex>();\n fringe.add(v);\n while (fringe.size() > 0) {\n Graph<VLabel, ELabel>.Vertex curV = fringe.poll();\n try {\n if (!_marked.contains(curV)) {\n _marked.add(curV);\n try {\n visit(curV);\n } catch (RejectException rExc) {\n fringe.add(curV);\n continue;\n }\n for (Graph<VLabel, ELabel>.Edge e: _graph.outEdges(curV)) {\n Graph<VLabel, ELabel>.Vertex child = e.getV(curV);\n if (!_marked.contains(child)) {\n try {\n preVisit(e, curV);\n fringe.add(child);\n } catch (RejectException rExc) {\n int unused = 0;\n }\n }\n }\n fringe.add(curV);\n } else {\n postVisit(curV);\n while (fringe.remove(curV)) {\n continue;\n }\n }\n } catch (StopException sExc) {\n _finalVertex = curV;\n return;\n }\n }\n }", "public int [] breadthFirstSearch (int start){\r\n int [] visited = new int[getNumV()];\r\n int[] order = new int[getNumV()];\r\n int index = 0;\r\n int[] parent = new int[getNumV()];\r\n\r\n // parent arrayi, visited arrayi ve order arrayi set edildi\r\n for(int i = start; i<getNumV(); i++){\r\n parent[i] = -1;\r\n visited[i] = -1;\r\n order[index] = i;\r\n index++;\r\n }\r\n //eger baslanilan vertex sifirdan farkli bir vertex ise bu vertex'e kadar ki vertexler de order arrayine eklendi.\r\n if(index<getNumV()-1)\r\n for(int i=0; i<start; i++){\r\n order[index] = i;\r\n index++;\r\n }\r\n\r\n // her vertex uzerinden breadthFirsSearch yapildi.\r\n for(int i = 0; i<getNumV(); i++) {\r\n if(visited[i] == -1)\r\n breadthFirstSearch(order[i], visited, parent);\r\n }\r\n return parent;\r\n }", "public BreadthFirstTraversal(Graph<V> graph) {\n super(graph);\n }", "public void depthFirstTraverse() {\n\t\tInteger first = (Integer) edges.keySet().toArray()[0];\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\tdepthFirstTraverse(first, visited);\n\t}", "public String outputBreadthFirstSearch() {\n\n String output = \"\";\n\n // create a queue for BFS \n LinkedList<TrieNode> queue = new LinkedList<>();\n\n queue.add(root);\n\n while (queue.size() != 0) {\n // dequeue a node from queue and append to the output\n TrieNode s = queue.poll();\n\n // append to the output\n output += s;\n\n // get all children nodes of the dequeued node s\n TrieNode[] children = s.offsprings;\n for (int i = 0; i < 26; i++) {\n TrieNode next = children[i];\n if (next != null) {\n queue.add(next);\n }\n\n }\n }\n return output;\n }", "public BreathTraversal(Tree startItem) {\n super(startItem);\n nodes = new ArrayList<>();\n startItem.accept(breathcollector);\n cur = startItem;\n }", "@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}", "void testSearches(Tester t) {\n Vertex v1 = new Vertex(10, 10);\n Vertex v2 = new Vertex(10, 11);\n Vertex v3 = new Vertex(10, 12);\n\n Edge e1 = new Edge(v1, v2, 1);\n Edge e2 = new Edge(v2, v3, 1);\n\n IList<Vertex> map = new Cons<Vertex>(v1, new Cons<Vertex>(v2, new Cons<Vertex>(\n v3, new Empty<Vertex>())));\n\n Player player = new Player(map);\n DepthFirst dp = new DepthFirst(map);\n BreadthFirst bp = new BreadthFirst(map);\n\n t.checkExpect(player.current, v1);\n t.checkExpect(player.finished, false);\n\n t.checkExpect(bp.hasNext(), true);\n t.checkExpect(bp.next(), new Queue<Vertex>());\n\n t.checkExpect(dp.hasNext(), true);\n t.checkExpect(dp.next(), new Stack<Vertex>());\n\n t.checkExpect(player.move(true, e1), v2);\n\n t.checkExpect(player.current, v2);\n t.checkExpect(player.finished, false);\n\n t.checkExpect(bp.hasNext(), false);\n t.checkExpect(bp.next(), v3);\n\n t.checkExpect(dp.hasNext(), false);\n t.checkExpect(dp.next(), v3);\n\n t.checkExpect(player.move(true, e2), v3);\n\n player.finished = true;\n\n t.checkExpect(player.current, v3);\n t.checkExpect(player.finished, true);\n\n Queue<Vertex> q = new Queue<Vertex>(map);\n\n q.enqueue(new Vertex(5, 5));\n\n Deque<Vertex> dq = new Deque<Vertex>();\n dq.addAtHead(v1);\n dq.addAtTail(v2);\n dq.addAtTail(new Vertex(5, 5));\n\n\n t.checkExpect(q.isEmpty(), false);\n t.checkExpect(q.contents, dq);\n\n Stack<Vertex> stack = new Stack<Vertex>(map);\n\n t.checkExpect(stack.isEmpty(), false);\n dq.removeFromHead();\n t.checkExpect(stack.pop(), dq);\n\n t.checkExpect(dp.next(), v2);\n t.checkExpect(bp.hasNext(), true);\n\n }", "public void breadthFirstTraverse(Graph<VLabel, ELabel> G,\n Graph<VLabel, ELabel>.Vertex v) {\n _graph = G;\n _finalVertex = null;\n _curTraversal = \"bft\";\n _marked = new HashSet<Graph<VLabel, ELabel>.Vertex>();\n breadthHelper(v);\n }", "void bfs(SimpleVertex simpleVertex) {\n\t\twhile (true) {\n\t\t\tif (simpleVertex.isVisited == false) {\n\n\t\t\t\tif (simpleVertex.isAdded == false) {\n\t\t\t\t\tqueue.add(simpleVertex);\n\t\t\t\t\tsimpleVertex.isAdded = true;\n\t\t\t\t}\n\t\t\t\tsimpleVertex.isVisited = true;\n\t\t\t\tSystem.out.print(simpleVertex.Vertexname + \" \");\n\n\t\t\t\tfor (int i = 0; i < simpleVertex.neighborhood.size(); i++) {\n\t\t\t\t\tSimpleEdge node = simpleVertex.neighborhood.get(i);\n\n\t\t\t\t\tif (node.two.isAdded == false)\n\t\t\t\t\t\tqueue.add(node.two);\n\t\t\t\t\tnode.two.isAdded = true;\n\n\t\t\t\t}\n\t\t\t\tqueue.poll();\n\t\t\t\tif (!queue.isEmpty())\n\t\t\t\t\tbfs(queue.peek());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}", "public void bfs(Queue<Integer> queue, int visited[]) {\n if (queue.isEmpty()) {\n return;\n }\n\n int root = queue.poll();\n\n if (visited[root] == 1) {\n bfs(queue, visited);\n return;//alreadu into consideration\n }\n\n\n System.out.printf(\"Exploring of node %d has started\\n\", root);\n visited[root] = 1;\n\n\n for (int i = 0; i < adjMatrix[root].size(); i++) {\n if (visited[adjMatrix[root].get(i)] == 1 || visited[adjMatrix[root].get(i)] == 2) {\n continue;\n }\n queue.add(adjMatrix[root].get(i));\n }\n bfs(queue, visited);\n System.out.printf(\"Exploring of node %d has end\\n\", root);\n visited[root] = 2;\n }", "public void bfs(Vertex<T> start) {\n\t\t\t// BFS uses Queue data structure\n\t\t\tQueue<Vertex<T>> que = new LinkedList<Vertex<T>>();\n\t\t\tstart.visited = true;\n\t\t\tque.add(start);\n\t\t\tprintNode(start);\n\n\t\t\twhile (!que.isEmpty()) {\n\t\t\t\tVertex<T> n = (Vertex<T>) que.remove();\n\t\t\t\tVertex<T> child = null;\n\t\t\t\twhile ((child = getUnvisitedChildren(n)) != null) {\n\t\t\t\t\tchild.visited = true;\n\t\t\t\t\tque.add(child);\n\t\t\t\t\tprintNode(child);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void traverse2() {\n BTNode node = root, prev = null, next;\n while (node != null) {\n if (prev == node.parent) {\n if (node.left != null) {\n next = node.left;\n }\n else if (node.right != null) {\n next = node.right;\n }\n else {\n next = node.parent;\n }\n } else if (prev == node.left) {\n if (node.right != null) {\n next = node.right;\n }\n else {\n next = node.parent;\n }\n } else {\n next = node.parent;\n }\n prev = node;\n node = next;\n }\n }", "public void breadthFirstTraversal(final int startPoint) {\n\t\tfinal boolean[] isVerticesVisited = new boolean[adjacencyList.length];\n\t\tfinal Queue<Integer> queue = new LinkedList<>();\n\n\t\tisVerticesVisited[startPoint] = true;\n\t\tqueue.add(startPoint);\n\n\t\tint selectedVertice;\n\t\tint vertice;\n\t\twhile (!queue.isEmpty()) {\n\t\t\tselectedVertice = queue.poll();\n\n\t\t\tSystem.out.print(selectedVertice + \" \");\n\n\t\t\tIterator<Integer> edgeIterator = adjacencyList[selectedVertice].listIterator();\n\n\t\t\twhile (edgeIterator.hasNext()) {\n\t\t\t\tvertice = edgeIterator.next();\n\t\t\t\tif (!isVerticesVisited[vertice]) {\n\t\t\t\t\tqueue.add(vertice);\n\t\t\t\t\tisVerticesVisited[vertice] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void greedyBFS(String input)\r\n\t{\r\n\t\tNode root_gbfs = new Node (input);\r\n\t\tNode current = new Node(root_gbfs.getState());\r\n\t\t\r\n\t\tNodeComparator gbfs_comparator = new NodeComparator();\r\n\t\tPriorityQueue<Node> queue_gbfs = new PriorityQueue<Node>(12, gbfs_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.total_cost = 0;\r\n\t\t\r\n\t\twhile(!goal_gbfs)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\tvisited.add(nino.getState());\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\tint greedy_cost = greedybfsCost(nino.getState(), root_gbfs.getState());\r\n\t\t\t\t\tnino.setTotalCost(greedy_cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_gbfs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getTotalCost() < copy.getTotalCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_gbfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_gbfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_gbfs = false;\r\n\t\tSystem.out.println(\"GBFS Solved!!\");\r\n\t\tSolution.performSolution(current, root_gbfs, nodes_popped, pqueue_max_size);\r\n\t}", "static void bfs(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n output.add(node.val);\n if (node.left != null) {\n queue.add(node.left);\n }\n if (node.right != null) {\n queue.add(node.right);\n }\n }\n }", "static void bfs(int[][] G){\n\t\tQueue<Integer> q = new LinkedList<Integer>();\t\t\n\t\tfor (int ver_start = 0; ver_start < N; ver_start ++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\tq.add(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!q.isEmpty()){\n\t\t\t\tint vertex = q.remove();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the queue\n\t\t\t\t\t\tq.add(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"--\");\t\t\t\n\t\t}\n\t}", "public void BFS() {\r\n\t\tQueue queue = new Queue();\r\n\t\tqueue.enqueue(this.currentVertex);\r\n\t\tcurrentVertex.printVertex();\r\n\t\tcurrentVertex.visited = true;\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tVertex vertex = (Vertex) queue.dequeue();\r\n\t\t\tVertex child = null;\r\n\t\t\twhile ((child = getUnvisitedChildVertex(vertex)) != null) {\r\n\t\t\t\tchild.visited = true;\r\n\t\t\t\tchild.printVertex();\r\n\t\t\t\tqueue.enqueue(child);\r\n\t\t\t}\r\n\t\t}\r\n\t\tclearVertexNodes();\r\n\t\tprintLine();\r\n\t}", "public void breadthFirstSearch(int vertexIndex) {\n Queue<Integer> queue = new LinkedList<Integer>();\n vertexList[vertexIndex].wasVisited = true;\n displayVertex(vertexIndex);\n int unvisitedIndex;\n do {\n\n do {\n unvisitedIndex = getAdjacentUnvisitedVertexIndex(vertexIndex);\n if(unvisitedIndex != -1) {\n vertexList[unvisitedIndex].wasVisited = true;\n displayVertex(unvisitedIndex);\n queue.add(unvisitedIndex);\n\n }\n } while(unvisitedIndex != -1);\n if(!queue.isEmpty()) {\n vertexIndex = queue.remove();\n\n }\n\n } while(!queue.isEmpty());\n\n for (int i = 0; i < vertexCount; i++) {\n vertexList[i].wasVisited = false;\n\n }\n }", "private void BFS() {\n\n int fruitIndex = vertices.size()-1;\n Queue<GraphNode> bfsQueue = new LinkedList<>();\n bfsQueue.add(vertices.get(0));\n while (!bfsQueue.isEmpty()) {\n GraphNode pollNode = bfsQueue.poll();\n pollNode.setSeen(true);\n for (GraphNode node : vertices) {\n if (node.isSeen()) {\n continue;\n } else if (node.getID() == pollNode.getID()) {\n continue;\n } else if (!los.isIntersects(pollNode.getPoint(), node.getPoint())) {\n pollNode.getNeigbours().add(node);\n if (node.getID() != fruitIndex) {\n bfsQueue.add(node);\n node.setSeen(true);\n }\n }\n }\n }\n }", "public DSAQueue breadthFirstSearch(String start, String target)\n\t{\n\t\tif(!vertices.isEmpty())\n\t\t{\n\t\t\tDSAQueue queue = new DSAQueue();\n\t\t\tDSAStack visited = new DSAStack();\t//creates empty stack\n\t\t\tDSAGraphVertex vx = getVertex(start); //vertex to start on (root)\n\t\t\tDSAGraphVertex dest = getVertex(target); //vertex to start on (dest)\n\n\t\t\tclear(); //sets all visited on all vertices == false\n\t\t\tvx.setVisited(); // Marks root as visited\n\t\t\tqueue.enqueue(vx); //adds start point to queue\n\n\t\t\tbfs(vx, visited, queue, dest); //begin recursion\n\n\t\t\tqueue.enqueue(dest); //if successful adds destination to queue\n\n\t\t\treturn queue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new NoSuchElementException(\"List is empty or start or end elements don't exist\");\n\t\t}\n\t}", "@Override\r\n\tpublic Iterator<T> iteratorLevelOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tQueue<BSTNode<T>> work = new ArrayDeque<BSTNode<T>>();\r\n\t\twork.add(this.root);//start at the root\r\n\r\n\t\twhile(!work.isEmpty()) {\r\n\t\t\tBSTNode<T> node = work.remove();//pop the first\r\n\t\t\tlist.add(node.data);\r\n\t\t\t\r\n\t\t\tif(node.left!= null) {\r\n\t\t\t\twork.add(node.left);\r\n\t\t\t}\r\n\t\t\tif(node.right!= null) {\r\n\t\t\t\twork.add(node.right);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list.iterator();\r\n\t}", "public List<Edge> breadthFirstTraverse(String v) {\n int start = indexOf(v);\n if (start == -1) return new LinkedList<>();\n\n List<Edge> path = new LinkedList<>();\n Queue<Integer> queue = new Queue<>();\n boolean[] visited = new boolean[vertexes.length];\n\n queue.enQueue(start);\n while(!queue.isEmpty()) {\n start = queue.deQueue();\n visited[start] = true;\n\n for (int i: this.heads[start]) {\n if (!visited[i]) { // not visited yet\n visited[i] = true;\n path.add(new Edge(start, i));\n\n queue.enQueue(i); // add to the queue for the next loop\n }\n }\n }\n\n return path;\n }", "private static void bfs(int idx) {\n\t\t\n\t\tQueue<node> q =new LinkedList<node>();\n\t\tq.add(new node(idx,0,\"\"));\n\t\twhile (!q.isEmpty()) {\n\t\t\tnode tmp = q.poll();\n\t\t\tif(tmp.idx<0 ||tmp.idx > 200000) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tmp.cnt> min) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(tmp.idx == k) {\n\t\t\t\tif(tmp.cnt < min) {\n\t\t\t\t\tmin = tmp.cnt;\n\t\t\t\t\tminnode = tmp;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(!visit[tmp.idx] && tmp.idx<=100000) {\n\t\t\t\tvisit[tmp.idx]= true;\n\t\t\t\tq.add(new node(tmp.idx*2, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx-1, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx+1, tmp.cnt+1,tmp.s));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void inOrderTraversal(int index) {\n // go through the graph as long as has values\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n inOrderTraversal(2 * index + 1);\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on right child\n inOrderTraversal(2 * index + 2);\n }", "public Vector<K> BFS(){\n\t\tQueue<Node> q = new LinkedList<Node>();\n\t\tVector v= new Vector();\n\t\tif (root == null)\n\t\t\t{return v;}\n\t\tq.add(root);\n\t\twhile (!q.isEmpty()) {\n\t\t\tNode n = (Node) q.remove();\n\t\t\tv.add(n.key);\n\t\t\tif (n.left != null){\n\t\t\t\tq.add(n.left);\n\t\t\t}\n\t\t\tif (n.right != null){\n\t\t\t\tq.add(n.right);\n\t\t\t}\n\t\t}\n\t\treturn v;\n\t}", "public ArrayList<Integer> breadthSearch(int i, int j) {\n markedVerts = new ArrayList<Integer>();\n visitedVerts = new ArrayList<Integer>();\n Queue<Integer> queue = new LinkedList<Integer>();\n queue.add(i);\n return new ArrayList(breadthSearch(i, j, queue, queue));\n }", "void BFS(Node root) {\n\t\tQueue<Node> qe=new LinkedList<Node>();\n\t\tqe.add(root);\n\t\twhile (!qe.isEmpty()) {\n\t\t\tNode q = (Node) qe.poll();\n\t\t\tif (q != null) {\n\t\t\t\tSystem.out.print(q.data + \",\");\n\t\t\t\tqe.add(q.left);\n\t\t\t\tqe.add(q.right);\n\t\t\t}\n\t\t}\n\t}", "public void bfs(int s) {\n boolean[] visited = new boolean[v];\n int level = 0;\n parent[s] = 0;\n levels[s] = level;\n Queue<Integer> queue = new LinkedList<>();\n queue.add(s);\n visited[s] = true;\n while (!queue.isEmpty()){\n Integer next = queue.poll();\n System.out.print(next+\", \");\n Iterator<Integer> it = adj[next].listIterator();\n\n while (it.hasNext()){\n Integer i = it.next();\n if(!visited[i]){\n visited[i] = true;\n levels[i] = level;\n parent[i] = next;\n queue.add(i);\n }\n }\n\n level++;\n }\n }", "static boolean bfs(TreeNode root) {\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n queue.add(root);\n while (!queue.isEmpty()) {\n TreeNode node = (TreeNode) queue.remove();\n if (node == null)\n continue;\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n queue.addAll(node.getChildren());\n // dump(queue);\n }\n return false;\n }", "@Test\n public void test(){\n BinarySearchTree tree = new BinarySearchTree(new Node(35));\n\n tree.addNode(4);\n tree.addNode(15);\n tree.addNode(3);\n tree.addNode(1);\n tree.addNode(20);\n tree.addNode(8);\n tree.addNode(50);\n tree.addNode(40);\n tree.addNode(30);\n tree.addNode(80);\n tree.addNode(70);\n\n tree.addNode(90);\n\n tree.deleteNode(50);\n System.out.println(\"=====中序遍历 递归法=====\");\n TreeUtil.traverseInOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traverseInOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====前序遍历=====\");\n TreeUtil.traversePreOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====中序遍历 迭代法=====\");\n TreeUtil.traversePreOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历=====\");\n TreeUtil.traversePostOrder(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====后序遍历 迭代法=====\");\n TreeUtil.traversePostOrderByIteration(tree.getRoot());\n\n System.out.println(\"\");\n System.out.println(\"=====层次遍历=====\");\n TreeUtil.traverseLevelOrder(tree.getRoot());\n\n int height = TreeUtil.getChildDepth(tree.getRoot());\n System.out.println(\"\");\n System.out.println(\"树高:\"+height);\n }", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "private PersistentLinkedList<T> pop() {\n //the latest element won't become empty\n int index = this.treeSize - 1;\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n ArrayList<Node<T>> newNodes = new ArrayList<>();\n newNodes.add(newRoot);\n ArrayList<Integer> newNodesIndices = new ArrayList<>();\n\n for (int b = base; b > 1; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n newNodes.add(currentNewNode);\n newNodesIndices.add(index / b);\n index = traverseData.index;\n }\n newNodesIndices.add(index);\n\n for (int i = 0; i < branchingFactor && i < index; i++) {\n currentNewNode.set(i, currentNode.get(i));\n }\n currentNewNode.set(index, null);\n\n if (index == 0) {\n int latestIndex = newNodes.size() - 2;\n newNodes.get(latestIndex).set(newNodesIndices.get(latestIndex), null);\n\n for (int i = latestIndex; i > 0; i--) {\n if (newNodesIndices.get(i) == 0) {\n newNodes.get(i - 1).set(newNodesIndices.get(i - 1), null);\n } else {\n break;\n }\n }\n }\n\n if (newNodes.size() > 1) {\n int nonNullChildren = 0;\n for (Node<T> child : newRoot.children) {\n if (child != null) {\n nonNullChildren++;\n }\n }\n if (nonNullChildren == 1) { //need new root\n newRoot = newRoot.get(0);\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth - 1,\n this.base / branchingFactor, this.treeSize - 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }\n }\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize - 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }", "public void BFS() {\n visitedCells = 1;\n\n // Initialize the vertices\n for (int j = 0; j < maze.getGrid().length; j++) {\n for (int k = 0; k < maze.getGrid().length; k++) {\n Cell cell = maze.getGrid()[j][k];\n cell.setColor(\"WHITE\");\n cell.setDistance(0);\n cell.setParent(null);\n }\n }\n\n Cell sourceCell = maze.getGrid()[0][0];\n Cell neighbor = null;\n Cell currentCell;\n int distance = 0;\n\n // Initialize the source node\n sourceCell.setColor(\"GREY\");\n sourceCell.setDistance(0);\n sourceCell.setParent(null);\n\n queue.add(sourceCell);\n\n // Visits each cell until the queue is empty\n while (!queue.isEmpty()) {\n currentCell = queue.remove();\n\n for (int i = 0; i < currentCell.mazeNeighbors.size(); i++) {\n neighbor = currentCell.mazeNeighbors.get(i);\n\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n visitedCells++;\n break;\n }\n\n // Checks each neighbor and adds it to the queue if its color is white\n if (neighbor.getColor().equalsIgnoreCase(\"WHITE\")) {\n distance++;\n if (distance == 10)\n distance = 0;\n neighbor.setColor(\"GREY\");\n neighbor.setDistance(distance);\n neighbor.setParent(currentCell);\n neighbor.visited = true;\n queue.add(neighbor);\n visitedCells++;\n }\n }\n // Stop the search if you reach the final cell\n if (neighbor.x == r - 1 && neighbor.y == r - 1)\n break;\n\n currentCell.setColor(\"BLACK\");\n }\n }", "private void bfs(Node node, HashSet<Integer> visited) {\n\t\tLinkedList<Node> queue = new LinkedList<Node>();\n\t\tvisited.add(node.id);\n\t\tqueue.add(node);\n\t\twhile(!queue.isEmpty()) {\n\t\t\tNode s = queue.remove();\n\t\t\tSystem.out.println(s.id);\n\t\t\tfor(Node n : s.adj) {\n\t\t\t\tif(!visited.contains(n.id)) {\n\t\t\t\t\tqueue.add(n);\n\t\t\t\t\tvisited.add(n.id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<Node<E>> bfs(DirectedGraph<E> graph, Node<E> root) {\n\t\tHashSet<Node<E>> visitedList = new HashSet<>();\n\t\tList<Node<E>> returnList = new ArrayList<>();\n\t\tHashSet<Node<E>> hashSet = new HashSet<>(); \n\t\thashSet.add(root);\n\n\t\treturn bfsRecursive(hashSet, visitedList, returnList);\n\t}", "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "private void preOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on left child\n preOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n preOrderTraversal(2 * index + 2);\n }", "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}", "private void doDepthFirstTraverse(int start, boolean[] visited, List<Edge> path) {\n visited[start] = true;\n\n for (int i: this.heads[start]) {\n if (!visited[i]) {\n path.add(new Edge(start, i));\n doDepthFirstTraverse(i, visited, path);\n }\n }\n }", "private void bfs(int x, int y, Node p) {\n if (p == null) {\n // TODO\n return;\n }\n char c = board[x][y];\n\n if (p.next(c) == null) {\n // TODO not found\n return;\n }\n\n Node node = p.next(c);\n\n // if node is leaf, found a word\n if (node.word != null) {\n if (!results.contains(node.word)) {\n results.add(node.word);\n }\n }\n\n mark[x][y] = true;\n for (int[] dir: dirs) {\n int newX = x + dir[0];\n int newY = y + dir[1];\n if (newX < 0 || n <= newX\n || newY < 0 || m <= newY) {\n continue;\n }\n\n if (mark[newX][newY]) {\n continue;\n }\n\n bfs(newX, newY, node);\n }\n mark[x][y] = false;\n }", "public static void breadthFirstSearch (HashMap<String, Zpair> stores,\n HashSet<Zpair> visited,\n List<Integer> sortedQueue) {\n List<String> q = new ArrayList<String>();\n q.add(\"Q\");\n // k=0\n //int k = 0;\n while(q.size() != 0) {\n //if(k == 21) {\n // System.exit(20);\n // }\n List<StringBuffer> path = new ArrayList<StringBuffer>(); // this is the return string\n List<String> q1 = new ArrayList<String>();\n int size = q.size();\n //System.out.println(k);\n for(int i = 0; i < size; i++) {\n //printList(q);\n path.add(ZMethods.stringPop(q));\n execute(path.get(i), stores, visited, q1, sortedQueue);\n }\n copyStringBuffer(q1,q);\n //k++;\n }\n }", "private Cell breadthFirstSearch(WorldMap worldMap, Cell startCell, CELLTYPE goalType, Hashtable<Cell, Cell> prev) {\n\n\t\t// Using markedSet to avoid re-checking already visited nodes\n\t\tHashSet<Cell> markedSet = new HashSet<Cell>();\n\t\tLinkedList<Cell> queue = new LinkedList<Cell>();\n\n\t\tmarkedSet.add(startCell);\n\t\tqueue.add(startCell);\n\n\t\twhile (!queue.isEmpty()) {\n\t\t\tCell cell = queue.remove();\n\t\t\tif (cell.getCellType() == goalType)\n\t\t\t\treturn cell;\n\t\t\tLinkedList<Cell> neighbors = generateSuccessors(worldMap, cell, goalType);\n\n\t\t\t/*\n\t\t\t * If looking for unexplored, shuffle list. Since the neighbors are\n\t\t\t * always returned NESW, it's best to shuffle the list if ant wants\n\t\t\t * to explore a random portion of the map.\n\t\t\t */\n\t\t\tif (goalType == CELLTYPE.UNEXPLORED)\n\t\t\t\tCollections.shuffle(neighbors, new Random(System.currentTimeMillis()));\n\n\t\t\tfor (Cell neighbor : neighbors)\n\t\t\t\tif (!markedSet.contains(neighbor)) {\n\t\t\t\t\tmarkedSet.add(neighbor);\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t\tprev.put(neighbor, cell);\n\t\t\t\t}\n\t\t}\n\t\t// If reached here, goal type doesn't exist\n\t\treturn null;\n\t}", "Bfs_search(int v) \r\n { \r\n V = v; \r\n \r\n adj = new LinkedList[v]; \r\n \r\n for (int i=0; i<v; ++i) \r\n adj[i] = new LinkedList(); \r\n }", "private void recInOrderTraversal(BSTNode<T> node) {\n\t\tif (node != null) {\n\t\t\trecInOrderTraversal(node.getLeft());\n\t\t\ta.add(node.getData());\n\t\t\trecInOrderTraversal(node.getRight());\n\t\t}\n\t}", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public String breadthFirstTraversal(BinaryNode<T> root, int level){\n String levelTrav = \"\";\n if(root == null){\n return levelTrav;\n }\n if(level == 0){\n levelTrav = root.getData().toString() + \"->\";\n }else{\n levelTrav = breadthFirstTraversal(root.getLeftNode(), level-1)+breadthFirstTraversal(root.getRightNode(), level-1);\n// if(root.getLeftNode() != null){return ;};\n// if(root.getRightNode() != null){return };\n }\n return levelTrav;\n }", "void Graph::BFS(int s)\n{\n bool *visited = new bool[V];\n for(int i = 0; i < V; i++)\n visited[i] = false;\n \n // Create a queue for BFS\n list<int> queue;\n \n // Mark the current node as visited and enqueue it\n visited[s] = true;\n queue.push_back(s);\n \n // 'i' will be used to get all adjacent vertices of a vertex\n list<int>::iterator i;\n \n while(!queue.empty())\n {\n // Dequeue a vertex from queue and print it\n s = queue.front();\n cout << s << \" \";\n queue.pop_front();\n \n // Get all adjacent vertices of the dequeued vertex s\n // If a adjacent has not been visited, then mark it visited\n // and enqueue it\n for(i = adj[s].begin(); i != adj[s].end(); ++i)\n {\n if(!visited[*i])\n {\n visited[*i] = true;\n queue.push_back(*i);\n }\n }\n }", "public static void bfs(int a, int b) {\n\t\t\r\n\t\tQueue<Node> q = new LinkedList<>();\r\n\t\t\r\n\t\tq.add(new Node(a,b));\r\n\t\t\r\n\t\twhile(!q.isEmpty()) {\r\n\t\t\t\r\n\t\t\tNode n = q.remove();\r\n\t\t\t\r\n\t\t\tint x = n.x;\r\n\t\t\tint y = n.y;\r\n\t\t\t\r\n\t\t\tif(x+1 <= N && map[x+1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x+1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x+1,y));\r\n\t\t\t\t\tvisited[x+1][y] = cnt;\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\t\t\tif(x-1 > 0 && map[x-1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x-1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x-1,y));\r\n\t\t\t\t\tvisited[x-1][y] = cnt;\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\t\t\tif(y-1 > 0 && map[x][y-1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y-1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y-1));\r\n\t\t\t\t\tvisited[x][y-1] = cnt;\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\t\t\tif(y+1 <=N && map[x][y+1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y+1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y+1));\r\n\t\t\t\t\tvisited[x][y+1] = cnt;\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\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "void BFS(int s);", "public void traverseInOrder() {\n\t System.out.println(\"============= BTREE NODES ===============\");\n\t\tinOrder(root);\n System.out.println(\"=========================================\");\n\t}", "void BFS(int s)\n {\n /* List of visited vertices; all false in the beginning) */\n boolean visited[] = new boolean[V];\n\n /* Queue data structure is used for BFS */\n LinkedList<Integer> queue = new LinkedList<>();\n\n /* Mark starting node s as visited and enqueue it */\n visited[s]=true;\n queue.add(s);\n\n /* Until queue is empty, dequeue a single node in queue and look for it's neighboring vertices.\n * If an adjecent node hasn't been visited yet, set it as visited and enqueue this node. s*/\n while (queue.size() != 0)\n {\n /* Dequeue */\n s = queue.poll();\n System.out.print( s + \" \");\n\n /* Get all adjacent vertices */\n Iterator<Integer> i = adj[s].listIterator();\n while (i.hasNext())\n {\n int n = i.next();\n if (!visited[n])\n {\n visited[n] = true;\n queue.add(n);\n }\n }\n }\n }", "@Override\n public void bfs() {\n\n }", "Set<String> bfsTraversal(Graph graph, String root) {\n Set<String> seen = new LinkedHashSet<String>();\n Queue<String> queue = new LinkedList<String>();\n queue.add(root);\n seen.add(root);\n\n while (!queue.isEmpty()) {\n String node = queue.poll();\n for (Node n : graph.getAdjacentNodes(node)) {\n if (!seen.contains(n.data)) {\n seen.add(n.data);\n queue.add(n.data);\n }\n }\n }\n\n return seen;\n }", "public static void main(String[] args) {\n\t\tint[] a = {2,6,5,8,3,4,7,9,0};\n\t\tBinaryTree b = new BinaryTree();\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tb.add(a[i],i);\n\t\t}\n\t\t//System.out.println(b.search(9));\n\t\t\n\t\t//b.preordertravel(b.root);\n\t\t//b.midordertravel(b.root);\n\t\t//b.postordertravel(b.root);\n\t\t\n\t\t//System.out.println(b.depth());\n\t\tb.BFS();\n\t}", "protected void beginTraversal(SoNode node)\n\t //\n\t {\n\t traverse(node);\n\t }", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "private TraverseData traverseOneLevel(TraverseData data) {\n Node<T> currentNode = data.currentNode;\n Node<T> currentNewNode = data.currentNewNode;\n int nextBranch = data.index / data.base;\n\n currentNewNode.set(nextBranch, new Node<>(branchingFactor));\n for (int anotherBranch = 0; anotherBranch < branchingFactor; anotherBranch++) {\n if (anotherBranch == nextBranch) {\n continue;\n }\n currentNewNode.set(anotherBranch, currentNode.get(anotherBranch));\n }\n\n //down\n currentNode = currentNode.get(nextBranch);\n currentNewNode = currentNewNode.get(nextBranch);\n return new TraverseData(currentNode, currentNewNode, data.newRoot, data.index % data.base,\n data.base);\n }", "public int breadthFirstSearch(T srcId, T destId)\n {\n if (nodeList.isEmpty())\n {\n System.out.println(\"Empty graph\");\n return -1;\n }\n \n // queue used during the traversal\n LinkedList<QueueNode> queue = new LinkedList();\n \n // keeps track of node which are visited and added into the queue\n HashMap<T, Integer> visited = new HashMap();\n \n // find srcNode with id = srcId in graph\n GraphNode srcNode = nodeList.get(srcId);\n \n // if srcNode is not there in graph, breadth first traversal which starts at srcNode cannot be done \n if (srcNode == null)\n {\n System.out.println(\"Source vertex not found\");\n return -1;\n }\n \n int minNumberTrials = -1;\n \n // add srcNode in queue, mark it as visited\n queue.add(new QueueNode(srcNode, 0));\n visited.put(srcNode.nodeId, 1);\n \n while (!queue.isEmpty())\n {\n QueueNode currentNode = queue.remove();\n \n // if destination node found\n if (currentNode.graphNode.nodeId == destId)\n {\n minNumberTrials = currentNode.level;\n break;\n }\n \n // first neighbor of current graph node\n GraphNode neighbor = currentNode.graphNode.next;\n \n // add all neighbors of current graph node into the queue\n while (neighbor != null)\n {\n // if this neighbor is not visited earlier, mark it as visited\n // add it to the queue at appropriate level\n if (visited.get(neighbor.nodeId) == null)\n {\n visited.put(neighbor.nodeId, 1);\n queue.add(new QueueNode(findGraphNode(neighbor.nodeId), currentNode.level + 1));\n }\n neighbor = neighbor.next; \n }\n }\n \n return minNumberTrials;\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(20, null, null);\n TreeNode lvl2Node1 = insertTreeNode(true, 10, root);\n TreeNode lvl2Node2 = insertTreeNode(false, 1, root);\n TreeNode lvl3Node1 = insertTreeNode(true, 25, lvl2Node1);\n TreeNode lvl3Node2 = insertTreeNode(false, 26, lvl2Node1);\n TreeNode lvl3Node3 = insertTreeNode(true, 32, lvl2Node2);\n TreeNode lvl3Node4 = insertTreeNode(false, 37, lvl2Node2);\n insertTreeNode(true, 5, lvl3Node1);\n insertTreeNode(false, 6, lvl3Node2);\n insertTreeNode(false, 8, lvl3Node3);\n insertTreeNode(true, 10, lvl3Node4);\n\n\n breadthFirstSearchPrintTree(root);\n\n }" ]
[ "0.7996748", "0.7423284", "0.74081427", "0.73730934", "0.73500514", "0.71470433", "0.70275", "0.698484", "0.6975678", "0.6944145", "0.6881647", "0.6641863", "0.66349024", "0.6604162", "0.6598104", "0.6588534", "0.6585147", "0.65684736", "0.6515572", "0.6495337", "0.64952254", "0.6487624", "0.64781845", "0.6410784", "0.6407802", "0.64039296", "0.63908327", "0.63813233", "0.6369946", "0.6352434", "0.63358825", "0.6329019", "0.63164896", "0.6312593", "0.63062036", "0.62693596", "0.6217046", "0.6206742", "0.6202539", "0.6198002", "0.6189313", "0.6182886", "0.6174701", "0.6165067", "0.61650354", "0.61553955", "0.61425936", "0.6138457", "0.61363167", "0.61263084", "0.6119482", "0.6095619", "0.60896796", "0.60880184", "0.60739124", "0.6060044", "0.60494286", "0.6047206", "0.6034293", "0.6031233", "0.59953177", "0.59903026", "0.5986529", "0.59735763", "0.596554", "0.5945231", "0.5925932", "0.59221727", "0.59173113", "0.5901474", "0.5899544", "0.58946204", "0.5888125", "0.58789515", "0.5867275", "0.5865403", "0.5864792", "0.58551353", "0.5849143", "0.5847019", "0.5839131", "0.5830084", "0.5829891", "0.58274853", "0.5823312", "0.58150655", "0.58107185", "0.5796536", "0.5794568", "0.57924324", "0.5784091", "0.5782344", "0.578092", "0.5780651", "0.57777137", "0.57715243", "0.57640904", "0.57493186", "0.5746168", "0.5741835" ]
0.65471363
18
Method for depthfirst traversal of graph
public List<Node<E>> depthFirst(Node<E> start){ //set that will contain visited nodes HashSet<Node<E>> visited = new HashSet<>(); // resulting nodes List<Node<E>> result = new ArrayList<>(); //stack for traversal Stack<Node<E>> nodeList = new Stack<>(); //check if the node exists in the graph if(start == null){ throw new IllegalArgumentException("Node cannot be null"); } if(nodes.containsKey(start)){ nodeList.push(start); visited.add(start); result.add(start); } else{ throw new IllegalArgumentException("Node is not in the graph"); } //traverse through the queue while(!nodeList.isEmpty()){ Node<E> curNode = nodeList.pop(); //check if the node has been visited, if not add to the result if(!visited.contains(curNode)){ result.add(curNode); } //add the node to visited visited.add(curNode); //get all the neighbors of the node and add to the stack nodes.get(curNode).forEach( neighbor -> { if(!visited.contains(neighbor)) { nodeList.push(neighbor); } }); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void depthFirstTraverse() {\n\t\tInteger first = (Integer) edges.keySet().toArray()[0];\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\tdepthFirstTraverse(first, visited);\n\t}", "public static void depthFirstSearchIterative(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"DFS Iterative:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tDeque<Node> stack = new ArrayDeque<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tstack.push(node);\n\t\t\twhile(!stack.isEmpty()) {\n\t\t\t\tnode = stack.pop();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the stack for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tstack.push(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "public List<Integer> getDepthFirstSearchTraversal(GraphStructure graph) {\r\n\t\tpathList = new ArrayList<Integer>();\r\n\t\tint numberOfVertices = graph.getNumberOfVertices();\r\n\t\tisVisited = new boolean [graph.getNumberOfVertices()];\r\n\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\ttraverseRecursively(graph,0);\r\n\t\treturn pathList;\r\n\t}", "@SuppressWarnings({\"rawtypes\", \"unchecked\", \"SuspiciousMethodCalls\"})\n private List getDepthFirstTraversal_iterative_usingStack_BigO_VPlusE() throws Exception {\n Map<Object, Boolean> visited = new LinkedHashMap<>();\n Stack watchStack = new Stack();\n\n V root = data.keySet().stream().findFirst().orElseThrow(() -> new Exception(\"Graph is Empty\"));\n watchStack.push(root);\n visited.put(root, true);\n\n while(!watchStack.isEmpty()) {\n Object currentVertex = watchStack.top();\n\n BinarySearchTree<E> edgeTree = data.getOrDefault(currentVertex, new BinarySearchTree<>());\n List<E> edges = edgeTree.getTreeByInOrder_depthFirst();\n\n //Remove an item from the stack when there are no edges or all the edges are visited for that vertex\n if(edgeTree.isEmpty() || visited.keySet().containsAll(edges)) {\n watchStack.pop();\n } else {\n for(E edge : edges) {\n if(!visited.containsKey(edge)) {\n watchStack.push(edge);\n visited.put(edge, true);\n break;\n }\n }\n }\n }\n return new ArrayList<>(visited.keySet());\n }", "private void doDepthFirstTraverse(int start, boolean[] visited, List<Edge> path) {\n visited[start] = true;\n\n for (int i: this.heads[start]) {\n if (!visited[i]) {\n path.add(new Edge(start, i));\n doDepthFirstTraverse(i, visited, path);\n }\n }\n }", "public void depthFirstOrder(Graph graph) {\n\t\tQueue<Vertex> zeroDegreeVertex = findZeroIndegrees(graph);\n\t\tint index = 1;\n\n\t\twhile (!zeroDegreeVertex.isEmpty()) {\n\t\t\tVertex vertex = zeroDegreeVertex.remove();\n\n\t\t\tfor (Edge edge : vertex.Adj) {\n\t\t\t\tVertex adjacentVertex = edge.otherEnd(vertex);\n\t\t\t\tadjacentVertex.indegree -= 1;\n\n\t\t\t\tif (adjacentVertex.indegree == 0) {\n\t\t\t\t\tzeroDegreeVertex.add(adjacentVertex);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvertices[index++] = vertex;\n\t\t}\n\n\t\t// We need make sure all the verrtices are in the toplogical sorted\n\t\t// graph\n\t\t\n\t\tif(isAllVertciesInTopologicalOrder(index, graph.V.length)) {\n\t\t\tvertices = null;\n\t\t}\n\t}", "private void depthFirstSearch(DirectedGraph graph, int vertex) {\r\n \r\n visited[vertex] = true;\r\n inRecursionStack[vertex] = true;\r\n \r\n for(int adjacentVertex: graph.adjacentVertices(vertex)) {\r\n if(inRecursionStack[adjacentVertex]) {\r\n throw new IllegalArgumentException(String.format(\"Graph contains a cycle: no topological sort possible: %s -> %s\", vertex, adjacentVertex));\r\n }\r\n \r\n if(!visited[adjacentVertex]) {\r\n depthFirstSearch(graph, adjacentVertex);\r\n }\r\n }\r\n\r\n reversePostOrder.push(vertex); \r\n inRecursionStack[vertex] = false;\r\n }", "public DepthFirstSearch(Graph graph) throws Exception {\n\n this.graph = graph;\n int n = graph.getNumV();\n\n parent = new int[n];\n Arrays.fill( parent , -1);\n\n visited = new boolean[n];\n Arrays.fill( visited , false );\n\n discoveryOrder = new int[n];\n finishOrder = new int[n];\n\n for (int i = 0; i < n; i++) {\n if (!visited[i])\n depthFirstSearch(i);\n }\n\n }", "public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }", "public String depthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n ConstantTimeStack<Vertex<AnyType>> stack = new ConstantTimeStack<Vertex<AnyType>>();\n boolean exists = false;\n Vertex<AnyType> S = new Vertex<AnyType>(start_vertex);\n int counter = 0;\n //loop through to set each vertex to not visited\n for( int i = 0; i < vertex_adjacency_list.size(); i++){\n vertex_adjacency_list.get(i).setVisited(-1);\n //if find the start vertex then set index position to counter\n if(vertex_adjacency_list.get(i).compareTo(S) == 0){\n exists = true;\n vertex_adjacency_list.get(i).setVisited(counter);\n counter = i;\n }\n }\n //if doesn't exist then through exception\n if(exists == false){\n throw new VertexException(\"Start Vertex does not exist\");\n }\n //if it does exist then push start node onto stack, set visited \n else if(exists){\n stack.push(vertex_adjacency_list.get(counter));\n vertex_adjacency_list.get(counter).setVisited(1);\n Vertex <AnyType> e = vertex_adjacency_list.get(counter);\n counter = 2;\n int n = e.numberOfAdjacentVertices();\n try{\n \n while(true){\n //loop through e's adjacent vertices \n for (n = e.numberOfAdjacentVertices()-1; n >=0 ; n--){\n //if the adacent vertex has not been visited\n if(e.getAdjacentVertex(n).hasBeenVisited()==false){\n //change e to adjacent vertex and push onto stack\n e = e.getAdjacentVertex(n);\n stack.push(e);\n //set e as visited at counter\n e.setVisited(counter);\n counter++;\n //reset n to e's num of vertices\n n = e.numberOfAdjacentVertices();\n }\n //if it has been visited and it's the first node in list\n //then pop it off the stack and then set e to new top\n //set n to new num of vertices\n else if(e.getAdjacentVertex(n).hasBeenVisited() && n == 0){\n stack.pop();\n e = stack.peek();\n n = e.numberOfAdjacentVertices();\n }\n }\n }\n }catch(EmptyStackException m){\n }\n }\n //loop through the list and print each with when it was visited\n for(int k = 0; k< vertex_adjacency_list.size(); k++){\n buffer.append(vertex_adjacency_list.get(k) + \":\" + vertex_adjacency_list.get(k).getVisited()+ \"\\n\");\n }\n \n return buffer.toString();\n \n }", "public void DFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a stack for DFS\r\n\t\tStack<Vertex> stack = new Stack<Vertex>();\r\n\r\n\t\tDFS(this.vertices[3], visited, stack); // DFS starting with 40\r\n\r\n\t\t// Call the helper function to print DFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tDFS(this.vertices[i], visited, stack);\r\n\t}", "void dfs(){\n // start from the index 0\n for (int vertex=0; vertex<v; vertex++){\n // check visited or not\n if (visited[vertex]==false){\n Explore(vertex);\n }\n }\n }", "public void dfs()\n{\n Stack s=new Stack();\n s.push(this.rootNode);\n rootNode.visited=true;\n printNode(rootNode);\n while(!s.isEmpty())\n {\n Node n=(Node)s.peek();\n Node child=getUnvisitedChildNode(n);\n if(child!=null)\n {\n child.visited=true;\n printNode(child);\n s.push(child);\n }\n else\n {\n s.pop();\n }\n }\n //Clear visited property of nodes\n clearNodes();\n}", "public void depthFirstTraverse(Graph<VLabel, ELabel> G,\n Graph<VLabel, ELabel>.Vertex v) {\n _graph = G;\n _marked = new HashSet<Graph<VLabel, ELabel>.Vertex>();\n _curTraversal = \"dft\";\n _finalVertex = null;\n try {\n depthHelper(G, v, _marked, false);\n } catch (StopException e) {\n return;\n }\n _curTraversal = \"\";\n }", "private Boolean depthFirstSearch(HashMap<String, Boolean> visited, String node) {\n \tif (visited.get(node)) {\n \t\t// This can actually never happen\n \t\tif (Flags.semant_debug) {\n \t\t\tSystem.out.println(\"Node: \" + node + \" visited twice\");\n \t\t}\n \t\tsemantError(nameToClass.get(node)).println(\"Class \" + node + \", or its ancestors, is invloved in a cycle\");\n \t\treturn false;\n \t}\n \tvisited.put(node, true);\n \tif (adjacencyList.get(node) == null) {\n \t\treturn true;\n \t}\n \tfor (String child : adjacencyList.get(node)) {\n \t\tif (Flags.semant_debug) {\n \t\t\tSystem.out.println(\"Traversing \" + node + \" --> \" + child);\n \t\t}\n \t\tdepthFirstSearch(visited, child);\n \t}\n \treturn true;\n }", "public static void depthFirstSearchRecursive(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"DFS Recursive:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\t\t\n\t\tfor(Node node : graph) {\n\t\t\tdfsRecursive(node);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}", "private void DepthFirstSearch(Node current){\n helperDFS( current );\n }", "public void depthFirstSearch(Node vertex){\n vertex.visited = true;\n if(vertex.row == row_size-1 && vertex.col == col_size-1){\n while(!dfs_stack.isEmpty()){\n exitPath +=dfs_stack.peek(); \n dfs_stack.pop();\n } \n }\n if(vertex.north!=null && vertex.north.visited==false){\n dfs_stack.push(\"N\");\n vertex.depthFirstSearch(vertex.north);\n }\n if(vertex.south!=null && vertex.south.visited==false){\n dfs_stack.push(\"S\");\n vertex.depthFirstSearch(vertex.south);\n }\n if(vertex.west !=null && vertex.west.visited ==false){\n dfs_stack.push(\"W\");\n vertex.depthFirstSearch(vertex.west);\n }\n if(vertex.east !=null && vertex.east.visited==false){\n dfs_stack.push(\"E\");\n vertex.depthFirstSearch(vertex.east);\n }\n if (!dfs_stack.isEmpty()){\n dfs_stack.pop();\n }\n return;\n }", "private static void depthFirstSearch(Vertex v, ArrayList<Vertex> visitedArrayList, Graph graph){\n visitedArrayList.add(v);\n Iterator<Vertex> iter=graph.getNeighbors(v).iterator();\n while (iter.hasNext()){\n Vertex v1=iter.next();\n if(!visitedArrayList.contains(v1)){\n depthFirstSearch(v1,visitedArrayList,graph);\n }\n }\n for(Vertex v1 : graph.getNeighbors(v)){\n if(!visitedArrayList.contains(v1)){\n depthFirstSearch(v1,visitedArrayList,graph);\n }\n }\n }", "private void depthFirstTraversalWithRecursion(final int startPoint, final boolean[] isVerticesVisited) {\n\t\tisVerticesVisited[startPoint] = true;\n\t\tSystem.out.print(startPoint + \" \");\n\t\tIterator<Integer> edgeIterator = adjacencyList[startPoint].listIterator();\n\n\t\tint vertice;\n\t\twhile (edgeIterator.hasNext()) {\n\t\t\tvertice = edgeIterator.next();\n\t\t\tif (!isVerticesVisited[vertice]) {\n\t\t\t\tdepthFirstTraversalWithRecursion(vertice, isVerticesVisited);\n\t\t\t}\n\t\t}\n\t}", "public void DFS() {\r\n for (int i = 0; i < vertexNum; i++) {\r\n DFS(i);\r\n }\r\n }", "private static void DepthFirstSearch(int i, ArrayList<ArrayList<Integer>> nodes, boolean[] visited) {\n\t\tif(nodes == null) return;\n\t\tvisited[i] = true;\n\t\tSystem.out.println(i);\n\t\tfor(int p : nodes.get(i)) {\n\t\t\tif(!visited[p]) {\n\t\t\t\tDepthFirstSearch(p,nodes, visited);\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "static void dfs(int[][] G){\n\t\tStack<Integer> s = new Stack<Integer>();\n\t\tfor (int ver_start=0; ver_start<N; ver_start++){\n\t\t\tif (visited[ver_start]) continue;\n\t\t\ts.push(ver_start);\n\t\t\tvisited[ver_start] = true;\n\n\t\t\twhile(!s.isEmpty()){\n\t\t\t\tint vertex = s.pop();\n\t\t\t\tSystem.out.print((vertex+1) + \" \");\n\t\t\t\tfor (int i=0; i<N; i++){\n\t\t\t\t\tif (G[vertex][i] == 1 && !visited[i]){\n\t\t\t\t\t\t// find neigbor of current vertex and not visited\n\t\t\t\t\t\t// add into the stack\n\t\t\t\t\t\ts.push(i);\n\t\t\t\t\t\tvisited[i] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static Set<List<Vertex>> depthFirstSearch(Graph graph) {\n Set<List<Vertex>> arrayListHashSet=new HashSet<>();\n\n for(int i=0;i<graph.getVertices().size();i++){\n ArrayList<Vertex> visitedArrayList=new ArrayList<>();\n for(int j=0;j<graph.getVertices().size();j++){\n if(visitedArrayList.size()==0){\n if(!visitedArrayList.contains(graph.getVertices().get(i))){\n depthFirstSearch(graph.getVertices().get(i),visitedArrayList,graph);\n }\n }\n else{\n if(!visitedArrayList.contains(graph.getVertices().get(j))){\n depthFirstSearch(graph.getVertices().get(j),visitedArrayList,graph);\n }\n }\n }\n arrayListHashSet.add(visitedArrayList);\n }\n return arrayListHashSet; // this should be changed\n }", "public int depthFirstSearch(List<Integer>[] adj){\n int connected = 0;\n for(int i = 0; i < n; i++){\n if(visited[i] == false){\n connected ++;\n dfsRecursive(adj, i);\n }\n }\n return connected;\n }", "public void inOrderTraverseRecursive();", "public void depthFirstSearch(){\n\t\tStack<TreeNode<T>> nodeStack = new Stack<TreeNode<T>>();\n\n\t\tif(root!=null){\n\t\t\tnodeStack.push(root);\n\t\t\tSystem.out.println(root.data);\n\t\t\tTreeNode<T> topNode = root;\n\t\t\twhile(!nodeStack.isEmpty()){\n\t\t\t\tif(topNode.left!=null){\n\t\t\t\t\tnodeStack.push(topNode.left);\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(topNode.data);\n\t\t\t\t\ttopNode = topNode.left;\n\t\t\t\t} else if(topNode.right!=null){\n\t\t\t\t\tnodeStack.push(topNode.right);\n\t\t\t\t\tSystem.out.println(topNode.data);\n\t\t\t\t\ttopNode = topNode.right;\n\t\t\t\t} else{\n\t\t\t\t\ttry{\n\t\t\t\t\t\tnodeStack.pop();\n\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void depthFirstSearch(Node sourceNode, Node destinationNode, String path, HashSet<Character> visited) {\n // Base condition is that if the node is looping then return\n if(visited.contains(sourceNode.charId)) {\n return;\n }\n\n // Mark the sourceNode as visited\n visited.add(sourceNode.charId);\n String newPath = sourceNode.charId.toString();\n path += \"->\" + newPath;\n\n // If the source node reached destination or the node has no children\n if(sourceNode == destinationNode || sourceNode.adjacent.isEmpty()) {\n paths.add(path);\n return;\n }\n\n // Search all of it's children's children until reach destination\n for(Node children : sourceNode.adjacent) {\n depthFirstSearch(children, destinationNode, path, visited);\n }\n }", "public void depthFirstTraversal(final int startPoint) {\n\t\tfinal boolean[] isVerticesVisited = new boolean[adjacencyList.length];\n\n\t\tfinal Stack<Integer> stack = new Stack<>();\n\n\t\tstack.push(startPoint);\n\n\t\tint selectedVertice;\n\t\tint vertice;\n\t\twhile (!stack.isEmpty()) {\n\t\t\tselectedVertice = stack.peek();\n\t\t\tstack.pop();\n\n\t\t\tif (!isVerticesVisited[selectedVertice]) {\n\t\t\t\tSystem.out.print(selectedVertice + \" \");\n\t\t\t\tisVerticesVisited[selectedVertice] = true;\n\t\t\t}\n\n\t\t\tIterator<Integer> edgeIterator = adjacencyList[selectedVertice].listIterator();\n\n\t\t\twhile (edgeIterator.hasNext()) {\n\t\t\t\tvertice = edgeIterator.next();\n\t\t\t\tif (!isVerticesVisited[vertice]) {\n\t\t\t\t\tstack.push(vertice);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void dfs() {\n int currentVertexIndex = 0;\r\n dfsStack.push(0);\r\n vertexList[0].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n while (dfsStack.top != -1) {\r\n\r\n\r\n currentVertexIndex = this.getAdjUnvisitedVert(dfsStack.peek());\r\n if (currentVertexIndex != -1) {\r\n dfsStack.push(currentVertexIndex);\r\n vertexList[currentVertexIndex].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n\r\n\r\n } else {\r\n currentVertexIndex = dfsStack.pop();\r\n\r\n }\r\n }\r\n// reset wasVisted\r\n for (Vertex x : vertexList) {\r\n x.wasVisited = false;\r\n }\r\n }", "public List<Long> depthTraverse(Long start){\n return depthTraverseGen(start);\n }", "public void breadthFirstTraverse() {\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\t// store neighbors\n\t\tQueue<Integer> queue = new LinkedList<Integer>();\n\n\t\t// arbitrarily add first element\n\t\tInteger current = (Integer) edges.keySet().toArray()[0];\n\t\tqueue.add(current);\n\n\t\twhile (queue.peek() != null) {\n\n\t\t\tcurrent = queue.remove();\n\t\t\tSystem.out.println(\"current: \" + current);\n\t\t\tvisited.put(current, true);\n\n\t\t\tfor (Integer neighbor: edges.get(current)) {\n\t\t\t\tif (!visited.get(neighbor)) {\n\t\t\t\t\tqueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<Node<E>> bfs(DirectedGraph<E> graph) {\n\t\tList<Node<E>> returnList = new ArrayList<>(); // O(1)\n\t\tHashSet<Node<E>> visitedList = new HashSet<>(); // O(1)\n\t\tHashSet<Node<E>> hashSet = new HashSet<>(); // O(1)\n\n\t\t// If the graph does contains heads, iterate from the head.\n\t\tif(graph.headCount() > 0) { // O(1)\n\t\t\tIterator<Node<E>> heads = graph.heads(); // O(1)\n\t\t\twhile(heads.hasNext()) { // O(n)\n\t\t\t\tNode<E> node = heads.next(); // O(1)\n\n\t\t\t\tif(!visitedList.contains(node)) { // O(1)\n\t\t\t\t\tnode.num = visitedList.size(); // O(1)\n\t\t\t\t\tvisitedList.add(node); // O(1)\n\t\t\t\t\thashSet.add(node); // O(1)\n\t\t\t\t\treturnList.add(node); // O(1)\n\t\t\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Else start from the first node in the graph.\n\t\telse {\n\t\t\thashSet.add(graph.getNodeFor(graph.allItems().get(0))); // O(1)\n\t\t\treturnList = bfsRecursive(hashSet, visitedList, returnList); // O(1)\n\t\t}\n\t\treturn returnList;\n\t}", "public List<GraphNode> getGraphNodesDFS(GraphNode root){\n List<GraphNode> graphNodeList = new ArrayList<>();\n depthFirstTraversal(root, graphNodeList);\n return graphNodeList;\n }", "public void depthFirstSearch(int current) throws Exception {\n /* Mark the current vertex visited. */\n visited[current] = true;\n\n discoveryOrder[discoverIndex++] = current;\n /* Examine each vertex adjacent to the current vertex */\n Iterator<Edge> itr = graph.edgeIterator(current);\n while (itr.hasNext()) {\n int neighbor = itr.next().getDest();\n /* Process a neighbor that has not been visited */\n if (!visited[neighbor]) {\n /* Insert (current, neighbor) into the depthFirst search tree. */\n parent[neighbor] = current;\n /* Recursively apply the algorithm starting at neighbor. */\n depthFirstSearch(neighbor);\n }\n }\n\n /* Mark current finished. */\n finishOrder[finishIndex++] = current;\n }", "public int depth ();", "private void doDFSRecursive(int vertex) {\n markVisited(vertex);\n\n for (Integer adjacentVertex : graph.getAdjacentVertices(vertex)) {\n if (!isVisitedNode(adjacentVertex)) {\n System.out.print(adjacentVertex + \" \");\n doDFSRecursive(adjacentVertex);\n }\n }\n }", "private void traverseDepthFirst(Node currentNode, int currentDepth)\n {\n //depth first\n\n System.err.println(\"checking out node \" + currentNode.name + \" at depth = \" + currentDepth);\n if (collectedNodes.size() >= maxSize)\n {\n System.err.println(\"in traverseDepthFirst() : collectedNodes.size() = \" + collectedNodes.size() + \" > \" + maxSize);\n return;\n }\n\n if (visitedNodes.add(currentNode) == false) //then we have alreaady visited this node\n {\n System.err.println(\"\\toops, already visited...\");\n return;\n }\n\n if (collectionFilter == null || collectionFilter.filter(currentNode) == true)\n {\n collectedNodes.add(currentNode);\n }\n\n if (currentDepth == maxDepth)\n {\n System.err.println(\"in traverseDepthFirst() : currentDepth == maxDepth == \" + maxDepth);\n System.err.println(\"in traverseDepthFirst() : collectedNodes.size() = \" + collectedNodes.size());\n return;\n }\n\n for (Node childNode : currentNode.getData())\n {\n if (traversalFilter == null || traversalFilter.filter(currentNode, childNode) == true)\n {\n traverseDepthFirst(childNode, currentDepth + 1);\n }\n }\n }", "public void iterativeDfs(Graph graph, int sourceVertex) {\n\n stack.addLast(sourceVertex);\n\n while (!stack.isEmpty()) {\n int vertex = stack.removeLast();\n\n if (!marked[vertex]) {\n sourceVertexCount++;\n marked[vertex] = true;\n\n for (int adjacentVertex : graph.adj(vertex)) {\n if (!marked[adjacentVertex]) {\n stack.addLast(adjacentVertex);\n }\n }\n }\n }\n }", "public void inOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\t\t\n\t\tthis.left.inOrderDepthFirstTraversal(action);\n\t\taction.visit(this.getElement());\n\t\tthis.right.inOrderDepthFirstTraversal(action);\n\t}", "public DSAQueue depthFirstSearch(String start)\n\t{\n\t\tif(!vertices.isEmpty())\n\t\t{\n\t\t\tDSAQueue queue = new DSAQueue();\n\t\t\tDSAGraphVertex vx = getVertex(start); //vertex to start on (root)\n\t\t\tDSAStack visited = new DSAStack();\t//creates empty stack\n\n\t\t\tclear(); //sets all vertices as not visited\n\t\t\tvx.setVisited(); // Marks root as visited\n\t\t\tqueue.enqueue(vx); //start point\n\n\t\t\tdfs(vx, visited, queue); //begin recursion\n\n\t\t\treturn queue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new NoSuchElementException(\"List is empty\");\n\t\t}\n\t}", "void DFS() {\n \t\n \t// Mark all the vertices as not visited(set as false by default in java) \n \tboolean visited[] = new boolean[V];\n \t\n \t// Call the recursive helper function to print DFS traversal \n // starting from all vertices one by one \n \tfor (int i=0; i<V; i++) { \n \t\t if (visited[i] == false)\n \t\t\t DFSUtil(i, visited);\n \t}\n }", "int depth();", "int depth();", "private void depthFirstSearchIterative(int sourceVertex, List<Integer>[] adjacent, Stack<Integer> finishTimes,\n boolean[] visited, boolean getFinishTimes) {\n Stack<Integer> stack = new Stack<>();\n stack.push(sourceVertex);\n visited[sourceVertex] = true;\n\n if (!getFinishTimes) {\n sccIds[sourceVertex] = sccCount;\n }\n\n // Used to be able to iterate over each adjacency list, keeping track of which\n // vertex in each adjacency list needs to be explored next\n Iterator<Integer>[] adjacentIterators = (Iterator<Integer>[]) new Iterator[adjacent.length];\n for (int vertexId = 0; vertexId < adjacentIterators.length; vertexId++) {\n if (adjacent[vertexId] != null) {\n adjacentIterators[vertexId] = adjacent[vertexId].iterator();\n }\n }\n\n while (!stack.isEmpty()) {\n int currentVertex = stack.peek();\n\n if (adjacentIterators[currentVertex].hasNext()) {\n int neighbor = adjacentIterators[currentVertex].next();\n\n if (!visited[neighbor]) {\n stack.push(neighbor);\n visited[neighbor] = true;\n }\n } else {\n stack.pop();\n\n if (getFinishTimes) {\n finishTimes.push(currentVertex);\n }\n }\n }\n }", "public boolean depthFirstTraversal( SubmissionVisitor visitor );", "static void iterativeDfs(Node startingNode) {\n Set<Node> markedAsVisited = new HashSet<>();\n\n // creates a stack for piling up the nodes to visit\n ArrayDeque<Node> toBeVisited = new ArrayDeque<>();\n\n // sets the starting node as to be visited\n toBeVisited.push(startingNode);\n\n // adds the starting node to the set of marked as visited nodes\n markedAsVisited.add(startingNode);\n\n // while there nodes to visit\n while (!toBeVisited.isEmpty()) {\n\n // gets the current node\n Node current = toBeVisited.pop();\n\n // processes the node\n System.out.print(\"Node \" + current.val + \", \");\n\n // loops over the neighbours of the current node\n for (Node neighbour: current.neighbours) {\n\n // if the neighbour has not been already visited\n if (! markedAsVisited.contains(neighbour)) {\n\n // adds the neighbour to the ones to be visited\n toBeVisited.push(neighbour);\n\n // adds the neighbour to the set of marked as visited nodes\n markedAsVisited.add(neighbour);\n }\n }\n }\n }", "public void dfs(Vertex<T> start) {\n\t\t\t// DFS uses Stack data structure\n\t\t\tStack<Vertex<T>> stack = new Stack<Vertex<T>>();\n\t\t\tstart.visited = true;\n\t\t\tstack.push(start);\n\t\t\tprintNode(start);\n\t\t\twhile (!stack.isEmpty()) {\n\t\t\t\tVertex<T> n = stack.peek();\n\t\t\t\tVertex<T> child = getUnvisitedChildren(n);\n\t\t\t\tif (child != null) {\n\t\t\t\t\tchild.visited = true;\n\t\t\t\t\tstack.push(child);\n\t\t\t\t\tprintNode(child);\n\t\t\t\t} else {\n\t\t\t\t\tstack.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void traverseRecursively(GraphStructure graph,Integer vertex) {\r\n\t\tList<GraphStructure.Edge> list = adjacencyList[vertex];\r\n\t\tpathList.add(vertex);\r\n\t\tisVisited[vertex]=true;\r\n\t\tfor(GraphStructure.Edge adjacentVertex : list) {\r\n\t\t\tif(! isVisited[adjacentVertex.getVertex()]) {\r\n\t\t\t\ttraverseRecursively(graph, adjacentVertex.getVertex());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void dfs() {\n\t\tfor (Vertice v : vertices) {\n\t\t\tv.setVisited(false);\n\t\t}\n\t\tfor (Vertice v : vertices) {\n\t\t\tif (!v.getVisited()) {\n\t\t\t\tVisitar(v, -1);\n\t\t\t}\n\t\t}\n\t}", "public void inOrderTraverseIterative();", "public void dfsPrint(Node start){\n Stack<Node> stack = new Stack<>();\n Set<Node> visited = new HashSet<>(); //we can use integer for better space\n\n stack.push(start);\n while (!stack.isEmpty()){\n Node curr = stack.pop();\n if(!visited.contains(curr)){\n visited.add(curr);\n //do something\n }\n for(Node n: curr.adj){\n if(!visited.contains(n)){\n stack.push(n);\n }\n }\n }\n }", "public static void main(String[] args) {\nDGraph g=new DGraph();\r\nDirectedDFS d=new DirectedDFS(g);\r\nfor(Iterator<Integer> i=d.preorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\nfor(Iterator<Integer> i=d.postorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\n\r\n/*for(Iterator i=d.topologicalorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();*/\r\n\r\n\r\n\tfor(int w:d.reversepost())\r\n\t\tSystem.out.print(w+\" \");\r\n\t//System.out.println(d.topologicalorder.pop());\r\n\t}", "private void dfs(String source) {\n visited.add(source);\n\n System.out.println(source);\n\n for (Object vertex : graph.get(source)) {\n if (!visited.contains(vertex))\n dfs((String) vertex);\n }\n }", "public void dfs (Node node) {\r\n\t\t\r\n\t\tSystem.out.print(node.data+\" \");\r\n\t\tList<Node> adding = node.getPartners();\r\n\t\tnode.visited = true;\r\n\t\t\tfor(int loop=0; loop<adding.size(); loop++) {\r\n\t\t\t\tNode n = adding.get(loop);\r\n\t\t\t\t\tif (n!=null && !n.visited) {\r\n\t\t\t\t\t\tdfs(n);\r\n\t\t\t\t\t} // if loop ends here\r\n\t\t\t\t\t\r\n\t\t\t} // for loop ends here\r\n\t\t\r\n\t}", "public void depthFirstTraversalRecursion(final int startPoint) {\n\t\tfinal boolean[] isVerticesVisited = new boolean[adjacencyList.length];\n\n\t\tdepthFirstTraversalWithRecursion(startPoint, isVerticesVisited);\n\t}", "public void depthFirstSearch(int vertexIndex) {\n Stack<Integer> stack = new Stack<Integer>();\n vertexList[vertexIndex].wasVisited = true;\n displayVertex(vertexIndex);\n stack.push(vertexIndex);\n while (!stack.isEmpty()) {\n int unvisitedVertexIndex = getAdjacentUnvisitedVertexIndex(stack.peek());\n if(unvisitedVertexIndex == -1) {\n stack.pop();\n } else {\n vertexList[unvisitedVertexIndex].wasVisited = true;\n displayVertex(unvisitedVertexIndex);\n stack.push(unvisitedVertexIndex);\n }\n }\n for (int i = 0; i < vertexCount; i++) {\n vertexList[i].wasVisited = false;\n\n }\n }", "public MyArrayList<MyArrayList<Node>> DFS() {\n t = 0;\n for (int i = 0; i < nodes.size(); i++) {\n Node node = nodes.get(i);\n // reset all nodes in the graph to the initial DFS state\n node.setColor(Color.WHITE);\n node.setD(0);\n node.setF(0);\n node.setParent(null);\n }\n MyArrayList<MyArrayList<Node>> components = new MyArrayList<>();\n for (int i = 0; i < nodes.size(); i++) {\n Node node = nodes.get(i);\n if (node.getColor() == Color.WHITE) {\n // each time we start from a vertex here we are starting a new DFS component\n MyArrayList<Node> component = new MyArrayList<>();\n dfsVisit(node, component);\n components.add(component);\n }\n }\n return components;\n }", "static void dfs(int node) {\n for (int adj : adjList[node]) {\n if (adj != firstParents[node]) {\n firstParents[adj] = node;\n depth[adj] = depth[node] + 1;\n maxDepth = Math.max(maxDepth, depth[adj]);\n dfs(adj);\n }\n }\n }", "private void visitDFS(Dot node, Set< Dot > visited ) {\n\n board.getNeighbors( node ).forEach( nbr -> {\n if ( !visited.contains( nbr ) ) {\n visited.add( nbr );\n visitDFS( nbr, visited );\n }\n } );\n }", "Set<String> dfsTraversal(Graph graph, String root) {\n Set<String> seen = new LinkedHashSet<String>();\n Stack<String> stack = new Stack<String>();\n stack.push(root);\n\n while (!stack.isEmpty()) {\n String node = stack.pop();\n if (!seen.contains(node)) {\n seen.add(node);\n for (Node n : graph.getAdjacentNodes(node)) {\n stack.push(n.data);\n }\n\n }\n }\n\n return seen;\n }", "private void inOrderTraversal(int index) {\n // go through the graph as long as has values\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n inOrderTraversal(2 * index + 1);\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on right child\n inOrderTraversal(2 * index + 2);\n }", "public MyArrayList<MyArrayList<Node>> DFSRecursive() {\n t = 0;\n for (int i = 0; i < nodes.size(); i++) {\n Node node = nodes.get(i);\n // reset all nodes in the graph to the initial DFS state\n node.setColor(Color.WHITE);\n node.setD(0);\n node.setParent(null);\n }\n MyArrayList<MyArrayList<Node>> components = new MyArrayList<>();\n for (int i = 0; i < nodes.size(); i++) {\n Node node = nodes.get(i);\n if (node.getColor() == Color.WHITE) {\n MyArrayList<Node> component = new MyArrayList<>();\n this.dfsVisitRecursive(node, component);\n components.add(component);\n }\n }\n return components;\n }", "protected abstract void traverse();", "private void dfsVisit(Node node) {\n\t\tStack<Node>stack = new Stack<>();\r\n\t\tstack.push(node); //add source node to queue\r\n\t\twhile(!stack.isEmpty()) {\r\n\t\t\tNode presentNode = stack.pop();\r\n\t\t\tpresentNode.setVisited(true);\r\n\t\t\tSystem.out.print(presentNode.getName()+\" \");\r\n\t\t\tfor(Node neighbor: presentNode.getNeighbors()) { //for each neighbor of present node\r\n\t\t\t\tif(!neighbor.isVisited()) { //if neighbor is not visited then add it to queue\r\n\t\t\t\t\tstack.push(neighbor);\r\n\t\t\t\t\tneighbor.setVisited(true);\r\n\t\t\t\t}\r\n\t\t\t}//end of for loop\r\n\t\t}//end of while loop\r\n\t\t\r\n\t}", "static void dfs(Node current, Set<Node> visited) {\n System.out.print(\"Node \" + current.val + \", \");\n\n // adds the current node to the set of already visited nodes\n visited.add(current);\n\n // loops over the neighbours of the current node\n for (Node neighbour: current.neighbours) {\n\n // if the neighbour has not been already visited\n if (! visited.contains(neighbour)) {\n\n // recursively processes the neighbour\n dfs(neighbour, visited);\n }\n }\n }", "void DFS(Node root) {\n\t\tStack<Node> s = new Stack<Node>();\n\t\ts.add(root);\n\n\t\twhile(!s.isEmpty()) {\n\t\t\tNode n = s.pop();\n\t\t\tif (n != null) {\n\t\t\t\tSystem.out.print(n.data + \",\");\n\t\t\t\ts.push(n.right);\n\t\t\t\ts.push(n.left);\n\t\t\t}\n\t\t}\n\t}", "public void doDfsIterative(Graph g, int s) {\n boolean[] myVisited = new boolean[8];\n Stack<Integer> stack = new Stack<>();\n stack.push(s);\n myVisited[s] = true;\n while (!stack.isEmpty()) {\n int top = stack.pop();\n System.out.print(\"[\" + top + \"] \");\n for (int e : g.adj[top]) {\n if (!myVisited[e]) {\n stack.push(e);\n myVisited[e] = true;\n }\n }\n }\n\n }", "private void inorder_traversal(Node n, int depth) {\n if (n != null) {\n inorder_traversal(n.left, depth + 1); //add 1 to depth (y coordinate) \n n.xpos = totalNodes++; //x coord is node number in inorder traversal\n n.ypos = depth; // mark y coord as depth\n inorder_traversal(n.right, depth + 1);\n }\n }", "@Test\n public void dfsRecursiveTest() {\n Map<String, List<String>> graph = new HashMap<>();\n graph.put(\"A\", Lists.newArrayList(\"B\", \"S\"));\n graph.put(\"B\", Lists.newArrayList(\"A\"));\n graph.put(\"C\", Lists.newArrayList(\"D\", \"E\", \"F\", \"S\"));\n graph.put(\"D\", Lists.newArrayList(\"C\"));\n graph.put(\"E\", Lists.newArrayList(\"C\", \"H\"));\n graph.put(\"F\", Lists.newArrayList(\"C\", \"G\"));\n graph.put(\"G\", Lists.newArrayList(\"F\", \"H\", \"S\"));\n graph.put(\"H\", Lists.newArrayList(\"E\", \"G\"));\n graph.put(\"S\", Lists.newArrayList(\"A\", \"C\", \"G\"));\n\n List<String> traversal = new DFSRecursive().runDFS(\"A\", graph);\n\n Assert.assertEquals(Lists.newArrayList(\"A\", \"B\", \"S\", \"C\", \"D\", \"E\", \"H\", \"G\", \"F\"), traversal);\n }", "public DepthFirstSearch(Graph graph, int[] order) {\n // Same as constructor above except for the if statement.\n }", "@Override\r\n public List<T> breadthFirstPath(T start, T end) {\r\n\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n LinkedList<Vertex<T>> vertexList = new LinkedList<>();\r\n //Set<Vertex<T>> visited = new HashSet<>();\r\n ArrayList<Vertex<T>> visited = new ArrayList<>();\r\n\r\n LinkedList<Vertex<T>> pred = new LinkedList<>();\r\n int currIndex = 0;\r\n\r\n pred.add(null);\r\n\r\n vertexList.add(startV);\r\n visited.add(startV);\r\n\r\n LinkedList<T> path = new LinkedList<>();\r\n\r\n if (breadthFirstSearch(start, end) == false) {\r\n path = new LinkedList<>();\r\n return path;\r\n } else {\r\n while (vertexList.size() > 0) {\r\n Vertex<T> next = vertexList.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if (next == endV) {\r\n path.add(endV.getValue());\r\n break;\r\n }\r\n for (Vertex<T> neighbor : next.getNeighbors()) {\r\n if (!visited.contains(neighbor)) {\r\n pred.add(next);\r\n visited.add(neighbor);\r\n vertexList.add(neighbor);\r\n }\r\n }\r\n currIndex++;\r\n //path.add(next.getValue());\r\n\r\n }\r\n while (currIndex != 0) {\r\n Vertex<T> parent = pred.get(currIndex);\r\n path.add(parent.getValue());\r\n currIndex = visited.indexOf(parent);\r\n }\r\n }\r\n Collections.reverse(path);\r\n return path;\r\n }", "ArrayList<Node> DFSIter( Graph graph, final Node start, final Node end)\n {\n boolean visited[] = new boolean[graph.numNodes];\n Stack<Node> stack = new Stack<Node>();\n Map< Node,Node> parentPath = new HashMap< Node,Node>(); \n stack.push(start);\n\n while ( !stack.isEmpty() )\n {\n Node currNode = stack.pop();\n // end loop when goal node is found\n if ( currNode == end )\n break;\n // If node has already been visited, skip it\n if ( visited[currNode.id] )\n continue;\n else\n {\n visited[currNode.id] = true;\n int numEdges = currNode.connectedNodes.size();\n\n for ( int i = 0; i < numEdges; i++ )\n {\n Node edgeNode = currNode.connectedNodes.get(i);\n if ( !visited[edgeNode.id] )\n {\n stack.push( edgeNode );\n parentPath.put( edgeNode, currNode);\n }\n }\n \n }\n }\n\n ArrayList<Node> path = new ArrayList<Node>();\n Node currNode = end;\n while ( currNode != null )\n {\n path.add(0, currNode);\n currNode = parentPath.get(currNode);\n }\n\n return path;\n }", "public static void traversals(Node node){\r\n System.out.println(\"Node Pre \" + node.data);\r\n for(Node child : node.children){\r\n System.out.println(\"Edge Pre \" + node.data + \"--\" + child.data);\r\n traversals(child);\r\n System.out.println(\"Edge Post \" + node.data + \"--\" + child.data);\r\n }\r\n System.out.println(\"Node Post \" + node.data);\r\n }", "@Override\n public void traverse()\n {\n System.out.print(\"DFS Tree: \");\n DFSHelper(root);\n System.out.println();\n }", "public void getAllPaths(Graph<Integer> graph) {\n\t\tTopologicalSort obj = new TopologicalSort();\r\n\t\tStack<Vertex<Integer>> result = obj.sort(graph);\r\n\t\t\r\n\t\t// source (one or multiple) must lie at the top\r\n\t\twhile(!result.isEmpty()) {\r\n\t\t\tVertex<Integer> currentVertex = result.pop();\r\n\t\t\t\r\n\t\t\tif(visited.contains(currentVertex.getId())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tstack = new Stack<Vertex<Integer>>();\r\n\t\t\tSystem.out.println(\"Paths: \");\r\n\t\t\tvisited = new ArrayList<Long>();\r\n\t\t\tdfs(currentVertex);\r\n\t\t\t//System.out.println(stack);\r\n\t\t\t//GraphUtil.print(stack);\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "public abstract LinkedList<Point> traverse(Grid grid);", "public int getDepth()\n {\n return traversalStack.size();\n }", "public int getDepth();", "public List<Object> traverse() {\n return traverse(new PreorderTraversal());\n }", "public void traverseDFSInOrder(Node node) {\n if (node != null) {\n traverseDFSInOrder(node.left);\n System.out.print(\" \" + node.value);\n traverseDFSInOrder(node.right);\n }\n }", "@Override\r\n\tpublic void DFS(E src) {\r\n\t\tif(containsVertex(src)) {\r\n\t\t\tvertices.forEach((E e, Vertex<E> u) -> {\r\n\t\t\t\tu.setDiscovered(0);\r\n\t\t\t\tu.setFinished(0);\r\n\t\t\t\tu.setColor(Color.WHITE);\r\n\t\t\t\tu.setPredecessor(null);\r\n\t\t\t});\r\n\t\t\tDFStime = 1;\r\n\t\t\tVertex<E> s = vertices.get(src);\r\n\t\t\ts.setColor(Color.GRAY);\r\n\t\t\ts.setDiscovered(DFStime);\r\n\t\t\t//s.predecessor is already null so skip that step\r\n\t\t\tStack<Vertex<E>> stack = new Stack<>();\r\n\t\t\tstack.push(s);\r\n\t\t\twhile(!stack.isEmpty()) {\r\n\t\t\t\tVertex<E> u = stack.pop();\r\n\t\t\t\tArrayList<Edge<E>> adj = adjacencyLists.get(u.getElement());\r\n\t\t\t\tfor(Edge<E> ale: adj) {\r\n\t\t\t\t\tVertex<E> v = vertices.get(ale.getDst());\r\n\t\t\t\t\tif(v.getColor() == Color.WHITE) {\r\n\t\t\t\t\t\tDFStime++;\r\n\t\t\t\t\t\tv.setColor(Color.GRAY);\r\n\t\t\t\t\t\tv.setDiscovered(DFStime);\r\n\t\t\t\t\t\tv.setPredecessor(u);\r\n\t\t\t\t\t\tstack.push(v);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tu.setColor(Color.BLACK);\r\n\t\t\t\tDFStime++;\r\n\t\t\t\tu.setFinished(DFStime);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int[] depthFirstTraversal(int n, byte[][] adjacencyMatrix, int source){\n final int[] visited = new int[n];\n for (int i = 0; i < visited.length; i++)\n visited[i] = -1;\n\n int element = source;\n int i = source;\n int arr[] = new int[n];\n int k = 0;\n\n visited[source] = 1;\n arr[k] = element;\n k++;\n\n final Stack<Integer> stack = new Stack<Integer>();\n stack.push(source);\n\n while (!stack.isEmpty()){\n element = stack.peek();\n i=0;\n while (i<n){\n if (adjacencyMatrix[element][i] == 1 && visited[i] == -1){\n stack.push(i);\n visited[i] = 1;\n\n element = i;\n i = 0;\n\n arr[k] = element;\n k++;\n continue;\n }\n i++;\n }\n stack.pop();\n }\n return arr;\n }", "public void dfs (int start) {\n vertexList[start].wasVisited = true; // mark it\n print(start); stack.push(start);\n while (!stack.isEmpty()) {\n int b = getNextUnvisitedNeighbor(stack.peek());\n if (b==-1) stack.pop(); // no unvisited neighbor;\n else {\n vertexList[b].wasVisited = true;\n print(b); stack.push(b);\n }\n }\n // clear wasVisited marks\n }", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) {\n\t\tDeepFirstSearchGraph main = new DeepFirstSearchGraph();\n\t\tGraph g = main.new Graph(4);\n\t\tg.addEdge(0, 1);\n\t\tg.addEdge(0, 2);\n\t\tg.addEdge(1, 2);\n\t\tg.addEdge(2, 0);\n\t\tg.addEdge(2, 3);\n\t\tg.addEdge(3, 3);\n\t\t\n\t\tint vertexToBegin = 2;\n\t\tSystem.out.println(\"Doing DFS starting from vertex: \"+vertexToBegin);\n\t\tg.DFS(vertexToBegin);\n\t}", "static void DFS(int Node)\n {\n\n visit[Node] = true;\n for (int i = 1; i < ver+1; i++) {\n\n\n if (map[Node][i] == 1 && visit[i] == false) {\n DFS(i);\n }\n\n }\n\n\n }", "public void dfs(DirectedGraph graph, int node){\n onStack[node] = true;\n // marked the node as visited\n marked[node] = true;\n // traverse through the neigh of the node\n for(int neigh: graph.adj[node]){\n // if the cycle stack is not empty then we have cycle\n if (this.hasCycle()) return;\n else if (!marked[neigh]){\n // assign node as neigh parent to check cycle later\n parent[neigh] = node;\n // traverse through unvisited node\n dfs(graph,neigh);\n // if neigh is already visited and onstack then trace back to\n // check if the parent of node is the same as neigh\n }else if (onStack[neigh]){\n// System.out.println(\"neigh = \"+ neigh + \" node = \"+ node);\n // put all the vertex in the cycle to the stack\n int v = node;\n cycle.push(v);\n while(v != neigh){\n v = parent[v];\n cycle.push(v);\n }\n if(cycle.size() < 3) cycle = new Stack<>();\n else {\n System.out.print(\"The cycle is \");\n for (int vertex : cycle) System.out.print(vertex + \",\");\n System.out.println();\n }\n\n }\n }\n onStack[node] = false;\n }", "private void DFS(Vertex start, Set<Vertex> visited, Stack<Vertex> stack) {\r\n\t\t// if(visited.contains(start)) return;\r\n\r\n\t\t// Mark the current node as visited and push it\r\n\t\tvisited.add(start);\r\n\t\tstack.push(start);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (stack.size() > 0) {\r\n\t\t\t// Pop a vertex from stack and print it\r\n\t\t\tcurrentNode = stack.pop();\r\n\r\n\t\t\tSystem.out.print(currentNode + \" \");\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!visited.contains(n)) {\r\n\t\t\t\t\tvisited.add(n);\r\n\t\t\t\t\tstack.push(n);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<T> wantedNodesIterative(Predicate<T> p) {\n //PART 4 \n if(root == null){\n return null;\n }\n LinkedList<TreeNode<T>> stack = new LinkedList<>();\n stack.add(root);\n \n List<T> wantedNodes =new LinkedList<>();\n TreeNode<T> current;\n \n while(!stack.isEmpty()){\n current = stack.pop();\n if(p.check(current.data)){\n wantedNodes.add(current.data);\n }\n if(current.right != null){\n stack.addFirst(current.right);\n }\n if(current.left != null){\n stack.addFirst(current.left);\n }\n }\n return wantedNodes;\n }", "public void traverseLevelOrder() {\n\t\tif (root == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tLinkedList<Node> ls = new LinkedList<>();\n\t\tls.add(root);\n\t\twhile (!ls.isEmpty()) {\n\t\t\tNode node = ls.remove();\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t\tif (node.left != null) {\n\t\t\t\tls.add(node.left);\n\t\t\t}\n\t\t\tif (node.right != null) {\n\t\t\t\tls.add(node.right);\n\t\t\t}\n\t\t}\n\t}", "public void DFSRecursive(Vertex start) {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\tif (start == null)\r\n\t\t\treturn;\r\n\r\n\t\tDFSRecursive(start, visited);\r\n\t}", "public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "int getDepth();", "public ArrayList<Integer> depthSearch(int i, int j) {\n markedVerts = new ArrayList<Integer>();\n Stack<Integer> stack = new Stack<Integer>();\n stack.push(i);\n ArrayList<Integer> arry = new ArrayList(depthSearch(i, j, stack));\n Collections.reverse(arry);\n return arry;\n }" ]
[ "0.8060891", "0.7463251", "0.7374602", "0.7258217", "0.7099693", "0.69684875", "0.69106925", "0.6897911", "0.686705", "0.6859811", "0.6835927", "0.68327075", "0.679736", "0.6746756", "0.6740328", "0.6699525", "0.6687689", "0.66871214", "0.6639378", "0.6630991", "0.65694904", "0.65500283", "0.6537421", "0.65221244", "0.6510161", "0.6484496", "0.64749813", "0.6462212", "0.6461843", "0.6431871", "0.6423297", "0.6420654", "0.64137423", "0.63992614", "0.6376903", "0.636282", "0.63206685", "0.631231", "0.62965816", "0.6283161", "0.6267415", "0.62589437", "0.6244372", "0.62321", "0.6226241", "0.6226241", "0.6209568", "0.620477", "0.6191419", "0.61875105", "0.61866915", "0.61746144", "0.61656326", "0.61636275", "0.6160657", "0.6148015", "0.61410266", "0.6130815", "0.6117584", "0.6116176", "0.60886216", "0.60879755", "0.60810494", "0.60713303", "0.6052705", "0.6040094", "0.601236", "0.6005825", "0.600239", "0.5995924", "0.59909856", "0.5990558", "0.5970231", "0.59584385", "0.5958418", "0.59553677", "0.59391826", "0.59337527", "0.592409", "0.5915852", "0.59014773", "0.590135", "0.588683", "0.5883058", "0.5859975", "0.58583087", "0.58570814", "0.58503544", "0.5848164", "0.58366674", "0.5836193", "0.58329093", "0.583265", "0.5829165", "0.582876", "0.5823313", "0.5814457", "0.5807024", "0.5801535", "0.5790238" ]
0.70039845
5
get node based from value
public Node<E> getPresentNode(E data){ for(Node<E> node: nodes.keySet()){ if(node.data.equals(data)){ return node; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNodeValue ();", "Object get(Node node);", "Node getNode();", "@Override\r\n public Node getNodeFromValue(Object value_p, Document doc_p) throws Exception\r\n {\n return null;\r\n }", "public String getNodeValue(Node node) throws Exception;", "public Node getNode (){\n if (_node == null){\n Label label = new Label(_value);\n label.setFont(DEFAULT_FONT);\n _node = label;\n }\n return _node;\n }", "public Node getNode(String key) {\n \ttmp = first;\n \tint i;\n \tfor (i=0;i<len;i++) {\n \t\tif (tmp.key == key) {\n \t\t\treturn tmp;\n \t\t}\n \t\ttmp = tmp.getNext();\n \t}\n \treturn null;\n }", "public Object lookup(String key){\n ListNode<String,Object> temp = getNode(key);\n if(temp != null)\n return temp.value;\n else\n return null;\n }", "private RegressionTreeNode traverseNominalNode(Serializable value) {\n\t\tif(value.equals(this.value)){\n\t\t\treturn this.leftChild;\n\t\t}else{\n\t\t\treturn this.rightChild;\n\t\t}\n\t}", "public MyBinNode findNodeByValue(Type val){\n MyBinNode aux = this.root;\n while(aux.value.compareTo(val) != 0){\n if(aux.value.compareTo(val) > 0){\n aux = aux.left;\n }else{\n aux = aux.right;\n }\n if(aux == null){\n return null;\n }\n }\n return aux;\n }", "Node getNode(String path);", "N getNode(int id);", "private Node getNode(String name) {\n for(Iterator<Node> i = nodes.iterator(); i.hasNext();) {\n Node n = i.next();\n if(n.getName().equalsIgnoreCase(name)){\n return n;\n };\n }\n return null;\n }", "public Node getNode();", "public abstract Object \t\tgetNodeValue(int nodeIndex,int nodeColumn);", "public Value get(String key) {\n Node x = get(root, key, 0);\n if (x == null) return null; //node does not exist\n else return (Value) x.val; //found node, but key could be null\n }", "public NodeT getNode(String key) {\n return nodeTable.get(key);\n }", "private Node getNode(String n1)\n\t{\n\t\tif (n1 == null) throw new RuntimeException(\"Attempt to add null node\");\n\t\tif (nodes.containsKey(n1)) return nodes.get(n1);\n\t\tnodes.put(n1, new Node(n1));\n\t\treturn nodes.get(n1);\n\t}", "Node getVariable();", "List<Node> getNode(String str);", "@Override\n public node_data getNode(int key) {\n return nodes.get(key);\n }", "public CatalogNode getNode(String node);", "public node_info getNode(int key)\n{\n\treturn getNodes().get(key);\n\t\n}", "private Element getElementByKeyRef(Node node) {\n\t\tElement ref ;\n\t\t\t\n\t\tString refType = getDocumentXpath(node);\n\t\tSystem.out.println(\"search ref for : \"+refType);\n\t\t/* get ref attribute */\n\t\tString refId = node.getTextContent();\n\t\tif (refId == null || refId.equals(\"\")){ \n\t\t\tfor (int i = 0; i< node.getAttributes().getLength(); i++) {\n//\t\t\t\tSystem.out.println(node.getAttributes().item(i).getNodeName()+\" :: \"+node.getAttributes().item(i).getTextContent());\n\t\t\t\tif (node.getAttributes().item(i).getNodeName().equals(refAttribute)){\n\t\t\t\t\t\trefId = node.getAttributes().item(i).getNodeValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tString referedType = (String) refType2referedType.get(refType)\t;\t\n\t\t\n\t\tref = (Element) xsKeyNodes.get(referedType+\"#\"+refId);\t\t\n\t\treturn ref;\n\t}", "public Node searchSubTreeByValue(String value){\n\t\tArrayList<Node> childNodes = new ArrayList<Node>();\n\t\tchildNodes = this.getChildren(); // get children\n\t\tlastFounded = null;\n\t\tfor(Node resNode : childNodes){ // for each child\n\t\t\tif(resNode.value.equals(value)){ // if we find the searched value\n\t\t\t\tif(resNode.getChildren()==null){\n\t\t\t\t\treturn resNode;// we return the node if it has no children\n\t\t\t\t}else{// 50% to return the node if it has children\n\t\t\t\t\tlastFounded = resNode;// we save the node in case we don't find any matching not later.\n\t\t\t\t\treturn (new Random().nextInt(2)==0?resNode:resNode.searchSubTreeByValue(value));\n\t\t\t\t}\n\t\t\t\t//return resNode;\n\n\t\t\t}else if(resNode.getChildren()!=null && resNode.getChildren().size()>0){ // if node has children but has not value searched\n\t\t\t\treturn resNode.searchSubTreeByValue(value); // Recursively search value\n\t\t\t}\n\t\t}\n\t\tif(lastFounded != null)// if we founded matching nodes, we return the last matching node founded\n\t\t\treturn lastFounded;\n\t\treturn this.getSubTree(-1); // if we didn't find any matching node, we take random node \n\t}", "public String getTextValue (Node node);", "@AutoEscape\n\tpublic String getNode_1();", "public abstract Node getNode();", "public abstract TreeNode getNode(int i);", "@Override\n\tpublic node_data getNode(int key) {\n\n\t\treturn this.Nodes.get(key);\n\n\t}", "Node get(URI uri);", "public SupplyNode getNode(String name){\n return t.get(name);\n }", "TreeNode getTreeNode();", "private T bestValue(MatchTreeNode<T> node) {\n T value = null;\n if (node != null) {\n if (node.child(\"/\") != null) {\n value = node.child(\"/\").value();\n } else {\n value = bestValue(node.parent());\n }\n }\n return value;\n }", "private Node getNode(String nodeName)\r\n\t{\r\n\t return nodeMap.get(nodeName);\r\n\t}", "@Override\n public Optional<Node<T>> findBy(T value) {\n Optional<Node<T>> rsl = Optional.empty();\n Queue<Node<T>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<T> el = data.poll();\n if (el.eqValues(value)) {\n rsl = Optional.of(el);\n break;\n }\n for (Node<T> child : el.leaves()) {\n data.offer(child);\n }\n }\n return rsl;\n }", "@AutoEscape\n\tpublic String getNode_2();", "<O> N getNode(Function<N, O> map, O value);", "public GraphNode getNode(String key) {\n\treturn nodes.get(key);\n }", "Node getNode(int n) {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n\n if (n < edge.nbNode()) {\n return edge.getNode(n);\n } else {\n return edge.getEdgeVariable();\n }\n\n case OPT_BIND:\n return get(n).getNode();\n }\n return null;\n }", "public RegressionTreeNode traverseNode(Serializable value){\n\t\tif(value instanceof Number && this.value instanceof Number){\n\t\t\tDouble number = ((Number) value).doubleValue();\n\t\t\treturn this.traverseNumericalNode(number);\n\t\t}else{\n\t\t\treturn this.traverseNominalNode(value);\n\t\t}\n\t}", "OperationNode getNode();", "public Node findNode(E val) {\n\t\tif (val == null) return null;\n\t\treturn findNode(root, val);\n\t}", "public Node get_node(String node) {\n return this.nodes.get(node);\n }", "private Node getRefTo(T item){\n Node n = first;\n while(n != null && !n.value.equals(item))\n n = n.next;\n return n;\n }", "public Node getNode(Reference ref, Presentation presentation);", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public GraphNode<?> get(String name) {\n\t\tfor(GraphNode<?> node : nodes) {\n\t\t\tif(node.data.equals(name))\n\t\t\t\treturn node;\n\t\t}\n\t\treturn null;\n\t}", "protected Node<T> getNode(T key) {\n\t\tNode<T> node = root;\n\t\twhile (node != null) {\n\t\t\tif (key.compareTo(node.value) == 0) {\n\t\t\t\treturn node;\n\t\t\t} else if (key.compareTo(node.value) < 0) {\n\t\t\t\tnode = node.right;\n\t\t\t} else {\n\t\t\t\tnode = node.left;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "java.lang.String getEntryNode();", "@Override\n public Optional<Node<E>> findBy(E value) {\n Optional<Node<E>> rsl = Optional.empty();\n Queue<Node<E>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<E> el = data.poll();\n if (el.eqValue(value)) {\n rsl = Optional.of(el);\n break;\n }\n for (Node<E> child : el.leaves()) {\n data.offer(child);\n }\n }\n return rsl;\n }", "public Node returnNodeById(Id id){\n\t\tif(id.indice >= listOfNodes.size()) return null;\n\t\tNode n = listOfNodes.elementAt(id.indice);\n\t\tif(n == null) return null;\n\t\tId nid = n.getId();\n\t\tif(nid.indice != id.indice || nid.unique != id.unique) return null; \n\t\treturn n;\n\t}", "public String lookup(String key){\n Node N = front;\n while( N != null){\n if( N.key.equals(key)){\n return N.value;\n }\n N = N.next;\n }\n return null;\n }", "public Node get(String tag)\n {\n if(_list!=null)\n {\n for(int i=0;i<_list.size();i++)\n {\n Object o=_list.get(i);\n if(o instanceof Node)\n {\n Node n=(Node)o;\n if(tag.equals(n._tag))\n return n;\n }\n }\n }\n return null;\n }", "String getNodeMetadataValue(int node, String key);", "public static<T> Optional<Node<T>> search(T value, Node<T> start ){\n\n Queue<Node> queue = new ArrayDeque<>();//inicializar cola\n queue.add(start);// se agraga a la cola el inicial\n\n Node<T> currentNode = null; //creacion de variable currenteNode\n\n Node<T> father = null;\n\n Set<Node<T>> closed = new HashSet<>(); //memoria //una coleccion de nodos existentes\n\n while(!queue.isEmpty()){ //1-verificar si puede continuar\n\n currentNode = queue.remove();\n\n System.out.println(\"Visitando el nodo... \" + currentNode.getValue()); //se convierte en string\n\n //2-verificar si se encuentra en la meta\n if(currentNode.getValue().equals(value)){\n return Optional.of(currentNode);\n }\n else{\n if (!closed.contains(currentNode)){ // existe o no en memoria (no repetir caminos.\n closed.add(currentNode); // 3-espacio explorado\n queue.addAll(currentNode.getNeighbors()); // sucesor // expande\n }\n queue.removeAll(closed);//elimina el recien visitado\n }\n\n }\n return Optional.empty();\n }", "public HTreeNode find (char value) {\r\n HTreeNode listrunner = getHeadNode();\r\n while (listrunner != null && listrunner.getCharacter() != value) {\r\n listrunner = listrunner.getNext();\r\n }\r\n return listrunner;\r\n }", "TreeNodeValueModel<T> child(int index);", "public int getNodeLabel ();", "String getIdNode2();", "public Object get(Object key){\n\t\tNode tempNode = _locate(key);\r\n\t\tif(tempNode != null){\r\n\t\t\treturn tempNode._value;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public SymbolTreeNode getNode(int index) {\n return cast(get(index));\n }", "public V getValueOfNode(Integer id) {\n\t\treturn nodes.get(id);\n\t}", "public Node namedItem(final String key) {\n final int length = getLength();\n for (int i = 0; i < length; i++) {\n final Node n = item(0);\n if (n instanceof Element) {\n final Element element = (Element) n;\n if (key.equals(element.getAttribute(\"id\")) || key.equals(element.getAttribute(\"name\"))) {\n return n;\n }\n }\n\n }\n return null;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "Node search(int reqNodeValue){\r\n\t\tNode reqNode = this.root ;\r\n\t\t \r\n\t\twhile(reqNode != null && reqNode.value != reqNodeValue) {\r\n\t\t\tif(reqNode.value < reqNodeValue) {\r\n\t\t\t\treqNode = reqNode.right ; \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treqNode = reqNode.left ;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(reqNode == null) {\r\n\t\t\tSystem.out.println(\"No such node exists in the tree\");\r\n\t\t}\r\n\t\treturn reqNode;\r\n\t}", "public String get(String key) {\n \ttmp = getNode(key);\n \tif (tmp != null) { \n \t\treturn tmp.getVal();\n \t}\n \treturn null;\n }", "public UNode getNode(Integer nodeid)\r\n {\r\n return uNodes.get(nodeid);\r\n }", "public boolean searchNode(int value) \n { \n return searchNode(header.rightChild, value); \n }", "public BPGNode get(int in) {\n return in == 0 ? n1 : (in == 1 ? n2 : null);\n }", "public V get(K key){\n\t\t\n\n\t\tNode n=searchkey(root, key);\n\n\t\t\n\t\tif(n!=null && n.value!=null){\n\t\t\treturn n.value;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public Node getNode(Object element) {\n return nodes.get(element);\n }", "private Node<T> getNode(int idx) {\r\n\t\treturn getNode(idx, 0, size() - 1);\r\n\t}", "@AutoEscape\n\tpublic String getNode_3();", "public Node getNode(String root, String name){\n\t\tNodeList userData = returnChildNodes(root, name);\n\t\t\n\t\tfor(int i = 0; i < userData.getLength(); i++){ //cycle through the family and find the node that equals to the node parameter\n\t\t\tNode node = userData.item(i);\n\t\t\tif(name.equals(node.getNodeName())){\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Node getNode() throws ItemNotFoundException, ValueFormatException,\n RepositoryException {\n return null;\n }", "public String lookup(String key){\n Node N;\n N = findKey(root, key);\n return ( N == null ? null : N.item.value );\n }", "private static Node createNode(int value) {\n\t\treturn new Node(value);\n\t}", "public Node getChild();", "public BinaryNode<T> find(T v);", "private Node getChildById(String identifier)\r\n {\r\n Node result = null;\r\n\r\n result = convertNode(cmisSession.getObject(identifier));\r\n\r\n return result;\r\n }", "private Node getNodeById(int objId){\n return dungeonPane.lookup(\"#\" + Integer.toString(objId));\n }", "public MyNode findMyNode(Node node){\r\n\t\treturn nodesMap.get(node);\r\n\t}", "public String getNode() {\n return node;\n }", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getNode(int index);", "@Override\r\n\tpublic CacheTreeNode getOneRootNode(String key) {\n\t\treturn searchTreeNode(key);\r\n\t}", "int getBaseNode();", "public node_type getNode(int idx) {\n assert (idx < (int) nodeVector.size())\n && (idx >= 0) :\n \"<SparseGraph::GetNode>: invalid index\";\n\n return (node_type) nodeVector.get(idx);\n }", "public T search(T value) {\n\n if (root.getValue().compareTo(value) == 0) return root.getValue();\n else return searchRecursively(root, value).getValue();\n }", "public TSTNode<E> getNode(String key) {\n return getNode(key, rootNode);\n }", "public CircosNode getNode(String id){\n\t\tfor(int i = 0; i < nodes.size(); i++){\n\t\t\tif(nodes.get(i).getID().equals(id)){\n\t\t\t\treturn nodes.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "String getValueOfNode(String path)\n throws ProcessingException;", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public AbstractNode getValue()\n\t\t{\n\t\t\treturn value;\n\t\t}", "public static Node readXML(String filename, String id, String value)\r\n\t{\r\n\t\t\r\n\t\tNode child = readXML(filename);\r\n\t // Lista di tutti gli elementi\r\n\t NodeList list = ((Element)child).getElementsByTagName(id);\t \r\n\t \r\n\t if ( list.getLength()!=0 )\r\n\t {\r\n\t\t int i=0;\r\n\t\t while ( i<list.getLength())\r\n\t\t {\r\n\t\t \tNode nodo = list.item(i).getFirstChild();\r\n\t\t \t\r\n\t\t \tif ( nodo.getNodeValue().equals(value) )\r\n\t\t \t{\r\n\t\t\t \tdo\r\n\t\t\t \t{\r\n\t\t\t \t\tnodo = nodo.getParentNode();\t\r\n\t\t\t \t}\r\n\t\t\t \twhile( nodo.getParentNode() != child );\r\n\t\t\t \t\r\n\t\t\t \treturn nodo;\r\n\t\t \t}\r\n\t\t \telse\r\n\t\t \t{\r\n\t\t \t\ti++;\r\n\t\t \t}\r\n\t\t }\r\n\t }\r\n\t return null;\r\n\t}", "TaskNode getNode(Task task);", "private Node getNode(String resource)\r\n {\r\n return Node.getNode(resource);\r\n }", "public Node find(int val) {\r\n\r\n\t\tif (root == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tNode currentNode = root;\r\n\r\n\t\twhile (!currentNode.isLeaf()) {\r\n\t\t\tif (currentNode.getKey() == val) {\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\r\n\t\t\tif (val < currentNode.getKey()) {\r\n\t\t\t\tcurrentNode = currentNode.getLeftChild();\r\n\t\t\t} else {\r\n\t\t\t\tcurrentNode = currentNode.getRightChild();\r\n\t\t\t}\r\n\t\t\tif (currentNode == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (currentNode.getKey() == val) {\r\n\t\t\treturn currentNode;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public T getValue(String key) {\r\n\t\tNode node = getNode(root, key, 0);\r\n\t\treturn node == null ? null : node.value;\r\n\t}", "String getIdNode1();" ]
[ "0.73254704", "0.7281827", "0.68778247", "0.6858682", "0.68473065", "0.64862585", "0.64639276", "0.6446091", "0.64353526", "0.6370797", "0.6348758", "0.6340307", "0.63401747", "0.63128424", "0.6285424", "0.6278147", "0.62147325", "0.6211236", "0.62008417", "0.6167928", "0.61524963", "0.61479855", "0.6092384", "0.6089675", "0.60724473", "0.60681397", "0.60403454", "0.60386527", "0.60380423", "0.6030979", "0.60291564", "0.6028359", "0.6007512", "0.5989539", "0.5987769", "0.5981841", "0.5975286", "0.5968066", "0.5963783", "0.5953888", "0.59446615", "0.59435457", "0.59415984", "0.59392595", "0.5939041", "0.59251", "0.5916884", "0.59132326", "0.58913195", "0.58743584", "0.5870746", "0.58579713", "0.58532244", "0.58527124", "0.58460677", "0.58396333", "0.5825", "0.58211875", "0.5815502", "0.5811949", "0.58111846", "0.58085406", "0.58036757", "0.57868654", "0.5782654", "0.57797086", "0.57743937", "0.57733744", "0.5765524", "0.5759326", "0.5753726", "0.57535625", "0.57402813", "0.5730701", "0.5725774", "0.57244027", "0.57204616", "0.5719678", "0.5718583", "0.5714569", "0.5711094", "0.57089424", "0.5700636", "0.5689906", "0.5684792", "0.5678516", "0.5666004", "0.565905", "0.5656643", "0.56557393", "0.56544304", "0.56522375", "0.5648571", "0.5648571", "0.56485206", "0.5645313", "0.5641681", "0.5640788", "0.56375", "0.5635551", "0.5628689" ]
0.0
-1
This method swapped characters at position
private static String swap(String str, int i, int j) { char temp; char[] charArray = str.toCharArray(); temp = charArray[i]; charArray[i] = charArray[j]; charArray[j] = temp; return String.valueOf(charArray); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void swap(char[] chars, int i, int j) {\n\t\tchar ch = chars[i];\r\n\t\tchars[i] = chars[j];\r\n\t\tchars[j] = ch;\r\n\t}", "private void switchChars(char[] chars,int i, int j){\r\n\t\tchar tmp=chars[i];\r\n\t\tchars[i]=chars[j];\r\n\t\tchars[j]=tmp;\r\n\t}", "private static void swap(char[] a, int i, int j) {\r\n\r\n\t\tchar c;\r\n\t\tc = a[i];\r\n\t\ta[i] = a[j];\r\n\t\ta[j] = c;\r\n\t}", "private static void swap(char[] arr, int i, int j) {\r\n\t\tchar c = arr[i];\r\n\t\tarr[i] = arr[j];\r\n\t\tarr[j] = c;\r\n\t}", "private static void swap(char[] arr,int i,int j){\n char temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }", "private String swapOne(int a,int b,char[] word){\n char tmp=word[a];\n word[a]=word[b];\n word[b]=tmp;\n return new String(word);\n}", "private static void swap(char x[], char[] a2, int a, int b) {\n\t\tchar t = x[a];\n\t\tx[a] = x[b];\n\t\tx[b] = t;\n\t\tchar t2 = a2[a];\n\t\ta2[a] = a2[b];\n\t\ta2[b] = t2;\n\t}", "public String swap(String a, int i, int j)\n {\n char temp;\n char[] charArray = a.toCharArray();\n temp = charArray[i] ;\n charArray[i] = charArray[j];\n charArray[j] = temp;\n return String.valueOf(charArray);\n }", "private void swap(byte[] bytes, int pos1, int pos2) {\n \t\tbyte temp = bytes[pos1];\n \t\tbytes[pos1] = bytes[pos2];\n \t\tbytes[pos2] = temp;\n \t}", "private static void swap(char[] array, int a, int b) {\r\n // Swaps\r\n char temp = array[a];\r\n array[a] = array[b];\r\n array[b] = temp;\r\n }", "public String swap(String text){\n\t\treturn text.substring(text.length()/2,text.length())+text.substring(0, text.length()/2);\n\t}", "public String swap(String a, int i, int j)\n {\n char temp;\n char[] charArray = a.toCharArray();\n temp = charArray[i];\n charArray[i] = charArray[j];\n charArray[j] = temp;\n return String.valueOf(charArray);\n }", "public String swap(String a, int i, int j) {\r\n char temp;\r\n char[] charArray = a.toCharArray();\r\n temp = charArray[i];\r\n charArray[i] = charArray[j];\r\n charArray[j] = temp;\r\n return String.valueOf(charArray);\r\n }", "public String swap(String s1,int i,int j) {\n\t\t//storing string into char array\n\t\tchar []str=s1.toCharArray();\n\t\tchar temp;\n\t\ttemp=str[i];\n\t\tstr[i]=str[j];\n\t\tstr[j]=temp;\n\t\treturn String.valueOf(str);\n\t\t\n\t}", "public String swap(String a, int i, int j)\n\t{\n\t\tchar temp;\n\t\tchar[] charArray = a.toCharArray();\n\t\ttemp = charArray[i];\n\t\tcharArray[i] = charArray[j];\n\t\tcharArray[j] = temp;\n\t\treturn String.valueOf(charArray);\n\t}", "private String swapFour(int i,char insert,char[]word){\n StringBuilder ste=new StringBuilder(new String(word));\n if(i != word.length)\n ste.insert(i, insert);\n else\n ste.append(insert);\n return new String(ste);\n }", "private static void vecswap(char x[], char[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "private static <T> void swap(char x[], T[] a2, int a, int b) {\n\t\tchar t = x[a];\n\t\tx[a] = x[b];\n\t\tx[b] = t;\n\t\tT t2 = a2[a];\n\t\ta2[a] = a2[b];\n\t\ta2[b] = t2;\n\t}", "public void flipOverX(){\n int len = tileChars.length;\r\n \r\n // swap rows\r\n for (int i = 0; i < len / 2; i++)\r\n {\r\n for (int j = 0; j < len; j++)\r\n {\r\n // swap `tileChars[i][j]` with `tileChars[len-i-1][j]`\r\n char temp = tileChars[i][j];\r\n tileChars[i][j] = tileChars[len-i-1][j];\r\n tileChars[len-i-1][j] = temp;\r\n }\r\n }\r\n \r\n boolean temp = this.matchFound[0];\r\n this.matchFound[0] = this.matchFound[2];\r\n this.matchFound[2] = temp;\r\n \r\n this.recalculateEdges(); //fix edges\r\n }", "public void flipOverY(){\n int len = tileChars.length;\r\n \r\n // swap columns\r\n for (int i = 0; i < len; i++)\r\n {\r\n for (int j = 0; j < len / 2; j++)\r\n {\r\n char temp = tileChars[i][j];\r\n tileChars[i][j] = tileChars[i][len - j - 1];\r\n tileChars[i][len - j - 1] = temp;\r\n }\r\n }\r\n \r\n boolean temp = this.matchFound[1];\r\n this.matchFound[1] = this.matchFound[3];\r\n this.matchFound[3] = temp;\r\n \r\n this.recalculateEdges(); //fix edges\r\n }", "public String alternateWordSwap() {\n\t\tString output=\"\";\r\n\t\tString arr[]=this.str.split(\" \");\r\n\t\tfor(int i=0,j=1;i<arr.length;i+=2,j+=2){\r\n\t\t\tString temp=arr[i];\r\n\t\t\tarr[i]=arr[j];\r\n\t\t\tarr[j]=temp;\r\n\t\t}\r\n\t\t\r\n\t\tfor(String s:arr){\r\n\t\t\toutput+=s+\" \";\r\n\t\t}\r\n\t\treturn output.trim();\r\n\t}", "private String swapTwo(int a,int b,char[]word1,char[]word2){\n \n word1[a]=word2[b];\n return new String(word1);\n }", "@Override\n\tpublic void swap(int pos1, int pos2) {\n\t}", "public static void productSwap(char neighbor1, char neighbor2, int pos1, int pos2) {\r\n\t\tchar[] currentSeqArray = currentSeq.toCharArray();\r\n\t\tcurrentSeqArray[pos1] = neighbor2;\r\n\t\tcurrentSeqArray[pos2] = neighbor1;\r\n\t\tcurrentSeq = String.copyValueOf(currentSeqArray);\r\n\t}", "private static void swapRight(final byte index, final String byte_, final StringBuilder builder)\n\t{\n\t\tchar swapped_char = byte_.charAt(index + 1);\n\t\tbuilder.setCharAt(index + 1, builder.charAt(index));\n\t\tbuilder.setCharAt(index, swapped_char);\n\t}", "private static <T> void vecswap(char x[], T[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "private void swap( int i, int j )\n {\n\t\n\tString jStr = _fruits[j] ;\n\t_fruits[j] = _fruits[i];\n\t_fruits[i] = jStr;\n }", "private static void swapLeft(final byte index, final String byte_, final StringBuilder builder)\n\t{\n\t\tchar swapped_char = byte_.charAt(index - 1);\n\t\tbuilder.setCharAt(index - 1, builder.charAt(index));\n\t\tbuilder.setCharAt(index, swapped_char);\n\t}", "public void reverseString(char[] s) {\n for(int i = 0, j = s.length - 1; i < s.length / 2; i++,j--){\n //temporary holder\n char temp = s[j];\n //swap characters\n s[j] = s[i];\n s[i] = temp;\n }\n }", "private void swapAt(int i, int j) {\n\t\tfloat tmp = sequence[i];\n\t\tsequence[i] = sequence[j];\n\t\tsequence[j] = tmp;\n\t}", "public void swap(String[] arr, int index0, int index1) {\n String temp = arr[index0];\n arr[index0] = arr[index1];\n arr[index1] = temp;\n }", "public static String swap(int suffixStartIndex, char string[]) {\n\t\tint pivotIndex = suffixStartIndex - 1;\n\n\t\tint j;\n\n\t\tfor (j = suffixStartIndex; j < string.length; j++) {\n\t\t\tif (string[pivotIndex] >= string[j]) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tj--;\n\n\t\tchar temp = string[j];\n\t\tstring[j] = string[pivotIndex];\n\t\tstring[pivotIndex] = temp;\n\n\t\treturn new String(string);\n\n\t}", "public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }", "private int stringSwap(int num, int i, int j) {\n String intString = String.valueOf(num);\n char[] charArr = intString.toCharArray();\n char c = charArr[i];\n charArr[i] = charArr[j];\n charArr[j] = c;\n return Integer.valueOf(new String(charArr));\n }", "public static void swap(String[] entrants, int i, int j) {\r\n // Swap 2 elements in array\r\n String temp = entrants[i];\r\n entrants[i] = entrants[j];\r\n entrants[j] = temp;\r\n return;\r\n }", "public\n\tString swap () {\n\n\t\tString ret =\n\t\t\tnextIsA\n\t\t\t\t? aString\n\t\t\t\t: bString;\n\n\t\tnextIsA =\n\t\t\t! nextIsA;\n\n\t\treturn ret;\n\n\t}", "@Override\n public boolean swap(int position1, int position2) {\n T first = array[position1];\n T second = array[position2];\n array[position1] = second;\n array[position2] = first;\n return true;\n }", "public void onSwapPosition() {\n\n\t}", "private void exchange(int i, int j){\n\t\tString temp = array[i];\n array[i] = array[j];\n array[j] = temp;\n\t}", "static void swap(List<CustomCharacter> list, int a, int b){\n CustomCharacter temp = getClone(list, a);\n list.set(a, list.get(b));\n list.set(b, temp);\n }", "public void swap() {\n\t\tCode.put(Code.dup_x1);\n\t\tCode.put(Code.pop);\n\t}", "static void swapPositions(Piece src, Piece dst) {\n\t\t/* Swap the current positions of the pieces */\n\t\tint tempPosition = src.getPosition();\n \tsrc.setPosition(dst.getPosition());\n \tdst.setPosition(tempPosition);\n \t\n \t/* Swap the pieces in jigsawPieces to ensure that it is sorted by currentPosition */\n\t\tPlay.jigsawPieces.set(src.getPosition(), src);\n\t\tPlay.jigsawPieces.set(dst.getPosition(), dst);\n\t}", "public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }", "public static void main(String[] args) {\n String s = \"we are i interviewing now\";\n char[] nums = s.toCharArray();\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n \n // we are i interviewing now\n // i\n // j\n \n \n // 當nums[j]和nums[j-1]有一個不是空格時, 和i交換\n // 都是空格, 只移動j\n int i = 1;\n int j = 1;\n while (j < nums.length) {\n // j和j-1有一個不是空格 --> 交換\n if (j >= 1 && (nums[j] != ' ' || nums[j - 1] != ' ')) {\n char temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n i++;\n } else if (j >= 1 && nums[j] == ' ' && nums[j - 1] == ' '\n && nums[i - 1] != ' ') {\n i++;\n }\n j++;\n }\n System.out.println(nums);\n }", "public void revComp() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n char c = seq.get(seq.size() - 1 - i);\n newSeq.add(complement(c));\n }\n seq = newSeq;\n }", "private static void exch(String[] a, int i, int j) {\n String temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }", "private static void exch(String[] a, int i, int j) {\n String temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }", "private void swap(int firstIdx, int secondIdx) {\r\n // TODO\r\n }", "private void swap(Comparable[] array, int pos1, int pos2) {\n\t\tComparable tmp = array[pos1];\n\t\tarray[pos1] = array[pos2];\n\t\tarray[pos2] = tmp;\n\t}", "private void exch(int i, int j) {\n \tif (i < 0 || j< 0 || j >= length() || i >= length()) \n \t\tthrow new IllegalArgumentException();\n int swap = csa[i];\n csa[i] = csa[j];\n csa[j] = swap;\n }", "private static void swap(String a, String b) {\n\t\tString temp = a;\n\t\ta = b;\n\t\tb = temp;\n\t\tSystem.out.println(\"in swap : a = \" + a + \"; b = \" + b);\n\t\t\n\t}", "private static int flipArray(char [] dest, int start, int e, int w){\n int r;\n if (w > start) {\n // shift, assume small buffer size so don't use arraycopy\n r = w;\n w = start;\n while (r < e) {\n dest[w++] = dest[r++];\n }\n } else {\n w = e;\n }\n return w;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(rearrangeString(\"aab\", 3));\n\t}", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "private static void invertBuffer(char[] buffer,\n int start,\n int length) {\n\n for(int i = start, j = start + length - 1; i < j; i++, --j) {\n char temp = buffer[i];\n buffer[i] = buffer[j];\n buffer[j] = temp;\n }\n }", "void swap(int start, int end) {\n\n pushLeftWord(start);\n pushRightWord(end);\n\n putRightWordToLeft(start);\n putLeftWordToRight(end);\n }", "public static void main(String[] args) {\n\t\tString a=\"shubham\";\n\t\tString b=\"Baiyas\";\n\t\tSystem.out.println(\"Before Swapping\");\n\t\tSystem.out.println(\"a:\"+a);\n\t\tSystem.out.println(\"b:\"+b);\n\t\tSystem.out.println(\"--------------------------------\");\n\t\t\n\t\t//step 1: append a and b\n\t\t a=a+b; // shubhamBaiyas\n\t\t\n\t\t//step 2: store initial string a in b\n\t\t// b=a.substring(0, a.length()-b.length());\n\t\t b=a.substring(0, a.length()-b.length());\n\t\t\n\t\t//step 3: store initial b in a\n\t\t// a=a.substring(b.length());\n\t\t a=a.substring(b.length());\n\t\t System.out.println(\"After swapping\");\n\t\t System.out.println(\"a:\"+a);\n\t\t System.out.println(\"b:\"+b);\n\t\t\n\t\t\n\t\t\n\t}", "public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n List<Integer> chars = new ArrayList<>();\n Map<Integer, Queue<Integer>> charPosition = new HashMap<>();\n int currentIndex = 0;\n\n while (!BinaryStdIn.isEmpty()) {\n int i = BinaryStdIn.readInt(8);\n chars.add(i);\n Queue<Integer> position = charPosition.get(i);\n\n if (position == null) {\n position = new Queue<>();\n charPosition.put(i, position);\n }\n\n position.enqueue(currentIndex);\n currentIndex += 1;\n }\n\n int N = chars.size();\n int R = 256;\n int[] count = new int[R + 1];\n\n for (int i = 0; i < N; i++) {\n count[chars.get(i) + 1]++;\n }\n\n for (int r = 0; r < R; r++) {\n count[r + 1] += count[r];\n }\n\n int[] h = new int[N];\n\n for (int i = 0; i < N; i++) {\n h[count[chars.get(i)]++] = chars.get(i);\n }\n\n int[] next = new int[N];\n\n for (int i = 0; i < N; i++) {\n int index = charPosition.get(h[i]).dequeue();\n next[i] = index;\n }\n\n int current = first;\n\n for (int i = 0; i < N; i++) {\n BinaryStdOut.write(h[current], 8);\n current = next[current];\n }\n\n BinaryStdOut.flush();\n }", "private void swap(int pos1, int pos2) {\n\t\tE temp = apq.get(pos1);\n\t\tapq.set(pos1, apq.get(pos2));\n\t\tapq.set(pos2, temp);\n\n\t\tlocator.set(apq.get(pos1), pos1);\n\t\tlocator.set(apq.get(pos2), pos2);\n\t}", "private static StringBuffer changeCharacters(int position, StringBuffer password, int length, PDDocument document) {\r\n\t\tfor (int i = 0; i <= dictionary.length - 1; i++) {\r\n\t\t\tpassword.setCharAt(position, dictionary[i]);\r\n\t\t\t// if statements validating whether the password was found\r\n\t\t\tif (position == length - 1) {\r\n\t\t\t\tif (validation(password.toString(), document)) {\r\n\t\t\t\t\tthrow new BruteForceDecrypt.successInterrupter(password.toString());\r\n\t\t\t\t}\r\n\t\t\t\t// If password was not found algorithm will move to another\r\n\t\t\t\t// position\r\n\t\t\t} else {\r\n\t\t\t\tchangeCharacters(position + 1, password, length, document);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn password;\r\n\t}", "public void swap(int index1, int index2) {\n \n }", "public static void main(String[] args) {\r\n\t\tchar[] data = \"Some Strings\".toCharArray();\r\n\t\tByteBuffer buffer = ByteBuffer.allocate(data.length * 2);\r\n\t\tCharBuffer charBuffer = buffer.asCharBuffer();\r\n\t\tcharBuffer.put(data);\r\n\t\tSystem.out.println(\"Put to data after :\" +charBuffer.position());\r\n\t\tcharBuffer.rewind();//position set 0\r\n\t\tSystem.out.println(\"Set to rewind after :\" +charBuffer.position());\r\n\t\tSystem.out.println(\"Before reverse : \"+charBuffer);\r\n\t\t\r\n\t\twhile (charBuffer.hasRemaining()) {\r\n\t\t\t//hasRemaining : Mevcut konum ile limit arasinda bir karakter var ise true dondurur.\r\n\t\t\tcharBuffer.mark();\r\n\t\t\tchar c = charBuffer.get();\r\n\t\t\tchar c2 = charBuffer.get();\r\n\t\t\tcharBuffer.reset();\r\n\t\t\tcharBuffer.put(c2).put(c);\r\n\t\t}\r\n\t\tSystem.out.println(\"Reverse process: \"+charBuffer.rewind());\r\n\t}", "private void goZhuSuOrder(int position){\n\t}", "public static void inverseTransform()\r\n {\r\n \tint first = BinaryStdIn.readInt();\r\n \tString s = BinaryStdIn.readString();\r\n \tBinaryStdIn.close();\r\n \t\r\n \tchar[] t = s.toCharArray();\r\n \r\n \tchar[] firstCharacters = t.clone();\r\n \tArrays.sort(firstCharacters);\r\n \t\r\n \t// Construction next[] using t[] and first\r\n \tint[] next = constructNext(t, firstCharacters, first);\r\n \t\r\n \t// Writing original string to StdOut using next[] and first\r\n \tint index = first;\r\n \tfor (int i = 0; i < t.length; i++)\r\n \t{\r\n \t\tBinaryStdOut.write(firstCharacters[index]);\r\n \t\tindex = next[index];\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "private String bidirectionalReorder(String text) {\n try {\n Bidi bidi = new Bidi((new ArabicShaping(8)).shape(text), 127);\n bidi.setReorderingMode(0);\n return bidi.writeReordered(2);\n } catch (ArabicShapingException exception) {\n return text;\n }\n }", "private static String flipEndChars(String str) {\n if (str.length() < 2) {\n return \"Incompatible.\";\n }\n char firstChar = str.charAt(0);\n char lastChar = str.charAt(str.length() - 1);\n if (firstChar == lastChar) {\n return \"Two\\'s a pair.\";\n }\n return lastChar + str.substring(1, str.length() - 1) + firstChar;\n }", "private String shiftingBack(String s) {\n int diff = s.charAt(0) - 'a';\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < s.length(); i ++) {\n if (s.charAt(i) - 'a' >= diff) {\n char c = (char) (s.charAt(i) - diff);\n sb.append(c);\n } else {\n char c = (char) (s.charAt(i) - diff + 26);\n sb.append(c);\n }\n }\n return new String(sb);\n }", "void decreaseSortLetter();", "private static <T> void swap(byte x[],T[] a2, int a, int b) {\n\t\tbyte t = x[a];\n\t\tx[a] = x[b];\n\t\tx[b] = t;\n\t\tT t2 = a2[a];\n\t\ta2[a] = a2[b];\n\t\ta2[b] = t2;\n\t}", "public static ArrayList<String>\n swap(ArrayList<String> list,int pos1,int pos2)\n { Collections.swap(list,pos1,pos2);\n return list;\n }", "private void swapOut(SwappingProcess p)\n {\n \tint size = p.getSize(), i = 0;\n \tchar name = p.getName();\n \t\n for (; i < memorySize; i++)\n {\n if (mainMemory[i] == name)\n {\n break;\n }\n }\n size += i;\n for (; i < size && i < memorySize; i++)\n {\n mainMemory[i] = '.';\n }\n }", "private static Character flip(Character c){\n return c == '0'?'1':'0';\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the first String:\");\r\n\t\tString str1=sc.next();\r\n\t\tSystem.out.println(\"Enter the second String:\");\r\n\t\tString str2=sc.next();\r\n\t\tString temp;\r\n\t\t\r\n\t\ttemp=str1;\r\n\t\tstr1=str2;\r\n\t\tstr2=temp;\r\n\t\tSystem.out.println(\"After swapping str1 is:\"+str1);\r\n\t\tSystem.out.println(\"After swapping str2 is:\"+str2);\r\n\r\n\t}", "public String decode(String words) {\n \n String reversedLetters = words;\n String [] reverseWordPosition = reversedLetters.split (\" \");\n String [] tempCopy = new String [reverseWordPosition.length];\n \n \n //Reverse the order of the words to position after Transpose has ran.\n for (int i = 0; i <= (((reverseWordPosition.length) - 1 - i) / 2); i++){\n tempCopy [i] = reverseWordPosition [i];\n reverseWordPosition [i] = reverseWordPosition [(reverseWordPosition.length) - 1 - i];\n reverseWordPosition [(reverseWordPosition.length) - 1 - i] = tempCopy [i]; \n }\n \n \n String s = new String();\n //Pass that array into a String\n for (int i = 0; i < reverseWordPosition.length; i++ ){\n s += reverseWordPosition [i] + \" \";\n }\n \n //Words are in original position but letter are still reversed. Decrypt\n //must be implemented after decode.\n \n return s;\n \n \n }", "public String changeElementAtPos(int pos, String element) {\r\n String temp = wordBoard[this.rowPos(pos)][this.colPos(pos)];\r\n wordBoard[this.rowPos(pos)][this.colPos(pos)] = element;\r\n return temp;\r\n }", "private String rebef(String s, char a, char b){\n\t\t\tStringBuilder tmp = new StringBuilder();\t\t\n\t\t\tboolean copy = true;\n\t\t\tfor (int i = 0; i < s.length(); ++i){\n\t\t\t\tif(s.charAt(i) == a) copy = false;\n\t\t\t\tif(copy) tmp.append(s.charAt(i));\n\t\t\t\tif(s.charAt(i) == b) copy = true;\n\t\t\t}\n\t\t\treturn tmp.toString();\n\t\t}", "@Test\n\tpublic void RevStr() {\n\n\t\tString str = \"i am the tester\";\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\tSystem.out.println(str.charAt(i));\n\t\t}\n\n\t}", "private void swapContent(){\n Editable content = WordText.getText();\n WordText.setText(TranText.getText());\n TranText.setText(content);\n\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\n\\nEnter the string to find all possible arrangements (Eg : 'xyz', 'pals', 'palsj' )\\n\\n\");\n\t\t\n\t\tString str = scan.nextLine();\n\t\tscan.close();\n\n\t\tchar[] chArr = str.toCharArray();\n\t\tchar[] temp1 = new char[chArr.length];\n\n\t\ttemp1 = chArr;\n\n\t\tint len = chArr.length;\n \n \n\t\tfor (int cnt = 0; cnt < len; cnt++) {\n\t\t\t\n\t\t\tSystem.out.println(\"letter : \" + temp1[0]);\n\n\t\t\t\n\t\t\tfor (int i = 1; i < len; i++) {\n\n\t\t \ttemp1 = printString(temp1); // to print the first swap\n\t\t\t}\n\n\t\t\ttemp1 = moveString1(temp1, 0);\n\n \n\t\t}\n\n\t}", "private static <T> void vecswap(byte x[], T[] a2, int a, int b, int n) {\n\t\tfor (int i=0; i<n; i++, a++, b++)\n\t\t\tswap(x, a2, a, b);\n\t}", "private void put(String asciiChange, String asciiChange2) {\n\t\t\t\r\n\t\t}", "private static void swap(int fi, int si, int d)\r\n\t{\r\n\t int i, temp;\r\n\t for(i = 0; i<d; i++) \r\n\t {\r\n\t temp = arr[fi + i];\r\n\t arr[fi + i] = arr[si + i];\r\n\t arr[si + i] = temp;\r\n\t } \r\n\t}", "public Squarelotron sideFlip(String side);", "public static void main(String[] args) {\n\t\tString s = \"the sky is blue\";\n\t\tString[] s2 = s.split(\" \");\n\n\t\tfor (String string : s2) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tList<String> s3 = Arrays.asList(s2);\n\t\tCollections.reverse(s3);\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s3) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING NOT USING COLLECTIONS AND ARRAYS\n\t\tString s4 = \"the sky is blue\";\n\t\tString[] s5 = s.split(\" \");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tint totalLength = s5.length;\n\t\tfor (int i = 0; i < totalLength / 2; i++) {\n\t\t\tString actual = s5[i];\n\t\t\tString opposite = s5[totalLength - 1 - i];\n\t\t\ts5[i] = opposite;\n\t\t\ts5[totalLength - 1 - i] = actual;\n\t\t}\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING WITHOUT ALLOCATING EXTRA SPACE\n\t\t/*\n\t\t * 1- convertir a array de char\n\t\t * 2- revertir las letrs de las palabras pero dejŠndolas en su sitio\n\t\t * 3- revertir todo el array de char con actual/opuesto\n\t\t */\n\t\tString cadena = \"the sky is blue\";\n\t\tchar[] s6 = cadena.toCharArray();\n\n\t\tint i = 0;\n\t\tfor (int j = 0; j < s6.length; j++) {\n\t\t\tif (s6[j] == ' ') {\n\t\t\t\treverse(s6, i, j - 1);\n\t\t\t\ti = j + 1;\n\t\t\t}\n\t\t}\n\n\t\treverse(s6, i, s6.length - 1);\n\n\t\treverse(s6, 0, s6.length - 1);\n\t\t\n\t\tSystem.out.print(\"\\n\\nREVERSE STRING WITHOUT ALLOCATING EXTRA SPACE: \");\n\t\tfor(int k = 0; k<s6.length; k++) {\n\t\t\tSystem.out.print(s6[k]);\n\t\t}\n\t}", "private void swap(int[] nums, int i, int index) {\n if (i < nums.length && index < nums.length) {\n int temp = nums[i];\n nums[i] = nums[index];\n nums[index] = temp;\n }\n }", "private static void swap(int[] array, int ind1, int ind2) {\n int temp = array[ind1];\n array[ind1] = array[ind2];\n array[ind2] = temp;\n }", "public static void swap(MatchUp[] matchups, int i, int j) {\n MatchUp temp = matchups[i];\r\n matchups[i] = matchups[j];\r\n matchups[j] = temp;\r\n return;\r\n }", "CharacterTarget put(char[] symbols, int from, int to) throws PrintingException;", "@Override\n \tpublic void swap(int i, int j) {\n \t\tint t=data[i];\n \t\tdata[i]=data[j];\n \t\tdata[j]=t;\n \t}", "private void swap(int i, int j){\n \t\tint temp = a[i];\n \t\ta[i] = a[j];\n \t\ta[j] = temp;\n }", "void swap(int index_1,int index_2){\n int temp=arr[index_1];\n arr[index_1]=arr[index_2];\n arr[index_2]=temp;\n }", "protected void swap(int i, int j) {\n Card temp = cards[i];\n cards[i] = cards[j];\n cards[j] = temp;\n }", "public static void main(String[] args) {\nString given=\"hello im jaiprashanth hw are you\";\nchar ch[]=given.toCharArray();\n\nfor(int i=0;i<ch.length;i++) {\n\tif(ch[i]==' ') {\n\tch[i+1]=(char)(ch[i+1]-32);\n\t}\nSystem.out.println(ch);\n}\n}", "private void exchangeCards(int i, int j){\r\n\t Card temp = cards[i];\r\n\t cards[i] = cards[j];\r\n\t cards[j] = temp;\r\n\t}", "public String reverse(String s) {\n String ret = \"\";\n for(int i = 0; i < s.length; i+= 1) {\n ret = s.charAt(i) + ret; //this will go in reverse as the next character will appear before the previously placed ret character.\n }\n return ret;\n}", "public static void testZ(){\n\t\tStrings t = new Strings();\r\n\t\tt.ts = \"a\";\r\n\t\tStrings s = new Strings();\r\n\t\ts.ts = \"b\";\r\n\t\tSystem.out.printf(\"t: %s, s: %s;\\n\",t.ts,s.ts);\r\n\t\t\tswap(t, s);\r\n\t\t\tSystem.out.printf(\"t: %s, s: %s;\\n\",t.ts,s.ts);\r\n\t\t\r\n\t}", "private void switchToLowerCase() {\n for (int i = 0; i < mLetterButtons.length; i++) {\n mLetterButtons[i].setText((mQWERTYWithDot.charAt(i) + \"\").toLowerCase());\n }\n mIsShiftPressed = false;\n }", "public static String swapDigits(String str)\n\t{\n\t\tif (str == null) return str;\n\t\tint strlen = str.length();\n\t\tStringBuffer sb = new StringBuffer(strlen);\n\t\tfor (int i = 0; (i + 1) < strlen; i = i + 2)\n\t\t{\n\t\t\tsb.append(str.charAt(i + 1));\n\t\t\tsb.append(str.charAt(i));\n\t\t}\n\t\treturn new String(sb);\n\t}", "public static void swap(int arr[], int position1, int position2) {\n int holder = arr[position1];\n arr[position1] = arr[position2];\n arr[position2] = holder;\n }", "public final void mSWAP() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.SWAP;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:753:6: ( 'swap' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:753:8: 'swap'\n\t\t\t{\n\t\t\t\tthis.match(\"swap\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}" ]
[ "0.7163624", "0.6835755", "0.67672586", "0.66961837", "0.6684187", "0.6571973", "0.6557422", "0.64925706", "0.64594793", "0.6427038", "0.6415703", "0.63428974", "0.63085276", "0.62647057", "0.6260898", "0.6228472", "0.61677116", "0.6126753", "0.61168754", "0.6082599", "0.6076859", "0.6034098", "0.6016664", "0.59276", "0.591196", "0.58971554", "0.5859517", "0.58386177", "0.58007836", "0.5708419", "0.5692588", "0.56805706", "0.5667267", "0.56473076", "0.56042105", "0.55830854", "0.5548862", "0.5520685", "0.55111146", "0.55087614", "0.55039996", "0.5497804", "0.5496447", "0.5493031", "0.5487534", "0.5478226", "0.5478226", "0.5472178", "0.5438069", "0.5429112", "0.54284066", "0.54283345", "0.5427324", "0.5418763", "0.5414767", "0.54051846", "0.54048556", "0.54027975", "0.5359591", "0.5358651", "0.5343132", "0.53307885", "0.5330303", "0.53287834", "0.53230345", "0.53216505", "0.53117853", "0.5307646", "0.5307216", "0.52771467", "0.52740973", "0.52722543", "0.5261509", "0.5251639", "0.5245977", "0.52417356", "0.52246696", "0.521876", "0.5177259", "0.5175361", "0.516346", "0.5137955", "0.5136665", "0.51298213", "0.5128553", "0.51222026", "0.5107865", "0.51076376", "0.51073605", "0.5105392", "0.5105241", "0.50997114", "0.5098466", "0.50887877", "0.50849515", "0.5074908", "0.5073054", "0.50636476", "0.5054915", "0.505427" ]
0.6671544
5
This method computes permutation of given string by Recursive approach and store it in list & return the list
public static List<String> getPermutationByRecursion(String str, List<String>stringByRecursion, int l, int r) { if(l == r) { stringByRecursion.add(str); } else{ for(int i = l; i <= r ; i++){ str = swap(str, l, i); getPermutationByRecursion(str, stringByRecursion, l+1, r); str = swap(str, l, i); } } return stringByRecursion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<String> getPerms(String s){\n\t\tArrayList<String> permutations = new ArrayList<String>();\n\t\t\n\t\tif(s==null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(s.length()==0){\n\t\t\tpermutations.add(\"\");\n\t\t\treturn permutations;\n\t\t}\n\t\t\n\t\t//firstly, choose the first char\n\t\tchar first = s.charAt(0);\n\t\t\n\t\t//store the remainder\n\t\tString remainder = s.substring(1);\n\t\t\n\t\t\n\t\t//using recursion\n\t\tArrayList<String> words = getPerms(remainder);\n\t\t\n\t\t//adding the first char to the result of the getPerms(remainder)\n\t\tfor(String word:words){\n\t\t\tfor(int i=0;i<=word.length();i++){\n\t\t\t\tpermutations.add(insertCharAt(word,first,i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn permutations;\n\t}", "public static List<String> getPermutationByIteration(String str, String permutString, List<String> stringByIteration) {\n \t\n \t // If string is empty\n if (str.length() == 0) {\n \n stringByIteration.add(permutString);\n }\n \n for (int i = 0; i < str.length(); i++) {\n \n char ch = str.charAt(i);\n \n //Rest of the string after excluding the ith character\n String restOfString = str.substring(0, i) + str.substring(i + 1);\n \t\n getPermutationByIteration(restOfString, permutString + ch, stringByIteration);\n \n }\n \n \treturn stringByIteration;\n }", "public List<String> permutationFinder(String str){\n\t\tList<String> perm = new ArrayList<String>();\n\n\t\tif(str == null) {\n\t\t\treturn null;\n\t\t}else if(str.length() ==0) {\n\t\t\tperm.add(\"\");\n\t\t\treturn perm;\n\t\t\t\n\t\t}\n\t\t\n\t\tchar initial = str.charAt(0);\n\t\tSystem.out.println(\"initial : \" + initial);\n\t\tString rem = str.substring(1);\n\t\tSystem.out.println(\"rem : \" + rem);\n List<String> words = permutationFinder(rem);\n\t\tSystem.out.println(\"words : \"+ words);\n\t\t\n\t\tfor(String strNew : words) {\n\t\t\tSystem.out.println(\"strNew \" +strNew );\n\t\t\tSystem.out.println(\"words : \"+ words);\n\t\t\tfor(int i=0 ; i <= strNew.length(); i++) {\n\t\t\t\tSystem.out.println(\"i: \" + i);\n\t\t\t\tperm.add(charInsert(strNew , initial , i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn perm;\n\t}", "public static ArrayList<String> permutations(String s) {\r\n ArrayList<String> list = new ArrayList<>();\r\n permutations(\"\", s, list);\r\n return list;\r\n }", "public static void permutationRecursion(String str, String ans) {\n\t\tif (str.length() == 0) {\r\n\t\t\tSystem.out.print(ans + \" \");\r\n\t\t\tlistPermutationRecursion.add(ans);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\r\n\t\t\t// ith character of str\r\n\t\t\tchar ch = str.charAt(i);\r\n\r\n\t\t\t// Rest of the string after excluding\r\n\t\t\t// the ith character\r\n\t\t\tString temp = str.substring(0, i) + str.substring(i + 1);\r\n\r\n\t\t\t// Recurvise call\r\n\t\t\tpermutationRecursion(temp, ans + ch);\r\n\t\t}\r\n\r\n\t}", "public static void checkPermutation(String str) {\n \t\n \tint length = str.length();\n\t\t\n \t//list to store permutations\n \tList<String> stringByRecursive = new ArrayList<>();\n\t\tList<String> stringByIteration = new ArrayList<>();\n\t\t\n\t\t\n\t\tList<String> listOfPermutByRecursive = getPermutationByRecursion(str, stringByRecursive, 0, length-1);\n\t\tList<String> listOfPermutByIterate = getPermutationByIteration(str, \"\", stringByIteration);\n\t\t\n\t\t//sorting the permutation list\n\t\tCollections.sort(listOfPermutByRecursive);\n\t\tCollections.sort(listOfPermutByIterate);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Recursion Approch \\n\");\n\t\tSystem.out.println(listOfPermutByRecursive);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Iterative Approch \\n\");\n\t\tSystem.out.println(listOfPermutByIterate);\n\t\t\n\t\t//checking both list are same / not\n\t\tif(listOfPermutByIterate.equals(listOfPermutByRecursive)) {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Same\");\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Not Same\");\n\t\t}\n }", "public static void permutations(String input){\n\t\tpermutations(\"\", input);\n\t}", "public static void permutation(String str) { \n permutation(\"\", str); \n}", "public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();\n result = permutations(input);\n System.out.println(Arrays.asList(result)); \n }", "private void permutation(String prefix, String str) {\n \r\n int n = str.length();\r\n if (n == 0)\r\n {\r\n \r\n ls.add(prefix);\r\n System.out.print(prefix+\",\");\r\n if(ls.isEmpty()==true)\r\n {\r\n ls.remove(ls.indexOf(n)); \r\n }\r\n \r\n al.add(ls);\r\n calc(al);\r\n \r\n }\r\n\r\n else {\r\n \r\n //System.out.print(ls);\r\n \r\n for (int i = 0; i < n; i++)\r\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));\r\n \r\n \r\n }\r\n \r\n \r\n \r\n}", "@SuppressWarnings(\"unchecked\")\t\t\t\t\t\t\t//used because of line 17, there is no way to remove warnings, they have to be suppressed\n public String[] permutations(ArrayList<ArrayList<Character> > mat){\n\n if(mat.size()==1){\t\t\t//since the function is recursive, a base case for the first line has been made. \n String[] s = new String[mat.get(0).size()];\n int i = 0;\n for(Object obj:mat.get(0)) {\n if (i < s.length) {\n s[i++] = obj.toString();\n }\n }\n return s;\t\t//returns the characters of the first line of the input as an array of String\n }\n ArrayList<Character>[] arr = new ArrayList[mat.size()]; //this has been created to provide ease of accessibility which is a bit difficult with an ArrayList of an ArrayList\n int k = 0;\n for(ArrayList a:mat){\n if(k<mat.size()){\n arr[k] = a;\n }\n k++;\n }\n int product = 1;\n for(ArrayList a: mat){\n product*= a.size(); \t// product calculates the size of the String to be generated for the given input\n }\n int i = 0;\n String[] ret = new String[product];\n ArrayList<ArrayList<Character> > ret_arr_list = new ArrayList<>();\n for(int exception_index = 0;exception_index<arr.length-1;++exception_index){\n ret_arr_list.add(arr[exception_index]); //ret_arr_list is an ArrayList of an ArrayList except the last row of the original input\n }\n String[] s = permutations(ret_arr_list); //gets the string as mentioned at the very beginning of the function\n int ret_index = 0;\n for(int i_index = 0;i_index < s.length;++i_index){\n for(int j_index = 0;j_index<mat.get(mat.size()-1).size();++j_index){\n ret[ret_index++] = s[i_index] + arr[mat.size()-1].get(j_index).toString(); //appends every character of the last line to \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //every String element calculated in String[] s\n }\n }\n return ret;\n }", "public static void permutationIterative(String str) {\n\t\tchar[] chars = str.toCharArray();\r\n\r\n\t\t// Weight index control array\r\n\t\tint[] p = new int[str.length()];\r\n\r\n\t\t// i, j represents upper and lower bound index resp. for swapping\r\n\t\tint i = 1, j = 0;\r\n\r\n\t\t// Print given string, as only its permutations will be printed later\r\n\t\tSystem.out.print(str);\r\n\t\tlistPermutationIterative.add(str);\r\n\t\twhile (i < str.length()) {\r\n\t\t\tif (p[i] < i) {\r\n\t\t\t\t// if i is odd then j = p[i], otherwise j = 0\r\n\t\t\t\tj = (i % 2) * p[i];\r\n\r\n\t\t\t\t// swap(a[j], a[i])\r\n\t\t\t\tswap(chars, i, j);\r\n\r\n\t\t\t\t// Print current permutation\r\n\t\t\t\tSystem.out.print(\" \" + String.valueOf(chars));\r\n\t\t\t\tlistPermutationIterative.add(String.valueOf(chars));\r\n\t\t\t\tp[i]++; // increase index \"weight\" for i by one\r\n\t\t\t\ti = 1; // reset index i to 1\r\n\t\t\t}\r\n\t\t\t// otherwise p[i] == i\r\n\t\t\telse {\r\n\t\t\t\t// reset p[i] to zero\r\n\t\t\t\tp[i] = 0;\r\n\r\n\t\t\t\t// set new index value for i (increase by one)\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void permutationsWithoutDups(String str) {\n ArrayList<String> perm = new ArrayList<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n ArrayList<String> output = new ArrayList<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }", "public static HashSet<String> getAllPermutations(String str) {\n\t\tHashSet<String> permutations = new HashSet<String>();\r\n\r\n\t\tif (str == null || str.length() == 0) {\r\n\t\t\tpermutations.add(\"\");\r\n\t\t\treturn permutations;\r\n\t\t}\r\n\r\n\t\tchar first = str.charAt(0);\r\n\t\tString remainingString = str.substring(1);\r\n\t\tHashSet<String> words = getAllPermutations(remainingString);\r\n\t\tfor (String word : words) {\r\n\t\t\tfor (int i = 0; i <= word.length(); i++) {\r\n\t\t\t\tString prefix = word.substring(0, i);\r\n\t\t\t\tString suffix = word.substring(i);\r\n\t\t\t\tpermutations.add(prefix + first + suffix);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn permutations;\r\n\t}", "public List<String> permutations(String set) {\n List<String> result = new ArrayList<>();\n if (set == null) {\n return result;\n }\n char[] array = set.toCharArray();\n DFS(array, 0, result);\n return result;\n }", "public static String pPermutation(String input) {\n\n assert input.length() == 32;\n\n StringBuilder result = new StringBuilder();\n\n for (int[] ints : PPermutation) {\n for (int anInt : ints) {\n result.append(input.charAt(anInt - 1));\n }\n }\n\n return result.toString();\n }", "public static void permutationsWithDups(String str) {\n HashSet<String> perm = new HashSet<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n HashSet<String> output = new HashSet<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }", "@Test\n\tpublic void testPermutation() {permutation(\"abcd\");\n\t\t//0 1 0 0 9\n\t//\tpermute(\"aaab\");\n\t\t//\n\t\tpermutation(\"aaabc\");\n\t\tpermuteWithDups(\"aaabc\");\n\t}", "public void permutationOfString(String s, int start, int end){\n if(start == end && !hs.contains(s)){\n hs.add(s);\n System.out.println(s);\n return;\n }\n\n for(int i=start;i<=end;i++){\n s=swap(s,i,start);\n permutationOfString(s,start+1, end);\n s=swap(s,i,start);\n }\n\n }", "@Test\r\n public void PermutationTest() {\r\n System.out.println(\"permutation\");\r\n String prefix = \"\";\r\n String in = \"123\";\r\n Input input = new Input(in);\r\n List<String> expResult = Arrays.asList(\"123\",\"132\",\"213\",\"231\",\"312\",\"321\");\r\n List<String> result = instance.permutation(prefix, input);\r\n instance.sort(result);\r\n assertEquals(expResult, result);\r\n }", "static int printPermutn(String str, String ans)\n {\n\n // If string is empty\n if (str.length() == 0) {\n if (ans.contains(\"123\") || ans.contains(\"321\") || ans.contains(\"234\") || ans.contains(\"345\") || ans.contains(\"456\") || ans.contains(\"654\") || ans.contains(\"543\") || ans.contains(\"432\") || ans.contains(\"321\")) {\n return 0;\n }\n System.out.println(ans);\n return 1;\n }\n int res = 0;\n for (int i = 0; i < str.length(); i++) {\n\n // ith character of str\n char ch = str.charAt(i);\n\n // Rest of the string after excluding\n // the ith character\n String ros = str.substring(0, i) +\n str.substring(i + 1);\n // Recurvise call\n res += printPermutn(ros, ans + ch);\n }\n return res;\n }", "private static void permutation(String prefix, String str) {\n int n = str.length();\n if (n == 0) System.out.println(prefix);\n else {\n for (int i = 0; i < n; i++){\n \t System.out.println(\"prefix+str.char at i \" +prefix + str.charAt(i)+\" substring1 \"+str.substring(0, i)+\" substring2 \"+str.substring(i+1, n));\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));}\n }\n}", "public void permutation2(String s){\r\n\t\tHashMap<Character,Integer> m = new HashMap<Character, Integer>();\r\n\t\tfor(int i=0;i<s.length();i++){\r\n\t\t\tif(m.containsKey(s.charAt(i))){\r\n\t\t\t\tint val = m.get(s.charAt(i));\r\n\t\t\t\tm.put(s.charAt(i), ++val);\r\n\t\t\t}else{\r\n\t\t\t\tm.put(s.charAt(i), 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint [] count = new int[m.size()];\r\n\t\tchar [] str = new char[m.size()];\r\n\t\tint index = 0;\r\n\t\tfor(Map.Entry<Character, Integer> entry: m.entrySet()){\r\n\t\t\tcount[index] = entry.getValue();\r\n\t\t\tstr[index] = entry.getKey();\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\tpermUtil(str,count,0,new char[s.length()]);\r\n\t}", "public List<String> letterCasePermutation(String S) {\n if (S.length() <= 0) {\n List<String> ret = new ArrayList<>();\n ret.add(\"\");\n return ret;\n }\n\n if (S.length() == 1) {\n List<String> ret = new ArrayList<>();\n char c = S.charAt(0);\n ret.add(S);\n if (Character.isLetter(c)) {\n if (Character.isLowerCase(c)) {\n ret.add(String.valueOf(Character.toUpperCase(c)));\n } else {\n ret.add(String.valueOf(Character.toLowerCase(c)));\n }\n }\n\n return ret;\n }\n\n List<String> ret = letterCasePermutation(S.substring(1));\n\n char c = S.charAt(0);\n if (Character.isLetter(c)) {\n List<String> ret2 = new LinkedList<>(ret);\n appendToFront(Character.toLowerCase(c), ret);\n appendToFront(Character.toUpperCase(c), ret2);\n ret.addAll(ret2);\n } else {\n appendToFront(c, ret);\n }\n\n return ret;\n }", "private static void permutation(String perm, String word) {\r\n\t\tif (word.isEmpty()) {\r\n\t\t\tSystem.err.println(perm + word);\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tpermutation(perm + word.charAt(i), word.substring(0, i) + word.substring(i + 1, word.length()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static ArrayList<ArrayList<String>> permuteInterative(char[] chars) {\n ArrayList<ArrayList<String>> resultBySize = new ArrayList<>();\n\n // starts out empty\n ArrayList<StringBuilder> results = new ArrayList<>();\n results.add(new StringBuilder());\n\n for (int i = 0; i< chars.length; i++) {\n ArrayList<StringBuilder> current = new ArrayList<>();\n for (StringBuilder s : results) {\n for (int j = 0; j < s.length() + 1; j++) {\n s.insert(j, chars[i]);\n StringBuilder temp = new StringBuilder(s);\n current.add(temp);\n s.deleteCharAt(j);\n }\n }\n results = new ArrayList<>(current);\n //snap shot of that size\n ArrayList<String> strings = new ArrayList<>();\n for (StringBuilder s: current) {\n strings.add(s.toString());\n }\n resultBySize.add(strings);\n }\n System.out.println(resultBySize);\n return resultBySize;\n }", "public static void main(String[] args) {\n /*camelCase(\"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\");*/\n\n String str = \"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\";\n convertToCamelCase(str,str.toCharArray());\n\n String value = \"BillIs,\\n\" +\n \"InMyOpinion,\\n\" +\n \"AnEasierNameToSpellThanWilliam.\\n\" +\n \"BillIsShorter,\\n\" +\n \"AndBillIsFirstAlphabetically.\";\n\n //reverseCamelCase(value,value.toCharArray());\n\n /* Set<Integer> set = new LinkedHashSet<Integer>(\n Arrays.asList(1,2,3,4,5,6));\n\n ArrayList<List<List<Integer>>> results =\n new ArrayList<List<List<Integer>>>();\n compute(set, new ArrayList<List<Integer>>(), results);\n for (List<List<Integer>> result : results)\n {\n System.out.println(result);\n }*/\n\n /*reverseCamelCase(\"BillIsOk\\n\" +\n \"ThisIsGood.\");*/\n\n //System.out.println(\"abc \\r\\n test\");\n\n //permutation(\"abc\");\n\n /*String[] database = {\"a\",\"b\",\"c\"};\n for(int i=1; i<=database.length; i++){\n String[] result = getAllLists(database, i);\n for(int j=0; j<result.length; j++){\n System.out.println(result[j]);\n }\n }*/\n\n /*char[] database = {'a', 'b', 'c'};\n char[] buff = new char[database.length];\n int k = database.length;\n for(int i=1;i<=k;i++) {\n permGen(database,0,i,buff);\n }*/\n\n\n\n }", "public static void printPermutaions(String word) {\n TreeMap<Character, Integer> map = new TreeMap<>();\n for (int i = 0; i < word.length(); i++) {\n if (map.get(word.charAt(i)) != null) {\n map.put(word.charAt(i), map.get(word.charAt(i)) + 1);\n } else {\n map.put(word.charAt(i), 1);\n }\n }\n\n int[] count = new int[map.size()];\n char[] chars = new char[map.size()];\n\n int index = 0;\n for (Map.Entry entry : map.entrySet()) {\n chars[index] = (char) entry.getKey();\n count[index] = (int) entry.getValue();\n index++;\n }\n\n char[] result = new char[word.length()];\n ArrayList<String> resultList = new ArrayList<String>();\n permuteUtil(chars, count, result, resultList, 0);\n for (String perm : resultList) {\n System.out.print(perm+\" \");\n }\n }", "public String getPermutation(int n, int k) {\n\n StringBuilder str = new StringBuilder();\n for (int i = 1; i <= n; i++) {\n str.append(i);\n }\n permute(k, str.toString().toCharArray(), 0);\n return result;\n }", "public static String nextPermutation(String str) throws InvalidNextPermutationException{\n char[] charArray = str.toCharArray();\n int i = charArray.length - 1;\n\n while(i>0 && charArray[i-1]>=charArray[i]){\n \ti--;\n }\n if(i<=0){\n \tthrow new InvalidNextPermutationException();\n }\n\n int j = charArray.length - 1;\n\n while(charArray[j]<=charArray[i-1]){\n \tj--;\n }\n\n swap(charArray,i-1,j);\n\n j = charArray.length - 1;\n\n while(i<j){\n \tswap(charArray,i,j);\n \ti++;\n \tj--;\n }\n\n return new String(charArray);\n }", "static void permute(String fix, String p)\n\t\t{\n\t\t \n\t\t if(p.length()==1)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n\t\t }\n\t\t //if length is 2, print same and also reverse.\n\t\t if(p.length() == 2)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n String sn = p.charAt(1) + \"\" + p.charAt(0);\n System.out.print(fix + sn + \" \");\n\t\t }\n\t\t if(p.length()>2)\n\t\t {\n\t\t for(int i=0;i<p.length();i++)\n\t\t {\n\t\t //ith as fix character.\n\t\t String f = fix + p.charAt(i);\n\t\t //including charcater before the fixed one and also all the chars after the fixed one.\n\t\t String remain = p.substring(0,i) + p.substring(i+1,p.length());\n\t\t permute(f,remain);\n\t\t }\n\t\t \n\t\t }\n\t\t \n\t\t}", "public void permute( ){\n\t\tif( out.length() == in.length() ){\n\t\t\tSystem.out.println( out );\n\t\t\treturn;\n\t\t}\n\t\t//for each character in the input\n\t\tfor( int i = 0; i < in.length(); ++i ){\n\t\t\t//if already marked then skip\n\t\t\tif( used[i] ) \n\t\t\t\tcontinue;\n\t\t\t//otherwise put the character in current position of permuted string\n\t\t\tout.append( in.charAt(i) );\n\t\t\t//mark the position as visited\n\t\t\tused[i] = true;\n\t\t\t//permute remaining characters\n\t\t\tpermute();\n\t\t\t//unmark the position\n\t\t\tused[i] = false;\n\t\t\t//clear the permuted string to start over again\n\t\t\tout.setLength( out.length() - 1 );\n\t\t}\n\t}", "public ArrayList<String> FindAllCombinationWord(String str) {\r\n\r\n ArrayList<String> wordList = new ArrayList<String>();\r\n\r\n int n = str.length();\r\n ArrayList<String> combinationWord = permute(str, 0, n - 1);\r\n\r\n for (String item : combinationWord) {\r\n int j = 0;\r\n for (int i = n; i >= 2; i--) {\r\n String finalString = item.substring(j);\r\n\r\n if (!wordList.contains(finalString)) {\r\n wordList.add(finalString);\r\n }\r\n j++;\r\n }\r\n }\r\n return wordList;\r\n }", "public void getPermutation(boolean[] used, StringBuilder sb) {\n if(sb.length() == list.size()) {\n if(middle == null) res.add(sb.toString() + sb.reverse().toString());\n else res.add(sb.toString() + middle + sb.reverse().toString());\n sb.reverse(); // need to restore the original stringbuilder\n return;\n }\n \n for(int i = 0; i < list.size(); i++) {\n // avoid duplicated !!! very important\n // when a number has the same value with its previous, we can use this number only if his previous is used\n // because if we choose the second one first, and then to the next recursion, the first one is added,\n // duplicate occurs\n if((i > 0 && list.get(i) == list.get(i - 1) && !used[i - 1]) || used[i]) continue;\n \n used[i] = true;\n sb.append(list.get(i));\n \n getPermutation(used, sb);\n \n // backtracking\n used[i] = false;\n sb.deleteCharAt(sb.length() - 1);\n }\n }", "public static void main(String[] args) {\n\t\tString s = \"123321\";\n\t\tString t = \"123231\";\n\t\t\n\t\tSystem.out.println(permutation(s, t));\n\t}", "private static List<List<Integer>> getPermutation(List<Integer> array){\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n getPermutation(array,new ArrayList<>(),result);\n return result;\n }", "public List<String> letterCasePermutation(String S) {\n List<String> ans = new ArrayList<>();\n backtrack(ans, 0, S.toCharArray());\n return ans;\n }", "public static void main(String[]args) {\n\t PermuteString prm=new PermuteString();\n\t System.out.println(\"enter the string for permutation\");\n\t String s1=Utility.getString();\n\t \n\t int len=s1.length();\n\t //initialize the stating index\n\t int start=0;\n\t //calling function to print permutation\n\t prm.getPermutation(s1,start, len);\n\t \n\t \n }", "public List<String> generatePalindromes(String s) {\n int[] letters = new int[256];\n int oddCount = 0;\n for(char c: s.toCharArray()) oddCount += ++letters[c] % 2 != 0 ? 1 : -1;\n if(oddCount > 1) return res;\n \n // put half of letters into arraylist\n for(int i = 0; i < letters.length; i++) {\n Character curr = (char)i;\n if(letters[i] % 2 == 1) middle = curr;\n for(int j = 0; j < letters[i] / 2; j++) list.add(curr);\n }\n\n // get the permutation\n getPermutation(new boolean[list.size()], new StringBuilder());\n return res;\n }", "public static List<String> generatePermutations(int gridSize) {\n if (gridSize < GRID_SIZE_MIN || gridSize > GRID_SIZE_MAX) {\n throw new IllegalArgumentException(\"Digits out of bounds.\");\n }\n List<String> result = new ArrayList<String>();\n int start = startInt(gridSize);\n int end = endInt(gridSize);\n LOG.log(Level.INFO,\"start={0}, end={1}\", new Object[]{start, end});\n for (int i = start; i <= end; i++) {\n String textValue = String.valueOf(i);\n if (keep(textValue)) {\n result.add(textValue);\n }\n }\n return result;\n }", "public static void main(String[] args) {\n\n Permutation pr = new Permutation();\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please, enter a String to check permutation: \");\n String inputStr = sc.nextLine();\n\n pr.permutation(inputStr, 0, inputStr.length() - 1);\n\n }", "public String getPermutation(int n, int k) {\n if(n<1)\n return null;\n List<Long> list=new LinkedList<Long>();\n for(long i=1;i<=n;i++){\n list.add(i);\n }\n long kk=k-1;\n StringBuilder res=new StringBuilder();\n long total=1;\n for(long i=2;i<n;i++){\n total*=i;\n }\n for(long i=n-1;i>=0;i--){\n res.append(list.remove((int)(kk/total)));\n kk=kk%total;\n if(i>0)\n total=total/i;\n }\n return res.toString();\n }", "public static void permuteString(String prefix, String remaining) {\n // System.out.println(prefix + \"-->\" + remaining);\n int n = remaining.length();\n if (n == 0) {\n System.out.println(prefix);\n return;\n }\n for (int i = 0; i < n; i++) {\n permuteString(prefix + remaining.charAt(i),\n remaining.substring(0, i) + remaining.substring(i + 1));\n }\n }", "private static String getPermutation(long k, int strlen, Map<Character, CharCount> map, List<Character> chars) {\n if (map.isEmpty()) {\n return \"\";\n }\n long n = getExpectedSize(strlen, map);\n \n if (k > n) return \"\"; // invalid. Should never reach here.\n long f = 0;\n \n \n for (int i = 0; i < chars.size(); i++) {\n Character curChar = chars.get(i);\n CharCount charCount = map.get(curChar);\n charCount.decrementCount();\n strlen--;\n if (charCount.count == 0) {\n map.remove(curChar);\n chars.remove(i);\n }\n \n long temp = getExpectedSize(strlen, map);\n f += temp;\n if(f <= k){\n charCount.incrementCount();\n strlen++;\n if (charCount.count == 1) {\n map.put(curChar, charCount);\n chars.add(i, curChar);\n }\n continue;\n }\n else{\n f = f - temp;\n return curChar + getPermutation(k - f, strlen, map, chars);\n }\n }\n \n //SHould not reach here unless k is too large\n return \"\";\n }", "public String getPermutation1(int n, int k) {\n\t\t ArrayList<String> rs = new ArrayList<String>();\n\t\t char[] data = new char[n];\n\t\t for (int i = 0; i < n ; ++i)\n\t\t\t data[i] = String.valueOf(i + 1).charAt(0);\n\t\t permutate(data, 0, rs);\n\t\t return rs.get(k); \n\t }", "private List<List<Item>> generatePermutations(final ItemSet itemSet) {\n\t\tList<List<Item>> result = new ArrayList<List<Item>>();\n\n\t\t// If the item set is zero, return an empty list\n\t\tif (itemSet.size() == 0) {\n\t\t\tresult.add(new ArrayList<Item>());\n\t\t\treturn result;\n\t\t}\n\n\t\t// Get and Remove the first item from the set\n\t\tItem firstElement = itemSet.first();\n\t\titemSet.remove(firstElement);\n\n\t\t// Generate the permutations of the smaller item set\n\t\tList<List<Item>> permutations = generatePermutations(itemSet);\n\n\t\t// For each permutation...\n\t\tfor (List<Item> permutation : permutations) {\n\t\t\t// Add the first element to the i-th position\n\t\t\tfor (int index = 0; index <= permutation.size(); index++) {\n\t\t\t\tList<Item> temp = new ArrayList<Item>(permutation);\n\t\t\t\ttemp.add(index, firstElement);\n\t\t\t\tresult.add(new ArrayList<Item>(temp));\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static void isPermutation(String s1, String s2){\r\n\t\t\t\r\n\t\t\t// Can also do by sorting both string and comparing each character by character\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\tArrayList hm = new ArrayList();\r\n\t\t\t\r\n\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n\t\t\t\t\r\n\t\t\t\t\thm.add(s1.charAt(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n\t\t\t\tif(hm.contains(s2.charAt(i))){\r\n\t\t\t\t\thm.remove((Character)s2.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Not A permutation\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tHashMap hm = new HashMap();\r\n//\t\t\t\r\n//\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s1.charAt(i))){\r\n//\t\t\t\t\thm.put(s1.charAt(i),hm.get(s1.charAt(i) + 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\thm.put(s1.charAt(i), 1);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s2.charAt(i))){\r\n//\t\t\t\t\thm.put(s2.charAt(i),hm.get(s2.charAt(i) - 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\tflag = false;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\tif (hm.size()==0)\r\n\t\t\t\tSystem.out.println(\"Permutations\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Not Permutations\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Checking by creating ascii character array\r\n\t\t\tif (s1.length() != s2.length()) {\r\n\t\t\t\tSystem.out.println(\"Second Solution Not Permutation\");\r\n\t\t\t\t}\r\n\t\t\t\tint[] letters = new int[256]; // Assumption\r\n\t\t\t\t\tchar[] s_array = s1.toCharArray();\r\n\t\t\t\tfor (char c : s_array) { // count number of each char in s.\r\n\t\t\t\t letters[c]++;\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t for (int i = 0; i < s2.length(); i++) {\r\n\t\t\t\t int c = (int) s2.charAt(i);\r\n\t\t\t\t if (--letters[c] < 0) {\r\n\t\t\t\t System.out.println(\" Second Solution Not Permutation\");\r\n\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\r\n\t\t}", "public List<String> letterCasePermutation(String S) {\n List<String> ans = new ArrayList<>();\n backtracking(ans,S,\"\",0);\n return ans;\n }", "static List<Permutation> genPermutations(int n) {\n List<Permutation> result = IntStream.rangeClosed(0, n - 2)\n .parallel()\n .mapToObj(fixed -> {\n List<Permutation> ls = new ArrayList<>();\n\n // Recall our logic about permutation configurations:\n //\n // N = fixed + l_1 + l_2 + ... + l_k\n //\n // Since we know the `fixed`, we need to generate the list\n // of l_i, we just need to generate all the list of numbers\n // that sum to N-fixed.\n List<int[]> cyclesList = numbersSumToN(n - fixed);\n\n for (int[] cycles : cyclesList) {\n Permutation p = makePermutation(n, fixed, cycles);\n ls.add(p);\n }\n return ls;\n })\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n\n // Our result would be incomplete without the identity permutation.\n result.add(new Permutation(n, new int[0], ONE));\n return result;\n }", "public static void main(String[] args) {\n\t\tresult = permutation(\"doggie\",\"god\");\r\n\t\tSystem.out.println(result);\r\n\t}", "public static void permute(String str, String prevLetter) {\n if (str.length() < 2) {\n if (prevLetter != null) {\n System.out.println(prevLetter + str);\n }\n } else {\n // Loop through each letter, and permute the string for the case where each letter is first\n for (int i = 0; i < str.length(); i ++) {\n\n String firstLetter = str.substring(i,i+1);\n\n String remainingLetters = str.substring(0,i) + str.substring(i+1);\n\n if (prevLetter != null) {\n permute(remainingLetters, prevLetter + firstLetter);\n } else {\n permute(remainingLetters, firstLetter);\n }\n\n }\n }\n }", "public static <T> List<T[]> permutation(T[] arr) {\n T[] array = arr.clone();\n List<T[]> result = new LinkedList<>();\n backtracking(array, 0, result);\n return result;\n }", "static ArrayList<String> powerSet(String s)\n {\n // add your code here\n ArrayList<String> arr = new ArrayList<String>();\n String op = \"\";\n solve(s,op,arr);\n Collections.sort(arr);\n return arr;\n \n }", "public static <T> List<List<T>> permutations(List<T> l) {\n List<List<T>> recursionBase = new ArrayList<List<T>>();\n if (l.isEmpty()) {\n recursionBase.add(new ArrayList<T>(Collections.emptyList()));\n return recursionBase;\n } else {\n T head = l.get(0);\n List<List<T>> recursionStep = permutations(l.subList(1, l.size()));\n List<List<T>> permutation = new ArrayList<List<T>>(recursionStep.size() + 1);\n for (List<T> eachL : recursionStep) {\n for (int i = 0; i <= eachL.size(); i++) {\n List<T> copyOfList = new ArrayList<T>(eachL);\n copyOfList.add(i, head);\n permutation.add(copyOfList);\n }\n }\n return Collections.unmodifiableList(new ArrayList<>(permutation));\n }\n }", "private void helper(String s, int index, List<String> path){\n //base condition to stop recursion\n //when there is no substring to process, add the path to output\n if(index == s.length()){\n output.add(new ArrayList<String>(path));\n return;\n }\n \n //logic\n for(int i=index+1; i <= s.length(); i++){\n /* Generate all possible substrings that start from the current index\n * For each substring, check if it is a palindrome. \n * For each palindromic substring, call the helper function recursively to generate substrings for rest of the string\n */\n String substr = s.substring(index, i);\n if(isPalindrome(substr)){\n path.add(substr);\n helper(s, i, path);\n path.remove(path.size()-1);\n }\n }\n }", "private ArrayList<int[]> buildPermutations(int n) {\n mPermutations = new ArrayList();\n mPermuteArray = new int[n];\n for (int i = 0; i < n; i++)\n mPermuteArray[i] = i;\n generate(n);\n return mPermutations;\n }", "private void permutation(int[] ans, int l, int r) {\n if (l == r)\n perm.add(ans.clone());\n else {\n for (int i = l; i <= r; i++) {\n ans = swap(ans, l, i);\n permutation(ans, l + 1, r);\n ans = swap(ans, l, i);\n }\n }\n }", "public void permute(){\n if (pos == last) a.add(in);\n else {\n for (int ii = pos; ii <= last; ii++) {\n in = swap(in, pos, ii);\n pos += 1;\n permute();\n pos -= 1;\n in = swap(in, pos, ii);\n if (a.contains(in)) continue;\n else a.add(in);\n }\n }\n }", "public static void main(String[] args)\n {\n int[] arr = new int[]{1,2,3};\n List<List<Integer>> result = new ArrayList<>();\n Permutation permutation = new Permutation();\n permutation.permuteInteger(arr,result, 0, arr.length);\n\n System.out.println(result);\n }", "static void subsequence(String str)\n {\n // iterate over the entire string\n for (int i = 0; i < str.length(); i++) {\n \n // iterate from the end of the string\n // to generate substrings\n for (int j = str.length(); j > i; j--) {\n String sub_str = str.substring(i, j);\n \n if (!st.contains(sub_str))\n st.add(sub_str);\n \n // drop kth character in the substring\n // and if its not in the set then recur\n for (int k = 0; k < sub_str.length(); k++) {\n StringBuffer sb = new StringBuffer(sub_str);\n \n // drop character from the string\n sb.deleteCharAt(k);\n if (!st.contains(sb)) {\n \tsubsequence(sb.toString());\n }\n }\n }\n }\n }", "public static int[] finalPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tpermutedText[i*8 + 0] = inputText[39 - i];\n\t\t\tpermutedText[i*8 + 1] = inputText[ 7 - i];\n\t\t\tpermutedText[i*8 + 2] = inputText[47 - i];\n\t\t\tpermutedText[i*8 + 3] = inputText[15 - i];\n\t\t\tpermutedText[i*8 + 4] = inputText[55 - i];\n\t\t\tpermutedText[i*8 + 5] = inputText[23 - i];\n\t\t\tpermutedText[i*8 + 6] = inputText[63 - i];\n\t\t\tpermutedText[i*8 + 7] = inputText[31 - i];\n\t\t}\n\t\treturn permutedText;\n\t}", "public static List allPerm(Object input[]) {\r\n List<Object[]> retVal = new ArrayList(Math.factorial(input.length));\r\n allPerm(0, input, retVal);\r\n return retVal;\r\n }", "public static void findPermutations(int position, int[] arr) {\n int[] array = Arrays.copyOf(arr, arr.length);\n if (position == array.length - 1) {\n permutations.add(array);\n }\n\n for (int i = position; i < array.length; i++) {\n int temp = array[position];\n array[position] = array[i];\n array[i] = temp;\n\n findPermutations(position + 1, array);\n\n array[i] = array[position];\n array[position] = temp;\n }\n }", "public ArrayList<Integer> getNext() {\n\t\t\n\t\t// run thru our list of permutations\n\t\tdo {\n\t\t\treturnIndex++;\n\t\t\tif (returnIndex == permutations.size()) {\n\t\t\t\t// we reached end of current permutations-list,\n\t\t\t\t// so we have to expand our termIndices-list,\n\t\t\t\t// re-generate our permutations-list and\n\t\t\t\t// reset out returnIndex\n\t\t\t\ttermIndices.add(termIndices.size());\n\t\t\t\tpermute(\"\");\n\t\t\t\treturnIndex = 0;\n\t\t\t}\n\t\t} while (permHistory.contains(permutations.get(returnIndex)));\n\t\t\n\t\tpermHistory.add(permutations.get(returnIndex));\n\t\t\n\t\treturn permutations.get(returnIndex);\n\t}", "private static void findPermutations(int index, List<Integer> nums) {\n\n }", "public static void displayPermutation(String s1, String s2) {\n if (s1.length() == 0) {\n System.out.println(s2 + \" \");\n }\n\n for (int i = 0; i < s1.length(); i++) {\n\n // current character at index (i) of s1\n char ch = s1.charAt(i);\n\n // Rest of the string after excluding the character at current index\n String ros = s1.substring(0, i) + s1.substring(i + 1);\n\n // recursive call\n displayPermutation(ros, s2 + ch);\n }\n }", "public static void main(String... args) {\n List<String> list = Arrays.asList(\"aap\", \"noot\", \"mies\");\n List<List<String>> perms = getPermutations(list);\n perms.forEach(System.out::println);\n }", "private static int getPermutations(int n, int r) {\n\t\t\n\t\tif(r == 0)\n\t\t\treturn 1;\n\t\t\n\t\treturn (n * getPermutations(n-1 , r-1));\n\t}", "public void helper(List<Integer> permutation,\n List<List<Integer>> rst,\n int[] nums) {\n // 3-recursion exit\n if (permutation.size() == nums.length) {\n // deep copy\n rst.add(new ArrayList<>(permutation));\n return;\n }\n\n // 2-recursion split\n // [3, 1] => [3, 1, 2]\n for (int i = 0; i < nums.length; i ++) {\n if (permutation.contains(nums[i])) continue;\n permutation.add(nums[i]);\n helper(permutation, rst, nums);\n permutation.remove(permutation.size() - 1);\n }\n }", "public boolean canPermutePalindrome(String input) {\n if (input == null) {\n return false;\n }\n if (input.length() == 0) {\n return true;\n }\n char[] temp = input.toCharArray();\n // StringBuilder sol = new StringBuilder();\n boolean[] result = new boolean[] { false };\n DFS(0, temp, result);\n return result[0];\n }", "public static void main(String[] args) {\n\tint num=4321;\r\n\tString numString=Integer.toString(num);\r\n\tchar[] toBeSorted=numString.toCharArray();\r\n\tchar[] numArray=numString.toCharArray();\r\n\tint maxIndex=0;\r\n\t//check if the given number has no next permutation\r\n\tboolean nextPermu=false;\r\n\tfor(int i=0;i<numArray.length-1;i++){\r\n\t\tif(numArray[i]<numArray[i+1]){\r\n\t\t\tnextPermu=true;\r\n\t\t}\r\n\t}\r\n\tif(!nextPermu){\r\n\t\tSystem.out.println(\"not next permutation possible\");\r\n\t\treturn;\r\n\t}\r\n\r\n\t\r\n\tfor(int i=0;i<numArray.length;i++){\r\n\t\tif(numArray[i]>numArray[maxIndex]){\r\n\t\t\tmaxIndex=i;\r\n\t\t}\r\n\t}\r\n\tjava.util.Arrays.sort(toBeSorted);\r\n\tif(String.copyValueOf(toBeSorted).equals(numString)){\r\n\t\t//swap last 2 indexes\r\n\t\tchar temp=numArray[numArray.length-1];\r\n\t\tnumArray[numArray.length-1]=numArray[numArray.length-2];\r\n\t\tnumArray[numArray.length-2]=temp;\r\n\t\tSystem.out.println(String.copyValueOf(numArray));\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tjava.util.Arrays.sort(numArray, maxIndex, numArray.length);\r\n\tSystem.out.println(String.copyValueOf(numArray));\r\n\t//swap maxIndex and maxIndex-1;\r\n\tchar temp=numArray[maxIndex];\r\n\tnumArray[maxIndex]=numArray[maxIndex-1];\r\n\tnumArray[maxIndex-1]=temp;\r\n\t}", "public static int[] initialPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\t\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tif(i < 4){\n\t\t\t\tpermutedText[i*8 + 0] = inputText[57 + i*2];\n\t\t\t\tpermutedText[i*8 + 1] = inputText[49 + i*2];\n\t\t\t\tpermutedText[i*8 + 2] = inputText[41 + i*2];\n\t\t\t\tpermutedText[i*8 + 3] = inputText[33 + i*2];\n\t\t\t\tpermutedText[i*8 + 4] = inputText[25 + i*2];\n\t\t\t\tpermutedText[i*8 + 5] = inputText[17 + i*2];\n\t\t\t\tpermutedText[i*8 + 6] = inputText[ 9 + i*2];\n\t\t\t\tpermutedText[i*8 + 7] = inputText[ 1 + i*2];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpermutedText[i*8 + 0] = inputText[56 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 1] = inputText[48 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 2] = inputText[40 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 3] = inputText[32 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 4] = inputText[24 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 5] = inputText[16 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 6] = inputText[ 8 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 7] = inputText[ 0 + (i-4)*2];\n\t\t\t}\n\t\t}\n\t\treturn permutedText;\n\t}", "public List<String> generatePalindromes(String s) {\n HashSet<String> hash = new HashSet<>();\n HashMap<Character,Integer> map = new HashMap<>();\n \n for(int i = 0; i < s.length();i++){\n map.put(s.charAt(i),map.getOrDefault(s.charAt(i),0)+1);\n }\n \n int count = 0;\n char single = 0;\n for(char key : map.keySet()){\n int x = map.get(key);\n if(x%2==1){count++;\n single = key;}\n }\n if(count > 1) return new ArrayList<>(hash);\n \n StringBuilder sb = new StringBuilder();\n for(char key : map.keySet()){\n for(int i = 0; i< map.get(key)/2; i++){\n sb.append(key);\n }\n }\n backtracking(hash,sb.length(),sb.toString(),single,\"\");\n return new ArrayList<>(hash);\n }", "public static void main(String[] args)\n\t{\n\t\tString test = \"ABCDEFGHIJ\";\n\t\tPermutationGeneratorCoveyouSullivan p = new PermutationGeneratorCoveyouSullivan(test);\n\t\t\n\t\tint[] counters = new int[test.length()+1]; //array used to add to counters\n\t\t\n\t\t//using the h function to display how many permutations there are with test.length() elements and ZERO fixed - comparing to this.\n\t\tlong testH = h(test.length());\n\t\tSystem.out.println(\"Using the h function:\\nThe number of permutations with \" + test.length() + \" elements and ZERO fixed elements is: [\" + testH +\"]\\n\");\n\t\t\n\t\t//using the g function to display how many permutations there are with test.length() elements and \"i\" fixed elements - comparing to this\n\t\tSystem.out.println(\"Using the g function:\");\n\t\tfor (int i = 0; i < test.length()+1; i++)\n\t\t{\n\t\t\tlong gTest = g(test.length(), i);\n\t\t\tSystem.out.println(\"The number of permutations with \" + test.length() + \" elements and \" + i + \" fixed elements is: [\" + gTest + \"]\");\n\t\t}\n\t\t\n\t\t//now we are going to be using the brute force way of how to do counting - manually and then compare\n\t\tSystem.out.println(\"\\nUsing my brute force technique to figure out the number of permutations:\");\n\t\tfor (String s : p)\n\t\t{\n\t\t\tint controller = 0; //controller variable that will reset for every loop - for each seperate index\n\t\t\t\n\t\t\tfor (int i = 0; i < test.length(); i++) //this is the tester to compare the characters at each index\n\t\t\t{\n\t\t\t\tif (s.charAt(i) == test.charAt(i))\n\t\t\t\t\tcontroller++;\n\t\t\t}\n\t\t\t\n\t\t\tcounters[controller]++; //I'm still not understanding how these counters are working: I know it works, but how does it know what index to be in?\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < counters.length; i++)\n\t\t\tSystem.out.println(\"With \" + i + \" fixed elements, there are: [\" + counters[i] + \"] permutations\");\n\t\t\n\t\t/**********************************\n\t\t * Finally, my methods and brute force technique are correct do to the equality of the different functions/parameters as well as my brute force technique!\n\t\t * I also checked different test strings including my name, etc and they are also equal.\n\t\t * \n\t\t * Questions: One thing I noticed in the sequence is that g(test.length(), 0) and g(test.length(), 1) are somehow related b/c there is a difference of ONE?? \n\t\t * Is this true for all strings?\n\t\t *********************************/\n\t}", "public static void backtrack(String str,List<Integer> currentList,List<List<Integer>> result){\n\t\tif(str.length()==0){\n\t\t\tresult.add(new ArrayList<>(currentList));\n\t\t\tSystem.out.println(currentList);\n\t\t\treturn;\n\t\t}\n\t\t// Iterate from 1 as we take current from 0 inside loop\n\t\t// i <= str.length() and not < as we are taking substring at every step,str.length decreases\n\t\t// At one point it becomes 1(for the last character of string), we must include that as well\n\t\tfor(int i=1;i<=str.length();i++){\n\t\t\tString curr = str.substring(0,i);\n\t\t\tint num = Integer.parseInt(curr);\n\t\t\tif(isPrime(num)){\n\t\t\t\tcurrentList.add(num);\n\t\t\t\tString s = str.substring(i);\n\t\t\t\tbacktrack(s,currentList,result);\n\t\t\t\tcurrentList.remove(currentList.size()-1);\n\t\t\t}\n\t\t}\n\t}", "private static List<String> testStringGenerator(List<String> palString) {\n\t\tList<String> list = new ArrayList<>();\n\t\tfor (String pal : palString) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tsb.append(pal);\n\t\t\t\tfor (int j = 0; j < pal.length(); j++) {\n\t\t\t\t\tsb.append(j % 10);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(sb.toString());\n\t\t}\n\t\treturn list;\n\t}", "private void heapPermutation(char[] a, int size, int n, List<String> l) {\n // If size is 1, store the obtained permutation\n if (size == 1)\n l.add(new String(a));\n\n for (int i = 0; i < size; i++) {\n heapPermutation(a, size - 1, n, l);\n\n // If size is odd, swap first and last element\n if (size % 2 == 1) {\n char temp = a[0];\n a[0] = a[size - 1];\n a[size - 1] = temp;\n }\n\n // If size is even, swap i-th and last element\n else {\n char temp = a[i];\n a[i] = a[size - 1];\n a[size - 1] = temp;\n }\n }\n }", "public void recursivePermuter(ArrayList<Course> originalCourseList,\n ArrayList<ArrayList<Course>> results, ArrayList<Course> result) {\n if (originalCourseList.size() == result.size()) {\n ArrayList<Course> temp = new ArrayList<>(result);\n results.add(temp);\n }\n for (int i = 0; i < originalCourseList.size(); i++) {\n if (!result.contains(originalCourseList.get(i))) {\n result.add(originalCourseList.get(i));\n recursivePermuter(originalCourseList, results, result);\n result.remove(result.size() - 1);\n }\n }\n }", "public BigInteger calculatePermutations(long n, long k) {\n\t\treturn Factorial.factorial(n).divide(Factorial.factorial(n-k));\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"abccbc\";\n\t\t\n\t\tlong[][] dp = new long[str.length()][str.length()];\t\n\t\t\n\t\tfor (int g=0 ; g<str.length() ; g++) {\n\t\t\t\n\t\t\tfor (int i=0 , j=g ; j<str.length() ; i++ , j++) {\n\t\t\t\tif (g == 0) dp[i][j] = 1;\n\t\t\t\t\n\t\t\t\telse if (g == 1) dp[i][j] = (str.charAt(i) == str.charAt(j)) ? 3 : 2;\n\t\t\t\t\n\t\t\t\telse dp[i][j] = (str.charAt(i) == str.charAt(j)) ? (dp[i][j-1] + dp[i+1][j] + 1) : (dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1]);\n\t\t\t\t\n\t\t\t\t//if (dp[i][j] && str.substring(i, j+1).length() > result.length()) result = str.substring(i, j+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[0][str.length()-1]);\n\t}", "public ArrayList<ArrayList<Course>> permutationOfCourseList(ArrayList<Course> originalCourseList) {\n ArrayList<ArrayList<Course>> results = new ArrayList<ArrayList<Course>>();\n if (originalCourseList == null || originalCourseList.size() == 0) {\n return results;\n }\n ArrayList<Course> result = new ArrayList<>();\n recursivePermuter(originalCourseList, results, result);\n return results;\n }", "private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}", "public static void main(String[] args) {\n String S = \"C\";\n List<String> list = letterCasePermutation(S);\n\n for(String str : list){\n System.out.println(str);\n }\n }", "@Test\n public void testLetterCasePermutation() {\n System.out.println(\"testLetterCasePermutation\");\n LetterCasePermutation instance = new LetterCasePermutation();\n\n List<String> result1 = instance.letterCasePermutation(\"a1b2\");\n List<String> expect1 = ListUtil.buildList(new String[]{\"a1b2\", \"a1B2\", \"A1b2\", \"A1B2\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect1, result1));\n\n List<String> result2 = instance.letterCasePermutation(\"3z4\");\n List<String> expect2 = ListUtil.buildList(new String[]{\"3z4\", \"3Z4\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect2, result2));\n\n List<String> result3 = instance.letterCasePermutation(\"12345\");\n List<String> expect3 = ListUtil.buildList(new String[]{\"12345\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect3, result3));\n }", "void genPermute() {\n\t\tpermute = new ArrayList<Integer>();\n\t\tfor(int idx = 0; idx < dim(); idx++)\n\t\t\tpermute.add(idx);\n\t\tjava.util.Collections.shuffle(permute);\n\t}", "public static void permutation3(StringBuffer sb, int k, Set<String> set)\r\n\t{\r\n\t\tif(k == sb.length())\r\n\t\t{\r\n\t\t\tset.add(sb.toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\tfor(int i =k ;i < sb.length();i++)\r\n\t\t{\r\n\t\t\tswap(sb,k,i);\r\n\t\t\tpermutation3(sb,k+1, set);\r\n\t\t\tswap(sb,i,k);\r\n\t\t}\r\n\t}", "public static List<String> solve8Dames() {\n return permute(new ArrayList<String>(), \"\", \"01234567\");\n }", "public List<String> generateParen(int n){\n int count = 0; //cannot be smaller than 0 \n int left = n;\n int right = n;\n List<String> res = new ArrayList<>();\n dfs(left, right, count, \"\", res);\n return res;\n }", "List<Integer> buildPi(String pattern) {\n List<Integer> pi = new ArrayList<>(Collections.nCopies(pattern.length(), 0));\n for (int i = 1; i < pattern.length(); i++) {\n for (int j = 0; j < pattern.length() && i < pattern.length(); j++) {\n if (pattern.charAt(i) == pattern.charAt(j)) {\n pi.set(i, j);\n i++;\n } else {\n break;\n }\n }\n }\n return pi;\n }", "char permute(char p) {\n return _alphabet.toChar(permute(_alphabet.toInt(p)));\n }", "public List<List<Integer>> permute_1(int[] nums) {\n List<List<Integer>> list = new ArrayList<>();\n // Arrays.sort(nums); // not necessary\n backtrack_(list, new ArrayList<>(), nums);\n return list;\n }", "public static List<Integer> allAnagrams(String s, String l) {\n List<Integer> ans = new ArrayList<Integer>();\n \n if(s == null || s.length() < 1 || l == null || l.length() < 1)\n return ans;\n StringBuilder sb = new StringBuilder();\n char[] sarray = s.toCharArray();\n permute(sarray,sb,0);\n for(int i = 0; i < l.length() - s.length()+1; i++){\n if(set.contains(l.substring(i,i+s.length()))){\n ans.add(i);\n }\n }\n return ans;\n }", "public byte[] getPermutation() {\n byte[] p = new byte[48];\n for(int i = 0; i < 24; i+=3) {\n int k = co[i/3];\n if(k == 0) {}\n else if(k == 1) {k=2;}\n else {k=1;}\n int r = cp[i/3] * 3 + k;\n p[i] = (byte) r;\n p[i+1] = (byte) (((r-r/3*3+1)%3)+r/3*3);\n p[i+2] = (byte) (((r-r/3*3+2)%3)+r/3*3);\n }\n for(int i = 24; i < 48; i +=2) {\n int r = ep[(i-24)/2]*2 + eo[(i-24)/2];\n p[i] = (byte) (r + 24);\n p[i+1] = (byte) ((r-r/2*2+1)%2 + r/2*2 + 24);\n }\n return p;\n }", "public int palsubsequence2(String str) {\r\n\t\tint m = str.length();\r\n\t\tint[][] mem = new int[m + 1][m + 1];\r\n\r\n\t\tfor (int i = 1; i <= m; ++i) {\r\n\t\t\tmem[i][i] = 1;\r\n\t\t}\r\n\t\t// Bottom-up row-wise filling\r\n\t\tfor (int i = m - 1; i >= 1; --i) {\r\n\t\t\tfor (int j = i + 1; j <= m; ++j) {\r\n\r\n\t\t\t\tif (str.charAt(i - 1) == str.charAt(j - 1))\r\n\t\t\t\t\tmem[i][j] = mem[i + 1][j - 1] + 2;\r\n\t\t\t\telse {\r\n\t\t\t\t\tint incr = mem[i + 1][j];\r\n\t\t\t\t\tint decr = mem[i][j - 1];\r\n\t\t\t\t\tmem[i][j] = Math.max(incr, decr);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tprintMemory(mem);\r\n\t\t// printSequence(mem, 1, m, str);\r\n\t\tSystem.out.println();\r\n\t\treturn mem[1][m];\r\n\r\n\t}", "public List<List<Integer>> palindromePairs(String[] words) {\n\t\t\t\n\t\t\tif(words == null) return null;\n\t\t\tList<List<Integer>> res = new LinkedList<>();\n\t\t\tList<Integer> tempList = new LinkedList<>();\n\t\t\tif(words.length == 0) return res;\n\t\t\t\n\t\t\t// but seems all possible is too many, let try brutal force first, cannot, exceed the time limit.\n//\t\t\tfor(int i = 0; i< words.length ; i++){\n//\t\t\t\ttempList.clear();\n//\t\t\t\ttempList.add(i);\n//\t\t\t\tfor(int j = 0; j < words.length ; j++){\n//\t\t\t\t\tif(j == i) continue;\n//\t\t\t\t\tif(isPalindrome(words[i]+words[j])){\n//\t\t\t\t\t\ttempList.add(j);\n//\t\t\t\t\t\tres.add(new LinkedList<>(tempList));\n//\t\t\t\t\t\ttempList.remove(tempList.size()-1);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\tfor(int i = 0; i<words.length; i++) map.put(words[i], i);\n\t\t\tfor(int i = 0; i<words.length; i++){\n\t\t\t\t\tfor(int j = 0; j <= words[i].length(); j++){\n\t\t\t\t\t\tString pre = words[i].substring(0, j);\n\t\t\t\t\t\tString after = words[i].substring(j);\n\t\t\t\t\t\tif(isPalindrome(pre)){\n\t\t\t\t\t\t\tString afterrev =new StringBuffer(after).reverse().toString();\n\t\t\t\t\t\t\tif(map.containsKey(afterrev) &&map.get(afterrev) != i){\n\t\t\t\t\t\t\t\ttempList.clear();\n\t\t\t\t\t\t\t\ttempList.add(map.get(afterrev));\n\t\t\t\t\t\t\t\ttempList.add(i);\n\t\t\t\t\t\t\t\tres.add(new LinkedList<>(tempList));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(isPalindrome(after)){\n\t\t\t\t\t\t\tString prerev =new StringBuffer(pre).reverse().toString();\n\t\t\t\t\t\t\tif(map.containsKey(prerev) &&map.get(prerev) != i && after.length() != 0){\n\t\t\t\t\t\t\t\ttempList.clear();\n\t\t\t\t\t\t\t\ttempList.add(i);\n\t\t\t\t\t\t\t\ttempList.add(map.get(prerev));\n\t\t\t\t\t\t\t\tres.add(new LinkedList<>(tempList));\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}\n\t\t\treturn res;\n }", "public List<List<String>> groupAnagrams_var2(String[] strs) {\n Map<Map<Character, Integer>, List<String>> map = new HashMap<>();\n for (String currStr : strs) {\n Map<Character, Integer> currMap = new HashMap<>();\n for (int i = 0; i < currStr.length(); i++)\n currMap.put(currStr.charAt(i), currMap.getOrDefault(currStr.charAt(i), 0) + 1);\n map.computeIfAbsent(currMap, k -> new LinkedList<>()).add(currStr);\n }\n\n return new LinkedList<>(map.values());\n }", "public int countPalindromicSubsequences(String s) {\n \n Integer[][][] memo = new Integer[s.length()][s.length()][4];\n \n int ans = 0;\n for (int i = 0; i < 4; i++) {\n ans = (ans + distinct(s, memo, 0, s.length() - 1, i)) % MOD;\n }\n \n return ans;\n }", "public static ArrayList<int[]> permutations(int[] children, int end) {\n\t\tArrayList<int[]> permutations = new ArrayList();\n\t\tpermutations(0, children, end, permutations);\n\t\treturn permutations;\n\t}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tString l = br.readLine();\n\t\tArrayList<String> salida= new ArrayList<>();\n\t\tArrayList<String> a= new ArrayList<>();\n\t\tint r=0;\n\t\twhile (!l.equals(\"\")) {\n\t\t\t\n\t\t\tLinkedList<Character> conjunto = new LinkedList<>();\n\t\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\t\tconjunto.add(l.charAt(i));\n\t\t\t}\n\t\t\t/*a = permutar(\"\", conjunto,salida);\n\t\t\tSystem.err.println(a.toString());*/\n\t\t\tsalida.clear();\n\t\t\tr = per(\"\", conjunto,salida);\n\t\t\tpw.println(r);\n\t\t\tr=0;\n\t\t\tl = br.readLine();\n\t\t}\n\t\tpw.close();\n\t}" ]
[ "0.76465124", "0.7523721", "0.74774086", "0.74681485", "0.7329712", "0.7239088", "0.7223662", "0.7195538", "0.7052518", "0.69626486", "0.6957114", "0.6927435", "0.68424445", "0.68414503", "0.6815245", "0.67521185", "0.6632063", "0.66116196", "0.65435", "0.6514009", "0.6497722", "0.64789987", "0.64025694", "0.63934016", "0.62867796", "0.61906624", "0.6144735", "0.6144028", "0.6094093", "0.60631025", "0.603688", "0.5975198", "0.59685475", "0.5963585", "0.5950723", "0.59279037", "0.5899481", "0.58874756", "0.5865074", "0.5818237", "0.58102155", "0.579568", "0.5794521", "0.57881063", "0.57831323", "0.5778087", "0.5764323", "0.5762002", "0.57334673", "0.5728385", "0.5707077", "0.569679", "0.5695962", "0.56938195", "0.5681528", "0.5655629", "0.5653671", "0.5626551", "0.5619219", "0.5570077", "0.5554355", "0.55509305", "0.5523804", "0.55062073", "0.550334", "0.5489935", "0.54891807", "0.5488394", "0.5487023", "0.5481328", "0.54678154", "0.5436806", "0.54196733", "0.54006904", "0.5369668", "0.5350041", "0.5324444", "0.5310373", "0.5308829", "0.528576", "0.5279631", "0.5278303", "0.52754474", "0.5271768", "0.5265823", "0.52557707", "0.5233514", "0.5204639", "0.52039075", "0.52017254", "0.52017105", "0.5197993", "0.51889324", "0.5185808", "0.51842946", "0.51807344", "0.5175589", "0.5156194", "0.5135622", "0.51343393" ]
0.78662574
0
This method computes all the permutation of given string using Iteration approach & store it in list & returns the same
public static List<String> getPermutationByIteration(String str, String permutString, List<String> stringByIteration) { // If string is empty if (str.length() == 0) { stringByIteration.add(permutString); } for (int i = 0; i < str.length(); i++) { char ch = str.charAt(i); //Rest of the string after excluding the ith character String restOfString = str.substring(0, i) + str.substring(i + 1); getPermutationByIteration(restOfString, permutString + ch, stringByIteration); } return stringByIteration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<String> permutations(String s) {\r\n ArrayList<String> list = new ArrayList<>();\r\n permutations(\"\", s, list);\r\n return list;\r\n }", "public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();\n result = permutations(input);\n System.out.println(Arrays.asList(result)); \n }", "public static void permutations(String input){\n\t\tpermutations(\"\", input);\n\t}", "public static void permutation(String str) { \n permutation(\"\", str); \n}", "public static ArrayList<String> getPerms(String s){\n\t\tArrayList<String> permutations = new ArrayList<String>();\n\t\t\n\t\tif(s==null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(s.length()==0){\n\t\t\tpermutations.add(\"\");\n\t\t\treturn permutations;\n\t\t}\n\t\t\n\t\t//firstly, choose the first char\n\t\tchar first = s.charAt(0);\n\t\t\n\t\t//store the remainder\n\t\tString remainder = s.substring(1);\n\t\t\n\t\t\n\t\t//using recursion\n\t\tArrayList<String> words = getPerms(remainder);\n\t\t\n\t\t//adding the first char to the result of the getPerms(remainder)\n\t\tfor(String word:words){\n\t\t\tfor(int i=0;i<=word.length();i++){\n\t\t\t\tpermutations.add(insertCharAt(word,first,i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn permutations;\n\t}", "public List<String> permutationFinder(String str){\n\t\tList<String> perm = new ArrayList<String>();\n\n\t\tif(str == null) {\n\t\t\treturn null;\n\t\t}else if(str.length() ==0) {\n\t\t\tperm.add(\"\");\n\t\t\treturn perm;\n\t\t\t\n\t\t}\n\t\t\n\t\tchar initial = str.charAt(0);\n\t\tSystem.out.println(\"initial : \" + initial);\n\t\tString rem = str.substring(1);\n\t\tSystem.out.println(\"rem : \" + rem);\n List<String> words = permutationFinder(rem);\n\t\tSystem.out.println(\"words : \"+ words);\n\t\t\n\t\tfor(String strNew : words) {\n\t\t\tSystem.out.println(\"strNew \" +strNew );\n\t\t\tSystem.out.println(\"words : \"+ words);\n\t\t\tfor(int i=0 ; i <= strNew.length(); i++) {\n\t\t\t\tSystem.out.println(\"i: \" + i);\n\t\t\t\tperm.add(charInsert(strNew , initial , i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn perm;\n\t}", "public static void permutationIterative(String str) {\n\t\tchar[] chars = str.toCharArray();\r\n\r\n\t\t// Weight index control array\r\n\t\tint[] p = new int[str.length()];\r\n\r\n\t\t// i, j represents upper and lower bound index resp. for swapping\r\n\t\tint i = 1, j = 0;\r\n\r\n\t\t// Print given string, as only its permutations will be printed later\r\n\t\tSystem.out.print(str);\r\n\t\tlistPermutationIterative.add(str);\r\n\t\twhile (i < str.length()) {\r\n\t\t\tif (p[i] < i) {\r\n\t\t\t\t// if i is odd then j = p[i], otherwise j = 0\r\n\t\t\t\tj = (i % 2) * p[i];\r\n\r\n\t\t\t\t// swap(a[j], a[i])\r\n\t\t\t\tswap(chars, i, j);\r\n\r\n\t\t\t\t// Print current permutation\r\n\t\t\t\tSystem.out.print(\" \" + String.valueOf(chars));\r\n\t\t\t\tlistPermutationIterative.add(String.valueOf(chars));\r\n\t\t\t\tp[i]++; // increase index \"weight\" for i by one\r\n\t\t\t\ti = 1; // reset index i to 1\r\n\t\t\t}\r\n\t\t\t// otherwise p[i] == i\r\n\t\t\telse {\r\n\t\t\t\t// reset p[i] to zero\r\n\t\t\t\tp[i] = 0;\r\n\r\n\t\t\t\t// set new index value for i (increase by one)\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static List<String> getPermutationByRecursion(String str, List<String>stringByRecursion, int l, int r) {\n \n \tif(l == r) {\n \n stringByRecursion.add(str);\n }\n \t\n else{\n \t\n for(int i = l; i <= r ; i++){\n \n \tstr = swap(str, l, i);\n getPermutationByRecursion(str, stringByRecursion, l+1, r);\n str = swap(str, l, i);\n\n }\n }\n return stringByRecursion;\n }", "public static void checkPermutation(String str) {\n \t\n \tint length = str.length();\n\t\t\n \t//list to store permutations\n \tList<String> stringByRecursive = new ArrayList<>();\n\t\tList<String> stringByIteration = new ArrayList<>();\n\t\t\n\t\t\n\t\tList<String> listOfPermutByRecursive = getPermutationByRecursion(str, stringByRecursive, 0, length-1);\n\t\tList<String> listOfPermutByIterate = getPermutationByIteration(str, \"\", stringByIteration);\n\t\t\n\t\t//sorting the permutation list\n\t\tCollections.sort(listOfPermutByRecursive);\n\t\tCollections.sort(listOfPermutByIterate);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Recursion Approch \\n\");\n\t\tSystem.out.println(listOfPermutByRecursive);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Iterative Approch \\n\");\n\t\tSystem.out.println(listOfPermutByIterate);\n\t\t\n\t\t//checking both list are same / not\n\t\tif(listOfPermutByIterate.equals(listOfPermutByRecursive)) {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Same\");\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Not Same\");\n\t\t}\n }", "public static void permutationsWithoutDups(String str) {\n ArrayList<String> perm = new ArrayList<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n ArrayList<String> output = new ArrayList<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }", "@Test\r\n public void PermutationTest() {\r\n System.out.println(\"permutation\");\r\n String prefix = \"\";\r\n String in = \"123\";\r\n Input input = new Input(in);\r\n List<String> expResult = Arrays.asList(\"123\",\"132\",\"213\",\"231\",\"312\",\"321\");\r\n List<String> result = instance.permutation(prefix, input);\r\n instance.sort(result);\r\n assertEquals(expResult, result);\r\n }", "public static HashSet<String> getAllPermutations(String str) {\n\t\tHashSet<String> permutations = new HashSet<String>();\r\n\r\n\t\tif (str == null || str.length() == 0) {\r\n\t\t\tpermutations.add(\"\");\r\n\t\t\treturn permutations;\r\n\t\t}\r\n\r\n\t\tchar first = str.charAt(0);\r\n\t\tString remainingString = str.substring(1);\r\n\t\tHashSet<String> words = getAllPermutations(remainingString);\r\n\t\tfor (String word : words) {\r\n\t\t\tfor (int i = 0; i <= word.length(); i++) {\r\n\t\t\t\tString prefix = word.substring(0, i);\r\n\t\t\t\tString suffix = word.substring(i);\r\n\t\t\t\tpermutations.add(prefix + first + suffix);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn permutations;\r\n\t}", "@Test\n\tpublic void testPermutation() {permutation(\"abcd\");\n\t\t//0 1 0 0 9\n\t//\tpermute(\"aaab\");\n\t\t//\n\t\tpermutation(\"aaabc\");\n\t\tpermuteWithDups(\"aaabc\");\n\t}", "public static void permutationsWithDups(String str) {\n HashSet<String> perm = new HashSet<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n HashSet<String> output = new HashSet<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }", "public void permutation2(String s){\r\n\t\tHashMap<Character,Integer> m = new HashMap<Character, Integer>();\r\n\t\tfor(int i=0;i<s.length();i++){\r\n\t\t\tif(m.containsKey(s.charAt(i))){\r\n\t\t\t\tint val = m.get(s.charAt(i));\r\n\t\t\t\tm.put(s.charAt(i), ++val);\r\n\t\t\t}else{\r\n\t\t\t\tm.put(s.charAt(i), 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint [] count = new int[m.size()];\r\n\t\tchar [] str = new char[m.size()];\r\n\t\tint index = 0;\r\n\t\tfor(Map.Entry<Character, Integer> entry: m.entrySet()){\r\n\t\t\tcount[index] = entry.getValue();\r\n\t\t\tstr[index] = entry.getKey();\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\tpermUtil(str,count,0,new char[s.length()]);\r\n\t}", "public static String pPermutation(String input) {\n\n assert input.length() == 32;\n\n StringBuilder result = new StringBuilder();\n\n for (int[] ints : PPermutation) {\n for (int anInt : ints) {\n result.append(input.charAt(anInt - 1));\n }\n }\n\n return result.toString();\n }", "private void permutation(String prefix, String str) {\n \r\n int n = str.length();\r\n if (n == 0)\r\n {\r\n \r\n ls.add(prefix);\r\n System.out.print(prefix+\",\");\r\n if(ls.isEmpty()==true)\r\n {\r\n ls.remove(ls.indexOf(n)); \r\n }\r\n \r\n al.add(ls);\r\n calc(al);\r\n \r\n }\r\n\r\n else {\r\n \r\n //System.out.print(ls);\r\n \r\n for (int i = 0; i < n; i++)\r\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));\r\n \r\n \r\n }\r\n \r\n \r\n \r\n}", "public static void main(String[] args) {\n /*camelCase(\"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\");*/\n\n String str = \"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\";\n convertToCamelCase(str,str.toCharArray());\n\n String value = \"BillIs,\\n\" +\n \"InMyOpinion,\\n\" +\n \"AnEasierNameToSpellThanWilliam.\\n\" +\n \"BillIsShorter,\\n\" +\n \"AndBillIsFirstAlphabetically.\";\n\n //reverseCamelCase(value,value.toCharArray());\n\n /* Set<Integer> set = new LinkedHashSet<Integer>(\n Arrays.asList(1,2,3,4,5,6));\n\n ArrayList<List<List<Integer>>> results =\n new ArrayList<List<List<Integer>>>();\n compute(set, new ArrayList<List<Integer>>(), results);\n for (List<List<Integer>> result : results)\n {\n System.out.println(result);\n }*/\n\n /*reverseCamelCase(\"BillIsOk\\n\" +\n \"ThisIsGood.\");*/\n\n //System.out.println(\"abc \\r\\n test\");\n\n //permutation(\"abc\");\n\n /*String[] database = {\"a\",\"b\",\"c\"};\n for(int i=1; i<=database.length; i++){\n String[] result = getAllLists(database, i);\n for(int j=0; j<result.length; j++){\n System.out.println(result[j]);\n }\n }*/\n\n /*char[] database = {'a', 'b', 'c'};\n char[] buff = new char[database.length];\n int k = database.length;\n for(int i=1;i<=k;i++) {\n permGen(database,0,i,buff);\n }*/\n\n\n\n }", "@SuppressWarnings(\"unchecked\")\t\t\t\t\t\t\t//used because of line 17, there is no way to remove warnings, they have to be suppressed\n public String[] permutations(ArrayList<ArrayList<Character> > mat){\n\n if(mat.size()==1){\t\t\t//since the function is recursive, a base case for the first line has been made. \n String[] s = new String[mat.get(0).size()];\n int i = 0;\n for(Object obj:mat.get(0)) {\n if (i < s.length) {\n s[i++] = obj.toString();\n }\n }\n return s;\t\t//returns the characters of the first line of the input as an array of String\n }\n ArrayList<Character>[] arr = new ArrayList[mat.size()]; //this has been created to provide ease of accessibility which is a bit difficult with an ArrayList of an ArrayList\n int k = 0;\n for(ArrayList a:mat){\n if(k<mat.size()){\n arr[k] = a;\n }\n k++;\n }\n int product = 1;\n for(ArrayList a: mat){\n product*= a.size(); \t// product calculates the size of the String to be generated for the given input\n }\n int i = 0;\n String[] ret = new String[product];\n ArrayList<ArrayList<Character> > ret_arr_list = new ArrayList<>();\n for(int exception_index = 0;exception_index<arr.length-1;++exception_index){\n ret_arr_list.add(arr[exception_index]); //ret_arr_list is an ArrayList of an ArrayList except the last row of the original input\n }\n String[] s = permutations(ret_arr_list); //gets the string as mentioned at the very beginning of the function\n int ret_index = 0;\n for(int i_index = 0;i_index < s.length;++i_index){\n for(int j_index = 0;j_index<mat.get(mat.size()-1).size();++j_index){\n ret[ret_index++] = s[i_index] + arr[mat.size()-1].get(j_index).toString(); //appends every character of the last line to \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //every String element calculated in String[] s\n }\n }\n return ret;\n }", "public static void main(String[] args) {\n\t\tString s = \"123321\";\n\t\tString t = \"123231\";\n\t\t\n\t\tSystem.out.println(permutation(s, t));\n\t}", "public List<String> permutations(String set) {\n List<String> result = new ArrayList<>();\n if (set == null) {\n return result;\n }\n char[] array = set.toCharArray();\n DFS(array, 0, result);\n return result;\n }", "public static ArrayList<ArrayList<String>> permuteInterative(char[] chars) {\n ArrayList<ArrayList<String>> resultBySize = new ArrayList<>();\n\n // starts out empty\n ArrayList<StringBuilder> results = new ArrayList<>();\n results.add(new StringBuilder());\n\n for (int i = 0; i< chars.length; i++) {\n ArrayList<StringBuilder> current = new ArrayList<>();\n for (StringBuilder s : results) {\n for (int j = 0; j < s.length() + 1; j++) {\n s.insert(j, chars[i]);\n StringBuilder temp = new StringBuilder(s);\n current.add(temp);\n s.deleteCharAt(j);\n }\n }\n results = new ArrayList<>(current);\n //snap shot of that size\n ArrayList<String> strings = new ArrayList<>();\n for (StringBuilder s: current) {\n strings.add(s.toString());\n }\n resultBySize.add(strings);\n }\n System.out.println(resultBySize);\n return resultBySize;\n }", "public static void permutationRecursion(String str, String ans) {\n\t\tif (str.length() == 0) {\r\n\t\t\tSystem.out.print(ans + \" \");\r\n\t\t\tlistPermutationRecursion.add(ans);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\r\n\t\t\t// ith character of str\r\n\t\t\tchar ch = str.charAt(i);\r\n\r\n\t\t\t// Rest of the string after excluding\r\n\t\t\t// the ith character\r\n\t\t\tString temp = str.substring(0, i) + str.substring(i + 1);\r\n\r\n\t\t\t// Recurvise call\r\n\t\t\tpermutationRecursion(temp, ans + ch);\r\n\t\t}\r\n\r\n\t}", "public List<String> letterCasePermutation(String S) {\n if (S.length() <= 0) {\n List<String> ret = new ArrayList<>();\n ret.add(\"\");\n return ret;\n }\n\n if (S.length() == 1) {\n List<String> ret = new ArrayList<>();\n char c = S.charAt(0);\n ret.add(S);\n if (Character.isLetter(c)) {\n if (Character.isLowerCase(c)) {\n ret.add(String.valueOf(Character.toUpperCase(c)));\n } else {\n ret.add(String.valueOf(Character.toLowerCase(c)));\n }\n }\n\n return ret;\n }\n\n List<String> ret = letterCasePermutation(S.substring(1));\n\n char c = S.charAt(0);\n if (Character.isLetter(c)) {\n List<String> ret2 = new LinkedList<>(ret);\n appendToFront(Character.toLowerCase(c), ret);\n appendToFront(Character.toUpperCase(c), ret2);\n ret.addAll(ret2);\n } else {\n appendToFront(c, ret);\n }\n\n return ret;\n }", "private static void permutation(String prefix, String str) {\n int n = str.length();\n if (n == 0) System.out.println(prefix);\n else {\n for (int i = 0; i < n; i++){\n \t System.out.println(\"prefix+str.char at i \" +prefix + str.charAt(i)+\" substring1 \"+str.substring(0, i)+\" substring2 \"+str.substring(i+1, n));\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));}\n }\n}", "public void permutationOfString(String s, int start, int end){\n if(start == end && !hs.contains(s)){\n hs.add(s);\n System.out.println(s);\n return;\n }\n\n for(int i=start;i<=end;i++){\n s=swap(s,i,start);\n permutationOfString(s,start+1, end);\n s=swap(s,i,start);\n }\n\n }", "public ArrayList<String> FindAllCombinationWord(String str) {\r\n\r\n ArrayList<String> wordList = new ArrayList<String>();\r\n\r\n int n = str.length();\r\n ArrayList<String> combinationWord = permute(str, 0, n - 1);\r\n\r\n for (String item : combinationWord) {\r\n int j = 0;\r\n for (int i = n; i >= 2; i--) {\r\n String finalString = item.substring(j);\r\n\r\n if (!wordList.contains(finalString)) {\r\n wordList.add(finalString);\r\n }\r\n j++;\r\n }\r\n }\r\n return wordList;\r\n }", "public void permute( ){\n\t\tif( out.length() == in.length() ){\n\t\t\tSystem.out.println( out );\n\t\t\treturn;\n\t\t}\n\t\t//for each character in the input\n\t\tfor( int i = 0; i < in.length(); ++i ){\n\t\t\t//if already marked then skip\n\t\t\tif( used[i] ) \n\t\t\t\tcontinue;\n\t\t\t//otherwise put the character in current position of permuted string\n\t\t\tout.append( in.charAt(i) );\n\t\t\t//mark the position as visited\n\t\t\tused[i] = true;\n\t\t\t//permute remaining characters\n\t\t\tpermute();\n\t\t\t//unmark the position\n\t\t\tused[i] = false;\n\t\t\t//clear the permuted string to start over again\n\t\t\tout.setLength( out.length() - 1 );\n\t\t}\n\t}", "public List<String> letterCasePermutation(String S) {\n List<String> ans = new ArrayList<>();\n backtrack(ans, 0, S.toCharArray());\n return ans;\n }", "public static List<String> generatePermutations(int gridSize) {\n if (gridSize < GRID_SIZE_MIN || gridSize > GRID_SIZE_MAX) {\n throw new IllegalArgumentException(\"Digits out of bounds.\");\n }\n List<String> result = new ArrayList<String>();\n int start = startInt(gridSize);\n int end = endInt(gridSize);\n LOG.log(Level.INFO,\"start={0}, end={1}\", new Object[]{start, end});\n for (int i = start; i <= end; i++) {\n String textValue = String.valueOf(i);\n if (keep(textValue)) {\n result.add(textValue);\n }\n }\n return result;\n }", "static int printPermutn(String str, String ans)\n {\n\n // If string is empty\n if (str.length() == 0) {\n if (ans.contains(\"123\") || ans.contains(\"321\") || ans.contains(\"234\") || ans.contains(\"345\") || ans.contains(\"456\") || ans.contains(\"654\") || ans.contains(\"543\") || ans.contains(\"432\") || ans.contains(\"321\")) {\n return 0;\n }\n System.out.println(ans);\n return 1;\n }\n int res = 0;\n for (int i = 0; i < str.length(); i++) {\n\n // ith character of str\n char ch = str.charAt(i);\n\n // Rest of the string after excluding\n // the ith character\n String ros = str.substring(0, i) +\n str.substring(i + 1);\n // Recurvise call\n res += printPermutn(ros, ans + ch);\n }\n return res;\n }", "public static void main(String[] args) {\n String S = \"C\";\n List<String> list = letterCasePermutation(S);\n\n for(String str : list){\n System.out.println(str);\n }\n }", "public static void printPermutaions(String word) {\n TreeMap<Character, Integer> map = new TreeMap<>();\n for (int i = 0; i < word.length(); i++) {\n if (map.get(word.charAt(i)) != null) {\n map.put(word.charAt(i), map.get(word.charAt(i)) + 1);\n } else {\n map.put(word.charAt(i), 1);\n }\n }\n\n int[] count = new int[map.size()];\n char[] chars = new char[map.size()];\n\n int index = 0;\n for (Map.Entry entry : map.entrySet()) {\n chars[index] = (char) entry.getKey();\n count[index] = (int) entry.getValue();\n index++;\n }\n\n char[] result = new char[word.length()];\n ArrayList<String> resultList = new ArrayList<String>();\n permuteUtil(chars, count, result, resultList, 0);\n for (String perm : resultList) {\n System.out.print(perm+\" \");\n }\n }", "public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public List<String> letterCasePermutation(String S) {\n List<String> ans = new ArrayList<>();\n backtracking(ans,S,\"\",0);\n return ans;\n }", "public static void main(String[] args) {\n\t\tresult = permutation(\"doggie\",\"god\");\r\n\t\tSystem.out.println(result);\r\n\t}", "public static void main(String[]args) {\n\t PermuteString prm=new PermuteString();\n\t System.out.println(\"enter the string for permutation\");\n\t String s1=Utility.getString();\n\t \n\t int len=s1.length();\n\t //initialize the stating index\n\t int start=0;\n\t //calling function to print permutation\n\t prm.getPermutation(s1,start, len);\n\t \n\t \n }", "public static void main(String[] args)\n\t{\n\t\tString test = \"ABCDEFGHIJ\";\n\t\tPermutationGeneratorCoveyouSullivan p = new PermutationGeneratorCoveyouSullivan(test);\n\t\t\n\t\tint[] counters = new int[test.length()+1]; //array used to add to counters\n\t\t\n\t\t//using the h function to display how many permutations there are with test.length() elements and ZERO fixed - comparing to this.\n\t\tlong testH = h(test.length());\n\t\tSystem.out.println(\"Using the h function:\\nThe number of permutations with \" + test.length() + \" elements and ZERO fixed elements is: [\" + testH +\"]\\n\");\n\t\t\n\t\t//using the g function to display how many permutations there are with test.length() elements and \"i\" fixed elements - comparing to this\n\t\tSystem.out.println(\"Using the g function:\");\n\t\tfor (int i = 0; i < test.length()+1; i++)\n\t\t{\n\t\t\tlong gTest = g(test.length(), i);\n\t\t\tSystem.out.println(\"The number of permutations with \" + test.length() + \" elements and \" + i + \" fixed elements is: [\" + gTest + \"]\");\n\t\t}\n\t\t\n\t\t//now we are going to be using the brute force way of how to do counting - manually and then compare\n\t\tSystem.out.println(\"\\nUsing my brute force technique to figure out the number of permutations:\");\n\t\tfor (String s : p)\n\t\t{\n\t\t\tint controller = 0; //controller variable that will reset for every loop - for each seperate index\n\t\t\t\n\t\t\tfor (int i = 0; i < test.length(); i++) //this is the tester to compare the characters at each index\n\t\t\t{\n\t\t\t\tif (s.charAt(i) == test.charAt(i))\n\t\t\t\t\tcontroller++;\n\t\t\t}\n\t\t\t\n\t\t\tcounters[controller]++; //I'm still not understanding how these counters are working: I know it works, but how does it know what index to be in?\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < counters.length; i++)\n\t\t\tSystem.out.println(\"With \" + i + \" fixed elements, there are: [\" + counters[i] + \"] permutations\");\n\t\t\n\t\t/**********************************\n\t\t * Finally, my methods and brute force technique are correct do to the equality of the different functions/parameters as well as my brute force technique!\n\t\t * I also checked different test strings including my name, etc and they are also equal.\n\t\t * \n\t\t * Questions: One thing I noticed in the sequence is that g(test.length(), 0) and g(test.length(), 1) are somehow related b/c there is a difference of ONE?? \n\t\t * Is this true for all strings?\n\t\t *********************************/\n\t}", "private static void permutation(String perm, String word) {\r\n\t\tif (word.isEmpty()) {\r\n\t\t\tSystem.err.println(perm + word);\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tpermutation(perm + word.charAt(i), word.substring(0, i) + word.substring(i + 1, word.length()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void isPermutation(String s1, String s2){\r\n\t\t\t\r\n\t\t\t// Can also do by sorting both string and comparing each character by character\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\tArrayList hm = new ArrayList();\r\n\t\t\t\r\n\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n\t\t\t\t\r\n\t\t\t\t\thm.add(s1.charAt(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n\t\t\t\tif(hm.contains(s2.charAt(i))){\r\n\t\t\t\t\thm.remove((Character)s2.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Not A permutation\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tHashMap hm = new HashMap();\r\n//\t\t\t\r\n//\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s1.charAt(i))){\r\n//\t\t\t\t\thm.put(s1.charAt(i),hm.get(s1.charAt(i) + 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\thm.put(s1.charAt(i), 1);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s2.charAt(i))){\r\n//\t\t\t\t\thm.put(s2.charAt(i),hm.get(s2.charAt(i) - 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\tflag = false;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\tif (hm.size()==0)\r\n\t\t\t\tSystem.out.println(\"Permutations\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Not Permutations\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Checking by creating ascii character array\r\n\t\t\tif (s1.length() != s2.length()) {\r\n\t\t\t\tSystem.out.println(\"Second Solution Not Permutation\");\r\n\t\t\t\t}\r\n\t\t\t\tint[] letters = new int[256]; // Assumption\r\n\t\t\t\t\tchar[] s_array = s1.toCharArray();\r\n\t\t\t\tfor (char c : s_array) { // count number of each char in s.\r\n\t\t\t\t letters[c]++;\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t for (int i = 0; i < s2.length(); i++) {\r\n\t\t\t\t int c = (int) s2.charAt(i);\r\n\t\t\t\t if (--letters[c] < 0) {\r\n\t\t\t\t System.out.println(\" Second Solution Not Permutation\");\r\n\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\r\n\t\t}", "public static void main(String[] args) {\n\n Permutation pr = new Permutation();\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please, enter a String to check permutation: \");\n String inputStr = sc.nextLine();\n\n pr.permutation(inputStr, 0, inputStr.length() - 1);\n\n }", "private static List<String> testStringGenerator(List<String> palString) {\n\t\tList<String> list = new ArrayList<>();\n\t\tfor (String pal : palString) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tsb.append(pal);\n\t\t\t\tfor (int j = 0; j < pal.length(); j++) {\n\t\t\t\t\tsb.append(j % 10);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(sb.toString());\n\t\t}\n\t\treturn list;\n\t}", "public static void permuteString(String prefix, String remaining) {\n // System.out.println(prefix + \"-->\" + remaining);\n int n = remaining.length();\n if (n == 0) {\n System.out.println(prefix);\n return;\n }\n for (int i = 0; i < n; i++) {\n permuteString(prefix + remaining.charAt(i),\n remaining.substring(0, i) + remaining.substring(i + 1));\n }\n }", "@Test\n public void testLetterCasePermutation() {\n System.out.println(\"testLetterCasePermutation\");\n LetterCasePermutation instance = new LetterCasePermutation();\n\n List<String> result1 = instance.letterCasePermutation(\"a1b2\");\n List<String> expect1 = ListUtil.buildList(new String[]{\"a1b2\", \"a1B2\", \"A1b2\", \"A1B2\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect1, result1));\n\n List<String> result2 = instance.letterCasePermutation(\"3z4\");\n List<String> expect2 = ListUtil.buildList(new String[]{\"3z4\", \"3Z4\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect2, result2));\n\n List<String> result3 = instance.letterCasePermutation(\"12345\");\n List<String> expect3 = ListUtil.buildList(new String[]{\"12345\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect3, result3));\n }", "public static void main(String... args) {\n List<String> list = Arrays.asList(\"aap\", \"noot\", \"mies\");\n List<List<String>> perms = getPermutations(list);\n perms.forEach(System.out::println);\n }", "public String getPermutation(int n, int k) {\n\n StringBuilder str = new StringBuilder();\n for (int i = 1; i <= n; i++) {\n str.append(i);\n }\n permute(k, str.toString().toCharArray(), 0);\n return result;\n }", "public static void main(String[] args) {\n LetterCasePermutation permutation = new LetterCasePermutation();\n List<String> strings = permutation.letterCasePermutation(\"a1B2\");\n System.out.println(strings);\n }", "private static String getPermutation(long k, int strlen, Map<Character, CharCount> map, List<Character> chars) {\n if (map.isEmpty()) {\n return \"\";\n }\n long n = getExpectedSize(strlen, map);\n \n if (k > n) return \"\"; // invalid. Should never reach here.\n long f = 0;\n \n \n for (int i = 0; i < chars.size(); i++) {\n Character curChar = chars.get(i);\n CharCount charCount = map.get(curChar);\n charCount.decrementCount();\n strlen--;\n if (charCount.count == 0) {\n map.remove(curChar);\n chars.remove(i);\n }\n \n long temp = getExpectedSize(strlen, map);\n f += temp;\n if(f <= k){\n charCount.incrementCount();\n strlen++;\n if (charCount.count == 1) {\n map.put(curChar, charCount);\n chars.add(i, curChar);\n }\n continue;\n }\n else{\n f = f - temp;\n return curChar + getPermutation(k - f, strlen, map, chars);\n }\n }\n \n //SHould not reach here unless k is too large\n return \"\";\n }", "public static String nextPermutation(String str) throws InvalidNextPermutationException{\n char[] charArray = str.toCharArray();\n int i = charArray.length - 1;\n\n while(i>0 && charArray[i-1]>=charArray[i]){\n \ti--;\n }\n if(i<=0){\n \tthrow new InvalidNextPermutationException();\n }\n\n int j = charArray.length - 1;\n\n while(charArray[j]<=charArray[i-1]){\n \tj--;\n }\n\n swap(charArray,i-1,j);\n\n j = charArray.length - 1;\n\n while(i<j){\n \tswap(charArray,i,j);\n \ti++;\n \tj--;\n }\n\n return new String(charArray);\n }", "public List<String> generatePalindromes(String s) {\n int[] letters = new int[256];\n int oddCount = 0;\n for(char c: s.toCharArray()) oddCount += ++letters[c] % 2 != 0 ? 1 : -1;\n if(oddCount > 1) return res;\n \n // put half of letters into arraylist\n for(int i = 0; i < letters.length; i++) {\n Character curr = (char)i;\n if(letters[i] % 2 == 1) middle = curr;\n for(int j = 0; j < letters[i] / 2; j++) list.add(curr);\n }\n\n // get the permutation\n getPermutation(new boolean[list.size()], new StringBuilder());\n return res;\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\n\\nEnter the string to find all possible arrangements (Eg : 'xyz', 'pals', 'palsj' )\\n\\n\");\n\t\t\n\t\tString str = scan.nextLine();\n\t\tscan.close();\n\n\t\tchar[] chArr = str.toCharArray();\n\t\tchar[] temp1 = new char[chArr.length];\n\n\t\ttemp1 = chArr;\n\n\t\tint len = chArr.length;\n \n \n\t\tfor (int cnt = 0; cnt < len; cnt++) {\n\t\t\t\n\t\t\tSystem.out.println(\"letter : \" + temp1[0]);\n\n\t\t\t\n\t\t\tfor (int i = 1; i < len; i++) {\n\n\t\t \ttemp1 = printString(temp1); // to print the first swap\n\t\t\t}\n\n\t\t\ttemp1 = moveString1(temp1, 0);\n\n \n\t\t}\n\n\t}", "public static void main(String[] args) {\n String s = \"12345\";\n System.out.println(letterCasePermutation(s));\n }", "private List<List<Item>> generatePermutations(final ItemSet itemSet) {\n\t\tList<List<Item>> result = new ArrayList<List<Item>>();\n\n\t\t// If the item set is zero, return an empty list\n\t\tif (itemSet.size() == 0) {\n\t\t\tresult.add(new ArrayList<Item>());\n\t\t\treturn result;\n\t\t}\n\n\t\t// Get and Remove the first item from the set\n\t\tItem firstElement = itemSet.first();\n\t\titemSet.remove(firstElement);\n\n\t\t// Generate the permutations of the smaller item set\n\t\tList<List<Item>> permutations = generatePermutations(itemSet);\n\n\t\t// For each permutation...\n\t\tfor (List<Item> permutation : permutations) {\n\t\t\t// Add the first element to the i-th position\n\t\t\tfor (int index = 0; index <= permutation.size(); index++) {\n\t\t\t\tList<Item> temp = new ArrayList<Item>(permutation);\n\t\t\t\ttemp.add(index, firstElement);\n\t\t\t\tresult.add(new ArrayList<Item>(temp));\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static int[] finalPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tpermutedText[i*8 + 0] = inputText[39 - i];\n\t\t\tpermutedText[i*8 + 1] = inputText[ 7 - i];\n\t\t\tpermutedText[i*8 + 2] = inputText[47 - i];\n\t\t\tpermutedText[i*8 + 3] = inputText[15 - i];\n\t\t\tpermutedText[i*8 + 4] = inputText[55 - i];\n\t\t\tpermutedText[i*8 + 5] = inputText[23 - i];\n\t\t\tpermutedText[i*8 + 6] = inputText[63 - i];\n\t\t\tpermutedText[i*8 + 7] = inputText[31 - i];\n\t\t}\n\t\treturn permutedText;\n\t}", "static void permute(String fix, String p)\n\t\t{\n\t\t \n\t\t if(p.length()==1)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n\t\t }\n\t\t //if length is 2, print same and also reverse.\n\t\t if(p.length() == 2)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n String sn = p.charAt(1) + \"\" + p.charAt(0);\n System.out.print(fix + sn + \" \");\n\t\t }\n\t\t if(p.length()>2)\n\t\t {\n\t\t for(int i=0;i<p.length();i++)\n\t\t {\n\t\t //ith as fix character.\n\t\t String f = fix + p.charAt(i);\n\t\t //including charcater before the fixed one and also all the chars after the fixed one.\n\t\t String remain = p.substring(0,i) + p.substring(i+1,p.length());\n\t\t permute(f,remain);\n\t\t }\n\t\t \n\t\t }\n\t\t \n\t\t}", "public String getPermutation1(int n, int k) {\n\t\t ArrayList<String> rs = new ArrayList<String>();\n\t\t char[] data = new char[n];\n\t\t for (int i = 0; i < n ; ++i)\n\t\t\t data[i] = String.valueOf(i + 1).charAt(0);\n\t\t permutate(data, 0, rs);\n\t\t return rs.get(k); \n\t }", "public static void main(String[] args) {\n\t\tString a = \"abc\";\n\t\tString b = \"cbb\";\n\t\tPermutationString p = new PermutationString();\n\t\tSystem.out.println(p.permutationStrin(a,b));\n\n\t}", "static List<Permutation> genPermutations(int n) {\n List<Permutation> result = IntStream.rangeClosed(0, n - 2)\n .parallel()\n .mapToObj(fixed -> {\n List<Permutation> ls = new ArrayList<>();\n\n // Recall our logic about permutation configurations:\n //\n // N = fixed + l_1 + l_2 + ... + l_k\n //\n // Since we know the `fixed`, we need to generate the list\n // of l_i, we just need to generate all the list of numbers\n // that sum to N-fixed.\n List<int[]> cyclesList = numbersSumToN(n - fixed);\n\n for (int[] cycles : cyclesList) {\n Permutation p = makePermutation(n, fixed, cycles);\n ls.add(p);\n }\n return ls;\n })\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n\n // Our result would be incomplete without the identity permutation.\n result.add(new Permutation(n, new int[0], ONE));\n return result;\n }", "static ArrayList<String> powerSet(String s)\n {\n // add your code here\n ArrayList<String> arr = new ArrayList<String>();\n String op = \"\";\n solve(s,op,arr);\n Collections.sort(arr);\n return arr;\n \n }", "public static void permute(String str, String prevLetter) {\n if (str.length() < 2) {\n if (prevLetter != null) {\n System.out.println(prevLetter + str);\n }\n } else {\n // Loop through each letter, and permute the string for the case where each letter is first\n for (int i = 0; i < str.length(); i ++) {\n\n String firstLetter = str.substring(i,i+1);\n\n String remainingLetters = str.substring(0,i) + str.substring(i+1);\n\n if (prevLetter != null) {\n permute(remainingLetters, prevLetter + firstLetter);\n } else {\n permute(remainingLetters, firstLetter);\n }\n\n }\n }\n }", "public static int[] initialPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\t\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tif(i < 4){\n\t\t\t\tpermutedText[i*8 + 0] = inputText[57 + i*2];\n\t\t\t\tpermutedText[i*8 + 1] = inputText[49 + i*2];\n\t\t\t\tpermutedText[i*8 + 2] = inputText[41 + i*2];\n\t\t\t\tpermutedText[i*8 + 3] = inputText[33 + i*2];\n\t\t\t\tpermutedText[i*8 + 4] = inputText[25 + i*2];\n\t\t\t\tpermutedText[i*8 + 5] = inputText[17 + i*2];\n\t\t\t\tpermutedText[i*8 + 6] = inputText[ 9 + i*2];\n\t\t\t\tpermutedText[i*8 + 7] = inputText[ 1 + i*2];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpermutedText[i*8 + 0] = inputText[56 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 1] = inputText[48 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 2] = inputText[40 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 3] = inputText[32 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 4] = inputText[24 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 5] = inputText[16 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 6] = inputText[ 8 + (i-4)*2];\n\t\t\t\tpermutedText[i*8 + 7] = inputText[ 0 + (i-4)*2];\n\t\t\t}\n\t\t}\n\t\treturn permutedText;\n\t}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tString l = br.readLine();\n\t\tArrayList<String> salida= new ArrayList<>();\n\t\tArrayList<String> a= new ArrayList<>();\n\t\tint r=0;\n\t\twhile (!l.equals(\"\")) {\n\t\t\t\n\t\t\tLinkedList<Character> conjunto = new LinkedList<>();\n\t\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\t\tconjunto.add(l.charAt(i));\n\t\t\t}\n\t\t\t/*a = permutar(\"\", conjunto,salida);\n\t\t\tSystem.err.println(a.toString());*/\n\t\t\tsalida.clear();\n\t\t\tr = per(\"\", conjunto,salida);\n\t\t\tpw.println(r);\n\t\t\tr=0;\n\t\t\tl = br.readLine();\n\t\t}\n\t\tpw.close();\n\t}", "private ArrayList<int[]> buildPermutations(int n) {\n mPermutations = new ArrayList();\n mPermuteArray = new int[n];\n for (int i = 0; i < n; i++)\n mPermuteArray[i] = i;\n generate(n);\n return mPermutations;\n }", "void genPermute() {\n\t\tpermute = new ArrayList<Integer>();\n\t\tfor(int idx = 0; idx < dim(); idx++)\n\t\t\tpermute.add(idx);\n\t\tjava.util.Collections.shuffle(permute);\n\t}", "public static void main(String[] args)\n {\n int[] arr = new int[]{1,2,3};\n List<List<Integer>> result = new ArrayList<>();\n Permutation permutation = new Permutation();\n permutation.permuteInteger(arr,result, 0, arr.length);\n\n System.out.println(result);\n }", "public static List<Integer> allAnagrams(String s, String l) {\n List<Integer> ans = new ArrayList<Integer>();\n \n if(s == null || s.length() < 1 || l == null || l.length() < 1)\n return ans;\n StringBuilder sb = new StringBuilder();\n char[] sarray = s.toCharArray();\n permute(sarray,sb,0);\n for(int i = 0; i < l.length() - s.length()+1; i++){\n if(set.contains(l.substring(i,i+s.length()))){\n ans.add(i);\n }\n }\n return ans;\n }", "public static List<String> solve8Dames() {\n return permute(new ArrayList<String>(), \"\", \"01234567\");\n }", "static boolean permutation(String s, String t){\n if(s.length() != t.length()){\n return false;\n }\n\n Map<Character, Integer> sCount = new HashMap<>();\n Map<Character, Integer> tCount = new HashMap<>();\n\n for(int i = 0;i < s.length();i++){\n Character sChar = s.charAt(i);\n Character tChar = t.charAt(i);\n sCount.put(sChar, sCount.getOrDefault(sChar, 0) + 1);\n tCount.put(tChar, tCount.getOrDefault(tChar, 0) + 1);\n }\n //Character and Integer objects have their equals methods defined\n return sCount.equals(tCount);\n }", "public List<String> generatePalindromes(String s) {\n HashSet<String> hash = new HashSet<>();\n HashMap<Character,Integer> map = new HashMap<>();\n \n for(int i = 0; i < s.length();i++){\n map.put(s.charAt(i),map.getOrDefault(s.charAt(i),0)+1);\n }\n \n int count = 0;\n char single = 0;\n for(char key : map.keySet()){\n int x = map.get(key);\n if(x%2==1){count++;\n single = key;}\n }\n if(count > 1) return new ArrayList<>(hash);\n \n StringBuilder sb = new StringBuilder();\n for(char key : map.keySet()){\n for(int i = 0; i< map.get(key)/2; i++){\n sb.append(key);\n }\n }\n backtracking(hash,sb.length(),sb.toString(),single,\"\");\n return new ArrayList<>(hash);\n }", "public static void main(String[] args) {\n\tint num=4321;\r\n\tString numString=Integer.toString(num);\r\n\tchar[] toBeSorted=numString.toCharArray();\r\n\tchar[] numArray=numString.toCharArray();\r\n\tint maxIndex=0;\r\n\t//check if the given number has no next permutation\r\n\tboolean nextPermu=false;\r\n\tfor(int i=0;i<numArray.length-1;i++){\r\n\t\tif(numArray[i]<numArray[i+1]){\r\n\t\t\tnextPermu=true;\r\n\t\t}\r\n\t}\r\n\tif(!nextPermu){\r\n\t\tSystem.out.println(\"not next permutation possible\");\r\n\t\treturn;\r\n\t}\r\n\r\n\t\r\n\tfor(int i=0;i<numArray.length;i++){\r\n\t\tif(numArray[i]>numArray[maxIndex]){\r\n\t\t\tmaxIndex=i;\r\n\t\t}\r\n\t}\r\n\tjava.util.Arrays.sort(toBeSorted);\r\n\tif(String.copyValueOf(toBeSorted).equals(numString)){\r\n\t\t//swap last 2 indexes\r\n\t\tchar temp=numArray[numArray.length-1];\r\n\t\tnumArray[numArray.length-1]=numArray[numArray.length-2];\r\n\t\tnumArray[numArray.length-2]=temp;\r\n\t\tSystem.out.println(String.copyValueOf(numArray));\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tjava.util.Arrays.sort(numArray, maxIndex, numArray.length);\r\n\tSystem.out.println(String.copyValueOf(numArray));\r\n\t//swap maxIndex and maxIndex-1;\r\n\tchar temp=numArray[maxIndex];\r\n\tnumArray[maxIndex]=numArray[maxIndex-1];\r\n\tnumArray[maxIndex-1]=temp;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"abccbc\";\n\t\t\n\t\tlong[][] dp = new long[str.length()][str.length()];\t\n\t\t\n\t\tfor (int g=0 ; g<str.length() ; g++) {\n\t\t\t\n\t\t\tfor (int i=0 , j=g ; j<str.length() ; i++ , j++) {\n\t\t\t\tif (g == 0) dp[i][j] = 1;\n\t\t\t\t\n\t\t\t\telse if (g == 1) dp[i][j] = (str.charAt(i) == str.charAt(j)) ? 3 : 2;\n\t\t\t\t\n\t\t\t\telse dp[i][j] = (str.charAt(i) == str.charAt(j)) ? (dp[i][j-1] + dp[i+1][j] + 1) : (dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1]);\n\t\t\t\t\n\t\t\t\t//if (dp[i][j] && str.substring(i, j+1).length() > result.length()) result = str.substring(i, j+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[0][str.length()-1]);\n\t}", "private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}", "public static void permutation3(StringBuffer sb, int k, Set<String> set)\r\n\t{\r\n\t\tif(k == sb.length())\r\n\t\t{\r\n\t\t\tset.add(sb.toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\tfor(int i =k ;i < sb.length();i++)\r\n\t\t{\r\n\t\t\tswap(sb,k,i);\r\n\t\t\tpermutation3(sb,k+1, set);\r\n\t\t\tswap(sb,i,k);\r\n\t\t}\r\n\t}", "public void permute(){\n if (pos == last) a.add(in);\n else {\n for (int ii = pos; ii <= last; ii++) {\n in = swap(in, pos, ii);\n pos += 1;\n permute();\n pos -= 1;\n in = swap(in, pos, ii);\n if (a.contains(in)) continue;\n else a.add(in);\n }\n }\n }", "public String getPermutation(int n, int k) {\n if(n<1)\n return null;\n List<Long> list=new LinkedList<Long>();\n for(long i=1;i<=n;i++){\n list.add(i);\n }\n long kk=k-1;\n StringBuilder res=new StringBuilder();\n long total=1;\n for(long i=2;i<n;i++){\n total*=i;\n }\n for(long i=n-1;i>=0;i--){\n res.append(list.remove((int)(kk/total)));\n kk=kk%total;\n if(i>0)\n total=total/i;\n }\n return res.toString();\n }", "public List<List<String>> groupAnagrams_var2(String[] strs) {\n Map<Map<Character, Integer>, List<String>> map = new HashMap<>();\n for (String currStr : strs) {\n Map<Character, Integer> currMap = new HashMap<>();\n for (int i = 0; i < currStr.length(); i++)\n currMap.put(currStr.charAt(i), currMap.getOrDefault(currStr.charAt(i), 0) + 1);\n map.computeIfAbsent(currMap, k -> new LinkedList<>()).add(currStr);\n }\n\n return new LinkedList<>(map.values());\n }", "private static List<List<Integer>> getPermutation(List<Integer> array){\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n getPermutation(array,new ArrayList<>(),result);\n return result;\n }", "public static void main(String[] args) {\n\t\tString str1 =\"fxstvf\";\n\t\tString str2 =\"fxstvf\";\n\t\tSystem.out.println(isPermutation(str1, str2));\n\t\n\n\n\t}", "public static void main(String[] args) throws Exception {\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tint tc = scn.nextInt();\r\n\t\tfor(int t=1; t<=tc; t++) {\r\n\t\t\tint n = scn.nextInt();\r\n\t\t\tint k = scn.nextInt();\r\n\t\t\tString str = scn.next();\r\n\t\t\tString arr[] = new String[n];\r\n\t\t\tarr = str.split(\"\");\r\n\t\t\tLinkedList<String> list = new LinkedList<>();\r\n\t\t\tLinkedList<Integer> result = new LinkedList<>();\r\n\t\t\tfor(int i=0; i<n; i++) {\r\n\t\t\t\tlist.add(arr[i]);\r\n\t\t\t}\r\n\t\t\tint comeback = 0;\r\n\t\t\twhile(comeback<4) {\r\n\t\t\t\tint cnt = 0;\r\n\t\t\t\tcomeback = 0;\r\n\t\t\t\tString st = \"\";\r\n\t\t\t\tfor(int i=0; i<n; i++) {\r\n\t\t\t\t\tif(cnt==(n/4)-1) {\r\n\t\t\t\t\t\tcnt = 0;\r\n\t\t\t\t\t\tst += list.get(i);\r\n\t\t\t\t\t\tint tmp = Integer.parseInt(st, 16);\r\n\t\t\t\t\t\tif(!isHave(result,tmp) && (result.size()>0)) {\r\n\t\t\t\t\t\t\tresult.add(tmp);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(result.size() == 0){\r\n\t\t\t\t\t\t\tresult.add(tmp);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tcomeback++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tst = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tst+= list.get(i);\r\n\t\t\t\t\t\tcnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\trotate(list);\r\n\t\t\t}\r\n\t\t\tCollections.sort(result);\r\n\t\t\tint cnt = 0;\r\n\t\t\tSystem.out.println(\"#\"+t+\" \"+result.get(result.size()-k));\t\t\t\r\n\t\t}\r\n\t}", "public List<List<String>> groupAnagramsI(String[] strs) {\n\t\tList<List<String>> res = new ArrayList<>();\n\t\tif (strs == null || strs.length == 0) return res;\n\t\tint[] primes = new int[] {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103};\n\t\tMap<Integer, List<String>> map = new HashMap<>();\n\t\tfor (String str: strs) {\n\t\t\tint key = 1;\n\t\t\tfor (char c: str.toCharArray()) {\n\t\t\t\tkey *= primes[c - 'a'];\n\t\t\t}\n\t\t\tif (!map.containsKey(key)) map.put(key, new ArrayList<String>());\n\t\t\tmap.get(key).add(str);\n\t\t}\n\t\tfor (List<String> list: map.values()) {\n\t\t\tCollections.sort(list);\n\t\t\tres.add(list);\n\t\t}\n\t\treturn res;\n\t}", "public Set<List<String>> getCombination(int[] inHand) {\n Set<List<String>> result = new HashSet<>();\n for (int i = 0; i < inHand.length; i++) {\n if (inHand[i] < 1) continue;\n int[] copyHand = copyArray(inHand);\n //possibility of A AA AAA\n for (int j = 1; j <= inHand[i]; j++) {\n if (j == 1) {\n String cSet = \"\";\n\n for (int seq = i; seq <= i + 2; seq++) {\n if (seq >= inHand.length || copyHand[seq] < 1) continue;\n cSet += seq;\n copyHand[seq] -= 1;\n }\n// System.out.println(\"i: \" + i + \" j: \" + j+\"inhand: \" + arrayToString\n// (inHand));\n\n Set<List<String>> a = getCombination(copyHand);\n Set<List<String>> newA = new HashSet<>();\n for (List<String> s : a) {\n s.add(cSet);\n s.sort(Comparator.naturalOrder());\n if (s.equals(\"\")) continue;\n newA.add(s);\n }\n result.addAll(newA);\n continue;\n }\n\n String currentSet = \"\";\n int[] copyOfInHand = copyArray(inHand);\n for (int t = 0; t < j; t++) {\n currentSet += i;\n }\n\n copyOfInHand[i] -= j;\n Set<List<String>> after = getCombination(copyOfInHand);\n Set<List<String>> newAfter = new HashSet<>();\n for (List<String> s : after) {\n s.add(currentSet);\n s.sort(Comparator.naturalOrder());\n newAfter.add(s);\n }\n result.addAll(newAfter);\n }\n }\n if (result.isEmpty()) result.add(new ArrayList<>());\n int min = result.stream().map(set -> set.size()).min(Comparator\n .naturalOrder()).get();\n Set<List<String>> minSets = result.stream().filter(set -> set.size() == min)\n .collect(Collectors\n .toSet());\n// combinationCache.put(inHand, minSets);\n return minSets;\n }", "public static void genPerms(String pre, String str, int k, int len, Set<String> hSet) {\n if (k == len) {\n hSet.add(pre + str);\n }\n\n for (int i = 0; i < str.length(); i++) {\n String x = pre + str.charAt(i);\n String y = str.substring(0, i) + str.substring(i + 1);\n genPerms(x, y, k + 1, len, hSet);\n }\n }", "public static String run() {\r\n\t\t// Initialize\r\n\t\tint[] array = new int[10];\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = i;\r\n\r\n\t\t// Permute\r\n\t\tfor (int i = 0; i < 999999; i++) {\r\n\t\t\tif (!nextPermutation(array))\r\n\t\t\t\tthrow new AssertionError();\r\n\t\t}\r\n\r\n\t\t// Format output\r\n\t\tString ans = \"\";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tans += array[i];\r\n\t\treturn ans;\r\n\t}", "private static void findPermutations(int index, List<Integer> nums) {\n\n }", "public static <T> List<T[]> permutation(T[] arr) {\n T[] array = arr.clone();\n List<T[]> result = new LinkedList<>();\n backtracking(array, 0, result);\n return result;\n }", "public static void main(String[] args) {\n\t\tString string1 = \"acbdfbdfacb\";\n\t\tint length = string1.length();\n\t\tString[] sub = new String[length*(length+1)/2];\n\t\tint temp = 0;\n\t\tfor(int i =0;i<length;i++) {\n\t\t\tfor(int j = i;j<length;j++) {\n\t\t\t\tString parts = string1.substring(i,j+1);\n\t\t\t\tsub[temp] = parts;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t}\n\t\tfor(int j =0;j<sub.length;j++) {\n\t\t\tSystem.out.println(sub[j]);\n\t\t}\n\t\tArrayList<String> rep = new ArrayList<String>();\n\t\tfor(int i=0;i<sub.length;i++) {\n\t\t\tfor(int j =i+1;j<sub.length;j++) {\n\t\t\t\tif(sub[i].equals(sub[j])) {\n\t\t\t\t\trep.add(sub[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint largestString = 0;\n\t\tSystem.out.println(rep);\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\t\tif(rep.get(k).length()>largestString) {\n\t\t\t\tlargestString = rep.get(k).length();\n\t\t\t}\t\t\n\t\t}\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\tif(rep.get(k).length()==largestString) {\n\t\t\tSystem.out.println(\"the longest repeating sequence in a string : \"+rep.get(k));\n\t\t}\n\t\t}\n\t}", "Permutation(String cycles, Alphabet alphabet) {\n _alphabet = alphabet;\n initMaps(cycles);\n }", "public static void main(String[] args) {\n\t\tString str = \"66. All Valid Permutations Of Parentheses I\";\n//\t\tString str = \"Determine If One String Is Another's Substring\";\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t\tSystem.out.println(leet(str));\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t}", "public static List allPerm(Object input[]) {\r\n List<Object[]> retVal = new ArrayList(Math.factorial(input.length));\r\n allPerm(0, input, retVal);\r\n return retVal;\r\n }", "private void permutation(int[] ans, int l, int r) {\n if (l == r)\n perm.add(ans.clone());\n else {\n for (int i = l; i <= r; i++) {\n ans = swap(ans, l, i);\n permutation(ans, l + 1, r);\n ans = swap(ans, l, i);\n }\n }\n }", "public static String[] allCombinations(String X)\r\n\t{\r\n\t\tint n=X.length(),count=(int) (Math.pow(2, n)-1);\r\n\t\tString[]list=new String[count];\r\n\t\tint[]bin=new int[n];\r\n\t\tfor(int i=0;i<count;i++)\r\n\t\t{\r\n\t\t\tplus1(bin);\r\n\t\t\tString t=\"\";\r\n\t\t\tfor(int j=0;j<n;j++)\r\n\t\t\t{\r\n\t\t\t\tif(bin[j]==1)\r\n\t\t\t\t\tt=t+X.charAt(j);\r\n\t\t\t}\r\n\t\t\tlist[i]=t;\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "String algorithm();", "public void getPermutation(boolean[] used, StringBuilder sb) {\n if(sb.length() == list.size()) {\n if(middle == null) res.add(sb.toString() + sb.reverse().toString());\n else res.add(sb.toString() + middle + sb.reverse().toString());\n sb.reverse(); // need to restore the original stringbuilder\n return;\n }\n \n for(int i = 0; i < list.size(); i++) {\n // avoid duplicated !!! very important\n // when a number has the same value with its previous, we can use this number only if his previous is used\n // because if we choose the second one first, and then to the next recursion, the first one is added,\n // duplicate occurs\n if((i > 0 && list.get(i) == list.get(i - 1) && !used[i - 1]) || used[i]) continue;\n \n used[i] = true;\n sb.append(list.get(i));\n \n getPermutation(used, sb);\n \n // backtracking\n used[i] = false;\n sb.deleteCharAt(sb.length() - 1);\n }\n }", "List<Integer> allAnagrams(String s, String l) {\n\t\t// Write your solution here.\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tif (s == null || l == null || s.length() == 0 || l.length() == 0) {\n\t\t\treturn result;\n\t\t}\n\t\tif (s.length() > l.length()) {\n\t\t\treturn result;\n\t\t}\n\t\tMap<Character, Integer> map = countMap(s);\n\t\tint match = 0;\n\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\tchar temp = l.charAt(i);\n\t\t\tInteger count = map.get(temp);\n\t\t\tif (count != null) {\n\t\t\t\tmap.put(temp, count - 1);\n\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tmatch++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (i >= s.length()) {\n\t\t\t\ttemp = l.charAt(i - s.length());\n\t\t\t\tcount = map.get(temp);\n\t\t\t\tif (count != null) {\n\t\t\t\t\tmap.put(temp, count + 1);\n\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\tmatch--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (match == map.size()) {\n\t\t\t\tresult.add(i - s.length() + 1);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "char permute(char p) {\n return _alphabet.toChar(permute(_alphabet.toInt(p)));\n }", "public byte[] getPermutation() {\n byte[] p = new byte[48];\n for(int i = 0; i < 24; i+=3) {\n int k = co[i/3];\n if(k == 0) {}\n else if(k == 1) {k=2;}\n else {k=1;}\n int r = cp[i/3] * 3 + k;\n p[i] = (byte) r;\n p[i+1] = (byte) (((r-r/3*3+1)%3)+r/3*3);\n p[i+2] = (byte) (((r-r/3*3+2)%3)+r/3*3);\n }\n for(int i = 24; i < 48; i +=2) {\n int r = ep[(i-24)/2]*2 + eo[(i-24)/2];\n p[i] = (byte) (r + 24);\n p[i+1] = (byte) ((r-r/2*2+1)%2 + r/2*2 + 24);\n }\n return p;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(checkPermutation(\"abcab\", \"aabbc\"));\n\t\tSystem.out.println(checkPermutation(\"aaaa\", \"aaaa\"));\n\n\t}", "public static boolean isPermutation(String str) {\n if (str == null || str.equals(\"\")) {\n return false;\n }\n char[] characters = new char[256];\n for (int i = 0; i < str.length(); i++) {\n characters[str.charAt(i)]++;\n }\n int count = 0;\n for (char c : characters) {\n if (!(c == 0 || c % 2 == 0)) {\n if (count == 0) {\n count++;\n } else {\n return false; // allow only one character to occur once\n }\n }\n }\n return true;\n }", "public static void displayPermutation(String s1, String s2) {\n if (s1.length() == 0) {\n System.out.println(s2 + \" \");\n }\n\n for (int i = 0; i < s1.length(); i++) {\n\n // current character at index (i) of s1\n char ch = s1.charAt(i);\n\n // Rest of the string after excluding the character at current index\n String ros = s1.substring(0, i) + s1.substring(i + 1);\n\n // recursive call\n displayPermutation(ros, s2 + ch);\n }\n }", "private void heapPermutation(char[] a, int size, int n, List<String> l) {\n // If size is 1, store the obtained permutation\n if (size == 1)\n l.add(new String(a));\n\n for (int i = 0; i < size; i++) {\n heapPermutation(a, size - 1, n, l);\n\n // If size is odd, swap first and last element\n if (size % 2 == 1) {\n char temp = a[0];\n a[0] = a[size - 1];\n a[size - 1] = temp;\n }\n\n // If size is even, swap i-th and last element\n else {\n char temp = a[i];\n a[i] = a[size - 1];\n a[size - 1] = temp;\n }\n }\n }" ]
[ "0.7506549", "0.7449356", "0.7420528", "0.73074263", "0.72489446", "0.7246433", "0.7245037", "0.7070538", "0.70698994", "0.7050541", "0.7029937", "0.6962339", "0.69396424", "0.69221115", "0.68112355", "0.6801636", "0.67898774", "0.6788824", "0.6786846", "0.67478484", "0.6747728", "0.6747478", "0.6656173", "0.662062", "0.64974594", "0.64829516", "0.6465528", "0.6444111", "0.64202374", "0.63936317", "0.63835883", "0.6356745", "0.63514924", "0.6298645", "0.6294894", "0.62720025", "0.6263596", "0.62553746", "0.6252217", "0.6210683", "0.6205824", "0.6159486", "0.6097938", "0.60585827", "0.60392505", "0.60183114", "0.6017392", "0.60071725", "0.60041445", "0.59951645", "0.595006", "0.5922264", "0.5890249", "0.5861252", "0.5839559", "0.5806785", "0.5803696", "0.57902753", "0.5777903", "0.57744914", "0.57647073", "0.5763375", "0.5756813", "0.5753628", "0.5715403", "0.56944305", "0.56741506", "0.5657494", "0.5628354", "0.55959517", "0.55713916", "0.55690295", "0.5566422", "0.5554852", "0.55464464", "0.55139786", "0.54862726", "0.54706943", "0.54622704", "0.5453235", "0.54471755", "0.54404044", "0.5433367", "0.5425318", "0.5415233", "0.54142183", "0.54109454", "0.53954697", "0.53915364", "0.5388818", "0.5382895", "0.5381365", "0.5379823", "0.5368476", "0.53465396", "0.53408813", "0.533913", "0.5329762", "0.53217703", "0.5319769" ]
0.7863326
0
This method pass the given string to get permutation by both i.e Recursive & Iterative approach. And matches the result by both methods then prints result according to it
public static void checkPermutation(String str) { int length = str.length(); //list to store permutations List<String> stringByRecursive = new ArrayList<>(); List<String> stringByIteration = new ArrayList<>(); List<String> listOfPermutByRecursive = getPermutationByRecursion(str, stringByRecursive, 0, length-1); List<String> listOfPermutByIterate = getPermutationByIteration(str, "", stringByIteration); //sorting the permutation list Collections.sort(listOfPermutByRecursive); Collections.sort(listOfPermutByIterate); System.out.println("\nPermutation of String : "+str+" By Recursion Approch \n"); System.out.println(listOfPermutByRecursive); System.out.println("\nPermutation of String : "+str+" By Iterative Approch \n"); System.out.println(listOfPermutByIterate); //checking both list are same / not if(listOfPermutByIterate.equals(listOfPermutByRecursive)) { System.out.println("\nPermutation Given By Iterative Approch & Recursion Approch Are Same"); } else { System.out.println("\nPermutation Given By Iterative Approch & Recursion Approch Are Not Same"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int printPermutn(String str, String ans)\n {\n\n // If string is empty\n if (str.length() == 0) {\n if (ans.contains(\"123\") || ans.contains(\"321\") || ans.contains(\"234\") || ans.contains(\"345\") || ans.contains(\"456\") || ans.contains(\"654\") || ans.contains(\"543\") || ans.contains(\"432\") || ans.contains(\"321\")) {\n return 0;\n }\n System.out.println(ans);\n return 1;\n }\n int res = 0;\n for (int i = 0; i < str.length(); i++) {\n\n // ith character of str\n char ch = str.charAt(i);\n\n // Rest of the string after excluding\n // the ith character\n String ros = str.substring(0, i) +\n str.substring(i + 1);\n // Recurvise call\n res += printPermutn(ros, ans + ch);\n }\n return res;\n }", "public static void permutation(String str) { \n permutation(\"\", str); \n}", "public static void permutationRecursion(String str, String ans) {\n\t\tif (str.length() == 0) {\r\n\t\t\tSystem.out.print(ans + \" \");\r\n\t\t\tlistPermutationRecursion.add(ans);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\r\n\t\t\t// ith character of str\r\n\t\t\tchar ch = str.charAt(i);\r\n\r\n\t\t\t// Rest of the string after excluding\r\n\t\t\t// the ith character\r\n\t\t\tString temp = str.substring(0, i) + str.substring(i + 1);\r\n\r\n\t\t\t// Recurvise call\r\n\t\t\tpermutationRecursion(temp, ans + ch);\r\n\t\t}\r\n\r\n\t}", "public static void permutationIterative(String str) {\n\t\tchar[] chars = str.toCharArray();\r\n\r\n\t\t// Weight index control array\r\n\t\tint[] p = new int[str.length()];\r\n\r\n\t\t// i, j represents upper and lower bound index resp. for swapping\r\n\t\tint i = 1, j = 0;\r\n\r\n\t\t// Print given string, as only its permutations will be printed later\r\n\t\tSystem.out.print(str);\r\n\t\tlistPermutationIterative.add(str);\r\n\t\twhile (i < str.length()) {\r\n\t\t\tif (p[i] < i) {\r\n\t\t\t\t// if i is odd then j = p[i], otherwise j = 0\r\n\t\t\t\tj = (i % 2) * p[i];\r\n\r\n\t\t\t\t// swap(a[j], a[i])\r\n\t\t\t\tswap(chars, i, j);\r\n\r\n\t\t\t\t// Print current permutation\r\n\t\t\t\tSystem.out.print(\" \" + String.valueOf(chars));\r\n\t\t\t\tlistPermutationIterative.add(String.valueOf(chars));\r\n\t\t\t\tp[i]++; // increase index \"weight\" for i by one\r\n\t\t\t\ti = 1; // reset index i to 1\r\n\t\t\t}\r\n\t\t\t// otherwise p[i] == i\r\n\t\t\telse {\r\n\t\t\t\t// reset p[i] to zero\r\n\t\t\t\tp[i] = 0;\r\n\r\n\t\t\t\t// set new index value for i (increase by one)\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static List<String> getPermutationByIteration(String str, String permutString, List<String> stringByIteration) {\n \t\n \t // If string is empty\n if (str.length() == 0) {\n \n stringByIteration.add(permutString);\n }\n \n for (int i = 0; i < str.length(); i++) {\n \n char ch = str.charAt(i);\n \n //Rest of the string after excluding the ith character\n String restOfString = str.substring(0, i) + str.substring(i + 1);\n \t\n getPermutationByIteration(restOfString, permutString + ch, stringByIteration);\n \n }\n \n \treturn stringByIteration;\n }", "public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void testPermutation() {permutation(\"abcd\");\n\t\t//0 1 0 0 9\n\t//\tpermute(\"aaab\");\n\t\t//\n\t\tpermutation(\"aaabc\");\n\t\tpermuteWithDups(\"aaabc\");\n\t}", "public List<String> permutationFinder(String str){\n\t\tList<String> perm = new ArrayList<String>();\n\n\t\tif(str == null) {\n\t\t\treturn null;\n\t\t}else if(str.length() ==0) {\n\t\t\tperm.add(\"\");\n\t\t\treturn perm;\n\t\t\t\n\t\t}\n\t\t\n\t\tchar initial = str.charAt(0);\n\t\tSystem.out.println(\"initial : \" + initial);\n\t\tString rem = str.substring(1);\n\t\tSystem.out.println(\"rem : \" + rem);\n List<String> words = permutationFinder(rem);\n\t\tSystem.out.println(\"words : \"+ words);\n\t\t\n\t\tfor(String strNew : words) {\n\t\t\tSystem.out.println(\"strNew \" +strNew );\n\t\t\tSystem.out.println(\"words : \"+ words);\n\t\t\tfor(int i=0 ; i <= strNew.length(); i++) {\n\t\t\t\tSystem.out.println(\"i: \" + i);\n\t\t\t\tperm.add(charInsert(strNew , initial , i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn perm;\n\t}", "public static List<String> getPermutationByRecursion(String str, List<String>stringByRecursion, int l, int r) {\n \n \tif(l == r) {\n \n stringByRecursion.add(str);\n }\n \t\n else{\n \t\n for(int i = l; i <= r ; i++){\n \n \tstr = swap(str, l, i);\n getPermutationByRecursion(str, stringByRecursion, l+1, r);\n str = swap(str, l, i);\n\n }\n }\n return stringByRecursion;\n }", "public void permutation2(String s){\r\n\t\tHashMap<Character,Integer> m = new HashMap<Character, Integer>();\r\n\t\tfor(int i=0;i<s.length();i++){\r\n\t\t\tif(m.containsKey(s.charAt(i))){\r\n\t\t\t\tint val = m.get(s.charAt(i));\r\n\t\t\t\tm.put(s.charAt(i), ++val);\r\n\t\t\t}else{\r\n\t\t\t\tm.put(s.charAt(i), 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint [] count = new int[m.size()];\r\n\t\tchar [] str = new char[m.size()];\r\n\t\tint index = 0;\r\n\t\tfor(Map.Entry<Character, Integer> entry: m.entrySet()){\r\n\t\t\tcount[index] = entry.getValue();\r\n\t\t\tstr[index] = entry.getKey();\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\tpermUtil(str,count,0,new char[s.length()]);\r\n\t}", "public static void isPermutation(String s1, String s2){\r\n\t\t\t\r\n\t\t\t// Can also do by sorting both string and comparing each character by character\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\tArrayList hm = new ArrayList();\r\n\t\t\t\r\n\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n\t\t\t\t\r\n\t\t\t\t\thm.add(s1.charAt(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n\t\t\t\tif(hm.contains(s2.charAt(i))){\r\n\t\t\t\t\thm.remove((Character)s2.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Not A permutation\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tHashMap hm = new HashMap();\r\n//\t\t\t\r\n//\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s1.charAt(i))){\r\n//\t\t\t\t\thm.put(s1.charAt(i),hm.get(s1.charAt(i) + 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\thm.put(s1.charAt(i), 1);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s2.charAt(i))){\r\n//\t\t\t\t\thm.put(s2.charAt(i),hm.get(s2.charAt(i) - 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\tflag = false;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\tif (hm.size()==0)\r\n\t\t\t\tSystem.out.println(\"Permutations\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Not Permutations\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Checking by creating ascii character array\r\n\t\t\tif (s1.length() != s2.length()) {\r\n\t\t\t\tSystem.out.println(\"Second Solution Not Permutation\");\r\n\t\t\t\t}\r\n\t\t\t\tint[] letters = new int[256]; // Assumption\r\n\t\t\t\t\tchar[] s_array = s1.toCharArray();\r\n\t\t\t\tfor (char c : s_array) { // count number of each char in s.\r\n\t\t\t\t letters[c]++;\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t for (int i = 0; i < s2.length(); i++) {\r\n\t\t\t\t int c = (int) s2.charAt(i);\r\n\t\t\t\t if (--letters[c] < 0) {\r\n\t\t\t\t System.out.println(\" Second Solution Not Permutation\");\r\n\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\r\n\t\t}", "public static void permutations(String input){\n\t\tpermutations(\"\", input);\n\t}", "public static void main(String[]args) {\n\t PermuteString prm=new PermuteString();\n\t System.out.println(\"enter the string for permutation\");\n\t String s1=Utility.getString();\n\t \n\t int len=s1.length();\n\t //initialize the stating index\n\t int start=0;\n\t //calling function to print permutation\n\t prm.getPermutation(s1,start, len);\n\t \n\t \n }", "public static void permutationsWithDups(String str) {\n HashSet<String> perm = new HashSet<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n HashSet<String> output = new HashSet<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }", "private static void permutation(String prefix, String str) {\n int n = str.length();\n if (n == 0) System.out.println(prefix);\n else {\n for (int i = 0; i < n; i++){\n \t System.out.println(\"prefix+str.char at i \" +prefix + str.charAt(i)+\" substring1 \"+str.substring(0, i)+\" substring2 \"+str.substring(i+1, n));\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));}\n }\n}", "public static void main(String[] args) {\n\t\tString s = \"123321\";\n\t\tString t = \"123231\";\n\t\t\n\t\tSystem.out.println(permutation(s, t));\n\t}", "public static void permutationsWithoutDups(String str) {\n ArrayList<String> perm = new ArrayList<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n ArrayList<String> output = new ArrayList<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }", "public void permutationOfString(String s, int start, int end){\n if(start == end && !hs.contains(s)){\n hs.add(s);\n System.out.println(s);\n return;\n }\n\n for(int i=start;i<=end;i++){\n s=swap(s,i,start);\n permutationOfString(s,start+1, end);\n s=swap(s,i,start);\n }\n\n }", "public static void printPermutaions(String word) {\n TreeMap<Character, Integer> map = new TreeMap<>();\n for (int i = 0; i < word.length(); i++) {\n if (map.get(word.charAt(i)) != null) {\n map.put(word.charAt(i), map.get(word.charAt(i)) + 1);\n } else {\n map.put(word.charAt(i), 1);\n }\n }\n\n int[] count = new int[map.size()];\n char[] chars = new char[map.size()];\n\n int index = 0;\n for (Map.Entry entry : map.entrySet()) {\n chars[index] = (char) entry.getKey();\n count[index] = (int) entry.getValue();\n index++;\n }\n\n char[] result = new char[word.length()];\n ArrayList<String> resultList = new ArrayList<String>();\n permuteUtil(chars, count, result, resultList, 0);\n for (String perm : resultList) {\n System.out.print(perm+\" \");\n }\n }", "public static void displayPermutation(String s1, String s2) {\n if (s1.length() == 0) {\n System.out.println(s2 + \" \");\n }\n\n for (int i = 0; i < s1.length(); i++) {\n\n // current character at index (i) of s1\n char ch = s1.charAt(i);\n\n // Rest of the string after excluding the character at current index\n String ros = s1.substring(0, i) + s1.substring(i + 1);\n\n // recursive call\n displayPermutation(ros, s2 + ch);\n }\n }", "public static void main(String[] args) {\n\n Permutation pr = new Permutation();\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please, enter a String to check permutation: \");\n String inputStr = sc.nextLine();\n\n pr.permutation(inputStr, 0, inputStr.length() - 1);\n\n }", "@Test\r\n public void PermutationTest() {\r\n System.out.println(\"permutation\");\r\n String prefix = \"\";\r\n String in = \"123\";\r\n Input input = new Input(in);\r\n List<String> expResult = Arrays.asList(\"123\",\"132\",\"213\",\"231\",\"312\",\"321\");\r\n List<String> result = instance.permutation(prefix, input);\r\n instance.sort(result);\r\n assertEquals(expResult, result);\r\n }", "private void permutation(String prefix, String str) {\n \r\n int n = str.length();\r\n if (n == 0)\r\n {\r\n \r\n ls.add(prefix);\r\n System.out.print(prefix+\",\");\r\n if(ls.isEmpty()==true)\r\n {\r\n ls.remove(ls.indexOf(n)); \r\n }\r\n \r\n al.add(ls);\r\n calc(al);\r\n \r\n }\r\n\r\n else {\r\n \r\n //System.out.print(ls);\r\n \r\n for (int i = 0; i < n; i++)\r\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));\r\n \r\n \r\n }\r\n \r\n \r\n \r\n}", "public static void main(String[] args) {\n /*camelCase(\"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\");*/\n\n String str = \"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\";\n convertToCamelCase(str,str.toCharArray());\n\n String value = \"BillIs,\\n\" +\n \"InMyOpinion,\\n\" +\n \"AnEasierNameToSpellThanWilliam.\\n\" +\n \"BillIsShorter,\\n\" +\n \"AndBillIsFirstAlphabetically.\";\n\n //reverseCamelCase(value,value.toCharArray());\n\n /* Set<Integer> set = new LinkedHashSet<Integer>(\n Arrays.asList(1,2,3,4,5,6));\n\n ArrayList<List<List<Integer>>> results =\n new ArrayList<List<List<Integer>>>();\n compute(set, new ArrayList<List<Integer>>(), results);\n for (List<List<Integer>> result : results)\n {\n System.out.println(result);\n }*/\n\n /*reverseCamelCase(\"BillIsOk\\n\" +\n \"ThisIsGood.\");*/\n\n //System.out.println(\"abc \\r\\n test\");\n\n //permutation(\"abc\");\n\n /*String[] database = {\"a\",\"b\",\"c\"};\n for(int i=1; i<=database.length; i++){\n String[] result = getAllLists(database, i);\n for(int j=0; j<result.length; j++){\n System.out.println(result[j]);\n }\n }*/\n\n /*char[] database = {'a', 'b', 'c'};\n char[] buff = new char[database.length];\n int k = database.length;\n for(int i=1;i<=k;i++) {\n permGen(database,0,i,buff);\n }*/\n\n\n\n }", "public static ArrayList<String> getPerms(String s){\n\t\tArrayList<String> permutations = new ArrayList<String>();\n\t\t\n\t\tif(s==null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(s.length()==0){\n\t\t\tpermutations.add(\"\");\n\t\t\treturn permutations;\n\t\t}\n\t\t\n\t\t//firstly, choose the first char\n\t\tchar first = s.charAt(0);\n\t\t\n\t\t//store the remainder\n\t\tString remainder = s.substring(1);\n\t\t\n\t\t\n\t\t//using recursion\n\t\tArrayList<String> words = getPerms(remainder);\n\t\t\n\t\t//adding the first char to the result of the getPerms(remainder)\n\t\tfor(String word:words){\n\t\t\tfor(int i=0;i<=word.length();i++){\n\t\t\t\tpermutations.add(insertCharAt(word,first,i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn permutations;\n\t}", "public static String nextPermutation(String str) throws InvalidNextPermutationException{\n char[] charArray = str.toCharArray();\n int i = charArray.length - 1;\n\n while(i>0 && charArray[i-1]>=charArray[i]){\n \ti--;\n }\n if(i<=0){\n \tthrow new InvalidNextPermutationException();\n }\n\n int j = charArray.length - 1;\n\n while(charArray[j]<=charArray[i-1]){\n \tj--;\n }\n\n swap(charArray,i-1,j);\n\n j = charArray.length - 1;\n\n while(i<j){\n \tswap(charArray,i,j);\n \ti++;\n \tj--;\n }\n\n return new String(charArray);\n }", "public void permute( ){\n\t\tif( out.length() == in.length() ){\n\t\t\tSystem.out.println( out );\n\t\t\treturn;\n\t\t}\n\t\t//for each character in the input\n\t\tfor( int i = 0; i < in.length(); ++i ){\n\t\t\t//if already marked then skip\n\t\t\tif( used[i] ) \n\t\t\t\tcontinue;\n\t\t\t//otherwise put the character in current position of permuted string\n\t\t\tout.append( in.charAt(i) );\n\t\t\t//mark the position as visited\n\t\t\tused[i] = true;\n\t\t\t//permute remaining characters\n\t\t\tpermute();\n\t\t\t//unmark the position\n\t\t\tused[i] = false;\n\t\t\t//clear the permuted string to start over again\n\t\t\tout.setLength( out.length() - 1 );\n\t\t}\n\t}", "static void permute(String fix, String p)\n\t\t{\n\t\t \n\t\t if(p.length()==1)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n\t\t }\n\t\t //if length is 2, print same and also reverse.\n\t\t if(p.length() == 2)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n String sn = p.charAt(1) + \"\" + p.charAt(0);\n System.out.print(fix + sn + \" \");\n\t\t }\n\t\t if(p.length()>2)\n\t\t {\n\t\t for(int i=0;i<p.length();i++)\n\t\t {\n\t\t //ith as fix character.\n\t\t String f = fix + p.charAt(i);\n\t\t //including charcater before the fixed one and also all the chars after the fixed one.\n\t\t String remain = p.substring(0,i) + p.substring(i+1,p.length());\n\t\t permute(f,remain);\n\t\t }\n\t\t \n\t\t }\n\t\t \n\t\t}", "public static HashSet<String> getAllPermutations(String str) {\n\t\tHashSet<String> permutations = new HashSet<String>();\r\n\r\n\t\tif (str == null || str.length() == 0) {\r\n\t\t\tpermutations.add(\"\");\r\n\t\t\treturn permutations;\r\n\t\t}\r\n\r\n\t\tchar first = str.charAt(0);\r\n\t\tString remainingString = str.substring(1);\r\n\t\tHashSet<String> words = getAllPermutations(remainingString);\r\n\t\tfor (String word : words) {\r\n\t\t\tfor (int i = 0; i <= word.length(); i++) {\r\n\t\t\t\tString prefix = word.substring(0, i);\r\n\t\t\t\tString suffix = word.substring(i);\r\n\t\t\t\tpermutations.add(prefix + first + suffix);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn permutations;\r\n\t}", "public static String pPermutation(String input) {\n\n assert input.length() == 32;\n\n StringBuilder result = new StringBuilder();\n\n for (int[] ints : PPermutation) {\n for (int anInt : ints) {\n result.append(input.charAt(anInt - 1));\n }\n }\n\n return result.toString();\n }", "@SuppressWarnings(\"unchecked\")\t\t\t\t\t\t\t//used because of line 17, there is no way to remove warnings, they have to be suppressed\n public String[] permutations(ArrayList<ArrayList<Character> > mat){\n\n if(mat.size()==1){\t\t\t//since the function is recursive, a base case for the first line has been made. \n String[] s = new String[mat.get(0).size()];\n int i = 0;\n for(Object obj:mat.get(0)) {\n if (i < s.length) {\n s[i++] = obj.toString();\n }\n }\n return s;\t\t//returns the characters of the first line of the input as an array of String\n }\n ArrayList<Character>[] arr = new ArrayList[mat.size()]; //this has been created to provide ease of accessibility which is a bit difficult with an ArrayList of an ArrayList\n int k = 0;\n for(ArrayList a:mat){\n if(k<mat.size()){\n arr[k] = a;\n }\n k++;\n }\n int product = 1;\n for(ArrayList a: mat){\n product*= a.size(); \t// product calculates the size of the String to be generated for the given input\n }\n int i = 0;\n String[] ret = new String[product];\n ArrayList<ArrayList<Character> > ret_arr_list = new ArrayList<>();\n for(int exception_index = 0;exception_index<arr.length-1;++exception_index){\n ret_arr_list.add(arr[exception_index]); //ret_arr_list is an ArrayList of an ArrayList except the last row of the original input\n }\n String[] s = permutations(ret_arr_list); //gets the string as mentioned at the very beginning of the function\n int ret_index = 0;\n for(int i_index = 0;i_index < s.length;++i_index){\n for(int j_index = 0;j_index<mat.get(mat.size()-1).size();++j_index){\n ret[ret_index++] = s[i_index] + arr[mat.size()-1].get(j_index).toString(); //appends every character of the last line to \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //every String element calculated in String[] s\n }\n }\n return ret;\n }", "public static void main(String[] args) {\n\t\tresult = permutation(\"doggie\",\"god\");\r\n\t\tSystem.out.println(result);\r\n\t}", "private static void permutation(String perm, String word) {\r\n\t\tif (word.isEmpty()) {\r\n\t\t\tSystem.err.println(perm + word);\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tpermutation(perm + word.charAt(i), word.substring(0, i) + word.substring(i + 1, word.length()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}", "public static void main(String[] args) {\n\t\tString str1 =\"fxstvf\";\n\t\tString str2 =\"fxstvf\";\n\t\tSystem.out.println(isPermutation(str1, str2));\n\t\n\n\n\t}", "public static void main(String[] args) {\n\t\tString a = \"abc\";\n\t\tString b = \"cbb\";\n\t\tPermutationString p = new PermutationString();\n\t\tSystem.out.println(p.permutationStrin(a,b));\n\n\t}", "public static void permute(String str, String prevLetter) {\n if (str.length() < 2) {\n if (prevLetter != null) {\n System.out.println(prevLetter + str);\n }\n } else {\n // Loop through each letter, and permute the string for the case where each letter is first\n for (int i = 0; i < str.length(); i ++) {\n\n String firstLetter = str.substring(i,i+1);\n\n String remainingLetters = str.substring(0,i) + str.substring(i+1);\n\n if (prevLetter != null) {\n permute(remainingLetters, prevLetter + firstLetter);\n } else {\n permute(remainingLetters, firstLetter);\n }\n\n }\n }\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\n\\nEnter the string to find all possible arrangements (Eg : 'xyz', 'pals', 'palsj' )\\n\\n\");\n\t\t\n\t\tString str = scan.nextLine();\n\t\tscan.close();\n\n\t\tchar[] chArr = str.toCharArray();\n\t\tchar[] temp1 = new char[chArr.length];\n\n\t\ttemp1 = chArr;\n\n\t\tint len = chArr.length;\n \n \n\t\tfor (int cnt = 0; cnt < len; cnt++) {\n\t\t\t\n\t\t\tSystem.out.println(\"letter : \" + temp1[0]);\n\n\t\t\t\n\t\t\tfor (int i = 1; i < len; i++) {\n\n\t\t \ttemp1 = printString(temp1); // to print the first swap\n\t\t\t}\n\n\t\t\ttemp1 = moveString1(temp1, 0);\n\n \n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tString str = \"66. All Valid Permutations Of Parentheses I\";\n//\t\tString str = \"Determine If One String Is Another's Substring\";\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t\tSystem.out.println(leet(str));\n//\t\tSystem.out.println(\"\"+connByUnderscore(str));\n\t}", "public static void main(String[] args) {\n\tint num=4321;\r\n\tString numString=Integer.toString(num);\r\n\tchar[] toBeSorted=numString.toCharArray();\r\n\tchar[] numArray=numString.toCharArray();\r\n\tint maxIndex=0;\r\n\t//check if the given number has no next permutation\r\n\tboolean nextPermu=false;\r\n\tfor(int i=0;i<numArray.length-1;i++){\r\n\t\tif(numArray[i]<numArray[i+1]){\r\n\t\t\tnextPermu=true;\r\n\t\t}\r\n\t}\r\n\tif(!nextPermu){\r\n\t\tSystem.out.println(\"not next permutation possible\");\r\n\t\treturn;\r\n\t}\r\n\r\n\t\r\n\tfor(int i=0;i<numArray.length;i++){\r\n\t\tif(numArray[i]>numArray[maxIndex]){\r\n\t\t\tmaxIndex=i;\r\n\t\t}\r\n\t}\r\n\tjava.util.Arrays.sort(toBeSorted);\r\n\tif(String.copyValueOf(toBeSorted).equals(numString)){\r\n\t\t//swap last 2 indexes\r\n\t\tchar temp=numArray[numArray.length-1];\r\n\t\tnumArray[numArray.length-1]=numArray[numArray.length-2];\r\n\t\tnumArray[numArray.length-2]=temp;\r\n\t\tSystem.out.println(String.copyValueOf(numArray));\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tjava.util.Arrays.sort(numArray, maxIndex, numArray.length);\r\n\tSystem.out.println(String.copyValueOf(numArray));\r\n\t//swap maxIndex and maxIndex-1;\r\n\tchar temp=numArray[maxIndex];\r\n\tnumArray[maxIndex]=numArray[maxIndex-1];\r\n\tnumArray[maxIndex-1]=temp;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.print (\"Enter 2 string: \");\r\n\t\tString string1 = new String(in.nextLine());\r\n\t\tString string2 = new String(in.nextLine());\r\n\t\tSystem.out.println(\"String1 : \"+string1);\r\n\t\tSystem.out.println(\"String2 : \"+string2);\r\n\t\tboolean bool = isPermutation(string1,string2);\r\n\t\tif(bool){\r\n\t\t\tSystem.out.println(\"Both Strings are permutation\");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Sorry!Both Strings are not permutation\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"abccbc\";\n\t\t\n\t\tlong[][] dp = new long[str.length()][str.length()];\t\n\t\t\n\t\tfor (int g=0 ; g<str.length() ; g++) {\n\t\t\t\n\t\t\tfor (int i=0 , j=g ; j<str.length() ; i++ , j++) {\n\t\t\t\tif (g == 0) dp[i][j] = 1;\n\t\t\t\t\n\t\t\t\telse if (g == 1) dp[i][j] = (str.charAt(i) == str.charAt(j)) ? 3 : 2;\n\t\t\t\t\n\t\t\t\telse dp[i][j] = (str.charAt(i) == str.charAt(j)) ? (dp[i][j-1] + dp[i+1][j] + 1) : (dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1]);\n\t\t\t\t\n\t\t\t\t//if (dp[i][j] && str.substring(i, j+1).length() > result.length()) result = str.substring(i, j+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[0][str.length()-1]);\n\t}", "static boolean permutation(String s, String t){\n if(s.length() != t.length()){\n return false;\n }\n\n Map<Character, Integer> sCount = new HashMap<>();\n Map<Character, Integer> tCount = new HashMap<>();\n\n for(int i = 0;i < s.length();i++){\n Character sChar = s.charAt(i);\n Character tChar = t.charAt(i);\n sCount.put(sChar, sCount.getOrDefault(sChar, 0) + 1);\n tCount.put(tChar, tCount.getOrDefault(tChar, 0) + 1);\n }\n //Character and Integer objects have their equals methods defined\n return sCount.equals(tCount);\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tSystem.out.println(\"Enter 1] Check the given two strings are anagram or not \"\n\t\t\t\t+ \"\\n 2] Check the given string is palindrome or not \"\n\t\t\t\t + \"\\n 3] Find all permutation of a String using recursion method\"\n\t\t\t\t + \"\\n 4] Find all permutation of a String using Iterative method\" );\n\t\t\n\t\tSystem.out.println(\"Enter your choice to perform the string operations\");\n\t\tint choice = StringFunctions.inputInt();\n\t\t\n\t\t\n\t\t switch(choice) {\n\t\t\n\t\t case 1 :\n\t\t\t System.out.println(\"Enetr the strings for anagram\");\n\t\t\t String str1 = StringFunctions.inputstr();\n\t\t\t int n = str1.length();\n\t\t\t System.out.println(\"Enter the strings for anagram\");\n\t\t\t String str2 = StringFunctions.inputstr();\n\t\t \n System.out.println(\"\");\n\t\t StringFunctions.Anagram(str1, str2);\n\t\t break;\n\t\t \n\t\t case 2 : \n\t\t System.out.println(\"Enter the string for palindrome\");\n\t\t String str= StringFunctions.inputstr();\n\t\t StringFunctions.Palindrom(str);\n\t\t break; \n\t\t \n\t\t case 3 :\n\t\t System.out.println(\"Enter the string for permutation using recursion method\");\n\t\t String str3 = StringFunctions.inputstr();\n\t\t int n1 = str3.length();\n\t\t StringFunctions.PermuRecursive(str3, 0, n1-1);\n\t\t break;\n\t\t \n\t\t \n\t\t default :\n\t\t \t System.out.println(\"Invalid input\");\n\t\t \n\t\t }\n\t\t\t \n\t}", "public static ArrayList<String> permutations(String s) {\r\n ArrayList<String> list = new ArrayList<>();\r\n permutations(\"\", s, list);\r\n return list;\r\n }", "public static void main(String[] args)\n\t{\n\t\tString test = \"ABCDEFGHIJ\";\n\t\tPermutationGeneratorCoveyouSullivan p = new PermutationGeneratorCoveyouSullivan(test);\n\t\t\n\t\tint[] counters = new int[test.length()+1]; //array used to add to counters\n\t\t\n\t\t//using the h function to display how many permutations there are with test.length() elements and ZERO fixed - comparing to this.\n\t\tlong testH = h(test.length());\n\t\tSystem.out.println(\"Using the h function:\\nThe number of permutations with \" + test.length() + \" elements and ZERO fixed elements is: [\" + testH +\"]\\n\");\n\t\t\n\t\t//using the g function to display how many permutations there are with test.length() elements and \"i\" fixed elements - comparing to this\n\t\tSystem.out.println(\"Using the g function:\");\n\t\tfor (int i = 0; i < test.length()+1; i++)\n\t\t{\n\t\t\tlong gTest = g(test.length(), i);\n\t\t\tSystem.out.println(\"The number of permutations with \" + test.length() + \" elements and \" + i + \" fixed elements is: [\" + gTest + \"]\");\n\t\t}\n\t\t\n\t\t//now we are going to be using the brute force way of how to do counting - manually and then compare\n\t\tSystem.out.println(\"\\nUsing my brute force technique to figure out the number of permutations:\");\n\t\tfor (String s : p)\n\t\t{\n\t\t\tint controller = 0; //controller variable that will reset for every loop - for each seperate index\n\t\t\t\n\t\t\tfor (int i = 0; i < test.length(); i++) //this is the tester to compare the characters at each index\n\t\t\t{\n\t\t\t\tif (s.charAt(i) == test.charAt(i))\n\t\t\t\t\tcontroller++;\n\t\t\t}\n\t\t\t\n\t\t\tcounters[controller]++; //I'm still not understanding how these counters are working: I know it works, but how does it know what index to be in?\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < counters.length; i++)\n\t\t\tSystem.out.println(\"With \" + i + \" fixed elements, there are: [\" + counters[i] + \"] permutations\");\n\t\t\n\t\t/**********************************\n\t\t * Finally, my methods and brute force technique are correct do to the equality of the different functions/parameters as well as my brute force technique!\n\t\t * I also checked different test strings including my name, etc and they are also equal.\n\t\t * \n\t\t * Questions: One thing I noticed in the sequence is that g(test.length(), 0) and g(test.length(), 1) are somehow related b/c there is a difference of ONE?? \n\t\t * Is this true for all strings?\n\t\t *********************************/\n\t}", "public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();\n result = permutations(input);\n System.out.println(Arrays.asList(result)); \n }", "public List<String> permutations(String set) {\n List<String> result = new ArrayList<>();\n if (set == null) {\n return result;\n }\n char[] array = set.toCharArray();\n DFS(array, 0, result);\n return result;\n }", "public static boolean stringPermutation(String s, String t){\r\n if (s.length() != t.length()){\r\n return false;\r\n }\r\n HashMap<Character, Integer> map1 = new HashMap<Character, Integer>();\r\n HashMap<Character, Integer> map2 = new HashMap<Character, Integer>();\r\n for (int i = 0; i < s.length(); i++){\r\n if (map1.get(s.charAt(i)) == null){\r\n map1.put(s.charAt(i), 1);\r\n }\r\n else {\r\n map1.put(s.charAt(i), map1.get(s.charAt(i)) + 1);\r\n }\r\n }\r\n for (int i = 0; i < t.length(); i++){\r\n if (map2.get(t.charAt(i)) == null){\r\n map2.put(t.charAt(i), 1);\r\n }\r\n else {\r\n map2.put(t.charAt(i), map2.get(t.charAt(i)) + 1);\r\n }\r\n }\r\n return map1.equals(map2);\r\n }", "private static boolean isPermutation(String str1, String str2) {\r\n if (!validate(str1, str2)) {\r\n return false;\r\n }\r\n if (str1.isEmpty() && str2.isEmpty()) { // simple case\r\n return true; // empty strings are permutation of each other\r\n }\r\n\r\n return fillCounter(str1).equals(fillCounter(str2));\r\n }", "public static void main(String[] args) {\r\n\r\n\t\tSystem.out.println(\"string=\\\"ppqp\\\", pattern=\\\"pq\\\" output:[1,2] got : \" + findStringAnagrams(\"ppqp\", \"pq\"));\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"string=\\\"abbcabc\\\", pattern=\\\"abc\\\" output:[2,3,4] got : \" + findStringAnagrams(\"abbcabc\", \"abc\"));\r\n\t}", "public int palsubsequence2(String str) {\r\n\t\tint m = str.length();\r\n\t\tint[][] mem = new int[m + 1][m + 1];\r\n\r\n\t\tfor (int i = 1; i <= m; ++i) {\r\n\t\t\tmem[i][i] = 1;\r\n\t\t}\r\n\t\t// Bottom-up row-wise filling\r\n\t\tfor (int i = m - 1; i >= 1; --i) {\r\n\t\t\tfor (int j = i + 1; j <= m; ++j) {\r\n\r\n\t\t\t\tif (str.charAt(i - 1) == str.charAt(j - 1))\r\n\t\t\t\t\tmem[i][j] = mem[i + 1][j - 1] + 2;\r\n\t\t\t\telse {\r\n\t\t\t\t\tint incr = mem[i + 1][j];\r\n\t\t\t\t\tint decr = mem[i][j - 1];\r\n\t\t\t\t\tmem[i][j] = Math.max(incr, decr);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tprintMemory(mem);\r\n\t\t// printSequence(mem, 1, m, str);\r\n\t\tSystem.out.println();\r\n\t\treturn mem[1][m];\r\n\r\n\t}", "public static void main(String[] args) {\n String s = \"12345\";\n System.out.println(letterCasePermutation(s));\n }", "public static void main(String... args) {\n List<String> list = Arrays.asList(\"aap\", \"noot\", \"mies\");\n List<List<String>> perms = getPermutations(list);\n perms.forEach(System.out::println);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(checkPermutation(\"abcab\", \"aabbc\"));\n\t\tSystem.out.println(checkPermutation(\"aaaa\", \"aaaa\"));\n\n\t}", "public static boolean checkPermutation(String str1, String str2) {\n if (str1.length() != str2.length()) // imediate check if string is not the same length, obviously false\n return false;\n // null check as well\n int[] arr = new int[256]; // ascii\n for (int i = 0; i < str1.length(); i++) { // for all chars in the first list\n char temp = str1.charAt(i); // get the char at the index\n int index = temp; // get the int val for the char\n arr[index] = arr[index] + 1; // increase an array at that index by 1\n }\n for (int i = 0 ; i < str1.length(); i++) { // for all values in the second string\n char temp = str2.charAt(i); // get the char at the index\n int index = temp; // get the val for that char\n arr[index] = arr[index] - 1; // decrement the array at the index by 1\n if (arr[index] < 0) // if the string has incorrect amount of letters,\n return false; // the array should have -1, which will return false\n }\n return true; // else return true\n }", "static boolean isPermutation_1(String a, String b){\n //get the sorted format of a string\n String sorted_A = sortString(a);\n String sorted_B = sortString(b);\n return sorted_A.equals(sorted_B);\n }", "public void getPermutation(boolean[] used, StringBuilder sb) {\n if(sb.length() == list.size()) {\n if(middle == null) res.add(sb.toString() + sb.reverse().toString());\n else res.add(sb.toString() + middle + sb.reverse().toString());\n sb.reverse(); // need to restore the original stringbuilder\n return;\n }\n \n for(int i = 0; i < list.size(); i++) {\n // avoid duplicated !!! very important\n // when a number has the same value with its previous, we can use this number only if his previous is used\n // because if we choose the second one first, and then to the next recursion, the first one is added,\n // duplicate occurs\n if((i > 0 && list.get(i) == list.get(i - 1) && !used[i - 1]) || used[i]) continue;\n \n used[i] = true;\n sb.append(list.get(i));\n \n getPermutation(used, sb);\n \n // backtracking\n used[i] = false;\n sb.deleteCharAt(sb.length() - 1);\n }\n }", "public static void permuteString(String prefix, String remaining) {\n // System.out.println(prefix + \"-->\" + remaining);\n int n = remaining.length();\n if (n == 0) {\n System.out.println(prefix);\n return;\n }\n for (int i = 0; i < n; i++) {\n permuteString(prefix + remaining.charAt(i),\n remaining.substring(0, i) + remaining.substring(i + 1));\n }\n }", "public static boolean isPermutation(String str1, String str2)\r\n\t{\r\n\t\t if(str1.length() != str2.length()) return false;\r\n\t\t char[] charset1 = str1.toCharArray();\r\n\t\t char[] charset2 = str2.toCharArray();\r\n\t\t HashMap<Character, Integer> hashmap = new HashMap<Character, Integer>();\r\n\t\t \r\n\t\t for(char c : charset1)\r\n\t\t {\r\n\t\t\t if(!hashmap.containsKey(c)) hashmap.put(c, 1);\r\n\t\t\t else hashmap.put(c, hashmap.get(c) + 1);\r\n\t\t }\r\n\t\t \r\n\t\t for(char c : charset2)\r\n\t\t {\r\n\t\t\t if(!hashmap.containsKey(c) || hashmap.get(c) == 0) return false; \r\n\t\t\t hashmap.put(c, hashmap.get(c) - 1);\r\n\t\t }\r\n\t\t \r\n\t\t return true;\r\n\t}", "private static String getPermutation(long k, int strlen, Map<Character, CharCount> map, List<Character> chars) {\n if (map.isEmpty()) {\n return \"\";\n }\n long n = getExpectedSize(strlen, map);\n \n if (k > n) return \"\"; // invalid. Should never reach here.\n long f = 0;\n \n \n for (int i = 0; i < chars.size(); i++) {\n Character curChar = chars.get(i);\n CharCount charCount = map.get(curChar);\n charCount.decrementCount();\n strlen--;\n if (charCount.count == 0) {\n map.remove(curChar);\n chars.remove(i);\n }\n \n long temp = getExpectedSize(strlen, map);\n f += temp;\n if(f <= k){\n charCount.incrementCount();\n strlen++;\n if (charCount.count == 1) {\n map.put(curChar, charCount);\n chars.add(i, curChar);\n }\n continue;\n }\n else{\n f = f - temp;\n return curChar + getPermutation(k - f, strlen, map, chars);\n }\n }\n \n //SHould not reach here unless k is too large\n return \"\";\n }", "public boolean permutation(String s1, String s2) {\n if(s1.length()>s2.length()) return false;\n int s1_sum[] = new int[26];\n int s2_sum[] = new int[26];\n // initiate the sliding window\n for(int i =0; i< s1.length(); i++){\n s1_sum[s1.charAt(i)-'a']++;\n s2_sum[s2.charAt(i) - 'a']++;\n }\n int count = 0;\n for(int i = 0; i< 26; i++){\n if(s1_sum[i] == s2_sum[i]){\n count++;\n }\n }\n for(int j = 0; j<s2.length()-s1.length();j++) {\n int left = s2.charAt(j)-'a';\n int right = s2.charAt(j+s1.length()) - 'a';\n if(count == 26) return true;\n\n s2_sum[right]++;\n if(s2_sum[right] == s1_sum[right]){\n count++;\n } else if(s2_sum[right] = s1_sum[right]+1 ) {\n count--;\n }\n s2_sum[left]--;\n if(s2_sum[left]==s1_sum[left]) {\n count++;\n } else if(s2_sum[left] = s1_sum[left]-1){\n count--;\n }\n\n\n\n }\n return count==26;\n }", "public static void main(String[] args) {\n\t\tString string1 = \"acbdfbdfacb\";\n\t\tint length = string1.length();\n\t\tString[] sub = new String[length*(length+1)/2];\n\t\tint temp = 0;\n\t\tfor(int i =0;i<length;i++) {\n\t\t\tfor(int j = i;j<length;j++) {\n\t\t\t\tString parts = string1.substring(i,j+1);\n\t\t\t\tsub[temp] = parts;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t}\n\t\tfor(int j =0;j<sub.length;j++) {\n\t\t\tSystem.out.println(sub[j]);\n\t\t}\n\t\tArrayList<String> rep = new ArrayList<String>();\n\t\tfor(int i=0;i<sub.length;i++) {\n\t\t\tfor(int j =i+1;j<sub.length;j++) {\n\t\t\t\tif(sub[i].equals(sub[j])) {\n\t\t\t\t\trep.add(sub[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint largestString = 0;\n\t\tSystem.out.println(rep);\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\t\tif(rep.get(k).length()>largestString) {\n\t\t\t\tlargestString = rep.get(k).length();\n\t\t\t}\t\t\n\t\t}\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\tif(rep.get(k).length()==largestString) {\n\t\t\tSystem.out.println(\"the longest repeating sequence in a string : \"+rep.get(k));\n\t\t}\n\t\t}\n\t}", "public String getPermutation(int n, int k) {\n\n StringBuilder str = new StringBuilder();\n for (int i = 1; i <= n; i++) {\n str.append(i);\n }\n permute(k, str.toString().toCharArray(), 0);\n return result;\n }", "public boolean isPermutation(String str1, String str2) {\n\n\t\tif (str1.length() != str2.length()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tboolean isCharacterPresent = false;\n\n\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\tif (str1.charAt(i) == str2.charAt(j)) {\n\t\t\t\t\tisCharacterPresent = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!isCharacterPresent) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tisCharacterPresent = false;\n\t\t}\n\n\t\treturn true;\n\t}", "boolean permutationOpt(String s, String t) {\n if (s.length() != t.length() ) { return false;}\r\n\r\n int[] charCnt = new int[128];\r\n for (int i = 0; i < s.length(); i ++) {\r\n int val = s.charAt(i);\r\n charCnt[val] ++;\r\n }\r\n\r\n for (int i = 0; i < t.length(); i ++) {\r\n int val = t.charAt(i);\r\n charCnt[val] --;\r\n if (charCnt[val] < 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true; // If the length of two strings are equal, then when there is no negative counts there should not be positive counts either.\r\n }", "public static void main(String[] args) {\n String S = \"C\";\n List<String> list = letterCasePermutation(S);\n\n for(String str : list){\n System.out.println(str);\n }\n }", "public boolean checkIfPermutationPalindrome(String str) {\n\n Hashtable<Character, Integer> table = generateTable(str);\n\n int oneOdd = 0;\n boolean flag;\n for(char ch : table.keySet()) {\n if(table.get(ch)%2 == 1) {\n oneOdd++;\n }\n }\n if(oneOdd <= 1) {\n flag = true;\n }\n else {\n flag = false;\n }\n if(str.length() == 0) {\n flag = false;\n }\n System.out.println(flag);\n return flag;\n }", "String algorithm();", "public List<String> letterCasePermutation(String S) {\n if (S.length() <= 0) {\n List<String> ret = new ArrayList<>();\n ret.add(\"\");\n return ret;\n }\n\n if (S.length() == 1) {\n List<String> ret = new ArrayList<>();\n char c = S.charAt(0);\n ret.add(S);\n if (Character.isLetter(c)) {\n if (Character.isLowerCase(c)) {\n ret.add(String.valueOf(Character.toUpperCase(c)));\n } else {\n ret.add(String.valueOf(Character.toLowerCase(c)));\n }\n }\n\n return ret;\n }\n\n List<String> ret = letterCasePermutation(S.substring(1));\n\n char c = S.charAt(0);\n if (Character.isLetter(c)) {\n List<String> ret2 = new LinkedList<>(ret);\n appendToFront(Character.toLowerCase(c), ret);\n appendToFront(Character.toUpperCase(c), ret2);\n ret.addAll(ret2);\n } else {\n appendToFront(c, ret);\n }\n\n return ret;\n }", "public static void permutation1(String s, int k, StringBuffer sb,\r\n\t\t\tSet<String> set) {\r\n\r\n\t\tif (k == s.length()) {\r\n\t\t\tset.add(sb.toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tsb.append(s.charAt(i));\r\n\t\t\tpermutation1(s, k + 1, sb, set);\r\n\t\t\tsb.setLength(sb.length() - 1);\r\n\r\n\t\t}\r\n\t}", "public static boolean isPermutation(String sIn1, String sIn2){\n if (sIn1.length()!= sIn2.length()) return false;\n\n char[] string1 = sIn1.toCharArray();\n char[] string2 = sIn2.toCharArray();\n\n Arrays.sort(string1);\n Arrays.sort(string2);\n\n return Arrays.equals(string1, string2);\n\n }", "public boolean canPermutePalindrome(String input) {\n if (input == null) {\n return false;\n }\n if (input.length() == 0) {\n return true;\n }\n char[] temp = input.toCharArray();\n // StringBuilder sol = new StringBuilder();\n boolean[] result = new boolean[] { false };\n DFS(0, temp, result);\n return result[0];\n }", "public static void main(String[] args){\n\t\tString str = \"level\";\n\t\t\n\t\t// Approach-1\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tboolean unique = true;\n\t\t\t\n\t\t\tfor(int j=0;j<str.length();j++){\n\t\t\t\tif(i!=j && str.charAt(i)==str.charAt(j)){\n\t\t\t\t\tunique = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(unique){\n\t\t\t\tSystem.out.println(str.charAt(i));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Approach-2\n\t\tMap<Character, Integer> map = new HashMap<>();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch = str.charAt(i);\n\t\t\tif(map.containsKey(ch)){\n\t\t\t\tmap.put(ch, map.get(ch)+1);\t\n\t\t\t}else{\n\t\t\t\tmap.put(ch,1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tfor(Map.Entry<Character, Integer> entryset : map.entrySet()){\n\t\t\tif(entryset.getValue()==1){\n\t\t\t\tSystem.out.println(entryset.getKey());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "static void subsequence(String str)\n {\n // iterate over the entire string\n for (int i = 0; i < str.length(); i++) {\n \n // iterate from the end of the string\n // to generate substrings\n for (int j = str.length(); j > i; j--) {\n String sub_str = str.substring(i, j);\n \n if (!st.contains(sub_str))\n st.add(sub_str);\n \n // drop kth character in the substring\n // and if its not in the set then recur\n for (int k = 0; k < sub_str.length(); k++) {\n StringBuffer sb = new StringBuffer(sub_str);\n \n // drop character from the string\n sb.deleteCharAt(k);\n if (!st.contains(sb)) {\n \tsubsequence(sb.toString());\n }\n }\n }\n }\n }", "public static void main(String[] args) {\n\t\tisPermutation(\"Dfhruviul\",\"rDhuflviu\");\r\n\t}", "public String getPermutation1(int n, int k) {\n\t\t ArrayList<String> rs = new ArrayList<String>();\n\t\t char[] data = new char[n];\n\t\t for (int i = 0; i < n ; ++i)\n\t\t\t data[i] = String.valueOf(i + 1).charAt(0);\n\t\t permutate(data, 0, rs);\n\t\t return rs.get(k); \n\t }", "public static void main(String args[]){\n\n //even number of everything\n //odd number of 1 thing MAX\n\n //sort string\n //check subsequent chars to count their numbers until length -1\n //break if 2 odd number chars\n System.out.println(isPalindromePermutation(\"22334455asdfdsa66\"));\n\n\n }", "public static boolean isPermutation(String str) {\n if (str == null || str.equals(\"\")) {\n return false;\n }\n char[] characters = new char[256];\n for (int i = 0; i < str.length(); i++) {\n characters[str.charAt(i)]++;\n }\n int count = 0;\n for (char c : characters) {\n if (!(c == 0 || c % 2 == 0)) {\n if (count == 0) {\n count++;\n } else {\n return false; // allow only one character to occur once\n }\n }\n }\n return true;\n }", "public static void main(String[] args) {\n LetterCasePermutation permutation = new LetterCasePermutation();\n List<String> strings = permutation.letterCasePermutation(\"a1B2\");\n System.out.println(strings);\n }", "public static boolean isPermutation(String s1, String s2) {\n // TODO\n /** using set, and add a compare method in the set interface */\n return false;\n }", "public static void main(String[] args) {\n\t\tPermuatation2 p2 = new Permuatation2();\n\t\tSystem.out.println(p2.combinations(\"abc\"));\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n try{\n \tint n=sc.nextInt();\t\n }\n catch(Exception e){\n break;\n }\n String p=sc.next();\n String t1=sc.next();\n char text[]=t1.toCharArray();\n char pat[]=p.toCharArray();\n if(p.length()>t1.length()){\n System.out.println();\n }\n else {\n int f[]=new int[pat.length];\n f[0]=0;\n int j=0;\n for(int i=1;i<pat.length;){\n if(pat[i]==pat[j]){\n f[i]=j+1;\n i++;\n j++;\n }\n else {\n if(j>0){\n j=f[j-1];\n }\n else {\n f[i]=0;\n i++;\n }\n }\n }\n int i=0;\n j=0;\n boolean b=false;\n while(i<text.length&&j<pat.length){\n if(pat[j]==text[i]){ \n i++;\n j++;\n if(j==pat.length){\n System.out.println(i-pat.length);\n b=true;\n j=f[j-1];\n }\n }\n else if(j>0){ \n j=f[j-1];\n }\n else {\n i++;\n }\n }\n if(!b) {\n System.out.println();\n }\n System.out.println();\n \n }\n }\n }", "public ArrayList<String> FindAllCombinationWord(String str) {\r\n\r\n ArrayList<String> wordList = new ArrayList<String>();\r\n\r\n int n = str.length();\r\n ArrayList<String> combinationWord = permute(str, 0, n - 1);\r\n\r\n for (String item : combinationWord) {\r\n int j = 0;\r\n for (int i = n; i >= 2; i--) {\r\n String finalString = item.substring(j);\r\n\r\n if (!wordList.contains(finalString)) {\r\n wordList.add(finalString);\r\n }\r\n j++;\r\n }\r\n }\r\n return wordList;\r\n }", "@Test\n\tpublic void testIsPermutationOnPermutation() {\n\t\tassertTrue(ArraysAndStrings.isPermutation(PERMUTATION_ONE, PERMUTATION_TWO));\n\t}", "public static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=\"xheixhixhi\";\n\t\tint x=0;\n\t\tfor(int i=0;i<str.length();i++)\n\t\t{\n\t\t\tif(str.charAt(i)=='x')\n\t\t\t\tx++;\n\t\t\n\t\t\telse\n\t\t\t\tsb.append(str.charAt(i));\n\t\t}\n\t\tfor(int i=0;i<x;i++)\n\t\t\tsb.append('x');\n\t\tSystem.out.println(sb);\n\t\t\n\t\tString str1=\"xxxyyy\";\n\t\tStringBuffer sb1=new StringBuffer(str1);\n\t\tSystem.out.println(sb1.toString());\n\t\tfor(int i=0;i<(str1.length());i++)\n\t\t{\n\t\t\tif(sb1.charAt(i)==sb1.charAt(i+1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb1.insert(++i,'*');\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb1.toString());\n\t\t\n\t\t//anagram\n\t\tString s1=\"niveda\";\n\t\tString s2=\"Nivedas\";\n\t\tString s4=s2.toLowerCase();\n\t\tchar[] s3=s1.toCharArray();\n\t\tchar[] s5=s4.toCharArray();\n\t\tArrays.sort(s3);\n\t\tArrays.sort(s5);\n\t\tboolean result=Arrays.equals(s3, s5);\n\t\tSystem.out.println(\"result is \"+result);\n\t\t\n\t\t//check all digits\n\t\tString s=\"09779\";\n\t\tif (s.isEmpty())\n\t\t\tSystem.out.println(\"empty\");;\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\tint temp = s.charAt(i) - (int)'0';\n\t\tSystem.out.println(temp);\n\t\tif (temp < 0 || temp > 9)\n\t\t\tSystem.out.println(\"false\");\n\t\t\n\t\t}\n\n\t\tSystem.out.println(\"true\");\n\n\t\t//reverse a string\n\t\tString s6=\"niveda is\";\n\t\tString sb4=new StringBuffer(s6).reverse().toString();\n\t\tSystem.out.println(sb4);\n\t\t\n\t\tStringBuilder s7=new StringBuilder();\n\t\tchar[] c1=s6.toCharArray();\n\t\tfor(int i=c1.length-1;i>=0;i--)\n\t\t{\n\t\t\ts7.append(c1[i]);\n\t\t}\n\t\tSystem.out.println(s7);\n\t\t\n\t\t//replace with space\n\t\tString str5=\"xxx yyy\";\n\t\tStringBuilder sb6=new StringBuilder(str5);\n\t\tSystem.out.println(sb6.toString());\n\t\tfor(int i=0;i<(str5.length());i++)\n\t\t{\n\t\t\tif(sb6.charAt(i)==32)\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb6.replace(i,i+1,\"%20\");\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb6.toString());\n\t\t\n\t\tString sentence=\"my name is niveda\";\n\t\tList< String> words = Arrays.asList(sentence.split(\"\\\\s\")); \n\t\tCollections.reverse(words); \n\t\t\n\t\tSystem.out.println(words);\n\t\tStringBuilder sb8 = new StringBuilder(sentence.length()); \n\t\t\n\t\tfor (int i = 0; i <=words.size() - 1; i++)\n\t\t{ \n\t\t\tsb8.append(words.get(i)); \n\t\t\t\n\t\tsb8.append(' ');\n\t\t}\n\t\tSystem.out.println(sb8.toString().trim());\n\t\t\n\t\tStringBuffer sb9=new StringBuffer(sentence);\n\t\tString sb10=sb9.reverse().toString();\n\t\tSystem.out.println(\"old \"+sb10.toString().trim());\n\t\t\n\t\tStringBuilder reverse = new StringBuilder(); \n\t\tString[] sa = sentence.trim().split(\"\\\\s\"); \n\t\tString newest=\"\";\n\t\tfor (int i = sa.length - 1; i >= 0; i--) \n\t\t{ \n\t\t\tString newword=sa[i]; \n\t\t\t//reverse.append(' '); \n\t\t\tString newstring=\"\";\n\t\t\tfor(int n=newword.length()-1;n>=0;n--)\n\t\t\t{\n\t\t\t\tnewstring=newstring+newword.charAt(n);\n\t\t\n\t\t\t}\n\t\t\tnewest=newest+newstring+\" \";\n\t\t} \n\t\tSystem.out.println( reverse.toString().trim());\n\t\tSystem.out.println(\"newest \"+newest);\n\t\tSystem.out.println(\"number of words in the string \"+sa.length);\n\n\t\t\n\t\t//reverse chars in the word in place\n\t\tString s11=\"my name is niveda\";\n\t\tString reversestring=\"\";\n\t\tString[] c11=s11.trim().split(\"\\\\s\");\n\t\tfor(int k=0;k<c11.length;k++)\n\t\t{\n\t\t\tString word=c11[k];\n\t\t\tString reverseword=\"\";\n\t\t\tfor(int m=word.length()-1;m>=0;m--)\n\t\t\t{\n\t\t\t\t\n\t\t\treverseword=reverseword+word.charAt(m);\n\t\t\t}\n\t\t\treversestring=reversestring+reverseword+\" \";\n\t\t}\n\t\t\n\t\tSystem.out.println( reversestring);\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tPermutation p = new Permutation();\r\n\t\t//p.permutation(\"abc\");\r\n\t\tp.permutation2(\"abc\");\r\n\t}", "static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }", "public static void genPerms(String pre, String str, int k, int len, Set<String> hSet) {\n if (k == len) {\n hSet.add(pre + str);\n }\n\n for (int i = 0; i < str.length(); i++) {\n String x = pre + str.charAt(i);\n String y = str.substring(0, i) + str.substring(i + 1);\n genPerms(x, y, k + 1, len, hSet);\n }\n }", "public static void permutation2(String s, int k, Set<Character> skip, StringBuffer sb,\r\n\t\t\tSet<String> set) {\r\n\r\n\t\tif (k == s.length()) {\r\n\t\t\tset.add(sb.toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (!skip.contains(s.charAt(i))) {\r\n\t\t\t\tsb.append(s.charAt(i));\r\n\t\t\t\tskip.add(s.charAt(i));\r\n\t\t\t\t\r\n\t\t\t\tpermutation2(s, k + 1, skip, sb, set);\r\n\t\t\t\tsb.setLength(sb.length() - 1);\r\n\t\t\t\tskip.remove(s.charAt(i));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void permutation3(StringBuffer sb, int k, Set<String> set)\r\n\t{\r\n\t\tif(k == sb.length())\r\n\t\t{\r\n\t\t\tset.add(sb.toString());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\tfor(int i =k ;i < sb.length();i++)\r\n\t\t{\r\n\t\t\tswap(sb,k,i);\r\n\t\t\tpermutation3(sb,k+1, set);\r\n\t\t\tswap(sb,i,k);\r\n\t\t}\r\n\t}", "public static String run() {\r\n\t\t// Initialize\r\n\t\tint[] array = new int[10];\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = i;\r\n\r\n\t\t// Permute\r\n\t\tfor (int i = 0; i < 999999; i++) {\r\n\t\t\tif (!nextPermutation(array))\r\n\t\t\t\tthrow new AssertionError();\r\n\t\t}\r\n\r\n\t\t// Format output\r\n\t\tString ans = \"\";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tans += array[i];\r\n\t\treturn ans;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter string\");\n\t\tString input1 = scan.next();\n\t\tString input2 = scan.next();\n\t\tcheckPermutations(input1,input2);\n\t}", "public static boolean checkIfPermutations(String str1, String str2) {\n\n if(str1.length() != str2.length())\n return false;\n\n char chars1[] = str1.toCharArray();\n char chars2[] = str2.toCharArray();\n\n Arrays.sort(chars1);\n Arrays.sort(chars2);\n\n for(int i=0; i<str1.length(); i++) {\n if(chars1[i] != chars2[i])\n return false;\n }\n\n return true;\n }", "static int longestSubsequence(String x, String y) {\n char[] strX = x.toCharArray();\n char[] strY = y.toCharArray();\n\n Map<Character, Integer> xMap = new HashMap<>();\n Map<Character, Integer> yMap = new HashMap<>();\n\n for (int i = 0; i < strX.length; i++) {\n char c = strX[i];\n if (xMap.containsKey(c)) {\n xMap.put(c, xMap.get(c) + 1);\n } else {\n xMap.put(c, 1);\n }\n }\n\n for (int i = 0; i < strY.length; i++) {\n char c = strY[i];\n if (yMap.containsKey(c)) {\n yMap.put(c, yMap.get(c) + 1);\n } else {\n yMap.put(c, 1);\n }\n }\n\n System.out.println(xMap);\n System.out.println(yMap);\n\n ArrayList<Character> subsequence = new ArrayList<>();\n\n // first find match subsequence\n for (Character c : yMap.keySet()) {\n if (!xMap.containsKey(c)) {\n continue;\n }\n\n int xCount = xMap.get(c);\n int yCount = yMap.get(c);\n int charCount = xCount < yCount ? xCount : yCount;\n\n for (int i = 0; i < charCount; i++) {\n subsequence.add(c);\n }\n }\n\n System.out.println(\"may be seq\" + subsequence);\n\n int max = 0;\n for (int i = 0; i < subsequence.size(); i++) {\n char c = subsequence.get(i);\n ArrayList<Character> remains = new ArrayList<>(subsequence);\n remains.remove(i);\n StringBuilder curr = new StringBuilder();\n curr.append(c);\n// System.out.println(\"max\" + max);\n int result = findPermutation(y, curr, remains, max);\n if (result > max) {\n max = result;\n }\n }\n\n // find matching permutation\n\n System.out.println(\"result\" + max);\n // then find sub string\n return max;\n }", "static String reverseShuffleMerge(String s) {\r\n resultString = new char[s.length()/2];\r\n inputString = s;\r\n \r\n for (int i = 0; i < s.length(); i++) {\r\n charCounts.put(s.charAt(i), charCounts.getOrDefault(s.charAt(i),0)+1);\r\n initialCharCounts.put(s.charAt(i), initialCharCounts.getOrDefault(s.charAt(i),0)+1);\r\n }\r\n \r\n for (int i = s.length()-1; i >= 0; i--) {\r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n \r\n if(minCharacter > s.charAt(i) && usedCharCounts.getOrDefault(s.charAt(i),0) < initialCharCounts.get(s.charAt(i))/2) {\r\n minCharacter = s.charAt(i);\r\n }\r\n \r\n if(initialCharCounts.get(s.charAt(i))/2 < charCounts.get(s.charAt(i)) + usedCharCounts.getOrDefault(s.charAt(i), 0) ) {\r\n possibleCharsList.add(s.charAt(i));\r\n }\r\n else {\r\n if(minCharacter >= s.charAt(i)) {\r\n addResultString(s.charAt(i));\r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n else {\r\n if(minCharacter != Character.MAX_VALUE && minCharacter != s.charAt(i)) {\r\n addResultString(minCharacter);\r\n }\r\n }\r\n }\r\n else {\r\n if(possibleCharsList.size()>0) {\r\n checkandAddPossibleChars(s,i);\r\n }\r\n \r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n else {\r\n addResultString(s.charAt(i));\r\n }\r\n }\r\n minCharacter = Character.MAX_VALUE;\r\n possibleCharsList.clear();\r\n }\r\n \r\n charCounts.put(s.charAt(i), charCounts.get(s.charAt(i))-1);\r\n }\r\n \r\n System.out.println(String.valueOf(resultString));\r\n return String.valueOf(resultString);\r\n\r\n\r\n }", "public static boolean isStringPermutation(String s1, String s2)\n\t{\n\t\tif(s1.length()==s2.length())\n\t\t{\n\t\t\t//convert string to character array\n\t\t\tchar [] name1 = s1.toCharArray();\n\t\t\tchar [] name2 = s2.toCharArray();\n\t\t\t\n\t\t\t//sort new character arrays from smallest to greatest\n\t\t\tArrays.sort(name1);\n\t\t\tArrays.sort(name2);\n\t\t\t\n\t\t\t//compare if it's the same\n\t\t\tboolean checker = Arrays.equals(name1,name2);\n\t\t\tSystem.out.println(\"Is \" + s2 + \" a permutation of \" + s1 + \"?\");\n\t\t\t\tif (checker)\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"True\");\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\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\tSystem.out.println(\"False\");\n\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//string lengths are not the same\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, Strings are not equal\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString str=\"aaabbccds\";\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<str.length();i++)\r\n\t\t{count=0;\r\n\t\t\tfor(int j=i+1;j<str.length();j++)\r\n\t\t\t{\r\n\t\t\t\tif(str.charAt(i)==str.charAt(j))\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count==0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(str.charAt(i));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{int countt = count+1;\r\n\t\t\t System.out.print(str.charAt(i));\r\n\t\t\t System.out.print(countt);\r\n\t\t\t}\r\n\t\t\ti=i+count;\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tint tc = scn.nextInt();\r\n\t\tfor(int t=1; t<=tc; t++) {\r\n\t\t\tint n = scn.nextInt();\r\n\t\t\tint k = scn.nextInt();\r\n\t\t\tString str = scn.next();\r\n\t\t\tString arr[] = new String[n];\r\n\t\t\tarr = str.split(\"\");\r\n\t\t\tLinkedList<String> list = new LinkedList<>();\r\n\t\t\tLinkedList<Integer> result = new LinkedList<>();\r\n\t\t\tfor(int i=0; i<n; i++) {\r\n\t\t\t\tlist.add(arr[i]);\r\n\t\t\t}\r\n\t\t\tint comeback = 0;\r\n\t\t\twhile(comeback<4) {\r\n\t\t\t\tint cnt = 0;\r\n\t\t\t\tcomeback = 0;\r\n\t\t\t\tString st = \"\";\r\n\t\t\t\tfor(int i=0; i<n; i++) {\r\n\t\t\t\t\tif(cnt==(n/4)-1) {\r\n\t\t\t\t\t\tcnt = 0;\r\n\t\t\t\t\t\tst += list.get(i);\r\n\t\t\t\t\t\tint tmp = Integer.parseInt(st, 16);\r\n\t\t\t\t\t\tif(!isHave(result,tmp) && (result.size()>0)) {\r\n\t\t\t\t\t\t\tresult.add(tmp);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(result.size() == 0){\r\n\t\t\t\t\t\t\tresult.add(tmp);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tcomeback++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tst = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tst+= list.get(i);\r\n\t\t\t\t\t\tcnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\trotate(list);\r\n\t\t\t}\r\n\t\t\tCollections.sort(result);\r\n\t\t\tint cnt = 0;\r\n\t\t\tSystem.out.println(\"#\"+t+\" \"+result.get(result.size()-k));\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tString l = br.readLine();\n\t\tArrayList<String> salida= new ArrayList<>();\n\t\tArrayList<String> a= new ArrayList<>();\n\t\tint r=0;\n\t\twhile (!l.equals(\"\")) {\n\t\t\t\n\t\t\tLinkedList<Character> conjunto = new LinkedList<>();\n\t\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\t\tconjunto.add(l.charAt(i));\n\t\t\t}\n\t\t\t/*a = permutar(\"\", conjunto,salida);\n\t\t\tSystem.err.println(a.toString());*/\n\t\t\tsalida.clear();\n\t\t\tr = per(\"\", conjunto,salida);\n\t\t\tpw.println(r);\n\t\t\tr=0;\n\t\t\tl = br.readLine();\n\t\t}\n\t\tpw.close();\n\t}" ]
[ "0.7578072", "0.7512708", "0.74643934", "0.738365", "0.7335044", "0.7180316", "0.7150882", "0.70216453", "0.7009321", "0.699003", "0.69671845", "0.6945909", "0.69108874", "0.69020694", "0.68510556", "0.6836428", "0.68150175", "0.679574", "0.67761034", "0.67501414", "0.67351425", "0.6714055", "0.67001086", "0.6687415", "0.66121817", "0.6520362", "0.64781094", "0.6468509", "0.6465229", "0.64621466", "0.6459061", "0.6455436", "0.64323694", "0.64290726", "0.63536006", "0.63048697", "0.62922955", "0.62875104", "0.62860966", "0.62698466", "0.62522167", "0.62506735", "0.61602294", "0.6158835", "0.61533505", "0.61268157", "0.6106486", "0.6098698", "0.6054385", "0.6042248", "0.6018866", "0.601034", "0.5973009", "0.5914447", "0.5903287", "0.58940995", "0.58806944", "0.58729553", "0.58617795", "0.5851812", "0.5842677", "0.58358145", "0.58178234", "0.5815863", "0.57792795", "0.5775741", "0.5771918", "0.5762037", "0.575715", "0.57570195", "0.5751982", "0.57432866", "0.5729338", "0.57197785", "0.57178575", "0.5701359", "0.5699973", "0.569724", "0.56960684", "0.56830657", "0.5682136", "0.56738997", "0.5663529", "0.56568825", "0.5631807", "0.5631643", "0.5614668", "0.56135046", "0.5603209", "0.560316", "0.55890715", "0.55651295", "0.55647767", "0.5547106", "0.5540223", "0.5527846", "0.5527232", "0.5512658", "0.5511711", "0.55016536" ]
0.7753373
0
Costruttore della classe InPrigione
public InPrigione(String nome, int numero) { super(nome, numero); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TipoPrestamo() {\n\t\tsuper();\n\t}", "public Dipendente() {\r\n\t\tsetnMat();\r\n\t}", "public void setInoId(String pId);", "@Override\r\n public String toString() {\r\n return \"Poligono{\" + '}';\r\n }", "public Prova() {}", "public Profesional(int aniosExperiencia, String departamento,\n\t\t\tString titulo, String fechaIngreso) {\n\t\tsuper();\n\t\tthis.aniosExperiencia = aniosExperiencia;\n\t\tthis.departamento = departamento;\n\t\tthis.titulo = titulo;\n\t\tthis.fechaIngreso = fechaIngreso;\n\t}", "public Profesor (String apellidos, String nombre, String nif, Persona.sexo genero, int edad, int expediente){\n this.apellidos = apellidos;\n this.nombre = nombre;\n this.nif = nif;\n this.genero = genero;\n this.edad = edad;\n this.expediente = expediente;\n }", "public AntrianPasien() {\r\n\r\n }", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public Propiedad(){\n\t}", "public Plato(){\n\t\t\n\t}", "public Giocatore(String nome, Casella c, Pedina p) {\r\n\t\tsetNome(nome);\r\n\t\tsetPedina(p);\r\n\t\tcasella = c;\r\n\t\tdado = new Dado();\r\n\t\t\r\n\t\tpunt_carta = punteggioIniziale;\r\n\t\tpunt_plastica = punteggioIniziale;\r\n\t\tpunt_vetro = punteggioIniziale;\r\n\t\tpunt_metallo = punteggioIniziale;\r\n\t\tpunt_indifferenziata = punteggioIniziale;\r\n\t\tpunt_organica = punteggioIniziale;\r\n\t}", "public Cgg_jur_anticipo(){}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "private QuadradoPerfeito() {\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public PulverizacionItem(SimpleFeature pulvFeature) {\r\n\t\tsuper(pulvFeature);\t\t\t\t\r\n\t}", "public Nid(String matiere, int capacite)\n {\n // initialisation des variables d'instance\n this.matiere = matiere;\n this.capacite = capacite;\n }", "protected modelCartelera(Parcel in) {\n nombre = in.readString();\n descripcion = in.readString();\n id = in.readInt();\n //imagenCartelera = in.readInt();\n }", "public Produto(String nome, String descricao, double preco, String tipo) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t}", "public Tigre(String pCouleur, int pPoids) {\n this.couleur = pCouleur;\n this.poids = pPoids;\n }", "private ControleurAcceuil(){ }", "protected Asignatura()\r\n\t{}", "public Notifica(){}", "public void setTipoInmueble(Valor tipoInmueble) {\n this.tipoInmueble = tipoInmueble;\n }", "public void setCodigoImputacion(String p) { this.codigoImputacion = p; }", "public PanCoperti() {\n /* rimanda al costruttore della superclasse */\n super(Layout.ORIENTAMENTO_ORIZZONTALE);\n\n\n try { // prova ad eseguire il codice\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n }// fine del blocco try-catch\n }", "protected ProvinciaList() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public QLNhanVien(){\n \n }", "private Productos(int codigo, String descripcion, double precio) {\n this.codigo = codigo;\n this.descripcion = descripcion;\n this.precio = precio;\n }", "public Cgg_jur_anticipo(\n\t\tcom.besixplus.sii.objects.Cgg_jur_anticipo inCgg_jur_anticipo\n\t){\n\t\tthis.setCgg_jur_anticipo(inCgg_jur_anticipo);\n\t}", "public FilmePremioRecord() {\n super(FilmePremio.FILME_PREMIO);\n }", "public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }", "public Ingredient(String nouveauNom, String nouvelleDescription)\n {\n this.nom = nouveauNom;\n this.description = nouvelleDescription;\n }", "public Pile() {\r\n\t\tconstruirePile();\r\n\t}", "public Ingredient(){\r\n\t}", "public Polaznik(String ime, String prezime) {\r\n\t\tthis.ime = ime;\r\n\t\tthis.prezime = prezime;\r\n\t\tidPolaznik++;\r\n\t\tidGlobalPolaznik++;\r\n\t}", "public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "public Produto() {}", "public Coloca_imagen(){\n \n \n }", "private Ingrediente givenExisteUnIngrediente() {\n\t\tIngrediente ing = new Ingrediente();\n\t\ting.setId_categoriaIngrediente(1);\n\t\ting.setNombre(\"TOMATE\");\n\t\treturn ing;\n\t}", "public RptPotonganGaji() {\n }", "public abstract Anuncio creaAnuncioIndividualizado();", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }", "private IngenicoDisplay(){\n\n }", "public PrestamoAuto(int noCliente, String nombre, int noCuenta, double capPrestado, int plazoInversion) {\r\n this.noCliente = noCliente;\r\n this.nombre = nombre;\r\n this.noCuenta = noCuenta;\r\n this.capPrestado = capPrestado;\r\n this.plazoInversion = plazoInversion;\r\n }", "public CartaPersonaggi(int money,String nome,String effettoImmed,String effettoPerman,int period,int costo){\n super(period,costo);\n costoMonete = money;\n this.nome = nome;\n effettoImm = effettoImmed;\n effettoPer = effettoPerman;\n }", "public ProductosInventario(String codigoDeBarras, String nombre, Empresa empresa, int presentacion, int iva, int costo, int cantidad, String tipo, int precio) {\n\t\tthis.producto = new Producto(codigoDeBarras, nombre, empresa, presentacion, iva, costo,precio);\n\t\tthis.cantidad = 0;\n\t\tsetCantidad(cantidad);\n\t\tthis.tipo = tipo;\n\t}", "public MorteSubita() {\n }", "public ContribuintesIndividuais(ContribuintesIndividuais c){\n super(c);\n this.dependentes = c.getDependentes();\n this.nifs = c.getNifs();\n this.coeffiscal = c.getCoeffiscal();\n this.codigos = c.getCodigos();\n this.numFilhos = c.getNumFilhos();\n }", "public BArbol(NodoArbol primero) {\n this.primero = primero;\n }", "public String getInoId();", "public void setCodProd(IProduto codigo);", "@Generated\n public Impuestos() {\n }", "public void iniciarNovaPartida(Integer posicao);", "public Exercicio(){\n \n }", "public String getIcao() { return Icao; }", "public prueba()\r\n {\r\n }", "public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }", "public IProduto getCodProd();", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "public PantallaInicio(PanelJuego p){\n this.p = p;\n colorLetra = Color.WHITE;\n colorInicio = Color.BLACK;\n fuenteGrande = new Font(\"Arial\", Font.BOLD, 30);\n }", "private DittaAutonoleggio(){\n \n }", "public ConsultaMassivaCapitoloEntrataPrevisioneModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Consulta Capitolo Entrata Previsione (Massivo)\");\n\t}", "@Override\r\n\tpublic String getType() {\n\t\treturn \"Pigiste\";\r\n\t}", "public Carta(int num,Seme se,int va,int pu){\n this.numero=num;\n this.seme=se;\n this.valore=va;\n this.punti=pu;\n }", "public Kullanici() {}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "Petunia() {\r\n\t\t}", "public Pokemon (int id, String nombre, int evolucion, String tipo,String rutaImagen)\r\n\t{\r\n\t\tthis.id = id;\r\n\t\tthis.nombre = nombre;\r\n\t\tsetVidas(0);\r\n\t\tsetNivel(0);\r\n\t\tthis.tipo=tipo;\r\n\t\tthis.evolucion = evolucion;\r\n\t\tthis.rutaImagen = rutaImagen;\r\n\t}", "@Override\n public String toString() {\n return \"jipe: \"+super.toString();\n }", "public Posizione getPosizione() {\n return posizione;\n }", "public BrihaspatiProFile() {\n }", "public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}", "SintagmaPreposicional createSintagmaPreposicional();", "public Candidatura (){\n \n }", "public ParametroPorParametroPK() {\r\n\t}", "public Pacotinho(Repositorio repositorio, int quantItensNoPacotinho) {\n this.repositorio = repositorio;\n this.quantItensNoPacotinho = quantItensNoPacotinho;\n\n adicionarFigurinhasAleatorias();\n }", "public CuentaAhorroP(int numCl, String nom, String numCu, double inve, double intAnual, int plazoInv,\n double saldo){\n this.numCl = numCl;\n this.nom = nom;\n this.numCu = numCu;\n this.inve = inve;\n this.intAnual = intAnual;\n this.plazoInv = plazoInv;\n this.saldo = saldo;\n }", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "public ArmasHija2(int objetoHija2){\r\n super(objetoHija2);\r\n this.objetoHija2=objetoHija2;\r\n }", "public FilmePremioRecord(Integer filmeId, Integer premioId) {\n super(FilmePremio.FILME_PREMIO);\n\n set(0, filmeId);\n set(1, premioId);\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public PupilInfo() {\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Estado_ps_peticionLocal getEstado_ps_peticion();", "public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public JPDV1(Principal P) {\n this.Princi = P;\n initComponents();\n }", "public VotacaoSegundoDia() {\n\n\t}", "public ConsultaPrimaNotaIntegrataGSAModel() {\n\t\tsetTitolo(\"Consulta prima nota integrata\");\n\t}", "public ParametroPorParametroPK(Integer idpadre, Integer idhijo) {\r\n\t\tparametroIdParametroPadre = idpadre;\r\n\t\tparametroIdParametroHijo = idhijo;\r\n\t}", "public PokretniEntitet(double brzina, double ugao, double x, double y,\n int vitalnost) {\n //da li da prosledim parametre za super() konstruktor?\n //u tekstu ne pise da trazim i ostale parametre\n super(x,y,vitalnost);\n this.brzina = brzina;\n this.ugao = ugao;\n }", "public Pokemon (int id, String nombre,int Nivel, int Vidas, int evolucion, String tipo,String rutaImagen)\r\n\t{\r\n\t\tthis.id = id;\r\n\t\tthis.nombre = nombre;\r\n\t\tsetVidas(vidas);\r\n\t\tsetNivel(nivel);\r\n\t\tthis.evolucion = evolucion;\r\n\t\tthis.tipo = tipo;\r\n\t\tthis.rutaImagen = rutaImagen;\r\n\t}", "public PilaDin() {\n inicio = null;\n }" ]
[ "0.62795496", "0.61142665", "0.61130124", "0.59696054", "0.59647125", "0.59597766", "0.5910445", "0.59012073", "0.5872804", "0.5812212", "0.58065516", "0.57955456", "0.5783129", "0.5773293", "0.5765491", "0.5761702", "0.5749984", "0.57465655", "0.5734693", "0.5724222", "0.5678829", "0.5673898", "0.56722397", "0.56722087", "0.5664822", "0.5663917", "0.565624", "0.5649049", "0.5642334", "0.5640706", "0.56245875", "0.5622946", "0.561794", "0.56161577", "0.561101", "0.5608701", "0.5607442", "0.55968434", "0.55925643", "0.5591853", "0.5588293", "0.55724114", "0.5570464", "0.55702364", "0.556046", "0.5560427", "0.55604184", "0.55602986", "0.55572045", "0.55514896", "0.55454373", "0.5545049", "0.5527263", "0.55271906", "0.5526902", "0.5526777", "0.55192095", "0.55176824", "0.55133265", "0.55123687", "0.5503375", "0.55021405", "0.5500275", "0.54988426", "0.54984933", "0.5497729", "0.54950833", "0.5494619", "0.5494409", "0.54936177", "0.5492867", "0.5492682", "0.54918706", "0.5489478", "0.5487449", "0.54849315", "0.5483906", "0.5482116", "0.54801977", "0.54755414", "0.54753757", "0.54733515", "0.5468111", "0.5463594", "0.54634374", "0.5461229", "0.54598385", "0.54589343", "0.5457919", "0.54576635", "0.5456061", "0.5448374", "0.5447696", "0.5445043", "0.54400796", "0.54368895", "0.5432652", "0.5430688", "0.5429352", "0.5428718" ]
0.71401083
0
Gestisce il passaggio di un giocatore su una casella di tipo InPrigione
@Override public void effetto(Giocatore giocatoreAttuale) { giocatoreAttuale.vaiInPrigione(); System.out.println(MESSAGGIO_IN_PRIGIONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public Giocatore(String nome, Casella c, Pedina p) {\r\n\t\tsetNome(nome);\r\n\t\tsetPedina(p);\r\n\t\tcasella = c;\r\n\t\tdado = new Dado();\r\n\t\t\r\n\t\tpunt_carta = punteggioIniziale;\r\n\t\tpunt_plastica = punteggioIniziale;\r\n\t\tpunt_vetro = punteggioIniziale;\r\n\t\tpunt_metallo = punteggioIniziale;\r\n\t\tpunt_indifferenziata = punteggioIniziale;\r\n\t\tpunt_organica = punteggioIniziale;\r\n\t}", "public InPrigione(String nome, int numero) {\n\t\tsuper(nome, numero);\n\t}", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "Gruppo getGruppo();", "private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "public Gioco(String titolo, int larghezza, int altezza)\n {\n //Inizializzazione degli attributi\n this.larghezza = larghezza;\n this.altezza = altezza;\n this.titolo = titolo;\n gestoreTasti = new GestoreTasti();\n gestoreMouse = new GestoreMouse();\n }", "@Test\n\tpublic void usuarioSobreLaLineaDeBordeDeCoberturaDelCGP(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionUsuario));\n\t}", "public static String creaCodiceGiorno(String giornoPersona, String sessoPersona) {\n\n\t\t//se il sesso è F\n\t\tif (sessoPersona.equals(\"F\")) {\n\t\t\t//converto la stringa del giorno in int\n\t\t\tint giornoPersonaInt = Integer.parseInt(giornoPersona);\n\t\t\tgiornoPersonaInt += 40;\n\t\t\t//riconverto da int a string \n\t\t\tgiornoPersona = Integer.toString(giornoPersonaInt);\n\t\t}\n\n\t\treturn giornoPersona;\n\t}", "public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }", "public void acionarInadimplencia(CestaGarantiasDO cesta);", "public Tigre(String pCouleur, int pPoids) {\n this.couleur = pCouleur;\n this.poids = pPoids;\n }", "@Override\r\n\tpublic String getType() {\n\t\treturn \"Pigiste\";\r\n\t}", "public void setCROSG_CODIGO(String inCrosg_codigo){\n\t\tthis.myCrosg_codigo = inCrosg_codigo;\n\t}", "public static Perro CargarPerro(int capPerro) {\n boolean condicion = false;\r\n int razaPerro, diaIngreso, mesIngreso, anioIngreso, diasDeEstadia;\r\n char generoPerro;\r\n String nombrePerro, nombreCliente, numCliente;\r\n Perro nuevoPerro;\r\n Fecha fechaIngreso;\r\n nuevoPerro = new Perro(codPerro);\r\n System.out.println(\"Ingrese el nombre del perro\");\r\n nombrePerro = TecladoIn.readLine();\r\n nuevoPerro.setNombre(nombrePerro);\r\n\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n nuevoPerro.setGenero(generoPerro);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n\r\n condicion = false;\r\n\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n nuevoPerro.setRaza(TiposDeRaza(razaPerro - 1));\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n nuevoPerro.setFechaIngreso(fechaIngreso);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese la Cantidad de estadia:\");\r\n diasDeEstadia = TecladoIn.readLineInt();\r\n if (diasDeEstadia > 0) {\r\n nuevoPerro.setCantDias(diasDeEstadia);\r\n System.out.println(\"Ingrese el Nombre y Apellido del Cliente\");\r\n nombreCliente = TecladoIn.readLine();\r\n nuevoPerro.setNombreDuenio(nombreCliente);\r\n System.out.println(\"Ingrese Numero de telefono\");\r\n numCliente = TecladoIn.readLine();\r\n nuevoPerro.setTelefonoDuenio(numCliente);\r\n codPerro++;\r\n condicion = true;\r\n\r\n } else {\r\n System.out.println(\"Ingrese una cantidad de dias mayor a 0\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n\r\n return nuevoPerro;\r\n }", "public void registrarCompraIngrediente(String nombre, int cantidad, int precioCompra, int tipo) {\n //Complete\n }", "public void buscarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setDescripcionSeccion(\"Primaria\");\n \tgrado.setNumGrado(4);\n \tgrado.setDescripcionUltimoGrado(\"NO\");\n \tString respuesta = negocio.buscarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "protected String getAbreviaturaProceso(Constantes.PROCESOS proc) throws Exception{\n\t\treturn getParametro(proc.getCodValor());\r\n\t}", "public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}", "public void mostraOggetto(int idGioc, String value){\n\t\t if(\"Y\".equals(value))\n\t\t\t partita.getPlayers().getGiocatore(idGioc).mostraEquipaggiamento();\n\t\t if(\"N\".equals(value)){\n\t\t\t StatiGioco prossimoStato=partita.nextPhase(StatiGioco.OBJECTSTATE,StatiGioco.DONTKNOW, idGioc);\n\t\t\t partita.getPlayers().getGiocatore(idGioc).setStatoAttuale(prossimoStato);\n\t\t\t if(prossimoStato.equals(StatiGioco.DRAWSTATE))\n\t\t\t\tsuono(idGioc); \n\t\t\t}\n\t\t\treturn;\n\n\t }", "public interface GestionDesProfilsOperations\r\n{\r\n /**\r\n * Read accessor for numeroGDP attribute\r\n * @return the attribute value\r\n */\r\n public short numeroGDP();\r\n\r\n /**\r\n * Operation connexion\r\n */\r\n public PostLicence.GestionDesVoeux connexion(PostLicence.IEtudiant iorEtudiant, String ine, String mdp)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation consulterProfil\r\n */\r\n public PostLicence.Etudiant consulterProfil(String ine)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation modifierProfil\r\n */\r\n public void modifierProfil(String ine, String adr)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation inscriptionGestionDesVoeux\r\n */\r\n public void inscriptionGestionDesVoeux(PostLicence.GestionDesVoeux GDesVx);\r\n\r\n}", "void setGruppo(Gruppo gruppo);", "private void convertir(IConsole per, IConsole eq) throws RemoteException {\n\n\t\t// ajouter au leader s'il y en a un\n\t\tint leader = ((Personnage) per.getElement()).getLeader();\n\n\t\t// si charisme inférieur à deter alors rien ne se passe sinon le perso est changé d'équipe\n\t\tif (((Personnage)eq.getElement()).getDetermination() < ((Personnage)per.getElement()).getCharisme()) {\n\t\t\tif (leader == -1) { // le personnage n'est pas dans une equipe\n\t\t\t\teq.changerLeader(per);\n\t\t\t\tper.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe\", per.getVueElement());\n\t\t\t\tSystem.out.println(per.getRefRMI() + \" ajoute a son equipe \" + eq.getRefRMI());\n\n\t\t\t} else { // le personnage a un leader\n\t\t\t\tIConsole lead = arene.consoleFromRef(leader);\n\n\t\t\t\teq.changerLeader(lead);\n\n\t\t\t\tlead.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe (par \" + per.getRefRMI() + \")\", lead.getVueElement());\n\t\t\t\tSystem.out.println(leader + \" ajoute a son equipe (par \" + per.getRefRMI() + \") \" + eq.getRefRMI());\n\t\t\t}\n\t\t\t//le personnage reçoit la determination de son enroleur\n\t\t\teq.getElement().getCaract().put(\"determination\", ((Personnage) per.getElement()).getDetermination());\n\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Rien ne se passe\");\n\t\t}\n\t}", "public void acionarInadimplencia(InstrumentoFinanceiroDO ativo);", "public Fogon (String cocineroActual){\n Cocinero = cocineroActual;\n grados = 0; \n }", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public void setRagione_sociale(String ragione_sociale) {\r\n this.ragione_sociale = ragione_sociale;\r\n }", "public void setGiro(int giro2){\n\t\t//hacer lo esto con giro set y get\n\t\tthis.giro=giro2;\n\t}", "private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}", "@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }", "@Override\r\n\tpublic void commanderParMap(Map<Produit, Integer> mapOfProduits) {\n\r\n\t}", "public void togliCarta(Terreno tipo) {\n\t\tswitch (tipo) {\n\t\tcase AGRICOLO:\n\t\t\tnumAGRICOLI--;\n\t\t\treturn;\n\t\tcase ARIDO:\n\t\t\tnumARIDI--;\n\t\t\treturn;\n\t\tcase FIUME:\n\t\t\tnumFIUMI--;\n\t\t\treturn;\n\t\tcase FORESTA:\n\t\t\tnumFORESTE--;\n\t\t\treturn;\n\t\tcase MONTAGNA:\n\t\t\tnumMONTAGNE--;\n\t\t\treturn;\n\t\tcase PRATO:\n\t\t\tnumPRATI--;\n\t\t\treturn;\n\t\tdefault:\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n\tpublic void initialisation_type_exercice() {\n\t\tthis.setEnnonce_exo(\"Ecrire un algorithme qui demande deux nombres à l’utilisateur et l’informe ensuite si le produit est négatif ou positif (on inclut cette fois le traitement du cas où le produit peut être nul). Attention toutefois, on ne doit pas calculer le produit !\");\n\n\t}", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "@Override\r\n public String toString() {\r\n return \"Poligono{\" + '}';\r\n }", "public void spostamento(int idGioc, String value) {\n\t\t//In questo caso value è la stringa di una casella\n\t\tpartita.spostamento(idGioc, value);\n\t\t\n\t}", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "public Cgg_jur_anticipo(\n\t\tcom.besixplus.sii.objects.Cgg_jur_anticipo inCgg_jur_anticipo\n\t){\n\t\tthis.setCgg_jur_anticipo(inCgg_jur_anticipo);\n\t}", "public interface ControlloGioco {\r\n public boolean ControlDisco(int riga, int colonna, boolean colore);\r\n\r\n}", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}", "@Override\n public Boolean colisionoCon(Grafico gr) {\n return true;\n }", "public Profesor (String apellidos, String nombre, String nif, Persona.sexo genero, int edad, int expediente){\n this.apellidos = apellidos;\n this.nombre = nombre;\n this.nif = nif;\n this.genero = genero;\n this.edad = edad;\n this.expediente = expediente;\n }", "public void setCVCTG_CODIGO(String inCvctg_codigo){\n\t\tthis.myCvctg_codigo = inCvctg_codigo;\n\t}", "public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void muestraProveedor(String proveedor) {\n }", "public interface CambioImagenPerfil{\n\n void opcionEscogida(String app);\n }", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }", "@Override\n public void registrarPropiedad(Propiedad nuevaPropiedad, String pIdAgente) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"INSERT INTO PROPIEDAD (ID_PROPIEDAD, ID_AGENTE, MODALIDAD, \"\n + \"AREA_TERRENO, VALOR_METRO, VALOR_FISCAL, PROVINCIA, CANTON, DISTRITO, DIREXACTA, TIPO, \"\n + \"ESTADO, PRECIO) VALUES (\" + numFinca + \", '\" + pIdAgente + \"' , '\" + modalidad + \"',\" + \n area + \",\" + metro + \",\" + fiscal + \", '\" + provincia + \"' , '\" + canton + \"' , '\" + distrito \n + \"' , '\" + dirExacta + \"' , '\" + tipo + \"' , '\" + estado + \"', \" + precio + \")\");\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void carregar(DadosGrafico dados){\r\n \r\n }", "public Profesor getProfesorAsig () {\n return ProfesorAsig;\n }", "public void addProdotto(String codice, int quantita, Request request) {\n\t\ttry {\n\t\t\tSystem.out.println(getSession().getCarrello());\n\t\t\tgetSession().getCarrello().addByCodice(codice, quantita);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn;\n\t}", "@Test\n\tpublic void unUsuarioEstaDentroDelAreaDeCobertura(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionSeis));\n\t}", "public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }", "public Proveedor(String tipo, int cantArticulos, double montoPago, String encargado) {\r\n this.tipo = tipo;\r\n this.cantArticulos = cantArticulos;\r\n this.montoPago = montoPago;\r\n this.encargado = encargado;\r\n }", "public abstract void creationGrille();", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "private static void gioca(DBManager database)\n\t\t\tthrows ClassNotFoundException, SQLException {\n\n\t\tif (players.size() < MIN_PLAYERS) {\n\t\t\tSystem.out\n\t\t\t\t\t.printf(\"Attualmente ci sono %d giocatori.\\nCi devono essere almeno 2 giocatori per giocare!\\n\",\n\t\t\t\t\t\t\tplayers.size());\n\t\t}\n\t\telse {\n\t\t\tCollections.shuffle(players);\n\t\t\tPartita parta = new Partita(database, players);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(Giocatore p : players){\n\t\t\t\tBanca.prelievo(p, CAPITALE_INIZIALE);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tint turno = 0;\n\t\t\twhile (turno < NUMERO_TURNI * players.size() && players.size()>1) {\n\t\t\t\tif (turno %players.size() == 0)\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.printf(\"Turno %d\\n\", ((turno + 1)/players.size())+1);\n\n\t\t\t\ttry{\n\t\t\t\t\tparta.turno();\n\t\t\t\t}catch (FallimentoException e){\n\t\t\t\t\t\n\t\t\t\t\tplayers.remove(e.getGiocatore());\n\t\t\t\t\tparta.rimuoviGiocatore(e.getGiocatore());\n\t\t\t\t}\n\t\t\t\tturno += 1;\n\t\t\t\ttry{\n\t\t\t\t\tSystem.in.read();\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tproclamaVincitore();\n\t}", "public String getProfi() {\r\n\t\treturn profi;\r\n\t}", "public void cargarListaCreditoTributarioSRI()\r\n/* 680: */ {\r\n/* 681:750 */ this.listaCreditoTributarioSRI = this.servicioCreditoTributario.buscarPorTipoComprobanteSRI(this.facturaProveedorSRI.getTipoComprobanteSRI(), this.facturaProveedorSRI\r\n/* 682:751 */ .getTipoIdentificacion());\r\n/* 683: */ }", "public void aggiungiPiatto(String nome_piatto, double prezzo_piatto, int porzioni) {\n\t\tPiatto nuovo_piatto= new Piatto(nome_piatto,prezzo_piatto, porzioni);\n\t\tquantita.add(nuovo_piatto);\n\t\tquantita.sort();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tProvaCollezioni pc = new ProvaCollezioni();\n\t\t\n\t\tpc.spesa.add(\"latte\");\n\t\tpc.spesa.add(\"pane\");\n\t\tpc.spesa.add(\"biscotti\");\n\t\tpc.spesa.add(\"olio\");\n\t\tpc.spesa.add(\"biscotti\");\n\t\t\n\n\t\tSystem.out.println(pc.spesa.size());\n\t\t\n\t\tfor (String voce : pc.spesa) {\n\t\t\tpc.spesaFiltrata.add(voce);\n\t\t\tpc.spesaOrdinata.add(voce);\n\t\t}\n\n\t\tSystem.out.println(pc.spesaFiltrata.size());\n\t\tfor (String string : pc.spesaOrdinata) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\t\n\t\tMap<String, String> regioni = new TreeMap<>();\n\t\t\n\t\tregioni.put(\"Piemonte\", \"Torino\");\n\t\tregioni.put(\"Lombardia\", \"Milano\");\n\t\tregioni.put(\"Toscana\", \"Firenze\");\n\t\tregioni.put(\"Puglia\", \"Bari\");\n\t\t\n\t\tSystem.out.println(regioni.size());\n\t\t\n\t\tSystem.out.println(regioni.get(\"Piemonte\"));\n\t\t\n\t\tSystem.out.println(regioni.keySet());\n\t\t\n\t\tSystem.out.println(regioni.values());\n\t\t\n//\t\tfor (String regione : regioni.keySet()) {\n//\t\t\tSystem.out.println(\"Il capoluogo della regione \" \n//\t\t\t\t\t\t\t+ regione \n//\t\t\t\t\t\t\t+ \" è: \" \n//\t\t\t\t\t\t\t+ regioni.get(regione));\n//\t\t}\n//\t\t\n\t\t\n\t\tfor (Entry<String, String> regione : regioni.entrySet()) {\n\t\t\tSystem.out.print(\"Il capoluogo della regione \" + regione.getKey());\n\t\t\tSystem.out.println(\" è: \" + regione.getValue());\n\t\t\tSystem.out.println(regione);\n\t\t}\n\t\t\n\t\t\n\t}", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setTipoInmueble(Valor tipoInmueble) {\n this.tipoInmueble = tipoInmueble;\n }", "@Override\n\tpublic void chocoContraPared() {}", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "public void service_psy (Personne p) throws FileNotFoundException\r\n\t{\r\n\t\r\n\t\t\r\n\t\t \t\tString [] info_psy=null ;\r\n\t\t \t\tString [] cle_valeur=null;\r\n\t\t \t\tboolean spec,adr;\r\n\t\t \t\tFileInputStream f=new FileInputStream(\"C://Users/Azaiez Hamed/Desktop/workspace/Projet de programmation/src/Medecin.txt\");\r\n\t\t \t\ttry {\r\n\t\t \t\t\tBufferedReader reader =new BufferedReader (new InputStreamReader(f,\"UTF-8\"));\r\n\t\t \t\t\tString line=reader.readLine();\r\n\t\t \t\t\twhile(line!=null){\r\n\t\t \t\t\t\tinfo_psy=line.split(\"\\t\\t\\t\");\r\n\t\t \t\t\t\tspec=false;adr=false;\r\n\t\t \t\t\t\tfor(int i=0;i<info_psy.length;i++)\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t cle_valeur=info_psy[i].split(\":\");\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"specialite\"))&& (cle_valeur[1].equals(\"psy\")))\r\n\t\t\t\t\t\t \t spec=true;\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"gouvernerat\"))&&(cle_valeur[1].equals(p.getGouvernerat())))\r\n\t\t \t\t\t\t\t \tadr=true;\r\n\t\t\t\t\t\t}\r\n\t\t \t\t\t\tif (spec && adr) {\r\n\t\t \t\t\t\t\t System.out.println(\"voilà toutes les informations du psy, veuillez lui contacter immédiatement **\");\r\n\t\t \t\t\t\t\t System.out.println(line);return;}\r\n\t\t \t\t\t\telse\r\n\t\t \t\t\t\t line=reader.readLine();\r\n\t\t \t\t\t\t }\r\n\t\t \t\t }\r\n\t\t \t\t \tcatch(IOException e){e.printStackTrace();}\r\n\t\t \t\t System.out.println(\"Pas de psy trouvé dans votre gouvernerat\");\r\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private void cargarFichaLepra_inicio() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_INICIO_TRATAMIENTO_LEPRA,\r\n\t\t\t\tIRutas_historia.LABEL_INICIO_TRATAMIENTO_LEPRA, parametros);\r\n\t}", "public DialogoAggiungiFissiConto(int codConto) {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n\n /* regola le variabili di istanza coi parametri */\n this.setCodConto(codConto);\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private boolean setPermessiRicevuti(HttpServletRequest request, HttpServletResponse response,\r\n String utente) {\r\n Gruppo g = new Gruppo();\r\n\r\n g.setRuolo(utente);\r\n if (request.getParameter((\"checkbox\").concat(utente)).equals(\"true\")) {\r\n if (!ricevuti.getGruppi().contains(g)) {\r\n ricevuti.getGruppi().add(g);\r\n }\r\n } else if (request.getParameter((\"checkbox\").concat(utente)).equals(\"false\")) {\r\n ricevuti.getGruppi().remove(g);\r\n } else {\r\n return false;\r\n }\r\n return true;\r\n }", "private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public void chocoContraMunicion(IMunicion municion){}", "private Filtro filtroEscludiRiga(int codice) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Campo campo = null;\n\n try { // prova ad eseguire il codice\n campo = this.getModulo().getCampoChiave();\n filtro = FiltroFactory.crea(campo, Operatore.DIVERSO, codice);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "public Girasol(int x,int y){\n super(x,y);\n this.setComportamiento(\"Crea 20 soles cada 2 turnos\");\n this.setVidas(1);\n this.impresion=\"G(\"+this.getVidas()+\")\";\n this.setDaño(0);\n this.setFrecuencia(2);\n }", "public Integer solo_guardarPaPersona(PaPersona paPersona) throws Exception;", "public void getFactorPoliticaConv(ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n \n try {\n\n conn = this.getConnection();\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.Status_Contribuyente(?,?,?,?)}\");\n call.setLong(1,reformaTributaria.getRutContribuyente().intValue());/*Rut Contribuyente */\n call.registerOutParameter(2, OracleTypes.INTEGER);/*Comportamiento*/\n call.registerOutParameter(3, OracleTypes.INTEGER);/*Embargo*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*Mipe*/\n \n \n call.execute();\n\n\n reformaTributaria.setComportamientoConvenio(new Integer(call.getObject(2).toString()));\n int garantia = Integer.parseInt(call.getObject(3).toString());\n int pyme = Integer.parseInt(call.getObject(4).toString());\n \n //System.out.println(\"-------garantia-------- \"+garantia);\n //System.out.println(\"-------pyme-------- \"+pyme);\n \n \n //reformaTributaria.setTieneGarantia(tieneGarantia)(new Integer(call.getObject(3).toString()));\n //reformaTributaria.setBeneficioPyme(new Integer(call.getObject(4).toString()));\n if (garantia==1){\n \t reformaTributaria.setTieneGarantia(new Boolean(true));\n }else{\n \t reformaTributaria.setTieneGarantia(new Boolean(false));\n }\n\n if (pyme==1){\n \t reformaTributaria.setBeneficioPyme(new Boolean(true));\n }else{\n \t reformaTributaria.setBeneficioPyme(new Boolean(false));\n }\n \n \n call.close(); \n \n }catch (Exception e) {\n e.printStackTrace();\n }\n finally{\n this.closeConnection();\n }\n\t\t\n }", "public void turno(Personaje opp);", "public Produto(String nome, String descricao, double preco, String tipo) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t}", "public void aggiungi(String recensioneText, int idGioco) {\n\t\tnew aggiungiRecensioneController().aggiungi(recensioneText, idGioco);\n\t}", "public PsicoderToGo() {\n translate_types.put(\"entero\", new ArrayList(Arrays.asList(\"int\", \"d\", \"0\")));\n translate_types.put(\"real\", new ArrayList(Arrays.asList(\"float64\", \"f\", \"0.0\")));\n translate_types.put(\"caracter\", new ArrayList(Arrays.asList(\"byte\", \"s\", \"\\\"\\\"\")));\n translate_types.put(\"booleano\", new ArrayList(Arrays.asList(\"bool\", \"b\", \"false\")));\n translate_types.put(\"cadena\", new ArrayList(Arrays.asList(\"string\", \"s\", \"\\\"\\\"\")));\n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;", "private static void crearPedidoGenerandoOPP() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25 };\n\t\tint[] cantidades = { 7 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 2\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "public ConciliazionePerBeneficiarioSoggettoConverter() {\n\t\tsuper(ConciliazionePerBeneficiario.class, SiacRConciliazioneBeneficiario.class);\n\t}", "public void setCgg_jur_anticipo(com.besixplus.sii.objects.Cgg_jur_anticipo inCgg_jur_anticipo){\n\t\tthis.myCgg_jur_anticipo = inCgg_jur_anticipo;\n\t}", "public void setCodigoImputacion(String p) { this.codigoImputacion = p; }", "public void saveProduit(Produit theProduit);", "private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}" ]
[ "0.6784587", "0.640808", "0.5951642", "0.5776807", "0.5720867", "0.56346744", "0.5613939", "0.55800146", "0.5571252", "0.5553063", "0.5536969", "0.5524765", "0.54667777", "0.5458778", "0.54263955", "0.5417049", "0.5387936", "0.5366116", "0.53603536", "0.53443646", "0.5317267", "0.53170377", "0.53134674", "0.5306383", "0.5304959", "0.5297196", "0.52849245", "0.528318", "0.5280746", "0.52410376", "0.52403873", "0.5240067", "0.5239198", "0.52367944", "0.52344346", "0.5234176", "0.5228396", "0.52209705", "0.5219736", "0.52149993", "0.5210842", "0.52086", "0.52036643", "0.52023584", "0.5188648", "0.51868695", "0.51844484", "0.518339", "0.5183093", "0.51613647", "0.51602733", "0.51546174", "0.5145371", "0.51398283", "0.51378715", "0.51356864", "0.513567", "0.51355803", "0.5127628", "0.5124998", "0.51234317", "0.51224685", "0.51174843", "0.5114127", "0.5108798", "0.5107537", "0.51066124", "0.5102086", "0.50940615", "0.5093014", "0.5089611", "0.5087442", "0.5086357", "0.5071199", "0.5070793", "0.50704575", "0.50638247", "0.50606775", "0.5058614", "0.5048764", "0.5047291", "0.5046253", "0.504214", "0.5042001", "0.5039731", "0.5036279", "0.50333595", "0.5030444", "0.5024824", "0.50174934", "0.50138104", "0.5013465", "0.50103515", "0.50091827", "0.5009126", "0.50056636", "0.50049037", "0.4999231", "0.49958053", "0.49936143" ]
0.65627754
1
Se instancia un scanner y algunas variable controladoras del sistema
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int eleccion = 0; String nombre; //Pide un nombre al usuario System.out.println("Cual es tu nombre alma perdida?"); nombre = scanner.next(); while(eleccion != 3) { //Manda un mensaje de saludo y el menu System.out.println("Enfrentaras un oponente especifico en base a tu eleccion"); System.out.println("Elija con cuidado y sabiduria"); System.out.println("Elija el tipo de clase"); System.out.println("1) General"); System.out.println("2) Avanzada"); System.out.println("3) Salir"); System.out.println(""); //Con el try catch checa que se haya hecho una seleccion aceptable //De lo contrario manda un mensaje y otra vez el menu try { eleccion = Integer.valueOf(scanner.next()); } catch (NumberFormatException e) { System.out.println("Elegiste una opcion no valida"); } if(eleccion == 3) { System.exit(0); } else if (eleccion < 3 && eleccion > 0) { SeleccionUnidad.selectUnit(eleccion, nombre); } else { System.out.println("Elige una opcion correcta\n"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prepareScanner() {\r\n\t\tbcLocator = new BCLocator();\r\n\t\tbcGenerator = new BCGenerator();\r\n\t}", "private void inicializar()\n\t{\n\t\tif( this.getIn() != null )\n\t\t\tthrow new ConsolaTecladoSoloPuedeHaberUnaInstanciaException();\n\t\t\t\n\t\tthis.setIn( new Scanner( System.in ) );\n\t}", "public static void init() {\n\t\tscanner = new Scanner(System.in);\n\t\treturn;\n\t}", "public static void main(String [] args){\n String dato;// no se tiene que importar la clase String del paquete java.lang\n //porque este paquete es por defecto\n Scanner miObjeto;\n }", "void scanner() {\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\tString source = \"asdqw easd casa\";\r\n\t\tScanner s1 = new Scanner(source);\r\n\t\t// hasNext() - testuje wartosc kolejnego tokena, ale go nie pobiera\r\n\t\t// next() - pobiera kolejny token\r\n\t\t// domyslnie bialy znak jest delimiterem\r\n\t\twhile (s1.hasNext()) {\r\n\t\t\tSystem.out.println(s1.next());\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// hasNextXxx() - dla wszystkich primitives oprocz chara\r\n\t\t// nextXxx() - pobiera kolejny prymitywny token\r\n\t\tScanner s2 = new Scanner(\"1 true 34 hi\");\r\n\t\tboolean b;\r\n\t\twhile (b = s2.hasNext()) {\r\n\t\t\tif (s2.hasNextInt()) {\r\n\t\t\t\tint i = s2.nextInt();\r\n\t\t\t\tSystem.out.println(\"integer token: \" + i);\r\n\t\t\t} else if (s2.hasNextBoolean()) {\r\n\t\t\t\tboolean b2 = s2.nextBoolean();\r\n\t\t\t\tSystem.out.println(\"boolean token: \" + b2);\r\n\t\t\t} else {\r\n\t\t\t\tString str = s2.next();\r\n\t\t\t\tSystem.out.println(\"String token: \" + str);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// useDelimiter(delimiter) - ustawienie delimitera (wyrazenia regularnego) wg ktorego bedzie przetwarzany strumien\r\n\t\t// domyslnym delimiterem jest spacja, tabulator, ogolnie bialy znak lub znaki\r\n\t\tScanner s3 = new Scanner(\"Test1 true 34 hi\");\r\n\t\ts3.useDelimiter(\"\\\\d\"); // delimiterem jest cyfra\r\n\t\twhile (s3.hasNext()) {\r\n\t\t\tSystem.out.println(s3.next());\r\n\t\t}\r\n\t}", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "private void consultadadosUtilizador(String username){\n Scanner s = new Scanner(System.in); int opcao = 0;\n try{\n do{\n System.out.println(\"Informações de Conta \");\n System.out.println(b_dados.getUtilizadores().get(username).toString());\n System.out.println(\"1-Mudar localizacao\");\n System.out.println(\"0 - Retroceder\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 1:\n mudarLocalizacaoUtilizador(username);\n break;\n default:\n System.out.print(\"Opção inválida\\n\\n\");\n break;\n\n }\n }while(opcao != 0);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuCliente(username);\n\n }\n }", "public void cargar(Scanner scanner) {\n posX = Integer.parseInt(scanner.nextLine());\n posY = Integer.parseInt(scanner.nextLine());\n }", "private static void scan() {\n\t\tt = la;\n\t\tla = Scanner.next();\n\t\tla.toString();\n\t\tsym = la.kind;\n\t}", "@Override\r\n public void solicitarDatos(){\r\n Scanner lector = new Scanner(System.in);\r\n super.solicitarDatos(); //llamo al metodo solicitar datos de la clase padre\r\n this.setEstado(true);\r\n this.setNumeroLicencia(licencias);\r\n licencias++;\r\n System.out.println(\"Introduce el numero de taxistas que conducen este\"\r\n + \"taxi\");\r\n this.setNumeroTaxistas(lector.nextInt());\r\n \r\n }", "public Menu() {\n scanner = new Scanner(System.in);\n }", "public static void setInputScanner(InputScanner scanner){\n inputScanner = scanner;\n }", "public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }", "private ConsoleScanner() {}", "public void readInstanceData(Scanner scan) {\r\n name = scan.next();\r\n address = scan.next();\r\n phone = scan.next();\r\n }", "public static void main(String[] args) {\n\n Scanner skaityvtuvas = new Scanner(System.in);\n while (true) {\n System.out.println(\"Turime is viso 9 uzduotis\");\n System.out.println(\"Iveskite uzduoties numeri, kad ja vykdyti.\");\n System.out.println(\"Ivedus 0, programa bus baigta.\");\n int pasirinkimas = skaityvtuvas.nextInt();\n\n switch (pasirinkimas) {\n case CHOISE_0:\n return;\n case CHOISE_1:\n Uzduotis01 pirmoji = new Uzduotis01(); // Vykdo konstruktoriu.\n break;\n case CHOISE_2:\n Uzduotis02 antroji = new Uzduotis02();\n break;\n case CHOISE_3:\n Uzduotis03 trecioji = new Uzduotis03();\n break;\n case CHOISE_4:\n Uzduotis04 ketvirta = new Uzduotis04();\n break;\n case CHOISE_5:\n Uzduotis05 penkta = new Uzduotis05();\n break;\n case CHOISE_6:\n Uzduotis06 sesta = new Uzduotis06();\n break;\n case CHOISE_7:\n Uzduotis07 septinta = new Uzduotis07();\n break;\n case CHOISE_8:\n Uzduotis08 astunta = new Uzduotis08();\n case CHOISE_9:\n Uzduotis09 devinta = new Uzduotis09();\n }\n }\n\n\n }", "public UsedCarWarehouse()\r\n {\r\n carStorage = new CarList();\r\n exitFlag = false;\r\n scan = new Scanner(System.in);\r\n }", "public GestorAtracciones()\n {\n gestor_trabajadores = new GestorTrabajadores();\n atracciones = new ArrayList<>();\n lectura = new Scanner(System.in);\n crearAtracciones();\n calculoTipoAtraccion();\n calculoPersonal();\n }", "public void Scanner(){\n char Caracter=' ';\n int Estado=0;\n int Fila=0;\n int Columna=1;\n String Lexema=\"\";\n String Cadena_Archivo=jTextPane1.getText();\n for(int i=0;i<Cadena_Archivo.length();i++){\n Caracter=Cadena_Archivo.charAt(i);\n \n switch(Estado){\n case 0:\n \n if(Caracter == (char) 33){\n L_Tokens.add(new Lista_Tokens(6,Character.toString(Caracter),\"Signo de Admiracion\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 34){\n L_Tokens.add(new Lista_Tokens(7,Character.toString(Caracter),\"Comillas Dobles\",Fila,Columna));\n Estado = 7;\n Columna++;\n }else if(Caracter == (char) 35){\n L_Tokens.add(new Lista_Tokens(8,Character.toString(Caracter),\"Numeral\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 36){\n L_Tokens.add(new Lista_Tokens(9,Character.toString(Caracter),\"Simbolo Peso\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 37){\n L_Tokens.add(new Lista_Tokens(10,Character.toString(Caracter),\"Porcentaje\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 38){\n L_Tokens.add(new Lista_Tokens(11,Character.toString(Caracter),\"Ampersand\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 39){\n L_Tokens.add(new Lista_Tokens(12,Character.toString(Caracter),\"Comilla Simple\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 40){\n L_Tokens.add(new Lista_Tokens(13,Character.toString(Caracter),\"Parentesis Izquierdo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 41){\n L_Tokens.add(new Lista_Tokens(14,Character.toString(Caracter),\"Parentesis Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 42){\n L_Tokens.add(new Lista_Tokens(15,Character.toString(Caracter),\"Asterisco\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 43){\n L_Tokens.add(new Lista_Tokens(16,Character.toString(Caracter),\"Signo Mas\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 44){\n L_Tokens.add(new Lista_Tokens(17,Character.toString(Caracter),\"Coma\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 45){\n L_Tokens.add(new Lista_Tokens(18,Character.toString(Caracter),\"Signo Menos\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 46){\n L_Tokens.add(new Lista_Tokens(19,Character.toString(Caracter),\"Punto\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 47){\n L_Tokens.add(new Lista_Tokens(20,Character.toString(Caracter),\"Barra Inclinada\",Fila,Columna));\n Estado = 3;\n Columna++;\n }else if(Caracter == (char) 58){\n L_Tokens.add(new Lista_Tokens(21,Character.toString(Caracter),\"Dos Puntos\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 59){\n L_Tokens.add(new Lista_Tokens(22,Character.toString(Caracter),\"Punto y Coma\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 60){\n L_Tokens.add(new Lista_Tokens(23,Character.toString(Caracter),\"Menor Que\",Fila,Columna));\n Estado = 5;\n Columna++;\n }else if(Caracter == (char) 61){\n L_Tokens.add(new Lista_Tokens(24,Character.toString(Caracter),\"Igual Que\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 62){\n L_Tokens.add(new Lista_Tokens(25,Character.toString(Caracter),\"Mayor Que\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 63){\n L_Tokens.add(new Lista_Tokens(26,Character.toString(Caracter),\"Interrogacion\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 64){\n L_Tokens.add(new Lista_Tokens(27,Character.toString(Caracter),\"Arroba\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 91){\n L_Tokens.add(new Lista_Tokens(28,Character.toString(Caracter),\"Corchete Izquierdo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 92){\n L_Tokens.add(new Lista_Tokens(29,Character.toString(Caracter),\"Barra Invertida\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 93){\n L_Tokens.add(new Lista_Tokens(30,Character.toString(Caracter),\"Corchete Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 94){\n L_Tokens.add(new Lista_Tokens(31,Character.toString(Caracter),\"Acento Circunflejo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 95){\n L_Tokens.add(new Lista_Tokens(32,Character.toString(Caracter),\"Barra Baja\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 96){\n L_Tokens.add(new Lista_Tokens(33,Character.toString(Caracter),\"Acento Grave\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 123){\n L_Tokens.add(new Lista_Tokens(34,Character.toString(Caracter),\"Llave Izquierda\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 124){\n L_Tokens.add(new Lista_Tokens(35,Character.toString(Caracter),\"Barra Vetical\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 125){\n L_Tokens.add(new Lista_Tokens(36,Character.toString(Caracter),\"Corchete Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 126){\n L_Tokens.add(new Lista_Tokens(37,Character.toString(Caracter),\"Tilde\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Character.isLetter(Caracter)){\n //Verifica si es Letra\n Lexema+=Caracter;\n Estado = 1;\n }else if(Character.isDigit(Caracter)){\n //Verifica si es Digito\n Lexema+=Caracter;\n Estado = 2;\n }else if (Caracter == '\\n') {\n //salto de linea\n Columna = 1;\n Fila++;\n Estado = 0;\n } \n else if (Caracter == ' ' | Caracter == '\\t' | Caracter == '\\b' | Caracter == '\\r' | Caracter == '\\f') {\n //Espacios en blanco\n } else {\n //Errores Lexicos\n L_Tokens_Error.add(new Lista_Tokens(0,Character.toString(Caracter),\"Error Lexico\",Fila,Columna));\n Lexema = \"\";\n Estado = 0;\n }\n \n \n break;\n case 1:\n //Verificar si es Letra\n if (Character.isLetter(Caracter)) {\n Lexema+=Caracter;\n Estado = 1;\n }else if(Character.isDigit(Caracter)){\n //Verifica si es Digito\n Lexema += Caracter;\n Estado = 1;\n }else if(Caracter == (char) 95){\n Lexema += Caracter;\n Estado = 1;\n }else{\n \n if(Lexema.equals(\"CONJ\")){\n L_Tokens.add(new Lista_Tokens(3,Lexema,\"Palabra Reservada\",Fila,Columna));\n }else{\n L_Tokens.add(new Lista_Tokens(5,Lexema,\"Identificador\",Fila,Columna));\n }\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n \n break;\n case 2:\n //Verifica si es Digito\n if (Character.isDigit(Caracter)) {\n Lexema += Caracter;\n Estado = 2;\n }else{\n L_Tokens.add(new Lista_Tokens(38,Lexema,\"Digito\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 3:\n //Verifica si es Comentario de una linea\n if(Caracter == (char) 47){\n L_Tokens.add(new Lista_Tokens(20,Character.toString(Caracter),\"Barra Inclinada\",Fila,Columna));\n Estado = 4;\n Columna++;\n }else{\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 4:\n //Verifica si es Comentario de una linea acepta lo que sea hasta salto de linea\n if(Caracter != '\\n'){\n Lexema+=Caracter;\n Estado = 4;\n }else{\n L_Tokens.add(new Lista_Tokens(1,Lexema,\"Comentario de Linea\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 5:\n //Comentario Multilinea\n if(Caracter == (char) 33){\n L_Tokens.add(new Lista_Tokens(6,Character.toString(Caracter),\"Signo de Admiracion\",Fila,Columna));\n Estado = 6;\n Columna++;\n }else{\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 6:\n //Comentario Multilinea acepta hasta el signo de admiracion\n if(Caracter != (char) 33){\n Lexema+=Caracter;\n Estado = 6;\n }else{\n L_Tokens.add(new Lista_Tokens(2,Lexema,\"Comentario Multilinea\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 7:\n //Comentario Multilinea acepta hasta comilla dobles\n if(Caracter != (char) 34){\n Lexema+=Caracter;\n Estado = 7;\n }else{\n L_Tokens.add(new Lista_Tokens(4,Lexema,\"Lexema de Entrada\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n //aceptamos las comillas\n L_Tokens.add(new Lista_Tokens(7,Character.toString(Caracter),\"Comillas Dobles\",Fila,Columna));\n Columna++;\n }\n break;\n \n }\n \n }//fin for\n }", "public void intro(){Scanner teclado = new Scanner(System.in);\nSystem.out.println(\"Introduzca la unidad de medida a la que transformar \"\n + \"pies, cm o yardas\");\nSystem.out.println(\"o escriba salir si quiere volver al primer menu\");\nopcion=teclado.nextLine();}", "public static void setScanner(Scanner s) {\n scanner = s;\n }", "public Sintactico(java_cup.runtime.Scanner s) {super(s);}", "private void associarContaCliente(){\n Scanner s = new Scanner(System.in);\n int i=0;\n while (i==0) {\n System.out.println(\"Introduza o seu Codigo de Utilizador\");\n String cod = s.nextLine();\n if(a_armazena.existeCodUser(cod)) {\n i=1;\n Utilizador u = a_armazena.getUtilizador(cod);\n System.out.println(u.toString());\n System.out.println(\"Introduza o seu Username\");\n String username = s.nextLine();\n System.out.println(\"Introduza o seu Password\");\n String pass = s.nextLine();\n\n try {\n b_dados.associaUtilizador(u.getCodUtilizador(), u.getNome(), u.getGps(), username, pass);\n } catch (UtilizadorExisteException e) {\n System.out.println(e.getMessage());\n } catch (UsernameJaEstaEmUsoException e) {\n System.out.println(e.getMessage());\n }\n }\n else\n System.out.println(\"Esse código não existe tente de novo\");\n }\n }", "public void setScan(InputStream inStream){\t\t\n\t\tthis.scan = new Scanner (inStream);\t\t\t\t\t\n\t}", "@Override\n\tpublic void usar() {\n\t\ttry {\n\t\t\tScanner input= new Scanner(System.in);\n\t\t\tSystem.out.println(\"servicio a la habitacion\");\n\t\t\t\n\t\t\tString valor=input.nextLine();\n\t\t\tif (valor.toLowerCase().equals(\"si\")) {\n\t\t\t\tboolean seguir=true;\n\t\t\t\tdo {\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"elija la opcion\");\n\t\t\t\tSystem.out.println(\"1_delfin\");\n\t\t\t\tSystem.out.println(\"2_butaca\");\n\t\t\t\tSystem.out.println(\"3_culebra\");\n\t\t\t\tSystem.out.println(\"4_estrella japonesa\");\n\t\t\t\tString servicio=input.nextLine();\n\t\t\t\tswitch (servicio.toLowerCase()) {\n\t\t\t\tcase\"1\":\n\t\t\t\t\tthis.dinero-=100;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\":\n\t\t\t\t\tthis.dinero-=100;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"3\":\n\t\t\t\t\tthis.dinero-=100;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"4\":\n\t\t\t\t\tthis.dinero-=100;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\n\n\t\t\t\tdefault:\n\t\t\t\t\tseguir=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t} while (seguir);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "public static void inicializacionPartidaConsola() {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\n\t\tnew VistaConsola(c);\n\n\t\tc.run();\n\t}", "public void solicitarDatos() {\n Scanner scanner = new Scanner(System.in);\n Terreno terreno = new Terreno();\n Vivienda vivienda = new Vivienda();\n\n //preguntamos datos:\n System.out.println(\"Metros cuadrados: \");\n Integer m2 = scanner.nextInt();\n\n System.out.println(\"Precio: \");\n Double precio = scanner.nextDouble();\n\n System.out.println(\"Nombre del pueblo: \");\n String nombrePueblo = scanner.next();\n\n System.out.println(\"ID: \");\n Integer id = scanner.nextInt();\n\n //escogemos opción:\n\n System.out.println(\"Estás creando un Terreno(t) o una Vivienda(v)?: \");\n String opcion = scanner.next();\n //controlamos que la opción introducida sea válida y el precio mayor que 0 en ambos casos:\n //(si el precio es menor a 0, directamente no se crea el objeto a la hora de añadir)\n if (opcion.equals(\"t\") && precio > 0) {\n terreno.solicitarDatos(m2, precio, nombrePueblo, id);\n } else if (opcion.equals(\"v\") && precio > 0) {\n vivienda.solicitarDatos(m2, precio, nombrePueblo, id);\n } else {\n System.out.println(\"El precio es menor a 0 o no has introducido una opción correcta\");\n }\n }", "public UserInput()\n {\n try\n {\n scanner = new Scanner(System.in);\n input = new InputMethods();\n citiesTotal = new CityContainer();\n\n if(scanner != null)\n {\n askUser();\n }\n } catch(Exception ex)\n {\n }\n }", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "void doScanner() {\r\n\t\tsetTurnRadarLeftRadians(2 * PI);\r\n\t}", "private void capturarControles() {\n \t\n \ttxtNombre = (TextView)findViewById(R.id.txtNombre);\n \timagenDestacada = (ImageView)findViewById(R.id.imagenDestacada);\n\t\ttxtDescripcion = (TextView)findViewById(R.id.txtDescripcion);\n\t\tlblTitulo = (TextView)findViewById(R.id.lblTitulo);\n\t\tbtnVolver = (Button)findViewById(R.id.btnVolver);\n\t\tbtnHome = (Button)findViewById(R.id.btnHome);\n\t\tpanelCargando = (RelativeLayout)findViewById(R.id.panelCargando);\n\t}", "public GerenciadorSimples() throws Exception {\n\n Scanner ler = new Scanner(System.in);\n int opcaoMenu;\n while (true) {\n\n try {\n System.out.println(\"\\n=================== =================== LEILÃO DE ENTREGAS =================== ===================\");\n System.out.println(\"1 - Carregar Entradas \");\n System.out.println(\"2 - Calcular Entregas Busca Profunda\");\n System.out.println(\"6 - Mostrar Rotas \");\n System.out.println(\"7 - Limpar tela \");\n System.out.println(\"0 - Sair \");\n opcaoMenu = ler.nextInt();\n\n switch (opcaoMenu) {\n case 1:\n menuArquivos();\n break;\n case 2:\n calcularRota();\n break;\n case 3:\n mostrarRota();\n break;\n case 4:\n limparTela();\n break;\n case 0:\n System.out.println(\"Saindo ...\");\n System.exit(0);\n break;\n }\n } catch (Exception e) {\n System.out.println(\"Ops! Ocorreu algo errado, tente novamente.\");\n }\n }\n }", "private static int buscarEntero(Scanner s) {\n\t\tint Temp = -1;\n\n\t\tif (!s.hasNextLine() || !s.hasNextInt()) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tString ValorLeido = s.nextLine();\n\t\tif (ValorLeido.length() != 0) {\n\t\t\tScanner Aux = new Scanner(ValorLeido);\n\t\t\twhile (Aux.hasNextInt()) {\n\t\t\t\tTemp = Aux.nextInt();\n\t\t\t}//fin while\n\t\t\tAux.close();\n\t\t}\n\t\treturn Temp;\n\t}", "public void vincular() {\n\n\t\ttry {\n\t\t\tList<Veiculo> veiculos = Deserializador.deserializar(\"conteudo/veiculos\", Veiculo.class);\n\t\t\tList<Motorista> motoristas = Deserializador.deserializar(\"conteudo/motoristas\", Motorista.class);\n\n\t\t\tScanner entrada = new Scanner(System.in);\n\t\t\tMotorista motorista = null;\n\t\t\tVeiculo veiculo = null;\n\t\t\tSystem.out.println(\"Digite o numero da CNH do motorista que deseja vincular.\");\n\t\t\tint cnh = entrada.nextInt();\n\t\t\tif (motoristas != null) {\n\t\t\t\tif (veiculos != null) {\n\t\t\t\t\tfor (Motorista motor : motoristas) {\n\t\t\t\t\t\tif (cnh == motor.getNumero_Carteira()) {\n\t\t\t\t\t\t\tSystem.out.println(\"Motorista encontrado: \" + motor.getNome());\n\t\t\t\t\t\t\tmotorista = motor;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (motorista == null) {\n\t\t\t\t\t\tSystem.out.println(\"Motorista nao encontrado!\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (motorista.getVeiculo() == null) {\n\t\t\t\t\t\t\tSystem.out.println(\"Motorista selecionado com sucesso.\");\n\n\t\t\t\t\t\t\tSystem.out.println(\"Digite a placa do veiculo que deseja vincular ao motorista \"\n\t\t\t\t\t\t\t\t\t+ motorista.getNome());\n\t\t\t\t\t\t\tString placa = entrada.next();\n\t\t\t\t\t\t\tfor (Veiculo veic : veiculos) {\n\t\t\t\t\t\t\t\tif (veic.getPlaca().equals(placa)) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Veiculo encontrado.\");\n\t\t\t\t\t\t\t\t\tveiculo = veic;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (veiculo == null) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Veiculo nao encontrado!\");\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// RN004\n\t\t\t\t\t\t\t\tif (veiculo.getMotorista() == null) {\n\t\t\t\t\t\t\t\t\t// RN001\n\t\t\t\t\t\t\t\t\tif (Character.toLowerCase(motorista.getCategoria_Habilitacao()) == 'c') {\n\t\t\t\t\t\t\t\t\t\tveiculo.setMotorista(motorista);\n\t\t\t\t\t\t\t\t\t\tmotorista.setVeiculo(veiculo);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Motorista registrado com sucesso.\");\n\n\t\t\t\t\t\t\t\t\t} else if (veiculo.getCarga() == 1\n\t\t\t\t\t\t\t\t\t\t\t&& Character.toLowerCase(motorista.getCategoria_Habilitacao()) == 'b') {\n\t\t\t\t\t\t\t\t\t\tveiculo.setMotorista(motorista);\n\t\t\t\t\t\t\t\t\t\tmotorista.setVeiculo(veiculo);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Motorista registrado com sucesso.\");\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Tipo da CNH do motorista invalida.\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"O veiculo desejado ja esta vinculado a um motorista.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"Motorista ja esta vinculado a um veiculo.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A lista de veiculos esta vazia.\");\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"A lista de motoristas esta vazia.\");\n\t\t\t}\n\n\t\t\tSerializador s = new Serializador();\n\t\t\ts.serializar(\"conteudo/motoristas\", motoristas);\n\t\t\ts.serializar(\"conteudo/veiculos\", veiculos);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.err.println(\"Falha ao serializar ou deserializar! - \" + ex.toString());\n\t\t}\n\t}", "@Override\r\n\tpublic void iniciarSesion() {\n\t\tthis.contextoOrdenMenosUno = new Contexto();\r\n\t\t//Obtengo el orden del xml de configuración\r\n\t\tthis.orden = Constantes.ORDER_MAX_PPMC;\r\n\t\t//Creo tantos Ordenes como dice el XML\r\n\t\tthis.listaOrdenes = new ArrayList<Orden>(this.orden+1);\r\n\t\tthis.inicializarListas();\r\n\t\tthis.compresorAritmetico = new LogicaAritmetica();\r\n\t\tthis.initSession = true;\r\n\t\tthis.tiraBits = \"\";\r\n\t\tthis.bitsBuffer = new StringBuffer();\r\n\t\tthis.finalizada = false;\r\n\t\tthis.contextoPrevio = false;\r\n\t\tthis.contextoActual = new String();\r\n\t}", "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n\n\n\n }", "static InputScanner getInputScanner() {\n return inputScanner;\n }", "public void setScan(ByteArrayInputStream inStream){\t\t\n\t\tthis.programIn= (ByteArrayInputStream) inStream;\t\t\n\t\tthis.scan = new Scanner (programIn);\t\t\n\t}", "private void initialize() {\n toDoList = new ToDoList(\"To-Do List\");\n scanner = new Scanner(System.in);\n }", "@Override\n public void leerRegistros(){\n System.out.printf(\"%-10s%-12s%n\", \"Cuenta\", \"Mensaje\");\n \n try{\n while(true){\n RegistroSerializado registro =\n (RegistroSerializado) super.obtenerEntrada().readObject();\n \n // Muestra el contenido del registro.\n System.out.printf(\"%-10d%s%n\",\n registro.obtenerCuenta(), registro.obtenerMensaje());\n }\n }\n catch(EOFException eOFException){\n System.out.printf(\"%nNo hay mas registros%n\");\n }\n catch(ClassNotFoundException classNotFoundException){\n System.err.println(\"Tipo de objeto invalido. Terminado.\");\n }\n catch(IOException iOException){\n System.err.println(\"Error al leer del archivo. Terminado.\");\n }\n }", "void onStart(\n ContentScanner scanner\n );", "private static void readCircuit( Scanner sc ) {\n while (sc.hasNext()) {\n\t String command = sc.next();\n\t if (\"gate\".equals( command )) {\n\t\ttry {\n\t\t gates.add( Gate.newGate( sc ) );\n\t\t} catch (Gate.ConstructorFailure e) {\n\t\t // do nothing, the constructor already reported the error \n\t\t}\n\t } else if (\"wire\".equals( command )) {\n\t\ttry {\n\t\t wires.add( new Wire( sc ) );\n\t\t} catch (Wire.ConstructorFailure e) {\n\t\t // do nothing, the constructor already reported the error \n\t\t}\n\t } else if (\"--\".equals( command )) {\n\t\tsc.nextLine();\n\t } else {\n\t Errors.warn( \"unknown command: \" + command );\n\t\tsc.nextLine();\n\t }\n\t}\n }", "public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}", "public AnalizadorSintactico(java_cup.runtime.Scanner s) {super(s);}", "public void buscarPessoa(){\n\t\tstrCelular = CareFunctions.limpaStrFone(strCelular);\n\t\t System.out.println(\"Preparar \" + strCelular);//\n\t\t \n\t\tif (strCelular.trim().length() > 0){\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tList<Usuario> lstusuario = usuarioDAO.listPorcelular(strCelular);\n\t\t\tSystem.out.println(\"Buscou \" + lstusuario.size());\n\t\t\tsetBooIdentifiquese(false);\n\t\t\tif (lstusuario.size() > 0){\n\t\t\t\tusuario = lstusuario.get(0);\n\t\t\t\tsetBooSelecionouUsuario(true);\n\t\t\t}else{\n\t\t\t\tsetBooSelecionouUsuario(false);\t\t\t\t\n\t\t\t\tsetBooCadastrandose(true);\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setUsu_celular(strCelular);\n\t\t\t}\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Ahoe\", \"Bem Vindo\"));\t\n\t\t}else{\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Você deve informar o Celular\", \"Não foi possível pesquisar\"));\t\t\t\n\t\t}\n\t}", "private void initScanner() {\n /*\n * since barcodeReaderFragment is the child fragment in the ScannerFragment therefore\n * it is get using getChildFragmentManager\n * setting up the custom bar code listener\n */\n\n }", "TicTacToe(){\n\t\tplayerMgr=new PlayerManager();\n\t\tinterp=new Interpreter();\n\t\tgameMgr=new GameManager();\n\t\tkeyBoard=new Scanner(System.in);\n\t}", "public void reiniciar() {\r\n\t\tauxiliar = primeira;//auxiliar recebe a primeira\r\n\t}", "public static String setLocation(Scanner sc){\n\t\t\n\t\tSystem.out.println(\"Ingrese la ubicacion inmueble:\");\n\t\tString location = sc.nextLine();\n\t\treturn location;\n\t\t\n\t}", "public static void consultarContato(Scanner sc, Agenda agenda) {\n\t\t//nome contato receber as informacoes do lerInformacoes \n\t\tString nomeContato = lerInformacaoString(sc, \"entre com o nome do usuarios para ser pesquisado: \");\n\t\ttry {\n\t\t\tif(agenda.consultarContatoPorNome(nomeContato)>=0) {\n\t\t\t\tSystem.out.println(\" contato existe\");\n\t\t\t}\n\t\t}catch(ContatoNaoExisteException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "public static void adicionarContato(Scanner sc, Agenda agenda) {\n\t\ttry {\n\t\tSystem.out.println(\"Criando o contato entre com as informacoes: \");\n\t\tString nome = lerInformacaoString(sc, \"entre com o nome do contato: \");\n\t\tString telefone = lerInformacaoString(sc, \"entre com o telefone: \");\n\t\tString email = lerInformacaoString(sc, \"entre com o email: \");\n\t\t\n\t\t//criando o objeto passando os parementro que pegamos acima\n\t\tContato contato = new Contato();\n\t\tcontato.setNome(nome);\n\t\tcontato.setTelefone(telefone);\n\t\tcontato.setEmail(email);\n\t\t\n\t\tSystem.out.println(\"contato criado\");\n\t\tSystem.out.println(contato);\n\t\t\n\t\t//adicionando o contato na agenda\n\t\tagenda.adicionarContato(contato);\n\t\t\n\t\t//tratando a exception\n\t\t}catch(AgendaCheiaException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"Contatos da agenda \");\n\t\t\tSystem.out.println(agenda);\n\t\t}\n\t\t\n\t}", "private void init() {\n\t\tMvcs.scanPackagePath = analyseScanPath();\n\t\tif(StringHandler.isEmpty(Mvcs.scanPackagePath))\n\t\t\tthrow new RuntimeException(\"No scan path has been set! you need to setup ScanPackage annotation\");\n\t\t\n\t\t//put all class into the list\n\t\tList<String> allClassNames = scanAllClassNames();\n\t\tif(StringHandler.isEmpty(allClassNames)) //some loader may have no return value \n\t\t\treturn ;\n\t\t\n\t\tfor(String pkgPath : allClassNames){\n\t\t\tlist.add(ClassUtil.getClass(pkgPath));\n\t\t}\n\t}", "public Application() {\r\n monster1 = new Monster();\r\n treasure1 = new Treasure();\r\n in = new Scanner(System.in);\r\n }", "public static void main(String[] args) throws IOException {\n borrarConsola();\n leerArchivo();\n\n int opcion=1;\n while (opcion!=0){\n System.out.println(\"Menu:\");\n System.out.println(\"1: Mostrar Empleados.\");\n System.out.println(\"2: Empleados que comienzan con una letra dada en el apellido.\");\n System.out.println(\"3: Empleado mas jover.\");\n System.out.println(\"4: Empleado mas viejo.\");\n System.out.println(\"5: Empleado que mas gana.\");\n System.out.println(\"6: Empleado que menos gana.\");\n System.out.println(\"7: Empleados ordenados por nombre y apellido.\");\n System.out.println(\"0: Salir.\");\n System.out.print(\"Ingrese una opción: \");\n opcion= scan.nextInt();\n while (opcion < 0 || opcion > 7){\n System.out.print(\"Ingrese una opción válida: \");\n opcion= scan.nextInt();\n }\n switch (opcion){\n case 1:\n mostrarEmpleados(empleados);\n enterParaContinuar();\n break;\n case 2:\n System.out.print(\"Ingrese la letra: \");\n Character letra = Character.toUpperCase(scan.next().charAt(0));\n System.out.println(\"Lista de Empleados que su apellido comienza con: \" + letra);\n comienzanCon(empleados, letra);\n enterParaContinuar();\n break;\n case 3:\n Empleado masJoven=empleadoMasJoven(empleados);\n System.out.println(\"Empleado mas Joven: \" + masJoven.getApellido() + \",\" + masJoven.getNombre() +\n \" Fecha de Nacimiento: \" + masJoven.getFechaNacimiento() + \" Edad: \" + edad(masJoven.getFechaNacimiento()));\n enterParaContinuar();\n break;\n case 4:\n Empleado masViejo=empleadoMasViejo(empleados);\n System.out.println(\"Empleado mas Viejo: \" + masViejo.getApellido() + \",\" + masViejo.getNombre() +\n \" Fecha de Nacimiento: \" + masViejo.getFechaNacimiento() + \" Edad: \" + edad(masViejo.getFechaNacimiento()));\n enterParaContinuar();\n break;\n case 5:\n Empleado masGana=empleadoMasGana(empleados);\n System.out.println(\"Empleado que mas Gana: \" + masGana.getApellido() + \",\" + masGana.getNombre() +\n \" Sueldo: \" + masGana.getSueldo());\n enterParaContinuar();\n break;\n case 6:\n Empleado menosGana=empleadoMenosGana(empleados);\n System.out.println(\"Empleado que menos Gana: \" + menosGana.getApellido() + \",\" + menosGana.getNombre() +\n \" Sueldo: \" + menosGana.getSueldo());\n enterParaContinuar();\n break;\n case 7:\n System.out.println(\"Empleados ordenados por Nombre y Apellido (Orden Ascendente)\");\n ordenarEmpleados(empleados);\n enterParaContinuar();\n break;\n default:\n break;\n }\n }\n scan.close();\n }", "private void inicializareVariablesManejoHilos() {\n\t\tmanejadorHilos = Executors.newFixedThreadPool(LONGITUD_COLA);\n\t\tbloqueoJuego = new ReentrantLock();\n\t\tesperarInicio = bloqueoJuego.newCondition();\n\t\tesperarTurno = bloqueoJuego.newCondition();\n\t\tfinalizar = bloqueoJuego.newCondition();\n\t\tjugadores = new Jugador[LONGITUD_COLA];\n\t}", "public Scanner(Configuration config) {\r\n\t\tthis.conf = config;\r\n\t\tfileCacheList = new LinkedList<FileObj>();\r\n\r\n\t}", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public parserCapas(java_cup.runtime.Scanner s) {super(s);}", "@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}", "public void inserirContato() {\n\t\tSystem.out.println(\"Digite o nome do novo contato: \");\n\t\tString contato = scanner.nextLine();\n\t\tlistaDeContatos.add(contato);\n\t}", "public void inicializar();", "public static void main(String[] args) {\n\t\tScanner entrada = new Scanner(System.in);\r\n\t\tint selector=entrada.nextInt();\r\n \t vuelo[] vuelos = new vuelo[10];\r\n \t aeropuertos[] aeropuerto= new aeropuertos[5];\r\nSystem.out.println(\"bienvenido a control de vuelos\");\r\nSystem.out.println(\"que desea hacer?\");\r\nSystem.out.println(\"1: mostrar lista de aeropuertos\");\r\nSystem.out.println(\"2: mostrar lista de vuelos\");\r\n selector=entrada.nextInt();\r\n switch (selector) {\r\n case 1:\r\n \t for(int i =0;i<vuelos.length;i++) {\r\n \t\t System.out.println(aeropuerto[i]);\r\n \t }\r\n }\r\n}", "public Scanner(String program) {\n\t\tthis.program=program;\n\t\tpos=0;\n\t\ttoken=null;\n\t\tinitWhitespace(whitespace);\n\t\tinitDigits(digits);\n\t\tinitLetters(letters);\n\t\tinitLegits(legits);\n\t\tinitKeywords(keywords);\n\t\tinitOperators(operators);\n }", "private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }", "public void initVariables() throws Exception {\n\n\t\tclockTomasulo = clockTomasulo.getInstance();\n\t\tclockTomasulo.ResetClock();\n\t\t// OperationFileParser file_parser = new OperationFileParser( data_file\n\t\t// );\n\n\t\t// Iniatialize containers for instructions and registers\n\t\t// operations = new OperationList();\n\t\tregistersTomasulo = new RegisterFiles();\n\n\t\t// file_parser.parseFile( operations );\n\n\t\t/*\n\t\t * // Create and intialize Reservation Stations alu_rsTomasulo = new\n\t\t * ALUStation[8];\n\t\t * \n\t\t * \n\t\t * alu_rsTomasulo[0] = new ALUStation(\"Int1\"); alu_rsTomasulo[1] = new\n\t\t * ALUStation(\"Add1\"); alu_rsTomasulo[2] = new ALUStation(\"Add2\");\n\t\t * alu_rsTomasulo[3] = new ALUStation(\"Mul1\"); alu_rsTomasulo[4] = new\n\t\t * ALUStation(\"Mul2\"); alu_rsTomasulo[5] = new ALUStation(\"Div1\");\n\t\t * alu_rsTomasulo[6] = new ALUStation(\"Div2\"); alu_rsTomasulo[7] = new\n\t\t * ALUStation(\"Div3\");\n\t\t */\n\t\t/*\n\t\t * MemReservationTomasulo[0] = new MemStation(\"Load1\");\n\t\t * MemReservationTomasulo[1] = new MemStation(\"Load2\");\n\t\t * MemReservationTomasulo[2] = new MemStation(\"Store1\");\n\t\t * MemReservationTomasulo[3] = new MemStation(\"Store2\");\n\t\t */\n\n\t\tinstruction_to_stationTomasulo = new HashMap<String, Integer[]>();\n\t\t// Memory Indices\n\t\tinstruction_to_stationTomasulo.put(\"LD\", new Integer[] { 0, 1 });\n\t\tinstruction_to_stationTomasulo.put(\"SD\", new Integer[] { 2, 3 });\n\n\t\t/*\n\t\t * // ALU Indices instruction_to_stationTomasulo.put(\"DADDI\", new\n\t\t * Integer[] { 0 }); instruction_to_stationTomasulo.put(\"ADDD\", new\n\t\t * Integer[] { 1, 2 }); instruction_to_stationTomasulo.put(\"SUBD\", new\n\t\t * Integer[] { 1, 2 }); instruction_to_stationTomasulo.put(\"MULD\", new\n\t\t * Integer[] { 3, 4, 5 }); instruction_to_stationTomasulo.put(\"DIVD\",\n\t\t * new Integer[] { 6, 7, 8, 9 });\n\t\t */\n\n\t\ttry {\n\t\t\t/*\n\t\t\t * [pipeline] PipeFPAddSub=1 PipeFPMult=1 PipeFPDivide=1\n\t\t\t * PipeIntDivide=1 [scorboard] ScoreInteger=1 ScoreAddSub=2\n\t\t\t * ScoreMult=10 ScoreDivide=40 [tomasulo] TomInteger=2 TomAddI=1\n\t\t\t * TomAddSub=4 TomMult=7 TomDivide=25\n\t\t\t */\n\t\t\tWini ini;\n\t\t\t/* Load the ini file. */\n\t\t\tini = new Wini(new File(\"config/settings.ini\"));\n\n\t\t\tint TomInteger = ini.get(\"tomasulo\", \"TomInteger\", int.class);\n\t\t\tint TomAddI = ini.get(\"tomasulo\", \"TomAddI\", int.class);\n\t\t\tint TomAddSub = ini.get(\"tomasulo\", \"TomAddSub\", int.class);\n\t\t\tint TomMult = ini.get(\"tomasulo\", \"TomMult\", int.class);\n\t\t\tint TomDivide = ini.get(\"tomasulo\", \"TomDivide\", int.class);\n\n\t\t\tint TomNumInteger = ini.get(\"tomasulo\", \"TomNumInteger\", int.class);\n\t\t\tint TomNumAddSub = ini.get(\"tomasulo\", \"TomNumAddSub\", int.class);\n\t\t\tint TomNumMult = ini.get(\"tomasulo\", \"TomNumMult\", int.class);\n\t\t\tint TomNumDiv = ini.get(\"tomasulo\", \"TomNumDiv\", int.class);\n\t\t\tint TomNumLoad = ini.get(\"tomasulo\", \"TomNumLoad\", int.class);\n\t\t\tint TomNumStore = ini.get(\"tomasulo\", \"TomNumStore\", int.class);\n\n\t\t\tInteger[] arrayTomNumInteger;\n\t\t\tInteger[] arrayTomNumAddSub;\n\t\t\tInteger[] arrayTomNumMult;\n\t\t\tInteger[] arrayTomNumDiv;\n\n\t\t\t// Create a mapping of instructions to execution time\n\t\t\tinstruction_to_timeTomasulo = new HashMap<String, Integer>();\n\t\t\t// Memory Instructions\n\t\t\tinstruction_to_timeTomasulo.put(\"LD\", new Integer(TomInteger));\n\t\t\tinstruction_to_timeTomasulo.put(\"SD\", new Integer(TomInteger));\n\n\t\t\t// ALU Instructions\n\t\t\tinstruction_to_timeTomasulo.put(\"DADDI\", new Integer(TomAddI));\n\t\t\tinstruction_to_timeTomasulo.put(\"DADD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"ADDD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"SUBD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"MULD\", new Integer(TomMult));\n\t\t\tinstruction_to_timeTomasulo.put(\"DIVD\", new Integer(TomDivide));\n\n\t\t\t// Create and intialize Reservation Stations\n\t\t\talu_rsTomasulo = new ALUStation[TomNumInteger + TomNumAddSub + TomNumMult + TomNumDiv];\n\n\t\t\t// ALU Indices\n\t\t\tarrayTomNumInteger = new Integer[TomNumInteger];\n\t\t\tfor (int i = 0; i < TomNumInteger; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Int\" + (i + 1));\n\t\t\t\tarrayTomNumInteger[i] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumInteger.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"DADDI\", arrayTomNumInteger);\n\n\t\t\tarrayTomNumAddSub = new Integer[TomNumAddSub];\n\t\t\tfor (int i = TomNumInteger; i < TomNumInteger + TomNumAddSub; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Add\" + (i - TomNumInteger + 1));\n\t\t\t\tarrayTomNumAddSub[i - TomNumInteger] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumAddSub.length > 0) {\n\t\t\t\tinstruction_to_stationTomasulo.put(\"ADDD\", arrayTomNumAddSub);\n\t\t\t\tinstruction_to_stationTomasulo.put(\"SUBD\", arrayTomNumAddSub);\n\t\t\t}\n\n\t\t\tarrayTomNumMult = new Integer[TomNumMult];\n\t\t\tfor (int i = TomNumInteger + TomNumAddSub; i < TomNumInteger + TomNumAddSub + TomNumMult; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Mul\" + (i - TomNumInteger - TomNumAddSub + 1));\n\t\t\t\tarrayTomNumMult[i - TomNumInteger - TomNumAddSub] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumMult.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"MULD\", arrayTomNumMult);\n\n\t\t\tarrayTomNumDiv = new Integer[TomNumDiv];\n\t\t\tfor (int i = TomNumInteger + TomNumAddSub + TomNumMult; i < TomNumInteger + TomNumAddSub + TomNumMult\n\t\t\t\t\t+ TomNumDiv; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Div\" + (i - TomNumInteger - TomNumAddSub - TomNumMult + 1));\n\t\t\t\tarrayTomNumDiv[i - TomNumInteger - TomNumAddSub - TomNumMult] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumDiv.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"DIVD\", arrayTomNumDiv);\n\n\t\t\t/*\n\t\t\t * alu_rsTomasulo[0] = new ALUStation(\"Int1\"); alu_rsTomasulo[1] =\n\t\t\t * new ALUStation(\"Add1\"); alu_rsTomasulo[2] = new\n\t\t\t * ALUStation(\"Add2\"); alu_rsTomasulo[3] = new ALUStation(\"Mul1\");\n\t\t\t * alu_rsTomasulo[4] = new ALUStation(\"Mul2\"); alu_rsTomasulo[5] =\n\t\t\t * new ALUStation(\"Div1\"); alu_rsTomasulo[6] = new\n\t\t\t * ALUStation(\"Div2\"); alu_rsTomasulo[7] = new ALUStation(\"Div3\");\n\t\t\t */\n\n\t\t\t// array contain of number of load andstore units\n\t\t\tMemReservationTomasulo = new MemStation[TomNumLoad + TomNumStore];\n\t\t\tfor (int i = 0; i < TomNumLoad; i++) {\n\t\t\t\tMemReservationTomasulo[i] = new MemStation(\"Load\" + (i + 1));\n\n\t\t\t}\n\t\t\tfor (int i = TomNumLoad; i < TomNumLoad + TomNumStore; i++) {\n\t\t\t\tMemReservationTomasulo[i] = new MemStation(\"Store\" + (i - TomNumLoad + 1));\n\n\t\t\t}\n\t\t\t// MemReservationTomasulo[0] = new MemStation(\"Load1\");\n\t\t\t// MemReservationTomasulo[1] = new MemStation(\"Load2\");\n\t\t\t// MemReservationTomasulo[2] = new MemStation(\"Store1\");\n\t\t\t// MemReservationTomasulo[3] = new MemStation(\"Store2\");\n\n\t\t} catch (InvalidFileFormatException e) {\n\t\t\tSystem.out.println(\"Invalid file format.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem reading file.\");\n\t\t}\n\n\t\t// Mapping of aliases to Registers\n\t\talias_to_registerTomasulo = new HashMap<String, String>();\n\n\t\t// Initalize the Memory Buffer\n\t\tMemoryBufferTomasulo = new HashMap<String, Integer>();\n\n\t\tCurrentInstTomasulo = 1;\n\n\t}", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "public void readData(Scanner strScanner) \n {\n super.readData(strScanner);\n \n bodyType = strScanner.next();\n \n noOfDoors = strScanner.nextInt();\n noOfSeats = strScanner.nextInt();\n }", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "private void cargarDatos()\n {\n // Pantalla carga\n showProgress(true, mView, mProgressView, getContext());\n Comando login = new LoginComando(KPantallas.PANTALLA_PERFIL);\n String email = UtilUI.getEmail(getContext());\n String password = UtilUI.getPassword(getContext());\n login.ejecutar(email,password);\n }", "private void usuario(){\r\n int x=0,y=0,car=0;\r\n boolean aceptar=false, exc=false;\r\n System.out.println(\"Jugador:\"+pj+\" Puntos\");\r\n try{\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException a){\r\n aceptar=false;\r\n System.out.println(\"Posicion No Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame a){\r\n if(exc==false){\r\n aceptar=false;\r\n a.mensaje();\r\n }else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n }\r\n \r\n }while(aceptar==false); \r\n\r\n car=1;\r\n car=jugada(x,y,car,\"Jugador\");\r\n aceptar=false;\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException ss){\r\n aceptar=false;\r\n System.out.println(\"Posicion no Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame b){\r\n if(exc==false){\r\n aceptar=false;\r\n b.mensaje();\r\n }\r\n else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n \r\n }\r\n }while(aceptar==false);\r\n jugada(x,y,car,\"Jugador\");\r\n }catch(TimeOut c){\r\n c.mensaje();\r\n }\r\n }", "private static void getInstancia() throws IOException {\r\n if (propiedades == null) {\r\n propiedades = new PropiedadesComunicacion();\r\n }\r\n }", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "private void remplirUtiliseData() {\n\t}", "public static void main(String[] args) {\n\n\t\tint n,x;\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the two numbers : divisor & divident\");\n\t\t\n\t\tn=sc.nextInt();\n\t\tx=sc.nextInt();\n\t\t// YOu need to close down the instance of your scanner \n\t\t// No matter Exception came or Not . We still have to close \n\t\t//instance....\n\t\t\n\t\t// cricitcal task => in try nd catch block \n\t\t// We should close the instance or object we have taken...\n\t\t// We took the object of Scanner.\n\t\t// Imageine I create an Object of Scanner :\n\t\t// I us eit and I don't close the object\n\t\t// Then in other class I again create the object of Scanner and I work on it a\n\t\t// and again I dont close it..\n\t\t// We are having in JVM two instances of scanner , which are present \n\t\t// occuping the memory but we are not using it.\n\t\t// 15 objects ::: costs ......\n\t\t// It is always recommonded to close the instances of \n\t\t// these objects....\n\t\ttry{\n\t\t\tint quo=divideByNum(n, x);\n\t\t\tSystem.out.println(\"The quotient is ::\"+quo);\n\t\t}catch(ArithmeticException e){\n\t\t\tSystem.out.println(\"In division Catch Block\");\n\t\t\t//e.printStackTrace();\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"In Exception catch block\");\n\t\t}finally{\n\t\t\t/** Finally blocks are always executed,no matter , \n\t\t\t * try fails or executes.\n\t\t\t * \n\t\t\t */\n\t\t\tSystem.out.println(\"In Finally ! \");\n\t\t\t\n\t\t}\n\t\tint [] ar={1,2,3,4,5};\n\t\t/** its not compulsary to have a catch with try , even \n\t\t * finally serve the purpose.\n\t\t */\n\t\ttry{\n\t\t\tSystem.out.println(\"Enter the index to be searched\");\n\t\t\tx=sc.nextInt();\n\t\t\tSystem.out.println(fetchFromArray(ar, x));\n\t\t}finally{\n\t\t\tSystem.out.println(\"In finally of the second try\");\n\t\t\tsc.close();\n\t\t}\n\n\n\n\t}", "public void visitScanner( DevCat devCat ) {}", "private static void menuOpciones() {\n // Hacemos un do para mostrar las opciones hasta que pulse la opción correcta\n int opcion;\n // Scanner nos sirve para analizar la entrada desde el teclado. Al usar new si estamos creando el objeto (lo veremos)\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Seleccione la opción\");\n System.out.println(\"1.- Cálculo de estadístcas de clase\");\n System.out.println(\"2.- Cálculo año bisiesto\");\n System.out.println(\"3.- Cálculo de Factorial\");\n System.out.println(\"4.- Primos Gemelos\");\n System.out.println(\"0.- Salir\");\n\n // Creamos un bucle do while y lo tenemos girando aquí hasta que meta estos valores\n // Pero sabemos que scanner va a \"petar\" si no le metemos algo que pueda hacer el casting\n // Ya lo solucionaremos\n do {\n System.out.println(\"Elija opción: \");\n opcion = in.nextInt();\n } while (opcion != 0 && opcion != 1 && opcion != 2 && opcion != 3 && opcion != 4);\n\n switch (opcion) {\n case 1:\n estadisticaClase();\n break;\n case 2:\n añoBisiesto();\n break;\n case 3:\n factorial();\n break;\n case 4:\n primosGemelos();\n break;\n case 0:\n despedida();\n break;\n // No hay default, porque por el do-while no puede llegar aquí con otro valor\n }\n\n // Y si queremos volver al menú cada vez que terminemos una opción?\n\n }", "public static void main(String[] args) {\n\r\n Integer opcao = 9;\r\n String conta;\r\n String senha;\r\n int opcaoConta = 9;\r\n Scanner input = new Scanner(System.in);\r\n\r\n Conta contanormal = new Conta();\r\n Conta contapoupanca = new Conta();\r\n Conta contavip = new Conta();\r\n \r\n // Aqui apenas uma apresentação básica.\r\n\r\n System.out.println(\"\\n\\n-----Bem vindo ao Nipo Bank-----\\n\\n\");\r\n System.out.println(\"Primeiro precisamos abrir sua conta! \\n\");\r\n System.out.println(\"Aperte enter para começar\");\r\n \r\n // Esta parte aqui apenas vai entender um \"Enter\" para o programa seguir rodando.\r\n // Se o input for vazio, ele não vai fazer nada, mas caso seja pressionado um enter, vai seguir rodando.\r\n\r\n String enter = input.nextLine();\r\n if(!enter.equals(\"\") ) {}\r\n\r\n // Aqui o programa aciona o método criarConta, passando valores únicos para essa conta, dependendo da opção selecionada.\r\n // Logo em seguida, o método usarConta é acionado para possibilitar ao usuário mexer na conta que acabou de criar.\r\n\r\n do {\r\n System.out.println(\"Selecione uma destas opções:\\n1- Conta normal\\n2- Conta poupança\\n3- Conta 5 estrelas\\n0- Sair\");\r\n opcaoConta = input.nextInt();\r\n\r\n if (opcaoConta == 1) { \r\n if (contanormal.criada == false){\r\n String tipoConta = \"Conta normal\";\r\n Double credito = 100.00;\r\n Boolean criada = true;\r\n contanormal.criarConta(credito, tipoConta, criada);\r\n contanormal.usarConta();\r\n } else {contanormal.handleAccount();}\r\n }\r\n \r\n \r\n else if (opcaoConta == 2) {\r\n \r\n if (contapoupanca.criada == false){\r\n String tipoConta = \"Conta poupança\";\r\n Double credito = 0.00;\r\n Boolean criada = true;\r\n contapoupanca.criarConta(credito, tipoConta, criada);\r\n contapoupanca.usarConta();\r\n } else {contapoupanca.handleAccount();}\r\n \r\n }\r\n else if (opcaoConta == 3) {\r\n \r\n if (contavip.criada == false){\r\n Double credito = 500.00;\r\n String tipoConta = \"Conta 5 estrelas\";\r\n Boolean criada = true;\r\n contavip.criarConta(credito, tipoConta, criada);\r\n contavip.usarConta();\r\n } else {contavip.handleAccount();} \r\n \r\n } \r\n \r\n } while (opcaoConta != 0);\r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t \n\t\t//Chiede di introdurre nome e cognome\n\t\tSystem.out.println(\"Introduci nome :\");\n\t\tString nome = scan.next(); //qui il programma attende l'immissione dei dati\n\t\tSystem.out.println(\"introduci cognome:\");\n\t\tString cognome= scan.next(); \n\t\t//Chiede di introdurre la cittą\n\t\tSystem.out.println(\"Introduci cittą:\");\n\t\tString citta = scan.next(); \n\t\t \n\t\tSystem.out.println(\"Nome e cognome : \" + nome+\" \"+cognome);\n\t\tSystem.out.println(\"Cittą : \" + citta);\n\t\tscan.close();\n\t\t\n\n\t}", "public static void init()throws IOException{if(fileIO){f=new FastScanner(\"\");}else{f=new FastScanner(System.in);}}", "public void setScan(Scan scan) {\n this.scan = scan;\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "public static void echoContents(Scanner in) {\n }", "public Game() {\n\t\tsc = new Scanner(System.in);\n\t}", "public static void main(String[] args) {\n\t\tSucursal s1 = new Sucursal();\n\t\tboolean posibilidad = true;\n\t\tint cont;\n\t\twhile (posibilidad) {\n\t\t\tScanner entrada = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Cuantos paquetes quieres enviar:\\n1.Un paquete\\n2.Mas paquetes\\n3.Salir\");\n\t int paquetes = entrada.nextInt();\n\t if (paquetes == 1) {\n\t \tPaquete p1 = new Paquete();\n\t \ts1.setPrecio(p1);\n\t \t/*System.out.println(\"El numero de la sucursal es: \" + (int) s1.getnumero_Sucursal() +\n\t \t\t\t\" con la direccion de \" + s1.getdireccion() + \" en la ciudad de \" + s1.getciudad() +\n\t \t\t\t\" con el numero de referencia \"+ p1.getReferencia() + \" con un peso de \" + p1.getPeso() + \" kg\" + \n\t \t\t\t\" su prioridad es de: \" + p1.getPrioridad() + \" con un precio total de: \" + s1.getprecio());*/\n\t \t\n\t \tSystem.out.println(\"El numero de la sucursal es: \" + (int) s1.getnumero_Sucursal());\n\t \tSystem.out.println(\"La direccion: \" + s1.getdireccion());\n\t \tSystem.out.println(\"Ciudad: \" + s1.getciudad());\n\t \tSystem.out.println(\"Numero de referencia \"+ p1.getReferencia());\n\t \tSystem.out.println(\"con un peso de: \" + p1.getPeso() + \" kg\");\n\t \tSystem.out.println(\"Prioridad: \" + p1.getPrioridad());\n\t \tSystem.out.println(\"Precio total: \" + s1.getprecio() + \" €\");\n\t \t\n\t \t\n\t \tSystem.out.println(\"Muchas gracias por su visita\");\n\t \tposibilidad = false;\n\t }else if (paquetes == 2) {\n\t \tScanner c = new Scanner (System.in);\n\t \tSystem.out.println(\"Cuantos paquetes quieres enviar:\\n1.\\n2\\n3\\nTienes hasta 10 envios\");\n\t \tint cantidad = c.nextInt();\n\t \tint con = cantidad;\n\t \tfor (int i = 0; i < con; i++) {\n\t \t\tPaquete p1 = new Paquete();\n\t\t \ts1.setPrecio(p1);\n\t\t \tSystem.out.println(\"El numero de la sucursal es: \" + (int) s1.getnumero_Sucursal());\n\t\t \tSystem.out.println(\"La direccion: \" + s1.getdireccion());\n\t\t \tSystem.out.println(\"Ciudad: \" + s1.getciudad());\n\t\t \tSystem.out.println(\"Numero de referencia \"+ p1.getReferencia());\n\t\t \tSystem.out.println(\"con un peso de: \" + p1.getPeso() + \" kg\");\n\t\t \tSystem.out.println(\"Prioridad: \" + p1.getPrioridad());\n\t\t \tSystem.out.println(\"Precio total: \" + s1.getprecio() + \" €\");\n\t\t \tSystem.out.println(\"Muchas gracias por su visita\");\n\t\t \tposibilidad = false;\n\t\t \t\n\t\t \n\t \t}\n\t \t\n\t \t\n\t \t\n\t \n\t }else if (paquetes == 3) {\n\t \tSystem.out.println(\"Muchas gracias por su visita\");\n\t \tposibilidad=false;\n\t }\n\t\t\t\n\t\t}\n\n\t}", "private static String[] collectInput() {\n\t\tString command = sc.next();\n\t\tString i = sc.next();\n\t\tString destination = sc.next();\n\t\treturn new String[] { command, destination };\n\t\t\n\t}", "private static void inputs(Scanner fileScanner) {\n\t\tSystem.out.printf(\"You will now need to enter in the correct pathway to the files containing: \\n\\t1.) RNA table\\n\\t2.) RNA strand\\n\\t3.) Output Protien strand (this will create a new file)\\n\");\n\t\tSystem.out.println(\"Example pathway: C:/CSC142_143/DataFiles/RNATable.txt\");\n\t\tSystem.out.print(\"Please enter file pathway for the RNA Table: \");\n\t\tsetRNATablePathway(fileScanner.next());\n\t\tSystem.out.print(\"Please enter file pathway for the RNA Strand: \");\n\t\tsetRNAStrandPathway(fileScanner.next());\n\t\tSystem.out.print(\"Please enter file pathway for the decoded protien: \");\n\t\tsetRNAOutPathway(fileScanner.next());\n\t\tfileScanner.close();\n\t\t\n\t}", "public ContentScanner(\n Contents contents\n )\n {\n this.parentLevel = null;\n this.objects = this.contents = contents;\n\n moveStart();\n }", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "static void soustraire() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 - nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" - \" + nb2 + \" = \" + resultat);\n\t}", "public void menu(){\n System.out.println(\"---------------------------Login------------------------------------\");\n \n System.out.println(\"Usuario:\");\n respuesta = scanner.nextLine();\n System.out.println(\"Contraseña:\");\n respuesta2 = scanner.nextLine();\n Usuario user = new Usuario();\n user.setNombre(respuesta);\n user.setPassword(respuesta2);\n idUser=modelo.validarUsuario(user);\n if(idUser<0){\n System.err.println(\"Usuario invalido\");\n \n }else{\n \n menuInterno();\n \n }\n//\n// menuInterno();\n// \n }", "public WrongInputDataInScanner() {\n\tsuper();\n\t\n}", "public ContentScanner getScanner(\n )\n {return scanner;}", "private void lesFil()\n\t{\n\t\tDATAFIL = datafil(false);\n\n\t\ttry ( ObjectInputStream innfil = new ObjectInputStream( new FileInputStream( DATAFIL ) ) )\n\t\t{\n\t\t\tbr = (Boligregister) innfil.readObject();\n\t\t\tvisMelding( \"Data er hentet fra fil.\" );\n\t\t}\n\t\tcatch(ClassNotFoundException cnfe)\n\t\t{\n\t\t\tvisMelding( \"<html>Feil:<br><br>\" + cnfe.getMessage() + \"<br><br>Oppretter tom datafil. Tar vare p&aring; gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(FileNotFoundException fne)\n\t\t{\n\t\t\tvisMelding( \"Ingen datafil funnet. Oppretter tom datafil.\" );\n\t\t\ttomtRegister();\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t\tvisMelding( \"<html>Innlesingsfeil. Oppretter tom datafil. Tar vare p&aring; gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t}", "public void identificacion(){\n System.out.println(\"¡Bienvenido gamer!\\nSe te solcitaran algunos datos con el fin de personalizar tu experiencia :)\");\n System.out.println(\"Porfavor, ingresa tu nombre\");\n nombre = entrada.nextLine();\n System.out.println(\"Bien, ahora, ingresa tu gamertag\");\n gamertag = entrada.nextLine();\n System.out.println(\"Ese es un gran gamertag, ahora, diseña tu id, recuerda que tiene que ser un numero entero\");\n id = entrada.nextInt();\n //se le pide al usuario que elija la dificultad del juego, cada dificultad invocara a un metodo distinto\n System.out.println(\"Instrucciones:\\nTienes un numero limitado de intentos, tendras que encontrar las minas para asi desactivarlas\\n¿Quien no queria ser un Desactivador de minas de niño?\");\n System.out.println(\"Selecciona la dificultad\\n1. Facil\\n2. Intermedia\\n3 .Dificil\\n4. Imposible\");\n decision = entrada.nextInt();\n //creo el objeto que me llevara al juego, mandandolo con mis variables recopiladas\n Buscaminas dear = new Buscaminas(nombre, gamertag, id);\n if (decision==1){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Facil\");\n //vamos para el juego\n dear.juego();\n }else if(decision==2){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Intermedia\");\n dear.juego1();\n\n }else if(decision==3){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Dificil\");\n dear.juego2();\n\n }else if(decision==4){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Imposible\");\n dear.juego3();\n\n }\n\n\n\n }", "@Override\r\n\tpublic void execute(Scanner sc) {\n\r\n\t}", "private void setHapScannerPipe () {\n String parameterFileS = \"/Users/feilu/Documents/analysisL/production/parameters_hapScanner.txt\";\n new HapScanner(parameterFileS);\n }", "private void start() {\n Scanner scanner = new Scanner(System.in);\n \n // While there is input, read line and parse it.\n String input = scanner.nextLine();\n TokenList parsedTokens = readTokens(input);\n }" ]
[ "0.6424914", "0.6260314", "0.6196123", "0.6183957", "0.6053227", "0.60465556", "0.60465556", "0.59924865", "0.5900295", "0.585208", "0.5843328", "0.583127", "0.5826207", "0.5786486", "0.5766006", "0.5752924", "0.5750226", "0.5747713", "0.57436496", "0.57231337", "0.56941515", "0.568284", "0.56783056", "0.5666539", "0.5660758", "0.56516457", "0.5636337", "0.5626559", "0.5611248", "0.5609883", "0.5599152", "0.55871236", "0.5586802", "0.5583343", "0.55820125", "0.557245", "0.5570798", "0.5570793", "0.5567491", "0.5565199", "0.5562762", "0.55472803", "0.5526781", "0.5525865", "0.5518561", "0.5517662", "0.5517311", "0.5508313", "0.55026275", "0.5493143", "0.5466639", "0.5466587", "0.5455146", "0.54486144", "0.5435062", "0.5434706", "0.5430161", "0.54198575", "0.54143167", "0.5409145", "0.54051554", "0.53996676", "0.5391857", "0.5391463", "0.5391026", "0.5389873", "0.5387017", "0.5380005", "0.5374666", "0.53622466", "0.5361772", "0.53582597", "0.5352801", "0.53490937", "0.5344746", "0.53347784", "0.5333986", "0.5333716", "0.5330474", "0.5326897", "0.53167266", "0.53149503", "0.53081477", "0.5303581", "0.5303096", "0.5302223", "0.5301683", "0.5290497", "0.52901673", "0.5283058", "0.52827364", "0.5280656", "0.5280536", "0.5278215", "0.52764666", "0.52697766", "0.526828", "0.52643126", "0.5263851", "0.5262335", "0.5255219" ]
0.0
-1
Toast.makeText(getApplicationContext(), "Close help button", Toast.LENGTH_LONG).show();
@Override public void onClick(View v) { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "@Override\n public void close() {\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }", "private void showHelp(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this,R.style.MyDialogTheme);\n alertDialogBuilder.setMessage(\"Welcome to NBA Manager 2019\\n\\n\" +\n \"The purpose of the application is to simulate a basketball manager game and draft a team.\\n\\n\" +\n \"You can view your current roster by pressing the right arrow in the top right corner.\\n\\n\" +\n \"*Not all players will have a height or a weight.\");\n alertDialogBuilder.setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "public void onClick(DialogInterface dialog, int id) {\n\r\n Context context = getApplicationContext();\r\n CharSequence text = \"Welcome \" + name + \"! Signing up...\";\r\n int duration = Toast.LENGTH_SHORT;\r\n\r\n Toast toast = Toast.makeText(context, text, duration);\r\n toast.show();\r\n }", "@Override\n public void onClick(View v) {\n Context context = getApplicationContext();\n // When the Hello button on the app is pressed this line of code will show *Hello, how are you?!\"\n Toast toast = Toast.makeText(context,\n \"Contact details for the college are - \" +\n \"\\n\\t CSN College, Tramore Road, Co.Cork\" +\n \"\\n\\t Phone number: 021-4961020\" +\n \"\\n\\t Email: [email protected]\", Toast.LENGTH_LONG);\n // This is for the toast message to show.\n toast.show();\n\n }", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "public void helpBtn( View v )\n {\n \t// Display help here \t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder( this );\n\t\tbuilder.setMessage( R.string.help_manage_id )\n\t .setTitle( R.string.help_warning );\n\t\tbuilder.setPositiveButton( R.string.ok, new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int idx) {\n\t // User clicked OK button \n\t }\n\t });\t\t\n\t\tAlertDialog dialog = builder.create();\n\t\tdialog.show();\t\t\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onClose() {\n Toast.makeText(this, \"onClose\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Scores app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void onClickShowAlert(View view) {\n AlertDialog.Builder myAlertBuilder = new\n AlertDialog.Builder(MainActivity.this);\n // Set the dialog title and message.\n myAlertBuilder.setTitle(\"Alert\");\n myAlertBuilder.setMessage(\"Click OK to continue, or Cancel to stop:\");\n // Add the dialog buttons.\n myAlertBuilder.setPositiveButton(\"OK\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User clicked OK button.\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }\n });\n myAlertBuilder.setNegativeButton(\"Cancel\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User cancelled the dialog.\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }\n });\n // Create and show the AlertDialog.\n myAlertBuilder.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Build It Bigger app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void alertForOuitMessage() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(context);\n final AlertDialog alert = builder.create();\n alert.getWindow().getAttributes().windowAnimations = R.style.alertAnimation;\n View view = alert.getLayoutInflater().inflate(R.layout.quiz_quit_alert, null);\n TextView title1 = (TextView) view.findViewById(R.id.title1);\n title1.setText(context.getString(R.string.quiz_quit_are));\n title1.setTypeface(VodafoneRg);\n TextView title2 = (TextView) view.findViewById(R.id.title2);\n title2.setText(context.getString(R.string.quiz_quit_progress));\n title2.setTypeface(VodafoneRg);\n TextView quiz_text = (TextView) view.findViewById(R.id.quit_text);\n quiz_text.setTypeface(VodafoneRg);\n LinearLayout quit_layout = (LinearLayout) view.findViewById(R.id.quit_layout);\n alert.setCustomTitle(view);\n TextView quit_icon = (TextView) view.findViewById(R.id.quit_icon);\n quit_icon.setTypeface(materialdesignicons_font);\n quit_icon.setText(Html.fromHtml(\"&#xf425;\"));\n quit_layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alert.dismiss();\n finish();\n }\n });\n alert.show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "void closeApp();", "void toast(int resId);", "public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void onHelp(View view)\n {\n // Instantiate a dialog box builder\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n\n // Parameterize the builder\n builder.setTitle(R.string.helpTitle);\n builder.setMessage(R.string.helpMessage);\n builder.setPositiveButton(android.R.string.ok, null);\n\n // Create the dialog box and show it\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my XYZ Reader app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }", "private void cancelToast() {\n\t\tToast.makeText(getActivity(),\n\t\t\t\t\t\"Vorgang abgebrochen\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}", "void showToast(String message);", "void showToast(String message);", "public void openHelp(){\n\n Intent helpIntent = new Intent(this, Help.class);\n startActivity(helpIntent);\n\n }", "public static void showAlert(String message, Activity context) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(message).setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n\n }\n });\n try {\n builder.show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tToast.makeText(getContext(), \"告辞!\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Capstone app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }", "@Override\n public void onClick(View v) {\n\n MainActivity.alertDialog = new AlertDialog.Builder(v.getContext());\n MainActivity.alertDialog .setTitle(\"Logout\");\n final TextView input = new TextView(getContext());\n input.setTextSize(18);\n input.setGravity(Gravity.CENTER | Gravity.BOTTOM);\n\n input.setText(\"Are you sure you want to logout?\");\n\n MainActivity.alertDialog.setView(input);\n MainActivity.alertDialog.setCancelable(true);\n MainActivity.alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n LoginActivity.restart(getContext(),0);\n\n }\n });\n\n MainActivity.alertDialog .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.dismiss();\n }\n });\n MainActivity.alertDialog .show();\n\n }", "@Override\n public void onClick(View v) {\n Toast tst = Toast.makeText(MainActivity.this, \"test\", Toast.LENGTH_SHORT);\n tst.show();\n Test();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Library app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void help(View v) {\n\t // Do something in response to button\n\t\tIntent intent = new Intent(this, Help.class);\n\t startActivity(intent);\n\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.about_us_dialog);\n btnAboutUs = (Button) findViewById(R.id.btnAboutUsClose);\n btnAboutUs.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismiss();\n }\n });\n\n }", "private void showHelpDialog() {\n\n view.helpDialog();\n }", "public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "public void helpClick(View v) {\n Toast.makeText(this, \"Go see an admin!\", Toast.LENGTH_SHORT).show();\n toggleDrawer();\n }", "public void toastKickoff(String message) {\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t}", "private void showToast (String appName) {\n Toast.makeText(this,getString(R.string.openAppMessage,appName), Toast.LENGTH_SHORT).show();\n }", "public static void hideToast() {\n if (null != toast) {\n toast.cancel();\n }\n }", "@FXML\n\tvoid closeHelp(ActionEvent event) throws IOException {\n\t\tStage stage = (Stage) closeHelp.getScene().getWindow();\n\t stage.close();\n\t}", "public void close() {\n getCloseButton().click();\n }", "public void onCancelButtonClick() {\n close();\n }", "public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tfinal Dialog dialog = new Dialog(MainActivity.this);\n\t\t\t\tdialog.setTitle(\"About this App\");\n\t\t\t\tdialog.setContentView(R.layout.custom_dialog);\n\t\t\t\tButton btnOkay = (Button)dialog.findViewById(R.id.btnOkay);\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t\n\t\t\t\tbtnOkay.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "void CloseOkDialog();", "protected void toast() {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"업데이트 버튼클릭됨\", Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n // the button was clicked\n Toast.makeText(getApplicationContext(), \"Professional backhand-Male Video\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onPositiveClick() {\n quitThisActivity();\n }", "private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }", "@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }", "public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\texit();\r\n\t\t\t}", "private void showErrorToast() {\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Spotify Streamer app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_save)\n .setTitle(\"End Evidence Collection\")\n .setMessage(\"Are you sure you want to end collecting evidence?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n submit();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }", "@Override\n public void cancel() {\n mTn.hide();\n getService().cancelToast(mTn);\n }", "private void showMessage(String msg) {\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "private void exitApplication() {\n Button exit = (Button) findViewById(R.id.activity_one_exit_button); // exit button declaration\n exit.setOnClickListener(new View.OnClickListener() { //set listener for exit button\n @Override\n public void onClick(View v) {\n finish();//close the activity\n\n }\n });\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"模块开发中,敬请期待\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}", "public void onCancelClicked() {\n close();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAskHelpAdd.this.finish();\n\t\t\t}", "public void show_help_pop( View view ) {\n //create and set up dialog box object\n AlertDialog.Builder pop_up = new AlertDialog.Builder( this );\n pop_up.setTitle( \"Alarm/Reminder Help\" );\n pop_up.setIcon( R.drawable.logo );\n final String help_message = \"This alarm is mainly designed for daily reminders, such as\" +\n \" meetings and timed activities, it is not particularly meant to be used as a wake\" +\n \"-up alarm in the morning.\\n\\nThe interface provides simplicity. To set the alarm\" +\n \", pick the hour and minute using the hands of the clock (make sure to pick AM/PM\" +\n \" correctly) and set it by clicking the toggle button in the center. The button \" +\n \"text will now read \\\"ON\\\". You may also wish to provide your own reminder text in\" +\n \" the area just below time picker. Use the same toggle button to disable the \" +\n \"alarm. Once the alarm sounds, a notification will appear on your screen. Click \" +\n \"the notification (may have to unlock screen first) to open up the alarm screen\" +\n \" and then click the toggle button to disable the alarm and turn off the sound.\";\n pop_up.setMessage( help_message );\n\n //set up buttons for dialog box\n pop_up.setPositiveButton( \"OK\", null );\n\n //show pop-up\n pop_up.show( );\n }", "@Override\n public void onClick(View v) {\n popupWindow.dismiss();\n\n }", "private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Button 1\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}", "public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n System.exit(0);\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n finish();\n System.exit(0);\n }", "@Override\n public void onClick(View v) {\n finish();\n System.exit(0);\n }", "@Override\n\t\t\tpublic void onShowUserDefinedDialog(Context context, String title, String content, String leftBtnText,\n\t\t\t\t\tString rightBtnText, DialogBtnClickCallBack dialogBtnClickCallBack) {\n\t\t\t\tToast.makeText(context, content, Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}", "public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }", "public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }" ]
[ "0.76267207", "0.73410505", "0.73410505", "0.7293559", "0.71372646", "0.69768023", "0.68763024", "0.6873517", "0.6868896", "0.6787979", "0.676702", "0.67537194", "0.67066264", "0.6687723", "0.66605335", "0.6656642", "0.6653734", "0.66405547", "0.65650284", "0.65589297", "0.6517386", "0.65014076", "0.64980394", "0.64774144", "0.64616066", "0.6427413", "0.64050615", "0.6401766", "0.6370211", "0.6364191", "0.63338965", "0.63338965", "0.6317154", "0.63050807", "0.6301981", "0.63015246", "0.6297159", "0.6296394", "0.6271072", "0.62646854", "0.62578857", "0.6228499", "0.6224664", "0.6219403", "0.62154204", "0.62002134", "0.6197164", "0.61871445", "0.6167148", "0.61670446", "0.6131954", "0.61279196", "0.61216885", "0.6120114", "0.61130935", "0.6108098", "0.610806", "0.61068517", "0.61046845", "0.6099188", "0.60983586", "0.60973936", "0.6083869", "0.6076873", "0.60766774", "0.60676014", "0.6058904", "0.6057267", "0.6048412", "0.6046801", "0.6046006", "0.60417664", "0.6041238", "0.60328776", "0.6031241", "0.6030683", "0.602744", "0.60250443", "0.6019102", "0.6018143", "0.6014395", "0.6011252", "0.6004406", "0.60040224", "0.60032266", "0.60008603", "0.5997045", "0.5992061", "0.5986777", "0.5986371", "0.59857714", "0.59815323", "0.5979106", "0.5971908", "0.5971908", "0.5969224", "0.5969224", "0.59669113", "0.596037", "0.59577346", "0.59577346" ]
0.0
-1
Returns the parades that have FinalMode = true
public Collection<Parade> findPublishedParade() { Collection<Parade> result; result = this.paradeRepository.findPublishedParade(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public boolean isFinal()\n {\n ensureLoaded();\n return m_flags.isFinal();\n }", "public static boolean isSetParamFinal()\n {\n read_if_needed_();\n \n return _is_set_param_final;\n }", "public boolean isFinal() {\r\n\t\treturn isFinal;\r\n\t}", "public boolean isFinal() {\n\t\treturn false;\n\t}", "boolean getParlay();", "public boolean getFinalProne() {\n if (getLastStep() != null) {\n return getLastStep().isProne();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().isProne();\n }", "@Override\n\tpublic boolean getIsFinal() {\n\t\treturn _esfTournament.getIsFinal();\n\t}", "public boolean isFinal()\n {\n return (position==0);\n }", "public boolean isFinal() {\n\t\treturn isFinal;\n\t}", "@Query(\"select r from Record r where r.finalMode = true\")\r\n\tpublic Collection<Record> findRecordsFinalModeTrue();", "@Override\n\tpublic boolean isIsFinal() {\n\t\treturn _esfTournament.isIsFinal();\n\t}", "public static boolean isGetFinal()\n {\n read_if_needed_();\n \n return _is_get_final;\n }", "boolean isSetParlay();", "@Basic\n\t@Raw\n\tpublic boolean isFinalized() {\n\t\treturn this.finalized;\n\t}", "public static boolean isSetFinal()\n {\n read_if_needed_();\n \n return _is_set_final;\n }", "public boolean getFinalClimbMode() {\n if (getLastStep() != null) {\n return getLastStep().climbMode();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().climbMode();\n }", "public boolean isFinalState() {\n return finalState[currentState.getValue()];\n }", "public Map<String, List<ExprNodeDesc>> getNonFinalCandidates() {\n return nonFinalPreds;\n }", "boolean getProbables();", "boolean isFinal();", "protected boolean isFinalised() {\n return finalised;\n }", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "public boolean isFinalRowCount() {\r\n return isFinalRowCount;\r\n }", "public boolean getPrimHasRun(){\n return primHasRun;\n }", "@Override\n public boolean isFinal() {\n return true;\n }", "public boolean isFinal() {\n\t\tif (targetTaskId.charAt(0) == '$') {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isFinalizado() {\r\n return finalizado;\r\n }", "public Map<String, List<ExprNodeDesc>> getFinalCandidates() {\n return pushdownPreds;\n }", "public int getActivePens(){\n return this.mFarm.getActivePens();\n }", "public boolean hasPendencias() {\n\n for (Atividade atividade : associacao.getAtividades()) {\n if (atividade != null) {\n if (atividade.contaItensPendentes() > 0) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isFinalized() {\n\t\tif (this.owner_ != null)\n\t\t\treturn this.owner_.isFinalized();\n\t\treturn false;\n\t}", "@Override\n boolean isFinal() {\n return false;\n }", "public boolean isFinished() {\n Figure[] figures = this.getFigures();\n for (Figure figure : figures) {\n if (this.map.isFigureInHome(figure) == -1) {\n return false;\n }\n }\n\n return true;\n }", "public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isParallel() {\n\t\treturn parallel;\n\t}", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "public boolean tengoPropiedades(){\n return this.propiedades.size() > 0;\n }", "public HashSet<Proyecto> getProyectosSolicitandoFinanciacion(){\r\n\t\t\r\n\t\tif(!this.modoAdmin) return null;\r\n\t\tHashSet<Proyecto> listado = new HashSet<Proyecto>();\r\n\t\tfor(Proyecto p: this.proyectos) {\r\n\t\t\tif(p.getEstadoProyecto() == EstadoProyecto.PENDIENTEFINANCIACION) {\r\n\t\t\t\tlistado.add(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return (HashSet<Proyecto>) Collections.unmodifiableSet(listado);\r\n\t\t//posteriormente hay que modificarlos, controlar la llamada a la fucnion\r\n\t\treturn listado;\r\n\t}", "java.util.Optional<Boolean> getSeparate();", "public void setFinal(boolean isFinal) {\r\n\t\tthis.isFinal = isFinal;\r\n\t}", "public List<Set<String>> getOptionalAssetsComplete(Player p){\n \n return null;\n }", "public static boolean getShowOnlyActiveAlgorithms() {\n\n return m_bShowOnlyActiveAlgorithms;\n\n }", "public boolean getShowParticles()\r\n/* 90: */ {\r\n/* 91: 91 */ return this.showParticles;\r\n/* 92: */ }", "public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }", "public boolean isLastPhase ()\n {\n return true;\n }", "public boolean hasPhi() {\n return fieldSetFlags()[2];\n }", "public boolean getParallelize() {\n return this.m_Parallelize;\n }", "public ArrayList<Course> getFinalsList() {\n\n if (finalsList != null) {\n\n return finalsList;\n }\n else {\n\n return null;\n }\n }", "public boolean percolates() {\n return percolates;\n }", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "boolean isParallel();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "public Boolean proactiveDetection() {\n return this.proactiveDetection;\n }", "public boolean pobjeda() {\r\n\t\treturn !igrajPoslijePobjede && pobjeda;\t\r\n\t}", "boolean isPostive();", "boolean allFacesPainted() {\n\n\n for (int i = 0; i < s; i ++){\n if (the_cube[i] == false){\n return false;\n\n }\n }\n return true;\n }", "protected boolean isFinished() {\n\t\tif(switchSide) {\n\t\t\treturn !launchCubeSwitch.isRunning() && state == 4;\n\t\t}\n\t\telse if(scaleSide) {\n\t\t\treturn !launchCubeScale.isRunning() && state == 4;\n\t\t}\n\t\telse {\n\t\t\treturn !crossLine.isRunning() && timer.get() > 1;\n\t\t}\n\t}", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "public void setFinal() {\r\n\t\tthis.isFinal = true;\r\n\t}", "boolean isSetProbables();", "protected boolean isFinished() {\n \tif(timeSinceInitialized() >= 1.75){\n \t\treturn true;\n \t}\n return false;\n }", "private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "@Nullable\n private Result analyzeIsFinal() {\n if (tx.getConfidence().getSource() == TransactionConfidence.Source.SELF)\n return Result.OK;\n\n // We consider transactions that opt into replace-by-fee at risk of double spending.\n if (tx.isOptInFullRBF()) {\n nonFinal = tx;\n return Result.NON_FINAL;\n }\n\n // Relative time-locked transactions are risky too. We can't check the locks because usually we don't know the\n // spent outputs (to know when they were created).\n if (tx.hasRelativeLockTime()) {\n nonFinal = tx;\n return Result.NON_FINAL;\n }\n\n if (wallet == null)\n return null;\n\n\n final int height = wallet.getLastBlockSeenHeight();\n final Optional<Instant> time = wallet.lastBlockSeenTime();\n if (!time.isPresent())\n return null;\n\n // If the transaction has a lock time specified in blocks, we consider that if the tx would become final in the\n // next block it is not risky (as it would confirm normally).\n final int adjustedHeight = height + 1;\n final long timeSecs = time.get().getEpochSecond();\n\n if (!tx.isFinal(adjustedHeight, timeSecs)) {\n nonFinal = tx;\n return Result.NON_FINAL;\n }\n for (Transaction dep : dependencies) {\n if (!dep.isFinal(adjustedHeight, timeSecs)) {\n nonFinal = dep;\n return Result.NON_FINAL;\n }\n }\n\n return Result.OK;\n }", "private boolean[] markAllComposites(int initial) {\n boolean[] primes = new boolean[initial + 1];\n //Mark all indexes as true initially\n Arrays.fill(primes, true);\n\n //Start marking the array indexes as false if divisible by the number in iteration, starting from 2\n IntStream.rangeClosed(2, (int) Math.sqrt(initial))\n .filter(num -> primes[num])\n .forEach(num -> {\n //Mark multiples of num as false as this number will be composite.\n //i.e. all the multiples of 2, 3, 4 and so on in the iteration will be marked false if not already marked\n //All the indexes which are not marked at the end of loop will be primes\n for (int i = num * 2; i <= initial; i += num) {\n primes[i] = false;\n }\n });\n return primes;\n }", "void setFinal(boolean isFinal);", "public boolean isEnCoursPreparation() {\n\t\treturn getStatut().equals(StatusBonPreparation.EN_COURS_PREPARATION);\n\t}", "boolean hasProduces();", "protected boolean isFinished() {\r\n\t\t \tboolean ans = false;\r\n\t\t \treturn ans;\r\n\t\t }", "protected Projector getBestVerticalProjector() {\n return _bvp;\n }", "boolean complete() {\n return start2D != null && stop2D != null;// && start3D!=null && stop3D!=null;\n }", "public boolean getSplitInProgressTasks()\r\n {\r\n return (m_splitInProgressTasks);\r\n }", "public boolean getFinish(){\n\t\treturn finish;\n\t}", "public boolean getCompleteCPAOfConcurrency() {\r\n\t\treturn this.completeCPA;\r\n\t}", "public boolean Finalize() {\n\treturn Finalize(false);\n }", "@Override\n\tpublic boolean isFinalized()\n\t{\n\t\treturn finalize;\n\t}", "public boolean areParallel() {\n if (areParallel == null) {\n throw new UndefinedSubspace(\"It was not possible to establish the parallelism, probably because a parameter segment had zero length.\");\n }\n return areParallel;\n }", "public boolean isSolved(){ return getRemainingValues() == 0; }", "boolean isFinished() {\n return includedInLastStep() && (end == elementList.size() - 1);\n }", "public boolean isExecuting(){\n return !pausing;\n }", "static boolean hasMoreComposites(final int flags) {\n return (flags & MORE_COMPONENTS.bitMask) > 0;\n }", "public Collection<Position> findPositionsFinalModeNotCancelledNotDeadline() {\n\t\tCollection<Position> result;\n\n\t\tresult = this.positionRepository.findPositionsFinalModeNotCancelledNotDeadline();\n\t\tAssert.notNull(result);\n\n\t\treturn result;\n\t}", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "public boolean isProcessing (){\n\t\treturn this._processing>0;\n\t}", "boolean hasOutputParams();", "private static /* synthetic */ boolean[] m37850a() {\n boolean[] zArr = f35344a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(-3026766588269170283L, \"com/mopub/mobileads/native_video/R$style\", 1);\n f35344a = probes;\n return probes;\n }", "public static boolean[] getSelectedComponentsFilter() {\r\n return PCCTRL.selectedComponentsFilter;\r\n }", "public static synchronized List<ActiveParticle> getActiveParticles() {\n return activeParticles;\n }", "public boolean getIsCompletingGame()\r\n {\r\n return this.isCompletingGame; \r\n }", "boolean finalise();", "public synchronized boolean getFinished(){\n return finished;\n }" ]
[ "0.63429254", "0.62294275", "0.61169076", "0.6074601", "0.588622", "0.5616148", "0.5599295", "0.5583915", "0.55730563", "0.5550403", "0.5549523", "0.55418015", "0.5538875", "0.5518525", "0.55061406", "0.5499897", "0.54909116", "0.547228", "0.5463771", "0.544499", "0.5441035", "0.5434952", "0.5352473", "0.53321105", "0.5317212", "0.5281983", "0.52204514", "0.5130103", "0.51236373", "0.51130503", "0.5112259", "0.5111361", "0.51015943", "0.50387704", "0.5038305", "0.50317454", "0.5018497", "0.50107324", "0.49937633", "0.4993247", "0.4983446", "0.49661937", "0.49621516", "0.49579248", "0.49515742", "0.4944393", "0.49380362", "0.49347466", "0.4916758", "0.48924246", "0.48814607", "0.48680812", "0.48678046", "0.486684", "0.48666263", "0.4863119", "0.4863119", "0.4863119", "0.4863119", "0.4863119", "0.4863119", "0.48508182", "0.48427984", "0.48354068", "0.48332277", "0.48304227", "0.4826256", "0.4822573", "0.4820799", "0.48113227", "0.47979528", "0.47808677", "0.47710285", "0.476417", "0.47565094", "0.47553492", "0.47547144", "0.4753984", "0.47513062", "0.4742023", "0.47337478", "0.47318184", "0.47253218", "0.47238177", "0.47212827", "0.47197774", "0.47076762", "0.47013596", "0.47009134", "0.46939746", "0.46867752", "0.46720776", "0.46707207", "0.4668239", "0.46676645", "0.46643564", "0.46593034", "0.46577692", "0.46564126", "0.46550745" ]
0.49439368
46
Returns the parades that have FinalMode = false
public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) { Collection<Parade> result; result = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "boolean getParlay();", "boolean isSetParlay();", "public boolean isFinal()\n {\n ensureLoaded();\n return m_flags.isFinal();\n }", "boolean getProbables();", "public static boolean isSetParamFinal()\n {\n read_if_needed_();\n \n return _is_set_param_final;\n }", "public Map<String, List<ExprNodeDesc>> getNonFinalCandidates() {\n return nonFinalPreds;\n }", "@Override\n\tpublic boolean getIsFinal() {\n\t\treturn _esfTournament.getIsFinal();\n\t}", "public boolean getFinalProne() {\n if (getLastStep() != null) {\n return getLastStep().isProne();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().isProne();\n }", "@Query(\"select r from Record r where r.finalMode = true\")\r\n\tpublic Collection<Record> findRecordsFinalModeTrue();", "public boolean isFinal() {\n\t\treturn false;\n\t}", "public boolean getFinalClimbMode() {\n if (getLastStep() != null) {\n return getLastStep().climbMode();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().climbMode();\n }", "public static boolean isGetFinal()\n {\n read_if_needed_();\n \n return _is_get_final;\n }", "public boolean isFinal() {\r\n\t\treturn isFinal;\r\n\t}", "public boolean isFinal()\n {\n return (position==0);\n }", "@Override\n\tpublic boolean isIsFinal() {\n\t\treturn _esfTournament.isIsFinal();\n\t}", "java.util.Optional<Boolean> getSeparate();", "public boolean isFinalState() {\n return finalState[currentState.getValue()];\n }", "public boolean isFinal() {\n\t\treturn isFinal;\n\t}", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "public static boolean isSetFinal()\n {\n read_if_needed_();\n \n return _is_set_final;\n }", "public static boolean getShowOnlyActiveAlgorithms() {\n\n return m_bShowOnlyActiveAlgorithms;\n\n }", "@Basic\n\t@Raw\n\tpublic boolean isFinalized() {\n\t\treturn this.finalized;\n\t}", "public boolean getPrimHasRun(){\n return primHasRun;\n }", "public boolean getShowParticles()\r\n/* 90: */ {\r\n/* 91: 91 */ return this.showParticles;\r\n/* 92: */ }", "public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isParallel() {\n\t\treturn parallel;\n\t}", "public boolean tengoPropiedades(){\n return this.propiedades.size() > 0;\n }", "public boolean pobjeda() {\r\n\t\treturn !igrajPoslijePobjede && pobjeda;\t\r\n\t}", "boolean isFinal();", "public boolean isFinalRowCount() {\r\n return isFinalRowCount;\r\n }", "public Boolean proactiveDetection() {\n return this.proactiveDetection;\n }", "public boolean hasPendencias() {\n\n for (Atividade atividade : associacao.getAtividades()) {\n if (atividade != null) {\n if (atividade.contaItensPendentes() > 0) {\n return true;\n }\n }\n }\n return false;\n }", "protected boolean isFinalised() {\n return finalised;\n }", "public boolean hasPhi() {\n return fieldSetFlags()[2];\n }", "public int getActivePens(){\n return this.mFarm.getActivePens();\n }", "public HashSet<Proyecto> getProyectosSolicitandoFinanciacion(){\r\n\t\t\r\n\t\tif(!this.modoAdmin) return null;\r\n\t\tHashSet<Proyecto> listado = new HashSet<Proyecto>();\r\n\t\tfor(Proyecto p: this.proyectos) {\r\n\t\t\tif(p.getEstadoProyecto() == EstadoProyecto.PENDIENTEFINANCIACION) {\r\n\t\t\t\tlistado.add(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return (HashSet<Proyecto>) Collections.unmodifiableSet(listado);\r\n\t\t//posteriormente hay que modificarlos, controlar la llamada a la fucnion\r\n\t\treturn listado;\r\n\t}", "public boolean percolates() {\n return percolates;\n }", "boolean isSetProbables();", "public boolean getParallelize() {\n return this.m_Parallelize;\n }", "public List<Set<String>> getOptionalAssetsComplete(Player p){\n \n return null;\n }", "boolean isParallel();", "public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }", "public boolean isExecuting(){\n return !pausing;\n }", "boolean isPostive();", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }", "public boolean isFinal() {\n\t\tif (targetTaskId.charAt(0) == '$') {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean getSplitInProgressTasks()\r\n {\r\n return (m_splitInProgressTasks);\r\n }", "public Collection<Parade> findPublishedParade() {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findPublishedParade();\n\n\t\treturn result;\n\t}", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "public Map<String, List<ExprNodeDesc>> getFinalCandidates() {\n return pushdownPreds;\n }", "boolean allFacesPainted() {\n\n\n for (int i = 0; i < s; i ++){\n if (the_cube[i] == false){\n return false;\n\n }\n }\n return true;\n }", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }", "public boolean isFinalizado() {\r\n return finalizado;\r\n }", "io.dstore.values.BooleanValueOrBuilder getOnlyProceduresInAnyValuesOrBuilder();", "@Override\n boolean isFinal() {\n return false;\n }", "protected boolean isFinished() {\n\t\tif(switchSide) {\n\t\t\treturn !launchCubeSwitch.isRunning() && state == 4;\n\t\t}\n\t\telse if(scaleSide) {\n\t\t\treturn !launchCubeScale.isRunning() && state == 4;\n\t\t}\n\t\telse {\n\t\t\treturn !crossLine.isRunning() && timer.get() > 1;\n\t\t}\n\t}", "boolean getOnlyProceduresInAnyValuesNull();", "protected Projector getBestVerticalProjector() {\n return _bvp;\n }", "public boolean isFinished() {\n Figure[] figures = this.getFigures();\n for (Figure figure : figures) {\n if (this.map.isFigureInHome(figure) == -1) {\n return false;\n }\n }\n\n return true;\n }", "public boolean percolates() {\n return false;\n }", "public boolean isParked() {\r\n\t\tif (vehicleState == \"parked\") {\r\n\t\t\twasParked = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean[] getSelectedComponentsFilter() {\r\n return PCCTRL.selectedComponentsFilter;\r\n }", "@Override\n public boolean isFinal() {\n return true;\n }", "public boolean isProcessing (){\n\t\treturn this._processing>0;\n\t}", "public Collection<Position> findPositionsFinalModeNotCancelledNotDeadline() {\n\t\tCollection<Position> result;\n\n\t\tresult = this.positionRepository.findPositionsFinalModeNotCancelledNotDeadline();\n\t\tAssert.notNull(result);\n\n\t\treturn result;\n\t}", "public boolean isPorDescuento();", "boolean hasProduces();", "public boolean isTransientParmeters() {\r\n\t\treturn transientParmeters;\r\n\t}", "public boolean isInPitfall() {\n return isInPitfall;\n }", "boolean getPausePreviewPref();", "private boolean[] markAllComposites(int initial) {\n boolean[] primes = new boolean[initial + 1];\n //Mark all indexes as true initially\n Arrays.fill(primes, true);\n\n //Start marking the array indexes as false if divisible by the number in iteration, starting from 2\n IntStream.rangeClosed(2, (int) Math.sqrt(initial))\n .filter(num -> primes[num])\n .forEach(num -> {\n //Mark multiples of num as false as this number will be composite.\n //i.e. all the multiples of 2, 3, 4 and so on in the iteration will be marked false if not already marked\n //All the indexes which are not marked at the end of loop will be primes\n for (int i = num * 2; i <= initial; i += num) {\n primes[i] = false;\n }\n });\n return primes;\n }", "public boolean isFinalized() {\n\t\tif (this.owner_ != null)\n\t\t\treturn this.owner_.isFinalized();\n\t\treturn false;\n\t}", "public boolean[] isPrimovec(int[] vector)\r\n\t{\t\r\n\t\tboolean[] boolPrimos=new boolean[vector.length];\r\n\t\t\r\n\t\t//Inicializacion del vector\r\n\t\tfor(int i=0;i<vector.length;i++)\r\n\t\t{\r\n\t\t\tboolPrimos[i]=true;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<vector.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=2;j<vector[i];j++)\r\n\t\t\t{\r\n\t\t\t\tif(vector[i]%j==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolPrimos[i]=false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn boolPrimos;\r\n\t}", "public boolean getPcr() {\n return pcr;\n }", "io.dstore.values.BooleanValue getOnlyProceduresInAnyValues();", "public boolean getIsCompletingGame()\r\n {\r\n return this.isCompletingGame; \r\n }", "boolean hasOutputParams();", "public boolean isSolved(){ return getRemainingValues() == 0; }", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "public static boolean[] getPrimes(int max) {\r\n\t\t//declare array \r\n\t\tboolean[] result = new boolean[max + 1];\r\n\t\t//initialize the array all but elements at index 0 and 1\r\n\t\tfor(int i = 2; i < result.length; i++)\r\n\t\t\tresult[i] = true;\r\n\t\t\t\r\n\t\tfinal double LIMIT = Math.sqrt(max);\r\n\t\t//loop till the sqrt\r\n\t\tfor(int i = 2; i <= LIMIT; i++) {\r\n\t\t\t//if index is true i.e. thinking its a prime and then u find factors then make it false.\r\n\t\t\tif(result[i]) {\r\n\t\t\t\t// cross out all multiples;\r\n\t\t\t\tint index = 2 * i;\r\n\t\t\t\twhile(index < result.length){\r\n\t\t\t\t\tresult[index] = false;\r\n\t\t\t\t\t index += i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public boolean percolates() {\n return this.isPercolated;\n }", "public boolean areParallel() {\n if (areParallel == null) {\n throw new UndefinedSubspace(\"It was not possible to establish the parallelism, probably because a parameter segment had zero length.\");\n }\n return areParallel;\n }", "public boolean isLastPhase ()\n {\n return true;\n }", "public void setFinal(boolean isFinal) {\r\n\t\tthis.isFinal = isFinal;\r\n\t}", "public boolean isEnCoursPreparation() {\n\t\treturn getStatut().equals(StatusBonPreparation.EN_COURS_PREPARATION);\n\t}", "public String getPartProbationFlag() {\n return (String)getAttributeInternal(PARTPROBATIONFLAG);\n }", "public boolean hayParadasCercanas(Coordenada coordenadaDeBusqueda) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "public boolean isNonLivrer() {\n\t\treturn getStatut().equals(StatusBonPreparation.NON_LIVRER);\n\t}", "public boolean active() //ignores them. yeahhhhhh\r\n\t{\r\n\t\treturn super.getPhase();\r\n\t}", "private static /* synthetic */ boolean[] m37850a() {\n boolean[] zArr = f35344a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(-3026766588269170283L, \"com/mopub/mobileads/native_video/R$style\", 1);\n f35344a = probes;\n return probes;\n }" ]
[ "0.6261095", "0.62129986", "0.6161421", "0.5976646", "0.5803052", "0.5686576", "0.5640843", "0.5574584", "0.55108184", "0.54829746", "0.54700875", "0.54632", "0.54198736", "0.5413501", "0.5382319", "0.5374522", "0.5369371", "0.53684705", "0.53626513", "0.53399783", "0.53278714", "0.53067255", "0.5295617", "0.5272434", "0.52460665", "0.5242431", "0.52222246", "0.51720005", "0.51689637", "0.51571596", "0.5132371", "0.5120142", "0.51059073", "0.5101529", "0.5099606", "0.5073922", "0.507203", "0.50674635", "0.50620806", "0.50346285", "0.5008109", "0.50063515", "0.5004683", "0.5004167", "0.49947488", "0.49834856", "0.49834543", "0.4960353", "0.49560568", "0.49490684", "0.49469763", "0.4945839", "0.49397433", "0.49391678", "0.49391678", "0.49391678", "0.49391678", "0.49391678", "0.49391678", "0.49276367", "0.49273577", "0.49169898", "0.4916247", "0.49100697", "0.49074152", "0.49060494", "0.49017182", "0.48989823", "0.4897684", "0.48828503", "0.4872694", "0.48686966", "0.48666638", "0.48649418", "0.4843856", "0.48432302", "0.4831675", "0.48287776", "0.48287594", "0.48205703", "0.48134983", "0.48078874", "0.48071903", "0.48063868", "0.4806327", "0.48019314", "0.47909635", "0.47883996", "0.47859526", "0.47771636", "0.4775817", "0.4775527", "0.47700673", "0.47651687", "0.47639522", "0.4758388", "0.4757126", "0.47549215", "0.47463438", "0.47440073", "0.47433677" ]
0.0
-1
Returns the parades whose owner is a brotherhood
public Collection<Parade> findParadeByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<String> GetWarps(IPlayer owner)\r\n\t{\r\n\t\tif (owner == null)\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=1\");\r\n\t\telse\r\n\t\t\treturn database.queryStrings(\"SELECT name FROM warpdrive_locations WHERE `public`=0 AND creator=?\", owner);\r\n\t}", "public Set<IDiogenAgent> getNeighborhood(IDiogenAgent agent) {\n Set<IDiogenAgent> neighborhood = new HashSet<IDiogenAgent>();\n // for now, only host agent can see the contained agents.\n if (agent == this.hostAgent) {\n neighborhood.addAll(this.getContainedAgents());\n } else if (agent instanceof ICartacomAgent) {\n ICartacomAgent cAgent = (ICartacomAgent) agent;\n for (IAgent target : cAgent.getAgentsSharingRelation()) {\n if (((IDiogenAgent) target).getContainingEnvironments()\n .contains(this)) {\n neighborhood.add((IDiogenAgent) target);\n }\n }\n }\n if (agent instanceof GeographicPointAgent) {\n for (ISubmicroAgent target : ((GeographicPointAgent) agent)\n .getSubmicroAgents()) {\n if (target.getContainingEnvironments().contains(this)) {\n neighborhood.add(target);\n }\n }\n }\n\n return neighborhood;\n\n }", "@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }", "public Iterable<Boat> boatsOwnedByMember(){ return this.boats; }", "public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public String getNeighbourhood() {\n return neighbourhood;\n }", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "public Collection findOwnerPresentations(Agent owner, String toolId, String showHidden);", "public ArrayList<Cell> findPlacesToGiveBirth() {\r\n\r\n // Randomly choose the number of babies.\r\n int numOfBabyToBeBorn = new Random().nextInt(this.numOfBaby()) + 1;\r\n\r\n ArrayList<Cell> newEmpty = this.getNeighbours(1);\r\n Collections.shuffle(newEmpty);\r\n\r\n ArrayList<Cell> placeToBeBorn = new ArrayList<Cell>();\r\n\r\n int countEmptyCell = 0;\r\n\r\n for (int findEmpt = 0; findEmpt < newEmpty.size()\r\n && countEmptyCell < numOfBabyToBeBorn; findEmpt++, countEmptyCell++) {\r\n if (newEmpty.get(findEmpt).getInhabit() == null \r\n && isTerrainAccessiable(newEmpty.get(findEmpt))) {\r\n placeToBeBorn.add(newEmpty.get(findEmpt));\r\n }\r\n }\r\n return placeToBeBorn;\r\n }", "public ArrayList<ArrayList<Pokemon>> getlistOfNeighborhoods()\n\t{\n\t\treturn ((ArrayList<ArrayList<Pokemon>>)(listOfNeighborhoods.clone()));\n\t}", "public static List<IPokemob> getPokemobs(final LivingEntity owner, final double distance)\r\n {\r\n final List<IPokemob> ret = new ArrayList<>();\r\n\r\n for (final Entity e : PokemobTracker.getMobs(owner, e -> !(e instanceof EntityPokecubeBase)))\r\n {\r\n final IPokemob mob = PokemobCaps.getPokemobFor(e);\r\n if (mob != null) ret.add(mob);\r\n }\r\n return ret;\r\n }", "public static ArrayList<Neighbourhood> generateNeighbourhoods() {\n People p1 = new People(\"Peter\", \"Smith\");\n People p2 = new People(\"Anna\", \"Hunter\");\n ArrayList<People> people = new ArrayList<People>();\n people.add(p1); people.add(p2);\n\n Post post1 = new Post(p1,\"Babysitter needed\",\"Hi we need a Babysitter for next Friday. Please send me a private message if you are interested. Pay is 5 pound per hour\");\n Post post2 = new Post(p1,\"Car for sale\");\n Post post3 = new Post(p2,\"Looking for plumber\");\n Post post4 = new Post(p2,\"Free beer\");\n\n ArrayList<Post> posts = new ArrayList<Post>();\n posts.add(post1);posts.add(post2);posts.add(post3);posts.add(post4);\n\n\n Neighbourhood n1 = new Neighbourhood(\"Partick\");\n n1.setPosts(posts);\n n1.setMembers(people);\n Neighbourhood n2 = new Neighbourhood(\"West End\");\n n2.setPosts(posts);\n n2.setMembers(people);\n ArrayList<Neighbourhood> neighbourhoods = new ArrayList<Neighbourhood>();\n neighbourhoods.add(n1);\n neighbourhoods.add(n2);\n return neighbourhoods;\n }", "public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "List<BirdIdProjection> fetchAllVisibleBirds();", "public boolean getHonorsVisibility() {\n return honorsVisibility;\n }", "public Neighborhood()\n\t{\n\t\tlistOfNeighborhoods = new ArrayList<ArrayList<Pokemon>>(numberOfNeighborhoods);\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\tlistOfNeighborhoods.add(i, new ArrayList<Pokemon>());\n\t\t}\n\t}", "public String getBorough() {\n return borough;\n }", "public Brochure getBrochure()\n\t{\n\t\treturn brochure;\n\t}", "@Override\n public List<Obstacle> neighboursNearby(AbstractVehicle source, float radius) {\n List<Obstacle> neighbours = new ArrayList<Obstacle>();\n float r2 = radius * radius;\n Node n = source.flock != null ? source.flock : friendNode;\n for (Spatial s : n.getChildren())\n if (s instanceof Vehicle && !s.equals(source)) {\n Vehicle v = (Vehicle) s;\n float d = source.getWorldTranslation().subtract(v.getWorldTranslation()).lengthSquared();\n if (d < r2) // if it is within the radius\n if (source.flock != null && source.flock.has(v))\n neighbours.add(v.toObstacle());\n else if (source.flock == null)\n neighbours.add(v.toObstacle());\n }\n return neighbours;\n }", "@Override\n public List<Obstacle> getObstacals() {\n List<Obstacle> obstacles = new ArrayList<Obstacle>();\n for (Spatial s : obstacleNode.getChildren()) {\n if (s instanceof Vehicle) {\n Vehicle v = (Vehicle) s;\n obstacles.add(v.toObstacle());\n }\n }\n return obstacles;\n }", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "Participant getOwner();", "public boolean isBroly() {\n\t\treturn Broly;\n\t}", "public boolean isInNeighborhood(Person person) {\r\n\t\tfor (Family temp : families) {\r\n\t\t\tif (temp.isInFamily(person))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public List<OwnedWarp> getWarps(String player) {\n return warps.get(player);\n }", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public List<LPGActionGraph> makeNeighborhood(LPGInconsistency inconsistency) {\n\t\t\n\t\tList<LPGActionGraph> neighborhood; \n\t\tif (inconsistency instanceof UnsupportedPrecondition) {\n\t\t\tneighborhood = handleUnsupportedPrecondition((UnsupportedPrecondition)inconsistency);\n\t\t\t\n\t\t}\n\t\telse if (inconsistency instanceof MutexRelation)\n\t\t\tneighborhood = handleMutexRelation((MutexRelation) inconsistency, inconsistency.getCurrentLevel());\n\t\t\n\t\telse {\n\t\t\tneighborhood = null;\n\t\t}\n\t\t\n\t\treturn neighborhood;\n\t}", "static void neighborhood()\r\n { \r\n // Puts the earth in a world and the three different color turtles in that world\r\n earth = new World();\r\n turtle1 = new Turtle(earth);\r\n turtle1.setColor(Color.BLUE);\r\n turtle2 = new Turtle(earth);\r\n turtle2.setColor(Color.RED);\r\n turtle3 = new Turtle(earth);\r\n turtle3.setColor(Color.GREEN);\r\n house(100, 100, turtle1);\r\n house(250, 100, turtle2);\r\n house(400, 100, turtle3);\r\n\r\n }", "boolean hasPokers();", "boolean hasPokers();", "public List<Robot> getRobotsAlive() {\r\n\t\tList<Robot> listOfAlive = new ArrayList<Robot>();\r\n\r\n\t\tfor(int x = 0; x < 3; ++x) {\r\n\t\t\tif (robots.get(x).isAlive()) {\r\n\t\t\t\tlistOfAlive.add(robots.get(x));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listOfAlive;\r\n\t}", "public ArrayList<Pokemon> getOwnedPokemon() {\r\n\t\treturn ownedPokemon;\r\n\t}", "public boolean isGameObjectInNeighbourhood(GameObject gO) {\n return Math.abs(this.getGridCoordinates().x - gO.getGridCoordinates().x) == 0 && Math.abs(this.getGridCoordinates().y - gO.getGridCoordinates().y) == 1 ||\n Math.abs(this.getGridCoordinates().x - gO.getGridCoordinates().x) == 1 && Math.abs(this.getGridCoordinates().y - gO.getGridCoordinates().y) == 0;\n }", "public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);", "Collection<? extends Object> getHasAlcoholBloodContent();", "public ArrayList<ObjectInMap> getVisibleObjects() {\n //To ensure Obstacles will be drawn at last\n objectsInMap.sort((o1, o2) -> {\n if (o1 instanceof Bush)\n return 1;\n else if (o2 instanceof Bush)\n return -1;\n else if (o1 instanceof Obstacle)\n return -1;\n else if (o2 instanceof Obstacle)\n return 1;\n else\n return 0;\n });\n\n Polygon visible = new Polygon(new int[]{viewPoint.x, ((int) (viewPoint.x + zoom * GAME_WIDTH)), ((int) (viewPoint.x + zoom * GAME_WIDTH)), viewPoint.x}\n , new int[]{viewPoint.y, viewPoint.y, ((int) (viewPoint.y + zoom * GAME_HEIGHT)), ((int) (viewPoint.y + zoom * GAME_HEIGHT))}, 4);\n\n return objectsInMap.stream().filter(o -> o.intersects(visible)).collect(Collectors.toCollection(ArrayList::new));\n }", "public List<ParameterConfiguration> getNeighbourhood(ParameterConfiguration config) {\n\t\tSet<OrNode> assigned_or_nodes = new HashSet<OrNode>();\n\t\tSet<AndNode> assigned_and_nodes = new HashSet<AndNode>();\n\t\tfor (Parameter p: config.getParameter_instances().keySet()) {\n \t\tfor (AndNode n: getAndNodes()) {\n \t\t\tif (n == startNode) continue;\n \t\t\tif (n.getParameter().equals(p) && n.getDomain().contains(config.getParameterValue(p))) {\n \t\t\t\tassigned_or_nodes.add(preceedingNode(n));\n \t\t\t\tassigned_and_nodes.add(n);\n \t\t\t}\n \t\t}\n\t\t}\n\t\t\n\t\tList<ParameterConfiguration> nbh = new LinkedList<ParameterConfiguration>();\n\t\tfor (AndNode node: assigned_and_nodes) {\n\t\t\tfor (Object value: preceedingNode(node).getParameter().getDomain().getDiscreteValues()) {\n\t\t\t\tif (node.getDomain().contains(value)) { // same subdomain, different value\n\t\t\t\t\tif (valuesEqual(value, config.getParameterValue(node.getParameter()))) continue;\n\t\t\t\t\tParameterConfiguration neighbour = new ParameterConfiguration(config);\n\t\t\t\t\tneighbour.setParameterValue(node.getParameter(), value);\n\t\t\t\t\tneighbour.updateChecksum();\n\t\t\t\t\tnbh.add(neighbour);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn nbh;\n\t}", "java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> \n getNeighborList();", "private static List<HantoCoordinate> getPerimeterSpaces(Board b) {\n\n\t\tList<HantoCoordinate> perimeter = new ArrayList<HantoCoordinate>();\n\t\tList<HantoCoordinate> toVisit = b.getAllOccupiedCoordinates();\n\n\t\tfor(HantoCoordinate current : toVisit){\n\n\t\t\tfor(HantoCoordinate neighbor : HantoUtil.getAllNeighbors(current)){\n\n\t\t\t\tif(!toVisit.contains(neighbor) && !perimeter.contains(neighbor)){\n\t\t\t\t\tperimeter.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn perimeter;\n\t}", "public ObraSocial getObraSocial() {\r\n\t\treturn obraSocial;\r\n\t}", "public ArrayList<SearchNode> neighbors() {\n ArrayList<SearchNode> neighbors = new ArrayList<SearchNode>();\n // StdOut.println(\"before: \" + this.snBoard);\n Iterable<Board> boards = new ArrayList<Board>();\n boards = this.snBoard.neighbors();\n // StdOut.println(\"after: \" + this.snBoard);\n for (Board b: boards) {\n // StdOut.println(b);\n // StdOut.println(\"checking: \"+b);\n // StdOut.println(\"checking father: \"+this.getPredecessor());\n if (this.getPredecessor() == null) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // sn.addMovesToPriority(this.priority - this.snBoard.hamming()+1);\n neighbors.add(sn);\n } else { \n if (!b.equals(this.getPredecessor().snBoard)) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n neighbors.add(sn);\n }\n }\n \n }\n return neighbors;\n }", "public static BookFilter getBibles()\n {\n if (commentariesWithBibles)\n {\n return either(new BookCategoryFilter(BookCategory.BIBLE), new BookCategoryFilter(BookCategory.COMMENTARY));\n }\n return new BookCategoryFilter(BookCategory.BIBLE);\n }", "private ArrayList<Point> getNeighbors(Point p) {\n\t\tArrayList<Point> arr = new ArrayList<Point>();\n\t\tfor (int y = -1; y <= 1; y++) {\n\t\t\tfor (int x = -1; x <= 1; x++) {\n\t\t\t\tPoint npoint = new Point( p.x + x, p.y + y);\n\t\t\t\tint sind = spacesContains(npoint);\n\t\t\t\tif ( p.compareTo(npoint) != 0 && sind >= 0 ) { \n\t\t\t\t\tarr.add( spaces.get(sind) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "List<MobilePhone> getMobilePhonesFromOwner(Owner owner);", "public static List<Parcel> getLessOrMoreBambooParcel(List<Parcel> parcels, GardenerGoal goal, boolean isMore, Board board) {\n List<Parcel> parcelsFound = new ArrayList<>();\n\n for (Parcel parcel : parcels) {\n if (BoardUtils.isParcelIrrigated(board, parcel) && parcel.getColor() == goal.getColor() && (goal.getFacility() == Facility.WHATEVER_FACILITY || parcel.getFacility() == goal.getFacility())) {\n if (isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() > goal.getSize() + 1) {\n parcelsFound.add(parcel);\n } else if (!isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() < goal.getSize() - 1) {\n parcelsFound.add(parcel);\n }\n }\n }\n return parcelsFound;\n }", "public int getBrojParcele() {\n return brojParcele;\n }", "public boolean percolates(){\n\t\treturn unionFind.connected(virtualBottom, virtualTop);\n\t}", "public void setNeighborhoodBest()\n\t{\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\tif (listOfNeighborhoods.get(i).isEmpty())\n\t\t\t{\n\t\t\t\tneighborhoodBestArray[i] = null;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tPokemon neighborhoodBest = listOfNeighborhoods.get(i).get(0);\n\n\t\t\t\tfor (int j=1; j<listOfNeighborhoods.get(i).size(); j++)\n\t\t\t\t{\n\t\t\t\t\tPokemon p = listOfNeighborhoods.get(i).get(j);\n\n\t\t\t\t\tif (p.getPersonalBest()>neighborhoodBest.getPersonalBest())\n\t\t\t\t\t{\n\t\t\t\t\t\tneighborhoodBest = p;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighborhoodBestArray[i] = neighborhoodBest;\n\t\t\t}\n\t\t}\n\t}", "private GObject getCollidingObject(GOval ball) {\n GObject result = null;\n GPoint[] borderPoints = createArrayOfBallBorders(ball);\n for (GPoint someBorderPoint : borderPoints) {\n result = getElementAt(someBorderPoint);\n if (result != null){\n break;\n }\n }\n return result;\n }", "public TombolaDrawing getTombolaWinnerList(TombolaWinnerListRequest request) {\n TombolaDrawing tombolaDrawing = tombolaAerospikeDao.getTombolaDrawing(request.getTombolaId());\n if (tombolaDrawing == null) {\n throw new F4MEntryNotFoundException(\"Specified Tombola does not exist\");\n }\n\n // get the tombola so we can perform the sorting :\n Tombola tombola = this.getTombola(request.getTombolaId());\n List<TombolaWinner> winnersSortedByPublishedPrizeList = new ArrayList<>();\n\n // reorder the winners by the order in which the prizes are published on tombola\n for(Prize prize : tombola.getPrizes()) {\n for(TombolaWinner winner : tombolaDrawing.getWinners()) {\n if(winner.getPrizeId().equals(prize.getId())) {\n winnersSortedByPublishedPrizeList.add(winner);\n }\n }\n }\n\n for(TombolaWinner winner : tombolaDrawing.getWinners()) {\n if(winner.getPrizeId().equals(tombola.getConsolationPrize().getId())) {\n winnersSortedByPublishedPrizeList.add(winner);\n }\n }\n\n tombolaDrawing.setWinners(winnersSortedByPublishedPrizeList);\n return tombolaDrawing;\n }", "private ArrayList<Chromosome> selectParentsRoulette() {\n ArrayList<Chromosome> parents = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n double sumGH = 0.0; // sums GH for all chromosomes in this pop\n Random randgen = new Random(); // random number generator\n for (Chromosome chromo : this.chromosomes) {\n sumGH += chromo.getTotalGH();\n }\n for (int i = 0; i < Defines.crossoverParentCt; i++) {\n double parentRandomizer = randgen.nextDouble() * sumGH; // get random #\n double aggGH = 0.0; // aggregate the GH until we reach our random #\n int chromoIdx = 0; // identifies the chromosome in the pop\n Chromosome parentCandidate;\n do {\n parentCandidate = this.chromosomes.get(chromoIdx++);\n aggGH += parentCandidate.getTotalGH();\n } while (aggGH < parentRandomizer);\n parents.add(parentCandidate);\n }\n return parents;\n }", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "List<WayBill> getWayBillVisited();", "public Contains behindDoor(int i) {\n\n return doors.get(i).getContains();\n }", "public int[] getHeroOwners() {\n\t\t\treturn heroOwners;\n\t\t}", "@Test\n\tpublic void testNeighborhoodNoMax() {\n\t\tresetTestVars();\n\t\tsetUpNeighborhoodVars();\t//makes a few links between the users\n\t\t\n\t\ttry {\n\t\t\tsn.neighborhood(null, null, null);\n\t\t} catch (NullPointerException np) {\n\t\t\tSystem.out.println(\"EXPECTED (5/): Null arguments passed\");\n\t\t}\n\t\t\n\t\tList<Friend> friends = usersToFriendArray();\n\t\tFriend friend4 = new Friend();\n\t\tfriend4.set(user4, 1);\n\t\tfriends.add(friend4);\n\t\t\n\t\tSet<Friend> nbh = sn.neighborhood(\"1\", mid, SocialNetworkStatus.DEFAULT);\n\t\t\n\t\tassertTrue(\"All users reached through direct/indirect links\", nbh.contains(friends.get(0)));\n\t\tassertTrue(\"All users reached through direct/indirect links\", nbh.contains(friends.get(1)));\n\t\tassertTrue(\"All users reached through direct/indirect links\", nbh.contains(friends.get(2)));\n\t\t\n\t\ttry {\n\t\t\tsn.tearDownLink(\"2\", \"4\", late, SocialNetworkStatus.DEFAULT);\n\t\t\tsn.tearDownLink(\"4\", \"3\", late, SocialNetworkStatus.DEFAULT);\n\t\t\tsn.tearDownLink(\"2\", \"3\", late, SocialNetworkStatus.DEFAULT);\n\t\t} catch (UninitializedObjectException uo) {\n\t\t\tSystem.out.println(\"UNEXPECTED: users should be valid\");\n\t\t}\n\t\t\n\t\tnbh = sn.neighborhood(\"1\", late, SocialNetworkStatus.DEFAULT);\n\t\tassertTrue(\"Less friends when other links are torn down\", nbh.contains(friends.get(0)));\n\t\tassertFalse(\"Less friends when other links are torn down\", nbh.contains(friends.get(1)));\n\t\tassertFalse(\"Less friends when other links are torn down\", nbh.contains(friends.get(2)));\n\t}", "Person determinePartner(Person acceptor) {\r\n if (acceptor.partner == null) {\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n\r\n for (Person p : acceptor.preferences) {\r\n if (p.equals(acceptor.partner)) {\r\n return null;\r\n }\r\n if (p.equals(this)) {\r\n ex = acceptor.partner.name;\r\n acceptor.partner.partner = null;\r\n acceptor.partner = this;\r\n return acceptor;\r\n }\r\n }\r\n return null;\r\n }", "protected Projector getBestHorizontalProjector() {\n return _bhp;\n }", "List<Topo> getToposDispo(String user);", "protected static List<Critter> getBabies() {\r\n \t ArrayList<Critter> critterList = new ArrayList<Critter>();\r\n //iterator through the keys in the babies hash map\r\n Iterator<String> populationIterator = babies.keySet().iterator();\r\n while(populationIterator.hasNext()) {\r\n \tString coord = populationIterator.next();\r\n \t//iterator through the critter babies in a key in a hash map\r\n \tIterator<Critter> positionIterator = babies.get(coord).iterator();\r\n \twhile(positionIterator.hasNext()) {\r\n \t\tCritter critt = positionIterator.next();\r\n \t\t//add the babies to the critter population\r\n \t\tcritterList.add(critt);\r\n \t}\r\n }\r\n \r\n return critterList;\r\n }", "private ArrayList<Chromosome> selectParentsTournament() {\n ArrayList<Chromosome> parents = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n ArrayList<Chromosome> matingPool = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n\n // Run tournaments to select parents - for each parent\n for (int parentIdx = 0; parentIdx < Defines.crossoverParentCt; parentIdx++) {\n\n // Run tournaments - get random contestants (run.getPaTournamentSize())\n for (int tournIdx = 0; tournIdx < Defines.tournamentSize; tournIdx++) {\n int contestantID = Defines.randNum(0, this.chromosomes.size() - 1);\n matingPool.add(this.chromosomes.get(contestantID));\n }\n Collections.sort(matingPool);\n parents.add(matingPool.get(0));\n }\n\n return parents;\n }", "public List<Pharmacie> recherchePharmacieBatiment(int numeroBatiment){\n\t\treturn em.createQuery(\"from Pharmacie p WHERE p.batiment.numero = \"+numeroBatiment).getResultList();\n\t}", "private GoLNeighborhood getNeighborhood(int x, int y) {\n\n \tGoLCell[][] tempArray = new GoLCell[3][3];\n\n \ttempArray[0][0] = ((x>0)&&(y>0))?myGoLCell[x-1][y-1]:(new GoLCell(false));\n \ttempArray[1][0] = (y>0)?myGoLCell[x][y-1]:(new GoLCell(false));\n \ttempArray[2][0] = ((x<19)&&(y>0))?myGoLCell[x+1][y-1]:(new GoLCell(false));\n \ttempArray[0][1] = ((x>0))?myGoLCell[x-1][y]:(new GoLCell(false));\n \ttempArray[1][1] = myGoLCell[x][y];\n \ttempArray[2][1] = ((x<19))?myGoLCell[x+1][y]:(new GoLCell(false));\n \ttempArray[0][2] = ((x>0)&&(y<19))?myGoLCell[x-1][y+1]:(new GoLCell(false));\n \ttempArray[1][2] = (y<19)?myGoLCell[x][y+1]:(new GoLCell(false));\n \ttempArray[2][2] = ((x<19)&&(y<19))?myGoLCell[x+1][y+1]:(new GoLCell(false));\n\n \treturn new GoLNeighborhood(tempArray);\n\n }", "public List<MLocoBoggie> getboogie() {\n\t\t\t\tList<MLocoBoggie> getboogies = new ArrayList<>();\n\t\t\t\tobj_boogierepo.findAll()\n\t\t\t\t.forEach(getboogies::add);\n\n\t\t\t\treturn getboogies;\t\t\t\t\n\t\t\t\t\t\t}", "private List<Point> neighboursFiltering(List<Point> points) {\n Point nearest = points.get(0);\n HeartDistance calculator = new HeartDistance();\n return points.stream().filter(p -> calculator.calculate(p,nearest) < NEIGHBOURS_THRESHOLD).collect(Collectors.toList());\n }", "java.util.List<com.orange.network.game.protocol.model.ZhaJinHuaProtos.PBPoker> \n getPokersList();", "public boolean isHouse() {\n return (this.getId() == Player.PLAYER_1.getHouseIndex())\n || (this.getId() == Player.PLAYER_2.getHouseIndex());\n }", "public Agent getOwner(){\n return owner;\n }", "public ArrayList<Hole> availableMoves(Side turnSide){\n ArrayList<Hole> holesOwned = new ArrayList<>();\n for(Hole h : holes){\n if(h.getOwner() == turnSide && h.getNumberOfKoorgools() != 0){\n holesOwned.add(h);\n }\n }\n return holesOwned;\n }", "public Map<Integer, Lobby> getLobbys()\r\n\t{\r\n\t\treturn getInstanceMap(\"lobbys\", new HashMap<Integer, Lobby>());\r\n\t}", "List<IShape> getVisibleShapes();", "public boolean percolates() {\n return backwashQuickUnion.connected(virtualTop, virtualBottom);\n }", "public Collection findPublicPresentations(Agent viewer, String toolId, String showHidden);", "public Building getRoof();", "public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n proComMonopolio.add(pro);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return proComMonopolio;\r\n }", "public static ArrayList<Npc> getNearbyNpcList(ClientContext ctx) {\n ArrayList npcs = new ArrayList();\n\n for (Npc n : ctx.npcs.select().viewable()) {\n npcs.add(n);\n }\n\n return new ArrayList<>(new HashSet<>(npcs));\n\n\n }", "int getBelongToPlayer();", "private ArrayList<BooleanProperty> checkSurroundings(int layoutX, int layoutY) {\n\n ArrayList<BooleanProperty> neighbors = new ArrayList<>();\n BooleanProperty[][] gameCells = controller.getGameCells();\n\n for (int i = layoutX - 1; i <= layoutX + 1; i++) {\n for (int j = layoutY - 1; j <= layoutY + 1; j++) {\n\n if (!(i == layoutX && j == layoutY)) {\n if (i < gameCells.length && i > -1 && j < gameCells[i].length && j > -1 && gameCells[i][j].get()) {\n neighbors.add(gameCells[i][j]);\n }\n }\n }\n }\n return neighbors;\n }", "public SettlementPlayer getOwner();", "public Book[] getSelectedPrayers() {\n\t\tfinal int bookSetting = isCursing() ? 1582 : 1395;\n\t\tfinal List<Book> activePrayers = new LinkedList<Book>();\n\t\tfor (Book prayer : isCursing() ? Curses.values() : Normal.values()) {\n\t\t\tif ((methods.settings.getSetting(bookSetting) & (prayer.getSettings())) == prayer.getSettings()) {\n\t\t\t\tactivePrayers.add(prayer);\n\t\t\t}\n\t\t}\n\t\treturn activePrayers.toArray(new Book[activePrayers.size()]);\n\t}", "public int[] getNeighborhoodArray()\n\t{\n\t\treturn neighborhoodArray;\n\t}", "private boolean inspect(Pinner pinner) {\n if (unfollowConfig.getUnfollowOnlyRecordedFollowings()) {\n if (pinbot3.PinBot3.dalMgr.containsObjectExternally(pinner, DALManager.TYPES.duplicates_unfollow_pinners, account)) {\n return false;\n }\n /*for (PinterestObject p : account.getDuplicates_follow()) {\n if (p instanceof Pinner && ((Pinner) p).equals(pinner)\n && (new Date()).getTime() - ((Pinner) p).getTimeFollow() <= unfollowConfig.getTimeBetweenFollowAndUnfollow()) {\n return false;\n }\n }*/\n }\n\n if (!unfollowConfig.getCriteria_Users()) {\n return true;\n }\n\n String url = \"/\" + pinner.getUsername() + \"/\";\n String referer = pinner.getBaseUsername();\n int pincount = pinner.getPinsCount();\n int followerscount = pinner.getFollowersCount();\n\n if (!(pincount >= unfollowConfig.getCriteria_UserPinsMin() && pincount <= unfollowConfig.getCriteria_UserPinsMax())) {\n return true;\n }\n if (!(followerscount >= unfollowConfig.getCriteria_UserFollowersMin() && followerscount <= unfollowConfig.getCriteria_UserFollowersMax())) {\n return true;\n }\n\n try {\n if (!Http.validUrl(base_url + url)) {\n return false;\n }\n\n String rs = MakeRequest(base_url + url, referer, Http.ACCEPT_HTML);\n if (rs == null) {\n return false;\n }\n\n Pattern pattern = Pattern.compile(\"name=\\\"pinterestapp:following\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n Matcher matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int followingcount = Integer.parseInt(matcher.group(1));\n if (!(followingcount >= unfollowConfig.getCriteria_UserFollowingMin() && followingcount <= unfollowConfig.getCriteria_UserFollowingMax())) {\n return true;\n }\n }\n\n pattern = Pattern.compile(\"name=\\\"pinterestapp:boards\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int boardcount = Integer.parseInt(matcher.group(1));\n if (!(boardcount >= unfollowConfig.getCriteria_UserBoardsMin() && boardcount <= unfollowConfig.getCriteria_UserBoardsMax())) {\n return true;\n }\n }\n return true;\n } catch (InterruptedException ex) {\n //ignore\n config.isInterrupt = true;\n return false;\n } catch (Exception ex) {\n common.ExceptionHandler.reportException(ex);\n return false;\n }\n }", "public static List<SEAreaOfConcern> filterAreaOfConcerns(SEKernel seKernel) {\n return seKernel.getOwnedElements().parallelStream()\n .filter(languageElement -> languageElement instanceof SEAreaOfConcern)\n .map(languageElement -> (SEAreaOfConcern) languageElement).collect(Collectors.toList());\n }", "@Override\r\n\tpublic List<DrankB> findCommodityByTop() {\n\t\treturn pageMapper.findCommodityByTop();\r\n\t}", "public Pokemon getAlivePokemon() {\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static boolean isBoPBiome(@Nonnull final Biome biome) {\n\t\treturn bopBiome != null && bopBiome.isInstance(biome);\n\t}", "public boolean spawnBrother(Player player, Location location) {\r\n if (player.getAttribute(\"brother:\" + index, false)) {\r\n return false;\r\n }\r\n NPC npc = new BarrowBrother(player, npcId, location);\r\n npc.init();\r\n player.setAttribute(\"barrow:npc\", npc);\r\n player.setAttribute(\"brother:\" + index, true);\r\n return true;\r\n }", "@Override\n\tpublic List<Cell> getSurroundingNeighbors(Cell cell, int vision) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tCell northCell = cell, eastCell = cell, southCell = cell, westCell = cell;\n\t\tint north, east, south, west;\n\t\tfor (int i = 1; i <= vision; i++) {\n\t\t\tnorth = getNorthCell(northCell);\n\t\t\teast = getEastCell(eastCell);\n\t\t\tsouth = getSouthCell(southCell);\n\t\t\twest = getWestCell(westCell);\n\t\t\tif (north != -1) { \n\t\t\t\tnorthCell = getCellList().get(north);\n\t\t\t\tneighbors.add(northCell); }\n\t\t\tif (east != -1) { \n\t\t\t\teastCell = getCellList().get(east);\n\t\t\t\tneighbors.add(eastCell); }\n\t\t\tif (south != -1) { \n\t\t\t\tsouthCell = getCellList().get(south);\n\t\t\t\tneighbors.add(getCellList().get(south)); }\n\t\t\tif (west != -1) { \n\t\t\t\twestCell = getCellList().get(west);\n\t\t\t\tneighbors.add(getCellList().get(west)); }\n\t\t}\n\t\treturn neighbors;\n\t}", "java.util.List<org.landxml.schema.landXML11.RoadsideDocument.Roadside> getRoadsideList();", "protected static List<Critter> getBabies() {\n\t\t\treturn babies;\n\t\t}", "protected static List<Critter> getBabies() {\n\t\t\treturn babies;\n\t\t}", "public abstract boolean isOwner (String url);", "public boolean percolates() {\n return mainUnion.connected(virtualTopId, virtualBottomId);\n }", "public Collection findSharedPresentations(Agent viewer, String toolId, String showHidden);", "public PublicKey[] getVisibilityOfParent(String sig) {\n Logger.write(\"VERBOSE\", \"DB\", \"getVisibilityOfParent(\" + sig + \")\");\n \n try {\n ResultSet postWithSig = query(DBStrings.getPost.replace(\"__SIG__\", sig));\n if (postWithSig.next()) { //sig is a post\n Logger.write(\"VERBOSE\", \"DB\", \"parent is a wall post: \" + sig);\n return getPostVisibleTo(sig);\n } else { //sig is a comment\n ResultSet commentWithSig = query(DBStrings.getComment.replace(\"__SIG__\", sig));\n if (commentWithSig.next())\n return getVisibilityOfParent(commentWithSig.getString(\"parent\"));\n else\n Logger.write(\"ERROR\", \"DB\", \"getVisibilityOfParent has no root\");\n }\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return null;\n }", "public void setBroly(boolean broly) {\n\t\tBroly = broly;\n\t}", "protected static List<Critter> getBabies() {\n return babies;\n }", "@Override\n public Hero getOwner() {\n return owner;\n }" ]
[ "0.543417", "0.53928024", "0.52867603", "0.526691", "0.5211206", "0.5188917", "0.51866215", "0.51667416", "0.5069136", "0.5039046", "0.50330794", "0.5027811", "0.5021593", "0.49143076", "0.490409", "0.48440158", "0.48218256", "0.48211983", "0.48116904", "0.47936618", "0.47758183", "0.47648105", "0.4750059", "0.47297966", "0.46994925", "0.4682793", "0.46708393", "0.46697977", "0.46609297", "0.46390316", "0.4637869", "0.4637869", "0.46202382", "0.45989418", "0.4597011", "0.45606008", "0.45511663", "0.45483607", "0.45464107", "0.4545766", "0.45333993", "0.45314357", "0.45259205", "0.4525245", "0.45220464", "0.45213512", "0.45211565", "0.45042306", "0.44942716", "0.44816586", "0.4479662", "0.44782275", "0.44780782", "0.44733942", "0.44703984", "0.44561386", "0.44552025", "0.445506", "0.443365", "0.4425551", "0.441859", "0.44086322", "0.44017616", "0.44010237", "0.4394656", "0.43931845", "0.4385544", "0.43807757", "0.43799108", "0.43786928", "0.43766078", "0.43759632", "0.43759587", "0.4369573", "0.43693408", "0.43639362", "0.43638873", "0.43575913", "0.4357434", "0.43491533", "0.43461514", "0.43452471", "0.4338706", "0.4337963", "0.43293118", "0.4329019", "0.43262348", "0.43257847", "0.43249336", "0.43233356", "0.43059123", "0.42953148", "0.42953148", "0.42952484", "0.4289692", "0.42893964", "0.4283918", "0.42825615", "0.4280666", "0.42801267" ]
0.5674559
0
Returns the parades that a brotherhood have FinalMode = true
public Collection<Parade> findParadeFinalByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeFinalByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "@Override\n\tpublic boolean getIsFinal() {\n\t\treturn _esfTournament.getIsFinal();\n\t}", "public int getActivePens(){\n return this.mFarm.getActivePens();\n }", "public boolean getFinalProne() {\n if (getLastStep() != null) {\n return getLastStep().isProne();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().isProne();\n }", "public boolean getFinalClimbMode() {\n if (getLastStep() != null) {\n return getLastStep().climbMode();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().climbMode();\n }", "protected Projector getBestVerticalProjector() {\n return _bvp;\n }", "boolean getParlay();", "boolean getProbables();", "@Override\n\tpublic boolean isIsFinal() {\n\t\treturn _esfTournament.isIsFinal();\n\t}", "public boolean percolates() {\n return percolates;\n }", "public boolean percolates() {\n return backwashQuickUnion.connected(virtualTop, virtualBottom);\n }", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "public boolean percolates() {\n return mainUnion.connected(virtualTopId, virtualBottomId);\n }", "public boolean isFinal()\n {\n ensureLoaded();\n return m_flags.isFinal();\n }", "public boolean percolates()\n {\n return uf.connected(topVirtualSite, bottomVirtualSite);\n }", "public boolean isFinalState() {\n return finalState[currentState.getValue()];\n }", "public int getBrojParcele() {\n return brojParcele;\n }", "Boolean getStandAlone();", "public boolean percolates(){\n \tif(this.gridLength == 1){\n \t\treturn isOpen(1,1);\n \t}\n \treturn (this.bottom[unionTest.find(0)]);\n }", "boolean isSetParlay();", "java.util.Optional<Boolean> getSeparate();", "public static boolean isGetFinal()\n {\n read_if_needed_();\n \n return _is_get_final;\n }", "public Boolean proactiveDetection() {\n return this.proactiveDetection;\n }", "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public boolean percolates() {\n return this.isPercolated;\n }", "public boolean percolates(){\n\t\treturn unionFind.connected(virtualBottom, virtualTop);\n\t}", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "public static boolean isSetFinal()\n {\n read_if_needed_();\n \n return _is_set_final;\n }", "public static boolean isSetParamFinal()\n {\n read_if_needed_();\n \n return _is_set_param_final;\n }", "public boolean isFinal() {\r\n\t\treturn isFinal;\r\n\t}", "public boolean percolates() {\n return myUF.connected(n*n, n*n + 1);\n }", "public boolean percolates() {\n return false;\n }", "public Map<String, List<ExprNodeDesc>> getFinalCandidates() {\n return pushdownPreds;\n }", "public boolean percolates(){\n return uf.connected(ufSize - 2, ufSize - 1);\n }", "public Boolean getWinner(){\n return spil.erSpilletVundet();\n }", "public boolean isFinal() {\n\t\treturn false;\n\t}", "boolean isPostive();", "public boolean getIsCompletingGame()\r\n {\r\n return this.isCompletingGame; \r\n }", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "public boolean isFinal() {\n\t\treturn isFinal;\n\t}", "public boolean percolates() {\n return uf.connected(n*n, n*n+1);\r\n }", "@Override\n\tpublic Boolean getsecondconveyorfree() {\n\t\treturn null;\n\t}", "public int getNumPens(){\n return this.mFarm.getNumPens();\n }", "public Map<String, List<ExprNodeDesc>> getNonFinalCandidates() {\n return nonFinalPreds;\n }", "@Basic\n\t@Raw\n\tpublic boolean isFinalized() {\n\t\treturn this.finalized;\n\t}", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "boolean isFullHouse();", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean isCameraBurstPref();", "public double getProcentasePresence() {\n return procentasePresence;\n }", "public boolean percolates() {\n if (this.n == 1) return isOpen(1, 1);\n return this.uf.connected(0, this.n * this.n + 1);\n }", "protected boolean isFinalised() {\n return finalised;\n }", "protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }", "public boolean needsNeighborhood()\r\n\t{\r\n\t\treturn m_needsNeighborhood;\t\r\n\t}", "@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }", "boolean getMortgaged();", "public boolean percolates() {\n // The system percolates if top and bottom are connected\n return UF.connected(top, bottom);\n }", "protected boolean isFinished() {\n\t\treturn Robot.gearIntake.getPegSwitch();\n\t}", "public boolean pobjeda() {\r\n\t\treturn !igrajPoslijePobjede && pobjeda;\t\r\n\t}", "public java.lang.Boolean getORPH() {\n return ORPH;\n }", "boolean isSetObjectives();", "public boolean getPrimHasRun(){\n return primHasRun;\n }", "public boolean percolates(){\r\n\t\treturn uf.connected(N * N, N * N + 1);\r\n\t}", "public boolean percolates() {\n if(numberOfOpenSites() < length) {\n return false;\n }\n if(isPercolating) return true;\n for(int i = 0; i < length; i++) {\n if( isOpen(0, i) ) {\n for(int j = 0; j < length; j++) {\n if(isOpen(length - 1, j) && percolation.connected(translate(length-1,j),translate(0,i))) {\n isPercolating = true;\n return true;\n }\n }\n }\n }\n return false;\n }", "public boolean isFinal()\n {\n return (position==0);\n }", "public boolean percolates() {\n if (wuf.connected(virtTop, virtBottom)) {\n hasPercolated = true;\n return true;\n }\n \n return false;\n }", "public boolean isFinalizado() {\r\n return finalizado;\r\n }", "public boolean isFinalRoom(){\n System.out.println(\"------------------------------------------ ->\"+((EnemyRoom) room).getType());\n return ((EnemyRoom) room).getType().equals(\"Boss\");\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "public boolean percolates() {\n return mainObject.connected(vsite1, vsite2);\n }", "public boolean winner() {\n for(int i = 0; i < Landmarks.size(); i++) {\n if (Landmarks.get(i).getConstructed() == false) {\n return false;\n }\n }\n return true;\n }", "public Boolean getBestflag() {\n return bestflag;\n }", "private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}", "public boolean getShowParticles()\r\n/* 90: */ {\r\n/* 91: 91 */ return this.showParticles;\r\n/* 92: */ }", "public Deplacement getProchainMouvement();", "public boolean allGone()\n {\n return pellets.isEmpty();\n }", "public boolean percolates() {\n return UF.isConnected(0, getSize() * getSize() + 1);\n }", "public boolean getStatus() {\n return (rnd.nextInt(obstructionChanceBound) <= obstructionChance);\n }", "public int getPodbrojParcele() {\n return podbrojParcele;\n }", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "public boolean isInPitfall() {\n return isInPitfall;\n }", "protected Projector getBestHorizontalProjector() {\n return _bhp;\n }", "boolean isConsomme();", "public boolean isFullHouse(){\n // TODO\n return false;\n }", "public boolean[] areObstaclesDetected()\n {\n return finchController.areObstaclesDetected();\n }", "public boolean isParked() {\r\n\t\tif (vehicleState == \"parked\") {\r\n\t\t\twasParked = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public Boolean getBspReconciled(){\n return bspReconciled;\n }", "public boolean get_FinalDestREPO() {\r\n return this.final_dest;\r\n }", "public boolean isFinished() {\n Figure[] figures = this.getFigures();\n for (Figure figure : figures) {\n if (this.map.isFigureInHome(figure) == -1) {\n return false;\n }\n }\n\n return true;\n }", "public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean hasPhi() {\n return fieldSetFlags()[2];\n }", "public static boolean canPrune() {\n\t\tboolean result = false;\n\t\tint projectedTotal = 0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<jobsChosen){\n\t\t\tprojectedTotal += board[i][currentCombo[i]];\n\t\t\ti++;\n\t\t}\n\t\twhile(i<numPeople){\n\t\t\tprojectedTotal += bestPossibleCombination[i];\n\t\t\ti++;\n\t\t}\n\t\tif(projectedTotal<bestTotal){//Cant be greater than current Best Total\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "protected boolean isFinished() {\n \tif (Robot.clawElevator.getContainerHeight() == 0) {\n \t\treturn Robot.clawElevator.getLowerSwitch();\n \t} else {\n \t\treturn Robot.clawElevator.getLowerSwitch() || Robot.clawElevator.isAtIntemediateStop(Math.abs(Robot.clawElevator.getContainerHeight() - 3), false);\n \t}\n }", "public boolean percolates() {\n if (openSitesCount < gridSize) {\n return false;\n }\n\n if (gridSize == 1 && openSitesCount == 1) {\n return true;\n }\n\n return wquf2.connected(virtualTopSiteIndex, virtualBottomSiteIndex);\n }" ]
[ "0.6178446", "0.599489", "0.5965913", "0.58462334", "0.56592923", "0.5601808", "0.5546473", "0.5486357", "0.5485955", "0.5435227", "0.5434151", "0.5428281", "0.53209263", "0.5235436", "0.5213845", "0.5194699", "0.5186981", "0.5150838", "0.51239115", "0.51200414", "0.51149434", "0.5069003", "0.50599676", "0.50510406", "0.5044852", "0.5040614", "0.50321436", "0.50303257", "0.50258195", "0.5008348", "0.49761868", "0.49639422", "0.4962323", "0.4954557", "0.49540776", "0.49518454", "0.49357083", "0.49297994", "0.49200475", "0.4907764", "0.49069718", "0.4903278", "0.48958075", "0.48867664", "0.4873778", "0.48647928", "0.48636666", "0.4859836", "0.48479065", "0.48402965", "0.48330098", "0.48319685", "0.4827296", "0.48247907", "0.48212382", "0.4812472", "0.48098007", "0.47977707", "0.47943753", "0.47934845", "0.47911763", "0.4789428", "0.4782115", "0.47784922", "0.476931", "0.4764572", "0.47643924", "0.47599864", "0.47594145", "0.47569683", "0.4756295", "0.4756195", "0.47552398", "0.47538373", "0.47532743", "0.47489673", "0.4745964", "0.4736392", "0.4734944", "0.47324574", "0.47280875", "0.47280163", "0.4727736", "0.472475", "0.4718815", "0.4718233", "0.47138003", "0.47126082", "0.47120962", "0.4709046", "0.47052377", "0.47045398", "0.4696959", "0.46966666", "0.46955726", "0.46930283", "0.46919602", "0.46900615", "0.46882454", "0.4683851" ]
0.54948246
7
Returns the parades that a brotherhood have status = SUBMITTED
public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeSubmittedByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean getProbables();", "boolean getAccepted();", "public boolean isApproved();", "public boolean isApproved();", "public List<String> getPaymentRequestInReceivingStatus();", "public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "@Override\n public ParticipationStatus getParticipationStatus() { return participationStatus; }", "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean isAccepting();", "public Boolean getBspReconciled(){\n return bspReconciled;\n }", "com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();", "public boolean isApproved() {\n return approved;\n }", "@Override\n public String getPeopleStatusAttending() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getPeopleStatusAttending\");\n }\n\n List<ConnectathonParticipant> listOfCP = null;\n Integer iVendor = 0;\n Integer iMonitor = 0;\n Integer iCommittee = 0;\n Integer iVisitor = 0;\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n\n EntityManager em = EntityManagerService.provideEntityManager();\n\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n return \"Vendor\";\n } else {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n listOfCP = query.getResultList();\n }\n } else {\n return \"Vendor\";\n }\n\n for (ConnectathonParticipant cp : listOfCP) {\n if (cp.getConnectathonParticipantStatus().getId().compareTo(ConnectathonParticipantStatus.STATUS_VENDOR) == 0) {\n iVendor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_MONITOR) == 0) {\n iMonitor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_COMMITTEE) == 0) {\n iCommittee++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_VISITOR) == 0) {\n iVisitor++;\n } else {\n LOG.error(\"getPeopleStatusAttending - Status not found !!!!\"\n + cp.getConnectathonParticipantStatus().getId());\n }\n }\n\n String returnedString = \"<br/>\" + iVendor + \" Vendors<br/> \" + iMonitor + \" Monitors<br/> \" + iCommittee + \" Committees<br/> \"\n + iVisitor + \" Visitors\";\n\n return returnedString;\n }", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "@Override\n\tpublic boolean getStatus() {\n\t\treturn _candidate.getStatus();\n\t}", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus();\n\t}", "boolean hasPokers();", "boolean hasPokers();", "public Parade save(final Parade parade) {\n\t\tAssert.notNull(parade.getBrotherhood().getArea());\n\n\t\tAssert.notNull(parade);\n\n\t\tParade result = parade;\n\n\t\tBrotherhood brotherhood = null;\n\t\tChapter chapter = null;\n\n\t\tfinal Authority authorityBrotherhood = new Authority();\n\t\tauthorityBrotherhood.setAuthority(Authority.BROTHERHOOD);\n\t\tfinal Authority authorityChapter = new Authority();\n\t\tauthorityChapter.setAuthority(Authority.CHAPTER);\n\n\t\tif (LoginService.getPrincipal().getAuthorities().contains(authorityBrotherhood))\n\t\t\tbrotherhood = this.brotherhoodService.findByPrincipal();\n\t\telse if (LoginService.getPrincipal().getAuthorities().contains(authorityChapter)) {\n\t\t\tchapter = this.chapterService.findByPrincipal();\n\t\t\tfinal Chapter chapterCoordinatedParades = this.chapterService.findChapterByAreaId(parade.getBrotherhood().getArea().getId());\n\t\t\tAssert.isTrue(chapter.getId() == chapterCoordinatedParades.getId());\n\t\t}\n\t\tAssert.isTrue(brotherhood != null || chapter != null);\n\n\t\t/*\n\t\t * Aqu� pasamos el status a SUBMITTED si se le pusiera en el create o el edit\n\t\t * el FINAL MODE a TRUE\n\t\t */\n\t\tif (parade.getId() != 0) {\n\t\t\tfinal Parade paradeBBDD = this.findOne(parade.getId());\n\t\t\t//si estaba a true ya no se puede modificar\n\t\t\tif (!LoginService.getPrincipal().getAuthorities().contains(authorityChapter))\n\t\t\t\tAssert.isTrue(paradeBBDD.getFinalMode() == false);\n\n\t\t\t//si estaba a false el de BBDD y ahora se ha puesto a true\n\t\t\tif (parade.getStatus() == null && parade.getFinalMode() == true)\n\t\t\t\tparade.setStatus(\"SUBMITTED\");\n\n\t\t\tif (parade.getStatus() == \"REJECTED\")\n\t\t\t\tAssert.isTrue(parade.getRejectedComment() != null && parade.getRejectedComment() != \"\");\n\n\t\t} else if (parade.getId() == 0 && parade.getFinalMode() == true)\n\t\t\tparade.setStatus(\"SUBMITTED\");\n\t\tfinal Date currentMoment = new Date(System.currentTimeMillis() - 1000);\n\t\tAssert.isTrue(parade.getOrganisationMoment().after(currentMoment));\n\n\t\tresult = this.paradeRepository.save(parade);\n\n\t\treturn result;\n\n\t}", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "public JSONResponse getCheckedInParticipants() {\n\t\tcheckProvided();\n\t\treturn checkedInParticipants;\n\t}", "protected List<Perceivable> getPerception() {\n\t\treturn body.getPerception();\n\t}", "public synchronized boolean othersWaiting(Process p, int t){\n if(queue.length < 2){\n if((queue[0].getId() != p.getId() && readyPro(queue[0],t))){\n return true;\n }\n }else {\n if((queue[0].getId() != p.getId() && readyPro(queue[0],t)) || (queue[1].getId() != p.getId() && readyPro(queue[1],t))){\n return true;\n }\n }\n return false;\n }", "public boolean getAccepted()\n {\n return accepted;\n }", "public Boolean getStatus() {return status;}", "@Override\n\tpublic boolean isApproved();", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "public boolean canSubmit()\n {\n return (_state == ActivityState.RUNNING);\n }", "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "public boolean isParked() {\r\n\t\tif (vehicleState == \"parked\") {\r\n\t\t\twasParked = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "public boolean inProgress(){return (this.currentTicket != null);}", "public boolean getStatus() {\n return (rnd.nextInt(obstructionChanceBound) <= obstructionChance);\n }", "boolean isSetProbables();", "public boolean getAccepted() {\n return accepted_;\n }", "@Override\n\tpublic List<Booking> getRequest() {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"from Booking where bookingStatus='request'\");\n\t\treturn query.list();\n\t}", "public boolean getStatus(){\n return activestatus;\n }", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isProved() {\n\t\treturn proveState == PROVED;\n\t}", "public static boolean addressWaitingBanker(){\n boolean addressedSomething = false;\n removeSet = new HashSet<>();\n for(Instruction i : waitingList){\n\n if(bankerRequest(i)){\n //System.out.println(\"Task \" + i.taskNumber + \" had its request completed off the waiting List\" );\n removeSet.add(i);\n addressedSomething = true;\n }else{\n //System.out.println(\"Task \" + i.taskNumber + \" could not be completed, remains on waiting list\" );\n }\n }\n\n return addressedSomething;\n }", "@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}", "public Boolean isActive(){return status;}", "boolean hasParking();", "public boolean getAccepted() {\n return accepted_;\n }", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "@Override\n\tpublic boolean changeStatus(Person p) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"update Booking b set b.bookingStatus='request' where b.person=\" + p.getEmployeeId());\n\t\tint i = query.executeUpdate();\n\t\tif(i==1)\n\t\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public Boolean getFriendAccepted() {\n return friendAccepted;\n }", "Boolean getAccruedInterest();", "protected void setProved() {\n\t\tproveState = PROVED;\n\t}", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "public boolean is_completed();", "private boolean isEncapsulatingBet(BetSlipResponse betSlipResponse) {\n boolean result = betSlipResponse.getTransactions().size() > 0;\n\n for (TransactionResponse transactionResponse : betSlipResponse.getTransactions()) {\n result &= transactionResponse.getTransactionTypeId() == TransactionType.BET.getId();\n }\n\n return result;\n }", "boolean getIsComplete();", "public int getJobStatus(int jNo);", "boolean hasParentalStatus();", "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "boolean isStatusSuspensao();", "public boolean getRejected() {\n return rejected;\n }", "com.lvl6.proto.EventQuestProto.QuestProgressResponseProto.QuestProgressStatus getStatus();", "public boolean getIsCompletingGame()\r\n {\r\n return this.isCompletingGame; \r\n }", "boolean isSetObjectives();", "private boolean checkCanModifyStatus() {\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n ResponderBean responderBean = new ResponderBean();\r\n try{\r\n requesterBean.setFunctionType('c');\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/rolMntServlet\";\r\n AppletServletCommunicator ascomm = new AppletServletCommunicator(connectTo,requesterBean);\r\n ascomm.setRequest(requesterBean);\r\n ascomm.send();\r\n responderBean = ascomm.getResponse(); \r\n \r\n }catch(Exception e) {\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n return (Boolean)responderBean.getDataObject();\r\n }", "int getBattlesWon();", "public boolean GetWaitingFlag() { return this.mWaitingF; }", "boolean hasBidrequest();", "public Byte getApproveStatus() {\n return approveStatus;\n }", "public void waitingForPartner();", "cosmos.gov.v1beta1.ProposalStatus getStatus();", "public static boolean getOrderStatus() {\r\n \treturn orderSucceed;\r\n }", "public RideRequestStatus getStatus() {\n return status;\n }", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "boolean isWaiting()\n {\n return waitFlags != 0;\n }", "public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean getRejected() {\n return rejected;\n }", "public int getCBRStatus();", "@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}", "static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }", "boolean hasBracksSelected();", "List<Boolean> assertVehiclePlanningHomepage() {\n\t\tList<Boolean> assertValue= new ArrayList<>();\n\n\t\tassertValue.add(0,SeleniumUtility.checkElementIsVisible(driver, \n\t\t\t\thomepageVehiclePlanning.buttonTagRefreshButtonHomepageVehiclePlanning));\n\t\tassertValue.add(1,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning));\n\t\tassertValue.add(2,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.divTagSelectSitesHomepageVehiclePlanning));\n\t\tassertValue.add(3,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagDaysArrowHomepageVehiclePlanning));\n\t\tassertValue.add(4,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.inputTagSelectDateHomepageVehiclePlanning));\n\t\treturn assertValue;\n\t}", "@Override\r\n\tpublic StateBruceDanner meetBetty() {\n\t\treturn CONTAMINED;\r\n\t}", "org.naru.park.ParkController.CommonActionOrBuilder getAllOrBuilder();", "org.naru.park.ParkController.CommonActionOrBuilder getAllOrBuilder();", "public String[] getJobsWaiting();", "boolean hasSharedCriterion();", "public String[] requisicaoPassageiros() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[1];\r\n\t\tString resultado;\r\n\t\tString passageiros[];\r\n\r\n\t\tparams[0] = \"op=7\";\r\n\r\n\t\tresultado = con.sendHTTP(params);\r\n\r\n\t\tpassageiros = resultado.split(\";\");\r\n\r\n\t\treturn passageiros;\r\n\t}", "org.apache.xmlbeans.XmlBoolean xgetProbables();", "List<StatisticFormSubmit> selectStatisticFormSubmit( ResponseFilter filter, Plugin plugin );", "public boolean hasStatus(JobStatus... s);", "@Test\n public void testDslTriggerPRAllowedBranchesWithApproveMergedFreeStyle() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslTriggerPRAllowedBranchesWithApproveMergedFreeStyle.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n FreeStyleProject createdJob = (FreeStyleProject) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n Map<TriggerDescriptor, Trigger<?>> triggers = createdJob.getTriggers();\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n boolean isToApprove = false;\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n assertEquals(1, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n BitBucketPPRPullRequestMergedActionFilter tmp3 = (BitBucketPPRPullRequestMergedActionFilter) tmp2.getTriggers()\n .get(0).getActionFilter();\n isToApprove = tmp3.shouldSendApprove();\n }\n assertEquals(1, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRPullRequestMergedActionFilter\");\n assertTrue(isToApprove);\n }", "public boolean isApproved() {\n\t\treturn isApproved;\n\t}", "List<Agent> listPOSAgentsHaveCredential();", "java.util.List<? extends WorldUps.UTruckOrBuilder> \n getTruckstatusOrBuilderList();", "public boolean getHasMoreJobs() ;", "public Boolean isPunishment() {\n return (Boolean) get(\"punishment\");\n }", "boolean hasStatus();", "boolean hasStatus();" ]
[ "0.53422827", "0.5080051", "0.50677705", "0.5064792", "0.5064792", "0.50526637", "0.502398", "0.50178045", "0.50171614", "0.4945592", "0.49415863", "0.48827586", "0.48722908", "0.48552796", "0.4824421", "0.4822196", "0.47750974", "0.47747296", "0.47747296", "0.47614872", "0.47598532", "0.4747473", "0.4729271", "0.47153905", "0.47023338", "0.46877396", "0.46804094", "0.4672469", "0.46525753", "0.4646886", "0.46467113", "0.46397763", "0.46300215", "0.46276873", "0.4625631", "0.46062306", "0.45955443", "0.45939943", "0.45914185", "0.4591337", "0.45863277", "0.45855245", "0.45801693", "0.45775002", "0.45715594", "0.45693198", "0.45684847", "0.45563105", "0.45545635", "0.4550415", "0.45486823", "0.45450452", "0.45400023", "0.4539635", "0.45351556", "0.45261368", "0.45128146", "0.4496632", "0.44965228", "0.44865903", "0.44842327", "0.44799787", "0.44692233", "0.44681355", "0.44674218", "0.4466579", "0.44648436", "0.44637725", "0.44630966", "0.4457499", "0.4442291", "0.44396815", "0.44369665", "0.44364834", "0.4434108", "0.44308573", "0.44182846", "0.44111007", "0.44088793", "0.4402418", "0.43989787", "0.43893248", "0.4388029", "0.4386808", "0.43858397", "0.43858397", "0.43820173", "0.43801004", "0.43741727", "0.43737915", "0.4373579", "0.43707618", "0.43707526", "0.43704936", "0.43693554", "0.43677956", "0.43625066", "0.43617868", "0.43560007", "0.43560007" ]
0.57473767
0
Returns the parades that a brotherhood have status = REJECTED
public Collection<Parade> findParadeRejectedByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeRejectedByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public String getREJECTED_BY() {\r\n return REJECTED_BY;\r\n }", "public String getREJECTED_BY() {\r\n return REJECTED_BY;\r\n }", "public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "public boolean getRejected() {\n return rejected;\n }", "public boolean getRejected() {\n return rejected;\n }", "public String getRejectReason() {\n\t\treturn rejectReason;\n\t}", "public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public String getRejector() {\n return rejector;\n }", "public void setUnproved() {\n\t\tproveState = UNPROVED;\n\t}", "public Collection<Parade> findRejectedByArea(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tthis.areaService.checkPrincipalArea(id);\n\n\t\tparades = this.paradeRepository.findRejectedByArea(id);\n\n\t\treturn parades;\n\t}", "public boolean isUnproved() {\n\t\treturn proveState == UNPROVED;\n\t}", "private List<RandomVariable> getNonEvidenceVariables(BayesianNetwork bn, Assignment e){\n List<RandomVariable> vars = bn.getVariableListTopologicallySorted();\n // Init new list\n List<RandomVariable> nonEvidenceVars = new ArrayList<>();\n\n for (RandomVariable X: vars){\n // If e does not contain the variable, add to list\n if (!e.containsKey(X)){\n nonEvidenceVars.add(X);\n\n }\n }\n\n return nonEvidenceVars;\n\n }", "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "public List<Agent> findAgentsActifs() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') ORDER BY A.personne.name\");\n List<Agent> list = q.getResultList();\n return list;\n }", "@Override\n\tpublic List<Parking> vIPNonAvailableParking() {\n\t\treturn parkingRepository.vIPNonAvailableParking();\n\t}", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "private List<Integer>getDead(List<Box> Alive){\n List<Integer> alive = new ArrayList<>();\n List<Integer> dead = new ArrayList<>();\n\n for(Box box : Alive){\n alive.add(box.getId());\n }\n\n for(int i=1;i<17;i++){\n if(!alive.contains(i)){\n dead.add(i);\n }\n }\n\n return dead;\n }", "boolean getProbables();", "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "public Pile getDiscardPile(){\n return piles.getDiscardPile();\n }", "public java.lang.Boolean getRejected () {\n\t\treturn rejected;\n\t}", "public List<AXProperty> getIgnoredReasons() {\n return ignoredReasons;\n }", "@Override\n\tpublic boolean rejectPartner(Partner partner) {\n\t\treturn false;\n\t}", "protected Permissions getExcludedPolicy(){\n\treturn stateIs(INSERVICE_STATE) ? this.excludedPermissions : null;\n }", "public Cursor getRejectedWords()\n\t{\n\t\treturn getWordsByType(DBConstants.WORDTYPE_REJECTED);\n\t}", "public Collection<Trip> findTripsWhitStatusAcceptedNotStarted() {\n\t\tCollection<Trip> trips;\n\t\ttrips = new ArrayList<Trip>(this.tripRepository.findTripsWhitStatusAcceptedNotStarted());\n\t\tAssert.notNull(trips);\n\t\treturn trips;\n\t}", "List<Receipt> getNotApproved() throws DbException;", "public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "Set<Integer> getIgnoreStatusCodes();", "public String rechercheConclusionMaintenanceprevPoteaux(int numeroBatiment) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Preventive> maintenancepreventive = em.createQuery(\"FROM Preventive m where m.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\t\tString conclusion=\"--\";\n\t\t\tint test,i;\n\t\t\ttest=0;\n\t\t\ti=maintenancepreventive.size()-1;\n\t\t\tif(maintenancepreventive.size()!=0){\n\t\t\t\twhile(test==0 && i>-1) {\n\t\t\t\t\tif(maintenancepreventive.get(i).getOrgane() instanceof Poteaux ){\n\t\t\t\t\t\ttest=1;\n\t\t\t\t\t}\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t\tif(test==1)\n\t\t\t\t\tconclusion=maintenancepreventive.get(i+1).getConclusion();\n\t\t\t}\n\t\t\treturn conclusion;\n\t\t}", "@Override\n\tpublic List<Parking> employeeaNonAvailableParking() {\n\t\treturn parkingRepository.employeeaNonAvailableParking();\n\t}", "public LoanApplicationResponse rejectLoanRequest() {\n return new LoanApplicationResponse(this, false);\n }", "public void setRejected(boolean value) {\n this.rejected = value;\n }", "public boolean hasRejected() {\n return fieldSetFlags()[19];\n }", "public ArrayList<Integer> getForbiddenIds(int taskId){\n ArrayList<Integer> forbiddenIds = new ArrayList<>();\n DagNode node = nodes.get(taskId);\n forbiddenIds.add(taskId);\n //list will be empty if the task id does not correspond to a node\n if(node != null) {\n //the given task id will automatically be in the list\n //get all of the parent nodes this node\n node.setDiscovered(true);\n\n for (DagNode parent : getAllParentNodes(node)) {\n //add each node to the forbidden list\n forbiddenIds.add(parent.getTaskId());\n }\n //be sure to un-mark all nodes\n for(DagNode n: nodes.values()){\n n.setDiscovered(false);\n }\n }\n return forbiddenIds;\n }", "public String getReject() {\n return reject;\n }", "public boolean getBlocked() { return this.blocked; }", "public Urls getNotApprovedUrls() {\n\t\tPropertySelector propertySelector = new PropertySelector(\"approved\");\n\t\tpropertySelector.defineEqual(Boolean.FALSE);\n\t\treturn getUrls(propertySelector);\n\t}", "public ArrayList<Chambre> chambresNonVides() {\n\t\tArrayList<Chambre> chambreRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.isReserve()) {\n\t\t\t\tchambreRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreRes;\n\t}", "public GetACDHistoryRequest setRejected(boolean d) {\n this.rejected = Boolean.valueOf(d);\n return this;\n }", "@Override\n\tpublic List<Parking> NotAvailableParking() {\n\t\treturn parkingRepository.NotAvailableParking();\n\t}", "public String getReasonRejection()\n\t{\n\t\treturn reasonRejection;\n\t}", "boolean getOptOutOnlineStatus();", "@Override\n\tpublic List<Article> getNotReviewed() {\n\t\treturn articleRepository.findArticleForReviewByProfessions();\n\t}", "public List<Check> getNotAssessCheck(String phonenumber) {\n\t\tList<Check> checks=checkDao.getNotAssessCheck(phonenumber);\n\t\treturn checks;\n\t}", "public Boolean getBlocked() {\n return this.blocked;\n }", "public String[] getForbidden() {\n return this.forbidden;\n }", "public void setRejector(String rejector) {\n this.rejector = rejector;\n }", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "protected List<Perceivable> getPerception() {\n\t\treturn body.getPerception();\n\t}", "public ArrayList<String> deadPersonsFalseGuess(Guess currGuess) {\n ArrayList<String> deadPerson = new ArrayList<String>();\n\n for (Person person : config.personList) {\n for (HashMap.Entry<String, String> entry : person.getPersonAttValSet().entrySet()) {\n if (entry.getKey().equals(currGuess.getAttribute()) && entry.getValue().equals(currGuess.getValue())) {\n deadPerson.add(person.getName());\n }\n }\n }\n\n return deadPerson;\n\n }", "public List<Card> getDiscardPile() {\r\n return discardPile;\r\n }", "@Then(\"^select non recharchable batteries$\")\r\n\tpublic void select_non_recharchable_batteries() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.nonreachargebatteries());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "private meterMaidPerception getPerceptions() {\n\t\t\r\n\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\r\n\t\tACLMessage msg = receive(mt);\r\n\t\tif (msg != null && msg.getContent() != null) {\r\n\t\t\tString[] perceptions = msg.getContent().split(\";\");\r\n\t\t\tif (perceptions.length < 2)\r\n\t\t\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t\t\tcar = perceptions[1];\r\n\t\t\tif (CAR_PASSED_ON_RED_SIGN.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_IGNORED_RED_SIGN;\r\n\t\t\telse if (CAR_IN_ZEBRA_CROSSING.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_STOP_ON_ZEBRA_CROSSING;\r\n\t\t}\r\n\t\t\r\n\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t}", "@Override\n public Response throttlingDenyPoliciesGet(String accept, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n List<BlockConditionsDTO> blockConditions = apiProvider.getBlockConditions();\n BlockingConditionListDTO listDTO =\n BlockingConditionMappingUtil.fromBlockConditionListToListDTO(blockConditions);\n return Response.ok().entity(listDTO).build();\n } catch (APIManagementException | ParseException e) {\n String errorMessage = \"Error while retrieving Block Conditions\";\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n return null;\n }", "public boolean isNonLivrer() {\n\t\treturn getStatut().equals(StatusBonPreparation.NON_LIVRER);\n\t}", "public void removeTempStatusEffects()\n\t{\n\t\tfor(Pokemon pokemon : getParty())\n\t\t\tif(pokemon != null)\n\t\t\t\tpokemon.removeStatusEffects(false);\n\t}", "void discardIrrelevantResponse(CruiseControlParameters parameters);", "public void denyPo(int pid) throws Exception {\n PoBean po = this.getPoById(pid);\n if (po == null) throw new Exception(\"Purchase Order doesn't exist!\");\n if (po.getStatus() != PoBean.Status.PROCESSED) throw new Exception(\"Invalid Purchase Order Status.\");\n this.setPoStatus(PoBean.Status.DENIED, pid);\n }", "@External(readonly = true)\n\tpublic List<Address> get_approved_games() {\n\t\t\n\t\t Address[] _proposal_list = new Address[this.proposal_list.size()];\n\t\t int j = 0;\n\t\t for (int i = 0; i< this.proposal_list.size();i++ ) {\n\t\t\t Address address = this.proposal_list.get(i);\n\t\t\t String gameApproved = this.status_data.get(address);\n\t\t\t if (gameApproved!=null && gameApproved.equals(\"gameApproved\") ) {\n\t\t\t\t _proposal_list[j] = address;\n\t\t\t\t j++;\n\t\t\t }\n\t\t }\n\t\t Address[] tmp = new Address[j];\n\t\t System.arraycopy(_proposal_list, 0, tmp, 0, j);\n\t\t return List.of(tmp);\n\t}", "public String rechercheConclusionVerificationPoteaux(int numeroBatiment) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Verification> verifications = em.createQuery(\"FROM Verification v where v.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\tint test,i;\n\t\ttest=0;\n\t\ti=verifications.size()-1;\n\t\tString conclusion=\"--\";\n\t\tif(verifications.size()!=0){\n\t\t\twhile(test==0 && i>-1) {\n\t\t\t\tif(verifications.get(i).getOrgane() instanceof Poteaux ){\n\t\t\t\t\ttest=1;\n\t\t\t\t}\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif(test==1)\n\t\t\t\tconclusion=verifications.get(i+1).getConclusion();\n\t\t}\n\t\treturn conclusion;\n\t}", "@Override\r\n\tprotected void collectDisappearingPotential(V v) {\r\n\t\tif (graph.outDegree(v) == 0) {\r\n\t\t\tif (isDisconnectedGraphOK()) {\r\n\t\t\t\tif (v instanceof TopicVertex) {\r\n\t\t\t\t\tpr_disappearing_potential += getCurrentValue(v);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// not necessary for hits-hub\r\n\t\t\t\t\t// disappearing_potential.hub += getCurrentValue(v);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Outdegree of \" + v\r\n\t\t\t\t\t\t+ \" must be > 0\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// not necessary for hits-hub\r\n\t\t// if (graph.inDegree(v) == 0) {\r\n\t\t// if (isDisconnectedGraphOK()) {\r\n\t\t// if (!(v instanceof TopicReferenceVertex)) {\r\n\t\t// disappearing_potential.authority += getCurrentValue(v);\r\n\t\t// }\r\n\t\t// } else {\r\n\t\t// throw new IllegalArgumentException(\"Indegree of \" + v\r\n\t\t// + \" must be > 0\");\r\n\t\t// }\r\n\t\t// }\r\n\t}", "public List getDriverAbsentList() throws Exception ;", "public String getNotAcceptReason() {\r\n\t\treturn notAcceptReason;\r\n\t}", "java.util.List<? extends POGOProtos.Rpc.CombatProto.CombatPokemonProtoOrBuilder> \n getReservePokemonOrBuilderList();", "Collection<String> getPossibleDefeatConditions();", "boolean getNegated();", "public Collection<Parade> findParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "public ArrayList<Chambre> chambresVides() {\n\t\tArrayList<Chambre> chambreNonRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(!chambre.isReserve()) {\n\t\t\t\tchambreNonRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreNonRes;\n\t}", "org.hl7.fhir.Boolean getInactive();", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeBadRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && ((Wall) simo).getType() == 2);\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 15){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}", "@Override\n public List<FecetProrrogaOrden> getProrrogaPorOrdenEstatusPendienteAuditor(final BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n query.append(SELECT_PRORROGAS_RELACIONES).append(SQL_LEFT_JOIN).append(NAME_TABLE_PRORROGA_ORDEN)\n .append(SQL_FP);\n query.append(SQL_INNER_ID_PRORROGA_ORDEN);\n query.append(\" WHERE P.ID_ORDEN = ? \");\n query.append(\" AND P.ID_ESTATUS = ? \");\n query.append(\" AND (FP.ID_FLUJO_PRORROGA_ORDEN IS NULL OR FP.ID_ESTATUS = ? ) \");\n query.append(SQL_ORDER_BY);\n\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenConRelacionesMapper(), idOrden,\n EstatusProrroga.PRORROGA_PENDIENTE_APROBACION.getBigIdEstatus(),\n EstatusFlujoProrroga.RESOLUCION_PRORROGA_RECHAZADA_FIRMANTE.getBigIdEstatus());\n }", "java.util.List<POGOProtos.Rpc.CombatProto.CombatPokemonProto> \n getReservePokemonList();", "void reject();", "public void setREJECTED_BY(String REJECTED_BY) {\r\n this.REJECTED_BY = REJECTED_BY == null ? null : REJECTED_BY.trim();\r\n }", "public void setREJECTED_BY(String REJECTED_BY) {\r\n this.REJECTED_BY = REJECTED_BY == null ? null : REJECTED_BY.trim();\r\n }", "public List<Pharmacie> recherchePharmacieBatiment(int numeroBatiment){\n\t\treturn em.createQuery(\"from Pharmacie p WHERE p.batiment.numero = \"+numeroBatiment).getResultList();\n\t}", "public boolean isSafeFromAllPlayersExcept(Cell refugecell, Player p1, Player p2){\n ArrayList<Cell> reachableCells = new ArrayList<Cell>();\n int range;\n List<Player> players = state.getPlayers();\n for(Player p: players){\n if(!p.equals(p1)&&!p.equals(p2)){\n range = p.getNumberMoveRemaining()+p.getBombRange();\n reachableCells = getReacheableCellsInRange(p.getCell(), range);\n // the current player would not be safe from p\n if(reachableCells.contains(refugecell)){\n return false;\n }\n }\n }\n // the current player would be safe on refugecell from all enemies except from p2\n return true;\n }", "public void rejectInvite(UserBean possibleOpponent)\n\t{\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tcontrolSocket = new Socket(possibleOpponent.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"REJECT\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\t\t\tSystem.out.println(\"Rejecting invite\");\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\t\t\n\t\t\tcontrolSocket.close();\n\t\t\t\n\t\t} catch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "org.apache.xmlbeans.XmlBoolean xgetProbables();", "public boolean getCancelled(Booking b)\r\n {\r\n if(b == null)\r\n return false;\r\n \r\n return b.getCancelled();\r\n }", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public static BookFilter getNonBibles()\n {\n if (commentariesWithBibles)\n {\n return both(new NotBookCategoryFilter(BookCategory.BIBLE), new NotBookCategoryFilter(BookCategory.COMMENTARY));\n }\n return new NotBookCategoryFilter(BookCategory.BIBLE);\n }", "public PriorityCode.Enum getMissivePriority() {\n\n // Get the missive document priority\n return this.sepamailMissive001.getMsvPri();\n }", "private void removeBadCrimes(){\n for(Crime badCrime: mBadCrimesList){\n mCrimesList.remove(badCrime);\n Log.i(TAG, \"bad crime removed\");\n }\n }", "public String rechercheConclusionMaintenanceprevRia(int numeroBatiment) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Preventive> maintenancepreventive = em.createQuery(\"FROM Preventive m where m.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\tString conclusion=\"--\";\n\t\tint test,i;\n\t\ttest=0;\n\t\ti=maintenancepreventive.size()-1;\n\t\tif(maintenancepreventive.size()!=0){\n\t\t\twhile(test==0 && i>-1) {\n\t\t\t\tif(maintenancepreventive.get(i).getOrgane() instanceof RIA ){\n\t\t\t\t\ttest=1;\n\t\t\t\t}\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif(test==1)\n\t\t\t\tconclusion=maintenancepreventive.get(i+1).getConclusion();\n\t\t}\n\t\treturn conclusion;\n\t}", "public Collection<Integer> getExcludedTransportTypes();", "public NSMutableArray<I_WorkFlowItem> getTachesObligatoiresAbsentes() {\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = new NSMutableArray<I_WorkFlowItem>();\n\n\t\tfor (int i = 0; i < tachesObligatoires().count(); i++) {\n\t\t\tI_WorkFlowItem tache = tachesObligatoires().objectAtIndex(i);\n\t\t\tif (!tachesFaites.containsObject(tache)) {\n\t\t\t\ttachesObligatoiresAbsentes.addObject(tache);\n\t\t\t}\n\t\t}\n\n\t\treturn tachesObligatoiresAbsentes;\n\t}", "public Rejection getRejectionReason() {\n\t\treturn resolutionReason;\n\t}", "public Date getDATE_REJECTED() {\r\n return DATE_REJECTED;\r\n }", "public Date getDATE_REJECTED() {\r\n return DATE_REJECTED;\r\n }", "public List<LovedTracksEntry> readPendingLoves() {\n return SQLite.select()\n .from(LovedTracksEntry.class)\n .where(LovedTracksEntry_Table.status.in(LastfmClient.TRANSIENT_ERROR_CODES))\n .queryList();\n }", "public java.util.List<? extends POGOProtos.Rpc.CombatProto.CombatPokemonProtoOrBuilder> \n getReservePokemonOrBuilderList() {\n if (reservePokemonBuilder_ != null) {\n return reservePokemonBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(reservePokemon_);\n }\n }", "public List getDonts() {\n\t\tif (donts == null) {\n\t\t\tdonts = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/donts\");\n\t\t}\n\t\treturn donts;\n\t}", "public void notAlive() {\n\n for (var i = ownedAnimals.size() - 1; i >= 0; i--) {\n if (ownedAnimals.get(i).healthPoints <= 0) {\n System.out.println(\"The \"\n + ownedAnimals.get(i).type\n + \" \" + ownedAnimals.get(i).animalName\n + \" died\");\n ownedAnimals.remove(i);\n\n\n }\n\n\n }\n }" ]
[ "0.5866887", "0.56432515", "0.56432515", "0.5397596", "0.5394414", "0.5249149", "0.51810193", "0.51338506", "0.509433", "0.5092478", "0.50647235", "0.50457627", "0.5031004", "0.50290596", "0.4982926", "0.49805096", "0.49647397", "0.4909871", "0.48824677", "0.48790085", "0.48767388", "0.48639646", "0.48637623", "0.48610944", "0.48473242", "0.48472676", "0.48330453", "0.48299506", "0.4826323", "0.4822976", "0.48213348", "0.48208442", "0.4816286", "0.48113424", "0.47791386", "0.47708008", "0.47707224", "0.47630054", "0.47395357", "0.47285357", "0.47284913", "0.47169915", "0.47167027", "0.47107965", "0.47103384", "0.47072855", "0.47041777", "0.47023645", "0.46839207", "0.4678973", "0.4673966", "0.46684164", "0.46666703", "0.46646634", "0.465141", "0.46504673", "0.46407104", "0.463119", "0.4628551", "0.46254653", "0.4624812", "0.46232894", "0.46174398", "0.4614503", "0.46127808", "0.46062854", "0.46041134", "0.45886725", "0.45745513", "0.4570991", "0.45683408", "0.45603612", "0.45527813", "0.45501968", "0.45352104", "0.45258033", "0.452276", "0.45199344", "0.45181817", "0.45134324", "0.45134324", "0.45091692", "0.45058715", "0.45054448", "0.4491022", "0.44887388", "0.44883913", "0.44873753", "0.4481424", "0.44782093", "0.447708", "0.4477009", "0.44769877", "0.44754556", "0.44744268", "0.44744268", "0.4472041", "0.44714174", "0.44696143", "0.44660506" ]
0.63423884
0
Returns the parades that a brotherhood have status = ACCEPTED
public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeAcceptedByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "boolean getAccepted();", "com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();", "@Override\n public String getPeopleStatusAttending() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getPeopleStatusAttending\");\n }\n\n List<ConnectathonParticipant> listOfCP = null;\n Integer iVendor = 0;\n Integer iMonitor = 0;\n Integer iCommittee = 0;\n Integer iVisitor = 0;\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n\n EntityManager em = EntityManagerService.provideEntityManager();\n\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n return \"Vendor\";\n } else {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n listOfCP = query.getResultList();\n }\n } else {\n return \"Vendor\";\n }\n\n for (ConnectathonParticipant cp : listOfCP) {\n if (cp.getConnectathonParticipantStatus().getId().compareTo(ConnectathonParticipantStatus.STATUS_VENDOR) == 0) {\n iVendor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_MONITOR) == 0) {\n iMonitor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_COMMITTEE) == 0) {\n iCommittee++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_VISITOR) == 0) {\n iVisitor++;\n } else {\n LOG.error(\"getPeopleStatusAttending - Status not found !!!!\"\n + cp.getConnectathonParticipantStatus().getId());\n }\n }\n\n String returnedString = \"<br/>\" + iVendor + \" Vendors<br/> \" + iMonitor + \" Monitors<br/> \" + iCommittee + \" Committees<br/> \"\n + iVisitor + \" Visitors\";\n\n return returnedString;\n }", "@Override\n\tpublic boolean getStatus() {\n\t\treturn _candidate.getStatus();\n\t}", "public boolean getAccepted() {\n return accepted_;\n }", "cosmos.gov.v1beta1.ProposalStatus getStatus();", "public boolean getAccepted()\n {\n return accepted;\n }", "public boolean getAccepted() {\n return accepted_;\n }", "public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public String getIsPoaAccepted() {\n\t\treturn isPoaAccepted;\n\t}", "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "public Boolean getFriendAccepted() {\n return friendAccepted;\n }", "public List<String> getPaymentRequestInReceivingStatus();", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus();\n\t}", "sawtooth.sdk.protobuf.ConsensusBroadcastResponse.Status getStatus();", "@External(readonly = true)\n\tpublic List<Address> get_approved_games() {\n\t\t\n\t\t Address[] _proposal_list = new Address[this.proposal_list.size()];\n\t\t int j = 0;\n\t\t for (int i = 0; i< this.proposal_list.size();i++ ) {\n\t\t\t Address address = this.proposal_list.get(i);\n\t\t\t String gameApproved = this.status_data.get(address);\n\t\t\t if (gameApproved!=null && gameApproved.equals(\"gameApproved\") ) {\n\t\t\t\t _proposal_list[j] = address;\n\t\t\t\t j++;\n\t\t\t }\n\t\t }\n\t\t Address[] tmp = new Address[j];\n\t\t System.arraycopy(_proposal_list, 0, tmp, 0, j);\n\t\t return List.of(tmp);\n\t}", "public List<TorrentStatus> status() {\n torrent_status_vector v = alert.getStatus();\n int size = (int) v.size();\n\n List<TorrentStatus> l = new ArrayList<>(size);\n for (int i = 0; i < size; i++) {\n l.add(new TorrentStatus(v.get(i)));\n }\n\n return l;\n }", "public CandidateValue getStatusCVs() {\n\n return statusCVs;\n }", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "public com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus() {\n return status_;\n }", "List<Country> getAvailableByStatus(int status);", "public com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus() {\n return status_;\n }", "public Collection<Trip> findTripsWhitStatusAcceptedNotStarted() {\n\t\tCollection<Trip> trips;\n\t\ttrips = new ArrayList<Trip>(this.tripRepository.findTripsWhitStatusAcceptedNotStarted());\n\t\tAssert.notNull(trips);\n\t\treturn trips;\n\t}", "private List<PeerOfConsensusStatus> getPeerOfConsensusStatus(int groupId) {\n String consensusStatusJson = frontInterface.getConsensusStatus(groupId);\n if (StringUtils.isBlank(consensusStatusJson)) {\n log.debug(\"getPeerOfConsensusStatus is null: {}\", consensusStatusJson);\n return null;\n }\n List jsonArr = JsonTools.toJavaObject(consensusStatusJson, List.class);\n if (jsonArr == null) {\n log.error(\"getPeerOfConsensusStatus error\");\n throw new NodeMgrException(ConstantCode.FAIL_PARSE_JSON);\n }\n List<PeerOfConsensusStatus> dataIsList = new ArrayList<>();\n for (int i = 0; i < jsonArr.size(); i++ ) {\n if (jsonArr.get(i) instanceof List) {\n List<PeerOfConsensusStatus> tempList = JsonTools.toJavaObjectList(\n JsonTools.toJSONString(jsonArr.get(i)), PeerOfConsensusStatus.class);\n if (tempList != null) {\n dataIsList.addAll(tempList);\n } else {\n throw new NodeMgrException(ConstantCode.FAIL_PARSE_JSON);\n }\n }\n }\n return dataIsList;\n }", "public int getCBRStatus();", "public boolean accepted() {\r\n\r\n return m_bAccepted;\r\n\r\n }", "public Boolean getStatus() {return status;}", "boolean isAccepting();", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "public boolean getStatus(){\n return activestatus;\n }", "public RideRequestStatus getStatus() {\n return status;\n }", "private int findBidders() {\r\n try {\r\n agents = new ArrayList<AMSAgentDescription>();\r\n //definisce i vincoli di ricerca, in questo caso tutti i risultati\r\n SearchConstraints searchConstraints = new SearchConstraints();\r\n searchConstraints.setMaxResults(Long.MAX_VALUE);\r\n //tutti gli agenti dell'AMS vengono messi in un array\r\n AMSAgentDescription [] allAgents = AMSService.search(this, new AMSAgentDescription(), searchConstraints);\r\n //scorre la lista degli agenti trovati al fine di filtrare solo quelli di interesse\r\n for (AMSAgentDescription a: allAgents) {\r\n //aggiunge l'agente partecipante all'ArrayList se e' un partecipante\r\n if(a.getName().getLocalName().contains(\"Participant\")) {\r\n agents.add(a);\r\n } \r\n }\r\n } catch (Exception e) {\r\n System.out.println( \"Problema di ricerca dell'AMS: \" + e );\r\n e.printStackTrace();\r\n }\r\n return agents.size();\r\n }", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }", "public Collection<Parade> findParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public String getCreativeApprovalStatus() {\r\n return creativeApprovalStatus;\r\n }", "public Byte getApproveStatus() {\n return approveStatus;\n }", "public boolean isProved() {\n\t\treturn proveState == PROVED;\n\t}", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "@Override\n public ParticipationStatus getParticipationStatus() { return participationStatus; }", "public static ArrayList<Vkladi> rascetPolozBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tSystem.out.println(\"Polozitelnii balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}", "private ArrayList<Message> filterByStatus(ArrayList<Message> messages, String status){\n ArrayList<Message> myMessages = new ArrayList<Message>();\n for(Message msg : messages ){\n if(msg.values.get(\"sucess\").equals(status)){\n myMessages.add(msg);\n }\n }\n return myMessages;\n }", "public boolean getAccepted_tou();", "public Collection<Parade> findAcceptedByArea(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tthis.areaService.checkPrincipalArea(id);\n\n\t\tparades = this.paradeRepository.findAcceptedByArea(id);\n\n\t\treturn parades;\n\t}", "public List<models.garaDB.tables.pojos.Ride> fetchByAccepted(Integer... values) {\n return fetch(Ride.RIDE.ACCEPTED, values);\n }", "List<Agent> listPOSAgentsHaveCredential();", "public JSONResponse getCheckedInParticipants() {\n\t\tcheckProvided();\n\t\treturn checkedInParticipants;\n\t}", "public SearchResponse getStatus();", "com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder();", "Boolean getAccruedInterest();", "int getBattlesWon();", "private ArrayList<WobblyScore> getWobblyLeaderboard() {\n ArrayList<WobblyScore> wobblyScores = new ArrayList<>();\n String json = DiscordUser.getWobbliesLeaderboard(codManager.getGameId());\n if(json == null) {\n return wobblyScores;\n }\n JSONArray scores = new JSONArray(json);\n for(int i = 0; i < scores.length(); i++) {\n wobblyScores.add(WobblyScore.fromJSON(scores.getJSONObject(i), codManager));\n }\n WobblyScore.sortLeaderboard(wobblyScores, true);\n return wobblyScores;\n }", "io.opencannabis.schema.commerce.Payments.PaymentStatus getStatus();", "com.lvl6.proto.EventQuestProto.QuestProgressResponseProto.QuestProgressStatus getStatus();", "protected void setProved() {\n\t\tproveState = PROVED;\n\t}", "public PresenceStatus getStatus() {\n return null;\n }", "VideoStatus getStatus();", "ResponseEntity<List<Status>> findTaskStatuses();", "public boolean isApproved();", "public boolean isApproved();", "com.clarifai.grpc.api.status.Status getStatus();", "java.util.List<java.lang.Integer> getStatusList();", "public Response status() {\n return getStates();\n }", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean statusCerradura(){\n return cerradura.estado();\r\n }", "public retStatus Status(){\n // Your code here\n this.mutex.lock();\n\n retStatus r = new retStatus(State.Pending, this.values.get(this.me));\n if (done) {\n r.state = State.Decided;\n }\n\n this.mutex.unlock();\n return r;\n }", "public boolean[] getStatus()\n {\n\t return online;\n }", "public static int getStatusFilter() {\r\n return statusFilter;\r\n }", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "entities.Torrent.Status getStatus();", "public CanaryStatus getStatus() {\n return this.status;\n }", "StatusListResponse getStatuses(StatusListRequest statusListRequest) throws IOException, TweeterRemoteException;", "public void getInterest(List<Status> statusList) {\n System.out.println(\"##########Getting The Tweeters##########\");\n\n }", "public Integer getBookStatus() {\n return bookStatus;\n }", "public Integer getBookStatus() {\n return bookStatus;\n }", "public Integer getBookStatus() {\n return bookStatus;\n }", "POGOProtos.Rpc.CombatProto.CombatPokemonProtoOrBuilder getActivePokemonOrBuilder();", "public List<StatusProveedor> findStatusProveedor() {\n\t\treturn find(StatusProveedor.class,\"from StatusProveedor\");\n\t}", "boolean getOptOutOnlineStatus();", "public List<Empresatb09EmpresaRegraRenegociacao> buscarPorPessoaStatus(Empresatb01Empresa vo, boolean status) {\n \n StringBuilder query = new StringBuilder();\n Object[] elements = new Object[2];\n\n query.append(\" select c from Empresatb09EmpresaRegraRenegociacao c where c.empresatb01Empresa = ?1 and c.ativo = ?2 \");\n\n elements[0] = vo;\n elements[1] = status;\n\n return super.getListEntity(query.toString(), elements);\n }", "public Boolean isActive(){return status;}", "public int getBrojParcele() {\n return brojParcele;\n }" ]
[ "0.59275484", "0.56564444", "0.55570626", "0.54099816", "0.5284031", "0.52815825", "0.52766126", "0.5262242", "0.52588344", "0.5253327", "0.5252237", "0.5237818", "0.51988083", "0.51925534", "0.5150192", "0.50807947", "0.50779086", "0.50708205", "0.50420344", "0.5036556", "0.50022405", "0.49850583", "0.4982473", "0.49169257", "0.4915501", "0.49121702", "0.49036047", "0.48830834", "0.487295", "0.48557854", "0.4855438", "0.482469", "0.48120683", "0.48092416", "0.47964182", "0.47726804", "0.47632694", "0.47604266", "0.47591293", "0.47541097", "0.47477004", "0.4746026", "0.47019422", "0.47002304", "0.46875566", "0.46861207", "0.46754655", "0.46754655", "0.46702954", "0.46662503", "0.46647832", "0.4656007", "0.46494776", "0.46382004", "0.4631884", "0.4630104", "0.46227837", "0.46178707", "0.46166024", "0.46160376", "0.46146607", "0.4612361", "0.46122876", "0.46117547", "0.45974103", "0.45960507", "0.45867532", "0.4584719", "0.4584719", "0.4584543", "0.45813292", "0.45729774", "0.45702726", "0.45691073", "0.4565162", "0.45524892", "0.45374566", "0.4535234", "0.45227322", "0.45227322", "0.45227322", "0.45227322", "0.45227322", "0.45227322", "0.45227322", "0.45227322", "0.45227322", "0.45227322", "0.4522025", "0.45207062", "0.45178202", "0.4515699", "0.4515699", "0.4515699", "0.45136562", "0.45046958", "0.45015234", "0.4491608", "0.4489174", "0.44884497" ]
0.61841786
0
Returns the parades that a brotherhood have status = SUBMITTED and finalMode = true
public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Boolean getBspReconciled(){\n return bspReconciled;\n }", "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "boolean getProbables();", "public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Parade save(final Parade parade) {\n\t\tAssert.notNull(parade.getBrotherhood().getArea());\n\n\t\tAssert.notNull(parade);\n\n\t\tParade result = parade;\n\n\t\tBrotherhood brotherhood = null;\n\t\tChapter chapter = null;\n\n\t\tfinal Authority authorityBrotherhood = new Authority();\n\t\tauthorityBrotherhood.setAuthority(Authority.BROTHERHOOD);\n\t\tfinal Authority authorityChapter = new Authority();\n\t\tauthorityChapter.setAuthority(Authority.CHAPTER);\n\n\t\tif (LoginService.getPrincipal().getAuthorities().contains(authorityBrotherhood))\n\t\t\tbrotherhood = this.brotherhoodService.findByPrincipal();\n\t\telse if (LoginService.getPrincipal().getAuthorities().contains(authorityChapter)) {\n\t\t\tchapter = this.chapterService.findByPrincipal();\n\t\t\tfinal Chapter chapterCoordinatedParades = this.chapterService.findChapterByAreaId(parade.getBrotherhood().getArea().getId());\n\t\t\tAssert.isTrue(chapter.getId() == chapterCoordinatedParades.getId());\n\t\t}\n\t\tAssert.isTrue(brotherhood != null || chapter != null);\n\n\t\t/*\n\t\t * Aqu� pasamos el status a SUBMITTED si se le pusiera en el create o el edit\n\t\t * el FINAL MODE a TRUE\n\t\t */\n\t\tif (parade.getId() != 0) {\n\t\t\tfinal Parade paradeBBDD = this.findOne(parade.getId());\n\t\t\t//si estaba a true ya no se puede modificar\n\t\t\tif (!LoginService.getPrincipal().getAuthorities().contains(authorityChapter))\n\t\t\t\tAssert.isTrue(paradeBBDD.getFinalMode() == false);\n\n\t\t\t//si estaba a false el de BBDD y ahora se ha puesto a true\n\t\t\tif (parade.getStatus() == null && parade.getFinalMode() == true)\n\t\t\t\tparade.setStatus(\"SUBMITTED\");\n\n\t\t\tif (parade.getStatus() == \"REJECTED\")\n\t\t\t\tAssert.isTrue(parade.getRejectedComment() != null && parade.getRejectedComment() != \"\");\n\n\t\t} else if (parade.getId() == 0 && parade.getFinalMode() == true)\n\t\t\tparade.setStatus(\"SUBMITTED\");\n\t\tfinal Date currentMoment = new Date(System.currentTimeMillis() - 1000);\n\t\tAssert.isTrue(parade.getOrganisationMoment().after(currentMoment));\n\n\t\tresult = this.paradeRepository.save(parade);\n\n\t\treturn result;\n\n\t}", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "public boolean getIsCompletingGame()\r\n {\r\n return this.isCompletingGame; \r\n }", "@Override\n\tpublic boolean getStatus() {\n\t\treturn _candidate.getStatus();\n\t}", "public boolean getStatus() {\n return (rnd.nextInt(obstructionChanceBound) <= obstructionChance);\n }", "boolean getIsComplete();", "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "boolean getAccepted();", "public boolean isParked() {\r\n\t\tif (vehicleState == \"parked\") {\r\n\t\t\twasParked = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean getFinalProne() {\n if (getLastStep() != null) {\n return getLastStep().isProne();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().isProne();\n }", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "public boolean GetWaitingFlag() { return this.mWaitingF; }", "@Override\n public ParticipationStatus getParticipationStatus() { return participationStatus; }", "public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus();\n\t}", "public abstract boolean isComplete();", "public Boolean proactiveDetection() {\n return this.proactiveDetection;\n }", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean isComplete();", "boolean isComplete();", "private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "public synchronized boolean othersWaiting(Process p, int t){\n if(queue.length < 2){\n if((queue[0].getId() != p.getId() && readyPro(queue[0],t))){\n return true;\n }\n }else {\n if((queue[0].getId() != p.getId() && readyPro(queue[0],t)) || (queue[1].getId() != p.getId() && readyPro(queue[1],t))){\n return true;\n }\n }\n return false;\n }", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "boolean hasIsComplete();", "boolean hasIsComplete();", "boolean isWaiting()\n {\n return waitFlags != 0;\n }", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "boolean getMission();", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "public boolean isComplete();", "public int getActivePens(){\n return this.mFarm.getActivePens();\n }", "boolean isCameraBurstPref();", "public boolean getSplitInProgressTasks()\r\n {\r\n return (m_splitInProgressTasks);\r\n }", "public boolean getHasMoreJobs() ;", "boolean getMortgaged();", "public boolean isProved() {\n\t\treturn proveState == PROVED;\n\t}", "public boolean is_completed();", "public boolean inProgress(){return (this.currentTicket != null);}", "static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }", "public BagSubject getDecision(PBFTBag bag){\n /* If the preprepare is null then do nothing.*/\n boolean completed = false;\n if(bag == null) return null;\n\n /* Get composite key of the prepare. */\n Long entryKey = bag.getSequenceNumber();\n Object lServerID = getLocalServerID();\n\n /* If the entry key is not null then it'll update state. */\n if(entryKey != null) {\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(BAGQUORUMSTORE, entryKey.toString());\n if(q == null){\n int f = getServiceBFTResilience();\n q = new SoftQuorum(2 * f + 1);\n getStateLog().getQuorumTable(BAGQUORUMSTORE).put(entryKey.toString(), q);\n }\n\n /*TODO: evaluate if \"q.getCurrentDecision()\" is a better implementation */\n BagSubject decision = (BagSubject) q.decide();\n\n if(decision != null){\n completed = true;\n }\n\n q.add(new Vote(bag.getReplicaID(), new BagSubject(bag)));\n\n if(decision == null){\n decision = (BagSubject) q.decide();\n }\n\n JDSUtility.debug(\"[PBFTServer:getDecision(bag)] s\" + lServerID +\", at time \" + getClockValue() + \", updated a entry in its log for \" + bag);\n\n if(!completed && decision != null){\n long seqn = (Long) decision.getInfo(BagSubject.SEQUENCENUMBER);\n JDSUtility.debug(\"[PBFTServer:getDecision(bag] s\" + lServerID + \", at time \" + getClockValue() + \", completed quorum for bag with EXEC-SEQ (\" + seqn + \")\");\n return decision;\n }\n }\n return null;\n }", "public static List<Parcel> getLessOrMoreBambooParcel(List<Parcel> parcels, GardenerGoal goal, boolean isMore, Board board) {\n List<Parcel> parcelsFound = new ArrayList<>();\n\n for (Parcel parcel : parcels) {\n if (BoardUtils.isParcelIrrigated(board, parcel) && parcel.getColor() == goal.getColor() && (goal.getFacility() == Facility.WHATEVER_FACILITY || parcel.getFacility() == goal.getFacility())) {\n if (isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() > goal.getSize() + 1) {\n parcelsFound.add(parcel);\n } else if (!isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() < goal.getSize() - 1) {\n parcelsFound.add(parcel);\n }\n }\n }\n return parcelsFound;\n }", "public boolean getComingMore() {\n return (comingVehicle+depoVehicle) <= getPart().intValue()+1;\n }", "boolean isSetObjectives();", "private boolean finalMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n (beliefs.puzzle[2][1] == 10) &&\n (beliefs.puzzle[2][2] == 11) &&\n (beliefs.puzzle[2][3] == 12) &&\n (beliefs.puzzle[3][1] == 14) &&\n (beliefs.puzzle[3][2] == 15)\n\n )\n return true;\n else\n return false;\n }", "boolean hasParking();", "private List getWaitingDoctors() {\n\t\tVector v = new Vector();\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\tif (_doctors[i].isWaiting()) {\n\t\t\t\tv.add(_doctors[i]);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(v);\n\t\treturn v;\n\t}", "public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "private meterMaidPerception getPerceptions() {\n\t\t\r\n\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\r\n\t\tACLMessage msg = receive(mt);\r\n\t\tif (msg != null && msg.getContent() != null) {\r\n\t\t\tString[] perceptions = msg.getContent().split(\";\");\r\n\t\t\tif (perceptions.length < 2)\r\n\t\t\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t\t\tcar = perceptions[1];\r\n\t\t\tif (CAR_PASSED_ON_RED_SIGN.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_IGNORED_RED_SIGN;\r\n\t\t\telse if (CAR_IN_ZEBRA_CROSSING.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_STOP_ON_ZEBRA_CROSSING;\r\n\t\t}\r\n\t\t\r\n\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t}", "boolean isSetParlay();", "public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }", "protected List<Perceivable> getPerception() {\n\t\treturn body.getPerception();\n\t}", "@Override\n\tpublic boolean getIsFinal() {\n\t\treturn _esfTournament.getIsFinal();\n\t}", "boolean isAccepting();", "java.util.Optional<Boolean> getSeparate();", "boolean hasPokers();", "boolean hasPokers();", "public abstract boolean isCompleted();", "protected boolean isFinished() {\n\t\treturn Robot.gearIntake.getPegSwitch();\n\t}", "public int getBrojParcele() {\n return brojParcele;\n }", "boolean getParlay();", "protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }", "public boolean canSubmit()\n {\n return (_state == ActivityState.RUNNING);\n }", "public synchronized ProcessingActivity getPorcessingActivity(){\n\t\treturn processingActivity;\n\t}", "private void carsReadyToLeave(){\n\t Car car = cpview.getFirstLeavingCar();\n\t while (car!=null) {\n\t \tif (car.getHasToPay()){\n\t\t car.setIsPaying(true);\n\t\t paymentCarQueue.addCar(car);\n\t \t}\n\t \telse {\n\t \t\tcarLeavesSpot(car);\n\t \t}\n\t car = cpview.getFirstLeavingCar();\n\t }\n\t }", "boolean isSetProbables();", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "boolean hasMission();", "boolean isCompleted();", "public Deplacement getProchainMouvement();", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn Math.abs(elevator.getWristPosition() - elevator.getWristStages()[elevator.getWristStage()]) < Math.PI/18 && !elevator.isRunning(ElevatorSubsystem.Follower.ELEVATOR);\r\n\t}", "public boolean isComplete() {\r\n for (GoalInterface g: goals) {\r\n if (type == GoalType.AND && !g.isComplete()) {\r\n return false;\r\n } else if (type == GoalType.OR && g.isComplete()) {\r\n return true;\r\n }\r\n }\r\n\r\n if (type == GoalType.AND) {\r\n return true;\r\n } else if (type == GoalType.OR) {\r\n return false;\r\n }\r\n return false;\r\n }", "Boolean getStandAlone();", "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isComplete()\n {\n return getStatus() == STATUS_COMPLETE;\n }", "public boolean getCompleteCPAOfConcurrency() {\r\n\t\treturn this.completeCPA;\r\n\t}", "public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }", "@Override\n public String getPeopleStatusAttending() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getPeopleStatusAttending\");\n }\n\n List<ConnectathonParticipant> listOfCP = null;\n Integer iVendor = 0;\n Integer iMonitor = 0;\n Integer iCommittee = 0;\n Integer iVisitor = 0;\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n\n EntityManager em = EntityManagerService.provideEntityManager();\n\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n return \"Vendor\";\n } else {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n listOfCP = query.getResultList();\n }\n } else {\n return \"Vendor\";\n }\n\n for (ConnectathonParticipant cp : listOfCP) {\n if (cp.getConnectathonParticipantStatus().getId().compareTo(ConnectathonParticipantStatus.STATUS_VENDOR) == 0) {\n iVendor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_MONITOR) == 0) {\n iMonitor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_COMMITTEE) == 0) {\n iCommittee++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_VISITOR) == 0) {\n iVisitor++;\n } else {\n LOG.error(\"getPeopleStatusAttending - Status not found !!!!\"\n + cp.getConnectathonParticipantStatus().getId());\n }\n }\n\n String returnedString = \"<br/>\" + iVendor + \" Vendors<br/> \" + iMonitor + \" Monitors<br/> \" + iCommittee + \" Committees<br/> \"\n + iVisitor + \" Visitors\";\n\n return returnedString;\n }", "@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }", "Boolean getAccruedInterest();", "public Boolean getActivaBotonGuardar() {\n return activaBotonGuardar;\n }", "public Boolean getWinner(){\n return spil.erSpilletVundet();\n }", "public String getCreativeApprovalStatus() {\r\n return creativeApprovalStatus;\r\n }", "public boolean getComplete(){\n return localComplete;\n }", "Boolean getPartiallyCorrect();", "public boolean getAccepted()\n {\n return accepted;\n }", "public boolean isDone(){\n return status;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isParking();" ]
[ "0.52210444", "0.5154069", "0.5146447", "0.5108511", "0.510372", "0.5051766", "0.50388676", "0.4997354", "0.49579936", "0.49568498", "0.4922886", "0.4902318", "0.48956317", "0.48700833", "0.48667428", "0.48496172", "0.48476464", "0.47875535", "0.47738695", "0.47732225", "0.47726384", "0.47704068", "0.47636828", "0.471905", "0.47066575", "0.47010273", "0.468845", "0.46538842", "0.46538842", "0.46517384", "0.46507016", "0.46474954", "0.46474677", "0.46461418", "0.46461418", "0.46447036", "0.46390906", "0.4624104", "0.4619803", "0.4615927", "0.46115518", "0.46002325", "0.4598648", "0.45963317", "0.45930997", "0.4579684", "0.45777488", "0.45747542", "0.4574445", "0.45667264", "0.4562647", "0.4558338", "0.45544174", "0.45500857", "0.45492935", "0.45487478", "0.45427555", "0.4534951", "0.45132512", "0.4512262", "0.4511628", "0.45080608", "0.45078906", "0.45028406", "0.45023224", "0.45022047", "0.45022047", "0.44933295", "0.44896373", "0.44866183", "0.44845134", "0.4482179", "0.4480031", "0.44747093", "0.44670743", "0.44601732", "0.44544077", "0.44527972", "0.4445458", "0.44437107", "0.44386783", "0.44380668", "0.44346103", "0.44342348", "0.44286492", "0.442804", "0.44269693", "0.44222102", "0.44220978", "0.44193155", "0.44165668", "0.44153064", "0.4415231", "0.4412378", "0.44087124", "0.4408201", "0.44078103", "0.4403647", "0.43889126", "0.43888912" ]
0.54612947
0
Returns the parades that a brotherhood have status = REJECTED and finalMode = true
public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean getProbables();", "public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "private meterMaidPerception getPerceptions() {\n\t\t\r\n\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\r\n\t\tACLMessage msg = receive(mt);\r\n\t\tif (msg != null && msg.getContent() != null) {\r\n\t\t\tString[] perceptions = msg.getContent().split(\";\");\r\n\t\t\tif (perceptions.length < 2)\r\n\t\t\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t\t\tcar = perceptions[1];\r\n\t\t\tif (CAR_PASSED_ON_RED_SIGN.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_IGNORED_RED_SIGN;\r\n\t\t\telse if (CAR_IN_ZEBRA_CROSSING.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_STOP_ON_ZEBRA_CROSSING;\r\n\t\t}\r\n\t\t\r\n\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public boolean isNonLivrer() {\n\t\treturn getStatut().equals(StatusBonPreparation.NON_LIVRER);\n\t}", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public boolean getRejected() {\n return rejected;\n }", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "boolean getOptOutOnlineStatus();", "public boolean getRejected() {\n return rejected;\n }", "public boolean hasRejected() {\n return fieldSetFlags()[19];\n }", "public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public boolean isUnproved() {\n\t\treturn proveState == UNPROVED;\n\t}", "public boolean getStatus() {\n return (rnd.nextInt(obstructionChanceBound) <= obstructionChance);\n }", "public static List<Parcel> getLessOrMoreBambooParcel(List<Parcel> parcels, GardenerGoal goal, boolean isMore, Board board) {\n List<Parcel> parcelsFound = new ArrayList<>();\n\n for (Parcel parcel : parcels) {\n if (BoardUtils.isParcelIrrigated(board, parcel) && parcel.getColor() == goal.getColor() && (goal.getFacility() == Facility.WHATEVER_FACILITY || parcel.getFacility() == goal.getFacility())) {\n if (isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() > goal.getSize() + 1) {\n parcelsFound.add(parcel);\n } else if (!isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() < goal.getSize() - 1) {\n parcelsFound.add(parcel);\n }\n }\n }\n return parcelsFound;\n }", "public Boolean getBspReconciled(){\n return bspReconciled;\n }", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "private List<RandomVariable> getNonEvidenceVariables(BayesianNetwork bn, Assignment e){\n List<RandomVariable> vars = bn.getVariableListTopologicallySorted();\n // Init new list\n List<RandomVariable> nonEvidenceVars = new ArrayList<>();\n\n for (RandomVariable X: vars){\n // If e does not contain the variable, add to list\n if (!e.containsKey(X)){\n nonEvidenceVars.add(X);\n\n }\n }\n\n return nonEvidenceVars;\n\n }", "public String getREJECTED_BY() {\r\n return REJECTED_BY;\r\n }", "public String getREJECTED_BY() {\r\n return REJECTED_BY;\r\n }", "protected List<Perceivable> getPerception() {\n\t\treturn body.getPerception();\n\t}", "public static boolean canPrune() {\n\t\tboolean result = false;\n\t\tint projectedTotal = 0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<jobsChosen){\n\t\t\tprojectedTotal += board[i][currentCombo[i]];\n\t\t\ti++;\n\t\t}\n\t\twhile(i<numPeople){\n\t\t\tprojectedTotal += bestPossibleCombination[i];\n\t\t\ti++;\n\t\t}\n\t\tif(projectedTotal<bestTotal){//Cant be greater than current Best Total\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "Collection<String> getPossibleDefeatConditions();", "public String rechercheConclusionMaintenanceprevPoteaux(int numeroBatiment) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Preventive> maintenancepreventive = em.createQuery(\"FROM Preventive m where m.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\t\tString conclusion=\"--\";\n\t\t\tint test,i;\n\t\t\ttest=0;\n\t\t\ti=maintenancepreventive.size()-1;\n\t\t\tif(maintenancepreventive.size()!=0){\n\t\t\t\twhile(test==0 && i>-1) {\n\t\t\t\t\tif(maintenancepreventive.get(i).getOrgane() instanceof Poteaux ){\n\t\t\t\t\t\ttest=1;\n\t\t\t\t\t}\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t\tif(test==1)\n\t\t\t\t\tconclusion=maintenancepreventive.get(i+1).getConclusion();\n\t\t\t}\n\t\t\treturn conclusion;\n\t\t}", "private void carsReadyToLeave(){\n\t Car car = cpview.getFirstLeavingCar();\n\t while (car!=null) {\n\t \tif (car.getHasToPay()){\n\t\t car.setIsPaying(true);\n\t\t paymentCarQueue.addCar(car);\n\t \t}\n\t \telse {\n\t \t\tcarLeavesSpot(car);\n\t \t}\n\t car = cpview.getFirstLeavingCar();\n\t }\n\t }", "public EtatDuJeu verifierCondition() {\r\n for (Objet obj : this.objets) {\r\n if (!this.vivant.possede(obj)) {\r\n return EtatDuJeu.ENCOURS;\r\n }\r\n }\r\n return this.getEtatConditionVerifiee();\r\n }", "public java.lang.Boolean getRejected () {\n\t\treturn rejected;\n\t}", "@Override\n\tpublic List<Parking> vIPNonAvailableParking() {\n\t\treturn parkingRepository.vIPNonAvailableParking();\n\t}", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "public int getActivePens(){\n return this.mFarm.getActivePens();\n }", "public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "private void warResult() {\r\n // Get number of survivors alive\r\n int survivorCount = safeCount(survivors);\r\n if (survivorCount == 0) {\r\n System.out.println(\"None of the survivors made it.\");\r\n\t\t}\r\n else {\r\n System.out.println(\"It seems \" + survivorCount + \" have made it to safety.\");\r\n\t\t}\r\n }", "public ArrayList<Chambre> chambresNonVides() {\n\t\tArrayList<Chambre> chambreRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.isReserve()) {\n\t\t\t\tchambreRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreRes;\n\t}", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "private void discardNecklaceIfVisible(){\n CardDealer cardDealer = CardDealer.getInstance();\n Treasure necklace = null;\n for (Treasure t: this.visibleTreasures){\n if (t.getType() == TreasureKind.NECKLACE){\n necklace = t;\n }\n }\n if (necklace != null){\n this.visibleTreasures.remove(necklace);\n cardDealer.giveTreasureBack(necklace);\n }\n }", "private boolean isPregnant() {\n return this.hasCapability(LifeStage.PREGNANT);\n }", "public ArrayList<Chambre> chambresVides() {\n\t\tArrayList<Chambre> chambreNonRes = new ArrayList<Chambre>();\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(!chambre.isReserve()) {\n\t\t\t\tchambreNonRes.add(chambre);\n\t\t\t}\n\t\t}\n\t\treturn chambreNonRes;\n\t}", "public List<Card> getDiscardPile() {\r\n return discardPile;\r\n }", "public List<Res_Agente_P> getAgentesParticipanCarreraP(int efiscal, int p){\r\n\t\treturn resAgenteDAO.getAgentesParticipanCarreraP(efiscal, p);\r\n\t}", "boolean hasPokers();", "boolean hasPokers();", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "boolean isCanSeeFriendlyInvisibles();", "public Collection<Parade> findRejectedByArea(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tthis.areaService.checkPrincipalArea(id);\n\n\t\tparades = this.paradeRepository.findRejectedByArea(id);\n\n\t\treturn parades;\n\t}", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }", "org.hl7.fhir.Boolean getInactive();", "@Override\n\tpublic List<Parking> NotAvailableParking() {\n\t\treturn parkingRepository.NotAvailableParking();\n\t}", "public void filterClosedConvoysinMerge(List<Convoy> VpccResult, List<Convoy> VpccTrue){\n\t\t\t\tList<Convoy> toRemove=new ArrayList<Convoy>();\n\t\t\t\tfor(Convoy v:VpccTrue){\n\t\t\t\t\tif(VpccResult.contains(v)){\n\t\t\t\t\t\ttoRemove.add(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"To Remove size = \" + toRemove.size());\n\t\t\t\tint sizeVpcc=VpccTrue.size();\n\t\t\t\tSystem.out.println(\"Vpcc Size before Filtering = \"+sizeVpcc);\n\t\t\t\tint sizeVpccn=VpccResult.size();\n\t\t\t\tSystem.out.println(\"Vpccn Size before Filtering = \"+sizeVpccn);\n\t\t\t\tfor(Convoy v:toRemove){\n\t\t\t\t\tsizeVpcc=VpccTrue.size();\n\t\t\t\t\tsizeVpccn=VpccResult.size();\n\t\t\t\t\tVpccResult.remove(v);\n\t\t\t\t\tVpccTrue.remove(v);\n\t\t\t\t\tif(VpccTrue.size()-sizeVpcc>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpcc true\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t\tif(VpccResult.size()-sizeVpccn>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpccn Result\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Vpcc Size after Filtering = \"+VpccTrue.size());\n\t\t\t\tSystem.out.println(\"Vpccn Size after Filtering = \"+VpccResult.size());\n\t\t\t\tSystem.out.println(\"Convoys closed = \"+(VpccResult.size()-VpccTrue.size()));\n\t\t\t\tthis.VpccVcoda=VpccTrue;\n\t\t\t\tthis.VpccMerge=VpccResult;\n\t}", "public String getRejector() {\n return rejector;\n }", "public Deplacement getProchainMouvement();", "private int computeHighestServityFlag(IResource res) {\n \t\tIMarker[] pbmMarkers = null; \n \t\ttry {\n \t\t\tpbmMarkers = res.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);\n \t\t} catch (CoreException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tint severity = -1; // none\n \t\tif (pbmMarkers != null) {\n \t\t\tfor (int i = 0; i < pbmMarkers.length; i++) {\n \t\t\t\tIMarker curr = pbmMarkers[i];\n \t\t\t\tseverity = curr.getAttribute(IMarker.SEVERITY, -1);\n \t\t\t\tif (severity == IMarker.SEVERITY_ERROR)\n \t\t\t\t\treturn IMarker.SEVERITY_ERROR;\t\t\t\t\t\t\t\n \t\t\t}\n \t\t}\t\t\n \t\treturn severity;\n \t}", "private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "public Boolean proactiveDetection() {\n return this.proactiveDetection;\n }", "public List<Agent> findAgentsActifs() {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') ORDER BY A.personne.name\");\n List<Agent> list = q.getResultList();\n return list;\n }", "private boolean isDiscarded(Object obj) {\n if (obj instanceof Item) {\n return isDiscardedStatus(((Item) obj).getStatus());\n } else if (obj instanceof Container) {\n return isDiscardedStatus(((Container) obj).getStatus());\n } else if (obj instanceof Space) {\n return isDiscardedStatus(((Space) obj).getStatus());\n } else if (obj instanceof MetadataProfile) {\n return isDiscardedStatus(((MetadataProfile) obj).getStatus());\n } else if (obj instanceof Person) {\n return false;\n } else if (obj instanceof Organization) {\n return false;\n }\n return false;\n }", "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "@Override\n\tpublic boolean rejectPartner(Partner partner) {\n\t\treturn false;\n\t}", "public String rechercheConclusionVerificationPoteaux(int numeroBatiment) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Verification> verifications = em.createQuery(\"FROM Verification v where v.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\tint test,i;\n\t\ttest=0;\n\t\ti=verifications.size()-1;\n\t\tString conclusion=\"--\";\n\t\tif(verifications.size()!=0){\n\t\t\twhile(test==0 && i>-1) {\n\t\t\t\tif(verifications.get(i).getOrgane() instanceof Poteaux ){\n\t\t\t\t\ttest=1;\n\t\t\t\t}\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif(test==1)\n\t\t\t\tconclusion=verifications.get(i+1).getConclusion();\n\t\t}\n\t\treturn conclusion;\n\t}", "private boolean isRemovableDecInReachableParents(Node decision, Node valueNode) {\n NodeList reachableParents;\n boolean removable = true;\n\n if (valueNode.getKindOfNode() == Node.UTILITY) {\n //Utility nodes hasn't got any children, so the decision isn't removable\n //in its parents.\n removable = false;\n } else {\n //It must be able to remove the decision in all the reachable parents.\n reachableParents = getReachableParents(decision, valueNode);\n removable = true;\n for (int i = 0; (i < reachableParents.size()) && removable; i++) {\n removable = (isRemovableDecInValueNode(decision, reachableParents.elementAt(i)));\n }\n }\n\n return removable;\n }", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean getVanished() {\n\t\treturn this.vanished;\n\t}", "public boolean getResidence() { return resident; }", "public boolean isDiscarded() {\r\n return discarded;\r\n }", "@Override\n\tpublic List<Parking> employeeaNonAvailableParking() {\n\t\treturn parkingRepository.employeeaNonAvailableParking();\n\t}", "public boolean filterPrimesse(Map<Variable, String> assigne, Map<Variable, ArrayList<String>> nonAssigne) {\n\n ArrayList<Variable> InNonAss = Tools.variableInConstraint(this.premisse, nonAssigne); // recuperation des varable de la premise qui ne sont par encore assigne \n ArrayList<Variable> InAss = Tools.variableConstraintInAssigne(assigne, this.premisse); // recuperation des varable de la premise qui sont deja assigne \n \n \n for (Variable v : this.getScope()) {\n // on verrification de la presente de tout la varriable scope\n if (!Tools.inArrayList(InAss, v) && !Tools.inArrayList(InNonAss, v)) {\n return false;\n }\n }\n\n if (InNonAss.isEmpty() || InAss.isEmpty()) { // cas on aussi variable ou tout les varriable son asigne \n\n return false;\n }\n\n String valeurVariablePremise;\n\n for (int i = 0; i < InAss.size(); i++) {// on veriffie que les varaible de les variable deja assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InAss.get(i));\n\n if (!Tools.getValue(assigne, InAss.get(i)).equals(valeurVariablePremise)) {\n\n Tools.cleanDomainFritrage(nonAssigne, InNonAss);\n\n return true;\n }\n\n }\n\n boolean filtrage = false;\n\n for (int j = 0; j < InNonAss.size(); j++) { // Reduction des domain des varaible si les non assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InNonAss.get(j)); // recuperation de la valeur de variable non asigne dans la premisse \n\n for (int k = 0; k < nonAssigne.get(InNonAss.get(j)).size(); k++) { // filttrage du domaine \n\n if (!nonAssigne.get(InNonAss.get(j)).get(k).equals(valeurVariablePremise)) {\n\n nonAssigne.get(InNonAss.get(j)).remove(k);\n\n k--;\n\n filtrage = true;\n\n }\n\n }\n\n }\n\n return filtrage;\n }", "public boolean getBlocked() { return this.blocked; }", "private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }", "boolean getAccepted();", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeNemesisRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && (((Wall) simo).getType() == 2||((Wall) simo).getType() == 3));\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 10){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}", "private List getWaitingDoctors() {\n\t\tVector v = new Vector();\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\tif (_doctors[i].isWaiting()) {\n\t\t\t\tv.add(_doctors[i]);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(v);\n\t\treturn v;\n\t}", "@External(readonly = true)\n\tpublic List<Address> get_approved_games() {\n\t\t\n\t\t Address[] _proposal_list = new Address[this.proposal_list.size()];\n\t\t int j = 0;\n\t\t for (int i = 0; i< this.proposal_list.size();i++ ) {\n\t\t\t Address address = this.proposal_list.get(i);\n\t\t\t String gameApproved = this.status_data.get(address);\n\t\t\t if (gameApproved!=null && gameApproved.equals(\"gameApproved\") ) {\n\t\t\t\t _proposal_list[j] = address;\n\t\t\t\t j++;\n\t\t\t }\n\t\t }\n\t\t Address[] tmp = new Address[j];\n\t\t System.arraycopy(_proposal_list, 0, tmp, 0, j);\n\t\t return List.of(tmp);\n\t}", "public synchronized boolean othersWaiting(Process p, int t){\n if(queue.length < 2){\n if((queue[0].getId() != p.getId() && readyPro(queue[0],t))){\n return true;\n }\n }else {\n if((queue[0].getId() != p.getId() && readyPro(queue[0],t)) || (queue[1].getId() != p.getId() && readyPro(queue[1],t))){\n return true;\n }\n }\n return false;\n }", "org.apache.xmlbeans.XmlBoolean xgetProbables();", "public void setUnproved() {\n\t\tproveState = UNPROVED;\n\t}", "Boolean getStandAlone();", "public Collection<Parade> findParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public int getBrojParcele() {\n return brojParcele;\n }", "@Override\n\tpublic List<Parking> vIPOutParking() {\n\t\treturn parkingRepository.vIPOutParking();\n\t}", "private List<Integer>getDead(List<Box> Alive){\n List<Integer> alive = new ArrayList<>();\n List<Integer> dead = new ArrayList<>();\n\n for(Box box : Alive){\n alive.add(box.getId());\n }\n\n for(int i=1;i<17;i++){\n if(!alive.contains(i)){\n dead.add(i);\n }\n }\n\n return dead;\n }", "public Boolean getBlocked() {\n return this.blocked;\n }", "public visibleObject[][] getVisibility() {\n\n\t\tvisibleObject visiblility[][] = new GridCell.visibleObject[2 * visionRange + 1][2 * visionRange + 1];\n\t\tGridCell[][] cellArray = MazeGame.worldGraph.cellArray;\n\n\t\tfor (int i = (-visionRange); i < visionRange + 1; i++) {\n\t\t\tfor (int j = (-visionRange); j < visionRange + 1; j++) {\n\n\t\t\t\tGridCell cell = MazeGame.worldGraph.cellArray[currentCell.rowIndex + i][currentCell.columnIndex + j];\n\n\t\t\t\tfor (int k = currentCell.rowIndex - visionRange; k < currentCell.rowIndex + visionRange + 1; k++) {\n\t\t\t\t\tfor (int l = (currentCell.columnIndex - visionRange); l < currentCell.columnIndex + visionRange\n\t\t\t\t\t\t\t+ 1; l++) {\n\n\t\t\t\t\t\tif (!cellArray[k][l].hasEastEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + j + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!cellArray[k][l].hasSouthEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(currentCell.columnIndex + j + 0.5, currentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, currentCell.rowIndex + 0.5, cellArray[k][l].columnIndex,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex +1 , cellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tif(visiblility[i + visionRange][j + visionRange] != visibleObject.NULL){\n//\n//\t\t\t\t\tif (cell.cheese != null) {\n//\t\t\t\t\t\tif (cell.jerry != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY_AND_CHEESE;\n//\t\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM_AND_CHEESE;\n//\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.CHEESE;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} else if (cell.jerry != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY;\n//\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM;\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.EMPTY_SPACE;\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.visiblility = visiblility;\n\t\treturn visiblility;\n\t}", "boolean isSetProbables();", "@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}", "public int askPermitToGetBetweenVisible();", "private void carsReadyToLeave(){\n\t\t\tCar car = getFirstLeavingCar();\r\n\t\t\twhile (car!=null) {\r\n\t\t\t\tif (car.getHasToPay()){\r\n\t\t\t\t\tcar.setIsPaying(true);\r\n\t\t\t\t\tpaymentCarQueue.addCar(car);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcarLeavesSpot(car);\r\n\t\t\t\t}\r\n\t\t\t\tcar = getFirstLeavingCar();\r\n\t\t\t}\r\n\t\t}", "java.util.Optional<Boolean> getSeparate();", "public ArrayList<String> deadPersonsFalseGuess(Guess currGuess) {\n ArrayList<String> deadPerson = new ArrayList<String>();\n\n for (Person person : config.personList) {\n for (HashMap.Entry<String, String> entry : person.getPersonAttValSet().entrySet()) {\n if (entry.getKey().equals(currGuess.getAttribute()) && entry.getValue().equals(currGuess.getValue())) {\n deadPerson.add(person.getName());\n }\n }\n }\n\n return deadPerson;\n\n }", "public Boolean getWinner(){\n return spil.erSpilletVundet();\n }", "public Pile getDiscardPile(){\n return piles.getDiscardPile();\n }", "public Wall[] getExteriorWalls() {\n/* 3497 */ if (this.walls != null) {\n/* */ \n/* 3499 */ Set<Wall> wallsSet = new HashSet<>();\n/* 3500 */ for (Wall w : this.walls) {\n/* */ \n/* 3502 */ if (!w.isIndoor())\n/* 3503 */ wallsSet.add(w); \n/* */ } \n/* 3505 */ return wallsSet.<Wall>toArray(new Wall[wallsSet.size()]);\n/* */ } \n/* */ \n/* 3508 */ return emptyWalls;\n/* */ }", "protected Permissions getExcludedPolicy(){\n\treturn stateIs(INSERVICE_STATE) ? this.excludedPermissions : null;\n }", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "boolean getParlay();" ]
[ "0.5684882", "0.55370736", "0.5335168", "0.5320995", "0.51156557", "0.5066207", "0.49946442", "0.49835533", "0.49796724", "0.4967848", "0.4935276", "0.49265212", "0.4913118", "0.4896054", "0.48866478", "0.4865974", "0.48397884", "0.48302186", "0.4780385", "0.4746059", "0.47240925", "0.4704569", "0.47024298", "0.4688249", "0.4688249", "0.46757314", "0.46752438", "0.4674492", "0.46740496", "0.46690315", "0.46404564", "0.46379516", "0.46365595", "0.46346882", "0.46305358", "0.46298546", "0.4626608", "0.46068966", "0.45932072", "0.45850876", "0.45776093", "0.45765042", "0.45760298", "0.45700482", "0.45637596", "0.45637596", "0.45606774", "0.45577016", "0.45531145", "0.45460758", "0.4542583", "0.45416155", "0.45386967", "0.45336878", "0.45328596", "0.45302287", "0.4527256", "0.45208514", "0.45181963", "0.45179108", "0.45177865", "0.45149618", "0.4514044", "0.45133868", "0.45124945", "0.45108134", "0.45066965", "0.4503759", "0.44996884", "0.44986486", "0.44976342", "0.44924498", "0.44922295", "0.44918486", "0.44793522", "0.44780418", "0.44702876", "0.4465069", "0.4458223", "0.44573283", "0.44565594", "0.44527477", "0.44516465", "0.44514707", "0.44487956", "0.44466", "0.4446448", "0.4445849", "0.44431683", "0.44319537", "0.44290754", "0.44278684", "0.44267488", "0.4424018", "0.44216892", "0.44207498", "0.44191793", "0.4418388", "0.44175515", "0.44136783" ]
0.5955483
0
Returns the parades that a brotherhood have status = ACCEPTED and finalMode = true
public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) { Collection<Parade> parades; parades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean getAccepted();", "@Override\n\tpublic boolean getStatus() {\n\t\treturn _candidate.getStatus();\n\t}", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "public boolean getAccepted()\n {\n return accepted;\n }", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus();\n\t}", "public CandidateValue getStatusCVs() {\n\n return statusCVs;\n }", "public boolean getAccepted() {\n return accepted_;\n }", "public String getIsPoaAccepted() {\n\t\treturn isPoaAccepted;\n\t}", "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "public boolean getAccepted() {\n return accepted_;\n }", "com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();", "private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }", "public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "cosmos.gov.v1beta1.ProposalStatus getStatus();", "sawtooth.sdk.protobuf.ConsensusBroadcastResponse.Status getStatus();", "public Parade save(final Parade parade) {\n\t\tAssert.notNull(parade.getBrotherhood().getArea());\n\n\t\tAssert.notNull(parade);\n\n\t\tParade result = parade;\n\n\t\tBrotherhood brotherhood = null;\n\t\tChapter chapter = null;\n\n\t\tfinal Authority authorityBrotherhood = new Authority();\n\t\tauthorityBrotherhood.setAuthority(Authority.BROTHERHOOD);\n\t\tfinal Authority authorityChapter = new Authority();\n\t\tauthorityChapter.setAuthority(Authority.CHAPTER);\n\n\t\tif (LoginService.getPrincipal().getAuthorities().contains(authorityBrotherhood))\n\t\t\tbrotherhood = this.brotherhoodService.findByPrincipal();\n\t\telse if (LoginService.getPrincipal().getAuthorities().contains(authorityChapter)) {\n\t\t\tchapter = this.chapterService.findByPrincipal();\n\t\t\tfinal Chapter chapterCoordinatedParades = this.chapterService.findChapterByAreaId(parade.getBrotherhood().getArea().getId());\n\t\t\tAssert.isTrue(chapter.getId() == chapterCoordinatedParades.getId());\n\t\t}\n\t\tAssert.isTrue(brotherhood != null || chapter != null);\n\n\t\t/*\n\t\t * Aqu� pasamos el status a SUBMITTED si se le pusiera en el create o el edit\n\t\t * el FINAL MODE a TRUE\n\t\t */\n\t\tif (parade.getId() != 0) {\n\t\t\tfinal Parade paradeBBDD = this.findOne(parade.getId());\n\t\t\t//si estaba a true ya no se puede modificar\n\t\t\tif (!LoginService.getPrincipal().getAuthorities().contains(authorityChapter))\n\t\t\t\tAssert.isTrue(paradeBBDD.getFinalMode() == false);\n\n\t\t\t//si estaba a false el de BBDD y ahora se ha puesto a true\n\t\t\tif (parade.getStatus() == null && parade.getFinalMode() == true)\n\t\t\t\tparade.setStatus(\"SUBMITTED\");\n\n\t\t\tif (parade.getStatus() == \"REJECTED\")\n\t\t\t\tAssert.isTrue(parade.getRejectedComment() != null && parade.getRejectedComment() != \"\");\n\n\t\t} else if (parade.getId() == 0 && parade.getFinalMode() == true)\n\t\t\tparade.setStatus(\"SUBMITTED\");\n\t\tfinal Date currentMoment = new Date(System.currentTimeMillis() - 1000);\n\t\tAssert.isTrue(parade.getOrganisationMoment().after(currentMoment));\n\n\t\tresult = this.paradeRepository.save(parade);\n\n\t\treturn result;\n\n\t}", "public boolean isProved() {\n\t\treturn proveState == PROVED;\n\t}", "public Boolean getFriendAccepted() {\n return friendAccepted;\n }", "@Override\n public String getPeopleStatusAttending() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getPeopleStatusAttending\");\n }\n\n List<ConnectathonParticipant> listOfCP = null;\n Integer iVendor = 0;\n Integer iMonitor = 0;\n Integer iCommittee = 0;\n Integer iVisitor = 0;\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n\n EntityManager em = EntityManagerService.provideEntityManager();\n\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n return \"Vendor\";\n } else {\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n listOfCP = query.getResultList();\n }\n } else {\n return \"Vendor\";\n }\n\n for (ConnectathonParticipant cp : listOfCP) {\n if (cp.getConnectathonParticipantStatus().getId().compareTo(ConnectathonParticipantStatus.STATUS_VENDOR) == 0) {\n iVendor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_MONITOR) == 0) {\n iMonitor++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_COMMITTEE) == 0) {\n iCommittee++;\n } else if (cp.getConnectathonParticipantStatus().getId()\n .compareTo(ConnectathonParticipantStatus.STATUS_VISITOR) == 0) {\n iVisitor++;\n } else {\n LOG.error(\"getPeopleStatusAttending - Status not found !!!!\"\n + cp.getConnectathonParticipantStatus().getId());\n }\n }\n\n String returnedString = \"<br/>\" + iVendor + \" Vendors<br/> \" + iMonitor + \" Monitors<br/> \" + iCommittee + \" Committees<br/> \"\n + iVisitor + \" Visitors\";\n\n return returnedString;\n }", "public String getCreativeApprovalStatus() {\r\n return creativeApprovalStatus;\r\n }", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "public int getCBRStatus();", "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public List<String> getPaymentRequestInReceivingStatus();", "public boolean accepted() {\r\n\r\n return m_bAccepted;\r\n\r\n }", "public boolean getStatus() {\n return (rnd.nextInt(obstructionChanceBound) <= obstructionChance);\n }", "private List<PeerOfConsensusStatus> getPeerOfConsensusStatus(int groupId) {\n String consensusStatusJson = frontInterface.getConsensusStatus(groupId);\n if (StringUtils.isBlank(consensusStatusJson)) {\n log.debug(\"getPeerOfConsensusStatus is null: {}\", consensusStatusJson);\n return null;\n }\n List jsonArr = JsonTools.toJavaObject(consensusStatusJson, List.class);\n if (jsonArr == null) {\n log.error(\"getPeerOfConsensusStatus error\");\n throw new NodeMgrException(ConstantCode.FAIL_PARSE_JSON);\n }\n List<PeerOfConsensusStatus> dataIsList = new ArrayList<>();\n for (int i = 0; i < jsonArr.size(); i++ ) {\n if (jsonArr.get(i) instanceof List) {\n List<PeerOfConsensusStatus> tempList = JsonTools.toJavaObjectList(\n JsonTools.toJSONString(jsonArr.get(i)), PeerOfConsensusStatus.class);\n if (tempList != null) {\n dataIsList.addAll(tempList);\n } else {\n throw new NodeMgrException(ConstantCode.FAIL_PARSE_JSON);\n }\n }\n }\n return dataIsList;\n }", "boolean getProbables();", "public boolean getIsCompletingGame()\r\n {\r\n return this.isCompletingGame; \r\n }", "boolean isAccepting();", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "public boolean statusCerradura(){\n return cerradura.estado();\r\n }", "public int getBrojParcele() {\n return brojParcele;\n }", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "boolean hasCandidate();", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "boolean getOptOutOnlineStatus();", "@Override\n public ParticipationStatus getParticipationStatus() { return participationStatus; }", "Boolean getAccruedInterest();", "@External(readonly = true)\n\tpublic List<Address> get_approved_games() {\n\t\t\n\t\t Address[] _proposal_list = new Address[this.proposal_list.size()];\n\t\t int j = 0;\n\t\t for (int i = 0; i< this.proposal_list.size();i++ ) {\n\t\t\t Address address = this.proposal_list.get(i);\n\t\t\t String gameApproved = this.status_data.get(address);\n\t\t\t if (gameApproved!=null && gameApproved.equals(\"gameApproved\") ) {\n\t\t\t\t _proposal_list[j] = address;\n\t\t\t\t j++;\n\t\t\t }\n\t\t }\n\t\t Address[] tmp = new Address[j];\n\t\t System.arraycopy(_proposal_list, 0, tmp, 0, j);\n\t\t return List.of(tmp);\n\t}", "private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }", "private meterMaidPerception getPerceptions() {\n\t\t\r\n\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\r\n\t\tACLMessage msg = receive(mt);\r\n\t\tif (msg != null && msg.getContent() != null) {\r\n\t\t\tString[] perceptions = msg.getContent().split(\";\");\r\n\t\t\tif (perceptions.length < 2)\r\n\t\t\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t\t\tcar = perceptions[1];\r\n\t\t\tif (CAR_PASSED_ON_RED_SIGN.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_IGNORED_RED_SIGN;\r\n\t\t\telse if (CAR_IN_ZEBRA_CROSSING.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_STOP_ON_ZEBRA_CROSSING;\r\n\t\t}\r\n\t\t\r\n\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t}", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "public ConsolidatedPresence getConsolidatedPresence();", "public Boolean getStatus() {return status;}", "public Collection<Parade> findParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean getIsComplete();", "public Boolean proactiveDetection() {\n return this.proactiveDetection;\n }", "com.clarifai.grpc.api.status.StatusOrBuilder getStatusOrBuilder();", "VideoStatus getStatus();", "public void filterClosedConvoysinMerge(List<Convoy> VpccResult, List<Convoy> VpccTrue){\n\t\t\t\tList<Convoy> toRemove=new ArrayList<Convoy>();\n\t\t\t\tfor(Convoy v:VpccTrue){\n\t\t\t\t\tif(VpccResult.contains(v)){\n\t\t\t\t\t\ttoRemove.add(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"To Remove size = \" + toRemove.size());\n\t\t\t\tint sizeVpcc=VpccTrue.size();\n\t\t\t\tSystem.out.println(\"Vpcc Size before Filtering = \"+sizeVpcc);\n\t\t\t\tint sizeVpccn=VpccResult.size();\n\t\t\t\tSystem.out.println(\"Vpccn Size before Filtering = \"+sizeVpccn);\n\t\t\t\tfor(Convoy v:toRemove){\n\t\t\t\t\tsizeVpcc=VpccTrue.size();\n\t\t\t\t\tsizeVpccn=VpccResult.size();\n\t\t\t\t\tVpccResult.remove(v);\n\t\t\t\t\tVpccTrue.remove(v);\n\t\t\t\t\tif(VpccTrue.size()-sizeVpcc>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpcc true\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t\tif(VpccResult.size()-sizeVpccn>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpccn Result\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Vpcc Size after Filtering = \"+VpccTrue.size());\n\t\t\t\tSystem.out.println(\"Vpccn Size after Filtering = \"+VpccResult.size());\n\t\t\t\tSystem.out.println(\"Convoys closed = \"+(VpccResult.size()-VpccTrue.size()));\n\t\t\t\tthis.VpccVcoda=VpccTrue;\n\t\t\t\tthis.VpccMerge=VpccResult;\n\t}", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "java.util.Optional<Boolean> getSeparate();", "public List<Candidates> consolidatedWinner() {\n List<Candidates> winnersFinal = new ArrayList<>();\n winnersFinal.addAll(getWinningSingleCandidates());\n winnersFinal.addAll(getMultiWinnerCandidates());\n return winnersFinal;\n }", "lanyotech.cn.park.protoc.ParkingProtoc.ParkingOrBuilder getParkingOrBuilder();", "public boolean[] getStatus()\n {\n\t return online;\n }", "com.clarifai.grpc.api.status.Status getStatus();", "public String[] requisicaoPassageiros() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[1];\r\n\t\tString resultado;\r\n\t\tString passageiros[];\r\n\r\n\t\tparams[0] = \"op=7\";\r\n\r\n\t\tresultado = con.sendHTTP(params);\r\n\r\n\t\tpassageiros = resultado.split(\";\");\r\n\r\n\t\treturn passageiros;\r\n\t}", "public Boolean getBspReconciled(){\n return bspReconciled;\n }", "private static int getContinuedPartnerBonus(FriendMiniGameHistory history, String game, String p1, String p2) {\n final int gameCount = history.getGamesPlayed(game, p1, p2);\n if (gameCount > 0) {\n return 0;\n }\n // At this point, this is definitely a new game.\n final int uniqueCount = history.getTotalGamesPlayed(p1, p2, true);\n if (uniqueCount == 0) {\n // Not a CONTINUED partner, since they have never played any game together before.\n return 0;\n }\n // Minus 1 just so we can start the bonuses array at index 0.\n return CONTINUED_PARTNER_BONUSES[uniqueCount - 1];\n }", "public void getChampionBans() {\n\t\tcreateBlueBanHighlight();\n\t\tcreatePurpleBanHighlight();\n\t\tblueBan = true;\n\t\tArrayList<String> temp = CHAMPIONLIST;\n\t while (numBlueBans < 3 || numPurpleBans < 3) {\n\t \ttry {\n\t \t\tArrayList<String> aL = findChampions();\n\t \t\tif (!aL.equals(temp)) {\n\t \t\t\taddChampions(panel, aL);\n\t \t\t\ttemp = aL;\n\t \t\t}\n\t \t\tThread.sleep(100);\n\t \t} catch (InterruptedException e) {\n\t \t\tcontinue;\n\t \t}\n\t }\n\t}", "public static ArrayList<Vkladi> rascetPolozBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tSystem.out.println(\"Polozitelnii balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}", "public JSONResponse getCheckedInParticipants() {\n\t\tcheckProvided();\n\t\treturn checkedInParticipants;\n\t}", "public int getActivePens(){\n return this.mFarm.getActivePens();\n }", "protected void setProved() {\n\t\tproveState = PROVED;\n\t}", "public boolean getStatus(){\n return activestatus;\n }", "private int findBidders() {\r\n try {\r\n agents = new ArrayList<AMSAgentDescription>();\r\n //definisce i vincoli di ricerca, in questo caso tutti i risultati\r\n SearchConstraints searchConstraints = new SearchConstraints();\r\n searchConstraints.setMaxResults(Long.MAX_VALUE);\r\n //tutti gli agenti dell'AMS vengono messi in un array\r\n AMSAgentDescription [] allAgents = AMSService.search(this, new AMSAgentDescription(), searchConstraints);\r\n //scorre la lista degli agenti trovati al fine di filtrare solo quelli di interesse\r\n for (AMSAgentDescription a: allAgents) {\r\n //aggiunge l'agente partecipante all'ArrayList se e' un partecipante\r\n if(a.getName().getLocalName().contains(\"Participant\")) {\r\n agents.add(a);\r\n } \r\n }\r\n } catch (Exception e) {\r\n System.out.println( \"Problema di ricerca dell'AMS: \" + e );\r\n e.printStackTrace();\r\n }\r\n return agents.size();\r\n }", "public List<Atom> mergeComplementaryProvRelAtoms(List<Atom> discarded){\r\n\t\tList<Atom> body = getBody();\r\n\t\t//\t\tboolean someMerged = false;\r\n\t\tList<Atom> ret = new ArrayList<Atom>();\r\n\r\n\t\tfor(int i = 0; i < body.size(); ){ \r\n\t\t\tAtom a = body.get(i);\r\n\t\t\tboolean merged = false;\r\n\t\t\tfor(int j = i+1; j < body.size(); ){\r\n\t\t\t\tAtom b = body.get(j);\r\n\t\t\t\tAtom mergedAtom = mergeProvRelAtoms(a, b);\r\n\t\t\t\tif(mergedAtom != null){\r\n\t\t\t\t\t//\t\t\t\t\tbody.add(mergedAtom);\r\n\t\t\t\t\tdiscarded.add(body.get(i));\r\n\t\t\t\t\tdiscarded.add(body.get(j));\r\n\t\t\t\t\tbody.set(i, mergedAtom);\r\n\t\t\t\t\tbody.remove(j);\r\n\t\t\t\t\tret.add(mergedAtom);\r\n\t\t\t\t\t//\t\t\t\t\tbody.remove(i);\r\n\t\t\t\t\tmerged = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tj++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!merged){\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t//\t\t\tsomeMerged = someMerged || merged;\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "boolean hasPokers();", "boolean hasPokers();", "lanyotech.cn.park.protoc.ParkingProtoc.Parking getParking();", "public List<TorrentStatus> status() {\n torrent_status_vector v = alert.getStatus();\n int size = (int) v.size();\n\n List<TorrentStatus> l = new ArrayList<>(size);\n for (int i = 0; i < size; i++) {\n l.add(new TorrentStatus(v.get(i)));\n }\n\n return l;\n }", "public boolean getAccepted_tou();", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "com.polytech.spik.protocol.SpikMessages.Status getStatus();", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "List<? extends AutomaticEarlyTerminationElection> getPartyElection();", "public String rechercheConclusionVerificationPoteaux(int numeroBatiment) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Verification> verifications = em.createQuery(\"FROM Verification v where v.organe.batiment.numero = \"+numeroBatiment).getResultList();\n\t\tint test,i;\n\t\ttest=0;\n\t\ti=verifications.size()-1;\n\t\tString conclusion=\"--\";\n\t\tif(verifications.size()!=0){\n\t\t\twhile(test==0 && i>-1) {\n\t\t\t\tif(verifications.get(i).getOrgane() instanceof Poteaux ){\n\t\t\t\t\ttest=1;\n\t\t\t\t}\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tif(test==1)\n\t\t\t\tconclusion=verifications.get(i+1).getConclusion();\n\t\t}\n\t\treturn conclusion;\n\t}", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "public boolean getCVCTG_ESTADO(){\n\t\treturn this.myCvctg_estado;\n\t}", "public Boolean getWinner(){\n return spil.erSpilletVundet();\n }", "public retStatus Status(){\n // Your code here\n this.mutex.lock();\n\n retStatus r = new retStatus(State.Pending, this.values.get(this.me));\n if (done) {\n r.state = State.Decided;\n }\n\n this.mutex.unlock();\n return r;\n }", "boolean hasResidues();", "int getBattlesWon();", "public boolean esCompuesto() {\n\t\treturn !this.atributos.isEmpty();\n\t}", "public RideRequestStatus getStatus() {\n return status;\n }", "public Collection<Parade> findAcceptedByArea(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tthis.areaService.checkPrincipalArea(id);\n\n\t\tparades = this.paradeRepository.findAcceptedByArea(id);\n\n\t\treturn parades;\n\t}", "public boolean isComplete()\n {\n return getStatus() == STATUS_COMPLETE;\n }", "public boolean isEnCoursPreparation() {\n\t\treturn getStatut().equals(StatusBonPreparation.EN_COURS_PREPARATION);\n\t}", "Activite getActiviteCourante();", "boolean hasPassCardsResponse();", "public static List<Parcel> getLessOrMoreBambooParcel(List<Parcel> parcels, GardenerGoal goal, boolean isMore, Board board) {\n List<Parcel> parcelsFound = new ArrayList<>();\n\n for (Parcel parcel : parcels) {\n if (BoardUtils.isParcelIrrigated(board, parcel) && parcel.getColor() == goal.getColor() && (goal.getFacility() == Facility.WHATEVER_FACILITY || parcel.getFacility() == goal.getFacility())) {\n if (isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() > goal.getSize() + 1) {\n parcelsFound.add(parcel);\n } else if (!isMore && parcel.getBambooStack().size() > 0 && parcel.getBambooStack().size() < goal.getSize() - 1) {\n parcelsFound.add(parcel);\n }\n }\n }\n return parcelsFound;\n }", "@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}" ]
[ "0.5637658", "0.5499774", "0.5371053", "0.5319271", "0.5150947", "0.5063176", "0.5058363", "0.50361574", "0.50318605", "0.5028099", "0.50092953", "0.49974656", "0.49965268", "0.49506193", "0.49389768", "0.49075314", "0.4897068", "0.48710677", "0.48330036", "0.48311085", "0.48258024", "0.4791631", "0.47431928", "0.47383827", "0.47288027", "0.47160128", "0.47065565", "0.4695419", "0.46841422", "0.4675533", "0.4663795", "0.46378604", "0.46364087", "0.4634401", "0.4625322", "0.46055", "0.4593609", "0.45776042", "0.45718074", "0.45638305", "0.456242", "0.45555186", "0.45461532", "0.45336616", "0.4531676", "0.4512555", "0.44879222", "0.44854873", "0.44794324", "0.4469416", "0.4462823", "0.44566345", "0.44560918", "0.44428927", "0.44402033", "0.44327706", "0.44208455", "0.44195378", "0.44189012", "0.44137833", "0.44117093", "0.44110742", "0.44055626", "0.43978477", "0.4396013", "0.43955207", "0.43936774", "0.43934467", "0.43934107", "0.43901247", "0.43896577", "0.43841138", "0.4373326", "0.43721458", "0.4368056", "0.43579847", "0.43579847", "0.4352737", "0.43510014", "0.43465963", "0.43420884", "0.43420884", "0.43392387", "0.43361023", "0.43319705", "0.43262613", "0.43232182", "0.43188548", "0.43117917", "0.43113565", "0.43100405", "0.43018025", "0.43013406", "0.42988446", "0.42965156", "0.4294746", "0.4293295", "0.42884696", "0.42832604", "0.42772967" ]
0.5968793
0
Returns the parades that are in the same area and have status = SUBMITTED and finalMode = true
public Collection<Parade> findSubmittedByArea(final int id) { Collection<Parade> parades; this.areaService.checkPrincipalArea(id); parades = this.paradeRepository.findSubmittedByArea(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Parade save(final Parade parade) {\n\t\tAssert.notNull(parade.getBrotherhood().getArea());\n\n\t\tAssert.notNull(parade);\n\n\t\tParade result = parade;\n\n\t\tBrotherhood brotherhood = null;\n\t\tChapter chapter = null;\n\n\t\tfinal Authority authorityBrotherhood = new Authority();\n\t\tauthorityBrotherhood.setAuthority(Authority.BROTHERHOOD);\n\t\tfinal Authority authorityChapter = new Authority();\n\t\tauthorityChapter.setAuthority(Authority.CHAPTER);\n\n\t\tif (LoginService.getPrincipal().getAuthorities().contains(authorityBrotherhood))\n\t\t\tbrotherhood = this.brotherhoodService.findByPrincipal();\n\t\telse if (LoginService.getPrincipal().getAuthorities().contains(authorityChapter)) {\n\t\t\tchapter = this.chapterService.findByPrincipal();\n\t\t\tfinal Chapter chapterCoordinatedParades = this.chapterService.findChapterByAreaId(parade.getBrotherhood().getArea().getId());\n\t\t\tAssert.isTrue(chapter.getId() == chapterCoordinatedParades.getId());\n\t\t}\n\t\tAssert.isTrue(brotherhood != null || chapter != null);\n\n\t\t/*\n\t\t * Aqu� pasamos el status a SUBMITTED si se le pusiera en el create o el edit\n\t\t * el FINAL MODE a TRUE\n\t\t */\n\t\tif (parade.getId() != 0) {\n\t\t\tfinal Parade paradeBBDD = this.findOne(parade.getId());\n\t\t\t//si estaba a true ya no se puede modificar\n\t\t\tif (!LoginService.getPrincipal().getAuthorities().contains(authorityChapter))\n\t\t\t\tAssert.isTrue(paradeBBDD.getFinalMode() == false);\n\n\t\t\t//si estaba a false el de BBDD y ahora se ha puesto a true\n\t\t\tif (parade.getStatus() == null && parade.getFinalMode() == true)\n\t\t\t\tparade.setStatus(\"SUBMITTED\");\n\n\t\t\tif (parade.getStatus() == \"REJECTED\")\n\t\t\t\tAssert.isTrue(parade.getRejectedComment() != null && parade.getRejectedComment() != \"\");\n\n\t\t} else if (parade.getId() == 0 && parade.getFinalMode() == true)\n\t\t\tparade.setStatus(\"SUBMITTED\");\n\t\tfinal Date currentMoment = new Date(System.currentTimeMillis() - 1000);\n\t\tAssert.isTrue(parade.getOrganisationMoment().after(currentMoment));\n\n\t\tresult = this.paradeRepository.save(parade);\n\n\t\treturn result;\n\n\t}", "boolean complete() {\n return start2D != null && stop2D != null;// && start3D!=null && stop3D!=null;\n }", "public boolean hayParadasCercanas(Coordenada coordenadaDeBusqueda) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "private boolean finalMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n (beliefs.puzzle[2][1] == 10) &&\n (beliefs.puzzle[2][2] == 11) &&\n (beliefs.puzzle[2][3] == 12) &&\n (beliefs.puzzle[3][1] == 14) &&\n (beliefs.puzzle[3][2] == 15)\n\n )\n return true;\n else\n return false;\n }", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "boolean isDone(){\n\t\t\n\t\treturn (x0==x1 && y0==y1);\n\t}", "private boolean checkCurrentPlanarRegion()\n {\n FrameConvexPolygon2D captureRegion = captureRegionCalculator.getCaptureRegion();\n captureRegion.changeFrameAndProjectToXYPlane(worldFrame);\n\n icpControlPlane.scaleAndProjectPlanarRegionConvexHullOntoControlPlane(activePlanarRegion, tempProjectedPolygon, distanceFromEdgeForSwitching);\n\n double intersectionArea = convexPolygonTools.computeIntersectionAreaOfPolygons(captureRegion, tempProjectedPolygon);\n\n if (intersectionArea > minimumAreaForSearch)\n {\n activePlanarRegionConvexHull.setIncludingFrame(planeReferenceFrame, activePlanarRegion.getConvexHull());\n activePlanarRegionConvexHull.changeFrameAndProjectToXYPlane(worldFrame);\n\n yoActivePlanarRegion.set(activePlanarRegionConvexHull);\n\n icpControlPlane.projectPlanarRegionConvexHullOntoControlPlane(activePlanarRegion, activePlanarRegionConvexHullInControlFrame);\n yoActivePlanarRegionInControlPlane.set(activePlanarRegionConvexHullInControlFrame);\n return false;\n }\n\n return true;\n }", "private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }", "boolean isSetParlay();", "public boolean isCompleted()\n\t{\n\t\treturn pieces.length == existing.cardinality();\n\t}", "public boolean isDone() {\n //check if valid board\n assert isValidSolitaireBoard();\n if (numPiles == NUM_FINAL_PILES){\n //create array checkDonewith size NUM_FINAL_PILES\n int[] checkDone = new int[NUM_FINAL_PILES];\n \n /**\n the value in piles[i] needs to be unique, not greater than NUM_FINAL_PILES\n and no duplicates of the number\n each value is used as an index to the new array and their value is\n the checkDone's value. Eg. piles[2] = 4, checkDone[4] = 4\n if the checkDone[piles[i]] equals to piles[i], there is a duplicate.\n */\n for (int i = 0 ; i < numPiles; i++){\n if ((piles[i] <= NUM_FINAL_PILES) && (checkDone[piles[i] - 1] != piles[i])){\n checkDone[piles[i] - 1] = piles[i];\n }\n else\n return false;\n }\n return true;\n }\n else\n return false;\n }", "private boolean checkMultiplePlaneEdit(){\r\n\t\tboolean flag=false;\r\n\t\tfor(UiAirplaneModel model:uiAirplaneModel.getAirplaneList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public abstract boolean isComplete();", "static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }", "public boolean isParked() {\r\n\t\tif (vehicleState == \"parked\") {\r\n\t\t\twasParked = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }", "boolean isComplete();", "boolean isComplete();", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Query(\"select r from Record r where r.finalMode = true\")\r\n\tpublic Collection<Record> findRecordsFinalModeTrue();", "public boolean getCompleteCPAOfConcurrency() {\r\n\t\treturn this.completeCPA;\r\n\t}", "Boolean getPartiallyCorrect();", "protected boolean isFinished() {\n\t\tif(switchSide) {\n\t\t\treturn !launchCubeSwitch.isRunning() && state == 4;\n\t\t}\n\t\telse if(scaleSide) {\n\t\t\treturn !launchCubeScale.isRunning() && state == 4;\n\t\t}\n\t\telse {\n\t\t\treturn !crossLine.isRunning() && timer.get() > 1;\n\t\t}\n\t}", "public boolean checkShowSubmitPolicy(Integer ctId,Integer snId){\n\n //check if participator first\n String handle = (String)httpSession.getAttribute(Constants.CURRENT_LOGIN_USER_HANDLE);\n boolean flag = false;\n List<AuthorityDTO> lstAuthority = authorityMapper.getContestAuthority(ctId, handle);\n for (AuthorityDTO curAuth : lstAuthority) {\n if (curAuth.getId().equals(Constants.AUTH_VIEW_CONTEST_ID)) {\n return true;\n }\n if (curAuth.getId().equals(Constants.AUTH_PARTICIPATE_CONTEST_ID)) {\n flag = true;\n }\n }\n if (!flag){\n return false;\n }\n\n //then check policy\n ContestEntity contestEntity = getContestById(ctId);\n if (contestEntity.getShowSubmit().equals(Constants.SHOW_SUBMIT_ALL)){\n return true;\n }\n\n SubmissionEntity submissionEntity = new SubmissionEntity();\n submissionEntity.setId(snId);\n List<SubmissionEntity> lstSubmission = submissionMapper.selectWithExample(submissionEntity);\n if (lstSubmission.size() != 1){\n throw new NoSuchPageException(\"Submission not found!\");\n }\n\n //check if submission is from current user\n submissionEntity = lstSubmission.get(0);\n Integer currentUserId = (Integer)httpSession.getAttribute(Constants.CURRENT_LOGIN_USER_ID);\n if (submissionEntity.getUrId().equals(currentUserId)){\n return true;\n }\n\n //else check current user has solved this problem and this contests allow to view solved problem's solutions\n if (contestEntity.getShowSubmit().equals(Constants.SHOW_SUBMIT_SOLVED)){\n Integer solveCnt = submissionMapper.checkSolvedStatusInContest(ctId,submissionEntity.getPmId(),submissionEntity.getUrId());\n return solveCnt > 0;\n }\n return false;\n }", "protected boolean isFinished() {\n \n \tif(Math.abs(RobotMap.navx.getAngle() - this.desiredAngle) <=2) {\n \n \t\treturn true;\n \t}\n return false;\n }", "public boolean isSolved(){ return getRemainingValues() == 0; }", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }", "boolean hasMission();", "boolean condition(PetriP[] pp) { //Нумерація позицій тут відносна!!! inP.get(i) - номер позиції у списку позицій, який побудований при конструюванні мережі Петрі,\n\n boolean a = true;\n boolean b = true; // Саме тому при з\"єднанні спільних позицій зміна номера не призводить до трагічних наслідків (руйнування зв\"язків)!!!\n for (int i = 0; i < inP.size(); i++) {\n if (pp[inP.get(i)].getMark() < quantIn.get(i)) {\n a = false;\n break;\n }\n }\n for (int i = 0; i < inPwithInf.size(); i++) {\n if (pp[inPwithInf.get(i)].getMark() < quantInwithInf.get(i)) {\n b = false;\n break;\n }\n }\n return a && b;\n }", "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean getMission();", "public boolean isComplete();", "boolean hasIsComplete();", "boolean hasIsComplete();", "@Override\n protected boolean isFinished() {\n return (!drive.isRunning(Drivetrain.Follower.DISTANCE) && !drive.isRunning(Drivetrain.Follower.ANGLE));\n\n }", "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "public void finalResult() {\n ConnectionSockets.getInstance().sendMessage(Integer.toString(points)+\"\\n\");\n System.out.println(\"escreveu para o oponente\");\n opponentPoints = Integer.parseInt(ConnectionSockets.getInstance().receiveMessage());\n System.out.println(\"leu do oponente\");\n if(points != opponentPoints) {\n if (points > opponentPoints) {// Won\n MatchController.getInstance().getSets().add(1);\n MatchController.getInstance().increaseSet();\n } else { //Lost\n MatchController.getInstance().getSets().add(0);\n MatchController.getInstance().increaseSet();\n }\n }\n }", "public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }", "@Override\n public boolean isFinished() {\n return swerve.getPose().getTranslation().distance(pointOfInterest) <= distance;\n }", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "protected boolean isFinished() {\n\t\tif (!hasPathStarted) {\n\t\t\treturn false;\n\t\t}\n\t\tboolean leftComplete = status.activePointValid && status.isLast;\n\t\tboolean trajectoryComplete = leftComplete;\n\t\tif (trajectoryComplete) {\n\t\t\tSystem.out.println(\"Finished trajectory\");\n\t\t}\n\t\treturn trajectoryComplete || isFinished;\n\t}", "protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }", "public void finalizarPartida (boolean pVictoria)\n {\n partidaActiva = false;\n\n //Se avisa a los observers que ha finalizado la partida y cual ha sido el resultado\n lObservers.firePropertyChange(\"estadoPartida\", null, pVictoria);\n\n Contador.getContador().parar();\n\n //Si el usuario ha ganado la partida se envían los datos para actualizar el ranking\n if (pVictoria) {\n Ranking.getRanking().addJugadorRanking(dificultad, nombreUsuario);\n\n //Se abre la ventana del ranking\n this.mostrarRanking();\n SFXPlayer.getSFXPlayer().stopBackground();\n SFXPlayer.getSFXPlayer().playSFX(\"victory\");\n }\n\n //Se para y resetea el contador\n Contador.getContador().reset();\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Parametros)) {\r\n return false;\r\n }\r\n Parametros other = (Parametros) object;\r\n if ((this.consecutivo == null && other.consecutivo != null) || (this.consecutivo != null && !this.consecutivo.equals(other.consecutivo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "boolean getIsComplete();", "public boolean inProgress(){return (this.currentTicket != null);}", "protected boolean isFinished() {\n\t\treturn RobotMap.VisionDistanceLeftPIDController.onTarget() && RobotMap.VisionDistanceRightPIDController.onTarget() || !hasStarted;\n\t}", "private boolean isCompleted(final String stage) {\n return mRegistrationResponse != null && mRegistrationResponse.completed != null && mRegistrationResponse.completed.contains(stage);\n }", "public boolean completed(){\n int count = 0;\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(tiles[X][Y] instanceof EindVeld){\n EindVeld tmp = (EindVeld)tiles[X][Y];\n if(tmp.hasDoos())\n count++;\n }\n }\n }\n \n if(eindVelden == count){\n System.out.println(\"DOOLHOF COMPLEET !!!\");\n return true;\n }else{\n return false;\n }\n }", "public boolean is_completed();", "public static boolean isSetParamFinal()\n {\n read_if_needed_();\n \n return _is_set_param_final;\n }", "public void ruleOutPos(){\n for(int i=0;i<scores.length;i++) {\n for(int j=0;j<scores[i].length;j++) {\n scores[i][j][13] = 0;//0=pass, >0 is fail, set to pass initially\n\n //check Ns - bit crude - what to discount regions with high N\n double ns = (double) scores[i][j][14] / (double) pLens[j];\n if (ns >= minPb | ns >= minPm)//\n scores[i][j][13] += 4;\n\n //probe\n if (hasProbe){\n if (j == 1 | j == 4) {\n double perc = (double) scores[i][j][0] / (double) primers[j].length();\n if (perc >= minPb) {\n scores[i][j][12] = 1;//flag for failed % test\n scores[i][j][13] += 2;\n }\n }\n }\n //primer\n else {\n //if more than 2 mismatches in 1-4nt at 3'\n if(scores[i][j][11]>max14nt) {\n scores[i][j][13]+=1;\n }\n //use mLen (combined F and R length) initially to find initial candidates - filter later\n double perc=(double)scores[i][j][0]/(double)mLen;\n double percI=(double)scores[i][j][0]/(double)pLens[j];\n\n if(perc>=minPm | percI>=minPmI) {\n scores[i][j][12]=1;//flag for failed % test\n scores[i][j][13]+=2;\n }\n }\n }\n }//end of finding positions that prime loop\n }", "protected boolean isFinished ()\n\t{\n\n\t\tif (Subsystems.goalVision.getProportionalGoalX() >= X_OFFSET\n\t\t - DEADBAND\n\t\t && Subsystems.goalVision\n\t\t .getProportionalGoalX() <= X_OFFSET + DEADBAND)\n\t\t//The goal is centered.\n\t\t{\n\t\t\t//We are aligned.\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }", "private void continueButton() {\n Optional<Squadron> anyAvailable = game\n .getHumanPlayer()\n .getNations()\n .stream()\n .filter(Nation::isSquadronsPresent)\n .flatMap(nation -> game.getHumanPlayer().getSquadrons(nation, SquadronLocationType.LAND).stream())\n .filter(Squadron::isAvailable)\n .findAny();\n\n List<Region> regionsNotSatisfied = gameMap\n .areAllRegionsSatisfied(game.getHumanSide());\n\n if (anyAvailable.isPresent()) {\n warnNotAllSquadronsDeployed();\n } else if (regionsNotSatisfied.size() > 0) {\n warnNotAllRegionsSatisfied(regionsNotSatisfied);\n } else {\n navigate.goNext(this.getClass(), stage);\n }\n }", "public boolean finPartie(long idPartie) {\n Partie p = daocrud.findOne(idPartie);\r\n boolean partieFini = false;\r\n int nbJoueursPerdus = 0;\r\n boolean someonewon = false;\r\n for (int i = 0; i < p.getJoueurs().size(); i++) {\r\n if (p.getJoueurs().get(i).getEtat() == Joueur.EtatJoueur.PERDU) {\r\n nbJoueursPerdus++;\r\n }\r\n if (p.getJoueurs().get(i).getEtat() == Joueur.EtatJoueur.GAGNE) {\r\n someonewon = true;\r\n }\r\n\r\n }\r\n if ((nbJoueursPerdus == p.getJoueurs().size() - 1) && (someonewon == true)) {\r\n partieFini = true;\r\n }\r\n return partieFini;\r\n }", "private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}", "public boolean esCompuesto() {\n\t\treturn !this.atributos.isEmpty();\n\t}", "private ArrayList<Boolean> getSelected() {\n int centerPatternOffset = -Math.round(slice.size() / 2); // The offset needed to make sure that the center of the slice is located at the first index\n int repeatSliceOffset;\n int thisNumRepeats;\n if (doRepeat) {\n if (doEqualSpacedRepeats) {\n repeatSliceOffset = Math.round(thisNumLEDs / numRepeats); // The offset between the centers of each repeat of the pattern\n } else {\n repeatSliceOffset = slice.size();\n }\n thisNumRepeats = numRepeats;\n } else {\n repeatSliceOffset = 0;\n thisNumRepeats = 1;\n }\n ArrayList<Boolean> isSelected = new ArrayList<>(Collections.nCopies(thisNumLEDs, false));\n\n for (int repeatNum = 0; repeatNum < thisNumRepeats; repeatNum++) {\n // Go through each repeat of the slice\n // TO_DO: Add error-checking for overlap? Meh...\n int thisStartInd = ROTATION_OFFSET + centerPatternOffset + repeatNum * repeatSliceOffset + getRotation(); // Where to start this pattern\n for (int sliceInd = 0; sliceInd < slice.size(); sliceInd++) {\n // \"Inlay\" this repeat of the slice into the isSelected list\n int thisInd = thisStartInd + sliceInd;\n\n // Modulus thisInd into newImage.size (requires 2 lines because Java is stupid)\n int newInd = thisInd % isSelected.size();\n if (newInd < 0) newInd += isSelected.size();\n\n isSelected.set(newInd, true);\n }\n }\n\n return isSelected;\n }", "public List<Candidates> getWinningSingleCandidates() {\n List<Candidates> allCandidates = candidateService.findAll();\n Map<Integer, Integer> mandatesResults = singleService.singleWinners();\n List<Candidates> allWinningCandidates = new ArrayList<>();\n // Map<Integer, Integer> mandatesResults = new HashMap<>();\n for (Candidates candidate : allCandidates) {\n for (Integer winnerIds : mandatesResults.keySet()) {\n if (candidate.getId().equals(winnerIds)) {\n allWinningCandidates.add(candidate);\n }\n }\n }\n\n for (Candidates candidate : allWinningCandidates) {\n candidate.setCandidate_elected(\"single\");\n candidateService.saveOrUpdate(candidate);\n }\n return allWinningCandidates;\n }", "public void VehiclePositionIsFinal() {\n\t\tInteger idVehicle ;\n\t\tdouble lat;\n\t\tdouble lon;\n\t\tVehicle vehicle;\n\ttry {\n\t\tVehicleIntervention vehicleIntervention = VehicleIntervention.getInstance();\n\t\tif( ! vehicleIntervention.listIntervention.isEmpty()) {\n\t\t\t//parcourir toutes les interventions\n\t\t\t for( InterventionDto intervention: vehicleIntervention.listIntervention) {\n\t\t\t\t idVehicle = intervention.getVehicle().getId();\n\t\t\t\t lat = intervention.getFireLat();\n\t\t\t\t lon = intervention.getFireLon();\n\t\t\t\t vehicle = getVehicleById(idVehicle);\nSystem.out.println(\"vehicle:\" +vehicle.getId()+ \" at \"+vehicle.getLat() +\":\"+vehicle.getLon());\n \n\t\t\t\t //si le vehicule arrive a proximite et l'intensite du fire est nulle \n\t\t\t\t if( Math.abs(vehicle.getLat() - lat)<1e-3 \n\t\t\t\t\t\t && Math.abs(vehicle.getLon() - lon)<1e-3\n\t\t\t\t\t\t &&isFireOut(lat,lon) ) {\n\t\t\t\t\t //supprimer le vehicule de la liste\n\t\t\t\t\t vehicleIntervention.listIntervention.remove(intervention);\n\t\t\t\t\t //changer l'etat du vehicule\n\t\t\t\t\t Vehicle getvehicle = vRepository.findById(idVehicle).get();\n\t\t\t\t\t getvehicle.setIntervention(false);\n\t\t\t\t\t vRepository.save(getvehicle);\n\t\t\t\t\t \nSystem.out.println(\"Fire:\" + \" at \"+lat +\":\"+lon+\" is out thanks to vehicle: \"+idVehicle+\" Intervention:\"+getvehicle.isIntervention());\n\t\t\t\t }\n\t\t\t \t}\n\t\t }\n\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private boolean isSplitActive() {\n ActivityManager.RunningTaskInfo runningTaskInfo;\n SplitScreenTaskOrganizer splitScreenTaskOrganizer = this.mSplits;\n ActivityManager.RunningTaskInfo runningTaskInfo2 = splitScreenTaskOrganizer.mPrimary;\n return (runningTaskInfo2 == null || (runningTaskInfo = splitScreenTaskOrganizer.mSecondary) == null || (runningTaskInfo2.topActivityType == 0 && runningTaskInfo.topActivityType == 0)) ? false : true;\n }", "static private void calculateMissionScore() {\n\n HashMap<String, Boolean> missionStatus = allMissions.missionStatus;\n\n for (String i : missionStatus.keySet()) {\n\n if (missionStatus.get(i) == true) {\n score.addToPoints(250);\n }\n }\n }", "private boolean not_completeScorboard(int no_of_instruct) {\n\n\t\tboolean comp;\n\t\tcomp = false;\n\t\tfor (int p = 0; p < no_of_instruct; p++) {\n\t\t\tif ((lstInstructionsScorboard.get(p).getStatus() != EnumInstructionStatus.complete))\n\t\t\t\tcomp = true;\n\t\t}\n\t\treturn comp;\n\t}", "private Vector<Integer> matchCheckPoint(List<Point> a) {\t\t\t\n\t\tVector<Integer> iDS= new Vector<>();\n\t\tfor(Point p :a) {\n\t\t\tif(!getAsphalt(p.x, p.y,this.trk).isIdDefalt()) {\n\t\t\t\tiDS.add(getAsphalt(p.x, p.y,this.trk).getId());\n\t\t\t}\n\t\t}\n\t\treturn iDS;\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Paramentro)) {\n return false;\n }\n return id != null && id.equals(((Paramentro) o).id);\n }", "public void checkPrize()\n {\n for(PrizeMulti prize : prizes.getPrizes())\n {\n if(prize.isActive())\n {\n if (((locX - prize.getX()) * (locX - prize.getX()) + (locY - prize.getY()) * (locY - prize.getY())) <= 35 * 35) {\n if (prizeOwn == null)\n {\n status.setUsePrize(true);\n prize.deActive();\n prizeOwn = prize;\n if (prize.getType().equals(\"Health\")) {\n stamina += (stamina / 10);\n }\n if (prize.getType().equals(\"Power2\")) {\n canonPower *= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower *= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Laser\");\n }\n\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (true);\n }\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n prizeOwn = null;\n if (prize.getType().equals(\"Power2\")) {\n canonPower /= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower /= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Normal\");\n }\n Thread.sleep (5000);\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (false);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }\n }\n }\n }\n }", "private boolean colisionPalas() {\r\n\t\treturn game.racketIzq.getBounds().intersects(getBounds())\r\n\t\t\t\t|| game.racketDer.getBounds().intersects(getBounds());\r\n\t}", "@Override\n protected boolean isFinished() {\n //calculate distances traveled on X and Y axes by averaging encoder values\n double xAvg = (double)(Robot.driveTrain.getFREncoder() + Robot.driveTrain.getBLEncoder()) / 2.0;\n double yAvg = (double)(Robot.driveTrain.getFLEncoder() + Robot.driveTrain.getBREncoder()) / 2.0;\n \n //some checks to see if the robot is within 100 encoder counts of the target\n boolean finishedX = (Math.abs(xDist - xAvg) < 100);\n boolean finishedY = (Math.abs(yDist - yAvg) < 100);\n\n //finished if X and Y are within 100 counts or if the command times out\n return ((finishedX && finishedY) || isTimedOut());\n }", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "public boolean hayTareasPendientes(){\n return (getNumeroTareasPendientes() > 0);\n }", "public void mostrarDisponibles(ArrayList<parqueo> parking){\n try {\n System.out.println(\"Espacios Disponibles: \");//Recorremos la base de datos y vamos imprimiendo solo los que esten disponibles\n for (int num = 0; num < parking.size(); num++){\n parqueo park = parking.get(num);\n if(park.getOcupado() == false){\n System.out.println(\"---------------------------------\");\n System.out.println(\"Numero de parqueo: \" + park.getNumero());\n }\n }\n System.out.println(\"---------------------------------\");\n } catch (Exception e) {\n System.out.println(\"Ocurrio un error en la impresion de los parqueos disponibles\");\n }\n }", "private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean getParlay();", "public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }", "public boolean isComplete() {\r\n for (GoalInterface g: goals) {\r\n if (type == GoalType.AND && !g.isComplete()) {\r\n return false;\r\n } else if (type == GoalType.OR && g.isComplete()) {\r\n return true;\r\n }\r\n }\r\n\r\n if (type == GoalType.AND) {\r\n return true;\r\n } else if (type == GoalType.OR) {\r\n return false;\r\n }\r\n return false;\r\n }", "public boolean isMatchPOPosted()\n\t{\n\t\tMMatchPO[] po = getMatchPO();\n\t\tfor (MMatchPO matchPO : po) {\n\t\t\tif (!matchPO.isPosted())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isComplete() {\n\t\tboolean complete = false;\n\t\tcomplete = !(hasInstInQueue());\n\n\t\tfor (int i = 0; i < MemReservationTomasulo.length && complete; i++) {\n\t\t\tcomplete = !MemReservationTomasulo[i].isBusy();\n\t\t}\n\n\t\tfor (int i = 0; i < alu_rsTomasulo.length && complete; i++) {\n\t\t\tcomplete = !alu_rsTomasulo[i].isBusy();\n\t\t}\n\n\t\treturn complete;\n\t}", "public boolean getComplete(){\n return localComplete;\n }", "public boolean isComplete()\n\t{\n\t\treturn getStep() == getRepeatCount() * 2 + 1;\n\t}", "@SuppressWarnings(\"rawtypes\")\n public MapList getCompletedCRs(Context context, String[] args) throws Exception {\n\n Pattern relationship_pattern = new Pattern(TigerConstants.RELATIONSHIP_PSS_SUBPROGRAMPROJECT);\n relationship_pattern.addPattern(TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA);\n\n Pattern type_pattern = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n type_pattern.addPattern(TigerConstants.TYPE_PSS_PROGRAMPROJECT);\n\n Pattern finalType = new Pattern(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n try {\n StringList slselectObjStmts = getSLCTableSelectables(context);\n\n Map programMap = (Map) JPO.unpackArgs(args);\n String strProgProjId = (String) programMap.get(\"objectId\");\n // TIGTK-16801 : 30-08-2018 : START\n boolean bAdminOrPMCMEditAllow = isAdminOrPMCMofRelatedPP(context, strProgProjId);\n StringBuffer sbObjectWhere = new StringBuffer();\n sbObjectWhere.append(\"(type==\\\"\");\n sbObjectWhere.append(TigerConstants.TYPE_PSS_CHANGEREQUEST);\n sbObjectWhere.append(\"\\\"&&current==\\\"\");\n sbObjectWhere.append(TigerConstants.STATE_COMPLETE_CR);\n sbObjectWhere.append(\"\\\")\");\n // TIGTK-16801 : 30-08-2018 : END\n\n DomainObject domainObj = DomainObject.newInstance(context, strProgProjId);\n\n MapList mapList = domainObj.getRelatedObjects(context, relationship_pattern.getPattern(), // relationship pattern\n type_pattern.getPattern(), // object pattern\n slselectObjStmts, // object selects\n null, // relationship selects\n false, // to direction\n true, // from direction\n (short) 0, // recursion level\n sbObjectWhere.toString(), // object where clause\n null, (short) 0, false, // checkHidden\n true, // preventDuplicates\n (short) 1000, // pageSize\n finalType, // Postpattern\n null, null, null);\n\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:START\n if (mapList.size() > 0) {\n\n Iterator<Map<String, String>> itrCR = mapList.iterator();\n while (itrCR.hasNext()) {\n Map tempMap = itrCR.next();\n String strCRId = (String) tempMap.get(DomainConstants.SELECT_ID);\n MapList mlIA = getImpactAnalysis(context, strCRId);\n\n String strIAId = \"\";\n if (!mlIA.isEmpty()) {\n Map mpIA = (Map) mlIA.get(0);\n strIAId = (String) mpIA.get(DomainConstants.SELECT_ID);\n }\n tempMap.put(\"LatestRevIAObjectId\", strIAId);\n // TIGTK-16801 : 30-08-2018 : START\n tempMap.put(\"bAdminOrPMCMEditAllow\", bAdminOrPMCMEditAllow);\n // TIGTK-16801 : 30-08-2018 : END\n }\n }\n // PCM2.0 Spr4:TIGTK-6894:19/9/2017:END\n return mapList;\n } catch (Exception ex) {\n logger.error(\"Error in getCompletedCRs: \", ex);\n throw ex;\n }\n }", "private void extractApportionmentForPBA(PaymentFeeLink serviceRequest) {\n boolean apportionFeature = featureToggler.getBooleanValue(\"apportion-feature\", false);\n LOG.info(\"ApportionFeature Flag Value in CreditAccountPaymentController : {}\", apportionFeature);\n if (apportionFeature) {\n //get first successful payment\n Payment pbaPayment = getFirstSuccessPayment.apply(serviceRequest);\n pbaPayment.setPaymentLink(serviceRequest);\n feePayApportionService.processApportion(pbaPayment);\n\n // Update Fee Amount Due as Payment Status received from PBA Payment as SUCCESS\n if (Lists.newArrayList(\"success\", \"pending\").contains(pbaPayment.getPaymentStatus().getName().toLowerCase())) {\n LOG.info(\"Update Fee Amount Due as Payment Status received from PBA Payment as %s\" + pbaPayment.getPaymentStatus().getName());\n feePayApportionService.updateFeeAmountDue(pbaPayment);\n }\n }\n }", "boolean hasCompletePartition();", "public NSArray tosRepartFdpCompetencesAutres() {\n\t\tNSArray tosRepartFdpCompetencesAutres = super.tosRepartFdpAutre(\n\t\t\t\t\tCktlDataBus.newCondition(EORepartFdpAutre.FAU_TYPE_KEY + \"='\" + EORepartFdpAutre.TYPE_COMPETENCE + \"'\"));\n\t\treturn CktlSort.sortedArray(tosRepartFdpCompetencesAutres, EORepartFdpAutre.FAU_POSITION_KEY);\n\t}", "public static boolean canPrune() {\n\t\tboolean result = false;\n\t\tint projectedTotal = 0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<jobsChosen){\n\t\t\tprojectedTotal += board[i][currentCombo[i]];\n\t\t\ti++;\n\t\t}\n\t\twhile(i<numPeople){\n\t\t\tprojectedTotal += bestPossibleCombination[i];\n\t\t\ti++;\n\t\t}\n\t\tif(projectedTotal<bestTotal){//Cant be greater than current Best Total\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "private boolean pistaReservada(List<ReservaEntity> reservaEntities, int idPista) {\n\n for (ReservaEntity reservaEntity : reservaEntities) {\n if (idPista == reservaEntity.getIdPista()) {\n return true;\n }\n }\n return false;\n }", "public boolean placementDone() {return placedShips == 4;}", "public GeopistaMostrarSubParcelas()\r\n {\r\n final TaskMonitorDialog progressDialog = new TaskMonitorDialog(aplicacion\r\n .getMainFrame(), null);\r\n\r\n progressDialog.setTitle(aplicacion.getI18nString(\"CargandoDatosIniciales\"));\r\n progressDialog.report(aplicacion.getI18nString(\"CargandoDatosIniciales\"));\r\n progressDialog.addComponentListener(new ComponentAdapter()\r\n {\r\n public void componentShown(ComponentEvent e)\r\n {\r\n // Wait for the dialog to appear before starting the\r\n // task. Otherwise\r\n // the task might possibly finish before the dialog\r\n // appeared and the\r\n // dialog would never close. [Jon Aquino]\r\n new Thread(new Runnable()\r\n {\r\n public void run()\r\n {\r\n\t\t\t\t\t\t try\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t setName(aplicacion.getI18nString(\"importar.asistente.subparcelas.titulo.2\"));\r\n\t\t\t\t\t\t geopistaEditor = (GeopistaEditor) blackboard.get(\"geopistaEditorInfoReferencia\");\r\n\t\t\t\t\t\t jbInit();\r\n\t\t\t\t\t\t } catch (Exception e)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t e.printStackTrace();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t finally\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t progressDialog.setVisible(false);\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}).start();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\tGUIUtil.centreOnWindow(progressDialog);\r\n\t\tprogressDialog.setVisible(true);\r\n }", "@Test\n public void testSuccessfulSinglePar() throws Exception {\n try {\n // setup PAR realm settings\n int requestUriLifespan = 45;\n setParRealmSettings(requestUriLifespan);\n\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, oidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(201, pResp.getStatusCode());\n String requestUri = pResp.getRequestUri();\n assertEquals(requestUriLifespan, pResp.getExpiresIn());\n\n // Authorization Request with request_uri of PAR\n // remove parameters as query strings of uri\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUri);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n assertEquals(state, loginResponse.getState());\n String code = loginResponse.getCode();\n String sessionId =loginResponse.getSessionState();\n\n // Token Request\n oauth.redirectUri(CLIENT_REDIRECT_URI); // get tokens, it needed. https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n\n AccessToken token = oauth.verifyToken(res.getAccessToken());\n String userId = findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER_NAME).getId();\n assertEquals(userId, token.getSubject());\n assertEquals(sessionId, token.getSessionState());\n // The following check is not valid anymore since file store does have the same ID, and is redundant due to the previous line\n // Assert.assertNotEquals(TEST_USER_NAME, token.getSubject());\n assertEquals(clientId, token.getIssuedFor());\n\n // Token Refresh\n String refreshTokenString = res.getRefreshToken();\n RefreshToken refreshToken = oauth.parseRefreshToken(refreshTokenString);\n assertEquals(sessionId, refreshToken.getSessionState());\n assertEquals(clientId, refreshToken.getIssuedFor());\n\n OAuthClient.AccessTokenResponse refreshResponse = oauth.doRefreshTokenRequest(refreshTokenString, clientSecret);\n assertEquals(200, refreshResponse.getStatusCode());\n\n AccessToken refreshedToken = oauth.verifyToken(refreshResponse.getAccessToken());\n RefreshToken refreshedRefreshToken = oauth.parseRefreshToken(refreshResponse.getRefreshToken());\n assertEquals(sessionId, refreshedToken.getSessionState());\n assertEquals(sessionId, refreshedRefreshToken.getSessionState());\n assertEquals(findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER_NAME).getId(), refreshedToken.getSubject());\n\n // Logout\n oauth.doLogout(refreshResponse.getRefreshToken(), clientSecret);\n refreshResponse = oauth.doRefreshTokenRequest(refreshResponse.getRefreshToken(), clientSecret);\n assertEquals(400, refreshResponse.getStatusCode());\n\n } finally {\n restoreParRealmSettings();\n }\n }" ]
[ "0.53342354", "0.51389587", "0.508147", "0.49476805", "0.48390052", "0.4811927", "0.48091716", "0.47958633", "0.47680846", "0.47627813", "0.47621846", "0.47474515", "0.4709758", "0.46936223", "0.46862164", "0.4666131", "0.4622885", "0.46182215", "0.46180582", "0.45989335", "0.4572123", "0.45678574", "0.45573482", "0.45494747", "0.45494747", "0.45407516", "0.45272452", "0.45222238", "0.45215622", "0.4511456", "0.45067134", "0.44984543", "0.44910282", "0.44870594", "0.44819403", "0.44756484", "0.44754305", "0.4468991", "0.44498095", "0.44448677", "0.44397798", "0.44397798", "0.44383267", "0.44366136", "0.44227698", "0.44222137", "0.44214585", "0.44201043", "0.4417229", "0.44166502", "0.44131294", "0.4409441", "0.43944934", "0.4390352", "0.4389975", "0.43881798", "0.4379221", "0.436516", "0.4365051", "0.4362508", "0.43486023", "0.43482867", "0.4346941", "0.43435302", "0.43345758", "0.43278745", "0.43259114", "0.43229336", "0.43192682", "0.431682", "0.4314936", "0.43108964", "0.43078262", "0.42993462", "0.42964998", "0.42952737", "0.42930284", "0.42926544", "0.42920604", "0.428912", "0.42865893", "0.4280473", "0.4279955", "0.42782068", "0.42757845", "0.4274174", "0.42737052", "0.4265063", "0.42640606", "0.42606118", "0.42596385", "0.42581257", "0.42549464", "0.4253453", "0.42503324", "0.42467728", "0.4246266", "0.42439246", "0.42433158", "0.42428917" ]
0.483097
5
Returns the parades that are in the same area and have status = REJECTED and finalMode = true
public Collection<Parade> findRejectedByArea(final int id) { Collection<Parade> parades; this.areaService.checkPrincipalArea(id); parades = this.paradeRepository.findRejectedByArea(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public boolean filterPrimesse(Map<Variable, String> assigne, Map<Variable, ArrayList<String>> nonAssigne) {\n\n ArrayList<Variable> InNonAss = Tools.variableInConstraint(this.premisse, nonAssigne); // recuperation des varable de la premise qui ne sont par encore assigne \n ArrayList<Variable> InAss = Tools.variableConstraintInAssigne(assigne, this.premisse); // recuperation des varable de la premise qui sont deja assigne \n \n \n for (Variable v : this.getScope()) {\n // on verrification de la presente de tout la varriable scope\n if (!Tools.inArrayList(InAss, v) && !Tools.inArrayList(InNonAss, v)) {\n return false;\n }\n }\n\n if (InNonAss.isEmpty() || InAss.isEmpty()) { // cas on aussi variable ou tout les varriable son asigne \n\n return false;\n }\n\n String valeurVariablePremise;\n\n for (int i = 0; i < InAss.size(); i++) {// on veriffie que les varaible de les variable deja assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InAss.get(i));\n\n if (!Tools.getValue(assigne, InAss.get(i)).equals(valeurVariablePremise)) {\n\n Tools.cleanDomainFritrage(nonAssigne, InNonAss);\n\n return true;\n }\n\n }\n\n boolean filtrage = false;\n\n for (int j = 0; j < InNonAss.size(); j++) { // Reduction des domain des varaible si les non assigne respect la contrainte \n\n valeurVariablePremise = Tools.getValue(this.premisse, InNonAss.get(j)); // recuperation de la valeur de variable non asigne dans la premisse \n\n for (int k = 0; k < nonAssigne.get(InNonAss.get(j)).size(); k++) { // filttrage du domaine \n\n if (!nonAssigne.get(InNonAss.get(j)).get(k).equals(valeurVariablePremise)) {\n\n nonAssigne.get(InNonAss.get(j)).remove(k);\n\n k--;\n\n filtrage = true;\n\n }\n\n }\n\n }\n\n return filtrage;\n }", "public void ruleOutPos(){\n for(int i=0;i<scores.length;i++) {\n for(int j=0;j<scores[i].length;j++) {\n scores[i][j][13] = 0;//0=pass, >0 is fail, set to pass initially\n\n //check Ns - bit crude - what to discount regions with high N\n double ns = (double) scores[i][j][14] / (double) pLens[j];\n if (ns >= minPb | ns >= minPm)//\n scores[i][j][13] += 4;\n\n //probe\n if (hasProbe){\n if (j == 1 | j == 4) {\n double perc = (double) scores[i][j][0] / (double) primers[j].length();\n if (perc >= minPb) {\n scores[i][j][12] = 1;//flag for failed % test\n scores[i][j][13] += 2;\n }\n }\n }\n //primer\n else {\n //if more than 2 mismatches in 1-4nt at 3'\n if(scores[i][j][11]>max14nt) {\n scores[i][j][13]+=1;\n }\n //use mLen (combined F and R length) initially to find initial candidates - filter later\n double perc=(double)scores[i][j][0]/(double)mLen;\n double percI=(double)scores[i][j][0]/(double)pLens[j];\n\n if(perc>=minPm | percI>=minPmI) {\n scores[i][j][12]=1;//flag for failed % test\n scores[i][j][13]+=2;\n }\n }\n }\n }//end of finding positions that prime loop\n }", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "public Collection<Position> findPositionsFinalModeNotCancelledNotDeadline() {\n\t\tCollection<Position> result;\n\n\t\tresult = this.positionRepository.findPositionsFinalModeNotCancelledNotDeadline();\n\t\tAssert.notNull(result);\n\n\t\treturn result;\n\t}", "private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }", "private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }", "public boolean isSolved(){ return getRemainingValues() == 0; }", "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public static boolean canPrune() {\n\t\tboolean result = false;\n\t\tint projectedTotal = 0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<jobsChosen){\n\t\t\tprojectedTotal += board[i][currentCombo[i]];\n\t\t\ti++;\n\t\t}\n\t\twhile(i<numPeople){\n\t\t\tprojectedTotal += bestPossibleCombination[i];\n\t\t\ti++;\n\t\t}\n\t\tif(projectedTotal<bestTotal){//Cant be greater than current Best Total\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "boolean condition(PetriP[] pp) { //Нумерація позицій тут відносна!!! inP.get(i) - номер позиції у списку позицій, який побудований при конструюванні мережі Петрі,\n\n boolean a = true;\n boolean b = true; // Саме тому при з\"єднанні спільних позицій зміна номера не призводить до трагічних наслідків (руйнування зв\"язків)!!!\n for (int i = 0; i < inP.size(); i++) {\n if (pp[inP.get(i)].getMark() < quantIn.get(i)) {\n a = false;\n break;\n }\n }\n for (int i = 0; i < inPwithInf.size(); i++) {\n if (pp[inPwithInf.get(i)].getMark() < quantInwithInf.get(i)) {\n b = false;\n break;\n }\n }\n return a && b;\n }", "public ArrayList<Proceso> procesosPoliticaEnvejecimiento() {\n\t\tArrayList<Proceso> procesosPE = new ArrayList<Proceso>();\n\t\tProceso aux = this.raiz.sig;\n\t\twhile (aux != this.raiz) {\n\t\t\tint tiempoEnCola = this.tiempo - aux.tllegada + 1;\n\t\t\tif (tiempoEnCola >= this.tiempoPE) {\n\t\t\t\tProceso auxp = aux.padre;\n\t\t\t\tauxp.sig = aux.sig;\n\t\t\t\taux.sig.padre = auxp;\n\t\t\t\taux.padre = null;\n\t\t\t\tprocesosPE.add(aux);\n\t\t\t}\n\n\t\t\taux = aux.sig;\n\t\t}\n\t\tif (procesosPE.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn procesosPE;\n\t}", "public boolean hayParadasCercanas(Coordenada coordenadaDeBusqueda) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Point[] checkSpotsForTwo(ParkingLot p)\r\n {\r\n if(p.getCapacity() >= 2){\r\n ArrayList<Point[]> emptySpots = new ArrayList<>();\r\n for(int i = 0; i < p.getTotalRow(); i++){\r\n for(int j = 0; j < p.getTotalColumn(); j++){\r\n if(!p.getOccupany(i,j)){\r\n if(j+1 <= p.getTotalColumn()-1 && !p.getOccupany(i,j+1)){\r\n emptySpots.add(new Point[]{new Point(i,j),new Point(i,j+1)});\r\n }\r\n }\r\n }\r\n }\r\n if(emptySpots.size() > 0){\r\n Random rand = new Random();\r\n return emptySpots.get(rand.nextInt(emptySpots.size()));\r\n }else{\r\n return moveCars(p);\r\n }\r\n }else{\r\n System.out.println(\"There are not enough spots in this lot to park this car.\");\r\n return null;\r\n }\r\n }", "public List<Res_Agente_P> getAgentesParticipanCarreraP(int efiscal, int p){\r\n\t\treturn resAgenteDAO.getAgentesParticipanCarreraP(efiscal, p);\r\n\t}", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "@Override\n public boolean filterConsecutivePeptides() {\n return filterConsectutivePeptides;\n }", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "public void filterClosedConvoysinMerge(List<Convoy> VpccResult, List<Convoy> VpccTrue){\n\t\t\t\tList<Convoy> toRemove=new ArrayList<Convoy>();\n\t\t\t\tfor(Convoy v:VpccTrue){\n\t\t\t\t\tif(VpccResult.contains(v)){\n\t\t\t\t\t\ttoRemove.add(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"To Remove size = \" + toRemove.size());\n\t\t\t\tint sizeVpcc=VpccTrue.size();\n\t\t\t\tSystem.out.println(\"Vpcc Size before Filtering = \"+sizeVpcc);\n\t\t\t\tint sizeVpccn=VpccResult.size();\n\t\t\t\tSystem.out.println(\"Vpccn Size before Filtering = \"+sizeVpccn);\n\t\t\t\tfor(Convoy v:toRemove){\n\t\t\t\t\tsizeVpcc=VpccTrue.size();\n\t\t\t\t\tsizeVpccn=VpccResult.size();\n\t\t\t\t\tVpccResult.remove(v);\n\t\t\t\t\tVpccTrue.remove(v);\n\t\t\t\t\tif(VpccTrue.size()-sizeVpcc>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpcc true\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t\tif(VpccResult.size()-sizeVpccn>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpccn Result\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Vpcc Size after Filtering = \"+VpccTrue.size());\n\t\t\t\tSystem.out.println(\"Vpccn Size after Filtering = \"+VpccResult.size());\n\t\t\t\tSystem.out.println(\"Convoys closed = \"+(VpccResult.size()-VpccTrue.size()));\n\t\t\t\tthis.VpccVcoda=VpccTrue;\n\t\t\t\tthis.VpccMerge=VpccResult;\n\t}", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }", "public Collection<Parade> findParadeRejectedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "private boolean colisionPalas() {\r\n\t\treturn game.racketIzq.getBounds().intersects(getBounds())\r\n\t\t\t\t|| game.racketDer.getBounds().intersects(getBounds());\r\n\t}", "public void mostrarDisponibles(ArrayList<parqueo> parking){\n try {\n System.out.println(\"Espacios Disponibles: \");//Recorremos la base de datos y vamos imprimiendo solo los que esten disponibles\n for (int num = 0; num < parking.size(); num++){\n parqueo park = parking.get(num);\n if(park.getOcupado() == false){\n System.out.println(\"---------------------------------\");\n System.out.println(\"Numero de parqueo: \" + park.getNumero());\n }\n }\n System.out.println(\"---------------------------------\");\n } catch (Exception e) {\n System.out.println(\"Ocurrio un error en la impresion de los parqueos disponibles\");\n }\n }", "private static ArrayList<Map> checkAvailability(ArrayList<Map> res) {\n\t\tArrayList<Map> availableSlot = new ArrayList<Map>();\r\n\t\tfor (Map center : res) {\r\n\t\t\tint age = (int) center.get(\"min_age_limit\");\r\n\t\t\tif(age == AGE) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 45+ :\" + center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t\t//END = true;\r\n\t\t\t\t}\r\n\t\t\t}else if( age == 18) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 18+ :\" +center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn availableSlot;\r\n\t}", "public Collection<Parade> findParadeNotFinalParadeByBrotherhood(final int id) {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findParadeNotFinalParadeByBrotherhood(id);\n\n\t\treturn result;\n\t}", "public boolean isPeace() {\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tChessPiece p = piece.get(order[i]);\r\n\t\t\tif (p.chessPlayer.equals(\"black\") || p.chessPlayer.equals(\"white\")) {\r\n\t\t\t\tVector<ChessBoardBlock> blocks = this.getMovablePosition(p);\r\n\t\t\t\tif (blocks.size()>1) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public NSArray tosRepartFdpCompetencesAutres() {\n\t\tNSArray tosRepartFdpCompetencesAutres = super.tosRepartFdpAutre(\n\t\t\t\t\tCktlDataBus.newCondition(EORepartFdpAutre.FAU_TYPE_KEY + \"='\" + EORepartFdpAutre.TYPE_COMPETENCE + \"'\"));\n\t\treturn CktlSort.sortedArray(tosRepartFdpCompetencesAutres, EORepartFdpAutre.FAU_POSITION_KEY);\n\t}", "public List<Amendment> filterAmendments(int paraId);", "private boolean checkCurrentPlanarRegion()\n {\n FrameConvexPolygon2D captureRegion = captureRegionCalculator.getCaptureRegion();\n captureRegion.changeFrameAndProjectToXYPlane(worldFrame);\n\n icpControlPlane.scaleAndProjectPlanarRegionConvexHullOntoControlPlane(activePlanarRegion, tempProjectedPolygon, distanceFromEdgeForSwitching);\n\n double intersectionArea = convexPolygonTools.computeIntersectionAreaOfPolygons(captureRegion, tempProjectedPolygon);\n\n if (intersectionArea > minimumAreaForSearch)\n {\n activePlanarRegionConvexHull.setIncludingFrame(planeReferenceFrame, activePlanarRegion.getConvexHull());\n activePlanarRegionConvexHull.changeFrameAndProjectToXYPlane(worldFrame);\n\n yoActivePlanarRegion.set(activePlanarRegionConvexHull);\n\n icpControlPlane.projectPlanarRegionConvexHullOntoControlPlane(activePlanarRegion, activePlanarRegionConvexHullInControlFrame);\n yoActivePlanarRegionInControlPlane.set(activePlanarRegionConvexHullInControlFrame);\n return false;\n }\n\n return true;\n }", "Boolean getPartiallyCorrect();", "private void adjustPathConditions() {\n List<ProgramCondition> pcList;\n for (ProgramPath pp : progPath){\n pcList = pp.getConditions();\n final List<ProgramCondition> pcList2 = pcList;\n List<ProgramCondition> collect = pcList2.stream().filter(p -> (pcList2.stream().anyMatch(q -> q.condition.equals(p.condition) \n && q.pred == ProgramConditionTruthValue.False && p.pred == ProgramConditionTruthValue.True))).collect(Collectors.toList());\n \n collect.forEach(p -> p.z3Allowable = false);\n }\n }", "private void carsReadyToLeave(){\n\t Car car = cpview.getFirstLeavingCar();\n\t while (car!=null) {\n\t \tif (car.getHasToPay()){\n\t\t car.setIsPaying(true);\n\t\t paymentCarQueue.addCar(car);\n\t \t}\n\t \telse {\n\t \t\tcarLeavesSpot(car);\n\t \t}\n\t car = cpview.getFirstLeavingCar();\n\t }\n\t }", "boolean hasMission();", "public boolean PilaVacia()\n {\n if(tope == 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public Collection<Parade> findAcceptedByArea(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tthis.areaService.checkPrincipalArea(id);\n\n\t\tparades = this.paradeRepository.findAcceptedByArea(id);\n\n\t\treturn parades;\n\t}", "private meterMaidPerception getPerceptions() {\n\t\t\r\n\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\r\n\t\tACLMessage msg = receive(mt);\r\n\t\tif (msg != null && msg.getContent() != null) {\r\n\t\t\tString[] perceptions = msg.getContent().split(\";\");\r\n\t\t\tif (perceptions.length < 2)\r\n\t\t\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t\t\tcar = perceptions[1];\r\n\t\t\tif (CAR_PASSED_ON_RED_SIGN.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_IGNORED_RED_SIGN;\r\n\t\t\telse if (CAR_IN_ZEBRA_CROSSING.equals(perceptions[0]))\r\n\t\t\t\treturn meterMaidPerception.CAR_STOP_ON_ZEBRA_CROSSING;\r\n\t\t}\r\n\t\t\r\n\t\treturn meterMaidPerception.NOTHING_TO_SAY;\r\n\t}", "public void checkPrize()\n {\n for(PrizeMulti prize : prizes.getPrizes())\n {\n if(prize.isActive())\n {\n if (((locX - prize.getX()) * (locX - prize.getX()) + (locY - prize.getY()) * (locY - prize.getY())) <= 35 * 35) {\n if (prizeOwn == null)\n {\n status.setUsePrize(true);\n prize.deActive();\n prizeOwn = prize;\n if (prize.getType().equals(\"Health\")) {\n stamina += (stamina / 10);\n }\n if (prize.getType().equals(\"Power2\")) {\n canonPower *= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower *= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Laser\");\n }\n\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (true);\n }\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n prizeOwn = null;\n if (prize.getType().equals(\"Power2\")) {\n canonPower /= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower /= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Normal\");\n }\n Thread.sleep (5000);\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (false);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }\n }\n }\n }\n }", "public visibleObject[][] getVisibility() {\n\n\t\tvisibleObject visiblility[][] = new GridCell.visibleObject[2 * visionRange + 1][2 * visionRange + 1];\n\t\tGridCell[][] cellArray = MazeGame.worldGraph.cellArray;\n\n\t\tfor (int i = (-visionRange); i < visionRange + 1; i++) {\n\t\t\tfor (int j = (-visionRange); j < visionRange + 1; j++) {\n\n\t\t\t\tGridCell cell = MazeGame.worldGraph.cellArray[currentCell.rowIndex + i][currentCell.columnIndex + j];\n\n\t\t\t\tfor (int k = currentCell.rowIndex - visionRange; k < currentCell.rowIndex + visionRange + 1; k++) {\n\t\t\t\t\tfor (int l = (currentCell.columnIndex - visionRange); l < currentCell.columnIndex + visionRange\n\t\t\t\t\t\t\t+ 1; l++) {\n\n\t\t\t\t\t\tif (!cellArray[k][l].hasEastEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + j + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!cellArray[k][l].hasSouthEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(currentCell.columnIndex + j + 0.5, currentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, currentCell.rowIndex + 0.5, cellArray[k][l].columnIndex,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex +1 , cellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tif(visiblility[i + visionRange][j + visionRange] != visibleObject.NULL){\n//\n//\t\t\t\t\tif (cell.cheese != null) {\n//\t\t\t\t\t\tif (cell.jerry != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY_AND_CHEESE;\n//\t\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM_AND_CHEESE;\n//\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.CHEESE;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} else if (cell.jerry != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY;\n//\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM;\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.EMPTY_SPACE;\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.visiblility = visiblility;\n\t\treturn visiblility;\n\t}", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "private boolean checkRemainingRes() {\n for (int i = 0; i < playingField.getPlayingField().length; i++) {\n for (int j = 0; j < playingField.getPlayingField()[i].length; j++) {\n if (playingField.getPlayingField()[i][j].getResources() > 0) {\n return true;\n }\n }\n }\n return false;\n }", "private boolean isAllAreaAchievable() throws ReachabilityException {\n\t\t\n\t\t// mark all points that the player should reach as 1, else as 0\n\t\tint[][] tempMap = new int[height][width];\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (mapElementArray[i][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof Teleporter\n\t\t\t\t\t\t|| mapElementArray[i][j] instanceof PlayerSpawnPoint)\n\t\t\t\t\ttempMap[i][j] = 1;\n\t\t\t\telse\n\t\t\t\t\ttempMap[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//try to reach all area\n\t\treachAllValidPoint(tempMap, aPlayerSpawnPointRow, aPlayerSpawnPointCol);\n\t\t\n\t\t//check if all area have been reached\n\t\tint unreachablePoint = 0;\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (tempMap[i][j] == 1) {\n\t\t\t\t\tunreachablePoint++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t\ttry {\n\t\t\tif (unreachablePoint > 0) {\n\t\t\t\tSystem.out.println(unreachablePoint + \" points are unreachable\");\n\t\t\t\tthrow new ReachabilityException();\n\t\t\t}else {\n\t\t\t\treturn true;\n\t\t\t}\n\t/*\t} catch (ReachabilityException e) {\n\t\t\tSystem.out.println(e);\n\t\t\t//print out map with invalid area\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j <width; j++) {\n\t\t\t\t\tSystem.out.print(tempMap[i][j]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\treturn false;\n\t\t}*/\n\n\t}", "@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }", "static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }", "public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }", "private void badMatch() {\n\t\tArrayList<Integer> faceValues = new ArrayList<Integer>();\n\t\tInteger firstSelectableCardPos = null;\n\t\t\n\t\tfor (int card = 0; card < CARDS_SUM; card++) {\n\t\t\tPlayingCard thisCard = ((PlayingCard) getActivity().findViewById(solo.getImage(card).getId()));\n\t\t\t\n\t\t\t// cheat by finding card face without turning card over\n\t\t\tint face = thisCard.getCard();\n\t\t\tfaceValues.add(face);\n\t\t\t\n\t\t\t// can't select all cards\n\t\t\tif (thisCard.isLocked() || thisCard.getVisible()) {\n\t\t\t\tcontinue;\n\t\t\t} else if (firstSelectableCardPos == null) {\n\t\t\t\tfirstSelectableCardPos = card;\n\t\t\t}\n\t\t\t\n\t\t\t// if this is a different card, select the bad pair\n\t\t\tif (faceValues.get(firstSelectableCardPos) != face) {\n\t\t\t\tsolo.clickOnImage(firstSelectableCardPos);\n\t\t\t\tsolo.clickOnImage(card);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "protected boolean isFinished() {\n\t\t// get MP status from each talon\n\t\tleftTalon.getMotionProfileStatus(leftStatus);\n\t\trightTalon.getMotionProfileStatus(rightStatus);\n\n\t\tboolean left = (leftStatus.activePointValid && leftStatus.isLast);\n\t\tboolean right = (rightStatus.activePointValid && rightStatus.isLast);\n\t\t\n\n\t\tif (left && right) {\n\t\t\tstate = SetValueMotionProfile.Disable;\n\t\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\t\tSystem.out.println(\"DriveByMotion: Finished\");\n\t\t}\n\n\t\treturn (left && right);\n\t}", "boolean isInterested(Polygon p, ObjectInMap exclusion) {\n for (ObjectInMap objectInMap : objectsInMap)\n if (!objectInMap.equals(exclusion) && objectInMap.isBlocking && objectInMap.intersects(p))\n if (!(objectInMap instanceof Bullet && ((Bullet) objectInMap).owner.equals(exclusion))) {\n return true;\n }\n return false;\n }", "private boolean isTargetTerritoryOneBlockAway() {\n for(Territory territory:getCurrentPlayerTerritories()) {\n if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == 1) {\n int minID = Math.min(territory.getID(),selectedTerritoryByPlayer.getID());\n int maxID = Math.max(territory.getID(),selectedTerritoryByPlayer.getID());\n if(maxID % gameDescriptor.getColumns() == 0)\n return true;\n if((minID % gameDescriptor.getColumns() != 0 )\n && (minID / gameDescriptor.getColumns() == maxID / gameDescriptor.getColumns())) {\n return true;\n }\n }\n else if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == gameDescriptor.getColumns())\n return true;\n }\n return false;\n }", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "private Vector<Integer> matchCheckPoint(List<Point> a) {\t\t\t\n\t\tVector<Integer> iDS= new Vector<>();\n\t\tfor(Point p :a) {\n\t\t\tif(!getAsphalt(p.x, p.y,this.trk).isIdDefalt()) {\n\t\t\t\tiDS.add(getAsphalt(p.x, p.y,this.trk).getId());\n\t\t\t}\n\t\t}\n\t\treturn iDS;\n\t}", "List<Condition> conditionToFindConflict(final P entity);", "private Vector<Integer> excludeSlot(int index, boolean isCourse)\n\t{\n\t\tVector<Integer> exclusion = new Vector<>();\n\t\t\n\t\tif(isCourse)\n\t\t{//Course specific exclusions (Tuesday and Evening)\n\t\t\t//No Courses Allowed on Tuesday at 11:00\n\t\t\texclusion.add(tuesdayExcludeSlot);\t\t\t\n\t\t\t\n\t\t\tif(parser.coursesVector.get(index).getLectureNumber().startsWith(\"9\"))\n\t\t\t{//for evening classes\n\t\t\t\tfor(int i = 0; i < parser.courseSlotsVector.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tTimeSlot slot = parser.courseSlotsVector.get(i);\n\t\t\t\t\t\n\t\t\t\t\tif(!((slot.getStartTime().matches(\"17:00\")) || (slot.getStartTime().matches(\"18:00\")) || (slot.getStartTime().matches(\"19:00\")) || (slot.getStartTime().matches(\"20:00\")) || (slot.getStartTime().matches(\"18:30\"))))\n\t\t\t\t\t{//if its not an evening slot, add to the exclusion list\n\t\t\t\t\t\texclusion.add(i);\n\t\t\t\t\t}\n\t\t\t\t}//end for loop\n\t\t\t}\t\t\t\n\t\t}else //end if-then\n\t\t{\n\t\t\tif(parser.labsVector.get(index).getLabNumber().startsWith(\"9\"))\n\t\t\t{//for evening classes\n\t\t\t\tfor(int i = 0; i < parser.labSlotsVector.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tTimeSlot slot = parser.labSlotsVector.get(i);\n\t\t\t\t\t\n\t\t\t\t\tif(!((slot.getStartTime().matches(\"17:00\")) || (slot.getStartTime().matches(\"18:00\")) || (slot.getStartTime().matches(\"19:00\")) || (slot.getStartTime().matches(\"20:00\")) || (slot.getStartTime().matches(\"18:30\"))))\n\t\t\t\t\t{//if its not an evening slot, add to the exclusion list\n\t\t\t\t\t\texclusion.add(i);\n\t\t\t\t\t}\n\t\t\t\t}//end for loop\n\t\t\t}\n\t\t}//end if-else\t\n\t\t\n\t\treturn exclusion;\n\t}", "public boolean percolates() {\n return false;\n }", "boolean isSetParlay();", "public boolean hasPendencias() {\n\n for (Atividade atividade : associacao.getAtividades()) {\n if (atividade != null) {\n if (atividade.contaItensPendentes() > 0) {\n return true;\n }\n }\n }\n return false;\n }", "private GridPiece getOppositeActive() {\n\n\t\t/*System.out.println(\"GS| origin row: \" + origin.row);\n\t\tSystem.out.println(\"GS| origin col: \" + origin.column);\n\t\tSystem.out.println(\"GS| origin center x,y: \" + origin.getCenter());*/\n\n\n if (game.gridPieces[game.getGridPiece(touchPos)] == origin) {\n return origin;\n }\n float degrees;\n\n // Get degrees\n degrees = MathUtils.atan2(touchPos.y - origin.getCenter().y, touchPos.x - origin.getCenter().x);\n\n float quarterPi = 0.78539816339f;\n\n if (!originOpposite.contains(falsePiece)) {\n for (GridPiece gridPiece : originOpposite) {\n\n //System.out.println(\"GS| degrees: \" + degrees);\n\t\t\t/*System.out.println(\"GS| gridpiece row: \" + gridPiece.row);\n\t\t\tSystem.out.println(\"GS| gridpiece col: \" + gridPiece.column);\n\t\t\tSystem.out.println(\"GS| gridpiece center x,y: \" + gridPiece.getCenter());*/\n\n // Right\n if (degrees >= 0 && degrees < quarterPi || degrees < 0 && degrees >= -quarterPi) {\n if (gridPiece.row == origin.row && gridPiece.getCenter().x > origin.getCenter().x) {\n return gridPiece;\n }\n }\n\n // Down\n else if (degrees <= -quarterPi && degrees > -quarterPi * 3) {\n if (gridPiece.column == origin.column && gridPiece.getCenter().y < origin.getCenter().y) {\n return gridPiece;\n }\n }\n\n // Left\n else if (degrees > quarterPi * 3 && degrees <= quarterPi * 4\n || degrees < -quarterPi * 3 && degrees >= -quarterPi * 4) {\n if (gridPiece.row == origin.row && gridPiece.getCenter().x < origin.getCenter().x) {\n return gridPiece;\n }\n }\n\n // Up\n else if (degrees >= quarterPi && degrees < quarterPi * 3) {\n if (gridPiece.column == origin.column && gridPiece.getCenter().y > origin.getCenter().y) {\n return gridPiece;\n }\n }\n\n }\n }\n return origin;\n }", "boolean isPossible() {\n return (sideOne + sideTwo > sideThree) && (sideTwo + sideThree > sideOne) && (sideThree + sideOne > sideTwo);\n }", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "public List<Party> getCurrentlyProcessingParties() {\n return currentlyProcessingParties;\n }", "boolean complete() {\n return start2D != null && stop2D != null;// && start3D!=null && stop3D!=null;\n }", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "public List<Set<String>> getOptionalAssetsComplete(Player p){\n \n return null;\n }", "private boolean checkMultiplePlaneEdit(){\r\n\t\tboolean flag=false;\r\n\t\tfor(UiAirplaneModel model:uiAirplaneModel.getAirplaneList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "boolean getProbables();", "public void imprimir() {\n\t\r\n\tSystem.out.println(\"El circulo tiene un perimetro de \"+ this.perimetro + \" y un area de \"+ this.area);\r\n\t\r\n\t}", "public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);", "public boolean[] findArticulationPoints() {\r\n if (solved) return isArticulationPoint;//not repeating cycles\r\n id = 0;//initial id of node\r\n lowLinkValues = new int[vertices];\r\n ids = new int[vertices];\r\n visited = new boolean[vertices];\r\n isArticulationPoint = new boolean[vertices];\r\n for (int i = 0; i < vertices; i++) {//for every vertex in graph\r\n if (!visited[i]) {//if node has not been visited\r\n rootNodeOutComingEdgeCount = 0;//out degree will be 0\r\n dfs(i, i, -1);//run dfs\r\n isArticulationPoint[i] = (rootNodeOutComingEdgeCount > 1);//if out degree is more than 1, its an AP\r\n }\r\n }\r\n solved = true;//mark it is solved\r\n return isArticulationPoint;//return array\r\n }", "boolean getMission();", "private boolean isContieneLotesDetallePedidos(){\n String pResultado = \"N\";\n try {\n log.info(\"VariablesDelivery.vNumeroPedido_bk:\"+VariablesDelivery.vNumeroPedido_bk);\n log.info(\"VariablesDelivery.vCodLocal_bk:\"+VariablesDelivery.vCodLocal_bk);\n pResultado = DBDelivery.isContienLotesProductos(VariablesDelivery.vCodLocal_bk,\n VariablesDelivery.vNumeroPedido_bk);\n \n log.info(\"isContieneLotesDetallePedidos():\"+pResultado);\n } catch (Exception e) {\n pResultado = \"N\"; \n log.info(\"Error al obtener ind Productos x Lote del Pedido:\"+e.getMessage());\n }\n \n if(pResultado.trim().equalsIgnoreCase(\"N\")){\n return false;\n }\n else{\n FarmaUtility.showMessage(this,\"El pedido ya tiene los Lotes Ingresados\\n\" +\n \"Se procederá a generar el pedido.\\n\" +\n \"Gracias.\" ,tblListaDetallePedido);\n \n return true;\n }\n }", "private Vector<Route> getRouteRelieAVille(Ville ville){\n\t\tVector<Route> tmp = new Vector<Route>();\n\t\tfor(Route v : routes)\n\t\t\tif(v != null)\n\t\t\t\tif(v.ville1.equals(ville) || v.ville2.equals(ville))\n\t\t\t\t\ttmp.add(v);\n\t\treturn tmp;\n\t}", "boolean hasPlaneValue();", "@Override\n\tpublic List<Parking> employeeaNonAvailableParking() {\n\t\treturn parkingRepository.employeeaNonAvailableParking();\n\t}", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "private boolean pistaReservada(List<ReservaEntity> reservaEntities, int idPista) {\n\n for (ReservaEntity reservaEntity : reservaEntities) {\n if (idPista == reservaEntity.getIdPista()) {\n return true;\n }\n }\n return false;\n }", "public boolean roadBlocked(Player player)\n {\n int num = 0;\n int num2 = 0;\n int num3 = 0;\n if (person_to_play == 1)\n {\n num = check4CollisionWithRed(player);\n num2 = check4CollisionWithGreen(player);\n num3 = check4CollisionWithYellow(player);\n }\n else if (person_to_play == 2)\n {\n //println(\"inside road block\");\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithGreen(player);\n num3 = check4CollisionWithYellow(player);\n //println(\"num=\"+num);\n }\n else if (person_to_play == 3)\n {\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithRed(player);\n num3 = check4CollisionWithYellow(player);\n }\n else if (person_to_play == 4)\n {\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithRed(player);\n num3 = check4CollisionWithGreen(player);\n }\n if (num > 1 || num2 > 1 || num3 > 1)\n {\n return true;\n }\n return false;\n }", "private List<Obs> getFinalObsList(Patient patient, List<Obs> patientObsList, Integer pid){\n\t\tList<Concept> conceptListNotToBeExported = getSavedObs(pid);\n\t\tSet<Concept> removedDuplicateConceptList = new HashSet<Concept>(conceptListNotToBeExported);\n\t\tfor(int k=0; k<patientObsList.size();k++){\n\t\t\tConcept c = patientObsList.get(k).getConcept();\n\t\t\tif(removedDuplicateConceptList.contains(c)){\n\t\t\t\tpatientObsList.remove(k);\n\t\t\t}\n\t\t}\n\t\treturn patientObsList;\n\t}", "public List<ColorId> checkPlayersBasicMode ()\n {\n List<ColorId> players = new ArrayList<>();\n\n for (Player playerIterate : player.playerThatSee(player.getSquare().getGameBoard()))\n {\n if (playerIterate.getSquare() != player.getSquare())\n players.add(playerIterate.getColor());\n }\n return players;\n }", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "public void finalizarPartida (boolean pVictoria)\n {\n partidaActiva = false;\n\n //Se avisa a los observers que ha finalizado la partida y cual ha sido el resultado\n lObservers.firePropertyChange(\"estadoPartida\", null, pVictoria);\n\n Contador.getContador().parar();\n\n //Si el usuario ha ganado la partida se envían los datos para actualizar el ranking\n if (pVictoria) {\n Ranking.getRanking().addJugadorRanking(dificultad, nombreUsuario);\n\n //Se abre la ventana del ranking\n this.mostrarRanking();\n SFXPlayer.getSFXPlayer().stopBackground();\n SFXPlayer.getSFXPlayer().playSFX(\"victory\");\n }\n\n //Se para y resetea el contador\n Contador.getContador().reset();\n }", "@Override public boolean hasNext() {\n return !pila.esVacia();\n }", "private List<User> getSynchronizablePacients() {\n List<User> pacients = userRepository.findByRoles_Name(RolesNamesEnum.PATIENT.name());\n\n pacients = pacients.stream().filter(p -> (p.getTreatment() != null && !p.getTreatment().getVitals().isEmpty() && !p.getOauths().isEmpty())).collect(Collectors.toList());\n return pacients;\n }", "public int getActivePens(){\n return this.mFarm.getActivePens();\n }", "private List<GPairRecord<S, S>> getNonCrossingPairs(final Predicate<Pair<S, S>> predicate) {\n List<GPairRecord<S, S>> recordList = new ArrayList<>();\n slp.getOrderedProductions().stream().map(p -> p.getLeft()).forEach(nonTerminal -> consumeNonCrossingPairs(nonTerminal, recordList::add, predicate));\n return recordList;\n }", "@Override\n \tpublic boolean canLeave(ArenaPlayer p) {\n \t\treturn true;\n \t}", "private List<Integer>getDead(List<Box> Alive){\n List<Integer> alive = new ArrayList<>();\n List<Integer> dead = new ArrayList<>();\n\n for(Box box : Alive){\n alive.add(box.getId());\n }\n\n for(int i=1;i<17;i++){\n if(!alive.contains(i)){\n dead.add(i);\n }\n }\n\n return dead;\n }", "private boolean not_completeScorboard(int no_of_instruct) {\n\n\t\tboolean comp;\n\t\tcomp = false;\n\t\tfor (int p = 0; p < no_of_instruct; p++) {\n\t\t\tif ((lstInstructionsScorboard.get(p).getStatus() != EnumInstructionStatus.complete))\n\t\t\t\tcomp = true;\n\t\t}\n\t\treturn comp;\n\t}", "public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public ArrayList<Point> projection(Camera camera) {\n\t\tArrayList<Point> arr4 = new ArrayList<>();\n\n\t\tArrayList<Point> arr1 = new ArrayList<>();\n\t\tarr1.add(A2);\n\t\tarr1.add(B2);\n\t\tarr1.add(C2);\n\t\tarr1.add(D2);\n\n\t\tArrayList<Point> arr2 = intersection(camera); // array dung de duyet\n\t\tArrayList<Point> arr3 = inVision(camera);\n\n\t\tPlane oxy = new Plane(new Point(), new Point(0, 1, 0), new Point(1, 0, 0));\n\t\tPoint camPos = camera.getPosition();\n\n\t\tPoint first = arr2.remove(0);\n\t\tif (arr3.contains(first)) {\n\t\t\tLine l = new Line(first, camPos);\n\t\t\tarr4.add(l.intersection(oxy));\n\t\t} else {\n\t\t\tarr4.add(first);\n\t\t}\n\n\t\tif (arr1.size() == arr3.size()) { // Ca 4 dinh cua vat the nam trong tam nhin cua camera\n\t\t\tfor (Point element : arr1) {\n\t\t\t\tarr4.add(oxy.intersection(new Line(element, camPos)));\n\t\t\t}\n\t\t}\n\t\t// else if(arr3.size() == 0) {\n\t\t// arr4 = arr1;\n\t\t// }\n\t\telse {\n\t\t\t// duyet arr2\n\t\t\tfor (Point element : arr2) {\n\t\t\t\tif (arr1.contains(element)) {\n\t\t\t\t\tif (arr3.contains(element)) {\n\t\t\t\t\t\tPoint lastOfArr4 = arr4.get(arr4.size() - 1);\n\t\t\t\t\t\tPoint interPoint = oxy.intersection(new Line(element, camPos)); // Giao diem cua mp Oxy voi\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// duong thang noi giua camera\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// va element\n\n\t\t\t\t\t\tif (arr2.contains(lastOfArr4)) {\n\t\t\t\t\t\t\tarr4.add(element);\n\t\t\t\t\t\t\tarr4.add(interPoint);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint nextElementIndex = arr2.indexOf(element) + 1;\n\t\t\t\t\t\t\tif (nextElementIndex < arr2.size()) {\n\t\t\t\t\t\t\t\tPoint nextELement = arr2.get(nextElementIndex);\n\t\t\t\t\t\t\t\tif (arr1.contains(nextELement) && !arr3.contains(nextELement)) {\n\t\t\t\t\t\t\t\t\tarr4.add(interPoint);\n\t\t\t\t\t\t\t\t\tarr4.add(element);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tarr4.add(interPoint);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tarr4.add(element);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tPoint lastOfArr4 = arr4.get(arr4.size() - 1);\n\t\t\t\t\tPoint interPoint = oxy.intersection(new Line(element, camPos)); // Giao diem cua mp Oxy voi duong\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// thang noi giua camera va element\n\n\t\t\t\t\tif (arr2.contains(lastOfArr4)) {\n\t\t\t\t\t\tarr4.add(element);\n\t\t\t\t\t\tarr4.add(interPoint);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint nextElementIndex = arr2.indexOf(element) + 1;\n\t\t\t\t\t\tif (nextElementIndex < arr2.size()) {\n\t\t\t\t\t\t\tPoint nextELement = arr2.get(nextElementIndex);\n\t\t\t\t\t\t\tif (arr1.contains(nextELement) && !arr3.contains(nextELement)) {\n\t\t\t\t\t\t\t\tarr4.add(interPoint);\n\t\t\t\t\t\t\t\tarr4.add(element);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tarr4.add(interPoint);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (Point element : arr4) {\n\t\t\telement.setZ(0);\n\t\t}\n\n\t\tif (arr4.get(0).compare(arr4.get(arr4.size() - 1))) {\n\t\t\tarr4.remove(arr4.size() - 1);\n\t\t}\n\n\t\treturn arr4;\n\t}", "public boolean hasRejected() {\n return fieldSetFlags()[19];\n }", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "public boolean isDone() {\n //check if valid board\n assert isValidSolitaireBoard();\n if (numPiles == NUM_FINAL_PILES){\n //create array checkDonewith size NUM_FINAL_PILES\n int[] checkDone = new int[NUM_FINAL_PILES];\n \n /**\n the value in piles[i] needs to be unique, not greater than NUM_FINAL_PILES\n and no duplicates of the number\n each value is used as an index to the new array and their value is\n the checkDone's value. Eg. piles[2] = 4, checkDone[4] = 4\n if the checkDone[piles[i]] equals to piles[i], there is a duplicate.\n */\n for (int i = 0 ; i < numPiles; i++){\n if ((piles[i] <= NUM_FINAL_PILES) && (checkDone[piles[i] - 1] != piles[i])){\n checkDone[piles[i] - 1] = piles[i];\n }\n else\n return false;\n }\n return true;\n }\n else\n return false;\n }", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public Set<Irrigation> getAvailableIrrigationSlots ()\n {\n Set<Irrigation> availableIrrigations = new HashSet<>();\n\n ArrayList<Cell> neightboors;\n\n neightboors = getExistingNeighboors(new Point());\n\n neightboors.forEach(cell -> {\n ArrayList<Cell> touching = getCommonNeighboors(cell.getCoords(), new Point());\n touching.stream()\n .filter(t -> !verifIrrigation(cell.getCoords(), t.getCoords()))\n .forEach(t -> availableIrrigations.add(new Irrigation((Plot) t, (Plot) cell)));\n });\n\n for (Irrigation irg : irrigation)\n {\n\n neightboors = getCommonNeighboors(irg.getPlot1().getCoords(), irg.getPlot2().getCoords());\n\n neightboors.stream().filter(cell -> !(cell.getCoords().equals(new Point()))).forEach(plot -> {\n\n if (!verifIrrigation(plot.getCoords(), irg.getPlot1().getCoords())) availableIrrigations.add(new Irrigation((Plot) plot,\n irg.getPlot1()));\n\n if (!verifIrrigation(plot.getCoords(), irg.getPlot2().getCoords())) availableIrrigations.add(new Irrigation((Plot) plot,\n irg.getPlot2()));\n\n });\n }\n availableIrrigations.removeAll(irrigation);\n return availableIrrigations;\n }" ]
[ "0.5249045", "0.5128288", "0.5123848", "0.5057255", "0.49981698", "0.49288517", "0.48948023", "0.48718044", "0.4808278", "0.47973645", "0.47922468", "0.47826788", "0.4773419", "0.47640824", "0.47544307", "0.4751821", "0.4714432", "0.47025305", "0.4700313", "0.46913874", "0.46862864", "0.46844646", "0.4681932", "0.46782044", "0.46563327", "0.46547186", "0.46394604", "0.46330404", "0.46222395", "0.45796216", "0.45742747", "0.45619622", "0.45526737", "0.45502383", "0.45490935", "0.45473364", "0.45226157", "0.45217225", "0.4520741", "0.45207232", "0.45205736", "0.4516476", "0.45146886", "0.45115423", "0.4510209", "0.45099035", "0.45096806", "0.45096016", "0.45034024", "0.44927225", "0.44920185", "0.4491468", "0.44825384", "0.4480898", "0.44803318", "0.4470306", "0.4464231", "0.44618964", "0.4456022", "0.44535977", "0.44509804", "0.44458166", "0.44439498", "0.4441146", "0.44351727", "0.4427445", "0.44195116", "0.44172785", "0.4417036", "0.44122973", "0.4411009", "0.44016585", "0.44012243", "0.4400286", "0.43997306", "0.4398112", "0.43977606", "0.43942156", "0.43921867", "0.43862054", "0.4381676", "0.4380975", "0.4380307", "0.43743113", "0.4373799", "0.4372888", "0.43723312", "0.437112", "0.43710345", "0.4369201", "0.43661085", "0.43637657", "0.4363202", "0.43599966", "0.43569455", "0.43560255", "0.4355666", "0.43553367", "0.43524015", "0.4348636" ]
0.51530653
1
Returns the parades that are in the same area and have status = ACCEPTED and finalMode = true
public Collection<Parade> findAcceptedByArea(final int id) { Collection<Parade> parades; this.areaService.checkPrincipalArea(id); parades = this.paradeRepository.findAcceptedByArea(id); return parades; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Parade> findParadeAcceptedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "private void comprobarActividades(List<DetectedActivity> actividadesProvables){\n for( DetectedActivity activity : actividadesProvables) {\n //preguntamos por el tipo\n switch( activity.getType() ) {\n case DetectedActivity.IN_VEHICLE: {\n //preguntamos por la provabilidad de que sea esa actividad\n //si es mayor de 75 (de cien) mostramos un mensaje\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En vehiculo\");\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"En bici\");\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n //este lo dejamos vacio por que va implicito en correr y andar\n break;\n }\n case DetectedActivity.RUNNING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Corriendo\");\n }\n break;\n }\n case DetectedActivity.WALKING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Andando\");\n }\n break;\n }\n case DetectedActivity.STILL: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Quieto\");\n }\n break;\n }\n case DetectedActivity.TILTING: {\n if(activity.getConfidence()>75){\n Log.i(\"samsoftRecAct\",\"Tumbado\");\n }\n break;\n }\n\n case DetectedActivity.UNKNOWN: {\n //si es desconocida no decimos nada\n break;\n }\n }\n }\n }", "@Override\n\tpublic boolean getStatus() {\n\t\treturn _candidate.getStatus();\n\t}", "public boolean hayParadasCercanas(Coordenada coordenadaDeBusqueda) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}", "public Collection<Parade> findParadeAcceptedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeAcceptedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "boolean getAccepted();", "public CandidateValue getStatusCVs() {\n\n return statusCVs;\n }", "public Collection<Parade> findParadeSubmittedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public void finalResult() {\n ConnectionSockets.getInstance().sendMessage(Integer.toString(points)+\"\\n\");\n System.out.println(\"escreveu para o oponente\");\n opponentPoints = Integer.parseInt(ConnectionSockets.getInstance().receiveMessage());\n System.out.println(\"leu do oponente\");\n if(points != opponentPoints) {\n if (points > opponentPoints) {// Won\n MatchController.getInstance().getSets().add(1);\n MatchController.getInstance().increaseSet();\n } else { //Lost\n MatchController.getInstance().getSets().add(0);\n MatchController.getInstance().increaseSet();\n }\n }\n }", "public Collection<Parade> findParadeRejectedFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeRejectedFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public Double findRatioParadesDraftModeVSParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Parade save(final Parade parade) {\n\t\tAssert.notNull(parade.getBrotherhood().getArea());\n\n\t\tAssert.notNull(parade);\n\n\t\tParade result = parade;\n\n\t\tBrotherhood brotherhood = null;\n\t\tChapter chapter = null;\n\n\t\tfinal Authority authorityBrotherhood = new Authority();\n\t\tauthorityBrotherhood.setAuthority(Authority.BROTHERHOOD);\n\t\tfinal Authority authorityChapter = new Authority();\n\t\tauthorityChapter.setAuthority(Authority.CHAPTER);\n\n\t\tif (LoginService.getPrincipal().getAuthorities().contains(authorityBrotherhood))\n\t\t\tbrotherhood = this.brotherhoodService.findByPrincipal();\n\t\telse if (LoginService.getPrincipal().getAuthorities().contains(authorityChapter)) {\n\t\t\tchapter = this.chapterService.findByPrincipal();\n\t\t\tfinal Chapter chapterCoordinatedParades = this.chapterService.findChapterByAreaId(parade.getBrotherhood().getArea().getId());\n\t\t\tAssert.isTrue(chapter.getId() == chapterCoordinatedParades.getId());\n\t\t}\n\t\tAssert.isTrue(brotherhood != null || chapter != null);\n\n\t\t/*\n\t\t * Aqu� pasamos el status a SUBMITTED si se le pusiera en el create o el edit\n\t\t * el FINAL MODE a TRUE\n\t\t */\n\t\tif (parade.getId() != 0) {\n\t\t\tfinal Parade paradeBBDD = this.findOne(parade.getId());\n\t\t\t//si estaba a true ya no se puede modificar\n\t\t\tif (!LoginService.getPrincipal().getAuthorities().contains(authorityChapter))\n\t\t\t\tAssert.isTrue(paradeBBDD.getFinalMode() == false);\n\n\t\t\t//si estaba a false el de BBDD y ahora se ha puesto a true\n\t\t\tif (parade.getStatus() == null && parade.getFinalMode() == true)\n\t\t\t\tparade.setStatus(\"SUBMITTED\");\n\n\t\t\tif (parade.getStatus() == \"REJECTED\")\n\t\t\t\tAssert.isTrue(parade.getRejectedComment() != null && parade.getRejectedComment() != \"\");\n\n\t\t} else if (parade.getId() == 0 && parade.getFinalMode() == true)\n\t\t\tparade.setStatus(\"SUBMITTED\");\n\t\tfinal Date currentMoment = new Date(System.currentTimeMillis() - 1000);\n\t\tAssert.isTrue(parade.getOrganisationMoment().after(currentMoment));\n\n\t\tresult = this.paradeRepository.save(parade);\n\n\t\treturn result;\n\n\t}", "@Test\n public void testSuccessfulSinglePar() throws Exception {\n try {\n // setup PAR realm settings\n int requestUriLifespan = 45;\n setParRealmSettings(requestUriLifespan);\n\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, oidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(201, pResp.getStatusCode());\n String requestUri = pResp.getRequestUri();\n assertEquals(requestUriLifespan, pResp.getExpiresIn());\n\n // Authorization Request with request_uri of PAR\n // remove parameters as query strings of uri\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUri);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n assertEquals(state, loginResponse.getState());\n String code = loginResponse.getCode();\n String sessionId =loginResponse.getSessionState();\n\n // Token Request\n oauth.redirectUri(CLIENT_REDIRECT_URI); // get tokens, it needed. https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n\n AccessToken token = oauth.verifyToken(res.getAccessToken());\n String userId = findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER_NAME).getId();\n assertEquals(userId, token.getSubject());\n assertEquals(sessionId, token.getSessionState());\n // The following check is not valid anymore since file store does have the same ID, and is redundant due to the previous line\n // Assert.assertNotEquals(TEST_USER_NAME, token.getSubject());\n assertEquals(clientId, token.getIssuedFor());\n\n // Token Refresh\n String refreshTokenString = res.getRefreshToken();\n RefreshToken refreshToken = oauth.parseRefreshToken(refreshTokenString);\n assertEquals(sessionId, refreshToken.getSessionState());\n assertEquals(clientId, refreshToken.getIssuedFor());\n\n OAuthClient.AccessTokenResponse refreshResponse = oauth.doRefreshTokenRequest(refreshTokenString, clientSecret);\n assertEquals(200, refreshResponse.getStatusCode());\n\n AccessToken refreshedToken = oauth.verifyToken(refreshResponse.getAccessToken());\n RefreshToken refreshedRefreshToken = oauth.parseRefreshToken(refreshResponse.getRefreshToken());\n assertEquals(sessionId, refreshedToken.getSessionState());\n assertEquals(sessionId, refreshedRefreshToken.getSessionState());\n assertEquals(findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER_NAME).getId(), refreshedToken.getSubject());\n\n // Logout\n oauth.doLogout(refreshResponse.getRefreshToken(), clientSecret);\n refreshResponse = oauth.doRefreshTokenRequest(refreshResponse.getRefreshToken(), clientSecret);\n assertEquals(400, refreshResponse.getStatusCode());\n\n } finally {\n restoreParRealmSettings();\n }\n }", "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "public List<Candidates> getWinningSingleCandidates() {\n List<Candidates> allCandidates = candidateService.findAll();\n Map<Integer, Integer> mandatesResults = singleService.singleWinners();\n List<Candidates> allWinningCandidates = new ArrayList<>();\n // Map<Integer, Integer> mandatesResults = new HashMap<>();\n for (Candidates candidate : allCandidates) {\n for (Integer winnerIds : mandatesResults.keySet()) {\n if (candidate.getId().equals(winnerIds)) {\n allWinningCandidates.add(candidate);\n }\n }\n }\n\n for (Candidates candidate : allWinningCandidates) {\n candidate.setCandidate_elected(\"single\");\n candidateService.saveOrUpdate(candidate);\n }\n return allWinningCandidates;\n }", "private void getParticipantes() {\n mParticipantes = estudioAdapter.getParticipantes(MainDBConstants.estado + \"= '\" + Constants.STATUS_NOT_SUBMITTED+ \"'\", null);\n //ca.close();\n }", "public String getIsPoaAccepted() {\n\t\treturn isPoaAccepted;\n\t}", "public boolean isConnected() {\r\n\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tArrayList<String> list = new ArrayList<>(vtces.keySet());\r\n\t\tint count = 0;\r\n\t\tfor (String key : list) {\r\n\t\t\tif (processed.containsKey(key))\r\n\t\t\t\tcontinue;\r\n\t\t\tcount++;\r\n\t\t\t// Create a new pair\r\n\t\t\tPair npr = new Pair();\r\n\t\t\tnpr.vname = key;\r\n\t\t\tnpr.psf = key;\r\n\r\n\t\t\t// put pair queue\r\n\t\t\tqueue.addLast(npr);\r\n\r\n\t\t\t// Work while queue is not empty\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\r\n\t\t\t\t// Remove a pair from queue\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\tif (processed.containsKey(rp.vname))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// Put in processed hashmap\r\n\t\t\t\tprocessed.put(rp.vname, True);\r\n\r\n\t\t\t\t// nbrs\r\n\t\t\t\tVertex rpvertex = vtces.get(rp.vname);\r\n\t\t\t\tArrayList<String> nbrs = new ArrayList<>(rpvertex.nbrs.keySet());\r\n\r\n\t\t\t\tfor (String nbr : nbrs) {\r\n\t\t\t\t\t// Process only unprocessed vertex\r\n\t\t\t\t\tif (!processed.containsKey(nbr)) {\r\n\t\t\t\t\t\t// Create a new pair and put in queue\r\n\t\t\t\t\t\tPair np = new Pair();\r\n\t\t\t\t\t\tnp.vname = nbr;\r\n\t\t\t\t\t\tnp.psf = rp.psf + nbr;\r\n\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (count > 1)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus();\n\t}", "@Override\n public boolean filterConsecutivePeptides() {\n return filterConsectutivePeptides;\n }", "public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "cosmos.gov.v1beta1.ProposalStatus getStatus();", "public NSArray tosRepartFdpCompetencesAutres() {\n\t\tNSArray tosRepartFdpCompetencesAutres = super.tosRepartFdpAutre(\n\t\t\t\t\tCktlDataBus.newCondition(EORepartFdpAutre.FAU_TYPE_KEY + \"='\" + EORepartFdpAutre.TYPE_COMPETENCE + \"'\"));\n\t\treturn CktlSort.sortedArray(tosRepartFdpCompetencesAutres, EORepartFdpAutre.FAU_POSITION_KEY);\n\t}", "com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();", "private boolean compareChromaPanes(boolean crossed)\n {\n int d;\n int f = 0;\n\n for (int j = 0; j < NB_DECODED; j++)\n {\n if (decodedVideo[j] != null)\n {\n // We compare the U and V pane before and after\n if (!crossed)\n {\n for (int i = size; i < 3 * size / 2; i += 1)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i] & 0xFF);\n d = d < 0 ? -d : d;\n if (d > 50)\n {\n f++;\n break;\n }\n }\n\n // We compare the V pane before with the U pane after\n }\n else\n {\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i + 1] & 0xFF);\n d = d < 0 ? -d : d;\n if (d > 50)\n {\n f++;\n }\n }\n }\n }\n }\n\n return f <= NB_DECODED / 2;\n }", "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public List<ColorId> checkPlayersBasicMode ()\n {\n List<ColorId> players = new ArrayList<>();\n\n for (Player playerIterate : player.playerThatSee(player.getSquare().getGameBoard()))\n {\n if (playerIterate.getSquare() != player.getSquare())\n players.add(playerIterate.getColor());\n }\n return players;\n }", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "public void filterClosedConvoysinMerge(List<Convoy> VpccResult, List<Convoy> VpccTrue){\n\t\t\t\tList<Convoy> toRemove=new ArrayList<Convoy>();\n\t\t\t\tfor(Convoy v:VpccTrue){\n\t\t\t\t\tif(VpccResult.contains(v)){\n\t\t\t\t\t\ttoRemove.add(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"To Remove size = \" + toRemove.size());\n\t\t\t\tint sizeVpcc=VpccTrue.size();\n\t\t\t\tSystem.out.println(\"Vpcc Size before Filtering = \"+sizeVpcc);\n\t\t\t\tint sizeVpccn=VpccResult.size();\n\t\t\t\tSystem.out.println(\"Vpccn Size before Filtering = \"+sizeVpccn);\n\t\t\t\tfor(Convoy v:toRemove){\n\t\t\t\t\tsizeVpcc=VpccTrue.size();\n\t\t\t\t\tsizeVpccn=VpccResult.size();\n\t\t\t\t\tVpccResult.remove(v);\n\t\t\t\t\tVpccTrue.remove(v);\n\t\t\t\t\tif(VpccTrue.size()-sizeVpcc>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpcc true\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t\tif(VpccResult.size()-sizeVpccn>1){\n\t\t\t\t\t\tSystem.out.println(\"The convoy exists more in Vpccn Result\");\n\t\t\t\t\t\tSystem.out.println(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Vpcc Size after Filtering = \"+VpccTrue.size());\n\t\t\t\tSystem.out.println(\"Vpccn Size after Filtering = \"+VpccResult.size());\n\t\t\t\tSystem.out.println(\"Convoys closed = \"+(VpccResult.size()-VpccTrue.size()));\n\t\t\t\tthis.VpccVcoda=VpccTrue;\n\t\t\t\tthis.VpccMerge=VpccResult;\n\t}", "@Override\n public void onCEPSuccess(ViaCEP cep) {\n System.out.println();\n System.out.println(\"CEP \" + cep.getCep() + \" encontrado!\");\n System.out.println(\"Logradouro: \" + cep.getLogradouro());\n System.out.println(\"Complemento: \" + cep.getComplemento());\n System.out.println(\"Bairro: \" + cep.getBairro());\n System.out.println(\"Localidade: \" + cep.getLocalidade());\n System.out.println(\"UF: \" + cep.getUf());\n System.out.println(\"Gia: \" + cep.getGia());\n System.out.println(\"Ibge: \" + cep.getIbge());\n System.out.println();\n }", "public boolean IsConnected() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tint counter = 0;\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcounter++;\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn counter == 1;\r\n\t}", "boolean hasCandidate();", "public Collection<Parade> findSubmittedByArea(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tthis.areaService.checkPrincipalArea(id);\n\n\t\tparades = this.paradeRepository.findSubmittedByArea(id);\n\n\t\treturn parades;\n\t}", "boolean hasPassCardsResponse();", "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "public boolean isSolved() {\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1, 1) != RubiksColor.BLUE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2, 1) != RubiksColor.BLUE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3, 1) != RubiksColor.BLUE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1, 2) != RubiksColor.BLUE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3, 2) != RubiksColor.BLUE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1, 3) != RubiksColor.BLUE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2, 3) != RubiksColor.BLUE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3, 3) != RubiksColor.BLUE) return false;\n\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1, 1) != RubiksColor.YELLOW) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2, 1) != RubiksColor.YELLOW) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3, 1) != RubiksColor.YELLOW) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1, 2) != RubiksColor.YELLOW) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3, 2) != RubiksColor.YELLOW) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1, 3) != RubiksColor.YELLOW) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2, 3) != RubiksColor.YELLOW) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3, 3) != RubiksColor.YELLOW) return false;\n\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1, 1) != RubiksColor.GREEN) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2, 1) != RubiksColor.GREEN) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3, 1) != RubiksColor.GREEN) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1, 2) != RubiksColor.GREEN) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3, 2) != RubiksColor.GREEN) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1, 3) != RubiksColor.GREEN) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2, 3) != RubiksColor.GREEN) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3, 3) != RubiksColor.GREEN) return false;\n\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1, 1) != RubiksColor.WHITE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2, 1) != RubiksColor.WHITE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3, 1) != RubiksColor.WHITE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1, 2) != RubiksColor.WHITE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3, 2) != RubiksColor.WHITE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1, 3) != RubiksColor.WHITE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2, 3) != RubiksColor.WHITE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3, 3) != RubiksColor.WHITE) return false;\n\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1, 1) != RubiksColor.ORANGE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2, 1) != RubiksColor.ORANGE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3, 1) != RubiksColor.ORANGE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1, 2) != RubiksColor.ORANGE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3, 2) != RubiksColor.ORANGE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1, 3) != RubiksColor.ORANGE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2, 3) != RubiksColor.ORANGE) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3, 3) != RubiksColor.ORANGE) return false;\n\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1, 1) != RubiksColor.RED) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2, 1) != RubiksColor.RED) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3, 1) != RubiksColor.RED) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1, 2) != RubiksColor.RED) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3, 2) != RubiksColor.RED) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1, 3) != RubiksColor.RED) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2, 3) != RubiksColor.RED) return false;\n if (getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3, 3) != RubiksColor.RED) return false;\n\n return true;\n }", "public boolean isSolved(){ return getRemainingValues() == 0; }", "void actionPanelAccepted() {\r\n BPFilter newFilter = new BPFilter();\r\n int[] filterOptions = new int[10];\r\n // get the selected basepair types.\r\n if (this.ccCheckBox.isSelected()){\r\n filterOptions[0] = BasepairType.CC;\r\n }\r\n if (this.cgCheckBox.isSelected()){\r\n filterOptions[1] = BasepairType.CG;\r\n }\r\n if (this.cuCheckBox.isSelected()){\r\n filterOptions[2] = BasepairType.CU;\r\n }\r\n if (this.aaCheckBox.isSelected()){\r\n filterOptions[3] = BasepairType.AA;\r\n }\r\n if (this.acCheckBox.isSelected()){\r\n filterOptions[4] = BasepairType.AC;\r\n }\r\n if (this.agCheckBox.isSelected()){\r\n filterOptions[5] = BasepairType.AG;\r\n }\r\n if (this.auCheckBox.isSelected()){\r\n filterOptions[6] = BasepairType.AU;\r\n }\r\n if (this.ggCheckBox.isSelected()){\r\n filterOptions[7] = BasepairType.GG;\r\n }\r\n if (this.guCheckBox.isSelected()){\r\n filterOptions[8] = BasepairType.GU;\r\n }\r\n if (this.uuCheckBox.isSelected()){\r\n filterOptions[9] = BasepairType.UU;\r\n }\r\n newFilter.setArguments(filterOptions);\r\n // set return value for getNewFilter()\r\n this.filter = newFilter;\r\n }", "private void continueButton() {\n Optional<Squadron> anyAvailable = game\n .getHumanPlayer()\n .getNations()\n .stream()\n .filter(Nation::isSquadronsPresent)\n .flatMap(nation -> game.getHumanPlayer().getSquadrons(nation, SquadronLocationType.LAND).stream())\n .filter(Squadron::isAvailable)\n .findAny();\n\n List<Region> regionsNotSatisfied = gameMap\n .areAllRegionsSatisfied(game.getHumanSide());\n\n if (anyAvailable.isPresent()) {\n warnNotAllSquadronsDeployed();\n } else if (regionsNotSatisfied.size() > 0) {\n warnNotAllRegionsSatisfied(regionsNotSatisfied);\n } else {\n navigate.goNext(this.getClass(), stage);\n }\n }", "public boolean getCompleteCPAOfConcurrency() {\r\n\t\treturn this.completeCPA;\r\n\t}", "private void getEncParticipantes() {\n mEncuestasParticipantes = estudioAdapter.getListaEncuestaParticipantesSinEnviar();\n //ca.close();\n }", "Boolean getPartiallyCorrect();", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public boolean esCompuesto() {\n\t\treturn !this.atributos.isEmpty();\n\t}", "public boolean getAccepted()\n {\n return accepted;\n }", "public abstract boolean isComplete();", "@Test\n public void testSuccessfulMultipleParBySameClient() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.FALSE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, oidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request #1\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(201, pResp.getStatusCode());\n String requestUriOne = pResp.getRequestUri();\n\n // Pushed Authorization Request #2\n oauth.clientId(clientId);\n oauth.scope(\"microprofile-jwt\" + \" \" + \"profile\");\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(201, pResp.getStatusCode());\n String requestUriTwo = pResp.getRequestUri();\n\n // Authorization Request with request_uri of PAR #2\n // remove parameters as query strings of uri\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUriTwo);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER2_NAME, TEST_USER2_PASSWORD);\n assertEquals(state, loginResponse.getState());\n String code = loginResponse.getCode();\n String sessionId =loginResponse.getSessionState();\n\n // Token Request #2\n oauth.redirectUri(CLIENT_REDIRECT_URI); // get tokens, it needed. https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n\n AccessToken token = oauth.verifyToken(res.getAccessToken());\n String userId = findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER2_NAME).getId();\n assertEquals(userId, token.getSubject());\n assertEquals(sessionId, token.getSessionState());\n // The following check is not valid anymore since file store does have the same ID, and is redundant due to the previous line\n // Assert.assertNotEquals(TEST_USER2_NAME, token.getSubject());\n assertEquals(clientId, token.getIssuedFor());\n assertTrue(token.getScope().contains(\"openid\"));\n assertTrue(token.getScope().contains(\"microprofile-jwt\"));\n assertTrue(token.getScope().contains(\"profile\"));\n\n // Logout\n oauth.doLogout(res.getRefreshToken(), clientSecret); // same oauth instance is used so that this logout is needed to send authz request consecutively.\n\n // Authorization Request with request_uri of PAR #1\n // remove parameters as query strings of uri\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUriOne);\n state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n assertEquals(state, loginResponse.getState());\n code = loginResponse.getCode();\n sessionId =loginResponse.getSessionState();\n\n // Token Request #1\n oauth.redirectUri(CLIENT_REDIRECT_URI); // get tokens, it needed. https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3\n res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n\n token = oauth.verifyToken(res.getAccessToken());\n userId = findUserByUsername(adminClient.realm(REALM_NAME), TEST_USER_NAME).getId();\n assertEquals(userId, token.getSubject());\n assertEquals(sessionId, token.getSessionState());\n // The following check is not valid anymore since file store does have the same ID, and is redundant due to the previous line\n // Assert.assertNotEquals(TEST_USER_NAME, token.getSubject());\n assertEquals(clientId, token.getIssuedFor());\n assertFalse(token.getScope().contains(\"microprofile-jwt\"));\n assertTrue(token.getScope().contains(\"openid\"));\n }", "public List<Place> getParkingAreas(Collection<String> servicesRequested) {\n\t\tList<Place> parkingAreasRequested = new ArrayList<Place>();\n\t\tfor(Place p: placesByUri.values()){\n\t\t\tboolean pIsParkingArea = p.getParkingArea() != null;\n\t\t\tif(pIsParkingArea){\n\t\t\t\tboolean hasServices = true;\n\t\t\t\tif(servicesRequested != null && !servicesRequested.isEmpty()){\n\t\t\t\t\thasServices = p.getParkingArea().getServicesId().getServiceId()\n\t\t\t\t\t\t\t .containsAll(\n\t\t\t\t\t\t\t \t\t servicesRequested\n\t\t\t\t\t\t\t );\t\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif(hasServices){\n\t\t\t\t\tparkingAreasRequested.add(p);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn parkingAreasRequested;\n\t}", "boolean isComplete();", "boolean isComplete();", "private static ArrayList<Map> checkAvailability(ArrayList<Map> res) {\n\t\tArrayList<Map> availableSlot = new ArrayList<Map>();\r\n\t\tfor (Map center : res) {\r\n\t\t\tint age = (int) center.get(\"min_age_limit\");\r\n\t\t\tif(age == AGE) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 45+ :\" + center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t\t//END = true;\r\n\t\t\t\t}\r\n\t\t\t}else if( age == 18) {\r\n\t\t\t\tint dose1 = (int) center.get(\"available_capacity_dose1\");\r\n\t\t\t\tif(dose1>0) {\r\n\t\t\t\t\tSystem.out.println(\"available for 18+ :\" +center);\r\n\t\t\t\t\tavailableSlot.add(center);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn availableSlot;\r\n\t}", "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "public PartialPairList getPartialPairForOneQuery(RankList rl)// rl holds all\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// documents\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for one\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// query\n\t{\n\t\tPartialPairList ppl = new PartialPairList();\n\t\tfor (int i = 0; i < rl.size(); i++) {\n\t\t\tfor (int j = i + 1; j < rl.size(); j++) {\n\t\t\t\tif (rl.get(i).getLabel() != (rl.get(j).getLabel())) {\n\t\t\t\t\tppl.add(new PartialPair(rl.get(i), rl.get(j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ppl;\n\n\t}", "public boolean getAccepted() {\n return accepted_;\n }", "private boolean pistaReservada(List<ReservaEntity> reservaEntities, int idPista) {\n\n for (ReservaEntity reservaEntity : reservaEntities) {\n if (idPista == reservaEntity.getIdPista()) {\n return true;\n }\n }\n return false;\n }", "private boolean not_completeScorboard(int no_of_instruct) {\n\n\t\tboolean comp;\n\t\tcomp = false;\n\t\tfor (int p = 0; p < no_of_instruct; p++) {\n\t\t\tif ((lstInstructionsScorboard.get(p).getStatus() != EnumInstructionStatus.complete))\n\t\t\t\tcomp = true;\n\t\t}\n\t\treturn comp;\n\t}", "Iterable<Part> findAllByStatusTrueAndByArchivedTrue();", "public Collection<Parade> findParadeFinalByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeFinalByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "boolean condition(PetriP[] pp) { //Нумерація позицій тут відносна!!! inP.get(i) - номер позиції у списку позицій, який побудований при конструюванні мережі Петрі,\n\n boolean a = true;\n boolean b = true; // Саме тому при з\"єднанні спільних позицій зміна номера не призводить до трагічних наслідків (руйнування зв\"язків)!!!\n for (int i = 0; i < inP.size(); i++) {\n if (pp[inP.get(i)].getMark() < quantIn.get(i)) {\n a = false;\n break;\n }\n }\n for (int i = 0; i < inPwithInf.size(); i++) {\n if (pp[inPwithInf.get(i)].getMark() < quantInwithInf.get(i)) {\n b = false;\n break;\n }\n }\n return a && b;\n }", "public boolean isSuccessful()\n\t{\n\t\tif (response.get(\"Result\").equals(\"APPROVED\") && !response.get(\"MESSAGE\").equals(\"DUPLICATE\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private List<PeerOfConsensusStatus> getPeerOfConsensusStatus(int groupId) {\n String consensusStatusJson = frontInterface.getConsensusStatus(groupId);\n if (StringUtils.isBlank(consensusStatusJson)) {\n log.debug(\"getPeerOfConsensusStatus is null: {}\", consensusStatusJson);\n return null;\n }\n List jsonArr = JsonTools.toJavaObject(consensusStatusJson, List.class);\n if (jsonArr == null) {\n log.error(\"getPeerOfConsensusStatus error\");\n throw new NodeMgrException(ConstantCode.FAIL_PARSE_JSON);\n }\n List<PeerOfConsensusStatus> dataIsList = new ArrayList<>();\n for (int i = 0; i < jsonArr.size(); i++ ) {\n if (jsonArr.get(i) instanceof List) {\n List<PeerOfConsensusStatus> tempList = JsonTools.toJavaObjectList(\n JsonTools.toJSONString(jsonArr.get(i)), PeerOfConsensusStatus.class);\n if (tempList != null) {\n dataIsList.addAll(tempList);\n } else {\n throw new NodeMgrException(ConstantCode.FAIL_PARSE_JSON);\n }\n }\n }\n return dataIsList;\n }", "public void verVacanteMultiple(String convocatoriaselecconada, Candidato actualcandidat)\r\n\t{\r\n\t\tmultiple = new VacanteMultiple(this, convocatoriaselecconada, actualcandidat);\r\n\t\tmultiple.setVisible(true);\r\n\t}", "public List<Candidates> getMultiWinnerCandidates() {\n List<Candidates> singleCandidates = getWinningSingleCandidates();\n List<Candidates> multiWinners = new ArrayList<>();\n Map<Integer, Integer> partyResult = multiService.mandatesByParty();\n for (Entry<Integer, Integer> partyMandateCount : partyResult.entrySet()) {\n int numberMandates = partyMandateCount.getValue();\n int counter=0;\n for (Candidates partyCandidates : candidateService.findByPartyId(partyMandateCount.getKey())) { \n while (numberMandates >= 1) { \n Candidates newPartyCandidate = candidateService.findByPartyAndSeat(partyMandateCount.getKey(),\n counter + 1);\n// Candidates newAlsoPartyCandidate = candidateService.findByPartyAndSeat(partyMandateCount.getKey(),\n// counter+2);\n counter++; \n if (singleCandidates.contains(newPartyCandidate)) {\n while(singleCandidates.contains(newPartyCandidate)==false){\n multiWinners.add(newPartyCandidate);\n counter++;\n break;\n }\n } else {\n multiWinners.add(newPartyCandidate);\n break;\n } \n \n }\n numberMandates--;\n \n }\n }\n\n System.out.println(multiWinners.size());\n\n for (Candidates candidate : multiWinners) {\n candidate.setCandidate_elected(\"multi\");\n candidateService.saveOrUpdate(candidate);\n }\n return multiWinners;\n }", "public boolean isComplete()\n {\n return getStatus() == STATUS_COMPLETE;\n }", "public boolean getAccepted() {\n return accepted_;\n }", "private boolean isCompleted(final String stage) {\n return mRegistrationResponse != null && mRegistrationResponse.completed != null && mRegistrationResponse.completed.contains(stage);\n }", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }", "public boolean isProved() {\n\t\treturn proveState == PROVED;\n\t}", "public List<Candidates> consolidatedWinner() {\n List<Candidates> winnersFinal = new ArrayList<>();\n winnersFinal.addAll(getWinningSingleCandidates());\n winnersFinal.addAll(getMultiWinnerCandidates());\n return winnersFinal;\n }", "public boolean comprobarLibrosPrestados(Estudiante estudiante){\n try{\n return estudiante.getPrestamosActuales().size() == 3;\n }\n catch(NullPointerException e){\n return false;\n } \n }", "private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }", "static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }", "public List<Set<String>> getOptionalAssetsComplete(Player p){\n \n return null;\n }", "private boolean checkCompletedCourse(int id) {\r\n boolean x = false;\r\n for (Registration registration : completeCourses) {\r\n if (id == registration.getCourseId()) {\r\n x = true;\r\n break;\r\n }\r\n x = false;\r\n }\r\n return x;\r\n }", "@External(readonly = true)\n\tpublic List<Address> get_approved_games() {\n\t\t\n\t\t Address[] _proposal_list = new Address[this.proposal_list.size()];\n\t\t int j = 0;\n\t\t for (int i = 0; i< this.proposal_list.size();i++ ) {\n\t\t\t Address address = this.proposal_list.get(i);\n\t\t\t String gameApproved = this.status_data.get(address);\n\t\t\t if (gameApproved!=null && gameApproved.equals(\"gameApproved\") ) {\n\t\t\t\t _proposal_list[j] = address;\n\t\t\t\t j++;\n\t\t\t }\n\t\t }\n\t\t Address[] tmp = new Address[j];\n\t\t System.arraycopy(_proposal_list, 0, tmp, 0, j);\n\t\t return List.of(tmp);\n\t}", "public List<Player> winnerWhenBlocked(Player p) {\r\n System.out.println(\"The game is blocked\");\r\n Map<Integer, Integer> aux = new HashMap<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == player.getTeam()) {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n } else {\r\n aux.put(player.getTeam(), aux.get(player.getTeam()) + player.getDominoPoints());\r\n }\r\n }\r\n int winnerkey = 0;\r\n int winnervalue = aux.get(winnerkey);\r\n int loserKey = 1;\r\n int loserValue = aux.get(loserKey);\r\n\r\n System.out.println(\"Winner is\" + aux.get(winnerkey));\r\n if (aux.get(winnerkey) > aux.get(loserKey)) {\r\n winnerkey = 1;\r\n winnervalue = aux.get(winnerkey);\r\n loserKey = 0;\r\n loserValue = aux.get(loserKey);\r\n System.out.println(\"Loser is\" + aux.get(loserKey));\r\n\r\n } else if (aux.size() > 2) {\r\n if (aux.get(winnerkey) > aux.get(2)) {\r\n winnerkey = 1;\r\n winnervalue = 0;\r\n }\r\n if (aux.get(2) < aux.get(loserKey)) {\r\n loserKey = 2;\r\n loserValue = aux.get(loserKey);\r\n }\r\n }\r\n\r\n //We sum the points for the winner\r\n List<Player> winners = new ArrayList<>();\r\n for (Player player : players) {\r\n if (p.getTeam() == winnerkey) {\r\n p.sumPoints(aux.get(loserKey));\r\n winners.add(p);\r\n }\r\n }\r\n return winners;\r\n }", "private void extractApportionmentForPBA(PaymentFeeLink serviceRequest) {\n boolean apportionFeature = featureToggler.getBooleanValue(\"apportion-feature\", false);\n LOG.info(\"ApportionFeature Flag Value in CreditAccountPaymentController : {}\", apportionFeature);\n if (apportionFeature) {\n //get first successful payment\n Payment pbaPayment = getFirstSuccessPayment.apply(serviceRequest);\n pbaPayment.setPaymentLink(serviceRequest);\n feePayApportionService.processApportion(pbaPayment);\n\n // Update Fee Amount Due as Payment Status received from PBA Payment as SUCCESS\n if (Lists.newArrayList(\"success\", \"pending\").contains(pbaPayment.getPaymentStatus().getName().toLowerCase())) {\n LOG.info(\"Update Fee Amount Due as Payment Status received from PBA Payment as %s\" + pbaPayment.getPaymentStatus().getName());\n feePayApportionService.updateFeeAmountDue(pbaPayment);\n }\n }\n }", "boolean getReturnPartialResponses();", "public boolean isCompleted()\n\t{\n\t\treturn pieces.length == existing.cardinality();\n\t}", "private Vector<Integer> matchCheckPoint(List<Point> a) {\t\t\t\n\t\tVector<Integer> iDS= new Vector<>();\n\t\tfor(Point p :a) {\n\t\t\tif(!getAsphalt(p.x, p.y,this.trk).isIdDefalt()) {\n\t\t\t\tiDS.add(getAsphalt(p.x, p.y,this.trk).getId());\n\t\t\t}\n\t\t}\n\t\treturn iDS;\n\t}", "public void cadenaEsAceptada() {\n\t\tfor (int i = 0; i < conjuntoF.size(); i++) {\n\t\t\tif (estadoActual.equals(conjuntoF.get(i))) {\n\t\t\t\tSystem.out.println(\"Cadena aceptada!\");\n\t\t\t\tbreak;\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"Cadena no aceptada\");\n\t\t}\n\t}", "boolean hasResidues();", "boolean hasIsComplete();", "boolean hasIsComplete();", "public boolean isComplete();", "public List<SortedBag<Card>> possibleClaimCards() {\n List<SortedBag<Card>> cardCombinations = new ArrayList<>();\n List<Color> colors;\n boolean isUnderground = level == Level.UNDERGROUND;\n if (color == null) {\n colors = Color.ALL;\n } else {\n colors = List.of(color);\n }\n if (isUnderground) {\n for (int i = 0; i < length; i++) {\n for (Color c : colors) {\n cardCombinations.add(SortedBag.of(length - i, Card.of(c), i, Card.LOCOMOTIVE));\n }\n }\n //add all locomotive combination at end\n cardCombinations.add(SortedBag.of(length, Card.LOCOMOTIVE));\n }\n if (!isUnderground) {\n for (Color c : colors) {\n cardCombinations.add(SortedBag.of(length, Card.of(c)));\n }\n }\n\n return cardCombinations;\n }", "public Collection<Parade> findParadeSubmittedByBrotherhood(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tparades = this.paradeRepository.findParadeSubmittedByBrotherhood(id);\n\n\t\treturn parades;\n\t}", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public List<Res_Agente_P> getAgentesParticipanCarreraP(int efiscal, int p){\r\n\t\treturn resAgenteDAO.getAgentesParticipanCarreraP(efiscal, p);\r\n\t}", "public List<String> getPaymentRequestInReceivingStatus();", "public Collection<Parade> findRejectedByArea(final int id) {\n\t\tCollection<Parade> parades;\n\n\t\tthis.areaService.checkPrincipalArea(id);\n\n\t\tparades = this.paradeRepository.findRejectedByArea(id);\n\n\t\treturn parades;\n\t}", "protected ArrayList<PalimpsestMatch> doInBackground(String... args) {\n // Building Parameters\n List<NameValuePair> params = new ArrayList<>();\n // getting JSON string from URL\n JSONArray json = jParser.makeHttpRequest(url_all_products, \"GET\", params);\n\n // Check your log cat for JSON reponse\n\n ArrayList<PalimpsestMatch> allPalimpsestMatch = new ArrayList<>();\n try {\n for (int i = 0; i < json.length(); i++) {\n JSONObject jsonobject = json.getJSONObject(i);\n String palimpsest = jsonobject.getString(\"palimpsest\").trim();\n String homeTeam = jsonobject.getString(\"home_team\").trim();\n String awayTeam = jsonobject.getString(\"away_team\").trim();\n String data = jsonobject.getString(\"data\").trim();\n String ora = jsonobject.getString(\"ora\").trim();\n String homeResult = jsonobject.getString(\"home_result\").trim();\n String awayResult = jsonobject.getString(\"away_result\").trim();\n String resultTime = jsonobject.getString(\"result_time\").trim();\n PalimpsestMatch currentPalimpsestMatch = new ParcelablePalimpsestMatch(new ParcelableTeam(homeTeam),new ParcelableTeam(awayTeam),palimpsest,data + \" \" + ora);\n if(homeResult.equalsIgnoreCase(\"null\"))\n currentPalimpsestMatch.setHomeResult(\"-\");\n else{\n currentPalimpsestMatch.setHomeResult(homeResult);\n }\n if(awayResult.equalsIgnoreCase(\"null\"))\n currentPalimpsestMatch.setAwayResult(\"-\");\n else{\n currentPalimpsestMatch.setAwayResult(awayResult);\n }\n if(!resultTime.equalsIgnoreCase(\"null\")) {\n if(resultTime.equalsIgnoreCase(\"ht\")){\n resultTime = \"Intervallo\";\n }\n if(resultTime.equalsIgnoreCase(\"ft\")){\n resultTime = \"Terminata\";\n }\n if(resultTime.equalsIgnoreCase(\"postp.\")){\n resultTime = \"Posticipata\";\n }\n if(resultTime.equalsIgnoreCase(\"pen.\")){\n resultTime = \"Rigori\";\n }\n currentPalimpsestMatch.setResultTime(resultTime);\n }\n try {\n String jsonHiddenResult = jsonobject.getString(\"hidden_result\");\n JSONArray jsonArray = new JSONArray(jsonHiddenResult);\n ArrayList<HiddenResult> allHiddenResult = new ArrayList<>();\n for (int j = 0; j < jsonArray.length(); j++) {\n JSONObject jsonObject = jsonArray.getJSONObject(j);\n int actionTeam = jsonObject.getInt(\"action_team\");\n String player = jsonObject.getString(\"player\").trim();\n String actionTime = jsonObject.getString(\"action_time\").trim();\n String action = jsonObject.getString(\"action\").trim();\n String result = jsonObject.getString(\"result\").trim();\n HiddenResult hiddenResult = new ParcelableHiddenResult(player, actionTime, action, actionTeam);\n if (action.equalsIgnoreCase(\"Goal\")) {\n hiddenResult.setResult(result);\n }\n allHiddenResult.add(hiddenResult);\n }\n currentPalimpsestMatch.setAllHiddenResult(allHiddenResult);\n }catch(JSONException e){\n currentPalimpsestMatch.setAllHiddenResult(new ArrayList<HiddenResult>());\n }\n allPalimpsestMatch.add(currentPalimpsestMatch);\n }\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n return allPalimpsestMatch;\n }", "static void return_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_return_requirements();\n\t}", "public void ruleOutPos(){\n for(int i=0;i<scores.length;i++) {\n for(int j=0;j<scores[i].length;j++) {\n scores[i][j][13] = 0;//0=pass, >0 is fail, set to pass initially\n\n //check Ns - bit crude - what to discount regions with high N\n double ns = (double) scores[i][j][14] / (double) pLens[j];\n if (ns >= minPb | ns >= minPm)//\n scores[i][j][13] += 4;\n\n //probe\n if (hasProbe){\n if (j == 1 | j == 4) {\n double perc = (double) scores[i][j][0] / (double) primers[j].length();\n if (perc >= minPb) {\n scores[i][j][12] = 1;//flag for failed % test\n scores[i][j][13] += 2;\n }\n }\n }\n //primer\n else {\n //if more than 2 mismatches in 1-4nt at 3'\n if(scores[i][j][11]>max14nt) {\n scores[i][j][13]+=1;\n }\n //use mLen (combined F and R length) initially to find initial candidates - filter later\n double perc=(double)scores[i][j][0]/(double)mLen;\n double percI=(double)scores[i][j][0]/(double)pLens[j];\n\n if(perc>=minPm | percI>=minPmI) {\n scores[i][j][12]=1;//flag for failed % test\n scores[i][j][13]+=2;\n }\n }\n }\n }//end of finding positions that prime loop\n }", "private HashMap<Coordinate, Coordinate> getAreaIntersectionPt( Geometry gfaPoly )\n\t{\n\t\tHashMap<Coordinate, Coordinate>\tinterPtsPair = new HashMap<Coordinate, Coordinate>();\t\n\n\t\tArrayList<Coordinate> interPts = new ArrayList<Coordinate>();\t\t\n\t\tArrayList<Coordinate> pts;\n\t\tArrayList<Integer> interIndex = new ArrayList<Integer>();\n\t\tArrayList<Integer> indx = new ArrayList<Integer>();\n\t\t\n\t\t//Reorder in clockwise - first point is repeated at the end.\n\t\tArrayList<Coordinate> gfaPoints = new ArrayList<Coordinate>();\n\t\tfor ( Coordinate c : gfaPoly.getCoordinates() ) {\n\t\t\tgfaPoints.add( c );\n\t\t}\n\t\t\n\t\tArrayList<Coordinate> cwGfaPts = GfaSnap.getInstance().reorderInClockwise( gfaPoints, null );\n\t\t\n\t\t//Get all intersection point with FA region common border.\n\t\tHashMap<String, Geometry> areaCommBnds = GfaClip.getInstance().getFaAreaXCommBounds();\t\n\t\tfor ( Geometry bnd : areaCommBnds.values() ) {\n\t\t\tpts = GfaClip.getInstance().lineIntersect( cwGfaPts.toArray( new Coordinate[ cwGfaPts.size() ]), \n\t\t\t\t\t bnd.getCoordinates(), indx );\n\t\t\t\n\t\t\tif ( pts.size() > 0 ) {\n\t\t\t\tinterPts.addAll( pts );\n\t\t\t\tinterIndex.addAll( indx );\n\t\t\t}\n\t\t}\n\n\t\tif ( interPts.size() <= 0 ) {\n\t\t\treturn interPtsPair;\n\t\t}\n\n\t\t/*\n\t\t * Find the area common bound points inside the polygon to ensure\n\t\t * the new snap points will not cluster with these points.\n\t\t */\n\t\t ArrayList<Coordinate> checkPoints = new ArrayList<Coordinate>();\n\t\t for ( Geometry g : areaCommBnds.values() ) {\t\t\t \n\t\t\t for ( Coordinate c : g.getCoordinates() ) {\n\t\t\t\t Geometry pp = GfaClip.getInstance().pointsToGeometry( new Coordinate[]{ c } );\n\t\t\t\t if ( !checkPoints.contains( c ) && pp.within( gfaPoly ) ) {\n\t\t\t\t\t checkPoints.add( c );\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\t /*\n\t\t * Now insert each common intersection point into the el polygon\n\t\t * and snap it outside of the el polygon.\n\t\t * \n\t\t * Note: the point cannot be any point of the el polygon or any \n\t\t * snap point that has been used.\n\t\t * \n\t\t * If an intersection point is not within the clustering distance of \n\t\t * the point before it (Pb) or point after it (Pa), simply insert it into \n\t\t * the polygon and snap it. Otherwise, do the following:\n\t\t * \n\t\t * 1. Pick the closer one of Pb and Pa as Pn. \n\t\t * 2. Check if Pn is within the clustering distance of the common boundary\n\t\t * points inside the FROM line. \n\t\t * 3. If so, snap Pn to the closest point not within the clustering distance\n\t\t * and match the intersection point and Pn to the new point. \n\t\t * 4. If not, match the intersection point with Pn.\n\t\t */\n\t\t ArrayList<Coordinate> usedPoints = new ArrayList<Coordinate>();\n\t\t usedPoints.addAll( cwGfaPts );\n\t\t \n\t\t ArrayList<Coordinate> ePts = new ArrayList<Coordinate>();\t\t \n\t\t for ( int ii = 0; ii < interPts.size(); ii++ ) {\n\t\t\t \n\t\t Coordinate interP = interPts.get( ii );\n\t\t\t Coordinate ptBefore = cwGfaPts.get( interIndex.get( ii ) );\n\t\t\t Coordinate ptAfter = cwGfaPts.get( interIndex.get( ii ) + 1 );\n\t\t\t \n\t\t\t double qdist1 = GfaSnap.getInstance().distance( interP, ptBefore );\n\t\t\t double qdist2 = GfaSnap.getInstance().distance( interP, ptAfter );\n\n\t\t\t int addOne = -1; \t \n\t\t\t int qmatch = -1;\n\t\t\t double qdist;\n\n\t\t\t if ( qdist1 < qdist2 ) {\n\t\t\t\t qmatch = interIndex.get( ii ); \n\t\t\t\t qdist = qdist1;\n\t\t\t }\n\t\t\t else {\n\t\t\t\t qmatch = interIndex.get( ii ) + 1;\n\t\t\t\t qdist = qdist2;\n\t\t\t }\n\n\t\t\t if ( ( qdist / PgenUtil.NM2M ) < GfaSnap.CLUSTER_DIST ) {\n\n\t\t\t\t Coordinate ptMatch = cwGfaPts.get( qmatch );\n\t\t\t\t for ( Coordinate c : checkPoints ) {\n\t\t\t\t\t if ( GfaSnap.getInstance().isCluster( c, ptMatch ) ) {\n\t\t\t\t\t\t addOne = qmatch;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \t\t\t\t \n\t\t\t\t if ( addOne < 0 ) {\n\t\t\t\t\t interPtsPair.put( new Coordinate( interP ),\n\t\t\t\t\t\t\t new Coordinate( ptMatch ) );\n\t\t\t\t\t continue; //Done - ptMatch is a snapped point.\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t // Snap\n\t\t\t int kk, kk2;\n\t\t\t if ( addOne >= 0 ) {\n\t\t\t kk = addOne;\n\t\t\t kk2 = kk;\n\n\t\t\t ePts.clear();\n\t\t\t ePts.addAll( cwGfaPts );\n\t\t\t }\n\t\t\t else {\t\t\t\t \n\t\t\t ePts.clear();\n\t\t\t\t ePts.addAll( GfaSnap.getInstance().insertArray( cwGfaPts, interIndex.get( ii ) + 1, interP ) );\n\t\t\t\t kk = interIndex.get( ii ) + 1;\n\t\t\t\t kk2 = kk;\n\t\t\t }\n\n\t\t\t \n\t\t\t ePts.remove( ePts.size() - 1 );\n\t\t\t \n\t\t\t Coordinate[] snapped = new Coordinate[1];\n \n\t\t\t //snap....\n\t\t\t int status = GfaSnap.getInstance().snapPtGFA( kk, kk2, usedPoints, checkPoints, \n\t\t\t\t\t\t ePts, true, true, 3.0F, snapped );\n\t\t\t \n\t\t\t if ( status != 0 ) {\n\t\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( ePts.get( kk ) );\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t snapped[ 0 ] = new Coordinate( interP );\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t interPtsPair.put( new Coordinate( interP ), \n\t\t\t new Coordinate( snapped[ 0 ] ) );\n\t\t\t \n\t\t\t if ( addOne >= 0 ) {\n\t\t\t\t interPtsPair.put( new Coordinate( cwGfaPts.get( addOne ) ), \n\t\t new Coordinate( snapped[ 0 ] ) );\t\t\t\t \n\t\t\t }\t\n\t\t\t \n\t\t\t usedPoints.add( snapped[ 0 ] );\n\t\t\t \n\t\t }\n\t\t\n\t\treturn interPtsPair;\n\t}", "public void verResultadoPrueba(PruebaCandidato pruebacselec)\r\n\t{\r\n\t\tresultadoprueba = new ResultadoPrueba(this, pruebacselec);\r\n\t\tresultadoprueba.setVisible(true);\r\n\t}", "public boolean[] checkAvailableMode()\n {\n if (player == null)\n throw new IllegalStateException(\"Carta: \" + name + \" non appartiene a nessun giocatore.\");//If this card doesn't belong to any player, it launches an exception\n\n\n availableMethod[0] = false;//I suppose that the modes can't be used\n availableMethod[1] = false;\n availableMethod[2] = false;\n\n List<Square> squareList = new ArrayList<>();\n\n squareList.addAll(MethodsWeapons.squareThatSee(player));\n squareList.remove(player.getSquare());\n\n\n if (isLoaded() && MethodsWeapons.areSquareISeeNotMineNotEmpty(player, squareList))\n availableMethod[0] = true;\n\n if (isLoaded() && player.getAmmoBlue() > 0 && (!checkRocketJumpColors().isEmpty()) && availableMethod[0])\n availableMethod[1] = true;\n\n\n if (isLoaded() && player.getAmmoYellow() > 0 && availableMethod[0])\n availableMethod[2] = true;\n\n return availableMethod;\n\n }" ]
[ "0.53632265", "0.5019794", "0.4894942", "0.48772177", "0.48078737", "0.47699422", "0.47300476", "0.47108093", "0.47002834", "0.46979278", "0.46965644", "0.4694946", "0.46805164", "0.46456677", "0.46426743", "0.4636709", "0.46348825", "0.45805904", "0.45693564", "0.45632604", "0.45417112", "0.4529508", "0.45253965", "0.4519265", "0.45182496", "0.45176739", "0.4517581", "0.44904488", "0.44816414", "0.44686684", "0.44437873", "0.44432387", "0.44107184", "0.43972966", "0.43948618", "0.43838", "0.4377496", "0.4376071", "0.4366896", "0.4349617", "0.43432721", "0.4339676", "0.43373454", "0.4331875", "0.43232352", "0.43172476", "0.4312117", "0.43115902", "0.4304028", "0.4302949", "0.42941788", "0.42938668", "0.42938668", "0.42841455", "0.4281154", "0.42709836", "0.42664987", "0.42637444", "0.4263434", "0.42633528", "0.4262738", "0.4260772", "0.42596915", "0.4257705", "0.42571884", "0.4252585", "0.42505533", "0.4248571", "0.42481866", "0.42457333", "0.42441243", "0.42437464", "0.42394602", "0.42380428", "0.4228789", "0.422641", "0.4222738", "0.42225358", "0.42181668", "0.42003006", "0.4200075", "0.4199874", "0.4199742", "0.41966408", "0.41957095", "0.41925755", "0.41925755", "0.41912442", "0.41784486", "0.4177023", "0.41769254", "0.41743785", "0.41720107", "0.41714293", "0.41700998", "0.4166263", "0.41652322", "0.41575196", "0.4156487", "0.41496783" ]
0.50474143
1
Compruebo que el chapter que cambia el estado sea el que gestiona el area del desfile
protected void checkChapter(final Parade parade) { final Chapter chapter; final Area areaChapter; Area areaParade; chapter = this.chapterService.findByPrincipal(); areaChapter = chapter.getArea(); areaParade = this.areaService.findAreaByParade(parade.getId()); Assert.isTrue(areaChapter.equals(areaParade)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String loadChapterTextLowercasedWithoutSplit(Book book, int chapter_1);", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "@Override\n public boolean isChapter() {\n return getType() == BlockType.CHAPTER;\n }", "public void comportement() {\n\t\tif (compteurPas > 0) {\n seDeplacer(deplacementEnCours);\n compteurPas--;\n\n // sinon charge le prochain deplacement\n\t\t} else {\n\t\t // recalcul le chemin si la cible a bouge\n boolean cibleBouger = calculPosCible();\n if (cibleBouger)\n calculerChemin();\n\n if (suiteDeDeplacement.size() > 0) {\n deplacementEnCours = suiteDeDeplacement.pollFirst();\n compteurPas = Case.TAILLE / vitesse;\n // pour le sprite\n if (deplacementEnCours == 'E')\n direction = true;\n else if (deplacementEnCours == 'O')\n direction = false;\n }\n }\n\t\tattaque = attaquer();\n\t}", "@Nullable public abstract String loadVerseText(Book book, int chapter_1, int verse_1);", "private int choose_among_the_chapters_of_the_subject(String subject,String semester){\n\n int chapter=-1;\n File subject_index= new File(\"C://Manish//The_Test_Taker//All_Text_files//Quizes//\"+semester+\"//\"+subject+\"//Subject_index.txt\");\n Scanner chapter_read= null;\n try{\n chapter_read= new Scanner(subject_index);\n }catch(FileNotFoundException e){\n System.out.println(\"Some error occured while loading the questions.\");\n //chapter=choose_among_the_chapters_of_the_subject(subject,semester);\n return chapter;\n }\n float a[]= new float[4];\n if(subject.toUpperCase().equals(\"OOP\")){\n a= OOP;\n }else if(subject.toUpperCase().equals(\"DE\")){\n a=DE;\n }else if(subject.toUpperCase().equals(\"DSA\")){\n a=DSA;\n }\n\n //This will display the list of the chapters available in a subject by traversing the subject index of each subject\n String line_will_be_of_use_sometime=chapter_read.nextLine();\n while(!(line_will_be_of_use_sometime.equals(\"List of chapters:-\")))\n {\n line_will_be_of_use_sometime=chapter_read.nextLine();\n }\n int i=0;\n System.out.println(\"*************************************************************\");\n System.out.println(line_will_be_of_use_sometime);\n System.out.println(\"*************************************************************\");\n System.out.println(\"Chapter Name Status\");\n line_will_be_of_use_sometime=chapter_read.nextLine();\n int no_of_chapters=0;\n \n while(line_will_be_of_use_sometime.charAt(0)!='#'&&i<4){\n System.out.println(line_will_be_of_use_sometime +\" \"+(a[i]!=0?\"Attempted\":\"Yet to be Attempted\"));\n line_will_be_of_use_sometime=chapter_read.nextLine();\n no_of_chapters++;//To get the count of the chapters available\n i++;\n }\n System.out.println(\"************************************************\");\n\n\n //Asking user for his/her choice of Chapter.\n int chap;\n System.out.println(\"Enter the choice of the Chapter from above whose Quiz you want to take.\");\n //String chap1= input.next();\n //chap=Integer.parseInt(chap1);\n while(true){\n try{\n chap=input.nextInt();\n break;\n }catch(InputMismatchException e){\n System.out.println(\"Invalid Input. Please Enter your choice again.\");\n input.nextLine();\n }\n }\n if(chap>no_of_chapters){//If the user enters some wrong chapter_no then we'll call this function again and ask his/her to choose.\n System.out.println(\"You entered a wrong choice of Chapter.\");\n chapter=choose_among_the_chapters_of_the_subject(subject, semester);\n }else{\n if(a[chap-1]==0){\n chapter=chap;\n }else{\n System.out.println(\"You cannot attemp a quiz twice. Choose another chapter.\");\n chapter=choose_among_the_chapters_of_the_subject(subject, semester);\n }\n }\n chapter_read.close();\n return chapter;\n }", "private void createRowForChapter(Composite section)\n {\n // Create the composite\n Composite compo = toolkit.createComposite(section);\n compo.setLayout(new GridLayout(2, false));\n // Create Label\n labelChapter = toolkit.createLabel(compo, \"Chapter organisation: \"); //$NON-NLS-1$\n // Create the text component\n String helpText = Messages.ImportRequirementWizardPageSelectFormat_FLAT_OR_HIERARCHICAL;\n chapterRecognizeComponent = new ComponentHelpRadioButton(new NotifyElement()\n {\n public void handleModelChange()\n {\n controller.setHierarchical(chapterRecognizeComponent.isHierarchical());\n controller.removeDocumentType();\n ImportRequirementWizardPageSelectFormat.this.handleModelChange();\n }\n }, compo, toolkit, SWT.NONE, helpText);\n chapterRecognizeComponent.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1);\n compo.setLayoutData(data);\n // load pref\n chapterRecognizeComponent.setHierachical(chapterPref);\n\n }", "private void cargarArchivoAlumnos() {\n String aux = \"\";\n String texto = \"\";\n\n JFileChooser file = new JFileChooser();\n file.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n\n //Filtro\n FileNameExtensionFilter filtro = new FileNameExtensionFilter(\"*.XML\", \"xml\");\n\n file.setFileFilter(filtro);\n\n int seleccion = file.showOpenDialog(this);\n\n if (seleccion == JFileChooser.APPROVE_OPTION) {\n File fichero = file.getSelectedFile();\n\n insertarAlumnos(fichero.getPath());\n\n }\n }", "public void completarTarea()\n {\n tareaCompletada = true;\n }", "private void verficarChoques() {\n\t\t\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\t\n\t\t\tElemento e1 = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\t//guaramos las coordenadas para verificar si choco contra el tablero\n\t\t\tint coord1 = e1.getPosicion().getX();\n\t\t\tint coord2 = e1.getPosicion().getY();\n\t\t\t//Creamos el rectangulo\n\t\t\tRectangle r1 = new Rectangle(e1.getPosicion().getX(),\n\t\t\t\t\t\t\t\t\t\te1.getPosicion().getY(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAncho(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAlto());\n\t\t\t\n\t\t\tfor(int j=i+1; j<JuegoListener.elementos.size(); j++){\n\t\t\t\t\n\t\t\t\t//Creamos el rectangulo\n\t\t\t\tElemento e2 = JuegoListener.elementos.get(j);\n\t\t\t\tRectangle r2 = new Rectangle(e2.getPosicion().getX(),\n\t\t\t\t\t\te2.getPosicion().getY(),\n\t\t\t\t\t\te2.getTamanio().getAncho(),\n\t\t\t\t\t\te2.getTamanio().getAlto());\n\t\t\t\tif(r1.intersects(r2)){\n\t\t\t\t\te1.chocarContra(e2);\n\t\t\t\t\te1.chocarContra(e1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// estaContenidoDentro, hace referencia si no se paso del tope del tablero\n\t\t\t// esta contenidoposito, se fija si las posiciones son positivas \n\t\t\tboolean estaContenidoDentro = ( (coord1 >= this.config.getAnchoTablero()) || (coord2 >= this.config.getAltoTablero()) ); \n\t\t\tboolean estaContenidoPositivo= (coord1<= 0) || (coord2 <= 0 ); \n\t\t\tif(estaContenidoPositivo || estaContenidoDentro){\n\t\t\t\te1.chocarContraPared();\n\t\t\t}\t\t\t\n\t\t}\n\n\n\t}", "public void Horas() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n // Apertura del fichero y creacion de BufferedReader para poder\r\n // hacer una lectura comoda (disponer del metodo readLine()).\r\n \r\n \r\n // Lectura del fichero\r\n String linea;\r\n \r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n categoria=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n categoria=\"Regulares\";\r\n }\r\n if (a==2){\r\n categoria=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n categoria=\"Mayores\";\r\n }\r\n if (a==4){\r\n categoria=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+categoria+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null)\r\n if (leerHora == contador){\r\n comparar = linea.substring(0,2);\r\n \r\n if (\"09\".equals(comparar)){\r\n nueve++;\r\n }\r\n if (\"10\".equals(comparar)){\r\n diez++;\r\n }\r\n if (\"11\".equals(comparar)){\r\n once++;\r\n }\r\n if (\"13\".equals(comparar)){\r\n una++;\r\n }\r\n if (\"14\".equals(comparar)){\r\n dos++;\r\n }\r\n if (\"15\".equals(comparar)){\r\n tres++;\r\n }\r\n if (\"16\".equals(comparar)){\r\n cuatro++;\r\n }\r\n \r\n contador +=1;\r\n leerHora += 6;\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n }", "private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }", "public void partieEnCour(int niveau){\n\t\t\t\n\t\t\tif(niveau<=0){\n\t\t\t\tSystem.out.println(\"Quel niveau ?\");\n\t\t\t\tniveau=lire.nextInt();\n\t\t\t}\n\t\t\tthis.niveau=niveau;\n\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau-1);\n\t\t\tSystem.out.println(terrainDeLaPartie.getCave().toString());\n\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\tboolean heroEnVie=true;\n\t\t\twhile(sortieNonAtteint()&& tempsNonEcoule() && heroEnVie==true){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(ObjetVivant eleViv:terrainDeLaPartie.getPersonnageSurLeTerrain()){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(eleViv.estEnVie()){\n\t\t\t\t\t\t\teleViv.seDeplacer(terrainDeLaPartie);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(DeplacementInvalideException e){\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\tfor(ObjetNonVivant eleNonViv:terrainDeLaPartie.getObjetSurLeTerrain()){\n\t\t\t\t\teleNonViv.tomber(terrainDeLaPartie);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tquiEstMort();\n\t\t\t\tquiEstDetruit();\n\t\t\t\tthis.terrainDeLaPartie.getObjetSurLeTerrain().addAll(this.terrainDeLaPartie.reinitialisationObjet());\n\t\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\t\tCave a=this.terrainDeLaPartie.getCave();\n\t\t\t\ta.setCaveTime(a.getCaveTime()-1);\t\t\t\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getPersonnageSurLeTerrain().size()-1+\" enemie\");\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getObjetSurLeTerrain().size()-1+\" objet\");\n\t\t\t\t\n\t\t\t\theroEnVie=heroEncoreDansListe(this.terrainDeLaPartie.getPersonnageSurLeTerrain());\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(heroEnVie && !sortieNonAtteint()){\n\t\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau);\n\t\t\t\tpartieEnCour(niveau+1);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Vous avez perdu ! Voulez vous rejouer ?\");\n\t\t\t\tSystem.out.println(\"1:rejouer\");\n\t\t\t\tSystem.out.println(\"2:quitter \");\n\t\t\t\tint rep=lire.nextInt();\n\t\t\t\tif(rep==1){\n\t\t\t\t\tFile f=new File(\"BD01plus.bdcff\");\n\t\t\t\t\tEnsembleNiveau=new Univers();\n\t\t\t\t\tLireFichier.lire(f, EnsembleNiveau);\n\t\t\t\t\tthis.partieEnCour(niveau);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "public void cargarEConcepto() {\n\tevidenciaConcepto = true;\n\tif (conceptoSeleccionado.getOrigen().equals(\n\t OrigenInformacionEnum.CONVENIOS.getValor())) {\n\t idEvidencia = convenioVigenteDTO.getId();\n\t nombreFichero = iesDTO.getCodigo() + \"_\"\n\t\t + convenioVigenteDTO.getId();\n\t}\n\n\ttry {\n\t listaEvidenciaConcepto = institutosServicio\n\t\t .obtenerEvidenciasDeIesPorIdConceptoEIdTabla(\n\t\t iesDTO.getId(), conceptoSeleccionado.getId(),\n\t\t idEvidencia, conceptoSeleccionado.getOrigen());\n\n\t} catch (ServicioException e) {\n\t LOG.log(Level.SEVERE, e.getMessage(), e);\n\t}\n }", "public void seleccionarArchivo(){\n JFileChooser j= new JFileChooser();\r\n FileNameExtensionFilter fi= new FileNameExtensionFilter(\"pdf\",\"pdf\");\r\n j.setFileFilter(fi);\r\n int se = j.showOpenDialog(this);\r\n if(se==0){\r\n this.txtCurriculum.setText(\"\"+j.getSelectedFile().getName());\r\n ruta_archivo=j.getSelectedFile().getAbsolutePath();\r\n }else{}\r\n }", "public void Fecha() throws FileNotFoundException, IOException {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n // Apertura del fichero y creacion de BufferedReader para poder\r\n // hacer una lectura comoda (disponer del metodo readLine()).\r\n // Lectura del fichero\r\n String linea;\r\n \r\n for (b=0;b<5;b++){\r\n if (b==0){\r\n categoria=\"Embarazadas\";\r\n }\r\n if (b==1){\r\n categoria=\"Regulares\";\r\n }\r\n if (b==2){\r\n categoria=\"Discapacitados\";\r\n }\r\n if (b==3){\r\n categoria=\"Mayores\";\r\n }\r\n if (b==4){\r\n categoria=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+categoria+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null){\r\n if (leerFecha == contador){\r\n errorFecha = linea.substring(1,2);\r\n if (errorFecha.equals(\"/\")){\r\n comparar = linea.substring(0, 1);\r\n if (\"1\".equals(comparar)){\r\n d1++;\r\n }\r\n if (\"2\".equals(comparar)){\r\n d2++;\r\n }\r\n if (\"3\".equals(comparar)){\r\n d3++;\r\n }\r\n if (\"4\".equals(comparar)){\r\n d4++;\r\n }\r\n if (\"5\".equals(comparar)){\r\n d5++;\r\n }\r\n if (\"6\".equals(comparar)){\r\n d6++;\r\n }\r\n if (\"7\".equals(comparar)){\r\n d7++;\r\n }\r\n if (\"8\".equals(comparar)){\r\n d8++;\r\n }\r\n if (\"9\".equals(comparar)){\r\n d9++;\r\n }\r\n } \r\n else{\r\n comparar1=linea.substring(0, 2);\r\n if (\"10\".equals(comparar1)){\r\n d10++;\r\n }\r\n if (\"11\".equals(comparar1)){\r\n d11++;\r\n }\r\n if (\"12\".equals(comparar1)){\r\n d12++;\r\n }\r\n if (\"13\".equals(comparar1)){\r\n d13++;\r\n }\r\n if (\"14\".equals(comparar1)){\r\n d14++;\r\n }\r\n if (\"15\".equals(comparar1)){\r\n d15++;\r\n }\r\n if (\"16\".equals(comparar1)){\r\n d16++;\r\n }\r\n if (\"17\".equals(comparar1)){\r\n d17++;\r\n }\r\n if (\"18\".equals(comparar1)){\r\n d18++;\r\n }\r\n if (\"19\".equals(comparar1)){\r\n d19++;\r\n }\r\n if (\"20\".equals(comparar1)){\r\n d20++;\r\n }\r\n if (\"21\".equals(comparar1)){\r\n d21++;\r\n }\r\n if (\"22\".equals(comparar1)){\r\n d22++;\r\n }\r\n if (\"23\".equals(comparar1)){\r\n d23++;\r\n }\r\n if (\"24\".equals(comparar1)){\r\n d24++;\r\n }\r\n if (\"25\".equals(comparar1)){\r\n d25++;\r\n }\r\n if (\"26\".equals(comparar1)){\r\n d26++;\r\n }\r\n if (\"27\".equals(comparar1)){\r\n d27++;\r\n }\r\n if (\"28\".equals(comparar1)){\r\n d28++;\r\n }\r\n if (\"29\".equals(comparar1)){\r\n d29++;\r\n }\r\n if (\"30\".equals(comparar1)){\r\n d30++;\r\n }\r\n if (\"31\".equals(comparar1)){\r\n d31++;\r\n }\r\n \r\n }\r\n leerFecha+=6;\r\n contador += 1;\r\n }\r\n \r\n else{\r\n contador += 1;\r\n \r\n \r\n }\r\n } \r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n }", "public void leerDeFichero() {\n try\n {\n Scanner sc = new Scanner(new File(\"texto.txt\"));\n while (sc.hasNextLine() && !textoCompleto())\n addFrase(sc.nextLine());\n sc.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "public void placerBateauSurVue() {\n\t\tint compteur = 1;\n\t\tif (partie.verifierSiPoseBateauPossible()) {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, true);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, false);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t}\n\t}", "private void guardarComo() {\r\n\t\tJFileChooser guardar = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tguardar.setFileFilter(filtro);\r\n\t\tif(guardar.showSaveDialog(guardar) == JFileChooser.APPROVE_OPTION){\r\n\t\t\tGestion.setFichero(Gestion.extensionValida(guardar.getSelectedFile()));\r\n\t\t\ttry {\r\n\t\t\t\tif(!Gestion.existe(Gestion.getFichero())){\r\n\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tswitch(JOptionPane.showConfirmDialog(null, \"El archivo existe. Desea sobreescribirlo?\", \"Aviso\", JOptionPane.WARNING_MESSAGE)){\r\n\t\t\t\t\tcase JOptionPane.OK_OPTION:\r\n\t\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void firstSem2b(){\n chapter = \"firstSem2b\";\n String firstSem2b = \"You decide that you'd better stay here and unpack, so your roommate goes ahead without you. In\" +\n \" no time at all, you've got everything arranged like you want it - the strand of Christmas lights, the band \" +\n \"posters, the pictures of you and your high school friends being cool. You decide you'd better go grab some food, \" +\n \"so you walk outside into the sunlight. Look around?\\t\";\n getTextIn(firstSem2b);\n }", "private void reserveChambre() {\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.equals(this.chambresVides().get(0))) {\n\t\t\t\tchambre.setReserve(true);\n\t\t\t\tSystem.out.println(\"\\n---------------------------------------\\nVous avez bien réservé cette chambre: |\");\n\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void analizarArchivo(){\n\t\ttry{\n\t\t\twhile((caracter = inputStream.read())!=-1){\n\t\t\t\testado = analizador.analizarSimbolo(caracter);\n\t\t\t\t//outputStream.write(analizador.simbolo);\n\t\t\t\thistoriaStream.write(formatoEstado(estado));\n\t\t\t\tif(estado == 18 ){//La palabra es web o ebay\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: ebay \\n\");\n\t\t\t\t}else if(estado == 146){\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: web \\n\");\n\t\t\t\t}\n\t\t\t\tif(analizador.isPalabra == true || analizador.isLinea == true){\n\t\t\t\t\thistoriaStream.write(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Num. palabras: \"+analizador.numero_palabras+\" Numero líneas: \"+analizador.numero_lineas+\" Numero correctas: \"+analizador.numero_correctas);\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public StringBuffer evoluciona()\r\n\t{\r\n\t\tStringBuffer hechos = new StringBuffer(\"\");\r\n\t\t\r\n\t\t//Me creo una superficie de booleanos para saber si hay célula o no en una posición....\r\n\t\tboolean [][]supBool = this.supBooleana();\r\n\t\t//Recorrido de la superficie...\r\n\t\tfor(int i=0; i<this.casillas.getFila(); i++)\r\n\t\t{\r\n\t\t\tfor(int j=0; j<this.casillas.getCol(); j++)\r\n\t\t\t{\r\n\t\t\t\t//Si en esa posición hay célula...\r\n\t\t\t\tif(supBool[i][j] == true)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Ordeno ejecutarla, y la casilla a la que se ha movido, la pongo a false en la superficie booleana.\r\n\t\t\t\t\tCasilla c = this.superficie[i][j].ejecutaMovimiento(new Casilla(i,j), this, hechos);\r\n\t\t\t\t\tif(c!=null)supBool[c.getFila()][c.getCol()] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Meto el tablero actualizado.\r\n\t\thechos.append(\"\\n\");\r\n\t\t\r\n\t\treturn hechos;\r\n\t}", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "public void guardarCV(String nombre, String Apellido,String dni,String mail,String cur ,File ruta,String mensaje){\r\n Alumnos alu=new Alumnos();\r\n alu.setNombre(nombre);\r\n alu.setApellido(Apellido);\r\n alu.setDni(dni);\r\n alu.setMail(mail);\r\n alu.setMensaje(mensaje);\r\n alu.setNom_archivo(cur);\r\n\r\n\r\n\r\n try{ //convierte el archivo pdf a bytes\r\n byte[] pdf= new byte[(int) ruta.length()];\r\n InputStream input= new FileInputStream(ruta);\r\n input.read(pdf);\r\n alu.setArchivo_cv(pdf);\r\n\r\n }catch(IOException e){\r\n alu.setArchivo_cv(null);\r\n }\r\n alu.insertarCV(alu);\r\n }", "public void save(){\n checkpoint = chapter;\n }", "public void generarContrato() {\r\n\t\ttry {\r\n\t\t\tString nombre = Contrato.generarContrato(estudiante, periodo, reserva.getArrSitioPeriodo().getSitNombre());\r\n\t\t\tnombre = \"Contrato_\" + estudiante.getId().getPerDni() + \".zip\";\r\n\t\t\tthis.zip(estudiante.getId().getPerDni(), periodo.getPrdId());\r\n\t\t\tFunciones.descargarZip(url_contrato+ nombre);\r\n\t\t\t// MODIFICAR NOMBRE CONTRATO\r\n\t\t\tmngRes.agregarContratoReserva(estudiante, periodo.getPrdId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tFunciones.descargarPdf(url_contrato + \"error.pdf\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}", "private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "public Chapter(){\r\n title = \"\";\r\n body = \"\";\r\n }", "public void firstSem4() {\n chapter = \"firstSem4\";\n String firstSem4 = \"You're sitting at your computer - you can't sleep, and your only companions are \"+student.getRmName()+\"'s \" +\n \"snoring and Dave Grohl, whose kind face looks down at you from your poster. Your head is buzzing with everything you've \" +\n \"seen today.\\tA gentle 'ding' sounds from your computer, and you click your email tab. It's a campus-wide message \" +\n \"from the president, all caps, and it reads as follows:\\n\\t\" +\n \"DEAR STUDENTS,\\n\" +\n \"AS YOU MAY HAVE HEARD, THERE HAVE BEEN SEVERAL CONFIRMED INTERACTIONS WITH THE CAMPUS BEAST. THESE INTERACTIONS\" +\n \" RANGE FROM SIGHTINGS (17) TO KILLINGS (6). BE THIS AS IT MAY, REST ASSURED THAT WE ARE TAKING EVERY NECESSARY \" +\n \"PRECAUTION TO ENSURE STUDENT WELL-BEING. WE ARE ALL DEDICATED TO MAKING \"+(student.getCollege().getName()).toUpperCase()+\n \" A SAFE, INCLUSIVE ENVIRONMENT FOR ALL. TO CONTRIBUTE, I ASK THAT YOU DO YOUR PART, AND REPORT ANY SIGHTINGS, MAIMINGS,\" +\n \" OR KILLINGS TO PUBLIC SAFETY WITHIN A REASONABLE AMOUNT OF TIME. ENJOY YOUR STUDIES!\\nTOODOLOO,\\nPRESIDENT DOUG\";\n getTextIn(firstSem4);\n }", "public void changerDirectionBateau() {\n\t\tif (partie.getJoueur().getIndiceBateauEnCours() != -1) {\n\t\t\tplacerEauSurVue();\n\t\t\tthis.partie.getJoueur().modifierDirection();\n\t\t\tplacerBateauSurVue();\n\t\t}\n\t}", "public static void cargarLineaEnCancion(String linea,ArrayList<String> cancion) throws ArchivosException{\n\n\t\ttry{\n\t\t\tStringTokenizer tokens = new StringTokenizer(linea);\n\t\t\tString primerToken =tokens.nextToken();\n\t\t\tString acordesAux=\"\";\n\t\t\t//si es un numero \n\t\t\tif (Utiles.isNumeric(primerToken)){\n\t\t\t\tcancion.add(linea); // carga el compas completo\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tif (linea.startsWith(Constantes.NUEVO_ESTILO)){\n\t\t\t\t\tthrow new ArchivosException(\"No contemplamos definiciones de nuevos estilos.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Utiles.cadenaContienePatron(linea, Constantes.COMIENZO_DE_VARIABLE)){\n\t\t\t\t\t\n\t\t\t\t\tif(Utiles.cadenaContienePatron(linea, Constantes.VAR_ULTIMO_ESTILO)){\n\t\t\t\t\t\tcancion.add(linea);// carga si es $_LastGroove\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//ej :\n\t\t\t\t\t\t//Set Pass 1\n\t\t\t\t\t\t//Groove $Pass BossaNova BossaNovaSus BossaNova1Sus\n\n\t\t\t\t\t\tthrow new ArchivosException(\"No contemplamos variables en definicion de estilos.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//me fijo si esta la palabra repeat en una cadena, ya que nos intersa, y la agrego en el arraylist\n\t\t\t\tif(Utiles.cadenaContienePatron(linea, Constantes.REPEAT)){\n\t\t\t\t\tcancion.add(linea);// carga si es un repeat\n\t\t\t\t}\n\t\t\t\tif(linea.startsWith(Constantes.ESTILO)){\n\t\t\t\t\tcancion.add(linea); // carga si es un estilo\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(linea.indexOf(Constantes.TEMPO)!=-1){\n\t\t\t\t\tcancion.add(linea);// si define tempo\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}catch (NoSuchElementException e){\n\t\t\t//util para las lineas vacias y con espacios en blanco\n\t\t}\n\t}", "private void openMenuActionPerformed(java.awt.event.ActionEvent evt) {\n \n \n \n String[] colunas = new String[]{\"Linha\",\"Instrução\",\"Atributo 1\",\"Atributo 2\",\"Comentário\"};\n \n int returnVal = escolherArquivo.showOpenDialog(this);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = escolherArquivo.getSelectedFile();\n\n try {\n FileReader arq = new FileReader(file);\n BufferedReader lerArq = new BufferedReader(arq);\n\n \n\n lerArq.mark(50000);\n\n LineNumberReader lnr = new LineNumberReader(lerArq);\n lnr.skip(Long.MAX_VALUE);\n int retorno = lnr.getLineNumber();\n int caractere=0;\n Character character;\n \n String linhas[][] = new String[retorno + 2][5];\n String count = \"\";\n String linha;\n \n lerArq.reset();\n int cont = 0;\n caractere=proximoCaractere(lerArq);\n \n while (caractere != -1) {\n linha = \"\";\n \n while(Character.isLetterOrDigit(((char)caractere))){\n linha+=(char)caractere;\n caractere=proximoCaractere(lerArq);\n //System.out.println((char)caractere);\n }\n \n if(linha.equals(\"\\n\")){\n caractere=proximoCaractere(lerArq); \n cont++; \n //System.out.println(\"contador\"+cont);\n }\n if(linha.equals(\"NULL\"))\n {\n linhas[cont][2] = linha;\n }\n else{\n linhas[cont][1] = linha;\n //System.out.println(linha);\n }\n \n if(linha.equals(\"ALLOC\") || linha.equals(\"DALLOC\")) // verificacao pra ver se o comando é alloc ou dalloc pq esse comando precisa de 2 atributos\n { linha=\"\";\n \n while((char)caractere==' ')\n caractere=proximoCaractere(lerArq);\n \n if(Character.isDigit((char)caractere))\n while(Character.isDigit((char)caractere)){\n linha+=(char)caractere;\n caractere=proximoCaractere(lerArq);\n }\n \n linhas[cont][2] = linha; // coloco o valor no primeiro atributo\n //System.out.println(linha);\n linha=\"\";\n \n while(!Character.isDigit((char)caractere)) // enquanto nao for numero ele percorre o arquivo\n caractere=proximoCaractere(lerArq);\n \n \n while(Character.isDigit((char)caractere)){\n linha+=(char)caractere;\n caractere=proximoCaractere(lerArq);\n }\n \n linhas[cont][3] = linha; // coloco o valor no segundo atributo\n //System.out.println(linha);\n linha=\"\";\n \n \n }\n \n if(linha.equals(\"JMP\")||linha.equals(\"JMPF\")||linha.equals(\"CALL\")||linha.equals(\"LDV\")||linha.equals(\"LDC\")||linha.equals(\"STR\"))\n {\n linha=\"\";\n \n while(!Character.isLetterOrDigit((char)caractere)) \n caractere=proximoCaractere(lerArq);\n //System.out.println(\"I: \"+(char)caractere); \n while(Character.isLetterOrDigit((char)caractere))\n {\n // System.out.println(\"W: \"+(char)caractere); \n \n linha += (char)caractere;\n caractere=proximoCaractere(lerArq);\n }\n \n linhas[cont][2] = linha; // coloco o valor no segundo atributo\n //System.out.println(linha);\n //linha=\"\";\n \n }\n \n count+= cont;\n linhas[cont][0]=count;\n \n while(!Character.isLetterOrDigit((char)caractere)&& caractere!=-1){\n if((char)caractere=='\\n'){\n cont++; \n }\n caractere=proximoCaractere(lerArq);\n }\n \n \n if(caractere==-1)\n break;\n \n count=\"\";\n }\n\n DefaultTableModel modelo = new DefaultTableModel(linhas, colunas);\n\n grade.setModel(modelo);\n arq.close();\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n\n } else {\n System.out.println(\"File access cancelled by user.\");\n }\n \n botaoExecutar.setEnabled(true);\n }", "public static void main(String[] args) throws ArgumentInvalideException, PartieFinieException {\n if(args.length == 1) {\n if(args[0].equals(\"-tests\")) {\n System.out.println(\"Lancement des tests\");\n PrincipaleTests.lancerTests();\n if(PrincipaleTests.succes_tests)\n System.out.println(\"\\nTous les tests se sont bien passés.\");\n return;\n } else {\n System.out.println(\"option '\"+args[0]+\"' inconnue\");\n return;\n }\n }\n\n Partie p= null;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Voulez-vous reprendre votre sauvegarde ? (O/N)\");\n String reponse = scan.nextLine();\n\n if (reponse.toUpperCase().equals(\"O\")) {\n try {\n p = Sauvegarde.recuperer(\"Sauvegarde.txt\");\n } catch (FileNotFoundException e) {\n System.out.println(\"Le fichier de lecture n'existe pas \");\n } catch (ClassNotFoundException e) {\n System.out.println(\"Impossible de convertir la sauvegarde\");\n } catch (IOException e) {\n System.out.println(\"Probleme lors de la lecture\");\n }\n }\n\n if(p == null) { // Si on veut creer un partie ou si on a pas pu récupérer la sauvegarde\n System.out.println(\"\\nCréation de la partie\");\n int nb_colonnes, nb_joueurs, nb_ordinateurs;\n // Grille\n System.out.println(\"Grille :\\nCombien de colonnes ?\");\n nb_colonnes = demanderEntier(1, 50);\n\n // Joueurs\n System.out.println(\"Combien y a-t-il de joueurs ?\");\n nb_joueurs = demanderEntier(0, null);\n System.out.println(\"Combien y a-t-il d'ordinateurs ?\");\n nb_ordinateurs = demanderEntier(0, nb_joueurs);\n\n Joueur[] joueurs = new Joueur[nb_joueurs];\n\n for(int i=0; i<nb_joueurs-nb_ordinateurs; i++)\n joueurs[i] = new JoueurReel();\n\n for(int i=nb_joueurs-nb_ordinateurs; i<nb_joueurs; i++)\n joueurs[i] = new JoueurOrdinateur();\n\n p=new Partie(new Grille(nb_colonnes), joueurs);\n\n }\n // On lance la partie\n int nb_colonnes;\n boolean nouvelle_partie = false; // S'il faut creer une\n reponse = \"O\";\n while(reponse.toUpperCase().equals(\"O\")){\n if(nouvelle_partie) {\n System.out.println(\"Grille :\\nCombien de colonnes ?\");\n nb_colonnes = demanderEntier(1, 50);\n p.rejouer(nb_colonnes);\n } else {\n nouvelle_partie = true;\n }\n\n if(lancerPartie(p) == CODE_FIN_JOUEUR_A_GAGNE) {\n System.out.println(\"Voulez-vous rejouer ? (O/N)\");\n reponse = scan.nextLine();\n } else {\n break;\n }\n }\n }", "public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected String getChapterBlock()\n {\n return \"<chapter></chapter>\";\n }", "public void arquivoSaida() {\r\n\r\n try {\r\n File file = new File(\"arquivoSaida.txt\");\r\n try (FileWriter arquivoSaida = new FileWriter(file, true)) {\r\n arquivoSaida.write(\"Rota do menor caminho entre as cidades escolhidas: \\n\\n\");\r\n Vertice v;\r\n \r\n //Escreve no arquivo a rota de ida de entrega nas cidades\r\n for (int i = 0; i < rota.getLista_de_rota().size() - 1; i++) {\r\n for (int j = 0; j < rota.getLista_de_rota().get(i).size(); j++) {\r\n v = rota.getLista_de_rota().get(i).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n }\r\n \r\n arquivoSaida.write(\"\\n\\nRota do menor caminho de volta: (Considerando que não há mais nenhuma entrega)\\n\\n\");\r\n // pegando a ultima posição da lista geral em que está a lista do menor caminho de volta\r\n int t = rota.getLista_de_rota().size() - 1; \r\n \r\n //Escreve a rota do caminho de volta, verificando a distancia entre a cidade origem e a cidade destino\r\n for (int j = rota.getLista_de_rota().get(t).size() - 1; j >= 0; j--) {\r\n v = (Vertice) rota.getLista_de_rota().get(t).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n arquivoSaida.write(\"Distancia percorrida: \"+rota.getDistancia()+\"\\n\");\r\n arquivoSaida.close();\r\n }\r\n } catch (IOException ex) { //caso nao seja possivel abrir algum dos arquivos\r\n System.out.println(\"Não foi possivel abrir arquivo\");\r\n }\r\n }", "public static boolean generarArchivo(Cancion miCancion) throws ArchivosException {\n\t\t\n\t\tString compas = \" \";\n\t\tArrayList<Estrofa> todasLasEstrofas = miCancion.getEstrofas();\n\t\tint linea = 1;\n\t\t\n\t\tString nombre = Utiles.reemplazarEspaciosDeString(miCancion.getNombreArchivo());\n\t\t\n\t\tString sFichero = nombre+Constantes.EXTENSION_ARCHIVO;\n\t\tFile fichero = new File(sFichero);\n\t\t\n\t\twhile(fichero.exists()) {\n\t\t\tnombre = nombre+\"_\";\n\t\t\tsFichero = nombre+Constantes.EXTENSION_ARCHIVO;\n\t\t\tfichero = new File(sFichero);\n\t\t\t\n\t\t}\n\t\t\n\t\tmiCancion.setNombreArchivo(nombre);\n\n\t\t\n\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, \"Tempo \" + miCancion.getTempo(), false);\n\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, \"\", true);\n\t\t\n\t\tfor (Estrofa est : todasLasEstrofas) {\n\t\t\t\n\t\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, \"Groove \" + est.getEstilo(), true);\n\t\t\t\n\t\t\tArrayList<Compas> todosLosCompases = est.getListaDeCompases();\n\t\t\n\t\t\tfor (Compas com : todosLosCompases) {\n\t\t\t\tArrayList<Acorde> todosLosAcordes = com.getAcordes();\n\t\t\t\tcompas = \" \";\n\t\t\t\tfor (Acorde ac : todosLosAcordes) {\n\t\t\t\t\tcompas = compas + \" \" + ac.getNombre();\n\t\t\t\t}\n\t\t\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, linea + compas, true);\n\t\t\t\tlinea++;\n\t\t\t}\t\n\t\t}\n\t\t//System.out.println(\"Nuevo archivo generado: \" + miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO);\n\n\t\treturn crearMIDI(miCancion.getNombreArchivo(), false);\n\t}", "public void copiarComprobanteContabilidad() {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n TablaGenerica tab_cabecera = ser_comprobante.getCabeceraComprobante(tab_tabla1.getValorSeleccionado());\r\n TablaGenerica tab_detalle = ser_comprobante.getDetallesComprobante(tab_tabla1.getValorSeleccionado());\r\n tab_tabla1.insertar();\r\n tab_tabla1.setValor(\"IDE_MODU\", tab_cabecera.getValor(\"IDE_MODU\"));\r\n tab_tabla1.setValor(\"IDE_GEPER\", tab_cabecera.getValor(\"IDE_GEPER\"));\r\n tab_tabla1.setValor(\"OBSERVACION_CNCCC\", tab_cabecera.getValor(\"OBSERVACION_CNCCC\"));\r\n tab_tabla1.setValor(\"ide_cntcm\", tab_cabecera.getValor(\"ide_cntcm\"));\r\n for (int i = 0; i < tab_detalle.getTotalFilas(); i++) {\r\n tab_tabla2.insertar();\r\n tab_tabla2.setValor(\"IDE_CNLAP\", tab_detalle.getValor(i, \"IDE_CNLAP\"));\r\n tab_tabla2.setValor(\"IDE_CNDPC\", tab_detalle.getValor(i, \"IDE_CNDPC\"));\r\n tab_tabla2.setValor(\"VALOR_CNDCC\", tab_detalle.getValor(i, \"VALOR_CNDCC\"));\r\n tab_tabla2.setValor(\"OBSERVACION_CNDCC\", tab_detalle.getValor(i, \"OBSERVACION_CNDCC\"));\r\n }\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No se puede copiar el comprobante de contabilidad\", \"El comprobante seleccionado no se encuentra grabado\");\r\n }\r\n }", "public void xuLyLuuHoaHoaDon(){\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getAbsolutePath().endsWith(\".txt\");\n }\n\n @Override\n public String getDescription() {\n return \".txt\";\n }\n });\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getAbsolutePath().endsWith(\".doc\");\n }\n\n @Override\n public String getDescription() {\n return \".doc\";\n }\n });\n int flag = fileChooser.showSaveDialog(null);\n if(flag == JFileChooser.APPROVE_OPTION){\n File file = fileChooser.getSelectedFile();\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(file), Charset.forName(\"UTF-8\"));\n PrintWriter printWriter = new PrintWriter(outputStreamWriter);\n String lineTieuDe1 = \"----------------Phiếu Thanh Toán-----------------------\";\n String lineMaPTT = \"+Mã Phiếu Thanh Toán: \" + txtMaPTT.getText();\n String lineMaPDK = \"+Mã Phiếu Đăng Ký: \" + cbbMaPDK.getSelectedItem().toString();\n String lineSoThang = \"+Số Tháng: \" + txtSoThang.getText()+\"|\";\n String lineNgayTT = \"+Ngày Thanh Toán: \" + txtNgayTT.getText();\n String lineTienPhong = \"+Tiền Phòng: \" + txtTongTien.getText();\n String lineTienDV = \"+Tiền Dịch Vụ: \"+txtThanhToanTongCong.getText();\n String lineTieuDe2 = \"--------------------------------------------------------\";\n String lineTienPhaiTra =\"+Tiền Phải Trả: \" + txtTienPhaiTra.getText()+\" \";\n String lineTieuDe3 = \"--------------------------------------------------------\";\n \n printWriter.println(lineTieuDe1);\n printWriter.println(lineMaPTT);\n printWriter.println(lineMaPDK);\n printWriter.println(lineSoThang);\n printWriter.println(lineNgayTT);\n printWriter.println(lineTienPhong);\n printWriter.println(lineTienDV);\n printWriter.println(lineTieuDe2);\n printWriter.println(lineTienPhaiTra);\n printWriter.println(lineTieuDe3);\n \n printWriter.close();\n outputStreamWriter.close();\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n JOptionPane.showMessageDialog(null, \"Đã lưu\");\n }\n \n }", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }", "public void restaurarPartida() throws FileNotFoundException, IOException, ClassNotFoundException {\n\t\tjuego.restaurarPartida(jugador.getID());\t\r\n\t}", "public static void crearPartida() throws FileNotFoundException, IOException, ExcepcionesFich {\n\t\tLecturaFicheros.AllLecture(\"C:\\\\Users\\\\Erick\\\\pruebaPOO.txt\");\n\t\tinterfaz = new GUI(0);\t\t\n\t}", "public boolean updVeh() {\n\t\ttry\n\t\t{\n\t\t\n\t\t\tString filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\tFileInputStream is = new FileInputStream(filename);\n\t\t InputStreamReader isr = new InputStreamReader(is);\n\t\t BufferedReader buffer = new BufferedReader(isr);\n\t\t \n\t\t String line = buffer.readLine();\n\t \tString[] split;\n\t \tString Contenu=\"\";\n\n\t\t while(line != null){\n\t\t \tsplit = line.split(\" \");\n\t\t\t if(this.getId_vehi()==Integer.parseInt(split[0])) {\n\t\t\t \tContenu+=this.getId_vehi()+\" \"+this.getDate_achat()+\" \"+this.getNb_places()+\" \"+this.getStatut()+\" \"+this.getPrix()+\" \"+this.getImage()+\" \"+this.getCouleur()+\" \"+this.getModele()+\" \"+this.getMarque()+\" \"+this.getDate_fabrication()+\"\\n\";\n\t\t\t \tSystem.out.println(this.getId_vehi()+\" \"+this.getId_vehi()+\" \"+this.getDate_fabrication());\n\t\t\t }else {\n\t\t\t \t Contenu+=line+\"\\n\";\n\t\t\t }\n\t\t \tline = buffer.readLine();\n\t\t }\n\t\t \n\t\t buffer.close();\n\t\t \n\t\t filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename);\n\t\t\t fw.write(Contenu);\n\t\t\t fw.close();\n\t\t \n\t\t return true;\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t System.err.println(\"IOException: \"+ ioe.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public List findChapters() {\n chap = new ArrayList();\n int c_count = 0;\n //check if testament is old \n if (testament.equals(\"old\")) {\n //assign the value of the number of chapters to c_count\n c_count = Integer.parseInt(BookModel.old[chapter][1]);\n } //check if testament is new \n else if (testament.equals(\"new\")) {\n //assign the value of the number of chapters to c_count\n c_count = Integer.parseInt(BookModel.newT[chapter][1]);\n }\n\n //add chapter number to a string for each chapter\n for (int y = 1; y <= c_count; y++) {\n chap.add(\"Chapter \" + y);\n }\n //return a list of chapters for the selected book\n return chap;\n }", "public static void main(String[] args) throws Exception {\n List<Chapter> chapterList = new ArrayList();\n BaseFont bfChinese = BaseFont.createFont(\"simhei.ttf\", BaseFont.IDENTITY_H,BaseFont.NOT_EMBEDDED);\n// BaseFont bfChinese = BaseFont.createFont(\"cjk_registry\", \"UniGB-UCS2-H\", false);\n Integer size = 28;\n \n Font font = new Font(bfChinese, size, Font.BOLD);\n for (int i = 1; i <= 10; i++) {\n Chunk chapTitle = new Chunk(\"The \" + i + \" chapter\", font);\n Chapter chapter = new Chapter(new Paragraph(chapTitle), i);\n chapTitle.setLocalDestination(chapter.getTitle().getContent());\n \n Paragraph chapterContent = new Paragraph(\"章节内容第1行\\n章节内容第2行\\n章节内容第3行\\n章节内容第4行\\n\" + i, font);\n chapterContent.setLeading(size * 1.1f);\n chapter.add(chapterContent);\n \n for (int j = 0; j < i; j++) {\n Chunk secTitle = new Chunk(\" 二级The \" + (j + 1) + \" section\");\n Section section = chapter.addSection(new Paragraph(secTitle));\n secTitle.setLocalDestination(section.getTitle().getContent());\n section.setIndentationLeft(10);\n section.add(new Paragraph(\"mangocool mangocool测试1aa1 \"\n + \"\\nmangocool mangocool 内容bb2\"\n + \"\\nmangocool mangocool 内容cc3\", font));\n \n section.add(new Paragraph(\"mangocool mangocool测试1aa1 \"\n + \"\\nmangocool mangocool 内容bb2\"\n + \"\\nmangocool mangocool 内容cc3\", font));\n }\n// content.add(chapter);\n chapterList.add(chapter);\n }\n// content.close();\n\n Document document = new Document(PageSize.A4, 50, 50, 50, 50);\n // add index page.\n String FILE_DIR = \"C:\\\\e\\\\test/\";\n String path = FILE_DIR + \"createSamplePDF.pdf\";\n FileOutputStream os = new FileOutputStream(path);\n PdfWriter writer = PdfWriter.getInstance(document, os);\n IndexEvent indexEvent = new IndexEvent();\n writer.setPageEvent(indexEvent);\n document.open();\n// Chapter indexChapter = new Chapter(\"Index:\", -1);\n// indexChapter.setNumberDepth(-1);// not show number style\n// PdfPTable table = new PdfPTable(2);\n// for (Map.Entry<String, Integer> index : event.index.entrySet()) {\n// PdfPCell left = new PdfPCell(new Phrase(index.getKey()));\n// left.setBorder(Rectangle.NO_BORDER);\n// Chunk pageno = new Chunk(index.getValue() + \"zzZZ章节\");\n// pageno.setLocalGoto(index.getKey());\n// PdfPCell right = new PdfPCell(new Phrase(pageno));\n// right.setHorizontalAlignment(Element.ALIGN_RIGHT);\n// right.setBorder(Rectangle.NO_BORDER);\n// table.addCell(left);\n// table.addCell(right);\n// }\n// indexChapter.add(table);\n// document.add(indexChapter);\n // add content chapter\n for (Chapter c : chapterList) {\n document.add(c);\n indexEvent.body = true;\n }\n document.close();\n os.close();\n }", "public void seleccionarFichero(){\n JFileChooser fileChooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"xml\", \"xml\");\n fileChooser.setFileFilter(filter);\n fileChooser.setCurrentDirectory(new java.io.File(\"./ficheros\"));\n int seleccion = fileChooser.showOpenDialog(vista_principal);\n if (seleccion == JFileChooser.APPROVE_OPTION){\n fichero = fileChooser.getSelectedFile();\n vista_principal.getTxtfield_nombre_fichero().\n setText(fichero.getName().substring(0, fichero.getName().length()-4));\n }\n }", "boolean hasHadithChapterNo();", "private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveEncCasas(String estado) {\n int c = mEncuestasCasas.size();\n for (EncuestaCasa enccasa : mEncuestasCasas) {\n enccasa.getMovilInfo().setEstado(estado);\n estudioAdapter.updateEncuestasCasasSent(enccasa);\n publishProgress(\"Actualizando encuestas casas\", Integer.valueOf(mEncuestasCasas.indexOf(enccasa)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }", "public void firstSem2a6(){\n chapter = \"firstSem2a6\";\n String firstSem2a6 = \"\\\"Well? Are we friends, like that guy said?\\\"\";\n getTextIn(firstSem2a6);\n }", "public void EntradaySalida(String NombreDoc) {\r\n\t\treturnVal=fileChooser.showOpenDialog(null);\r\n\t\tif(returnVal==JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile=fileChooser.getSelectedFile();\r\n\t\t\tStringTokenizer st;\r\n\t\t\ttry{\r\n\t\t\t\tJOptionPane.showMessageDialog(this.pr, \"Ahora escogeras donde lo quieres guardar\");\r\n\t\t\t\tJFileChooser f = new JFileChooser();\r\n\t\t\t\tf.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); \r\n\t\t\t\tf.showSaveDialog(null);\r\n\t\t\t\tPrintWriter pw=new PrintWriter(f.getSelectedFile()+\"\\\\ResultadosISR_\" + NombreDoc+\".csv\");\r\n\t\t\t System.out.println(f.getCurrentDirectory());\r\n\t\t\t System.out.println(f.getSelectedFile());\r\n\r\n\t\t\t\tbr=new BufferedReader(new FileReader(file));\r\n\t\t\t\tpw.println(\"Nombre,RFC,Sueldo mensual,Ingreso anual,Aguinaldo,Aguinaldo exento,Aguinaldo gravado,Prima vacacional,Prima vacacional excenta,Prima vacacional gravada,Total ingresos gravan,Medicos y hospitales,Gastos funerarios,SGMM,Hipotecarios,Donativos,Subcuenta retiro,Transporte escolar,Nivel educativo,Maximo a deducir colegiatura,Colegiatura pagada,Total deducciones (sin retiro),Deduccion permitida 10%,Monto ISR,Cuota fija,Porcentaje excedente,Pago excedente,Total a pagar\");\r\n\t\t\t\t\r\n\t\t\t\twhile((currentLine=br.readLine())!=null) {\r\n\t\t\t\t\tst=new StringTokenizer(currentLine);\r\n\t\t\t\t\t\r\n\t\t\t\t\tString name=st.nextToken(\",\");//\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tString rfc=st.nextToken(\",\");//\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble sueldo=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint sueldoM= sueldo.intValue();//\r\n\r\n\t\t\t\t\tDouble Aguinaldo=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint aguinaldo=Aguinaldo.intValue();\r\n\r\n\t\t\t\t\tDouble Primav=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint PrimaV=Primav.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble MyH=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint myh=MyH.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble GF=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint Funerarios=GF.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble SGMM=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint sgmm=SGMM.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble Hip=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint hipotecarios=Hip.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble Donat=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint Donativos=Donat.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble SubR=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint subR=SubR.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble Transp=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint transpE=Transp.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString NivelE=st.nextToken(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble Colegiatura=(Double.parseDouble(st.nextToken(\",\")));\r\n\t\t\t\t\tint ColegiaturaP=Colegiatura.intValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.calculo(name, rfc, sueldoM, aguinaldo, PrimaV,myh,Funerarios, sgmm,hipotecarios,Donativos,subR,transpE,NivelE,ColegiaturaP);\r\n\t\t\t\t\t \r\n\t\t\t\t pw.println(this.nombre+\",\"+this.RFC+\",\"+this.SueldoM+\",\"+this.IngresoA+\",\"+this.Aguinaldo+\",\"+this.AguinaldoE+\",\"+this.AguinaldoG+\",\"+this.PrimaV+\",\"+this.PrimaVE+\",\"+this.PrimaVG+\",\"+this.TotalIngresosG+\",\"+this.MyH+\",\"+this.GatsosFun+\",\"+this.SGMM+\",\"+this.Hipotecarios+\",\"+this.Donativos+\",\"+this.SubRetiro+\",\"+this.TransporteE+\",\"+this.NivelE+\",\"+this.MaxDedColeg+\",\"+this.Colegiatura+\",\"+this.TotalDedNoRetiro+\",\"+this.DedPerm+\",\"+this.MontoISR+\",\"+this.CuotaFija+\",\"+this.PorcExced+\",\"+this.PagoEx+\",\"+this.Total);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t pw.close(); \r\n\t\t\t br.close();\r\n\t\t\t JOptionPane.showMessageDialog(null, \"El ISR ha sido calculado con exito. El archivo ha sido guardado en la carpeta seleccionada\");\r\n\t\t\t\t\r\n\t\t\t \r\n\t\t\t\t//this.sb.setMessage(\"Archivo guardado Exitosamente\");\r\n\t\t\t}/*catch(Exception error) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this.pr,\"Error, Archivo no valido\");\r\n\t\t\t}*/\r\n\t\t\t\tcatch(IndexOutOfBoundsException error) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this.pr,\"Out of bounds\");\r\n\t\t\t}\tcatch(FileNotFoundException error) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this.pr,\"No se encontro el archivo\");\r\n\t\t\t}\tcatch(IOException error) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this.pr,\"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void cadastrarOfertasQuad1(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q1.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(1);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas1LazyModel = null;\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }", "public void inicializar(Coleccion coleccion){\n cargador.inicializar();\n analizador.inicializar();\n gestorAlmacenamiento.inicializar(coleccion);\n\n }", "public void loadNextChapter(int target){\n //reading from file and displaying in the textview\n StringBuilder stringBuilder = new StringBuilder();\n String bookText = bibleVersion + \"/\" + bookTitle + \"/\" + bookTitle + target + \".txt\";\n InputStream inputStream = null;\n try {\n inputStream = getApplicationContext().getAssets().open(bookText);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n String line;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n\n bufferedReader.close();\n\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n getSupportActionBar().setTitle(bookTitle + \" \" + target);\n textView.setText(stringBuilder.toString());\n chapter = target;\n }", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }", "public void Leer() throws FileNotFoundException\n {\n // se crea una nueva ruta en donde se va a ir a leer el archivo\n String ruta = new File(\"datos.txt\").getAbsolutePath(); \n archivo=new File(ruta); \n }", "private static void gestorMenu(String ruta) {\t\t\n\t\tFile f = new File (ruta);\n\t\t// establece el directorio padre\n\t\tString base = f.getPath();\n\t\truta = f.getPath();\n\t\t// Presenta por pantalla el menu del programa\n\t\tmostrarMenu();\n\t\t// Inicia el tiempo\n\t\tlong tiempoInicial = System.currentTimeMillis();\n\t\tMenu(ruta, base, tiempoInicial, 0);\n\t}", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public boolean turno(Jugador jugador, int numJugador) {\n\n int colIn = 0, filaIn = 0, colFn = 0, filaFn = 0;\n boolean movimientoValido = false;\n\n do {\n System.out.println(\"\\n Turno de \" + jugador.getNombre() + \":\");\n\n System.out.println(\"\\n (Si quieres salir escribe 'no')\");\n String ficha = LecturaDatos.leerTexto(\" Elige la ficha a mover (a1): \");\n\n if (ficha.equals(\"no\")) {\n return true;\n }\n colIn = tablero.buscarIndiceLetras(ficha.charAt(0));\n filaIn = Character.getNumericValue(ficha.charAt(1)) - 1;\n\n ficha = LecturaDatos.leerTexto(\" Elige la casilla a la que moveras: \");\n colFn = tablero.buscarIndiceLetras(ficha.charAt(0));\n filaFn = Character.getNumericValue(ficha.charAt(1)) - 1;\n\n boolean sePuede = rectificarCeldas(filaIn, colIn, filaFn, colFn, jugador);\n\n if (sePuede) {\n movimientoValido = comprobarMovimiento(filaIn, colIn, filaFn, colFn, jugador, numJugador);\n if (movimientoValido) {\n realizarMovimiento(tableroPartida[filaIn][colIn], tableroPartida[filaFn][colFn]);\n tablero.mostrarTablero();\n } else {\n System.out.println(\"\\n Movimiento no valido11\");\n }\n } else {\n System.out.println(\"\\n Movimiento no valido12\");\n }\n\n } while (movimientoValido == false);\n\n // realizarMovimiento(tableroPartida[filaIn][colIn],\n // tableroPartida[filaFn][colFn]);\n // tablero.mostrarTablero();\n\n // revisar si la casilla inicial tiene letra\n\n // revisar si es x ^ o\n\n // revisar si la casilla final está vacia\n\n // comprobar si se puede hacer el movimiento\n return false;\n }", "public Contenido copiar() {\n\t\tthrow new NotImplementedException();\r\n\t}", "public void afficherFile() {\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Voici la File (tete a gauche, queue a droite): \");\r\n\t\tSystem.out.println(\"----------------------------------------------\");\r\n\r\n\t\tif (this.estVide() == true) {\r\n\r\n\t\t\tSystem.out.println();\r\n\t\t} else {\r\n\r\n\t\t\tCellule<T> ref = this.tete;\r\n\r\n\t\t\tfor (int i = 1; i <= this.getLongueurFile(); i++) {\r\n\r\n\t\t\t\tSystem.out.print(ref.getValeur() + \" \");\r\n\r\n\t\t\t\tif (ref.getSuivant() != null) {\r\n\r\n\t\t\t\t\tref = ref.getSuivant();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t}", "public boolean sePuedeMover(int ficha) {\r\n boolean ret = false;\r\n int sentido = 1;\r\n if (isTurnoRojo()) {\r\n sentido = -1;\r\n }\r\n int[] aux = encontrarPosicion(ficha);\r\n int fila = aux[0];\r\n int columna = aux[1];\r\n\r\n if (movimientos[ficha] && (tablero[fila + sentido][columna].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna - 1].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna + 1].getTipo().equals(\"Vacio\"))) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n\r\n }", "public void salvaPartita(String file) {\n\r\n }", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public Repartidor(String nombre, String apellido, String direccion, String telefono, String cedula) {\n super(nombre, apellido, direccion, telefono, cedula);\n this.disponible = true; //empieza siendo disponible luego cuando lo utilicemos pasara a no estarlo y asi...\n this.salario = 50; //establecemos un salario inicial de 50 al que luego le adicionaremos segun la cantidad de envios que haya realizado con exito \n }", "private void cargarFichero() throws FileNotFoundException {\n\t\tFile miFichero = new File(NOMBRE_FICHERO);\n\t\tFileWriter erroresFichero;\n\t\t\n\t\tScanner in = new Scanner(miFichero);\n\t\t\n\t\tEjercicio nuevoEjer;\n\t\tString siguienteLinea;\n\t\tComprobadorEntradaFichero comprobador = new ComprobadorEntradaFichero();\n\t\tString errores = \"\";\n\t\tint numLinea = 1;\n\t\t\n\t\twhile (in.hasNextLine()) {\n\t\t\t\n\t\t\tsiguienteLinea = in.nextLine();\n\t\t\tif (comprobador.test(siguienteLinea)) {\n\t\t\t\tnuevoEjer = new Ejercicio(siguienteLinea);\n\t\t\t\tcoleccionEj.addEjercicio(nuevoEjer);\n\t\t\t} else {\n\t\t\t\t//Controlar cuántos errores va dando\n\t\t\t\terrores += \"Error en la línea: \" + String.valueOf(numLinea) + \". Datos: \" + siguienteLinea + \"\\n\";\n\t\t\t}\n\t\t\tnumLinea++;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\t\n\t\t//Ahora escribimos \n\t\tif (errores != \"\") {\n\t\t\ttry {\n\t\t\t erroresFichero = new FileWriter(NOMBRE_FICHERO_ERRORES);\n\t\t\n\t\t\t erroresFichero.write(errores);\n\n\t\t\t erroresFichero.close();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(\"Mensaje de la excepción: \" + ex.getMessage());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void cargarFichaLepra_inicio() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_INICIO_TRATAMIENTO_LEPRA,\r\n\t\t\t\tIRutas_historia.LABEL_INICIO_TRATAMIENTO_LEPRA, parametros);\r\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private void cargarNotasEnfermeria() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/notas_enfermeria.zul\", \"NOTAS DE ENFERMERIA\",\r\n\t\t\t\tparametros);\r\n\t}", "public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "public int construir(int pasoSolicitado ) {\n if(tipoTraductor.equals(\"Ascendente\")){\n construirAsc(pasoSolicitado);\n \n }\n else{\n construirDesc(pasoSolicitado);\n }\n contador=pasoSolicitado;\n cadena.actualizarCadena(pasoSolicitado);\n return contador;\n }", "public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }", "public void aplicarDescuento();", "public void btn_action_abrirArchivo() {\n FileChooser fileChooser = new FileChooser();\n\n //Set extension filter\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"TXT files (*.txt)\", \"*.txt\");\n fileChooser.getExtensionFilters().add(extFilter);\n\n //Show save file dialog\n File file = fileChooser.showOpenDialog(miPrimaryStage);\n //File file = new File(\"fichero.txt\");\n if(file != null){\n // ta_insertar_texto_id.setText(readFile(file));\n ca_insertar_texto_id.replaceText(readFile(file));\n }\n }", "private OnChapterChangedListener<ChapterDetail> onChapterChangedListener() {\n return new OnChapterChangedListener<ChapterDetail>() {\n @Override\n public void onChapterChanged(ChapterDetail chapterDetail) {\n\n textViewIdentification.setText(chapterDetail.getIdentification());\n textViewExplanation.setText(chapterDetail.getExplanation());\n\n List<String> chapterRules = chapterDetail.getRules();\n for (String rule : chapterRules) {\n TextView textView = new TextView(ChapterDetailActivity.this);\n textView.setText(\"\\u2022 \" + rule);\n ruleLayout.addView(textView);\n }\n\n\n List<ChapterExamples> chapterExamples = chapterDetail.getExamples();\n for (ChapterExamples example : chapterExamples) {\n TextView textViewHindi = new TextView(ChapterDetailActivity.this);\n textViewHindi.setText(example.getHindi());\n\n TextView textViewEnglish = new TextView(ChapterDetailActivity.this);\n textViewEnglish.setText(example.getEnglish());\n textViewEnglish.setTypeface(textViewEnglish.getTypeface(), Typeface.BOLD);\n\n LinearLayout example_Layout = new LinearLayout(ChapterDetailActivity.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n lp.setMargins(10, 10, 10, 10);\n example_Layout.setOrientation(LinearLayout.VERTICAL);\n example_Layout.setLayoutParams(lp);\n\n example_Layout.addView(textViewHindi);\n example_Layout.addView(textViewEnglish);\n exampleLayout.addView(example_Layout);\n\n progressBar.setVisibility(View.GONE);\n findViewById(R.id.scrollView).setVisibility(View.VISIBLE);\n }\n }\n };\n }", "public void cargarOfertas() {\r\n\t\tcoi.clearOfertas();\r\n\t\tController c = gui.getController();\r\n\t\tList<Integer> ofertas = c.ofertanteGetMisOfertas();\r\n\t\tfor (Integer id : ofertas) {\r\n\t\t\tString estado = c.ofertaGetEstado(id);\r\n\t\t\tif (estado.equals(GuiConstants.ESTADO_ACEPTADA) || estado.equals(GuiConstants.ESTADO_CONTRATADA)\r\n\t\t\t\t\t|| estado.equals(GuiConstants.ESTADO_RESERVADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addActiva(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_PENDIENTE) || estado.equals(GuiConstants.ESTADO_PENDIENTE)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOfertaEditable(gui, id);\r\n\t\t\t\tcoi.addPendiente(oferta);\r\n\t\t\t} else if (estado.equals(GuiConstants.ESTADO_RETIRADA)) {\r\n\t\t\t\tPanelOferta oferta = new PanelOferta(gui, id);\r\n\t\t\t\tcoi.addRechazada(oferta);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcoi.repaint();\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tscrollPane.getHorizontalScrollBar().setValue(0);\r\n\t\t\t\tscrollPane.getVerticalScrollBar().setValue(0);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void darBaja() {\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n if (coleccion.get(i).getUnidades() == 0) {\r\n String resumen = (\"Se ha dado de baja: \\n\" + coleccion.get(i).getTitulo() + \"\\npor falta de ejemplares\");\r\n JOptionPane.showMessageDialog(null, resumen);\r\n coleccion.remove(i);\r\n }\r\n\r\n }\r\n }", "private void generatorder_complete (MInvoice invoice)\r\n\t {\r\n\r\n\t\t trx.commit();\r\n\r\n\t\t // Switch Tabs\r\n\t\t tabbedPane.setSelectedIndex(1);\r\n\t\t //\r\n\t\t iTextInOutGenerated = new StringBuffer();\r\n\t\t iTextInOutGenerated.append(\"<br><br>\")\r\n\t\t .append(\"<b>NOTA DE CREDITO No. \")\r\n\t\t .append(invoice.getDocumentNo())\r\n\t\t .append(\"</b><br><br>\");\r\n\t\t MInvoiceLine[] fromLines = invoice.getLines();\r\n\t\t for (int i = 0; i < fromLines.length; i++)\r\n\t\t {\r\n\t\t\t MInvoiceLine line = fromLines[i];\r\n\t\t\t iTextInOutGenerated.append(line.getQtyInvoiced().setScale(2, BigDecimal.ROUND_HALF_UP));\t\t\t\t\r\n\t\t\t iTextInOutGenerated.append(\" \");\r\n\t\t\t iTextInOutGenerated.append(MUOM.get(Env.getCtx(), line.getC_UOM_ID()).getName());\r\n\t\t\t iTextInOutGenerated.append(\" \");\r\n\t\t\t iTextInOutGenerated.append(line.getName());\r\n\t\t\t iTextInOutGenerated.append(\" \");\r\n\t\t\t iTextInOutGenerated.append(line.getLineNetAmt().setScale(2, BigDecimal.ROUND_HALF_UP));\r\n\t\t\t iTextInOutGenerated.append(\"<br>\");\r\n\t\t }\r\n\t\t info.setText(iTextInOutGenerated.toString());\r\n\r\n\t\t //\tGet results\r\n\t }", "public void cargarPdf() {\n\t\tif (pdf != null) {\n\t\t\tFacesMessage message = new FacesMessage(\"Se cargo \", pdf.getFileName() + \" correctamente.\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, message);\n\t\t}\n\t}", "@Override\n public Boolean colisionoCon(BDestino gr) {\n return true;\n }", "public abstract boolean isChapter(XMLObject xml);", "public void calculosFicha(int ficha, int fila, int columna, String mov) {\r\n this.setseMovio(true);\r\n this.setContador(0);\r\n this.setContadorMov(this.getContadorMov() - 1);\r\n\r\n int diagonalP = ficha;\r\n int horizontal = ficha;\r\n int vertical = ficha;\r\n int diagonalS = ficha;\r\n boolean arriba = true;\r\n boolean abajo = true;\r\n boolean derecha = true;\r\n boolean izquierda = true;\r\n int num = 0;\r\n while (izquierda || derecha || arriba || abajo) {\r\n num++;\r\n if (fila - num == 0) {\r\n arriba = false;\r\n }\r\n if (fila + num == 9) {\r\n abajo = false;\r\n }\r\n if (columna + num == 10) {\r\n derecha = false;\r\n }\r\n if (columna - num == 0) {\r\n izquierda = false;\r\n }\r\n\r\n if (arriba) {\r\n vertical += tablero[fila - num][columna].getValor();\r\n }\r\n if (abajo) {\r\n vertical += tablero[fila + num][columna].getValor();\r\n }\r\n if (derecha) {\r\n horizontal += tablero[fila][columna + num].getValor();\r\n }\r\n if (izquierda) {\r\n horizontal += tablero[fila][columna - num].getValor();\r\n }\r\n if (arriba && izquierda) {\r\n diagonalP += tablero[fila - num][columna - num].getValor();\r\n }\r\n if (arriba && derecha) {\r\n diagonalS += tablero[fila - num][columna + num].getValor();\r\n }\r\n if (abajo && izquierda) {\r\n diagonalS += tablero[fila + num][columna - num].getValor();\r\n }\r\n if (abajo && derecha) {\r\n diagonalP += tablero[fila + num][columna + num].getValor();\r\n }\r\n\r\n }\r\n\r\n Arrays.fill(movimientos, false);\r\n if (vertical < 9 && vertical != ficha) {\r\n movimientos[vertical] = true;\r\n }\r\n if (horizontal < 9 && horizontal != ficha) {\r\n movimientos[horizontal] = true;\r\n }\r\n if (diagonalP < 9 && diagonalP != ficha) {\r\n movimientos[diagonalP] = true;\r\n }\r\n if (diagonalS < 9 && diagonalS != ficha) {\r\n movimientos[diagonalS] = true;\r\n }\r\n this.comprobarMov();\r\n }", "private void cargarFichaLepra_control() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\r\n\t\tficha_inicio_lepraService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean ficha_inicio = ficha_inicio_lepraService\r\n\t\t\t\t.existe_paciente_lepra(parameters);\r\n\t\t// log.info(\"ficha_inicio>>>>\" + ficha_inicio);\r\n\r\n\t\tif (ficha_inicio) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "public void subir_file()\n {\n FileChooser fc = new FileChooser();\n\n fc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"PDF Files\",\"*.pdf\")\n , new FileChooser.ExtensionFilter(\"Jpg Images\",\"*.jpg\",\"*.JPEG\",\"*.JPG\",\"*.jpeg\",\"*.PNG\",\"*.png\"));\n\n File fileSelected = fc.showOpenDialog(null);\n\n if (fileSelected!= null){\n txt_ruta.setText(fileSelected.getPath());\n\n if(txt_ruta.getText().contains(\".pdf\"))\n {\n System.out.println(\"si es pdf\");\n Image image = new Image(\"/sample/Clases/pdf.png\");\n image_esquema.setImage(image);\n\n }\n else\n {\n File file = new File(txt_ruta.getText());\n javafx.scene.image.Image image = new Image(file.toURI().toString());\n image_esquema.setImage(image);\n }\n\n }\n else{\n System.out.println(\"no se seleccinoó\");\n }\n }", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tNF.visibility = (FolderVisibility) jcd.getSelectedItem();\n\t\t\t\t\t\tNF.parent = rif_Sezione;\n\t\t\t\t\t\tNF.sonFolders = null;\n\t\t\t\t\t\tNF.document = null;\n\t\t\t\t\t\tdiag.dispose();\n\t\t\t\t\t\tfrmAsd.dispose();\n\t\t\t\t\t\tClientConnection.creaSezione(NF, indicecorso);\n\t\t\t\t\t\tCourseFile.Main();\n\n\t\t\t\t\t}", "public void GenerarAnexos() throws FileNotFoundException, DocumentException {\r\n\t\t\tSystem.out.println(\"Metodo generar anexos\");\r\n\t\t\tTestConexion conexionbbdd = new TestConexion();\r\n\t\t\t\r\n\t\t\tAlumno selectedAlumno = Tabla.getSelectionModel().getSelectedItem();\r\n\t\t\t\r\n\t\t\tAnexoI anexoI = conexionbbdd.ConsultaAnexoI(selectedAlumno.dni_alum);\r\n\t\t\tAnexoII anexoII =conexionbbdd.ConsultaAnexoII(selectedAlumno.dni_alum);\r\n\t\t\tanexoI.generarAnexoI(\"AnexoI\", \"C:\\\\Users\\\\Laura\\\\Desktop\\\\DAW1\\\\PROYECTO\\\\ANEXOS\\\\\");\r\n\t\t\tanexoII.generarAnexoII(\"AnexoII\", \"C:\\\\Users\\\\Laura\\\\Desktop\\\\DAW1\\\\PROYECTO\\\\ANEXOS\\\\\");\r\n\r\n\t\t}", "public boolean editionElementFacture(Habitation hab){\r\n\t\t\r\n\t\tboolean res = false;\r\n\t\tdouble totalGeneralHT = 0;\r\n\t\tfinal double tva = 0.62;\r\n\t\t\r\n\t\tCalendar cal = null;\r\n\t\tcal = Calendar.getInstance();\r\n\t\t\r\n\t\tDate actuelle = new Date();\r\n\t\t\r\n\t\t//SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t//String dat = dateFormat.format(actuelle);\r\n\t\t\r\n\t\tcal.setTime(actuelle);\r\n\t\t\r\n\t\tint year = cal.get(Calendar.YEAR);\r\n\t\t// extraction du mois mettre + 1 car d�marre � 0 et non pas 1\r\n\t\tint month = cal.get(Calendar.MONTH) + 1;\r\n\t\tint day = cal.get(Calendar.DAY_OF_MONTH);\r\n\t\t\r\n\t\tString mois=tabMois[month];\r\n\t\t\r\n\t\tSystem.out.println(\"**************\");\r\n\t\tSystem.out.println(\"Société Trisel\");\r\n\t\tSystem.out.println(\"**************\");\r\n\t\t\r\n\t\tSystem.out.println(\"Facture du mois de \"+mois);\r\n\t\tSystem.out.println(\"Editée le lundi \"+day+\" \"+mois+\" \"+year);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(hab.getUsager().getNomUsager()+\" \"+hab.getUsager().getPrenomUsager());\r\n\t\tSystem.out.println(hab.getAdresseRue());\r\n\t\tSystem.out.println(hab.getCp()+\" \"+hab.getAdresseVille());\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Code usager : \"+hab.getUsager().getIdUsager());\r\n\t\tSystem.out.println(\"Récapitulatif des pesées des poubelles au mois de : \"+mois);\r\n\t\t\r\n\t\tArrayList<Poubelle> lespoubelles = hab.getLesPoubelles();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\tfor(Poubelle p : lespoubelles)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tdouble totalPoubelleHT = 0;\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\"Poubelle : \"+p.getIdPoubelle()+\" Nature des déchets : \"+p.getNature().getLibelle());\r\n\t\t\t\t\r\n\t\t\t\tArrayList<Levee> leslevees = p.getLesLevees(year,month);\r\n\t\t\t\t\r\n\t\t\t\tif(leslevees.size()==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Pas de levees pour cette poubelle\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse{\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(Levee l : leslevees)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\t\tSystem.out.println(\"Date de pesée : \"+l.getDate());\r\n\t\t\t\t\t\tSystem.out.println(\"Nombre de kg : \"+l.getPoids());\r\n\t\t\t\t\t\tSystem.out.println(\"Prix HT au kg : \"+p.getNature().getTarif());\r\n\t\t\t\t\t\tSystem.out.println(\"Total HT - levee \"+l.getIdLevee()+\" : \"+(p.getNature().getTarif())*(l.getPoids()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttotalPoubelleHT = p.getCout(year, month);\r\n\t\t\t\t\ttotalGeneralHT = totalPoubelleHT + totalPoubelleHT ;\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"Total HT - poubelle \"+p.getIdPoubelle()+\" : \"+totalPoubelleHT);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"------------------\");\r\n\t\t\tSystem.out.println(\"Total général HT : \"+totalGeneralHT);\r\n\t\t\tSystem.out.println(\"Montant TVA : \"+tva);\r\n\t\t\tSystem.out.println(\"Montant Total : \"+(totalGeneralHT+tva)+\" \"+hab.getCout(year, month));\r\n\t\t\tSystem.out.println(\"------------------\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn res;\r\n\t\r\n\t}", "public GestorArchivos(String numeroArchivo)\r\n {\r\n this.rutaArchivoEntrada = new File(\"archivostexto/in/in\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n this.rutaArchivoSalida = new File(\"archivostexto/out/out\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n }", "public void ejercicio02() {\r\n\t\tcabecera(\"02\", \"Bisiesto no bisiesto\");\r\n\t\t// Inicio modificacion\r\n\t\t\r\n\t\tSystem.out.println(\"Introduce un año\");\r\n\r\n\t\tint anyo = Teclado.readInteger();\r\n\r\n\t\tif (anyo%400==0 || (anyo%4==0 && anyo%100!=0)) {\r\n\t\t\tSystem.out.println(anyo + \" es un año bisiesto\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(anyo + \" no es un año bisiesto\");\r\n\t\t}\r\n\r\n\t\t// Fin modificacion\r\n\t}", "private Boolean pulouPeca(String posicao, int eixo, Casa casa, Casa destino, Tabuleiro tabuleiro) {\n \n int x = destino.x;\n int y = destino.y;\n \n if(posicao == \"reta\") {\n switch(eixo) {\n case 1:\n if(y > casa.y){ \n for(int i = casa.y + 1; i < y; i++){ \n if (tabuleiro.getCasa(casa.x, i).getPeca() instanceof Peca ) { \n return true; }\n } \n } \n if(y < casa.y){ \n for(int i = casa.y - 1; i > y; i--){ \n if (tabuleiro.getCasa(casa.x, i).getPeca() instanceof Peca ) {\n return true; }\n }\n }\n return false;\n case 2:\n if(x > casa.x){\n for(int i = casa.x + 1; i < x; i++){\n if (tabuleiro.getCasa(i, casa.y).getPeca() instanceof Peca ) {\n return true; }\n } \n }\n if(x < casa.x){\n for(int i = casa.x - 1; i > x; i--){\n \n if (tabuleiro.getCasa(i, casa.y).getPeca() instanceof Peca ) {\n return true; }\n } \n }\n return false;\n } \n \n }\n \n if(posicao == \"diagonal\") {\n \n switch(eixo) {\n case 1:\n if(x > casa.x){\n //verifica se pulou peca\n for(int j = 1; j < x - casa.x; j++){\n if(tabuleiro.getCasa(casa.x + j, casa.y + j).getPeca() instanceof Peca){\n return true;\n }\n }\n }\n if(casa.x > x){\n //verifica se pulou peca\n for(int j = 1; j < casa.x - x; j++){\n if(tabuleiro.getCasa(x + j, y + j).getPeca() instanceof Peca){\n return true;\n }\n } \n }\n return false; \n case 2:\n if(y > casa.y){\n //verifica se pulou peca\n for(int j = 1; j < y - casa.y; j++){\n if(tabuleiro.getCasa(casa.x - j, casa.y + j).getPeca() instanceof Peca){\n return true;\n }\n }\n }\n if(casa.y > y){\n //verifica se pulou peca\n for(int j = 1; j < casa.y - y; j++){\n if(tabuleiro.getCasa(casa.x + j, casa.y - j).getPeca() instanceof Peca){\n return true;\n }\n } \n }\n return false;\n }\n }\n \n return false;\n }", "private void elegiCasillaQueNoEsBomba(Casilla casilla) {\n\t\tif( !this.getJugadorDeTurno().equals( casilla.getJugador() ) && casilla.getJugador() != null )\t\t\t\n\t\t\tthis.getTablero().voltearTodasLasCasillasDelJugador( casilla.getJugador(), casilla );\n\t\t\n\t\t//Fuerzo el jugador a la casilla para evaluar si gane\n\t\tcasilla.setJugador( this.getJugadorDeTurno() );\n\t\t\n\t\tif( this.terminoJuego() )\n\t\t\tthis.mostrarGanador( this.getJugadorDeTurno() );\n\t}" ]
[ "0.57082003", "0.562478", "0.55832815", "0.5491207", "0.5458448", "0.53689754", "0.5367644", "0.5359844", "0.53517604", "0.5346669", "0.5345229", "0.53396165", "0.5297472", "0.5289708", "0.52488065", "0.5242074", "0.52247214", "0.5224704", "0.518842", "0.5188278", "0.5186231", "0.51861286", "0.5181449", "0.51745826", "0.5163243", "0.5161745", "0.51587874", "0.51445013", "0.5140738", "0.5133942", "0.51226735", "0.51221824", "0.5119315", "0.5113723", "0.5108596", "0.50999653", "0.50703764", "0.5057227", "0.5057161", "0.50523657", "0.5050493", "0.5047463", "0.50451344", "0.50283366", "0.50155467", "0.50135326", "0.5009799", "0.5009477", "0.50068825", "0.4987386", "0.49835184", "0.49812132", "0.49799758", "0.49753186", "0.4968258", "0.4961319", "0.49610636", "0.49610037", "0.49598494", "0.49553156", "0.49549788", "0.49539566", "0.4950648", "0.49450624", "0.49423882", "0.49414748", "0.4922479", "0.49172878", "0.4913846", "0.4893923", "0.48931265", "0.48904306", "0.48894563", "0.4888027", "0.48865038", "0.48846635", "0.4883025", "0.4882533", "0.4881355", "0.4880798", "0.4876668", "0.48699296", "0.4869862", "0.48676795", "0.48635712", "0.4861616", "0.48610893", "0.4860398", "0.4855548", "0.48538888", "0.48509917", "0.48491842", "0.48477688", "0.4844662", "0.4841767", "0.4834032", "0.48292357", "0.48289537", "0.48262715", "0.4821606" ]
0.50949836
36
Req 8.1.4 AcmeParade Ratio parades in draft mode vs final mode
public Double findRatioParadesDraftModeVSParadesFinalMode() { Double result; result = this.paradeRepository.findRatioParadesDraftModeVSParadesFinalMode(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double findRatioAcceptedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioAcceptedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioRejectedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioRejectedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public Double findRatioSubmittedParadesFinalMode() {\n\t\tDouble result;\n\n\t\tresult = this.paradeRepository.findRatioSubmittedParadesFinalMode();\n\n\t\treturn result;\n\t}", "public BigDecimal getACTUAL_REIMB_PFT_FOR_ACCRUAL() {\r\n return ACTUAL_REIMB_PFT_FOR_ACCRUAL;\r\n }", "public BigDecimal getREIMBURSED_PROFIT_FOR_ACCRUAL() {\r\n return REIMBURSED_PROFIT_FOR_ACCRUAL;\r\n }", "protected int getAbsorptionRatio() {\n\n switch (armorType) {\n case 0:\n return 15;\n case 1:\n return 40;\n case 2:\n return 30;\n case 3:\n return 15;\n }\n return 0;\n }", "public BigDecimal getPROFIT_AMORTIZATION() {\r\n return PROFIT_AMORTIZATION;\r\n }", "public BigDecimal getACTUAL_PROFIT_AMT() {\r\n return ACTUAL_PROFIT_AMT;\r\n }", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "public BigDecimal getPorcentajeDiscapacidad()\r\n/* 234: */ {\r\n/* 235:429 */ return this.porcentajeDiscapacidad;\r\n/* 236: */ }", "@Test\n public void test_IsFracCorr() {\n System.out.println(\"Testing MeasuredRatioModel's isFracCorr()\");\n MeasuredRatioModel instance = new MeasuredRatioModel();\n boolean expResult = false;\n boolean result = instance.isFracCorr();\n assertEquals(expResult, result);\n instance = new MeasuredRatioModel(\"Specific\",new BigDecimal(\"213\"),\"ABS\",new BigDecimal(\"0.4324\"),true,true);\n result = instance.isFracCorr();\n expResult=true;\n assertEquals(expResult, result);\n }", "public void test1_4DiffusionAndDensity() throws Exception {\n getReverb(0);\n try {\n short ratio = mReverb.getDiffusion();\n ratio = (short)((ratio == 500) ? 1000 : 500);\n mReverb.setDiffusion(ratio);\n short ratio2 = mReverb.getDiffusion();\n assertTrue(\"got incorrect diffusion\",\n ((float)ratio2 > (float)(ratio / RATIO_TOLERANCE)) &&\n ((float)ratio2 < (float)(ratio * RATIO_TOLERANCE)));\n\n ratio = mReverb.getDensity();\n ratio = (short)((ratio == 500) ? 1000 : 500);\n mReverb.setDensity(ratio);\n ratio2 = mReverb.getDensity();\n assertTrue(\"got incorrect density\",\n ((float)ratio2 > (float)(ratio / RATIO_TOLERANCE)) &&\n ((float)ratio2 < (float)(ratio * RATIO_TOLERANCE)));\n\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "private void extractApportionmentForPBA(PaymentFeeLink serviceRequest) {\n boolean apportionFeature = featureToggler.getBooleanValue(\"apportion-feature\", false);\n LOG.info(\"ApportionFeature Flag Value in CreditAccountPaymentController : {}\", apportionFeature);\n if (apportionFeature) {\n //get first successful payment\n Payment pbaPayment = getFirstSuccessPayment.apply(serviceRequest);\n pbaPayment.setPaymentLink(serviceRequest);\n feePayApportionService.processApportion(pbaPayment);\n\n // Update Fee Amount Due as Payment Status received from PBA Payment as SUCCESS\n if (Lists.newArrayList(\"success\", \"pending\").contains(pbaPayment.getPaymentStatus().getName().toLowerCase())) {\n LOG.info(\"Update Fee Amount Due as Payment Status received from PBA Payment as %s\" + pbaPayment.getPaymentStatus().getName());\n feePayApportionService.updateFeeAmountDue(pbaPayment);\n }\n }\n }", "BigDecimal getFare();", "public void setREIMBURSED_PROFIT_FOR_ACCRUAL(BigDecimal REIMBURSED_PROFIT_FOR_ACCRUAL) {\r\n this.REIMBURSED_PROFIT_FOR_ACCRUAL = REIMBURSED_PROFIT_FOR_ACCRUAL;\r\n }", "public BigDecimal getREIMBURSED_PROFIT() {\r\n return REIMBURSED_PROFIT;\r\n }", "@Test\n\t/* Caso de Prueba: CP-RF4-01\n\t* Clase de Equivalencia o Valor Límite Asociado: CEV43 CEV45\n\t* Técnica de prueba: Clases de Equivalencia \n\t* Resultado Esperado: Valor de velocidad media y varianza para cada eje correcto generando un JSON acorde con el esperado como salida.\n\t*/\n\tpublic void testCPRF4_01() {\n\t\tAGCCalculator agcc = new AGCCalculator();\n\t\tString message = \"\";\n\t\ttry {\n\t\t\tagcc.CalculateVel(\"/PDS-P3/tests-json/CE-y-VL/CP-RF3-01-FINAL.json\", 20);\n\t\t} catch (AGCException ex) {\n\t\t\tmessage = ex.getMessage();\n\t\t}\n\t\tassertEquals(\"OK\", message);\n\t}", "public BigDecimal getPROFIT_AMT() {\r\n return PROFIT_AMT;\r\n }", "public double getPaymentAccrualFactor() {\n return _paymentAccrualFactor;\n }", "@Override\r\n\tpublic double porcentajeDelComercio() {\n\t\treturn 0.25;\r\n\t}", "public BigDecimal getPremAmt() {\n\t\treturn premAmt;\n\t}", "public BigDecimal getPercentageProfitPLimit();", "public BigDecimal getPREPAID_PROFIT_AMOUNT() {\r\n return PREPAID_PROFIT_AMOUNT;\r\n }", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "public static boolean chkManualEncumbranceRejValid(EscmProposalMgmt proposalmgmt) {\n try {\n OBContext.setAdminMode();\n EscmProposalMgmt baseProposal = proposalmgmt.getEscmBaseproposal();\n if (baseProposal == null) {\n OBQuery<EfinBudgetManencumlines> encline = OBDal.getInstance().createQuery(\n EfinBudgetManencumlines.class,\n \" as e where e.manualEncumbrance.id=:encumId and e.id in \"\n + \" ( select b.efinBudgmanencumline.id from Escm_Proposalmgmt_Line b \"\n + \" where b.escmProposalmgmt.id=:proposalId) and e.usedAmount > 0 \");\n encline.setNamedParameter(\"encumId\", proposalmgmt.getEfinEncumbrance().getId());\n encline.setNamedParameter(\"proposalId\", proposalmgmt.getId());\n\n if (encline.list().size() > 0) {\n return true;\n } else\n return false;\n } else if (baseProposal != null) {\n for (EscmProposalmgmtLine lines : proposalmgmt.getEscmProposalmgmtLineList()) {\n if (!lines.isSummary() && lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n if (amountDiffernce.compareTo(BigDecimal.ZERO) > 0\n && encline.getRemainingAmount().compareTo(amountDiffernce) < 0\n && encline.getManualEncumbrance().getEncumMethod().equals(\"M\")) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in chkManualEncumbranceValidation after Reject : \", e);\n return false;\n } finally {\n OBContext.restorePreviousMode();\n }\n return false;\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public double getPercepcion(){\n return localPercepcion;\n }", "public abstract double getComplianceFee();", "@Override\n public int calculerSurface() {\n return (int)(Math.PI * carre(rayon));\n }", "public PartialSigmaChargeDescriptor() { \n peoe = new GasteigerMarsiliPartialCharges();\n }", "public BigDecimal getPREPAID_AMOUNT() {\r\n return PREPAID_AMOUNT;\r\n }", "private void computeRatio() {\n int i;\n int i2;\n int i3;\n boolean z = false;\n if (CameraSettings.getStrictAspectRatio(this.mRenderWidth, this.mRenderHeight) > -1 || !CameraSettings.isNearAspectRatio(this.mCameraWidth, this.mCameraHeight, this.mRenderWidth, this.mRenderHeight)) {\n int i4 = this.mCameraWidth;\n int i5 = this.mCameraHeight;\n switch (this.mTargetRatio) {\n case 0:\n this.mIsFullScreen = false;\n this.mIsRatio16_9 = false;\n if (!CameraSettings.isAspectRatio4_3(i4, i5)) {\n this.mNeedCropped = true;\n if (i4 * 4 > i5 * 3) {\n int i6 = (int) (((float) i5) * 0.75f);\n this.mScaleX = ((float) i6) / ((float) i4);\n i4 = i6;\n } else {\n int i7 = (int) ((((float) i4) * 4.0f) / 3.0f);\n this.mScaleY = ((float) i7) / ((float) i5);\n i5 = i7;\n }\n } else {\n this.mNeedCropped = false;\n this.mScaleX = 1.0f;\n this.mScaleY = 1.0f;\n }\n if (CameraSettings.sCroppedIfNeeded) {\n this.mIsFullScreen = true;\n this.mNeedCropped = true;\n this.mIsRatio16_9 = true;\n i = (int) ((((float) i4) * 16.0f) / 9.0f);\n this.mScaleX *= 0.75f;\n } else {\n i = i5;\n }\n if (b.isPad()) {\n this.mIsFullScreen = true;\n break;\n }\n break;\n case 1:\n this.mIsRatio16_9 = true;\n this.mIsFullScreen = true;\n if (!CameraSettings.isAspectRatio16_9(i4, i5)) {\n this.mNeedCropped = true;\n if (i4 * 16 <= i5 * 9) {\n int i8 = (int) ((((float) i4) * 16.0f) / 9.0f);\n this.mScaleY = ((float) i8) / ((float) i5);\n int i9 = i8;\n i2 = i4;\n i3 = i9;\n if (b.isPad()) {\n this.mIsRatio16_9 = false;\n this.mNeedCropped = true;\n i3 = (int) (((float) i3) * 0.75f);\n this.mScaleY *= 0.75f;\n }\n i = i3;\n i4 = i2;\n break;\n } else {\n i2 = (int) ((((float) i5) * 9.0f) / 16.0f);\n this.mScaleX = ((float) i2) / ((float) i4);\n }\n } else {\n this.mNeedCropped = false;\n this.mScaleX = 1.0f;\n this.mScaleY = 1.0f;\n i2 = i4;\n }\n i3 = i5;\n if (b.isPad()) {\n }\n i = i3;\n i4 = i2;\n case 2:\n this.mIsFullScreen = false;\n this.mIsRatio16_9 = false;\n this.mNeedCropped = true;\n if (i4 != i5) {\n this.mScaleX = 1.0f;\n this.mScaleY = ((float) i4) / ((float) i5);\n i = i4;\n break;\n }\n default:\n i = i5;\n break;\n }\n this.mWidth = i4;\n this.mHeight = i;\n } else if (!(this.mCameraWidth == 0 || this.mCameraHeight == 0)) {\n if (this.mRenderWidth == 0 || this.mRenderHeight == 0 || this.mRenderWidth * this.mCameraHeight == this.mRenderHeight * this.mCameraWidth) {\n this.mNeedCropped = false;\n this.mScaleX = 1.0f;\n this.mScaleY = 1.0f;\n this.mWidth = this.mCameraWidth;\n this.mHeight = this.mCameraHeight;\n } else {\n this.mNeedCropped = true;\n if (this.mCameraWidth * this.mRenderHeight > this.mCameraHeight * this.mRenderWidth) {\n this.mHeight = this.mCameraHeight;\n this.mWidth = (this.mCameraHeight * this.mRenderWidth) / this.mRenderHeight;\n this.mScaleX = ((float) this.mWidth) / ((float) this.mCameraWidth);\n this.mScaleY = 1.0f;\n } else {\n this.mWidth = this.mCameraWidth;\n this.mHeight = (this.mCameraWidth * this.mRenderHeight) / this.mRenderWidth;\n this.mScaleX = 1.0f;\n this.mScaleY = ((float) this.mHeight) / ((float) this.mCameraHeight);\n }\n }\n if ((((float) this.mRenderHeight) / ((float) this.mRenderWidth)) - (((float) Util.sWindowHeight) / ((float) Util.sWindowWidth)) < 0.1f) {\n z = true;\n }\n this.mIsFullScreen = z;\n }\n updateRenderSize();\n updateRenderRect();\n }", "public double getAbandonCompressionRatio() {\r\n return abandonRatioNr / (double) abandonRatioDr;\r\n }", "float getVacationAccrualRate();", "public BigDecimal getDEPRECIATION_AMT() {\r\n return DEPRECIATION_AMT;\r\n }", "public void setAbsorptionAmount(float debug1) {\n/* 2019 */ if (debug1 < 0.0F) {\n/* 2020 */ debug1 = 0.0F;\n/* */ }\n/* 2022 */ getEntityData().set(DATA_PLAYER_ABSORPTION_ID, Float.valueOf(debug1));\n/* */ }", "public void setACTUAL_REIMB_PFT_FOR_ACCRUAL(BigDecimal ACTUAL_REIMB_PFT_FOR_ACCRUAL) {\r\n this.ACTUAL_REIMB_PFT_FOR_ACCRUAL = ACTUAL_REIMB_PFT_FOR_ACCRUAL;\r\n }", "public Float getProfundidadFinal() {\r\n\t\treturn profundidadFinal;\r\n\t}", "private static double getOEEQuality(Batch batch) {\n double quality = ((double) batch.getAccepted()) / (((double) batch.getAccepted()) + ((double) batch.getDefect()));\n\n return quality;\n }", "public DepreciatingPolicy(float amount, float rate){\r\n super(amount);\r\n this.rate = rate*100;\r\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "@Override\r\n\tpublic double recargoImpuesto() {\n\t\treturn 0.03;\r\n\t}", "@Override\n public void pp(){\n PP=3+2*nivel;\n }", "public void setPorcentajeDiscapacidad(BigDecimal porcentajeDiscapacidad)\r\n/* 239: */ {\r\n/* 240:439 */ this.porcentajeDiscapacidad = porcentajeDiscapacidad;\r\n/* 241: */ }", "private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public abstract float perimetro();", "@Override\n\tpublic double perimetro() {\n\t\treturn getBase()*4;\n\t}", "double effective_aoa () {\n if (current_part == strut)\n return current_part.aoa;\n else if (// false && // DEBUG aft problems...\n current_part == stab && stab_aoa_correction) {\n // stab is in downwash from main wing and sees some down stream.\n double wing_Cl0 = 0.4; // very typical, true for Aquila, NACA 3412 63-412 etc\n // the following is from \"General aviation aicraft design, Appendix C1\"\n double wing_Cl = wing.cl;\n double div = Math.PI * wing.span/wing.chord;\n double corrected_aoa = craft_pitch * (1 - 2 * wing_Cl / div) - \n 2 * wing_Cl0 / div - wing.aoa + current_part.aoa;\n // double correction = corrected_aoa - (current_part.aoa + craft_pitch);\n // System.out.println(\"-- correction: \" + correction);\n return Math.min(aoa_max, Math.max(aoa_min, corrected_aoa));\n } else\n return Math.min(aoa_max, Math.max(aoa_min, current_part.aoa + craft_pitch));\n }", "public float handleClaim(){\r\n float re_amount = amount;\r\n depreciate();\r\n return re_amount;\r\n }", "public abstract double getPreis();", "@Test\n public void test_SetFracCorr() {\n System.out.println(\"Testing MeasuredRatioModel's setFracCorr(boolean value)\");\n MeasuredRatioModel instance = new MeasuredRatioModel();\n boolean expResult = true;\n instance.setFracCorr(true);\n boolean result = instance.isFracCorr();\n assertEquals(expResult, result);\n instance.setFracCorr(false);\n result = instance.isFracCorr();\n expResult=false;\n assertEquals(expResult, result);\n }", "boolean mo6499P(C41531v c41531v);", "public Fenetre_resultats_plaque(float debit_m_1, float debit_m_2, float capacite_th_1, float capacite_th_2, float viscosite_1, float viscosite_2, float conductivite_th_1, float conductivite_th_2, float masse_volumique_1, float masse_volumique_2, float tempc, float tempf, float longueur, float largeur, float hauteur) {\n\n Plaques plaque1;\n Finance F1;\n\n plaque1 = new Plaques(longueur, largeur, hauteur, debit_m_1, debit_m_2, capacite_th_1, capacite_th_2, tempc, tempf, masse_volumique_1, masse_volumique_2, viscosite_1, viscosite_2, conductivite_th_1, conductivite_th_2);\n F1 = new Finance();\n\n int nbre_plaques_total_main = plaque1.calcul_nbre_plaques_total();\n double surface_plaque_main = plaque1.calcul_surface_plaques();\n\n plaque1.calcul_surface_contact();\n\n double smod_main = plaque1.calcul_smod();\n\n plaque1.calcul_coeff_convection_h();\n plaque1.calcul_rth();\n plaque1.calcul_densite_couple();\n plaque1.calcul_rcharge();\n \n double pe_main = plaque1.calcul_Pe();\n\n int nbre_modules_main = plaque1.getter_nbre_modules();\n\n double prix_modules_main = F1.calcul_prix_modules(nbre_modules_main);\n if (prix_modules_main < 0) {\n prix_modules_main = 0;\n }\n \n F1.calcul_volume_plaques(surface_plaque_main, plaque1.getter_diam_tube(), plaque1.getter_epaisseur_plaque(), nbre_plaques_total_main, plaque1.getter_inter_plaque());\n \n double prix_materiaux_main = F1.calcul_prix_matiere();\n if (prix_materiaux_main < 0) {\n prix_materiaux_main = 0;\n }\n \n double prix_total_main = prix_modules_main + prix_materiaux_main;\n\n double energie_produite_main = F1.conversion_kwh(pe_main);\n double revenu_horaire_main = F1.calcul_revenu_horaire();\n double nbre_heures_main = F1.calcul_nbre_heures();\n \n DecimalFormat df2 = new DecimalFormat(\"#.##\");\n DecimalFormat df4 = new DecimalFormat(\"#.####\");\n DecimalFormat df5 = new DecimalFormat(\"#.#####\");\n DecimalFormat df7 = new DecimalFormat(\"#.#######\");\n \n\n String entetes[] = {\"Résultat\", \"Valeur\"};\n Object donnees[][] = {\n {\"Nombre de modules\", plaque1.getter_nbre_modules()},\n {\"Surface proposée (en m²)\", df5.format(plaque1.getter_surface_contact())},\n {\"Surface utilisée par les modules (en m²)\", df5.format(smod_main)},\n {\"Débit massique chaud(en m3/h)\", debit_m_1},\n {\"Débit massique froid(en m3/h)\", debit_m_2},\n {\"Température chaude (en °C)\", tempc},\n {\"Différence de température\", plaque1.getter_diff_temperature()},\n {\"Puissance électrique générée (en W)\", df2.format(pe_main)}};\n\n DefaultTableModel modele = new DefaultTableModel(donnees, entetes) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau = new JTable(modele);\n\n String entetes2[] = {\"Caractéristiques\", \"Valeurs\"};\n Object donnees2[][] = {\n {\"Surface d'un module (en m²)\", plaque1.getter_surface_module()},\n {\"Longueur d'une jambe (en m)\", df4.format(plaque1.getter_longueur_jambe())},\n {\"Surface d'une jambe (en m²)\", df7.format(plaque1.getter_surface_jambe())},\n {\"Densité de couple\", df5.format(plaque1.getter_densite_couple())},\n {\"Conductivité thermique du module (en W/m/K)\", df2.format(plaque1.getter_conduct_th_module())}\n };\n\n DefaultTableModel modele2 = new DefaultTableModel(donnees2, entetes2) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n Object donnees3[][] = {\n {\"Prix des modules (en €)\", df2.format(prix_modules_main)},\n {\"Prix de la matière première (en €)\", df2.format(prix_materiaux_main)},\n {\"Prix total échangeur (en €)\", df2.format(prix_total_main)},\n {\"Prix du kilowatt-heure\", F1.getter_prix_elec()},\n {\"Revenu horaire\", df2.format(revenu_horaire_main)},\n {\"Nbre d'heures pour remboursement\", df2.format(nbre_heures_main)}\n\n };\n String entetes3[] = {\"Caractéristiques\", \"Valeurs\"};\n\n DefaultTableModel modele3 = new DefaultTableModel(donnees3, entetes3) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau3 = new JTable(modele3);\n\n // Pour le graphique en camembert\n final JFXPanel fxPanel = new JFXPanel(); // On crée un panneau FX car on peut pas mettre des objet FX dans un JFRame\n final PieChart chart = new PieChart(); // on crée un objet de type camembert\n chart.setTitle(\"Répartition du prix de l'échangeur\"); // on change le titre de ce graph\n chart.getData().setAll(new PieChart.Data(\"Prix des modules \" + prix_modules_main + \" €\", prix_modules_main), new PieChart.Data(\"Prix du matériau \" + df2.format(prix_materiaux_main) + \" €\", prix_materiaux_main)\n ); // on implémente les différents case du camebert\n final Scene scene = new Scene(chart); // on crée une scene (FX) où l'on met le graph camembert\n fxPanel.setScene(scene);\n\n // a partir de là c'est plus le camembert\n tableau2 = new JTable(modele2);\n\n JScrollPane tableau_entete = new JScrollPane(tableau);\n JScrollPane tableau_entete2 = new JScrollPane(tableau2);\n JScrollPane tableau_entete3 = new JScrollPane(tableau3);\n\n tableau_entete.setViewportView(tableau);\n tableau_entete2.setViewportView(tableau2);\n tableau_entete3.setViewportView(tableau3);\n\n tableau_entete.setPreferredSize(new Dimension(550, 170));\n tableau_entete2.setPreferredSize(new Dimension(550, 110));\n tableau_entete3.setPreferredSize(new Dimension(550, 120));\n\n JLabel label_resultat = new JLabel(\"Resultat de la simulation\");\n JLabel label_module = new JLabel(\"Caractéristiques du module utilisé\");\n JLabel label_prix = new JLabel(\"Prix de l'échangeur\");\n \n setBounds(0, 0, 600, 950);\n setTitle(\"Résultats Technologie Plaques\");\n \n panneau = new JPanel();\n panneau.add(label_resultat);\n panneau.add(tableau_entete);\n panneau.add(label_module);\n panneau.add(tableau_entete2);\n panneau.add(label_prix);\n panneau.add(tableau_entete3);\n panneau.add(fxPanel); // on ajoute au Jframe notre panneau FX (qui contient donc UNE \"scene\" qui elle contient les object FX, ici notre camembert)\n getContentPane().add(panneau);\n \n this.setLocation(600, 0);\n this.setResizable(false);\n }", "public static void updateManualEncumAppAmt(EscmProposalMgmt proposalmgmt, Boolean iscancel) {\n\n try {\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n OBContext.setAdminMode();\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n // checking with propsal line\n if (baseProposalObj == null) {\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (encline != null) {\n if (\"PAWD\".equals(proposalmgmt.getProposalstatus())) {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getAwardedamount()));\n } else {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getLineTotal()));\n }\n OBDal.getInstance().save(encline);\n }\n if (iscancel) {\n // BidManagementDAO.insertEncumbranceModification(encline,\n // proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n proposalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalline);\n }\n }\n }\n } else if (baseProposalObj != null) {\n for (EscmProposalmgmtLine lines : prolineList) {\n if (!lines.isSummary()) {\n if (lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n } else if (lines.getStatus() != null && lines.getEscmOldProposalline() != null\n && lines.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal();\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }", "boolean isSetValueRatio();", "public BigDecimal getGRACE_PRD_CMPND_PROFIT_AMT() {\r\n return GRACE_PRD_CMPND_PROFIT_AMT;\r\n }", "public void mo4354a() {\n this.f3151a = 0;\n this.f3152b = false;\n this.f3153c = false;\n this.f3154d = false;\n }", "public Float getProfundidadInicial() {\r\n\t\treturn profundidadInicial;\r\n\t}", "public static void reactivateSplitPR(JSONObject resultEncum, EscmProposalMgmt proposal,\n Boolean isCancel, EscmProposalmgmtLine proposalmgmtline) {\n List<EfinBudgetManencumlines> manenculine = new ArrayList<EfinBudgetManencumlines>();\n EfinBudgetManencum encumbrance = null;\n EfinBudgetManencumlines srcEncumLines = null;\n List<EfinBudManencumRev> revList = null;\n try {\n if (proposal != null)\n encumbrance = proposal.getEfinEncumbrance();\n else\n encumbrance = proposalmgmtline.getEscmProposalmgmt().getEfinEncumbrance();\n\n // From PR\n if (proposal != null) {\n\n Map<EfinBudgetManencumlines, Double> proposalLineMap = proposal\n .getEscmProposalmgmtLineList().stream().filter(b -> b.getEfinBudgmanencumline() != null)\n .collect(Collectors.groupingBy(EscmProposalmgmtLine::getEfinBudgmanencumline,\n Collectors.summingDouble(a -> a.getLineTotal().doubleValue())));\n\n for (Map.Entry<EfinBudgetManencumlines, Double> entry : proposalLineMap.entrySet()) {\n\n BigDecimal requisitionLineAmt = BigDecimal.ZERO;\n\n for (EscmProposalmgmtLine proposalLine : proposal.getEscmProposalmgmtLineList()) {\n\n if (proposalLine.getEfinBudgmanencumline() != null\n && proposalLine.getEfinBudgmanencumline().getId().equals(entry.getKey().getId())) {\n for (EscmProposalsourceRef sourceRef : proposalLine.getEscmProposalsourceRefList()) {\n RequisitionLine reqline = sourceRef.getRequisitionLine();\n requisitionLineAmt = requisitionLineAmt\n .add(sourceRef.getReservedQuantity().multiply(reqline.getUnitPrice()));\n }\n }\n }\n\n BigDecimal revAmtSum = BigDecimal.ZERO;\n\n EfinBudgetManencumlines newEncumlines = entry.getKey();\n\n OBQuery<EfinBudManencumRev> revAmtQuery = OBDal.getInstance().createQuery(\n EfinBudManencumRev.class, \" as e where e.sRCManencumline.id = :proposalEncumLineID\");\n revAmtQuery.setNamedParameter(\"proposalEncumLineID\", newEncumlines.getId());\n\n if (revAmtQuery != null) {\n List<EfinBudManencumRev> revAmtList = revAmtQuery.list();\n if (revAmtList.size() > 0) {\n\n Map<EfinBudgetManencumlines, Double> encumLineRevAmtMap = revAmtList.stream()\n .filter(b -> b.getManualEncumbranceLines() != null)\n .collect(Collectors.groupingBy(EfinBudManencumRev::getManualEncumbranceLines,\n Collectors.summingDouble(a -> (a.getRevamount().negate()).doubleValue())));\n\n for (Map.Entry<EfinBudgetManencumlines, Double> revision : encumLineRevAmtMap\n .entrySet()) {\n\n EfinBudgetManencumlines oldEncumLines = revision.getKey();\n\n revAmtSum = BigDecimal.valueOf(revision.getValue());\n\n if (resultEncum.has(\"type\") && resultEncum.getString(\"type\").equals(\"SPLIT\")) {\n if (revAmtSum.compareTo(requisitionLineAmt) > 0) {\n oldEncumLines.setAPPAmt(oldEncumLines.getAPPAmt().add(requisitionLineAmt));\n oldEncumLines.setRemainingAmount(oldEncumLines.getRemainingAmount()\n .add(revAmtSum.subtract(requisitionLineAmt)));\n OBDal.getInstance().save(oldEncumLines);\n\n } else {\n oldEncumLines.setAPPAmt(oldEncumLines.getAPPAmt().add(revAmtSum));\n OBDal.getInstance().save(oldEncumLines);\n }\n }\n if (resultEncum.has(\"type\") && resultEncum.getString(\"type\").equals(\"MERGE\")) {\n oldEncumLines.setAPPAmt(oldEncumLines.getAPPAmt().add(revAmtSum));\n OBDal.getInstance().save(oldEncumLines);\n }\n }\n\n }\n }\n }\n }\n\n if (!isCancel) {\n // update encumbrance line is null\n if (proposal != null) {\n for (EscmProposalmgmtLine ln : proposal.getEscmProposalmgmtLineList()) {\n ln.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(ln);\n }\n // update the bid management header status as \"In Active\"\n proposal.setEfinEncumbrance(null);\n proposal.setEfinIsbudgetcntlapp(false);\n encumbrance.setBusinessPartner(null);\n OBDal.getInstance().save(proposal);\n } else {\n proposalmgmtline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalmgmtline);\n // update the bid management header status as \"In Active\"\n proposalmgmtline.getEscmProposalmgmt().setEfinEncumbrance(null);\n proposalmgmtline.getEscmProposalmgmt().setEfinIsbudgetcntlapp(false);\n encumbrance.setBusinessPartner(null);\n OBDal.getInstance().save(proposal);\n }\n }\n\n if (encumbrance != null) {\n // fetching revision record based on newly created encumbrance lines\n OBQuery<EfinBudManencumRev> revQuery = OBDal.getInstance()\n .createQuery(EfinBudManencumRev.class, \" as e where e.sRCManencumline.id in \"\n + \" ( select e.id from Efin_Budget_Manencumlines e where e.manualEncumbrance.id=:encumId)\");\n revQuery.setNamedParameter(\"encumId\", encumbrance.getId());\n revList = revQuery.list();\n if (revList.size() > 0) {\n for (EfinBudManencumRev rev : revList) {\n srcEncumLines = rev.getSRCManencumline();\n if (!isCancel) {\n rev.setSRCManencumline(null);\n OBDal.getInstance().save(rev);\n OBDal.getInstance().flush();\n }\n }\n\n // if (proposal.getEfinEncumbrance() != null)\n // encumbrance = proposal.getEfinEncumbrance();\n manenculine = encumbrance.getEfinBudgetManencumlinesList();\n if (!isCancel) {\n encumbrance.setDocumentStatus(\"DR\");\n OBDal.getInstance().save(encumbrance);\n }\n if (manenculine.size() > 0) {\n for (EfinBudgetManencumlines line : manenculine) {\n if (!isCancel)\n OBDal.getInstance().remove(line);\n else {\n line.setAPPAmt(line.getAPPAmt().add(line.getRevamount().negate()));\n BidManagementDAO.insertEncumbranceModification(line, line.getRevamount().negate(),\n null, \"PRO\", null, null);\n }\n }\n if (!isCancel)\n OBDal.getInstance().remove(encumbrance);\n }\n for (EfinBudManencumRev rev : revList) {\n EfinBudgetManencumlines lines = rev.getManualEncumbranceLines();\n log.debug(\"getAccountingCombination:\" + lines.getAccountingCombination());\n // lines.setAPPAmt(lines.getAPPAmt().add(rev.getRevamount().negate()));\n\n if (!isCancel) {\n lines.getEfinBudManencumRevList().remove(rev);\n } else {\n BidManagementDAO.insertEncumbranceModification(lines, rev.getRevamount().negate(),\n srcEncumLines, \"PRO\", null, null);\n }\n }\n }\n }\n } catch (Exception e) {\n log.error(\"Exception in reactivateSplitPR \" + e.getMessage());\n }\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "@Override\r\n\tpublic void paidBehavior() {\n\t\tSystem.out.println(\"You paid using your Vias card\");\r\n\t\t\r\n\t}", "public void prepararPago(){\n pago = (float) 0.00;\n nuevoSaldo = (float) 0.00;\n intereses = (float) 0.00;\n mora = (float) 0.00;\n pagoValido = false;\n }", "@Override\r\n\tpublic Double getPropensity_fund_score() {\n\t\treturn super.getPropensity_fund_score();\r\n\t}", "static double mediaAritmetica (double c, int e, int f) {\n return (c+e+f)/3;\n }", "@Override\n public int accion() {\n return this.alcance*2/3*3;\n }", "@Test\n\t@Category(TesteGetPromovabilitate.class)\n\tpublic void testPromovabilitate() {\n\t\tGrupa grupa=new Grupa(1078);\n\t\tfor(int i=0;i<7;i++) {\n\t\t\tStudent student=new Student(\"Valentin\");\n\t\t\tstudent.adaugaNota(4);\n\t\t\tstudent.adaugaNota(3);\n\t\t\tstudent.adaugaNota(2);\n\t\t\tgrupa.adaugaStudent(student);\n\t\t}\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tStudent student=new Student(\"Ana\");\n\t\t\tstudent.adaugaNota(7);\n\t\t\tstudent.adaugaNota(8);\n\t\t\tstudent.adaugaNota(10);\n\t\t\tgrupa.adaugaStudent(student);\n\t\t}\n\t\tassertEquals(0.41, grupa.getPromovabilitate(),0.02);\n\t}", "@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "private void setCardPayment(boolean res) {\n txtCardAmount.setEnabled(res);\n cmboCardBank.setEnabled(res);\n txtCardNo.setEnabled(res);\n if (res) {\n\n txtPayAmount.setCValue(txtPayAmount.getCValue() + txtCardAmount.getCValue());\n } else {\n txtPayAmount.setCValue(txtPayAmount.getCValue() - txtCardAmount.getCValue());\n }\n txtNewBalance.setCValue(txtInvoiceValue.getCValue() - txtPayAmount.getCValue());\n }", "ScaleTwoDecimal calculateApplicableFandARate(Award award);", "public double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}", "private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }", "double getRatio();", "public BigDecimal getACCRUAL_AMT() {\r\n return ACCRUAL_AMT;\r\n }", "public BigDecimal getORG_PROFIT_AMT() {\r\n return ORG_PROFIT_AMT;\r\n }", "public void validateRpd15s4()\n {\n // This guideline cannot be automatically tested.\n }", "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}", "public double getNecrosisPercentage()\r\n \t{\r\n \t\treturn necrosisPercentage;\r\n \t}", "@Test\n public void presentValueCurveSensitivity() {\n final MultipleCurrencyParameterSensitivity pvpsDepositExact = PSC.calculateSensitivity(CPN_ON_COMPOUNDED, MULTICURVES,\n MULTICURVES.getAllNames());\n final MultipleCurrencyParameterSensitivity pvpsDepositFD = PSC_DSC_FD.calculateSensitivity(CPN_ON_COMPOUNDED, MULTICURVES);\n AssertSensitivityObjects.assertEquals(\"CouponONCompoundedDiscountingMethod: presentValueCurveSensitivity \", pvpsDepositExact,\n pvpsDepositFD, TOLERANCE_PV_DELTA);\n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "private void calculadorNotaFinal() {\n\t\t//calculo notaFinal, media de las notas medias\n\t\tif(this.getAsignaturas() != null) {\n\t\t\t\tfor (Iterator<Asignatura> iterator = this.asignaturas.iterator(); iterator.hasNext();) {\n\t\t\t\t\tAsignatura asignatura = (Asignatura) iterator.next();\n\t\t\t\t\tif(asignatura.getNotas() != null) {\n\t\t\t\t\tnotaFinal += asignatura.notaMedia();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//curarse en salud con division entre 0\n\t\t\t\tif(this.getAsignaturas().size() != 0) {\n\t\t\t\tnotaFinal /= this.getAsignaturas().size();\n\t\t\t\t}\n\t\t}\n\t}", "public void azzera() { setEnergia(0.0); }", "void getCirculation (double effaoa, double thickness_pst, double camber_pst) { \n double beta;\n double th_abs = thickness_pst/100.0; \n xcval = 0.0;\n ycval = camber_pst/50; // was: current_part.camber/25/2\n\n if (current_part.foil == FOIL_CYLINDER || /* get circulation for rotating cylnder */\n current_part.foil == FOIL_BALL) { /* get circulation for rotating ball */\n rval = radius/lconv;\n gamval = 4.0 * Math.PI * Math.PI *spin * rval * rval\n / (velocity/vconv);\n gamval = gamval * spindr;\n ycval = .0001;\n } else {\n rval = th_abs + Math.sqrt((current_part.foil == FOIL_FLAT_PLATE\n ? 0 : th_abs*th_abs)\n + ycval*ycval + 1.0);\n xcval = current_part.foil == FOIL_JOUKOWSKI ? 0 : (1.0 - Math.sqrt(rval*rval - ycval*ycval));\n beta = Math.asin(ycval/rval)/convdr; /* Kutta condition */\n gamval = 2.0*rval*Math.sin((effaoa+beta)*convdr);\n }\n }", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "public BigDecimal getFinsuredpricerate() {\n return finsuredpricerate;\n }", "public double[] getProminence() { return this.prominence; }", "double defendre();", "public BigDecimal getPercentageProfitPStd();", "public void validateRpd3s15()\n {\n // This guideline cannot be automatically tested.\n }", "public int getFECHACRREVAL() {\n return fechacrreval;\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public BigDecimal getFagentgathrate() {\n return fagentgathrate;\n }", "public double getPromedio() {\r\n return promedio;\r\n }", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "public double getPorcentajeAdyacencia() {\n\t\treturn porcentAdy;\n\t}", "public int getCombatDensityRate() {\n return combatDensityRate;\n }", "static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }", "public void init() {\n\n\n verdiend = 133;\n\n verdeling = verdiend / 4;\n }", "double getPerimetro();" ]
[ "0.6572701", "0.6357168", "0.62085205", "0.5881246", "0.58340204", "0.55363375", "0.54800075", "0.54378766", "0.54012525", "0.53764987", "0.53266805", "0.53075975", "0.5295366", "0.52533656", "0.5251425", "0.52175856", "0.52164066", "0.5210392", "0.51246136", "0.5120883", "0.5084257", "0.5079763", "0.506329", "0.50612134", "0.50543827", "0.5049435", "0.5042497", "0.50410694", "0.5026674", "0.5026021", "0.5004754", "0.49992022", "0.49959144", "0.49676964", "0.49603862", "0.4954473", "0.493912", "0.49380067", "0.49366254", "0.49323365", "0.4920449", "0.4919005", "0.491872", "0.49066737", "0.49049032", "0.4898218", "0.48910657", "0.4882491", "0.48794615", "0.48779282", "0.4876128", "0.48640126", "0.48554173", "0.48439127", "0.48438132", "0.48328006", "0.4832501", "0.48295003", "0.4827584", "0.48201773", "0.48163122", "0.4815447", "0.4812037", "0.4797631", "0.47955832", "0.479439", "0.47942483", "0.47941196", "0.47929978", "0.47929317", "0.47901258", "0.4788844", "0.47851887", "0.477978", "0.47760567", "0.47698277", "0.4769071", "0.47681108", "0.47635287", "0.47624552", "0.4761806", "0.47598925", "0.47502956", "0.4748453", "0.4746558", "0.4746191", "0.47409573", "0.47381017", "0.47343466", "0.47271046", "0.47239128", "0.4723721", "0.47232938", "0.4718593", "0.47184956", "0.47171816", "0.47079134", "0.47041664", "0.4698457", "0.4695697" ]
0.6690172
0
Req 8.1.5 AcmeParade status = 'submitted'
public Double findRatioSubmittedParadesFinalMode() { Double result; result = this.paradeRepository.findRatioSubmittedParadesFinalMode(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n // not setting committee during submit in iacuc so need not check that like in irb.\n submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING);\n }", "public void verifyMarkAsCompleteBackend(String engagementField, String engagementValue, String todoName,\n String status) throws SyncFactoryException {\n try {\n getLogger().info(\"Verify Completed field updated on database.\");\n // JSONObject jsonObject = MongoDB.getToDoObject(getEngagementCollection(), engagementField, engagementValue, todoName);\n JSONObject jsonObject = MongoDBService.getToDoObject(getEngagementCollection(), engagementField, engagementValue, todoName);\n if (jsonObject.get(\"completed\").toString().equals(status)) {\n NXGReports.addStep(\"Verify Completed field updated on database.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify Completed field updated on database.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (Exception ex) {\n NXGReports\n .addStep(\"Verify Completed field updated on database.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n ex.printStackTrace();\n }\n }", "private void submit_attendance() {\n }", "public boolean canSubmit()\n {\n return (_state == ActivityState.RUNNING);\n }", "@Test\n public void creditApproved() throws Exception {\n Application app = new Application();\n app.setName(\"phil garfield\");\n app.setCreditScore(600);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertTrue(result.isApproved());\n }", "public boolean isApproved() {\n return approved;\n }", "public boolean isApproved();", "public boolean isApproved();", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}", "public void setIsApproved (boolean IsApproved);", "public void setIsApproved (boolean IsApproved);", "public void setRequested(){\n this.status = \"Requested\";\n }", "public void submitLAC() {\n\t\tfor (ReportStatementDto dto : reportStatementDtoList) {\n\t\t\tif (plAcode.getAcCode().equals(dto.getAcCode())) {\n\t\t\t\tplAcode.setcBal(dto.getcBal());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// did two time , to get first result for each\n\t\tfor (ReportStatementDto dto : reportStatementDtoList) {\n\t\t\tif (taxAcode.getAcCode().equals(dto.getAcCode())) {\n\t\t\t\ttaxAcode.setcBal(dto.getcBal());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treportType = ReportType.BS;\n\t\tisReportTypeSelection = true;\n\t\tisCurrencySelection = false;\n\t\tisReportSelection = false;\n\t\tisPreviewDone = false;\n\t\tisLacSelection = false;\n\t\tcreateNewReport();\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String idAcc = request.getParameter(\"idAcc\");\r\n String dateAcc = request.getParameter(\"dateAcc\");\r\n String timeAcc = request.getParameter(\"timeAcc\");\r\n String locationAcc = request.getParameter(\"locationAcc\");\r\n String departmentAcc = request.getParameter(\"departmentAcc\");\r\n String picAcc = request.getParameter(\"picAcc\");\r\n String participantAcc = request.getParameter(\"participantAcc\");\r\n String clientAcc = request.getParameter(\"clientAcc\");\r\n String accept = request.getParameter(\"accept\");\r\n\r\n if (\"true\".equals(accept)) {\r\n status = iic.save(idAcc, dateAcc, timeAcc, locationAcc, departmentAcc, picAcc, \"1\", participantAcc, clientAcc);\r\n } else {\r\n status = iic.save(idAcc, dateAcc, timeAcc, locationAcc, departmentAcc, picAcc, \"0\", participantAcc, clientAcc);\r\n }\r\n request.getSession().setAttribute(\"status\", status);\r\n\r\n processRequest(request, response);\r\n }", "private boolean doGetApproval() {\n\t\tcurrentStep = OPERATION_NAME+\": getting approval from BAMS\";\n\t\tif (!_atmssHandler.doDisDisplayUpper(SHOW_PLEASE_WAIT)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn false;\n\t\t}\n\t\tresult = _atmssHandler.doBAMSUpdatePasswd(newPassword, _session);\n\t\tif (result) {\n\t\t\trecord(\"password changed\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\trecord(\"BAMS\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_BAMS_UPDATING_PW)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t}\n\t}", "public void setComplete(boolean isComplete) { \n this.isComplete = isComplete; \n }", "@SystemAPI\n\tboolean needsApproval();", "public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }", "public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}", "boolean createAcquest(Acquest acquest);", "@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\t// Implementation\n\t\tString id = ctx.pathParam(\"id\");\n\t\tForm form = fs.getForm(UUID.fromString(id));\n\t\tapprover.getAwaitingApproval().remove(form);\n\t\tus.updateUser(approver);\n\t\t// If approver is just the direct supervisor\n\t\tif (!approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tUser departmentHead = us.getUserByName(approver.getDepartmentHead());\n\t\t\tdepartmentHead.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(departmentHead);\n\t\t}\n\t\t// If the approver is a department head but not a benco\n\t\tif (approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t}\n\t\t// if the approver is a BenCo\n\t\tif (approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setBencoApproval(true);\n\t\t\tUser formSubmitter = us.getUserByName(form.getName());\n\t\t\tif (formSubmitter.getAvailableReimbursement() >= form.getCompensation()) {\n\t\t\t\tformSubmitter.setAvailableReimbursement(formSubmitter.getAvailableReimbursement() - form.getCompensation());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tformSubmitter.setAvailableReimbursement(0.00);\n\t\t\t}\n\t\t\tformSubmitter.getAwaitingApproval().remove(form);\n\t\t\tformSubmitter.getCompletedForms().add(form);\n\t\t\tus.updateUser(formSubmitter);\n\t\t}\n\t\t\n\t\tfs.updateForm(form);\n\t\tctx.json(form);\n\t}", "void submit(String accountName, String accountDescription, String currency);", "public boolean ApproveReimbursement(int employeeID, int reimburseID, String reason, int status);", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public String getCreativeApprovalStatus() {\r\n return creativeApprovalStatus;\r\n }", "protected void onSubmit() {\n\n Building b = new Building(c.BuildingTypeId, c.StyleId, c.CityId,\n c.Architectural_element_Id, c.Agesid, c.Latitude, c.Longtitude,\n c.buildingname, c.Address);\n BuildingCollection bc = new BuildingCollection();\n bc.AddBuilding(b);\n this.setResponsePage(new BuildingListWithPropertiesPage());\n\n }", "public void setApproved(boolean approved) {\n this.approved = approved;\n }", "@Override \n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tif (bearService.createBear(om.readValue(req.getReader(), Bear.class))) {\n\t\t\tresp.setStatus(200);\n\t\t} else {\n\t\t\tresp.setStatus(400);\n\t\t}\n\t}", "public boolean requiresPostApproval() {\n return true;\n }", "public Parade save(final Parade parade) {\n\t\tAssert.notNull(parade.getBrotherhood().getArea());\n\n\t\tAssert.notNull(parade);\n\n\t\tParade result = parade;\n\n\t\tBrotherhood brotherhood = null;\n\t\tChapter chapter = null;\n\n\t\tfinal Authority authorityBrotherhood = new Authority();\n\t\tauthorityBrotherhood.setAuthority(Authority.BROTHERHOOD);\n\t\tfinal Authority authorityChapter = new Authority();\n\t\tauthorityChapter.setAuthority(Authority.CHAPTER);\n\n\t\tif (LoginService.getPrincipal().getAuthorities().contains(authorityBrotherhood))\n\t\t\tbrotherhood = this.brotherhoodService.findByPrincipal();\n\t\telse if (LoginService.getPrincipal().getAuthorities().contains(authorityChapter)) {\n\t\t\tchapter = this.chapterService.findByPrincipal();\n\t\t\tfinal Chapter chapterCoordinatedParades = this.chapterService.findChapterByAreaId(parade.getBrotherhood().getArea().getId());\n\t\t\tAssert.isTrue(chapter.getId() == chapterCoordinatedParades.getId());\n\t\t}\n\t\tAssert.isTrue(brotherhood != null || chapter != null);\n\n\t\t/*\n\t\t * Aqu� pasamos el status a SUBMITTED si se le pusiera en el create o el edit\n\t\t * el FINAL MODE a TRUE\n\t\t */\n\t\tif (parade.getId() != 0) {\n\t\t\tfinal Parade paradeBBDD = this.findOne(parade.getId());\n\t\t\t//si estaba a true ya no se puede modificar\n\t\t\tif (!LoginService.getPrincipal().getAuthorities().contains(authorityChapter))\n\t\t\t\tAssert.isTrue(paradeBBDD.getFinalMode() == false);\n\n\t\t\t//si estaba a false el de BBDD y ahora se ha puesto a true\n\t\t\tif (parade.getStatus() == null && parade.getFinalMode() == true)\n\t\t\t\tparade.setStatus(\"SUBMITTED\");\n\n\t\t\tif (parade.getStatus() == \"REJECTED\")\n\t\t\t\tAssert.isTrue(parade.getRejectedComment() != null && parade.getRejectedComment() != \"\");\n\n\t\t} else if (parade.getId() == 0 && parade.getFinalMode() == true)\n\t\t\tparade.setStatus(\"SUBMITTED\");\n\t\tfinal Date currentMoment = new Date(System.currentTimeMillis() - 1000);\n\t\tAssert.isTrue(parade.getOrganisationMoment().after(currentMoment));\n\n\t\tresult = this.paradeRepository.save(parade);\n\n\t\treturn result;\n\n\t}", "public String getSubmitted() {\n return submitted;\n }", "public void viewApplicants() throws InterruptedException {\n\t\tdriver.findElement(By.xpath(dev_GSP_CLICKER)).click();\n\t\tdriver.findElement(By.xpath(dev_GSP_CONDITIONALLYAPPROVE)).click();\n\t\tThread.sleep(1000);\n\t\tWebElement promowz = driver.findElement(By.xpath(dev_GSP_CAPPROVEREASON));\n\t\tpromowz.sendKeys(\"c\");\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(dev_GSP_CAPPROVEBUTTON)).click();\n\t\tAssert.assertTrue(\"Successfully conditionally approved!\", elementUtil.isElementAvailabe(dev_GSP_CAPPROVESUCCESS));\n\t\tlogger.info(\"Passed conditionally approved\");\n\t\t\n\t}", "com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();", "pb4server.ArenaFightAskReq getArenaFightAskReq();", "public fbStatusPostingValidation() {\n\t\tsuper();\t\n\t}", "@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}", "private boolean checkCanModifyStatus() {\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n ResponderBean responderBean = new ResponderBean();\r\n try{\r\n requesterBean.setFunctionType('c');\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/rolMntServlet\";\r\n AppletServletCommunicator ascomm = new AppletServletCommunicator(connectTo,requesterBean);\r\n ascomm.setRequest(requesterBean);\r\n ascomm.send();\r\n responderBean = ascomm.getResponse(); \r\n \r\n }catch(Exception e) {\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n return (Boolean)responderBean.getDataObject();\r\n }", "@Override\n\tpublic boolean isApproved();", "public boolean isSetOrderSubmitStatus() {\n return this.orderSubmitStatus != null;\n }", "public CampaignEditPage isActive(boolean answer)\r\n\t{ \r\n\t\treadconfig();\r\n\t\t//no\r\n\t\tif(answer==false)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"camp_status_inactive\"))).click();\r\n\t\t}\t\r\n\t\t//yes\r\n\t\telse if(answer==true)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"camp_status_active\"))).click();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthrow new InvalidParameterException\r\n\t\t\t(\"answer \"+answer +\" is not supported, ref automation doc workflow page.\");\r\n\t\t}\r\n\t\tAssert.assertEquals(driver.getTitle(),library.getProperty(\"camp_edit_page_title\"));\r\n\t\treturn new CampaignEditPage(driver);\r\n\t}", "public String formAccepted()\r\n { \r\n return formError(\"202 Accepted\",\"Object checked in\");\r\n }", "public void setSubmitted(String submitted) {\n this.submitted = submitted;\n }", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}", "public boolean inProgress(){return (this.currentTicket != null);}", "public void agree(Object content){\n\n\t\tif( isParticipant() && (getState() == RequestProtocolState.WAITING_REQUEST)){\n\t\t\tsendMessage(content, Performative.AGREE, getInitiator());\n\t\t\tsetState(RequestProtocolState.SENDING_RESULT);\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.7\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.8\")); //$NON-NLS-1$\n\t\t}\n\t}", "public void autoApprove(int reimburseID, String autoReason, int status);", "private void submitReport() throws ERTRestApiException, JSONException {\n Cursor cursor = getReportStatusCursor(SyncStatus.REPORT_PENDING);\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID)\n );\n ExpenseReport expenseReport = Utility.createExpenseReportFromCursor(cursor);\n\n ERTRestApi.apiSubmitReport(expenseReport,\n new ERTRestApi\n .ERTRestApiListener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n Log.d(LOG_TAG, \"Report \" + reportBaseId + \" submitted\");\n updateReportSyncStatus(reportBaseId, SyncStatus.SYNCED);\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportEntry.COLUMN_STATUS, Status.SAVED.getValue());\n\n getContext().getContentResolver().update(\n ReportEntry.buildReportUriNoNetworkSync(reportBaseId),\n contentValues,\n null,\n null\n );\n updateReportSyncStatus(reportBaseId, SyncStatus.SYNCED);\n }\n }\n\n );\n\n updateReportSyncStatus(reportBaseId, SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}", "private void setBidded(){\n this.status = \"Bidded\";\n }", "public boolean approveAppointment() {\n\t\tIHealthCareDAO dao = new HealthCareDAO();\r\n\t\treturn dao.approveAppointment();\r\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "@Override\n\tpublic boolean changeStatus(Person p) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"update Booking b set b.bookingStatus='request' where b.person=\" + p.getEmployeeId());\n\t\tint i = query.executeUpdate();\n\t\tif(i==1)\n\t\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public ComplaintSubmitted() {\n initComponents();\n dtm = (DefaultTableModel) cTable.getModel();\n this.showContent(\"Waiting For Approval\");\n this.setLocationRelativeTo(null);\n }", "public Byte getApproveStatus() {\n return approveStatus;\n }", "public boolean isComplete()\n {\n return getStatus() == STATUS_COMPLETE;\n }", "boolean getAccepted();", "public void setComplete(boolean param){\n \n // setting primitive attribute tracker to true\n localCompleteTracker =\n true;\n \n this.localComplete=param;\n \n\n }", "protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n\n Conexion conex = new Conexion();\n Connection conn = conex.getConnection();\n\n int IdReserva = Integer.parseInt(req.getParameter(\"IdReserva\"));\n int Validacion = 0;\n try {\n String Update_Reserva = \"UPDATE reservas SET Estado = 2 , FechaaFin = NOW() WHERE IdReserva = \" + IdReserva;\n PreparedStatement ps1 = conn.prepareStatement(Update_Reserva);\n if (ps1.executeUpdate() == 1) {\n String Update_Receta = \"UPDATE recetas SET Estado = 1 WHERE IdReserva = \" + IdReserva;\n PreparedStatement ps2 = conn.prepareStatement(Update_Receta);\n Validacion = ps2.executeUpdate();\n }\n\n } catch (SQLException e) {\n System.out.println(\"e Finzalizar Sita = \" + e);\n }\n PrintWriter out = resp.getWriter();\n out.print(Validacion);\n out.close();\n }", "@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "private Boolean getStatusForPaid(final String status) {\n boolean flag = false;\n if (status.equalsIgnoreCase(PdfConstants.PAID)\n || status.equalsIgnoreCase(PdfConstants.RETURN_PENDING)\n || status.equalsIgnoreCase(PdfConstants.SCHEDULED_PENDING)\n || status.equalsIgnoreCase(PdfConstants.SCHEDULED_PROCESSING)\n || status.equalsIgnoreCase(PdfConstants.IN_PROCESS)\n || status.equalsIgnoreCase(PdfConstants.PENDING)) {\n flag = true;\n }\n return flag;\n }", "public boolean checkComplete(){\n return Status;\n }", "private void concede() {\n this.claimStatus = new ClaimOrConcession(); // conceded claim\n }", "public boolean isApproved() {\n\t\treturn isApproved;\n\t}", "public Boolean getStatus() {return status;}", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tMessageTemplate cfpTemplate = MessageTemplate.MatchPerformative(ACLMessage.CFP);\n\t\t\t\tMessageTemplate informTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\n\t\t\t\tMessageTemplate messageTemplate = MessageTemplate.or(cfpTemplate, informTemplate);\n\t\t\t\tACLMessage receivedMessage = myAgent.receive(messageTemplate);\n\t\t\t\t\n\t\t\t\tif (receivedMessage != null) {\n\t\t\t\t\thasReceivedMessage = true;\n\t\t\t\t\t\n\t\t\t\t\tif (receivedMessage.getPerformative() == ACLMessage.CFP) {\n\t\t\t\t\t\tdouble price = Double.parseDouble(receivedMessage.getContent());\n\t\t\t\t\t\tSystem.out.println(\"Buyer [\" + getAID().getLocalName() + \"] received \"\n\t\t\t\t\t\t\t\t+ \"CFP with price \" + Double.toString(price));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Value in range; send proposal\n\t\t\t\t\t\tif (price <= priceToBuy) {\n\t\t\t\t\t\t\tACLMessage proposal = new ACLMessage(ACLMessage.PROPOSE);\n\t\t\t\t\t\t\tproposal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\tproposal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(proposal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = sendProposal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Price too high; refuse and wait for new CFP\n\t\t\t\t\t\t\tACLMessage refusal = new ACLMessage(ACLMessage.REFUSE);\n\t\t\t\t\t\t\trefusal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\trefusal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(refusal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = highPrice;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (receivedMessage.getPerformative() == ACLMessage.INFORM) {\n\t\t\t\t\t\ttransitionStatus = noBuyers;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "pb4server.CheckAllianceCompetitionAskReq getCheckAllianceCompetitionAskReq();", "public void setActiveStatus(Boolean active){ this.status = active; }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }", "public abstract String enableSubmission(ISubmissionProject project);", "public Boolean getComplete(){\n return complete;\n }", "public boolean isComplete() { \n return isComplete; \n }", "protected void succeed()\r\n {\r\n // inform user\r\n ((OwMainAppContext) getContext()).postMessage(getContext().localize(\"plug.owdocprops.OwFieldView.saved\", \"The changes have been applied.\"));\r\n }", "public void setTermsApproved() {\n mTermsApproved = true;\n }", "Acquest getAcquest(int Acquest_id);", "public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}", "public void testSetSubmissionStatus() throws Exception {\r\n Date startTime = new Date();\r\n for (int i = 0; i < 100; ++i) {\r\n services.setSubmissionStatus(100 + i, 1, \"tc\");\r\n }\r\n\r\n Date endTime = new Date();\r\n\r\n System.out.println(\"Executing setSubmissionStatus for 100 times takes \"\r\n + (endTime.getTime() - startTime.getTime()) + \" milliseconds\");\r\n\r\n }", "@Override\n public void Submit() {\n }", "public Boolean isActive(){return status;}", "@Override\n\tpublic ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t\n\t\tUpdateJobForm updateJobForm = (UpdateJobForm) form;\n\t\tJobServiceImp jbs = (JobServiceImp) FactoryUtil.mapClassInstance.get(FactoryUtil.JOBSERVICEIMP);\n\t\tint jobId= updateJobForm.getId();\n\t\n\t\t\n\t\tHttpSession session = request.getSession();\n\t\tint uid= (int) session.getAttribute(\"uid\");\n\t\tboolean updated=jbs.updateChoosenParam(uid, jobId, updateJobForm.getJobTitle(), updateJobForm.getStartDate(), updateJobForm.getEndDate(),updateJobForm.getPayPerHour());\n\t\tif(updated)\n\t\treturn mapping.findForward(\"success\");\n\t\telse\n\t\t\treturn mapping.findForward(\"failure\");\t\n\t}", "private AppoinmentCompleteRequest appoinmentCompleteRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppoinmentCompleteRequest appoinmentCompleteRequest = new AppoinmentCompleteRequest();\n appoinmentCompleteRequest.set_id(appoinmentid);\n appoinmentCompleteRequest.setCompleted_at(currentDateandTime);\n appoinmentCompleteRequest.setAppoinment_status(\"Completed\");\n appoinmentCompleteRequest.setDiagnosis(DiagnosisType);\n appoinmentCompleteRequest.setSub_diagnosis(SubDiagnosisType);\n appoinmentCompleteRequest.setDoctor_comment(Doctor_Comments);\n Log.w(TAG,\"appoinmentCompleteRequest\"+ \"--->\" + new Gson().toJson(appoinmentCompleteRequest));\n return appoinmentCompleteRequest;\n }", "public void atualizarStatusAgendamento() {\n\n if (agendamentoLogic.editarStatusTbagendamento(tbagendamentoSelected, tbtipostatusagendamento)) {\n AbstractFacesContextUtils.addMessageInfo(\"Status atualizado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao alterar status do agendamento.\");\n }\n }", "public void setClaim(boolean a){\n isClaimed= a;\n \n}", "if (charge == adhocTicket.getCharge()) {\n System.out.println(\"Charge is passed\");\n }", "public void setClaim(boolean a,AbstAnt ant){\n isClaimed= a;\n claimer= ant;\n}", "public boolean isAccomplished() {\r\n return isAccomplished;\r\n }", "public synchronized void setComplete() {\n status = Status.COMPLETE;\n }", "public String submitClaims(String centreAccountGroup, boolean primary, boolean resubmission){\n\t\t\n\t\tSystem.out.println(\"Inside ClaimsSubmission submitClaims \");\n\t\texecuteStep.performAction(SeleniumActions.Click, \"\",\"ClaimsSubNewClaimsSubmissionLink\");\n\t\tverifications.verify(SeleniumVerifications.Appears, \"\",\"ClaimsSubNewBatchSubmissionPage\",false);\t\n\t\t\n\t\t\n\t\tif (primary){\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"PrimaryInsuranceCo\",\"ClaimsSubInsuranceCoName\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"PrimaryInsuranceCo\",\"ClaimsSubInsuranceCoName\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"PrimarySponsorName\",\"ClaimsSubTPAName\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"PrimarySponsorName\",\"ClaimsSubTPAName\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"InsurancePlanType\",\"ClaimsSubNetworkPlanType\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"InsurancePlanType\",\"ClaimsSubNetworkPlanType\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"InsurancePlanName\",\"ClaimsSubPlanName\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"InsurancePlanName\",\"ClaimsSubPlanName\",true);\n\t\t\t\n\t\t\tEnvironmentSetup.selectByPartMatchInDropDown = true;\n\t\t\texecuteStep.performAction(SeleniumActions.Select, centreAccountGroup,\"ClaimsSubCenter\"); //Changed by Abhishek\n\t\t\tverifications.verify(SeleniumVerifications.Selected, centreAccountGroup,\"ClaimsSubCenter\",true); //Changed by Abhishek\n\t\t\tEnvironmentSetup.selectByPartMatchInDropDown = false;\n\t\t\t\n\t\t\t//Added by Tejaswini\n\t\t\texecuteStep.performAction(SeleniumActions.Click, \"\",\"ClaimsSubmissionAllStatusChkBox\"); \n\t\t\tverifications.verify(SeleniumVerifications.Appears,\"\" ,\"ClaimsSubNewBatchSubmissionPage\",false); \n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Check, \"\",\"ClaimsSubmissionFinalizedStatusChkBox\"); \n\t\t\tverifications.verify(SeleniumVerifications.Appears,\"\" ,\"ClaimsSubNewBatchSubmissionPage\",false); \n\t\t\t\n\t\t\t//Added by Tejaswini\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"InsuranceValidityStartDate\",\"ClaimsSubRegistrationDateFrom\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"InsuranceValidityStartDate\",\"ClaimsSubRegistrationDateFrom\",true);\n\t\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"InsuranceValidityEndDate\",\"ClaimsSubRegistrationDateTo\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"InsuranceValidityEndDate\",\"ClaimsSubRegistrationDateTo\",true);\n\t\t\t\n\t\t\t//Added by Tejaswini\t\n\t\t\tDbFunctions dbFunctions = new DbFunctions();\n\t\t\tdbFunctions.storeDate(this.executeStep.getDataSet(), \"InsuranceValidityStartDate\",\"C\",0);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateStart\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateStart\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateEnd\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateEnd\",true);\n\n\t\t\t//Added by Tejaswini\n\t\t\t\n\t\t\t// Added by Alamelu to enable resubmission\n\t\t\tif (resubmission){\n\t\t\t\texecuteStep.performAction(SeleniumActions.Check, \"\",\"ClaimsSubmissionResubmissionCheckbox\"); \n\t\t\t\tverifications.verify(SeleniumVerifications.Appears,\"\" ,\"ClaimsSubNewBatchSubmissionPage\",false); \n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"SecondaryInsuranceCo\",\"ClaimsSubInsuranceCoName\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"SecondaryInsuranceCo\",\"ClaimsSubInsuranceCoName\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"SecondarySponsorName\",\"ClaimsSubTPAName\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"SecondarySponsorName\",\"ClaimsSubTPAName\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"SecondaryInsurancePlanType\",\"ClaimsSubNetworkPlanType\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"SecondaryInsurancePlanType\",\"ClaimsSubNetworkPlanType\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Select, \"SecondaryInsurancePlanName\",\"ClaimsSubPlanName\");\n\t\t\tverifications.verify(SeleniumVerifications.Selected, \"SecondaryInsurancePlanName\",\"ClaimsSubPlanName\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Select, centreAccountGroup,\"ClaimsSubCenter\"); //Changed by Abhishek\n\t\t\tverifications.verify(SeleniumVerifications.Selected, centreAccountGroup,\"ClaimsSubCenter\",true); //Changed by Abhishek\n\t\n\t\t\t//Added by Tejaswini\n\t\t\texecuteStep.performAction(SeleniumActions.Click, \"\",\"ClaimsSubmissionAllStatusChkBox\"); \n\t\t\tverifications.verify(SeleniumVerifications.Appears,\"\" ,\"ClaimsSubNewBatchSubmissionPage\",false); \n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Check, \"\",\"ClaimsSubmissionFinalizedStatusChkBox\"); \n\t\t\tverifications.verify(SeleniumVerifications.Appears,\"\" ,\"ClaimsSubNewBatchSubmissionPage\",false); \n\t\t\t\n\t\t\t//Added by Tejaswini\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"SecondaryInsuranceValidityStartDate\",\"ClaimsSubRegistrationDateFrom\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"SecondaryInsuranceValidityStartDate\",\"ClaimsSubRegistrationDateFrom\",true);\n\t\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"SecondaryInsuranceValidityEndDate\",\"ClaimsSubRegistrationDateTo\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"SecondaryInsuranceValidityEndDate\",\"ClaimsSubRegistrationDateTo\",true);\n\t\t\t\n\t\t\t//Added by Tejaswini\t\n\t\t\tDbFunctions dbFunctions = new DbFunctions();\n\t\t\tdbFunctions.storeDate(this.executeStep.getDataSet(), \"InsuranceValidityStartDate\",\"C\",0);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateStart\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateStart\",true);\n\t\t\t\n\t\t\texecuteStep.performAction(SeleniumActions.Enter, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateEnd\");\n\t\t\tverifications.verify(SeleniumVerifications.Entered, \"InsuranceValidityStartDate\",\"ClaimsSubmissionLastBillFinalizedDateEnd\",true);\n\n\t\t\t//Added by Tejaswini\n\t\t\t// Added by Alamelu to enable resubmission\n\t\t\tif (resubmission){\n\t\t\t\t\texecuteStep.performAction(SeleniumActions.Check, \"\",\"ClaimsSubmissionResubmissionCheckbox\"); \n\t\t\t\t\tverifications.verify(SeleniumVerifications.Appears,\"\" ,\"ClaimsSubNewBatchSubmissionPage\",false); \n\t\t\t}\n\t\t\n\t\t}\n\t\texecuteStep.performAction(SeleniumActions.Click, \"\",\"ClaimsSubSubmitBtn\");\n\t\tverifications.verify(SeleniumVerifications.Appears, \"\",\"ClaimsSubNewBatchSubmissionPage\",false);\t\t\n\t\t\n\t\tString claimsSubmissionSuccessMsg = this.executeStep.getDriver().findElement(By.xpath(\"//div[@id='msgDiv']/div[2]/div[2]\")).getText();\n\t\t\n\t\tSystem.out.println(\"Claims Submission Success Msg is :: \" + claimsSubmissionSuccessMsg);\n\t\tint indexOfISO = claimsSubmissionSuccessMsg.indexOf(\"IS\");\n\t\tSystem.out.println(\"Index of IS is :: \" + indexOfISO);\n\t\tString submissionBatchId =\"\";\n\t\ttry{\n\t\t\tif (indexOfISO != -1){\n\t\t\t\tsubmissionBatchId = claimsSubmissionSuccessMsg.substring(indexOfISO, indexOfISO+8);//the end of the index can be 8 as well. Check and change\n\t\t\t}\n\t\t\tSystem.out.println(\"Submission Batch ID is :: \" + submissionBatchId);\n\t\t\tif (submissionBatchId ==\"\" || submissionBatchId == null){\n\t\t\t\tsubmissionBatchId = \"CLAIMS SUBMISSION BATCH ID IS NULL\";\n\t\t\t}\n\t\t\t\n\t\t\tDbFunctions dbFunctions = new DbFunctions();\n\t\t\t\n\t\t\tdbFunctions.storeClaimsBatchSubmissionId(submissionBatchId, this.executeStep.getDataSet());\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(\"Claims Submission Done\");\n\t\treturn submissionBatchId;\n\t}", "public boolean conditionFulfilled();", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // processRequest(request, response);\n final OutPass p=new OutPass();\n p.setRollno(request.getParameter(\"rollno\"));\n p.setReason(request.getParameter(\"reason\"));\n p.setFrom(request.getParameter(\"from\"));\n p.setTill(request.getParameter(\"till\"));\n p.setStatus(request.getParameter(\"status\")); \n boolean res=p.insert();\n //System.err.println(p.getStatus().equals(\"Accepted\"));\n \n // System.err.println(res);\n if(p.getStatus().equals(\"Accepted\")&&res){\n final General.OutPass op = new General.OutPass(p.getRollno());\n new Thread(new Runnable(){\n \n @Override\n public void run(){\n if(op.insert(p.getRequestid())){\n if(Student.getById(p.getRollno()).getAccomodation().equalsIgnoreCase(\"hostel\"))\n SMSTemplate.send(Parent.getNumber(p.getRollno()),p.getSMSContent());\n }\n }\n }).start();\n }\n \n if(res)\n response.sendRedirect(\"hostel/requests.jsp?msg=done\");\n }", "public void verifyToDoCompleteBackend(String engagementField, String engagementValue, String todoName, String status) {\n try {\n getLogger().info(\"Verify To-Do complete status on database.\");\n JSONObject jsonObject = MongoDBService.getToDoObject(getEngagementCollection(), engagementField, engagementValue, todoName);\n //TODO get from properties file\n if (jsonObject.get(\"completed\").toString().equals(status)) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (Exception ex) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n ex.printStackTrace();\n }\n }", "public boolean isSuccessful()\n\t{\n\t\tif (response.get(\"Result\").equals(\"APPROVED\") && !response.get(\"MESSAGE\").equals(\"DUPLICATE\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic void submitForm(Context ctx) {\n\t\tUser loggedUser = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (loggedUser == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!loggedUser.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\tForm form = ctx.bodyAsClass(Form.class);\n\t\tlog.debug(form);\n\t\tform = fs.submitForm(form);\n\t\tloggedUser.getForms().add(form);\n\t\tlog.debug(\"LoggedUser's Form: \" + loggedUser.getForms());\n\t\t// If loggedUser is a DepartmentHead, form goes straight to BenCo\n\t\tif(loggedUser.getType().equals(UserType.DEPARTMENT_HEAD)) {\n\t\t\tlog.debug(\"LoggedUser is a Department Head\");\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t\tus.submitForm(loggedUser);\n\t\t\tctx.json(form);\n\t\t\treturn;\n\t\t}\n\t\t// If FormSubmitter's supervisor is a DepartmentHead, supervisor approval is automatically true\n\t\telse if(loggedUser.getDepartmentHead().equals(loggedUser.getSupervisor())) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t}\n\t\tUser supervisor = us.getUserByName(loggedUser.getSupervisor());\n\t\tsupervisor.getAwaitingApproval().add(form);\n\t\tus.updateUser(supervisor);\n\t\tlog.debug(loggedUser);\n\t\tus.submitForm(loggedUser);\n\t\tctx.json(form);\n\t}", "pb4server.CureSoliderAskReq getCureSoliderAskReq();", "JobResponse.Update update();" ]
[ "0.61942035", "0.61419153", "0.55708575", "0.5558776", "0.5555254", "0.5546517", "0.5506906", "0.5503816", "0.5503816", "0.5502222", "0.5499539", "0.54789686", "0.54789686", "0.54657", "0.54563475", "0.5452586", "0.5450367", "0.54483426", "0.5444295", "0.54351294", "0.5419886", "0.5414457", "0.53726995", "0.53565335", "0.5352731", "0.53361285", "0.53216517", "0.5308473", "0.53058237", "0.53057843", "0.5303727", "0.52933496", "0.5289503", "0.5286136", "0.52805245", "0.5269409", "0.5265407", "0.5263151", "0.52598023", "0.52445745", "0.523594", "0.5234973", "0.52282727", "0.5222767", "0.5222143", "0.519817", "0.5191736", "0.5186439", "0.51767886", "0.5175529", "0.51700515", "0.5163453", "0.51620156", "0.5158615", "0.5156862", "0.5154017", "0.5152289", "0.5142932", "0.51410836", "0.5140676", "0.5139938", "0.51379585", "0.51373714", "0.5135371", "0.51259667", "0.512255", "0.51222235", "0.5121958", "0.51187235", "0.5115597", "0.5101256", "0.5098748", "0.509727", "0.50879", "0.5071824", "0.5060782", "0.5051712", "0.5051464", "0.5044268", "0.5042184", "0.50369865", "0.50335526", "0.5029218", "0.50274926", "0.50225854", "0.5021236", "0.5011928", "0.50057703", "0.5003383", "0.49980584", "0.49936715", "0.49876162", "0.498676", "0.4985304", "0.4983531", "0.49815005", "0.49803028", "0.49726006", "0.49690378", "0.49665138", "0.4962971" ]
0.0
-1
Req 8.1.5 AcmeParade status = 'accepted'
public Double findRatioAcceptedParadesFinalMode() { Double result; result = this.paradeRepository.findRatioAcceptedParadesFinalMode(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "boolean getAccepted();", "@Test\n public void creditApproved() throws Exception {\n Application app = new Application();\n app.setName(\"phil garfield\");\n app.setCreditScore(600);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertTrue(result.isApproved());\n }", "boolean isAccepting();", "public boolean getAccepted()\n {\n return accepted;\n }", "public boolean getAccepted() {\n return accepted_;\n }", "public boolean getAccepted() {\n return accepted_;\n }", "public void agree(Object content){\n\n\t\tif( isParticipant() && (getState() == RequestProtocolState.WAITING_REQUEST)){\n\t\t\tsendMessage(content, Performative.AGREE, getInitiator());\n\t\t\tsetState(RequestProtocolState.SENDING_RESULT);\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.7\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.8\")); //$NON-NLS-1$\n\t\t}\n\t}", "public boolean accepted() {\r\n\r\n return m_bAccepted;\r\n\r\n }", "com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();", "public void onEulaAction(boolean isAccepted);", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "@Override\n public void isContractAccepted(Messages.ContractProposalResponse msg) {\n if (msg.isAccepted) {\n createNewContractAgent(msg);\n runningContracts.add(msg.contId);\n }\n }", "public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tMessageTemplate cfpTemplate = MessageTemplate.MatchPerformative(ACLMessage.CFP);\n\t\t\t\tMessageTemplate informTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\n\t\t\t\tMessageTemplate messageTemplate = MessageTemplate.or(cfpTemplate, informTemplate);\n\t\t\t\tACLMessage receivedMessage = myAgent.receive(messageTemplate);\n\t\t\t\t\n\t\t\t\tif (receivedMessage != null) {\n\t\t\t\t\thasReceivedMessage = true;\n\t\t\t\t\t\n\t\t\t\t\tif (receivedMessage.getPerformative() == ACLMessage.CFP) {\n\t\t\t\t\t\tdouble price = Double.parseDouble(receivedMessage.getContent());\n\t\t\t\t\t\tSystem.out.println(\"Buyer [\" + getAID().getLocalName() + \"] received \"\n\t\t\t\t\t\t\t\t+ \"CFP with price \" + Double.toString(price));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Value in range; send proposal\n\t\t\t\t\t\tif (price <= priceToBuy) {\n\t\t\t\t\t\t\tACLMessage proposal = new ACLMessage(ACLMessage.PROPOSE);\n\t\t\t\t\t\t\tproposal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\tproposal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(proposal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = sendProposal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Price too high; refuse and wait for new CFP\n\t\t\t\t\t\t\tACLMessage refusal = new ACLMessage(ACLMessage.REFUSE);\n\t\t\t\t\t\t\trefusal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\trefusal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(refusal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = highPrice;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (receivedMessage.getPerformative() == ACLMessage.INFORM) {\n\t\t\t\t\t\ttransitionStatus = noBuyers;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}", "boolean createAcquest(Acquest acquest);", "protected ACLMessage handleAcceptProposal(ACLMessage cfp, ACLMessage propose,ACLMessage accept) throws FailureException \r\n\t{\r\n\t\tACLMessage inform = accept.createReply();\r\n\t\tinform.setPerformative(ACLMessage.INFORM);\r\n\t\t//TODO: devrementer le nb de trajets disponibles suite a la vente\r\n\t\treturn inform;\r\n\t}", "@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "pb4server.ArenaFightAskReq getArenaFightAskReq();", "@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n app.setName(\"bill whatwhatwhat\");\n app.setCreditScore(400);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertFalse(result.isApproved());\n }", "boolean canAcceptTrade();", "public boolean isAccepting() {\n\t\treturn isAccepting;\n\t}", "void acceptTrade(boolean accept);", "public String formAccepted()\r\n { \r\n return formError(\"202 Accepted\",\"Object checked in\");\r\n }", "@Ignore\n\t@Test\n\tpublic void testAgentAccepts() {\n\t\tparty.connect(connection);\n\t\tparty.notifyChange(settings);\n\n\t\tBid bid = makeBid(\"1\", \"1\");// best pssible\n\t\tparty.notifyChange(new ActionDone(new Offer(otherparty, bid)));\n\t\tparty.notifyChange(new YourTurn());\n\t\tassertEquals(1, connection.getActions().size());\n\t\tassertTrue(connection.getActions().get(0) instanceof Accept);\n\n\t}", "@Override\r\n\tpublic void action() {\n\t\tMessageTemplate mt=MessageTemplate.or(MessageTemplate.MatchContent(\"comida\"), MessageTemplate.MatchContent(\"bebida\"));\r\n ACLMessage msg = myAgent.receive(mt);\r\n if(msg!=null){\r\n \tif(msg.getContent().compareTo(\"comida\")==0){\r\n \t\tif(Comida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo hambre todavia\"); \r\n myAgent.send(reply);\r\n Comida=Comida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n \telse if(msg.getContent().compareTo(\"bebida\")==0){\r\n \t\tif(Bebida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo sed todavia\"); \r\n myAgent.send(reply);\r\n Bebida=Bebida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n }\r\n if (Comida==0 && Bebida==0){\r\n \tmyAgent.doDelete();\r\n }\r\n\t}", "public boolean isApproved();", "public boolean isApproved();", "public boolean isAccept(){\n return isAccept; \n }", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "public String getIsPoaAccepted() {\n\t\treturn isPoaAccepted;\n\t}", "static void confirm_A(Messenger messenger, Response_e response)\n {\n sendToClient(messenger, Request_e.Request_A_en.valueOf(), response, null);\n }", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "public void viewApplicants() throws InterruptedException {\n\t\tdriver.findElement(By.xpath(dev_GSP_CLICKER)).click();\n\t\tdriver.findElement(By.xpath(dev_GSP_CONDITIONALLYAPPROVE)).click();\n\t\tThread.sleep(1000);\n\t\tWebElement promowz = driver.findElement(By.xpath(dev_GSP_CAPPROVEREASON));\n\t\tpromowz.sendKeys(\"c\");\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(dev_GSP_CAPPROVEBUTTON)).click();\n\t\tAssert.assertTrue(\"Successfully conditionally approved!\", elementUtil.isElementAvailabe(dev_GSP_CAPPROVESUCCESS));\n\t\tlogger.info(\"Passed conditionally approved\");\n\t\t\n\t}", "public void contractNet(ACLMessage msg) {\n\t\taddBehaviour(new ContractNetInitiator(this, msg) {\n\n\t\t\tprotected void handlePropose(ACLMessage propose, Vector v) {\n\t\t\t\tSystem.out.println(\"Agent \" + propose.getSender().getLocalName() + \" proposed \" + propose.getContent());\n\t\t\t}\n\n\t\t\tprotected void handleRefuse(ACLMessage refuse) {\n\t\t\t\tSystem.out.println(\"Agent \" + refuse.getSender().getLocalName() + \" refused\");\n\t\t\t}\n\n\t\t\tprotected void handleFailure(ACLMessage failure) {\n\t\t\t\tif (failure.getSender().equals(myAgent.getAMS())) {\n\t\t\t\t\t// FAILURE notification from the JADE runtime: the receiver\n\t\t\t\t\t// does not exist\n\t\t\t\t\tSystem.out.println(\"Responder does not exist\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Agent \" + failure.getSender().getLocalName() + \" failed\");\n\t\t\t\t}\n\t\t\t\t// Immediate failure --> we will not receive a response from this agent\n\t\t\t\tnResponders--;\n\t\t\t}\n\n\t\t\tprotected void handleAllResponses(Vector responses, Vector acceptances) {\n\t\t\t\tif (responses.size() < nResponders) {\n\t\t\t\t\t// Some responder didn't reply within the specified timeout\n\t\t\t\t\tSystem.out.println(\"Timeout expired: missing \" + (nResponders - responses.size()) + \" responses\");\n\t\t\t\t}\n\n\t\t\t\t// Evaluate proposals.\n\t\t\t\t// Consider that the offer is an int ratio of an importance combination\n\t\t\t\t// of time, money, distance or whatever.\n\t\t\t\tint bestProposal = -1;\n\t\t\t\tAID bestProposer = null;\n\t\t\t\tACLMessage accept = null;\n\t\t\t\tEnumeration e = responses.elements();\n\t\t\t\twhile (e.hasMoreElements()) {\n\t\t\t\t\tACLMessage msg = (ACLMessage) e.nextElement();\n\t\t\t\t\tif (msg.getPerformative() == ACLMessage.PROPOSE) {\n\t\t\t\t\t\tACLMessage reply = msg.createReply();\n\t\t\t\t\t\treply.setPerformative(ACLMessage.REJECT_PROPOSAL);\n\t\t\t\t\t\tacceptances.addElement(reply);\n\t\t\t\t\t\tint proposal = Integer.parseInt(msg.getContent());\n\t\t\t\t\t\tSystem.out.println(\"THE PROPOSAL IS \" + proposal);\n\t\t\t\t\t\tif (proposal > bestProposal) {\n\t\t\t\t\t\t\tbestProposal = proposal;\n\t\t\t\t\t\t\tbestProposer = msg.getSender();\n\t\t\t\t\t\t\taccept = reply;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Accept the proposal of the best proposer\n\t\t\t\tif (accept != null) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"Accepting proposal \" + bestProposal + \" from responder \" + bestProposer.getLocalName());\n\t\t\t\t\taccept.setPerformative(ACLMessage.ACCEPT_PROPOSAL);\n\t\t\t\t\tassignment();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void assignment() {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\tprotected void handleInform(ACLMessage inform) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Agent \" + inform.getSender().getLocalName() + \" successfully performed the requested action\");\n\t\t\t}\n\t\t});\n\t}", "private void getAllowance(APDU apdu) {\n\t\tif(! PIN.isValidated()){\n\t\t\tISOException.throwIt(SW_VERIFICATION_REQUIRED);\n\t\t}\n\t\t\n\t\tbyte[] buf = apdu.getBuffer();\n\t\t\n\t\t// Signalize sending modus to JCRE and\n\t\t// set length of expected answer\n\t\tshort lengthExpected = apdu.setOutgoing();\n\t\tif(lengthExpected != 1){\n\t\t\tISOException.throwIt(SW_WRONG_LENGTH);\n\t\t}\n\t\t\n\t\t// Inform CAD about length of returned bytes\n\t\tapdu.setOutgoingLength((byte)1);\n\t\tbuf[0] = allowance;\n\t\t\n\t\t// Send allowance information\n\t\tapdu.sendBytes((short)0, (short)1);\n\t}", "pb4server.CheckAllianceCompetitionAskReq getCheckAllianceCompetitionAskReq();", "protected void setProved() {\n\t\tproveState = PROVED;\n\t}", "public void cadenaEsAceptada() {\n\t\tfor (int i = 0; i < conjuntoF.size(); i++) {\n\t\t\tif (estadoActual.equals(conjuntoF.get(i))) {\n\t\t\t\tSystem.out.println(\"Cadena aceptada!\");\n\t\t\t\tbreak;\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"Cadena no aceptada\");\n\t\t}\n\t}", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "@Override \n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tif (bearService.createBear(om.readValue(req.getReader(), Bear.class))) {\n\t\t\tresp.setStatus(200);\n\t\t} else {\n\t\t\tresp.setStatus(400);\n\t\t}\n\t}", "public void confirmFlight();", "protected ACLMessage handleCfp(ACLMessage cfp) {\r\n\t\t\tACLMessage reply = cfp.createReply();\r\n\t\t\tRequiredSpecs specs = new RequiredSpecs(cfp.getContent());\t\t\r\n\t\t\tboolean accept = canAccept(specs);\r\n\t\t\tif(accept) {\r\n\t\t\t\treply.setPerformative(ACLMessage.PROPOSE);\r\n\t\t\t\treply.setContent(createResponse(specs));\r\n\t\t\t} else {\r\n\t\t\t\treply.setPerformative(ACLMessage.REFUSE);\r\n\t\t\t}\r\n\t\t\treturn reply;\r\n\t\t}", "void acceptRequest(Friend pendingRequest);", "@Override\n\tpublic boolean isApproved();", "public FipaRequestProtocol(ACLAgent agent){\n\t\tsuper(agent);\n\t\tsetMaximumParticipants((short) 2);\n\t}", "public String getCreativeApprovalStatus() {\r\n return creativeApprovalStatus;\r\n }", "public Builder setAccepted(boolean value) {\n \n accepted_ = value;\n onChanged();\n return this;\n }", "protected ACLMessage handleAcceptProposal(ACLMessage cfp, ACLMessage propose, ACLMessage accept) {\r\n\t\t\tSystem.out.println(myAgent.getLocalName() + \" was accepted by \" + accept.getSender().getName());\r\n\t\t\t\r\n\t\t\t//Allocates space in superPC or queue for client\r\n\t\t\tRequiredSpecs specs = new RequiredSpecs(cfp.getContent());\r\n\t\t\tString resultMsg = allocateClient(specs, cfp.getSender().getName());\r\n\t\t\t\r\n\t\t\t// Creates reply to inform the client\r\n\t\t\tACLMessage result = accept.createReply();\r\n\t\t\tresult.setPerformative(ACLMessage.INFORM);\r\n\t\t\tresult.setContent(resultMsg);\r\n\t\t\t\r\n\t\t\treturn result;\r\n\t\t}", "@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}", "public boolean ApproveReimbursement(int employeeID, int reimburseID, String reason, int status);", "boolean withAdvanceInCampaign();", "pb4server.CureSoliderAskReq getCureSoliderAskReq();", "private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }", "private void concede() {\n this.claimStatus = new ClaimOrConcession(); // conceded claim\n }", "@SystemAPI\n\tboolean needsApproval();", "@PostMapping(\"/card/activate/{num}/{code}\")\n StarbucksCard activate(@PathVariable String num, @PathVariable String code, HttpServletResponse response) {\n StarbucksCard card = repository.findByCardNumber(num);\n System.out.println(num);\n System.out.println(card);\n\n if (card == null) {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"Error--Card not found\");\n }\n if (card.getCardCode().equals(code)) {\n card.setActivated(true);\n repository.save(card);\n } else {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"Error--Card not valid\");\n }\n return card;\n }", "private boolean checkCanModifyStatus() {\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n ResponderBean responderBean = new ResponderBean();\r\n try{\r\n requesterBean.setFunctionType('c');\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/rolMntServlet\";\r\n AppletServletCommunicator ascomm = new AppletServletCommunicator(connectTo,requesterBean);\r\n ascomm.setRequest(requesterBean);\r\n ascomm.send();\r\n responderBean = ascomm.getResponse(); \r\n \r\n }catch(Exception e) {\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n return (Boolean)responderBean.getDataObject();\r\n }", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);", "@Test\n\tpublic void madeOfferHasPendingStatus() {\n\t}", "Acquest getAcquest(int Acquest_id);", "protected void handleRequest(dk.i1.diameter.Message request, ConnectionKey connkey, Peer peer) {\n\n String log = \"\";\n Message answer = new Message();\n answer.prepareResponse(request);\n AVP avp;\n avp = request.find(ProtocolConstants.DI_SESSION_ID);\n if (avp != null)\n answer.add(avp);\n node().addOurHostAndRealm(answer);\n //avp = request.find(ProtocolConstants.DI_CC_REQUEST_TYPE); DIAMETER_COMMAND_AA\n avp = request.find(ProtocolConstants.DI_AUTH_REQUEST_TYPE);\n if (avp == null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_MISSING_AVP,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{new AVP(ProtocolConstants.DI_AUTH_REQUEST_TYPE, new byte[]{})})});\n return;\n }\n\n\n int aa_request_type = -1;\n try {\n aa_request_type = new AVP_Unsigned32(avp).queryValue();\n } catch (InvalidAVPLengthException ex) {\n }\n if (aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE &&\n aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE_ONLY &&\n aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHORIZE_ONLY) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n\n\n\n avp = request.find(ProtocolConstants.DI_AUTH_APPLICATION_ID);\n if (avp != null)\n answer.add(avp);\n avp = request.find(ProtocolConstants.DI_AUTH_REQUEST_TYPE);\n if (avp != null)\n answer.add(avp);\n\n\n switch (aa_request_type) {\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE_ONLY:\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE:\n //grant whatever is requested\n avp = request.find(ProtocolConstants.DI_USER_NAME);\n answer.add(avp);\n String userName = new AVP_UTF8String(avp).queryValue();\n avp = request.find(ProtocolConstants.DI_USER_PASSWORD);\n String userPassword = new AVP_UTF8String(avp).queryValue();\n\n\n synchronized (PrintedStrings.stringsToPrint) {\n System.out.println(log = \"UserName: \" + userName);\n PrintedStrings.stringsToPrint.add(log);\n System.out.println(log = \"password: \" + userPassword);\n PrintedStrings.stringsToPrint.add(log);\n\n //TODO Sprawdzic to jesli nie ma z w slowniku\n String pass = userToPasswordDict.get(userName);\n if (pass == null) {\n System.out.println(log=\"nie ma takiego uzytkownika\");\n\n PrintedStrings.stringsToPrint.add(log);\n }\n if (userPassword.equals(pass)) {\n\n avp = request.find(ProtocolConstants.DI_CHAP_AUTH);\n if (avp != null) {\n try {\n AVP_Grouped chapAuth = new AVP_Grouped(avp);\n AVP[] elements = chapAuth.queryAVPs();\n byte[] idBytes = new AVP_OctetString(elements[1]).queryValue();\n char id = (char) idBytes[0];\n System.out.println(log = \"id: \" + id);\n PrintedStrings.stringsToPrint.add(log);\n\n byte[] chapResponseBytes = new AVP_OctetString(elements[2]).queryValue();\n printBytesAsString(chapResponseBytes, \"odebrane rozwiazanie \");\n log = getBytesAsString(chapResponseBytes, \"odebrane rozwiazanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n byte[] chapChallengeBytes = new AVP_OctetString(elements[3]).queryValue();\n printBytesAsString(chapChallengeBytes, \"odebrane zadanie \");\n log = getBytesAsString(chapResponseBytes, \"odebrane zadanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n //sprawdzenie czy nie ma ataku przez odtwarzanie\n ServicingUserEntry sessionEntry = curentlyServicing.get(userName);\n if (sessionEntry == null) {\n System.out.println(log = \"Atak/ pakiet dotarl po upłynieciu czasu oczekiwania/ pakiet został powtórzony\");\n //w takiej sytuacji nie odpowiadamy wcale\n PrintedStrings.stringsToPrint.add(log);\n return;\n }\n Date now = new Date();\n if (id != sessionEntry.getId() ||\n !Arrays.equals(chapChallengeBytes, sessionEntry.getChallenge()) ||\n (now.getTime() - sessionEntry.getTime().getTime()) > 5000) {\n\n System.out.println(log = \"Atak/ pakiet dotarl po upłynieciu czasu oczekiwania/ przekłamanie pakietu\");\n //w takiej sytuacji nie odpowiadamy wcale\n PrintedStrings.stringsToPrint.add(log);\n return;\n }\n curentlyServicing.remove(userName);\n byte[] md5 = caluculateMD5(idBytes, userToSecretDict.get(userName).getBytes(\"ASCII\"), chapChallengeBytes);\n printBytesAsString(chapResponseBytes, \"obliczone rozwiazanie \");\n log = getBytesAsString(chapResponseBytes, \"obliczone rozwiazanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n if (Arrays.equals(chapResponseBytes, md5)) {\n\n answer.add(new AVP_OctetString(ProtocolConstants.DI_FRAMED_IP_ADDRESS, clusterAddress.getBytes()));\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_SUCCESS));\n System.out.println(log = \"Uwierzytelnionio, pozwalam na dołaczenie do klastra\");\n PrintedStrings.stringsToPrint.add(log);\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_AUTHENTICATION_REJECTED));\n System.out.println(log = \"Błędnie rozwiązane zadanie\");\n PrintedStrings.stringsToPrint.add(log);\n }\n } catch (InvalidAVPLengthException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_MULTI_ROUND_AUTH));\n //zwiekszamy ostatnio uzywany index o 1 i korzystamy z niego\n incrementIndex();\n byte[] ind = new byte[]{(byte) lastId};\n byte[] challenge = generateChallenge();\n printBytesAsString(challenge, \"wygenerowane zadanie \");\n log = getBytesAsString(challenge, \"wygenerowane zadanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n\n curentlyServicing.put(userName, new ServicingUserEntry(userName, challenge, lastId));\n //System.out.println(\"generated chalenge : \" + challenge.toString());\n answer.add(new AVP_Grouped(ProtocolConstants.DI_CHAP_AUTH,\n new AVP_Integer32(ProtocolConstants.DI_CHAP_ALGORITHM, 5),\n new AVP_OctetString(ProtocolConstants.DI_CHAP_IDENT, ind),\n new AVP_OctetString(ProtocolConstants.DI_CHAP_CHALLENGE, challenge)));\n\n\n if(lastId==34)\n serverGUIController.firstInClaster = true; //TODO obsluz wszsytkich\n if(lastId==35)\n serverGUIController.secondInClaster = true;\n if(lastId==36)\n serverGUIController.thirdInClaster = true;\n if(lastId==37)\n serverGUIController.fourthInClaster = true;\n }\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_AUTHENTICATION_REJECTED));\n log=\"podane hasło jest niepoprawne\";\n PrintedStrings.stringsToPrint.add(log);\n }\n }\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHORIZE_ONLY:\n break;\n }\n\n Utils.setMandatory_RFC3588(answer);\n\n try {\n answer(answer, connkey);\n } catch (dk.i1.diameter.node.NotAnAnswerException ex) {\n }\n\n switch (lastId) {\n case 34: {\n serverGUIController.firstConnected = true;\n serverGUIController.firstTextClear = true;\n break;\n }\n case 35:{\n serverGUIController.secondConnected = true;\n serverGUIController.secondTextClear = true;\n break;\n }\n case 36:{\n serverGUIController.thirdConnected = true;\n serverGUIController.thirdTextClear = true;\n break;\n }\n case 37:{\n serverGUIController.fourthCOnnected = true;\n serverGUIController.fourthTextClear = true;\n break;\n }\n\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 27) {\n // Make sure the request was successful\n // Log.e(\"add rofo\",\" ad\"+adRofo);\n if (resultCode == RESULT_OK) {\n // Log.e(\"add rofo\",\" ad\"+adRofo);\n adRofo = true;\n }\n }else{\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "boolean approveDeny(String choice, int id, int resolverId);", "public boolean isApproved() {\n return approved;\n }", "public void setIsPoaAccepted(String isPoaAccepted) {\n\t\tthis.isPoaAccepted = isPoaAccepted;\n\t}", "public void approveQuestion(Question question) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n question.setApproved(true);\n dbb.overwriteQuestion(question);\n dbb.commit();\n dbb.closeConnection();\n }", "if (charge == adhocTicket.getCharge()) {\n System.out.println(\"Charge is passed\");\n }", "public boolean acceptedTradeOffer()\n\t{\n\t\treturn m_isReadyToTrade;\n\t}", "@Override\n\t\t\t\tpublic void action() {\n\t\t\t\t\t\tRandom r = new Random();\n\t\t\t\t\t\tint Low = 1;\n\t\t\t\t\t\tint High = 999;\n\t\t\t\t\t\tint Result = r.nextInt(High-Low) + Low;\n\t\t\t\t\t\tACLMessage msg = new ACLMessage(ACLMessage.REQUEST);\n\t\t\t\t\t\tmsg.setOntology(\"AirConditioner\");\n\t\t\t\t\t\tmsg.addReceiver(new AID(\"da\", AID.ISLOCALNAME));\n//\t\t\t\t\t\tif (Result % 2 == 0){\n//\t\t\t\t\t\t\t//humid mode\n//\t\t\t\t\t\t\tmsg.setContent(\"humid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: humid\" );\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if((Result % 3 == 0)) {\n//\t\t\t\t\t\t\t//mid\n//\t\t\t\t\t\t\tmsg.setContent(\"mid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: mid\" );\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if((Result % 5 == 0)) {\n//\t\t\t\t\t\t\t//high\n//\t\t\t\t\t\t\tmsg.setContent(\"mid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: high\" );\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\t//low\n//\t\t\t\t\t\t\tmsg.setContent(\"mid\");\n//\t\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: low\" );\n//\t\t\t\t\t\t}\n\t\t\t\t\t\tmsg.setContent(Airconditioner_Agent.mode);\n\t\t\t\t\t\tSystem.out.println(\"Agent \"+ myAgent.getLocalName() + \": operating mode: \"+Airconditioner_Agent.mode );\n\t\t\t\t\t\tmyAgent.send(msg);\n\t\t\t\t\t}", "boolean isConfirmed();", "private void contractNetRespond() {\n\t\t\n\t\tMessageTemplate template = MessageTemplate.and(\n\t\t\t\tMessageTemplate.MatchProtocol(FIPANames.InteractionProtocol.FIPA_CONTRACT_NET),\n\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.CFP));\n\n\t\taddBehaviour(new ParkingLotBehavior(this, template));\n\t}", "private TransferPointRequest processTransferApproval(TransferPointRequest transferPointRequest) throws InspireNetzException {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n //if a new request , send approval request and save request\n if(transferPointRequest.getPtrId() == null || transferPointRequest.getPtrId() == 0){\n\n // Log the information\n log.info(\"transferPoints -> New request for point transfer received(Approval needed)\");\n\n //add a new transfer point request\n transferPointRequest = addTransferPointRequest(transferPointRequest);\n\n log.info(\"transferPoints: Sending approval request to approver\");\n\n //send approval request to approver\n partyApprovalService.sendApproval(requestor,approver,transferPointRequest.getPtrId(),PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST,transferPointRequest.getToLoyaltyId(),transferPointRequest.getRewardQty()+\"\");\n\n //set transfer allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n } else {\n\n //CHECK whether approver has accepted the request\n boolean isTransferAllowed = isPartyApprovedTransfer(transferPointRequest);\n\n if(isTransferAllowed){\n\n log.info(\"transferPoints : Transfer is approved by the linked account\");\n\n //set redemption allowed to true\n transferPointRequest.setTransferAllowed(true);\n\n } else {\n\n log.info(\"transferPoints : Transfer request rejected by linked account\");\n\n //set redemption allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n\n }\n }\n\n return transferPointRequest;\n }", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "public void autoApprove(int reimburseID, String autoReason, int status);", "@FXML\n\tvoid approveActionButton(ActionEvent event) {\n\t\t// change the duration\n\t\tboolean res = false;\n\t\tMessage messageToServer = new Message();\n\t\tmessageToServer.setMsg(req.getEcode() + \" \" + req.getNewDur());\n\t\tmessageToServer.setOperation(\"updateExamDurationTime\");\n\t\tmessageToServer.setControllerName(\"ExamController\");\n\t\tres = (boolean) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\tif (!res) {\n\t\t\tUsefulMethods.instance().display(\"error in approval duration!\");\n\t\t} else\n\t\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}", "@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String idAcc = request.getParameter(\"idAcc\");\r\n String dateAcc = request.getParameter(\"dateAcc\");\r\n String timeAcc = request.getParameter(\"timeAcc\");\r\n String locationAcc = request.getParameter(\"locationAcc\");\r\n String departmentAcc = request.getParameter(\"departmentAcc\");\r\n String picAcc = request.getParameter(\"picAcc\");\r\n String participantAcc = request.getParameter(\"participantAcc\");\r\n String clientAcc = request.getParameter(\"clientAcc\");\r\n String accept = request.getParameter(\"accept\");\r\n\r\n if (\"true\".equals(accept)) {\r\n status = iic.save(idAcc, dateAcc, timeAcc, locationAcc, departmentAcc, picAcc, \"1\", participantAcc, clientAcc);\r\n } else {\r\n status = iic.save(idAcc, dateAcc, timeAcc, locationAcc, departmentAcc, picAcc, \"0\", participantAcc, clientAcc);\r\n }\r\n request.getSession().setAttribute(\"status\", status);\r\n\r\n processRequest(request, response);\r\n }", "public Byte getApproveStatus() {\n return approveStatus;\n }", "public RestResponseAsserter accepted() {\n assertThat(response.isSuccessful()).isTrue();\n return this;\n }", "public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public boolean isDeclined()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"DECLINED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }", "boolean hasPassCardsResponse();", "private void validateTransactionCode(ATMSparrowMessage atmSparrowMessage, BankFusionEnvironment env) {\n boolean result = isTransactionSupported(atmSparrowMessage.getMessageType() + atmSparrowMessage.getTransactionType(), env);\n if (result) {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.AUTHORIZED_MESSAGE_FLAG);\n // String ubTransCode =\n // atmHelper.getBankTransactionCode(atmSparrowMessage.getMessageType()\n // + atmSparrowMessage.getTransactionType(), env);\n // //UBTransaction type mapped or not?\n // try {\n // IBOMisTransactionCodes misTransactionCodes =\n // (IBOMisTransactionCodes)env.getFactory().findByPrimaryKey(IBOMisTransactionCodes.BONAME,\n // ubTransCode);\n // } catch (FinderException bfe) {\n // Object[] field = new Object[] { ubTransCode };\n // atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n // if\n // (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0))\n // {\n // populateErrorDetails (ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.WARNING, 7508, BankFusionMessages.ERROR_LEVEL,\n // atmSparrowMessage, field, env);\n // } else if\n // (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_1)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_2)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_3)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_7))\n // {\n // populateErrorDetails (ATMConstants.AUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.CRITICAL, 7508, BankFusionMessages.ERROR_LEVEL,\n // atmSparrowMessage, field, env);\n // if (controlDetails != null) {\n // ubTransCode = controlDetails.getAtmTransactionType();\n // }\n // }\n // }\n }\n else {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n /*\n * String errorMessage = BankFusionMessages.getFormattedMessage(BankFusionMessages\n * .ERROR_LEVEL, 7506, env, new Object[] { atmSparrowMessage .getMessageType() +\n * atmSparrowMessage.getTransactionType() });\n */\n String errorMessage = BankFusionMessages.getInstance().getFormattedEventMessage(40407506,\n new Object[] { atmSparrowMessage.getMessageType() + atmSparrowMessage.getTransactionType() },\n BankFusionThreadLocal.getUserSession().getUserLocale());\n String errorStatus = null;\n if (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_6)) {\n errorStatus = ATMConstants.WARNING;\n logger.warn(errorMessage);\n }\n else {\n errorStatus = ATMConstants.CRITICAL;\n logger.error(errorMessage);\n }\n atmSparrowMessage.setErrorCode(errorStatus);\n atmSparrowMessage.setErrorDescription(errorMessage);\n }\n }", "public boolean isSuccessful()\n\t{\n\t\tif (response.get(\"Result\").equals(\"APPROVED\") && !response.get(\"MESSAGE\").equals(\"DUPLICATE\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus() {\n return status_;\n }", "private void confirmarVentaRespuesta(final TransaccionCelda resp) {\n final ConfirmarVentaMapaDatos datos = service.getDatosConfirmar();\n respImprimir = resp;\n service.setDatosConfirmar(null);\n mostrarMensaje(getString(R.string.msg_venta_paquete_exitoso, datos.getPlaca()));\n contenedorBotonVenta.setVisibility(View.GONE);\n contenedorBotonImpresion.setVisibility(View.VISIBLE);\n final double costoTotal = service.getCostoTotal(resp);\n final String auditoria = getString(\n R.string.msg_venta_paquete_auditoria,\n datos.getZona().getNombre(), datos.getTarifa().getNombre(),\n datos.getPlaca(), format.formatearDecimal(costoTotal));\n AppLog.debug(TAG, \"Auditoría: %s\", auditoria);\n final String pin = String.valueOf(resp.getId());\n subscribeSinProcesando(api.auditoria(getIdUsuario(), \"Compra pin\", \"Pin de transito\",\n pin, \"App movil\", auditoria, String.valueOf(datos.getZona().getId()),\n datos.getPlaca(), Constantes.AUDITORIA_VACIO, Constantes.AUDITORIA_VACIO),\n this::respuestaAuditoria);\n }", "@Override\n\tpublic void acceptRequest(String userEmail, String senderEmail) {\n\t\tconn = ConnectionFactory.getConnection();\n\n\t\ttry {\n\t\t\tString sql = \"update friendship set status=? where user_id_1=? and user_id_2=?\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\n\t\t\tpstmt.setString(1, Constants.COMPLETED);\n\t\t\tpstmt.setString(2, senderEmail);\n\t\t\tpstmt.setString(3, userEmail);\n\n\t\t\tpstmt.executeUpdate();\n\t\t\t\n\t\t\tsql = \"insert into friendship (user_id_1, user_id_2, status) values (?, ?, ?)\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\n\t\t\tpstmt.setString(1, userEmail);\n\t\t\tpstmt.setString(2, senderEmail);\n\t\t\tpstmt.setString(3, Constants.COMPLETED);\n\n\t\t\tpstmt.executeUpdate();\n\n\t\t} catch(SQLException sqlex) {\n\t\t\tsqlex.printStackTrace();\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionFactory.closeResources(set, pstmt, conn);\n\t\t}\n\t}", "Boolean acceptRequest(User user);", "protected boolean isEncumbrancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CLOSE_DOCUMENT);\n }", "public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}", "boolean hasBidrequest();", "public String acceptRequest(String requestID) {\n Request accepted = getRequestById(requestID);\n if (accepted == null) {\n return \"Error: Request doesn't exist\";\n }\n accepted.accept();\n if (accepted instanceof AccountRequest) {\n User user = UserController.getInstance().getUserByUsername(((AccountRequest) accepted).getUser().getUsername());\n if (user instanceof Seller) ((Seller) user).validate();\n Database.getInstance().saveUser(user);\n } else if (accepted instanceof SaleRequest) {\n Sale sale=((SaleRequest) accepted).getNewSale();\n sale.acceptStatus();\n for (String id : sale.getAllItemId()) {\n Item item=ItemAndCategoryController.getInstance().getItemById(id);\n if(item==null) continue;\n item.setSale(sale.getId());\n Database.getInstance().saveItem(item);\n }\n Database.getInstance().saveSale(((SaleRequest) accepted).getNewSale());\n\n } else if (accepted instanceof ItemRequest) {\n Item item = ((ItemRequest) accepted).getNewItem();\n item.setAddedTime(LocalDateTime.now());\n Database.getInstance().saveItem(item);\n if(item.getCategoryName()!=null)\n ItemAndCategoryController.getInstance().addItemToCategory(item.getId(), item.getCategoryName());\n } else if (accepted instanceof ItemEdit) {\n requestController.ItemEditing((ItemEdit) accepted);\n } else if (accepted instanceof SaleEdit) {\n requestController.SaleEditing((SaleEdit) accepted);\n } else if (accepted instanceof CommentRequest) {\n //System.out.println(\"salam\");\n Comment comment = ((CommentRequest) accepted).getNewComment();\n //System.out.println(\"salam\");\n comment.accept();\n //System.out.println(\"salam\");\n Item item = ItemAndCategoryController.getInstance().getItemById(comment.getItemId());\n //System.out.println(\"salam\");\n item.addComment(comment);\n //System.out.println(\"salam\");\n Database.getInstance().saveItem(item);\n //System.out.println(\"salam\");\n } else if(accepted instanceof ItemDelete){\n String id=((ItemDelete) accepted).getItemId();\n Item removed=ItemAndCategoryController.getInstance().getItemById(id);\n if(removed!=null) {\n UserController.getInstance().deleteItemFromSeller(id, removed.getSellerName());\n ItemAndCategoryController.getInstance().removeItemFromCategory(removed.getCategoryName(),removed.getId());\n Database.getInstance().deleteItem(removed);\n }\n }\n else if(accepted instanceof AuctionRequest){\n Auction auction = ((AuctionRequest) accepted).getAuction();\n Database.getInstance().saveAuction(auction);\n }\n Database.getInstance().deleteRequest(accepted);\n return \"Successful: Request accepted\";\n }", "public com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus() {\n return status_;\n }", "public boolean approvePotentialDeliveryMan(final Parcel parcel, final String email);" ]
[ "0.7004854", "0.63351655", "0.61577904", "0.6009383", "0.5938627", "0.5900192", "0.58941275", "0.5875922", "0.5824253", "0.5824096", "0.57586926", "0.57557184", "0.5753557", "0.5732968", "0.5723473", "0.5703636", "0.5702224", "0.56995106", "0.5665462", "0.56167656", "0.5535386", "0.5516674", "0.5511513", "0.55031306", "0.54809666", "0.5475433", "0.5435734", "0.5434617", "0.54329795", "0.54329795", "0.54058427", "0.5392429", "0.53888655", "0.53870755", "0.5380326", "0.53592783", "0.53588873", "0.5350836", "0.53402305", "0.5336404", "0.5333865", "0.53284454", "0.5316813", "0.53048193", "0.5281194", "0.526679", "0.5265274", "0.523789", "0.5237303", "0.5231675", "0.521624", "0.5214657", "0.5212036", "0.52114195", "0.52113605", "0.5210883", "0.51849747", "0.5184583", "0.5183012", "0.5180214", "0.5178886", "0.51748663", "0.51723105", "0.516875", "0.51676786", "0.5165311", "0.5162362", "0.5159951", "0.5154152", "0.5138245", "0.51342416", "0.5127078", "0.51264423", "0.5124529", "0.5116417", "0.51159245", "0.511217", "0.5109545", "0.51025265", "0.50981766", "0.50978416", "0.5097162", "0.50960433", "0.5095334", "0.50906444", "0.50798726", "0.50724924", "0.5070823", "0.50702304", "0.50652885", "0.5063466", "0.5061019", "0.5058828", "0.50541294", "0.5041181", "0.5031866", "0.5031209", "0.50295234", "0.5020027", "0.5018036", "0.5017396" ]
0.0
-1
Req 8.1.5 AcmeParade status = 'rejected'
public Double findRatioRejectedParadesFinalMode() { Double result; result = this.paradeRepository.findRatioRejectedParadesFinalMode(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GetACDHistoryRequest setRejected(boolean d) {\n this.rejected = Boolean.valueOf(d);\n return this;\n }", "public void setRejected(boolean value) {\n this.rejected = value;\n }", "@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n app.setName(\"bill whatwhatwhat\");\n app.setCreditScore(400);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertFalse(result.isApproved());\n }", "public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}", "public String rejectApprovedApplication(Bwfl_permit_tracking_action act){\n\n\n\t\t\tint saveStatus = 0;\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\t\t\t\n\t\t\tString updtQr = \"\";\n\t\t\tString delQr = \"\";\n\t\t\tString insQr = \"\";\n\t\t\tint seq = getRejctedSeq();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tcon.setAutoCommit(false);\n\t\t\t\tDate date = new Date();\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tString time = sdf.format(cal.getTime());\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\n\t\t\t\t\tupdtQr = \t\" UPDATE bwfl_license.import_permit_20_21 \"+\n\t\t\t\t\t\t\t \t\" SET deo_time=?, deo_date=?, deo_remark=?, \"+\n\t\t\t\t\t\t\t \t\" deo_user=?, vch_approved=?, vch_status=?, import_fee_challan_no=?, spcl_fee_challan_no=? \" +\n\t\t\t\t\t\t\t \t\" WHERE id=? AND district_id=? AND login_type=? AND app_id=? \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(updtQr);\n\n\n\t\t\t\t\tpstmt.setString(1, time);\n\t\t\t\t\tpstmt.setDate(2, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(3, act.getFillRemrks());\t\n\t\t\t\t\tpstmt.setString(4, ResourceUtil.getUserNameAllReq().trim());\n\t\t\t\t\tpstmt.setString(5, \"REJECTED\");\n\t\t\t\t\tpstmt.setString(6, \"Rejected By DEO after Approval\");\n\t\t\t\t\tpstmt.setString(7, null);\n\t\t\t\t\tpstmt.setString(8, null);\n\t\t\t\t\tpstmt.setInt(9, act.getRequestID());\n\t\t\t\t\tpstmt.setInt(10, act.getDistrictId());\n\t\t\t\t\tpstmt.setString(11, act.getLoginType());\n\t\t\t\t\tpstmt.setInt(12, act.getAppId());\n\t\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status1------rejectttt----- \"+saveStatus);\n\t\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\n\t\t\t\t\t\tinsQr = \t\" INSERT INTO bwfl_license.rejected_permit_after_approval_20_21( \" +\n\t\t\t\t\t\t\t\t\t\" seq, district_id, bwfl_id, bwfl_type, cr_date, approval_time, approval_remark, \" +\n\t\t\t\t\t\t\t\t\t\" approval_user, approval_date, lic_no, permit_nmbr, login_type, reject_dt_time, reject_remark, app_id_fk) \" +\n\t\t\t\t\t\t\t\t\t\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\tpstmt = con.prepareStatement(insQr);\n\n\n\t\t\t\t\tpstmt.setInt(1, seq);\n\t\t\t\t\tpstmt.setInt(2, act.getDistrictId());\n\t\t\t\t\tpstmt.setInt(3, act.getBwflId());\n\t\t\t\t\tpstmt.setString(4, act.getLicenseType());\n\t\t\t\t\tpstmt.setDate(5, Utility.convertUtilDateToSQLDate(new Date()));\n\t\t\t\t\tpstmt.setString(6, act.getApprovalTym());\n\t\t\t\t\tpstmt.setString(7, act.getDeoRemrks());\n\t\t\t\t\tpstmt.setString(8, act.getApprovalUser());\n\t\t\t\t\tpstmt.setDate(9, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\tpstmt.setString(10, act.getLicenseNmbr());\t\n\t\t\t\t\tpstmt.setString(11, act.getPermitNmbr());\n\t\t\t\t\tpstmt.setString(12, act.getLoginType());\n\t\t\t\t\tpstmt.setString(13, dateFormat.format(new Date()));\n\t\t\t\t\tpstmt.setString(14, act.getFillRemrks());\n\t\t\t\t\tpstmt.setInt(15, act.getAppId());\n\n\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"status2------rejectttt----- \"+saveStatus);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(saveStatus > 0){\n\t\t\t\t\t\tfor (int i = 0; i < act.getDisplayBrandDetails().size(); i++) {\n\n\t\t\t\t\t\t\tBwfl_permit_tracking_dt dt = (Bwfl_permit_tracking_dt) act.getDisplayBrandDetails().get(i);\n\n\t\t\t\t\t\t\tsaveStatus = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(act.getLoginType().equalsIgnoreCase(\"BWFL\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM bwfl_license.mst_bottling_plan_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_distillery_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permitno=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(act.getLoginType().equalsIgnoreCase(\"FL2D\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdelQr = \t\" DELETE FROM fl2d.mst_stock_receive_20_21 \"+\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t \t\t\" WHERE int_fl2d_id=? AND int_brand_id=? AND int_pack_id=? AND plan_dt=? \" +\n\t\t\t\t\t\t\t\t \t\t\" AND permit_no=? AND (finalized_flag!='F' or finalized_flag IS NULL) \";\n\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tpstmt = con.prepareStatement(delQr);\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\tpstmt.setInt(1, act.getBwflId());\n\t\t\t\t\t\t\t\tpstmt.setInt(2, dt.getBrandId_dt());\n\t\t\t\t\t\t\t\tpstmt.setInt(3, dt.getPckgID_dt());\n\t\t\t\t\t\t\t\tpstmt.setDate(4, Utility.convertUtilDateToSQLDate(act.getApprovalDate()));\n\t\t\t\t\t\t\t\tpstmt.setString(5, act.getPermitNmbr());\t\n\t\t\t\n\t\t\t\t\t\t\t\tsaveStatus = pstmt.executeUpdate();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"status3------rejectttt----- \"+saveStatus);\n\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\n\t\t\t\tif (saveStatus > 0) {\n\t\t\t\t\tcon.commit();\n\t\t\t\t\tact.closeApplication();\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\" Application Rejected !!! \",\"Application Rejected !!!\"));\n\t\t\t\t\t\n\n\t\t\t\t} else {\n\t\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Error !!! \", \"Error!!!\"));\n\n\t\t\t\t\tcon.rollback();\n\n\t\t\t\t}\n\t\t\t} catch (Exception se) {\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,new FacesMessage(se.getMessage(), se.getMessage()));\n\t\t\t\tse.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\n\t\t\t\t} catch (Exception se) {\n\t\t\t\t\tse.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn \"\";\n\n\t\t\n\t\t}", "public static boolean rejectRequest(String fid) {\r\n\t\tboolean status = false;\r\n\t\tint i = 0;\r\n\r\n\t\ttry {\r\n\t\t\tDBconn cn = new DBconn();\r\n\t\t\tConnection con = cn.getConn();\r\n\t\t\tPreparedStatement ps2 = null;\r\n\t\t\tps2 = con.prepareStatement(\" update custemp717 set Recstatus='R' where custcode=?\");\r\n\t\t\tint k = Integer.parseInt(fid);\r\n\t\t\tps2.setInt(1, k);\r\n\t\t\ti = ps2.executeUpdate();\r\n\r\n\t\t\tcon.commit();\r\n\t\t\tps2.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t\tif (i > 0) {\r\n\t\t\t\tstatus = true;\r\n\t\t\t}\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Rejecting the record...\");\r\n\t\treturn status;\r\n\t}", "@Test\n\tpublic void rejectedOfferCanNotBeAccepted() {\n\t}", "public void rejectProduct() {\n self.increaseRejectCount();\n env.updateMachine(self);\n }", "public void setReject(String reject) {\n this.reject = reject;\n }", "public boolean hasRejected() {\n return fieldSetFlags()[19];\n }", "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "@Override\n\tpublic void ruleReject(String campaignActivityId) throws ASException {\n\t\tCampaignActivity ca = caDao.get(campaignActivityId);\n\t\t\n\t\tif( ca.getRedeemStatus().equals(CampaignActivity.REDEEM_STATUS_DELIVERED)) { \n\t\t\t\n\t\t\tca.setRedeemStatus(CampaignActivity.REDEEM_STATUS_RULE_REJECTED);\n\t\t\tca.setStatusChangeDateTime(new Date());\n\t\t\t\n\t\t\tcaDao.update(ca);\n\n\t\t} else {\n\t\t\tthrow ASExceptionHelper.forbiddenException();\n\t\t}\n\t}", "public void setDenied() {\r\n\t\tstatus = \"Denied\";\r\n\t}", "public boolean isDeclined()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"DECLINED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean getRejected() {\n return rejected;\n }", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "public String getReject() {\n return reject;\n }", "public boolean getRejected() {\n return rejected;\n }", "boolean approveDeny(String choice, int id, int resolverId);", "@Test\n\tpublic void acceptedOfferCanNotBeRejected() {\n\t}", "void rejectNewOrders();", "protected void handleRejectProposal(ACLMessage cfp, ACLMessage propose, ACLMessage reject) {\n\t}", "protected void handleRejectProposal(ACLMessage cfp, ACLMessage propose, ACLMessage reject) {\r\n\t\t}", "void rejectOrder(int id, String reason) throws ServiceException;", "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "private void validateCardId(ATMSparrowMessage atmSparrowMessage, BankFusionEnvironment env) {\n\n try {\n IBOATMCardDetails atmCardDetails = (IBOATMCardDetails) env.getFactory().findByPrimaryKey(IBOATMCardDetails.BONAME,\n atmSparrowMessage.getCardNumber());\n }\n catch (BankFusionException bfe) {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n Object[] field = new Object[] { atmSparrowMessage.getCardNumber() };\n if (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_6)) {\n // populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.WARNING, 7510, BankFusionMessages.ERROR_LEVEL,\n populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG, ATMConstants.WARNING,\n ChannelsEventCodes.E_INVALID_CARD, BankFusionMessages.ERROR_LEVEL, atmSparrowMessage, field, env);\n }\n else if (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_1)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_2)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_3)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_7)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_5)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_8)) {\n // populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.CRITICAL, 7511, BankFusionMessages.ERROR_LEVEL,\n populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG, ATMConstants.CRITICAL,\n ChannelsEventCodes.E_INVALID_CARD_FORCE_POST_NOT_POSTED, BankFusionMessages.ERROR_LEVEL, atmSparrowMessage,\n field, env);\n }\n }\n }", "pb4server.CheckAllianceCompetitionAskReq getCheckAllianceCompetitionAskReq();", "public void failedWithdraw(){\n\t\tstate = ATM_State.WITHDRAWALNOTIFICATION;\n\t\tgui.setDisplay(\"Invalid withdrawal amount.\");\n\t}", "@Test\n public void CardRequirementError() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(0);\n DevelopmentCard card1 = new DevelopmentCard(1, Color.GREEN, 0, null, null);\n p.getDevelopmentSlot().addCard(card1, 1);\n c.emptyQueue();\n assertFalse(am.activateLeaderCard(p, message));\n assertEquals(MessageType.MSG_ERROR, c.messages.get(0).getMessageType());\n assertEquals(1, c.messages.size());\n }", "public void rejectApplication(MortgageApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateMortgageApplicationStatus(\"R\", application.getApplicationId());\r\n\t\tsendApplicationRejectedMail(application, applicant, message);\r\n\t}", "public com.example.DNSLog.Builder setRejected(boolean value) {\n validate(fields()[19], value);\n this.rejected = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "pb4server.CureSoliderAskReq getCureSoliderAskReq();", "public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "public String formAccepted()\r\n { \r\n return formError(\"202 Accepted\",\"Object checked in\");\r\n }", "void reject();", "@Test\n public void ResourceRequirementError() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(1);\n assertFalse(am.activateLeaderCard(p, message));\n assertEquals(MessageType.MSG_ERROR, c.messages.get(0).getMessageType());\n assertEquals(1, c.messages.size());\n }", "HrDocumentRequest reject(HrDocumentRequest hrDocumentRequest);", "protected void handleRejectProposal(ACLMessage cfp, ACLMessage propose, ACLMessage reject) {\r\n\t\twindow.println(\"Agent \"+reject.getSender().getLocalName()+\" a rejete la proposition pour \" + reject.getContent());\r\n\t}", "private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }", "void reject(int errorCode) throws ImsException;", "public int noApproval2(int c_code) {\n\tConnection conn=getConnection();\n\tint result=dao.noApproval2(conn,c_code);\n\tif (result > 0)\n\t\tcommit(conn);\n\telse\n\t\trollback(conn);\n\tclose(conn);\n\n\treturn result;\n}", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Override\n\tpublic boolean rejectPartner(Partner partner) {\n\t\treturn false;\n\t}", "String getNeedsInventoryIssuance();", "private void validateCardIssuerId(ATMSparrowMessage atmSparrowMessage, BankFusionEnvironment env) {\n\n ArrayList params = new ArrayList();\n params.add(atmSparrowMessage.getCardDestBranchCode());\n params.add(atmSparrowMessage.getCardDestCountryCode());\n params.add(atmSparrowMessage.getCardDestinationIMD());\n List branchBO = null;\n try {\n branchBO = env.getFactory().findByQuery(IBOATMCIB.BONAME, atmSourceWhereClause, params, null);\n }\n catch (BankFusionException bfe) {\n logger.error(\"Error while find by query for Branch for bmbranch: \" + atmSparrowMessage.getCardDestBranchCode(), bfe);\n }\n if (branchBO == null || branchBO.isEmpty()) {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n Object[] field = new Object[] { atmSparrowMessage.getCardDestCountryCode(), atmSparrowMessage.getCardDestinationIMD(),\n atmSparrowMessage.getCardDestBranchCode() };\n if (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0)) {\n // populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.WARNING, 7502, BankFusionMessages.ERROR_LEVEL,\n populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG, ATMConstants.WARNING,\n ChannelsEventCodes.E_DEST_COUNTRY_IMD_BRANCH_NOT_MAPPED, BankFusionMessages.ERROR_LEVEL, atmSparrowMessage,\n field, env);\n }\n else if (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_1)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_2)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_3)) {\n // populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.CRITICAL, 7503, BankFusionMessages.ERROR_LEVEL,\n populateErrorDetails(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG, ATMConstants.CRITICAL,\n ChannelsEventCodes.E_DEST_COUNTRY_IMD_BRANCH_UNMAPPED_POST_NOT_POSTED, BankFusionMessages.ERROR_LEVEL,\n atmSparrowMessage, field, env);\n }\n }\n else {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.AUTHORIZED_MESSAGE_FLAG);\n }\n }", "public void verifyNoMatching(AcBatchFlight e)\n {\n }", "public java.lang.Boolean getRejected () {\n\t\treturn rejected;\n\t}", "public void setRejected (java.lang.Boolean rejected) {\n\t\tthis.rejected = rejected;\n\t}", "public boolean isSetRejected_reason() {\n return EncodingUtils.testBit(__isset_bitfield, __REJECTED_REASON_ISSET_ID);\n }", "public LoanApplicationResponse rejectLoanRequest() {\n return new LoanApplicationResponse(this, false);\n }", "public boolean ApproveReimbursement(int employeeID, int reimburseID, String reason, int status);", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "void rejectOrd(final int vId) {\r\n Orders emp1 = OrdersFactory.getvalidateOrders();\r\n if (emp1 != null) {\r\n showPlacedOrders(vId);\r\n System.out.println(\"Enter the Order ID to Reject :\");\r\n int ordid = option.nextInt();\r\n int val = OrdersFactory.rejectOrders(ordid);\r\n System.out.println(\"Succes value is :\" + val);\r\n if (val == 1) {\r\n System.out.println(\"Rejected the Order\");\r\n return;\r\n }\r\n } else {\r\n System.out.println(\"---------No Placed Orders---------\");\r\n return;\r\n }\r\n }", "public String getRejectReason() {\n\t\treturn rejectReason;\n\t}", "boolean getAccepted();", "com.lvl6.proto.EventQuestProto.QuestRedeemResponseProto.QuestRedeemStatus getStatus();", "public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }", "public boolean rejectDeal(String dBID, String tID, String sID, double rem, String day, String time, String location,\n\t\t\tString batch, int status) {\n\t\tContract c = new Contract(Long.parseLong(dBID),Long.parseLong(tID),Long.parseLong(sID),rem,day,time,location,batch,status);\n\t\treturn c.rejectClosure(Long.parseLong(tID));\n\t}", "public void setUnproved() {\n\t\tproveState = UNPROVED;\n\t}", "private void validateTransactionCode(ATMSparrowMessage atmSparrowMessage, BankFusionEnvironment env) {\n boolean result = isTransactionSupported(atmSparrowMessage.getMessageType() + atmSparrowMessage.getTransactionType(), env);\n if (result) {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.AUTHORIZED_MESSAGE_FLAG);\n // String ubTransCode =\n // atmHelper.getBankTransactionCode(atmSparrowMessage.getMessageType()\n // + atmSparrowMessage.getTransactionType(), env);\n // //UBTransaction type mapped or not?\n // try {\n // IBOMisTransactionCodes misTransactionCodes =\n // (IBOMisTransactionCodes)env.getFactory().findByPrimaryKey(IBOMisTransactionCodes.BONAME,\n // ubTransCode);\n // } catch (FinderException bfe) {\n // Object[] field = new Object[] { ubTransCode };\n // atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n // if\n // (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0))\n // {\n // populateErrorDetails (ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.WARNING, 7508, BankFusionMessages.ERROR_LEVEL,\n // atmSparrowMessage, field, env);\n // } else if\n // (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_1)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_2)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_3)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_7))\n // {\n // populateErrorDetails (ATMConstants.AUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.CRITICAL, 7508, BankFusionMessages.ERROR_LEVEL,\n // atmSparrowMessage, field, env);\n // if (controlDetails != null) {\n // ubTransCode = controlDetails.getAtmTransactionType();\n // }\n // }\n // }\n }\n else {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n /*\n * String errorMessage = BankFusionMessages.getFormattedMessage(BankFusionMessages\n * .ERROR_LEVEL, 7506, env, new Object[] { atmSparrowMessage .getMessageType() +\n * atmSparrowMessage.getTransactionType() });\n */\n String errorMessage = BankFusionMessages.getInstance().getFormattedEventMessage(40407506,\n new Object[] { atmSparrowMessage.getMessageType() + atmSparrowMessage.getTransactionType() },\n BankFusionThreadLocal.getUserSession().getUserLocale());\n String errorStatus = null;\n if (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_6)) {\n errorStatus = ATMConstants.WARNING;\n logger.warn(errorMessage);\n }\n else {\n errorStatus = ATMConstants.CRITICAL;\n logger.error(errorMessage);\n }\n atmSparrowMessage.setErrorCode(errorStatus);\n atmSparrowMessage.setErrorDescription(errorMessage);\n }\n }", "@RequestMapping(\"/agent/enrollment/reject\")\n @ResponseBody\n public StatusDTO reject(@RequestParam(\"id\") long id, @RequestParam(\"reason\") String reason) {\n String signature = \"EnrollmentController#reject(long id, String reason)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"reason\" }, new Object[] { id, reason });\n\n if (reason == null || reason.trim().length() == 0) {\n throw new IllegalArgumentException(\"A reason must be provided.\");\n }\n\n StatusDTO statusDTO = new StatusDTO();\n try {\n completeReview(id, null, true, reason);\n statusDTO.setMessage(\"Request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n statusDTO.setMessage(USER_ERROR_MSG);\n }\n\n return LogUtil.traceExit(getLog(), signature, statusDTO);\n }", "@When(\"je verifie les informations et clique sur Submit Order\")\n\tpublic void je_verifie_les_informations_et_clique_sur_Submit_Order() {\n\t throw new PendingException();\n\t}", "default void reject(String errorCode) {\n\t\treject(errorCode, null, null);\n\t}", "@Test\n public void testFailureParIncludesInvalidResponseType() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.FALSE, oidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(oidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n\n // Pushed Authorization Request\n oauth.clientId(clientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n oauth.responseType(null);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(clientId, clientSecret);\n assertEquals(400, pResp.getStatusCode());\n assertEquals(OAuthErrorException.INVALID_REQUEST, pResp.getError());\n assertEquals(\"Missing parameter: response_type\", pResp.getErrorDescription());\n }", "public void waitingEnemy(){\t\t\n\t\tgetController().changeFree(false);\n\t\tdisplayAdvertisement(\"waiting enemy\");\n\t\tadvertisementPanel.cancelRequestSetVisible(true);\n\t\tvalidate();\n\t}", "public void lance() {\n\t\tthis.laRequete.ecrireMessage(\"202\",\" Commande Non implementee\"); //502 ou 202?\n\t\tthis.laRequete.ecrireLog(\"Commande Non implementee\");\n\t}", "public boolean getStatusForRejected(String cartItemStatus) {\n boolean flag = false;\n\t\t\t/* Checking for the transaction status and below are satisfied then return true */\n if (cartItemStatus.equals(PdfConstants.REJECTED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_POSTING_CATEGORY_CHANGED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_INVALID_PAYMENT_AMOUNT)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_VELOCITY_LIMIT_EXCEEDED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_PAYMENT_CARD_FAILED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_PROGRAM_ENDED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_NOT_AUTHED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_POSTING_WINDOW_EXPIRED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_BAN_VELOCITY_LIMIT_EXCEEDED)\n || cartItemStatus.equals(PdfConstants.SCHEDULED_CANCELLED_CARD_NO_LONGER_AVAILABLE)) {\n flag = true;\n }\n return flag;\n }", "void rejectOrder(String orderId);", "public void testDeleteRejectReason_RejectReasonExistAccuracy() {\r\n entry.addRejectReason(new ExpenseEntryRejectReason(1));\r\n\r\n assertTrue(\"The reject reason should be deleted properly.\", entry.deleteRejectReason(1));\r\n }", "@Override\n\tpublic boolean isDenied();", "void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);", "public void notifyNoAcctReport (COPSPdpOSReqStateMan man);", "public void rejectApplication(PersonalLoanApplication application, Applicant applicant, String message) throws SQLException, MessagingException {\r\n\t\tapplicationDao.updateLoanApplicationStatus(\"R\", application.getApplicationId());\r\n\t\tsendApplicationRejectedMail(application, applicant, message);\r\n\t}", "public static boolean chkManualEncumbranceRejValid(EscmProposalMgmt proposalmgmt) {\n try {\n OBContext.setAdminMode();\n EscmProposalMgmt baseProposal = proposalmgmt.getEscmBaseproposal();\n if (baseProposal == null) {\n OBQuery<EfinBudgetManencumlines> encline = OBDal.getInstance().createQuery(\n EfinBudgetManencumlines.class,\n \" as e where e.manualEncumbrance.id=:encumId and e.id in \"\n + \" ( select b.efinBudgmanencumline.id from Escm_Proposalmgmt_Line b \"\n + \" where b.escmProposalmgmt.id=:proposalId) and e.usedAmount > 0 \");\n encline.setNamedParameter(\"encumId\", proposalmgmt.getEfinEncumbrance().getId());\n encline.setNamedParameter(\"proposalId\", proposalmgmt.getId());\n\n if (encline.list().size() > 0) {\n return true;\n } else\n return false;\n } else if (baseProposal != null) {\n for (EscmProposalmgmtLine lines : proposalmgmt.getEscmProposalmgmtLineList()) {\n if (!lines.isSummary() && lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n if (amountDiffernce.compareTo(BigDecimal.ZERO) > 0\n && encline.getRemainingAmount().compareTo(amountDiffernce) < 0\n && encline.getManualEncumbrance().getEncumMethod().equals(\"M\")) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in chkManualEncumbranceValidation after Reject : \", e);\n return false;\n } finally {\n OBContext.restorePreviousMode();\n }\n return false;\n }", "public void testUpdateRejectReason_NotExistRejectReasonAccuracy() {\r\n ExpenseEntryRejectReason reason = new ExpenseEntryRejectReason(1);\r\n\r\n assertFalse(\"The reject reason should not be updated.\", entry.updateRejectReason(reason));\r\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "public String accionemergencia(){\n\t\tString resp=\"\";\n\t\tif(puntosvida<=5 && acc!=1){\n\t\t\tpuntosvida=puntosvida+15;\n\t\t\tresp=\"\\nAccion de emergencia \"+ tipo +\"activada vida +15\";\n\t\t\tacc=1;\n\t\t}\n\t\treturn resp;\n\t}", "@Override\n\tpublic Integer udpateBillingFail() {\n\t\treturn 0;\n\t}", "public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }", "@Override\r\n\tpublic void rejectApplier(Applier applier) {\n\t\tapplier.setStatus(\"Rejected\");\r\n\t\tem.merge(applier);\r\n\r\n\t}", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();", "public void testDeleteRejectReason_RejectReasonNotExistAccuracy() {\r\n entry.addRejectReason(new ExpenseEntryRejectReason(1));\r\n\r\n assertFalse(\"The reject reason should be deleted properly.\", entry.deleteRejectReason(2));\r\n }", "void faild_response();", "public void setInvalidAccountId(boolean flag) {\n this.invalidAccountId = flag;\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "@SystemAPI\n\tboolean needsApproval();", "@Test\n public void creditApproved() throws Exception {\n Application app = new Application();\n app.setName(\"phil garfield\");\n app.setCreditScore(600);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertTrue(result.isApproved());\n }", "@Test\n public void respondRejected() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var rejectBy = UserId.random();\n var rejectAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstGrant = grant\n .reject(rejectBy, rejectAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstGrant.approve(rejectBy, rejectAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstGrant.reject(UserId.random(), rejectAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(approve.isFailure())\n .as(\"The 2nd call to approve cannot be successful\")\n .isTrue();\n\n assertThat(reject)\n .as(\"The 2nd call to reject is also successful with the same result\")\n .satisfies(r -> {\n var secondGrant = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondGrant).isEqualTo(firstGrant);\n });\n }", "public void refuse(Object content){\n\n\t\tif (isParticipant() && (getState() == RequestProtocolState.WAITING_REQUEST)) {\n\t\t\tsendMessage(content, Performative.REFUSE, getInitiator());\n\t\t\tsetFinalStep();\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.5\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.6\")); //$NON-NLS-1$\n\t\t}\n\t}", "public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }", "static void complete_return_requirements(){\n\t\tString ad = memory.get(SP+1)+memory.get(SP);\n\t\tSP+=2;\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified =true;\n\t}", "@Override\n\tpublic boolean rejectIt() {\n\t\treturn false;\n\t}", "SendFailure() {\n super(ACLMessage.FAILURE);\n }", "public void testUpdateRejectReason_ExistRejectReasonAccuracy() {\r\n ExpenseEntryRejectReason reason = new ExpenseEntryRejectReason(1);\r\n entry.addRejectReason(reason);\r\n\r\n ExpenseEntryRejectReason reasonNew = new ExpenseEntryRejectReason(1);\r\n assertTrue(\"The reject reason should be updated.\", entry.updateRejectReason(reasonNew));\r\n\r\n // check whether is updated properly\r\n Map rejectReasonsMap = (Map) V1Dot1TestHelper.getPrivateField(entry.getClass(), entry, \"rejectReasons\");\r\n assertEquals(\"The reject reason should be updated.\", 1, rejectReasonsMap.size());\r\n assertEquals(\"The reject reason should be updated.\", reasonNew, rejectReasonsMap.get(new Integer(1)));\r\n }", "pb4server.ArenaFightAskReq getArenaFightAskReq();", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "void notifyReject(final TradeInstruction instruction);", "public void denyPo(int pid) throws Exception {\n PoBean po = this.getPoById(pid);\n if (po == null) throw new Exception(\"Purchase Order doesn't exist!\");\n if (po.getStatus() != PoBean.Status.PROCESSED) throw new Exception(\"Invalid Purchase Order Status.\");\n this.setPoStatus(PoBean.Status.DENIED, pid);\n }", "public void createFailure() {\n\t\tgetController().changeFree(true);\t\t\n\t\tdisplayAdvertisement(\"opponent failure\");\n\t\tvalidate();\n\t}" ]
[ "0.6254774", "0.61949825", "0.614137", "0.61133885", "0.60379", "0.59593993", "0.5955576", "0.57935834", "0.5779753", "0.5771637", "0.57682544", "0.57219046", "0.57193327", "0.570592", "0.5677831", "0.5622311", "0.556563", "0.5564931", "0.553845", "0.5534428", "0.55044365", "0.5497518", "0.54958224", "0.5466828", "0.54576546", "0.5456899", "0.5456494", "0.54472965", "0.542933", "0.54224014", "0.54181826", "0.5415566", "0.5404013", "0.54031616", "0.5400834", "0.5398492", "0.5388263", "0.53689575", "0.5363052", "0.5325952", "0.53235894", "0.53212535", "0.5319129", "0.53187245", "0.5313586", "0.53094095", "0.53020066", "0.52992076", "0.52870256", "0.5284372", "0.5281214", "0.5276031", "0.52695876", "0.52497584", "0.52486557", "0.52452147", "0.5244665", "0.52348834", "0.5220044", "0.521904", "0.51969814", "0.5179443", "0.5173205", "0.51657975", "0.5164638", "0.514756", "0.51402223", "0.51398474", "0.51376796", "0.5130839", "0.512762", "0.5127425", "0.512601", "0.51246357", "0.51239526", "0.5122345", "0.5118363", "0.5114971", "0.5112231", "0.5107011", "0.51070106", "0.5104804", "0.51034933", "0.5093528", "0.50910527", "0.508977", "0.5089749", "0.50831455", "0.5081109", "0.50790143", "0.50779176", "0.50754315", "0.5062993", "0.50450945", "0.5044987", "0.504106", "0.5034264", "0.5026544", "0.5024036", "0.50215524", "0.50204384" ]
0.0
-1
Req 8.1.2 AcmeParade. Average, Min, Max, Stdev number of parades coordinated by the chapters
public Double[] findDataNumerParadesCoordinatedByChapters() { Double[] result; result = this.paradeRepository.findDataNumerParadesCoordinatedByChapters(); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(\"select avg((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), min((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), max((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.), stddev((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.) from Chapter c join c.area a\")\n\tDouble[] avgMinMaxStddevParadesCoordinatedByChapter();", "public int getAverage() { return (int)Math.ceil(getSumOfMarks()/ numberOfCourses); }", "@Query(\"select c1.name from Chapter c1 join c1.area a1 where ((select count(p) from Parade p join p.brotherhood b where b.area.id=a1.id)*1.) > (select avg((select count(p) from Parade p join p.brotherhood b where b.area.id=a.id)*1.1) from Chapter c join c.area a)\")\n\tCollection<String> chaptersWith10PerCentParadesCoordinateThanAvg();", "double getAvgTreatment();", "public int getAvgSpec() {\n return totalSpec/totalMatches;\n }", "@Override\n\t\tpublic double getAvgDip() {\n\t\t\treturn 0;\n\t\t}", "@Override\n\tpublic double avg() {\n\t\treturn total()/4.0;\n\t}", "public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }", "public double courseAverage()\n\t{\n\t\tdouble dQuiz;\n\t\tdouble dProj;\n\t\tdouble dTest;\n\t\tdouble dFinal;\n\t\tdouble dWeightedAvg;\n\t\t\n\t\tswitch(quizzesGraded)\n\t\t{\n\t\t\t\n\t\t\tcase 1:\n\t\t\t\tdQuiz= (1.0 * quiz1) * pctQ;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tdQuiz=((1.0 * quiz1+quiz2)/2) * pctQ;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tdQuiz=((1.0 * quiz1 + quiz2 + quiz3)/3) * pctQ;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tdQuiz=((1.0 * quiz1 + quiz2 + quiz3 + quiz4)/4) * pctQ;\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tdQuiz=((1.0 * quiz1 + quiz2 + quiz3 + quiz4 + quiz5)/5) * pctQ;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tdQuiz = 0;\n\t\t}\n\t\tswitch(projGraded)\n\t\t{\n\t\t\t\n\t\t\tcase 1: \n\t\t\t\tdProj=((1.0 * proj1)) * pctP;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tdProj=((1.0 * proj1 + proj2)/2) * pctP;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tdProj=((1.0 * proj1 + proj2 + proj3)/3)*pctP;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tdProj=((1.0 * proj1 + proj2 + proj3 + proj4)/4) * pctP;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tdProj = 0;\n\t\t}\n\t\tswitch(testGraded)\n\t\t{\n\t\t\tcase 1:\n\t\t\t\tdTest=(1.0 * test1) * pctT;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tdTest=((1.0 * test1+test2)/2) * pctT;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tdTest=((1.0 * test1 + test2 + test3)/3) * pctT;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tdTest = 0;\n\t\t}\n\t\tif(recordedFinalExam==true)\n\t\t{\n\t\t\tdFinal=finalExam*pctF;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdFinal=0;\n\t\t}\n\t\tdWeightedAvg= (dProj + dTest + dQuiz + dFinal);\n\t\treturn dWeightedAvg;\n\t\t\n\t}", "public float getAverageBetweenPoint(){\n return getMetric()/list.size();\n }", "double getAvgControl();", "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "private void calculateRange(){\r\n float minAER = theAccounts.get(0).getAer();\r\n float maxAER = theAccounts.get(accountInTotal-1).getAer();\r\n float averageAER = maxAER-minAER;\r\n float averageBond = startingBonds + (startingBonds*averageAER/100);\r\n\r\n Account averageAccount = new Account(startingBonds,averageBond,averageAER);\r\n System.out.println(averageAccount.toString());\r\n }", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}", "public double getAverage(){\n int total = 0; //inicializa o total\n \n //soma notas de um aluno\n for(int grade: grades){\n total += grade;\n }\n \n return (double) total/grades.length;\n }", "public void getAvg()\n {\n this.avg = sum/intData.length;\n }", "public double getAverageMarkPerModule(){\n return achievedMarks\n .stream()\n .mapToDouble(AchievedMark::getMark)\n .average()\n .getAsDouble();\n }", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}", "private double calculateAverage(Candle[] cd) {\n double sum = 0; \r\n for(Candle c : cd) {\r\n sum += c.getClose();\r\n }\r\n return sum/cd.length;\r\n \r\n }", "public double getAverageDistanceDriven() {\n \tdouble totalDistance = 0;\n \tdouble n = 0;\n \tfor (int i = 0; i<4; i++) {\n \t\tif (module.get(i).getAbsoluteDistanceDriven() > 0.05) {\n \t\t\ttotalDistance += Math.abs(module.get(i).getAbsoluteDistanceDriven());\n \t\t\tn++;\n \t\t}\n \t}\n \tif (n == 0) {\n \t\t//System.out.println(\"no swerve modules have gone more than .3 feet\");\n \t\tn = 1;\n \t}\n \treturn totalDistance / n;\n }", "public float getAverage(){\r\n\t\treturn Average;\r\n\t}", "public float calcAverage(){\n if(totalReviews > 0)\n return (float) (totalScore*1.0/totalReviews);\n else return 0;\n }", "private double calcAverage(int startIndex, int endIndex) {\n\t\t\n\t\t// total for the scores\n\t\tdouble total = 0;\n\t\t\n\t\t// loop between indexes and add the scores\n\t\tfor (int i = startIndex; i < endIndex; i++) \n\t\t\ttotal += scores.get(i);\n\t\t\n\t\t// return the average\n\t\treturn total / (endIndex - startIndex);\n\t}", "public double getAverage(){\n return getTotal()/array.length;\n }", "@Query(\"select avg(u.articles.size), stddev(u.articles.size) from User u\")\n\tDouble[] avgstdArticlesPerWriter();", "double totalMoviesAverageScore() {\n // call totalMovieAverage with no movie name\n // so filter will filter nothing and we'll get all the movies\n return totalMovieAverage(\"\");\n }", "public double getAvg(){\n double avg=0;\n for(int x=0; x<max; x++){\n avg=avg+times[x];\n }\n avg=avg/max;\n return avg;\n }", "double average();", "@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}", "public void parseAverages(){\r\n\t\tfor(int i = 1; i < x.size(); i++){\r\n\t\t\tdouble avg = (x.get(i) + x.get(i-1)) / 2;\r\n\t\t\tx.set(i, avg);\r\n\t\t}\r\n\t}", "public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}", "public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }", "public double getAverageDegree()\n\t{\n\n\t\tdouble avg = 0;\n\t\tfor(int i=0; i< pDist.length;i++)\n\t\t{\n\t\t\tavg = avg + (i*pDist[i]);\n\t\t}\n\t\treturn avg;\n\t}", "double agression();", "@Override\r\n\tpublic int average(GradeBean param) {\n\t\treturn 0;\r\n\t}", "public Double getAveragePageviews() {\r\n return averagePageviews;\r\n }", "public Double getAssignmentCategoryAverageGrade(List<Student> students){\n \tdouble totalStudentPoints = getTotalCategoryStudentPoints(students);\n \tdouble totalMaxPoints = getTotalCategoryWorth(students);\n \treturn (totalStudentPoints / totalMaxPoints * 100);\n }", "public static void main(String[] args) {\n int work=6*5*17;\n System.out.println(work);\n\n // Print the percentage of the coding hours in the semester if the average\n // work hours weekly is 52\n float avrage=52;\n float all =17*24*7;\n float parcantage = (52*17)/all*100;\n System.out.println(parcantage+\"%\");\n\n\n\n }", "public double getAverage(){\n double total = 0;\n for(double s : scores)total += s;\n return total/scores.length;\n }", "public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}", "@Override\n public int accion() {\n return this.alcance*2/3*3;\n }", "public Double getTVA()\n {\n return (20.0/100.0);\n }", "public double getQuizAverage() {\r\n \r\n double[] quizScores = getLargestQuizGrades();\r\n double quizSum = 0;\r\n int quizzes = 0;\r\n \r\n for(double score : quizScores) {\r\n quizzes++;\r\n quizSum += score;\r\n }\r\n \r\n quizAverage = quizSum / quizzes; \r\n \r\n return quizAverage;\r\n }", "private void calculateMode(){\r\n float[][] tally = new float[2][2];\r\n //The \"best\" so far\r\n tally[0][0] = 0; //AER\r\n tally[0][1] = 0; //amount\r\n //Works out the total\r\n tally[1][0] = 0; //AER\r\n tally[1][1] = 0; //amount\r\n\r\n for(Account aAccount: theAccounts){\r\n if(aAccount.getAer() == tally[1][0]){\r\n tally[1][1]++;\r\n }\r\n else{\r\n if(tally[1][1]>tally[0][1]){\r\n tally[0][0] = tally[1][0];\r\n tally[0][1] = tally[1][1];\r\n\r\n }\r\n tally[1][0] = aAccount.getAer();\r\n tally[1][1] = 0;\r\n }\r\n }\r\n float averageAER = tally[0][0];\r\n float averageBond = startingBonds + (startingBonds*averageAER/100);\r\n\r\n Account averageAccount = new Account(startingBonds,averageBond,averageAER);\r\n System.out.println(averageAccount.toString());\r\n\r\n }", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n return total;\r\n }", "public double averageVolume() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalVolume() / numberOfIcosahedrons();\n }\n }", "public double averageArticlesPerNewspaper() {\n\t\tcheckAuthority();\n\t\ttry {\n\t\t\treturn this.administratorRepository.averageArticlesPerNewspaper();\n\t\t} catch (Exception e) {\n\t\t\treturn 0.;\n\t\t}\n\n\t}", "public void setTotalAdSegments(int value) {\n this.totalAdSegments = value;\n }", "public double averageSurfaceToVolumeRatio() {\n int index = 0;\n double total = 0.0;\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceToVolumeRatio();\n index++;\n }\n }\n return total / icosList.size();\n }", "public double getAverage() {\n return this.average;\n }", "public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }", "double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}", "public double edadPromedio(String ruta)\n\t{\n\t\tdouble media;\n\t\t\n\t\tFile fichero = null;\n\t\tFileReader reader = null;\n\t\tBufferedReader br = null;\n\t\tint acumuladorEdad = 0;\n\t\tint contadorProfesores = 0;\n\t\tString[] campos;\n\t\tint edad, marcaBorrado;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tfichero = new File(ruta);\n\t\t\treader = new FileReader(fichero);\n\t\t\tbr = new BufferedReader(reader);\n\t\t\t\n\t\t\tString linea = br.readLine();\t\t\t\t//Lee el primer registro\n\t\t\n\t\t\twhile(linea != null)\n\t\t\t{\n\t\t\t\tcampos = linea.split(\",\");\n\t\t\t\t\n\t\t\t\tmarcaBorrado = Integer.parseInt(campos[4]);\n\t\t\t\t\n\t\t\t\tif(marcaBorrado == 0)\n\t\t\t\t{\n\t\t\t\t\tedad = Integer.parseInt(campos[3]);\n\t\t\t\t\t\n\t\t\t\t\tacumuladorEdad += edad;\n\t\t\t\t\tcontadorProfesores++;\n\t\t\t\t}\n\n\t\t\t\tlinea = br.readLine();\t\t\t\t\t//Lee el siguiente registro\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tbr.close();\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\tmedia = (double)acumuladorEdad / contadorProfesores;\n\t\t\n\t\treturn media;\n\t}", "public void calculateAverageFmax(){\n ArrayList<Double> fmaxList = new ArrayList<Double>();//Used to determine the SD\n double fmaxSum = 0;\n int profileCount = 0;\n if (averageProfileList == null){\n return;\n }\n for (AverageProfile avProfile: averageProfileList){\n for(Profile profile: avProfile.getReplicateProfileList()){\n if(profile.hasAnLreWindowBeenFound() && !profile.isExcluded()){\n fmaxSum += profile.getFmax();\n profileCount++;\n fmaxList.add(profile.getFmax());\n }\n }\n }\n if (profileCount >= 1 && fmaxSum > 0){\n averageFmax = fmaxSum/profileCount;\n if(fmaxList.size()>1){\n avFmaxCV = MathFunctions.calcStDev(fmaxList)/averageFmax;\n }else{\n avFmaxCV = 0;\n }\n } else {\n averageFmax = 0;\n }\n }", "public abstract double calcAvRating();", "public int getTotalAdSegments() {\n return totalAdSegments;\n }", "public int avgProhibitedItemsPerDay(){\r\n \r\n int trav=apstate.gettravellers();\r\n\t\tint days=apstate.getdays();\r\n\t\tint items=apstate.getitems();\r\n \r\n int avg_prohibited_items_per_day=items/days;\r\n \r\n return avg_prohibited_items_per_day;\r\n }", "public double getAverage() {\n int total = 0;\n\n // sum grades of the student\n for (int grade : grades)\n total += grade;\n\n // return average of the grade\n return (double) total / grades.length;\n }", "public static double getAvg(String line){\n\t\tString[] parts = line.split(\"\\t\");\n\t\tdouble gamesPlayed = (Integer.parseInt(parts[1])) + (Integer.parseInt(parts[2]));\n\t\tdouble avg = (Integer.parseInt(parts[1])) / gamesPlayed;\n\t\treturn avg;\n\t}", "public BigDecimal getRows_examined_avg() {\n return rows_examined_avg;\n }", "public double getAverage()\n {\n if (test1 < 0 || test2 < 0)\n {\n System.out.println(\"Warning: one or more grades have not been entered.\");\n return -1;\n }\n return (test1 + test2) / 2;\n }", "public double[] calcAvgCharMetrics() {\n double[] darrayMetrics = new double[TOTAL_IDX_CNT];\n if (!isChildListType()) {\n darrayMetrics[AVG_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[CHAR_CNT_IDX] = 1.0; // weight.\n if (mType != UnitProtoType.Type.TYPE_UNKNOWN\n && mType != UnitProtoType.Type.TYPE_DOT\n && mType != UnitProtoType.Type.TYPE_ROUND_BRACKET\n && mType != UnitProtoType.Type.TYPE_SQUARE_BRACKET\n && mType != UnitProtoType.Type.TYPE_BRACE\n && mType != UnitProtoType.Type.TYPE_CLOSE_ROUND_BRACKET\n && mType != UnitProtoType.Type.TYPE_CLOSE_SQUARE_BRACKET\n && mType != UnitProtoType.Type.TYPE_CLOSE_BRACE\n && mType != UnitProtoType.Type.TYPE_VERTICAL_LINE\n && mType != UnitProtoType.Type.TYPE_SUBTRACT\n && mType != UnitProtoType.Type.TYPE_SQRT_LEFT\n && mType != UnitProtoType.Type.TYPE_SQRT_SHORT\n && mType != UnitProtoType.Type.TYPE_SQRT_MEDIUM\n && mType != UnitProtoType.Type.TYPE_SQRT_LONG\n && mType != UnitProtoType.Type.TYPE_SQRT_TALL\n && mType != UnitProtoType.Type.TYPE_SQRT_VERY_TALL) {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = 1.0; // weight.\n } else {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = 0.0; // weight.\n }\n darrayMetrics[AVG_VGAP_IDX] = mnWidth;\n darrayMetrics[VGAP_CNT_IDX] = 0.0; // weight\n } else {\n double dSumWidth = 0, dSumNormalCharWidth = 0;\n double dSumHeight = 0, dSumNormalCharHeight = 0;\n double dTotalWeight = 0, dTotalNormalCharWeight = 0;\n double dVGap = 0, dTotalVGapWeight = 0;\n for (int idx = 0; idx < mlistChildren.size(); idx ++) {\n double[] darrayThisMetrics = mlistChildren.get(idx).calcAvgCharMetrics();\n dSumWidth += darrayThisMetrics[AVG_CHAR_WIDTH_IDX] * darrayThisMetrics[CHAR_CNT_IDX];\n dSumNormalCharWidth += darrayThisMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] * darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dSumHeight += darrayThisMetrics[AVG_CHAR_HEIGHT_IDX] * darrayThisMetrics[CHAR_CNT_IDX];\n dSumNormalCharHeight += darrayThisMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] * darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dTotalWeight += darrayThisMetrics[CHAR_CNT_IDX];\n dTotalNormalCharWeight += darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dVGap += darrayThisMetrics[AVG_VGAP_IDX] * darrayThisMetrics[VGAP_CNT_IDX];\n dTotalVGapWeight += darrayThisMetrics[VGAP_CNT_IDX];\n if (idx > 0 && (mnExprRecogType == EXPRRECOGTYPE_VBLANKCUT || mnExprRecogType == EXPRRECOGTYPE_VCUTMATRIX)) {\n double dThisVGap = mlistChildren.get(idx).mnLeft - mlistChildren.get(idx - 1).getRightPlus1();\n dVGap += (dThisVGap > 0)?dThisVGap:0;\n dTotalVGapWeight += (dThisVGap > 0)?1.0:0;\n }\n }\n darrayMetrics[AVG_CHAR_WIDTH_IDX] = Math.max(ConstantsMgr.msnMinCharWidthInUnit, dSumWidth / dTotalWeight);\n darrayMetrics[AVG_CHAR_HEIGHT_IDX] = Math.max(ConstantsMgr.msnMinCharHeightInUnit, dSumHeight / dTotalWeight);\n darrayMetrics[CHAR_CNT_IDX] = dTotalWeight;\n if (dTotalNormalCharWeight == 0) {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = darrayMetrics[AVG_CHAR_WIDTH_IDX];\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = darrayMetrics[AVG_CHAR_HEIGHT_IDX];\n } else {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = Math.max(ConstantsMgr.msnMinCharWidthInUnit, dSumNormalCharWidth / dTotalNormalCharWeight);\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = Math.max(ConstantsMgr.msnMinCharHeightInUnit, dSumNormalCharHeight / dTotalNormalCharWeight);\n }\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = dTotalNormalCharWeight;\n if (dTotalVGapWeight == 0) {\n darrayMetrics[AVG_VGAP_IDX] = darrayMetrics[AVG_CHAR_WIDTH_IDX];\n } else {\n darrayMetrics[AVG_VGAP_IDX] = Math.max(ConstantsMgr.msnMinVGapWidthInUnit, dVGap / dTotalVGapWeight);\n }\n darrayMetrics[VGAP_CNT_IDX] = dTotalVGapWeight;\n }\n return darrayMetrics;\n }", "public double averageSteps() {\n if (day==0) return 0;\n return (double) totalSteps / day;}", "public double getAverage()\n {\n return getSum() / 2.0;\n }", "private void calculateAverages(){\n for (int i=0; i<40; i=i+4){\n totalGoalsScored1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored1 = totalGoalsScored1/numberItems;\n //Total and average scored goals of team 2\n for (int i=2; i<40; i=i+4){\n totalGoalsScored2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored2 = totalGoalsScored2/numberItems;\n //Total and average received goals of team 1\n for (int i=1; i<40; i=i+4){\n totalGoalsReceived1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived1 = totalGoalsReceived1/numberItems;\n //Total and average received goals of team 2\n for (int i=3; i<40; i=i+4){\n totalGoalsReceived2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived2 = totalGoalsReceived2/numberItems;\n }", "private void analyseSamples(){\n EditText editTx;\n\n resetBackgrounds();\n\n MeasureSet measureSet;\n ArrayList<View> views = new ArrayList<View>();\n\n for(int y = 1; y <= rowCount; y++) {\n measureSet = new MeasureSet();\n views.clear();\n measureSet.copyUncertainty(measuredMag);\n for (int x = 1; x <= columnCount; x++) {\n editTx = (EditText) rootView.findViewById(Integer.parseInt(\"10\" + x + \"00\" + y)).findViewById(R.id.third_list_value);\n views.add(editTx);\n\n try {\n measureSet.add(Double.parseDouble(editTx.getText().toString()));\n } catch (Exception e) {\n editTx.setBackgroundResource(R.drawable.red_shape);\n Toast.makeText(getActivity(), getString(R.string.third_invalid_value), Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n if (!StatisticUtils.applyChauvenet(measureSet, views)) {\n Toast.makeText(getActivity(), getString(R.string.third_chauvenet_invalid_samples), Toast.LENGTH_SHORT).show();\n return;\n }\n\n measuredMag.addMeasureSet(measureSet);\n }\n\n ((MainActivity) getActivity()).callFragment(Constants.FINAL_STEP_FRAGMENT, mag1, mag2);\n }", "static double mediaAritmetica (double c, int e, int f) {\n return (c+e+f)/3;\n }", "public void determineClassAvg(){//determineClassAvg body start\n\t\t\n\t\t//declaring variables\n\t\tint total \t\t\t= 0;\n\t\tint counter \t\t= 0;\n\t\tint grade;\n\t\tdouble avg;\n\t\t\n\t\t//Reference variables\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.printf(\"Enter First Grade or Enter -1 to quit: \");\n\t\tgrade = input.nextInt();\n\t\t\n\t\twhile(grade != -1){\n\t\t\ttotal \t\t= grade + total;\n\t\t\tcounter\t\t= counter + 1;\n\t\t\tSystem.out.printf(\"Enter Next Grade or enter -1 to quite: \");\n\t\t\tgrade \t\t= input.nextInt();\t\t\t\n\t\t}\n\t\t\n\t\tif(counter != 0){\n\t\t\tavg \t\t= (double) total/counter;\n\t\t\tSystem.out.printf(\"total number of student %d \\n\",counter);\n\t\t\tSystem.out.printf(\"Total Grade %d \\n\", total);\n\t\t\tSystem.out.printf(\"avrage = %.2f \\n\",avg);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.printf(\"No grade were entered\");\n\t\t}\n\t\tinput.close();\n\t}", "public Double avgCategoriesPerRendezvous() {\n\t\tDouble result;\r\n\t\tDouble sum = 0.0;\r\n\t\tCollection<Category> auxc = new ArrayList<Category>();\r\n\t\tfinal Collection<Rendezvous> auxr = this.rendezvousService.findAll();\r\n\t\tfor (final Rendezvous r : auxr) {\r\n\t\t\tauxc = this.findByRendezvousID(r.getId());\r\n\t\t\tsum = sum + auxc.size();\r\n\t\t}\r\n\t\tresult = sum / auxr.size();\r\n\t\treturn result;\r\n\t}", "public static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "public double stddev(){\n return StdStats.stddev(percentage);\n }", "private void calculateMean(float total){\r\n float averageBonds = total/accountInTotal;\r\n float averageAER = (averageBonds-startingBonds)/(startingBonds/100);\r\n\r\n Account averageAccount = new Account(startingBonds,averageBonds,averageAER);\r\n System.out.println(averageAccount.toString());\r\n\r\n }", "public double getTotalGoldenCardAverage() {\n return StatisticsHelper.getDivision(getTotalGoldenCards(), getTotalDeckAmount());\n }", "@Override\n\tpublic double getvolume(){\n\t\tdouble[] ab_cross_ac = calculate_vcp(getVector_AB(),getVector_AC());\n\t\t\n\t\t//dot product of ab_cross_ac and ad\n\t\tdouble S = calculate_vdp(ab_cross_ac,getVector_AD());\n\t\t\n\t\t//formula of tetrahedron's volume\n\t\treturn Math.abs(S)/6;\t\n\t}", "public double averageVolume() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).volume();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n \r\n return total;\r\n }", "public double averageFeaturesPerExample(){\n\t\treturn sumFeatureValues/((double)exampleCount);\n\t}", "public double getAscent() throws PDFNetException {\n/* 876 */ return GetAscent(this.a);\n/* */ }", "public double getAssignmentsAvg(long course_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n double sum = 0.0;\n double count = 0.0;\n\n\n List<Assignment> assignmentList = new ArrayList<>();\n Cursor cursor = null;\n try {\n cursor = db.query(Config.TABLE_NAME_ASSIGNMENT, null, null,\n null, null, null, null);\n\n if (cursor != null) {\n if (cursor.moveToFirst()) {\n\n do {\n if (cursor.getInt(cursor.getColumnIndex(\n Config.COLUMN_COURSE_ID)) == course_id) {\n long a_id = cursor.getInt(cursor.getColumnIndex(\n Config.COLUMN_ASSIGNMENT_ID));\n long c_id = cursor.getInt(cursor.getColumnIndex(\n Config.COLUMN_COURSE_ID));\n String title = cursor.getString(cursor.getColumnIndex(\n Config.COLUMN_ASSIGNMENT_TITLE));\n double grade = cursor.getDouble(cursor.getColumnIndex(\n Config.COLUMN_ASSIGNMENT_GRADE));\n assignmentList.add(new Assignment(a_id, c_id, title, grade));\n }\n\n } while (cursor.moveToNext());\n\n for (int i = 0; i < assignmentList.size(); i++) {\n sum += assignmentList.get(i).getGrade();\n count++;\n }\n\n return sum / count;\n }\n }\n\n } catch (Exception e) {\n Log.d(TAG, \"Exception: \" + e.getMessage());\n } finally {\n if (cursor != null)\n cursor.close();\n db.close();\n }\n\n return 0.0;\n }", "public double averageSurfaceArea() {\r\n double listAvgSurfaceArea = 0.0;\r\n if (list.size() != 0) {\r\n listAvgSurfaceArea = totalSurfaceArea() / list.size();\r\n }\r\n return listAvgSurfaceArea;\r\n }", "public double getAvgDraws() {\n\t\tdouble result = -1.0, sum = 0.0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT SUM(drawCnt) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tsum = this.rs.getDouble(1) ;\n\t\t\t}\n\t\t\tthis.rs = smt.executeQuery(\"SELECT COUNT(id) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tcount = this.rs.getInt(1);\n\t\t\t\tresult = sum / count;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public double getGradeAverage() {\n int gradesTotal = 0;\n for (int grade : grades) {\n gradesTotal += grade;\n }\n return gradesTotal / grades.size();\n }", "public Double averageArticlesPerNewspaperPrivates() {\n\t\tcheckAuthority();\n\t\tDouble a = this.administratorRepository\n\t\t\t\t.averageArticlesPerNewspaperPrivates();\n\t\tif (a == null) {\n\t\t\ta = 0.;\n\t\t}\n\t\ttry {\n\t\t\treturn a;\n\t\t} catch (Exception e) {\n\t\t\treturn 0.;\n\t\t}\n\n\t}", "int getEvd();", "public double getAverageEncoderPosition()\n {\n \treturn ( Math.abs(leftBackTalon.getSelectedSensorPosition(0)) + Math.abs(rightBackTalon.getSelectedSensorPosition(0))) / 2;\n }", "private static double getOEEQuality(Batch batch) {\n double quality = ((double) batch.getAccepted()) / (((double) batch.getAccepted()) + ((double) batch.getDefect()));\n\n return quality;\n }", "private double avgNonEmpty() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (numEntries / percent);\n\t}", "public double getDescent() throws PDFNetException {\n/* 894 */ return GetDescent(this.a);\n/* */ }", "public double[] getAverages() {\n\t\t\n\t\t// initialize array\n\t\taverages = new double[5];\n\t\t\n\t\t// used with calcAverage for the startIndex\n\t\tint curIndex = 0;\n\t\taverages[ASSIGNMENTS] = calcAverage(curIndex, curIndex += NUM_ASSIGNMENTS);\n\t\taverages[QUIZZES] = calcAverage(curIndex, curIndex += NUM_QUIZZES);\n\t\taverages[TESTS] = calcAverage(curIndex, curIndex += NUM_TESTS);\n\t\taverages[FINAL] = calcAverage(curIndex, curIndex + 1);\n\t\t\n\t\t// get the overall average\n\t\tdouble quizTestAverage = (averages[QUIZZES] + averages[TESTS]) * PERCENT_QUIZ_AND_TESTS / 2;\n\t\tdouble assignmentAverage = averages[ASSIGNMENTS] * PERCENT_ASSIGNMENTS;\n\t\tdouble finalAverage = averages[FINAL] * PERCENT_FINAL;\n\t\taverages[OVERALL] = quizTestAverage + assignmentAverage + finalAverage;\n\t\t\n\t\t// return the array\n\t\treturn averages;\n\t}", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "public double averageSurfaceArea() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalSurfaceArea() / numberOfIcosahedrons();\n }\n }", "public int getAverageScore() {\n\t\treturn totalScore / quizCount;\n\t}", "public Double averageArticlesPerNewspaperPublics() {\n\t\tcheckAuthority();\n\t\tDouble a = this.administratorRepository\n\t\t\t\t.averageArticlesPerNewspaperPublics();\n\t\tif (a == null) {\n\t\t\ta = 0.;\n\t\t}\n\t\ttry {\n\t\t\treturn a;\n\t\t} catch (Exception e) {\n\t\t\treturn 0.;\n\t\t}\n\t}", "protected abstract double getRefinementStandardDeviation();", "double average(double[] doubles) {\n double total = 0.0;\n //int count = 0;\n for (double d: doubles) {\n total = total + d;\n //count = count + 1;\n }\n //return total / count;\n return total / doubles.length;\n }", "public static double getAverage(int start, double[] d) {\n double average = 0;\n for (int i = 0; i < 110; i++) {\n average = average + d[i];\n }\n return average / 110;\n }", "int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }", "public void sumAte()\r\n {\r\n meanArk = 0;\r\n varArk = 0;\r\n double sumA = 0;\r\n double sumA2 = 0;\r\n float nArk = 0;\r\n for (SignatureSample s:keys) {\r\n nArk++;\r\n sumA += s.arklen;\r\n sumA2 += s.arklen * s.arklen;\r\n }\r\n meanArk = sumA / nArk;\r\n varArk = Math.sqrt((sumA2/nArk) - (meanArk*meanArk));\r\n }", "private void calcEfficiency() {\n \t\tdouble possiblePoints = 0;\n \t\tfor (int i = 0; i < fermentables.size(); i++) {\n \t\t\tFermentable m = ((Fermentable) fermentables.get(i));\n \t\t\tpossiblePoints += (m.getPppg() - 1) * m.getAmountAs(\"lb\")\n \t\t\t\t\t/ postBoilVol.getValueAs(\"gal\");\n \t\t}\n \t\tefficiency = (estOg - 1) / possiblePoints * 100;\n \t}", "public double mediaHabitantes() {\r\n\treturn totalHabitantes() / numCiudades();\r\n \r\n }" ]
[ "0.690726", "0.5998838", "0.5886561", "0.5810236", "0.57868636", "0.5751348", "0.5634202", "0.5624466", "0.5603347", "0.55401534", "0.5463206", "0.5450805", "0.54245895", "0.54230535", "0.5405288", "0.532744", "0.5307026", "0.53006905", "0.5283948", "0.5275774", "0.52704066", "0.5259095", "0.52573043", "0.52549326", "0.5223375", "0.5193923", "0.5182295", "0.5176999", "0.5149761", "0.51449233", "0.51433444", "0.51260316", "0.5125921", "0.5096543", "0.50924635", "0.5088673", "0.50751615", "0.50743675", "0.5073641", "0.5071117", "0.5070257", "0.50576204", "0.50542825", "0.5052962", "0.5052692", "0.5049504", "0.50462294", "0.50449705", "0.5043766", "0.5041375", "0.50221837", "0.5015104", "0.50070405", "0.50065607", "0.50060105", "0.4995621", "0.49935445", "0.49857023", "0.4982598", "0.497853", "0.49676755", "0.49541062", "0.4952664", "0.49507982", "0.49350795", "0.4933206", "0.4927976", "0.49171385", "0.49095923", "0.49094418", "0.4903976", "0.48979586", "0.48952478", "0.48945767", "0.48883042", "0.4885075", "0.48812693", "0.48771334", "0.48754808", "0.48739135", "0.48685586", "0.4859813", "0.48574516", "0.48449546", "0.4842846", "0.48419815", "0.48386", "0.48380753", "0.48310307", "0.48302364", "0.48256058", "0.48226237", "0.48163748", "0.48125976", "0.4806449", "0.48045018", "0.48036498", "0.48026785", "0.47987953", "0.47982636" ]
0.52123004
25
Created by Dengw on 2017/11/13
public interface WithHoldOrderContract { ResponseData resendWithholdOrder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void kk12() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "private void m50366E() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "public void gored() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() {\n\n \n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public void mo12930a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private Rekenhulp()\n\t{\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo9848a() {\n }", "public abstract void mo70713b();", "public void mo21877s() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}" ]
[ "0.60101455", "0.5871768", "0.58214754", "0.58176446", "0.578082", "0.578082", "0.5767828", "0.5759595", "0.57401645", "0.56933224", "0.56816757", "0.56628215", "0.5646262", "0.56246614", "0.5607073", "0.560099", "0.559352", "0.5589614", "0.5579941", "0.5577054", "0.5564221", "0.55312043", "0.5523957", "0.5515389", "0.55063564", "0.54707277", "0.54647887", "0.54453313", "0.5443421", "0.54432064", "0.54432064", "0.54432064", "0.54432064", "0.54432064", "0.54432064", "0.54432064", "0.5436821", "0.5430029", "0.5428948", "0.54175544", "0.54155356", "0.54106706", "0.5410623", "0.5401152", "0.5401152", "0.5401152", "0.5401152", "0.5401152", "0.539599", "0.539599", "0.53922695", "0.5371403", "0.5350554", "0.53414875", "0.5340036", "0.53120214", "0.53120214", "0.53120214", "0.5308809", "0.5308809", "0.5308809", "0.53055245", "0.53044844", "0.5302771", "0.5297629", "0.5292856", "0.5290586", "0.5286974", "0.5286974", "0.5286974", "0.528024", "0.52792954", "0.52718085", "0.5268524", "0.5267753", "0.52625275", "0.52623826", "0.52623826", "0.5260558", "0.52569926", "0.5255457", "0.524967", "0.52482635", "0.5243575", "0.52429277", "0.5242819", "0.5239497", "0.52361035", "0.52280426", "0.52261937", "0.5221928", "0.522101", "0.5214657", "0.5214657", "0.5211345", "0.52062756", "0.5205391", "0.5203305", "0.5203218", "0.5202145", "0.519459" ]
0.0
-1
Load the saved position, width etc..
public void init(){ try { propertiesMemento = new PropertiesMemento(); propertiesMemento.load(); propertiesMemento.setScreenLocationProperties(this); } catch (Exception e) { JOptionPane.showMessageDialog(this, "Can't load the stored properties, carrying on.", "Warning", JOptionPane.WARNING_MESSAGE); } // Logger set-up logger = Logger.getLogger(YorkBrowser.class); try { FileAppender appender; File logFile = new File(propertiesMemento.getAppDir() + "logfile.txt"); logFile.delete(); // "r" milliseconds, "t" thread, "c" category - the class name? etc., "p" priority - DEBUG etc., "m" message, "n" separator FileAppender textAppender = new FileAppender(new PatternLayout("%r %-5p %c{1} - %m%n"), logFile.getAbsolutePath()); BasicConfigurator.configure(textAppender); File xmlLogFile = new File(propertiesMemento.getAppDir() + "logfile.xml"); xmlLogFile.delete(); appender = new FileAppender(new XMLLayout(), xmlLogFile.getAbsolutePath()); BasicConfigurator.configure(appender); BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("%r %-5p %c{1} \t - %m%n"))); } catch (Exception e) { System.out.println("Cannot configure the logger"); } if("on".equals(propertiesMemento.get("logging"))){ logger.debug("Logging turned on from properties file"); logger.setLevel(Level.DEBUG); } else{ logger.debug("turned logging off"); // Turn off at the root level logger.getParent().setLevel(Level.OFF); } logger.info("Log file starts"); logger.debug("OS:" + System.getProperty("os.name")); // Set the look and feel // Install the Windows look and feel if on windows if(System.getProperty("os.name").indexOf("Windows") != -1){ try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (Exception e) { logger.warn("Exception loading the look and feel"); } } // Create directories structure if required try{ YorkUtils.setupDirectoryStructure(propertiesMemento.getDataDir()); } catch(Exception e){ logger.error("Exception when checking/setting directories", e); } // Add some listeners addWindowListener(this); setTitle("ZygoMeme York"); // Set icon setIconImage(new ImageIcon(propertiesMemento.getImageDir() + "graphLogo32.png").getImage()); // Set up the layout of the window JPanel rootPanel = new JPanel(); rootPanel.setLayout(new BorderLayout()); getContentPane().add(rootPanel); // Create the menu bar JPanel topPanel = menuCreator.createMenu(eventHandler, getProperties()); // Create the toolbar topPanel.add(createToolBar()); rootPanel.add(topPanel, BorderLayout.NORTH); // Add the tabbed pane tabbedPane = new JTabbedPane(); tabbedPane.addChangeListener(this); addKeyListener(this); tabbedPane.addKeyListener(this); rootPanel.add(tabbedPane, BorderLayout.CENTER); // Add the status bar JPanel statusBar = new JPanel(); statusBar.setLayout(new BoxLayout(statusBar, BoxLayout.X_AXIS)); rootPanel.add(statusBar, BorderLayout.SOUTH); setStatusBarText("Ready"); statusBar.add(statusLabel); // Set up the size and position and make visible setSize(new Dimension(width, height)); setLocation(xPos, yPos); // Open any saved tabs openSavedTabs(); progressMonitor = new ProgressMonitor(this, "Running Model", "", 0, 1000); setVisible(true); // TODO Make this selectable in user preferences checkForUpdates(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }", "public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }", "public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords = new float[0];\n UVCoords = new float[0];\n DrawOrder = new int[0];\n }", "public void restoreFromFile()\n\t{\n rectForSelection = new Rectangle2D.Double(rettangoloX,rettangoloY,larghezza,altezza);\n rectSelTopLeft = new Rectangle2D.Double(rettangoloX-3,rettangoloY-3,6,6);\n rectSelBottomLeft = new Rectangle2D.Double(rettangoloX-3,rettangoloY+altezza-3,6,6);\n rectSelTopRight = new Rectangle2D.Double(rettangoloX+larghezza-3,rettangoloY-3,6,6);\n rectSelBottomRight = new Rectangle2D.Double(rettangoloX+larghezza-3,rettangoloY+altezza-3,6,6);\t\t\n\t}", "public void load() {\n structure = SpigotUtils.structBetweenTwoLocations(pos1, pos2, material);\n }", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "private void saveAttributes() {\n o_width = width;\n o_height = height;\n o_fps = fps;\n o_bps = bps;\n o_totalFrames = totalFrames;\n }", "public void load() ;", "@Override\n\tpublic void setOffsetBackToFile() {\n\t\tString newXString;\n\t\tString newYString;\n\t\t newXString = String.valueOf(getX().getValueInSpecifiedUnits())+getX().getUserUnit();\n\t newYString = String.valueOf(getY().getValueInSpecifiedUnits())+getY().getUserUnit();\n\t\tjc.getElement().setAttribute(\"x\", newXString);\n\t\tjc.getElement().setAttribute(\"y\", newYString);\n\t\ttry {\n\t\t\tjc.getView().getFrame().writeFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }", "public void load (){\n load(MAX_PREZ);\n }", "void load();", "void load();", "private void load() {\n //Stopping all animations\n gameController.animGrid.cancelAnimations();\n\n for (int xx = 0; xx < gameController.grid.field.length; xx++) {\n for (int yy = 0; yy < gameController.grid.field[0].length; yy++) {\n int value = (int) SharedPreferenceUtil.get(this, xx + \"_\" + yy, -1);\n if (value > 0) {\n gameController.grid.field[xx][yy] = new Tile(xx, yy, value);\n } else if (value == 0) {\n gameController.grid.field[xx][yy] = null;\n }\n\n int undoValue = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, -1);\n if (undoValue > 0) {\n gameController.grid.undoField[xx][yy] = new Tile(xx, yy, undoValue);\n } else if (value == 0) {\n gameController.grid.undoField[xx][yy] = null;\n }\n }\n }\n\n gameController.currentScore = (int) SharedPreferenceUtil.get(this, SpConstant.SCORE, gameController.currentScore);\n gameController.historyHighScore = (int) SharedPreferenceUtil.get(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n gameController.lastScore = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n gameController.canUndo = (boolean) SharedPreferenceUtil.get(this, SpConstant.CAN_UNDO, gameController.canUndo);\n gameController.gameState = (int) SharedPreferenceUtil.get(this, SpConstant.GAME_STATE, gameController.gameState);\n gameController.lastGameState = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n gameController.isAudioEnabled = (boolean) SharedPreferenceUtil.get(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n\n }", "private void persistChunkBounds()\n\t{\n\t\tprevChunkBounds[BOUND_LEFT] = chunkBounds[BOUND_LEFT];\n\t\tprevChunkBounds[BOUND_RIGHT] = chunkBounds[BOUND_RIGHT];\n\t\tprevChunkBounds[BOUND_BOTTOM] = chunkBounds[BOUND_BOTTOM];\n\t\tprevChunkBounds[BOUND_TOP] = chunkBounds[BOUND_TOP];\n\t}", "public void load();", "public void load();", "public void reload() {\n\t\tTextMeshData tmd = font.loadText(this);\n\t\tmodelLength = tmd.modelLength();\n\t\tmodelHeight = tmd.modelHeight();\n\t\tif (this.vao != null)\n\t\t\tthis.vao.delete();\n\t\tthis.vao = Loader.loadToVAO(new int[] { 3, 2 }, tmd.getVertexPositions(), tmd.getTextureCoords());\n\t}", "public void load() {\n\t}", "public void save() {\n\n\t\tint[][] rawData = new int[2][CHUNK_SIZE * CHUNK_SIZE];\n\n\t\tfor (int l = 0; l < 2; l++) {\n\t\t\tLayer layer = Layer.get(l);\n\t\t\tfor (int y = 0; y < CHUNK_SIZE; y++) {\n\t\t\t\tfor (int x = 0; x < CHUNK_SIZE; x++) {\n\t\t\t\t\trawData[l][x + y * CHUNK_SIZE] = getTileId(layer, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.saveData = new RawChunkData(rawData);\n\t}", "private void save() {\n Tile[][] field = gameController.grid.field;\n Tile[][] undoField = gameController.grid.undoField;\n// SharedPreferenceUtil.put(this, SpConstant.WIDTH, field.length);\n// SharedPreferenceUtil.put(this, SpConstant.HEIGHT, field.length);\n for (int xx = 0; xx < field.length; xx++) {\n for (int yy = 0; yy < field[0].length; yy++) {\n if (field[xx][yy] != null) {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, field[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, 0);\n }\n\n if (undoField[xx][yy] != null) {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, undoField[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, 0);\n }\n }\n }\n SharedPreferenceUtil.put(this, SpConstant.SCORE, gameController.currentScore);\n SharedPreferenceUtil.put(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n SharedPreferenceUtil.put(this, SpConstant.CAN_UNDO, gameController.canUndo);\n SharedPreferenceUtil.put(this, SpConstant.GAME_STATE, gameController.gameState);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n SharedPreferenceUtil.put(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n }", "private void loadCheckpointValues(int position) {\n if (position >= checkpoints.size()) {\n ((FlatEditText)findViewById(R.id.hint_text_box)).setText(\"\");\n ((ImageView)findViewById(R.id.clue_image_view)).setImageResource(android.R.color.transparent);\n recordedLoc = null;\n img = null;\n return;\n }\n Checkpoint currentCheckpoint = checkpoints.get(position);\n ((FlatEditText)findViewById(R.id.hint_text_box)).setText(currentCheckpoint.getClue().getText());\n ((ImageView)findViewById(R.id.clue_image_view)).setImageBitmap(currentCheckpoint.getClue().getImage());\n recordedLoc = currentCheckpoint.getLocation();\n }", "private void loadPersistedData() {\n IntegerRange storedAutoStartOnDisconnectDelayRange =\n AUTOSTART_ON_DISCONNECT_DELAY_RANGE_SETTING.load(mDeviceDict);\n if (storedAutoStartOnDisconnectDelayRange != null) {\n mPilotingItf.getAutoStartOnDisconnectDelay().updateBounds(storedAutoStartOnDisconnectDelayRange);\n }\n\n DoubleRange endingHoveringAltitudeRange = ENDING_HOVERING_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (endingHoveringAltitudeRange != null) {\n mPilotingItf.getEndingHoveringAltitude().updateBounds(endingHoveringAltitudeRange);\n }\n\n DoubleRange minAltitudeRange = MIN_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (minAltitudeRange != null) {\n mPilotingItf.getMinAltitude().updateBounds(minAltitudeRange);\n }\n\n applyPresets();\n }", "public void loadPersistencePreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean persistent = sharedPreferences.getBoolean(\"TileCachePersistence\", true);\n Log.v(TAG, \"Cache Size: \" + sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT)\n + \", Persistent: \" + persistent);\n int capacity = Math.min(sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT),\n MapsActivity.FILE_SYSTEM_CACHE_SIZE_MAX);\n TileCache fileSystemTileCache = this.mapView.getFileSystemTileCache();\n\n fileSystemTileCache.setPersistent(persistent);\n fileSystemTileCache.setCapacity(capacity);\n // text size\n String textScaleDefault = getString(R.string.preferences_text_scale_default);\n this.mapView.setTextScale(Float.parseFloat(sharedPreferences.getString(\"mapTextScale\", textScaleDefault)));\n }", "public void load() {\n }", "public void loadSavedGame(SavedGame saved){\n ArrayList<Boat> boats = saved.getBoatArraySaved();\n int height = saved.getHeightSaved();\n int width = saved.getWidthSaved();\n\n Board board = new Board(height, width, 0);\n GameData gameData = new GameData(board, boats, saved.isPlayerIsAi());\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n\n if(saved.isPlayerIsAi()){\n gameData.setAi(saved.getAiPlayerSaved());\n }\n gameData.setFeedbackList(saved.getFeedbackListSaved());\n gameData.setGuessArray(saved.getGuessesSaved());\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n\n }", "public void loadMaze(){\n try {\n byte savedMazeBytes[] = null;\n InputStream in = new MyDecompressorInputStream(new FileInputStream(\"savedMaze.maze\"));\n savedMazeBytes = new byte[1000012];\n in.read(savedMazeBytes);\n in.close();\n this.maze=new Maze(savedMazeBytes);\n isMazeGenerated=true;\n setChanged();\n notifyObservers();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void reload() {\n\t\tpause();\n\t\tsetPosition(0);\n\t}", "public void load() {\n World loadGame;\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n int fileOpened = fileChooser.showOpenDialog(GameFrame.this);\n\n if (fileOpened == JFileChooser.APPROVE_OPTION) {\n FileInputStream fileInput =\n new FileInputStream(fileChooser.getSelectedFile());\n ObjectInputStream objInput = new ObjectInputStream(fileInput);\n loadGame = (World) objInput.readObject();\n objInput.close();\n fileInput.close();\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException x) {\n x.printStackTrace();\n return;\n }\n\n world = loadGame;\n gridPanel.removeAll();\n fillGamePanel();\n world.reinit();\n setWorld(world);\n GameFrame.this.repaint();\n System.out.println(\"Game loaded.\");\n }", "@Override\n\tpublic void load(FileReader reader) {\n\t\ttry {\n\t\t\tthis.width = reader.readFloat();\n\t\t\tthis.height = reader.readFloat();\n\t\t} catch (IOException exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "public void preSaveInit() {\n persistentData.clear();\n for (int i = 0; i < getNumPoints(); i++) {\n persistentData.add(getPoint(i));\n }\n }", "@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\toutState.putInt(\"titile_position\", titile_position);\n\t\toutState.putFloat(\"fromXDelta\", fromXDelta);\n\t}", "@Override\n\tprotected void readImpl()\n\t{\n\t\t_x = readD();\n\t\t_y = readD();\n\t\t_z = readD();\n\t\t_heading = readD();\n\t}", "private void load() {\n Uri poiUri = Uri.withAppendedPath(Wheelmap.POIs.CONTENT_URI_POI_ID,\r\n String.valueOf(poiID));\r\n\r\n // Then query for this specific record:\r\n Cursor cur = getActivity().managedQuery(poiUri, null, null, null, null);\r\n\r\n if (cur.getCount() < 1) {\r\n cur.close();\r\n return;\r\n }\r\n\r\n cur.moveToFirst();\r\n\r\n WheelchairState state = POIHelper.getWheelchair(cur);\r\n String name = POIHelper.getName(cur);\r\n String comment = POIHelper.getComment(cur);\r\n int lat = (int) (POIHelper.getLatitude(cur) * 1E6);\r\n int lon = (int) (POIHelper.getLongitude(cur) * 1E6);\r\n int nodeTypeId = POIHelper.getNodeTypeId(cur);\r\n int categoryId = POIHelper.getCategoryId(cur);\r\n\r\n NodeType nodeType = mSupportManager.lookupNodeType(nodeTypeId);\r\n // iconImage.setImageDrawable(nodeType.iconDrawable);\r\n\r\n setWheelchairState(state);\r\n // nameText.setText(name);\r\n\r\n String category = mSupportManager.lookupCategory(categoryId).localizedName;\r\n // categoryText.setText(category);\r\n nodetypeText.setText(nodeType.localizedName);\r\n commentText.setText(comment);\r\n addressText.setText(POIHelper.getAddress(cur));\r\n websiteText.setText(POIHelper.getWebsite(cur));\r\n phoneText.setText(POIHelper.getPhone(cur));\r\n\r\n /*\r\n * POIMapsforgeOverlay overlay = new POIMapsforgeOverlay();\r\n * overlay.setItem(name, comment, nodeType, state, lat, lon);\r\n * mapView.getOverlays().clear(); mapView.getOverlays().add(overlay);\r\n * mapController.setCenter(new GeoPoint(lat, lon));\r\n */\r\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "public void load() throws IOException {\r\n File file = new File(this.filename);\r\n //if file exist.\r\n if (file.exists() && !file.isDirectory()) {\r\n ObjectInputStream is = null;\r\n try {\r\n //opening and reaind the source file\r\n is = new ObjectInputStream(new FileInputStream(this.filename));\r\n SettingsFile temp = (SettingsFile) is.readObject();\r\n //import the loaded file data to the current core.SettingsFile\r\n this.boardSize = temp.getBoardSize();\r\n this.firstPlayer = temp.getFirstPlayer();\r\n this.secondPlayer = temp.getSecondPlayer();\r\n this.player1Color = temp.getPlayer1Color();\r\n this.player2Color = temp.getPlayer2Color();\r\n } catch (IOException e) {\r\n System.out.println(\"Error while loading\");\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(\"Problem with class\");\r\n } finally {\r\n if (is != null) {\r\n is.close();\r\n }\r\n }\r\n }\r\n //if no file, set default settings.\r\n else {\r\n save(SIZE, FIRST_PLAYER, SECOND_PLAYER, PLAYER1COLOR, PLAYER2COLOR);\r\n }\r\n }", "void loadData();", "void loadData();", "public void load() throws SAXException, IOException {\n\t\tif (!reader.fileLocation().equals(saveLocation)) {\n\t\t\treader.fileLocation(saveLocation);\n\t\t}\n\t\t\n\t\treader.read();\n\t\tgenerator.document(reader.document());\n\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readFromFile(String mapName, JTextField tR, JTextField oR) {\r\n\t\tint space1 = 0, space2 = 0;\r\n\t\tint count = 0;\r\n\r\n\t\ttry {\r\n\t\t\tFileInputStream fstream = new FileInputStream(mapName);\r\n\t\t\tDataInputStream in = new DataInputStream(fstream);\r\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\t\tString strLine;\r\n\t\t\tsavingList.clear();\r\n\t\t\tdrawList.clear();\r\n\t\t\tdrawXList.clear();\r\n\t\t\tdrawYList.clear();\r\n\r\n\t\t\tstrLine = br.readLine();\r\n\t\t\tfor (int j = 0; j < strLine.length(); j++) {\r\n\t\t\t\tif (strLine.charAt(j) == ' ') {\r\n\t\t\t\t\ttR.setText(strLine.substring(0, j));\r\n\t\t\t\t\toR.setText(strLine.substring(j + 1, strLine.length()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\twhile ((strLine = br.readLine()) != null) {\r\n\t\t\t\tfor (int i = 0; i < strLine.length(); i++) {\r\n\t\t\t\t\tif (strLine.charAt(i) == ' ' && count == 0) {\r\n\t\t\t\t\t\tspace1 = i;\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (strLine.charAt(i) == ' ' && count == 1)\r\n\t\t\t\t\t\tspace2 = i;\r\n\t\t\t\t}\r\n\t\t\t\tiii = new ImageIcon(this.getClass().getResource(\r\n\t\t\t\t\t\tstrLine.substring(0, space1)));\r\n\t\t\t\tsavingList.add(strLine.substring(0, space1));\r\n\t\t\t\tImage im = iii.getImage();\r\n\t\t\t\tint x = Integer.parseInt(strLine.substring(space1 + 1, space2))\r\n\t\t\t\t\t\t- im.getWidth(null) / 2;\r\n\t\t\t\tint y = Integer.parseInt(strLine.substring(space2 + 1,\r\n\t\t\t\t\t\tstrLine.length()))\r\n\t\t\t\t\t\t- im.getHeight(null) / 2;\r\n\t\t\t\tdrawXList.add(x);\r\n\t\t\t\tdrawYList.add(y);\r\n\t\t\t\tdrawList.add(iii.getImage());\r\n\t\t\t\tcount = 0;\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t\trepaint();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public final void setImportantImageInfo() {\r\n int ix = 0, iy = 0, iz = 0;\r\n int i;\r\n \r\n i = 0;\r\n if (getDimElem(0).name.equalsIgnoreCase(\"time\")) {\r\n i = 1;\r\n }\r\n final String firstDim = getDimElem(i).name;\r\n Preferences.debug(\"firstDim = \" + firstDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n final String secondDim = getDimElem(i+1).name;\r\n Preferences.debug(\"secondDim = \" + secondDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n String thirdDim = null;\r\n if (getExtents().length > 2) {\r\n thirdDim = getDimElem(i+2).name;\r\n Preferences.debug(\"thirdDim = \" + thirdDim + \"\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n\r\n for (i = 0; i < varArray.length; i++) {\r\n\r\n if (varArray[i].name.equals(\"image\")) {\r\n setOffset(varArray[i].begin);\r\n Preferences.debug(\"Image offset = \" + getOffset() + \"\\n\", Preferences.DEBUG_FILEIO);\r\n\r\n switch (varArray[i].nc_type) {\r\n\r\n case NC_BYTE:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = UBYTE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.UBYTE);\r\n } else {\r\n Preferences.debug(\"Data type = BYTE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.BYTE);\r\n }\r\n\r\n break;\r\n\r\n case NC_SHORT:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = USHORT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.USHORT);\r\n } else {\r\n Preferences.debug(\"Data type = SHORT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.SHORT);\r\n }\r\n\r\n break;\r\n\r\n case NC_INT:\r\n if (varArray[i].signtype.equals(\"unsigned\")) {\r\n Preferences.debug(\"Data type = UINTEGER\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.UINTEGER);\r\n } else {\r\n Preferences.debug(\"Data type = INTEGER\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.INTEGER);\r\n }\r\n\r\n break;\r\n\r\n case NC_FLOAT:\r\n Preferences.debug(\"Data type = FLOAT\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.FLOAT);\r\n break;\r\n\r\n case NC_DOUBLE:\r\n Preferences.debug(\"Data type = DOUBLE\\n\", Preferences.DEBUG_FILEIO);\r\n setDataType(ModelStorageBase.DOUBLE);\r\n break;\r\n\r\n default:\r\n Preferences.debug(\"varArray[\" + i + \"].nc_type illegally = \" + varArray[i].nc_type + \"\\n\", \r\n \t\tPreferences.DEBUG_FILEIO);\r\n MipavUtil.displayError(\"Invalid type in FileInfoMinc\");\r\n }\r\n\r\n for (final FileMincAttElem elem : varArray[i].vattArray) {\r\n if (elem.name.equals(\"valid_range\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmin = ((Byte) elem.values[0]).byteValue();\r\n vmax = ((Byte) elem.values[1]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmin = ((Character) elem.values[0]).charValue();\r\n vmax = ((Character) elem.values[1]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmin = ((Short) elem.values[0]).shortValue();\r\n vmax = ((Short) elem.values[1]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmin = ((Integer) elem.values[0]).intValue();\r\n vmax = ((Integer) elem.values[1]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmin = ((Float) elem.values[0]).floatValue();\r\n vmax = ((Float) elem.values[1]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmin = ((Double) elem.values[0]).doubleValue();\r\n vmax = ((Double) elem.values[1]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmin = \" + vmin + \"\\n\", Preferences.DEBUG_FILEIO);\r\n Preferences.debug(\"vmax = \" + vmax + \"\\n\", Preferences.DEBUG_FILEIO);\r\n } else if (elem.name.equals(\"valid_max\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmax = ((Byte) elem.values[0]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmax = ((Character) elem.values[0]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmax = ((Short) elem.values[0]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmax = ((Integer) elem.values[0]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmax = ((Float) elem.values[0]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmax = ((Double) elem.values[0]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmax = \" + vmax + \"\\n\", Preferences.DEBUG_FILEIO);\r\n } else if (elem.name.equals(\"valid_min\")) {\r\n\r\n switch (elem.nc_type) {\r\n\r\n case NC_BYTE:\r\n vmin = ((Byte) elem.values[0]).byteValue();\r\n break;\r\n\r\n case NC_CHAR:\r\n vmin = ((Character) elem.values[0]).charValue();\r\n break;\r\n\r\n case NC_SHORT:\r\n vmin = ((Short) elem.values[0]).shortValue();\r\n break;\r\n\r\n case NC_INT:\r\n vmin = ((Integer) elem.values[0]).intValue();\r\n break;\r\n\r\n case NC_FLOAT:\r\n vmin = ((Float) elem.values[0]).floatValue();\r\n break;\r\n\r\n case NC_DOUBLE:\r\n vmin = ((Double) elem.values[0]).doubleValue();\r\n }\r\n\r\n Preferences.debug(\"vmin = \" + vmin + \"\\n\", Preferences.DEBUG_FILEIO);\r\n }\r\n }\r\n } else if (varArray[i].name.equals(thirdDim)) {\r\n axisOrientation[0] = FileInfoMinc.setOrientType(thirdDim, (varArray[i].step > 0));\r\n ix = i;\r\n } else if (varArray[i].name.equals(secondDim)) {\r\n axisOrientation[1] = FileInfoMinc.setOrientType(secondDim, (varArray[i].step > 0));\r\n iy = i;\r\n } else if (varArray[i].name.equals(firstDim)) {\r\n axisOrientation[2] = FileInfoMinc.setOrientType(firstDim, (varArray[i].step > 0));\r\n iz = i;\r\n }\r\n }\r\n\r\n if ( (varArray[ix].cosines != null) && (varArray[iy].cosines != null) && (varArray[iz].cosines != null)) {\r\n final TransMatrix mat = new TransMatrix(3);\r\n mat.set(0, 0, varArray[ix].cosines[0]);\r\n mat.set(1, 0, varArray[ix].cosines[1]);\r\n mat.set(2, 0, varArray[ix].cosines[2]);\r\n mat.set(0, 1, varArray[iy].cosines[0]);\r\n mat.set(1, 1, varArray[iy].cosines[1]);\r\n mat.set(2, 1, varArray[iy].cosines[2]);\r\n mat.set(0, 2, varArray[iz].cosines[0]);\r\n mat.set(1, 2, varArray[iz].cosines[1]);\r\n mat.set(2, 2, varArray[iz].cosines[2]);\r\n axisOrientation = FileInfoMinc.getAxisOrientation(mat);\r\n\r\n if (varArray[ix].step < 0) {\r\n axisOrientation[0] = FileInfoBase.oppositeOrient(axisOrientation[0]);\r\n }\r\n\r\n if (varArray[iy].step < 0) {\r\n axisOrientation[1] = FileInfoBase.oppositeOrient(axisOrientation[1]);\r\n }\r\n\r\n if (varArray[iz].step < 0) {\r\n axisOrientation[2] = FileInfoBase.oppositeOrient(axisOrientation[2]);\r\n }\r\n }\r\n\r\n for (i = 0; i < axisOrientation.length; i++) {\r\n\r\n switch (axisOrientation[i]) {\r\n\r\n case ORI_UNKNOWN_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_UNKNOWN_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_R2L_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_R2L_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_L2R_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_L2R_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_P2A_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_P2A_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_A2P_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_A2P_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_I2S_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_I2S_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n\r\n case ORI_S2I_TYPE:\r\n Preferences.debug(\"axisOrientation[\" + i + \"] = ORI_S2I_TYPE\\n\", Preferences.DEBUG_FILEIO);\r\n break;\r\n }\r\n }\r\n }", "public void loadImage() {\r\n // creates a new image icon with the characters array and the count as a file path\r\n ImageIcon ii = new ImageIcon(game.characters[count]);\r\n // load the image\r\n image = ii.getImage(); \r\n \r\n // sets width\r\n w = image.getWidth(null);\r\n // sets height\r\n h = image.getHeight(null);\r\n }", "@Override\r\n\tpublic void load() {\n\r\n\t}", "public void loadSave(){\n if((new File(\"data.MBM\")).exists()){\n isNew = false;\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(\"data.MBM\"));\n String line = br.readLine();\n \n while (line != null) {\n \n if(line.contains(\"outDir\")){\n String[] result = line.split(\":\");\n outputDir = new File(result[1]);\n if(outputDir.exists() == false){\n isNew = true;\n }\n }\n else if(line.contains(\"MBMWORLD\")){\n String[] result = line.split(\":\");\n //1 = filename\n //2 = world name\n //3 = path\n //4 = date\n addWorld(new File(result[3]), result[2]);\n worlds.get(numWorlds()-1).setLastBackup(result[4]);\n }\n \n line = br.readLine();\n }\n \n br.close();\n \n } catch(IOException e){\n System.out.println(e);\n }\n }\n }", "@Override\n public void load() {\n }", "public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}", "@Override\r\n\tpublic void load() {\n\t}", "public abstract void load();", "Position()\n\t{\n\t\tsetFile('\\u0000');\n\t\tsetRank(0);\n\t}", "public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }", "private void LoadSavedPreferences() {\n\t\tString value;\n\t\tSharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t// tab 3 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tempSzad\", \"22\");\n\t\tettempSzad_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPmaxdop\", \"70\");\n\t\tettempPmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempZmaxdop\", \"22\");\n\t\tettempZmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPumpaON\", \"50\");\n\t\tettempPumpaON_.setText(value);\n\n\t\t// tab 1 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tv1\", \"20.20\");\n\t\ttvS1.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv2\", \"44.22\");\n\t\ttvS2.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv3\", \"19.22\");\n\t\ttvS3.setText(value);\n\t}", "public void load(String filePath){\r\n File loadFile = new File(filePath);\r\n if (!loadFile.exists()){\r\n System.out.println(\"I failed. There are no saved games.\");\r\n return;\r\n }\r\n FileInputStream fis = null;\r\n ObjectInputStream in = null;\r\n try {\r\n fis = new FileInputStream(filePath);\r\n in = new ObjectInputStream(fis);\r\n long versionUID = (long) in.readObject();\r\n if (versionUID != this.serialVersionUID) {\r\n throw new UnsupportedClassVersionError(\"Version mismatch for save game!\");\r\n }\r\n this.p = (Character) in.readObject();\r\n this.map = (SpecialRoom[][]) in.readObject();\r\n\r\n } catch (FileNotFoundException ex){\r\n System.out.println(\"The saved game was not found!\");\r\n ex.printStackTrace();\r\n } catch (IOException ex) {\r\n System.out.println(\"There was an error reading your save game :(\");\r\n ex.printStackTrace();\r\n System.out.println(\")\");\r\n } catch (ClassNotFoundException ex) {\r\n System.out.println(\"The version of the save game is not compatible with this game!\");\r\n ex.printStackTrace();\r\n } catch (UnsupportedClassVersionError ex) {\r\n System.out.println(ex.getMessage());\r\n ex.printStackTrace();\r\n } catch (Exception ex) {\r\n System.out.println(\"An unknown error occurred!\");\r\n }\r\n\r\n }", "@Override\n public void load() {\n }", "private static void load(){\n }", "public void cargar(Scanner scanner) {\n posX = Integer.parseInt(scanner.nextLine());\n posY = Integer.parseInt(scanner.nextLine());\n }", "public void updateXLoc();", "private void recordLocationData() \r\n\t{\r\n\t\tif(loadedImage!=null)\r\n\t\t{\r\n\t\t\tString image = BitMapToString(loadedImage);\r\n\t\t\tStringBuffer stringBuffer = new StringBuffer();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < image.length(); i++) \r\n\t\t\t{\r\n\t\t\t\tif (image.charAt(i) != '\\n' && image.charAt(i) != '\\r') \r\n\t\t\t\t{\r\n\t\t\t\t\tstringBuffer.append(image.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalimage = stringBuffer.toString();\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfinalimage = \"dummystring\";\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\t\r\n\t\tLog.v(\"ADD finaloutput: \", finaloutput);\r\n\t}", "public void loadStart()\n {\n score = 0;\n clear();\n HashMap<Location, State> start = gm.start();\n for (Location add : start.keySet())\n addToBoard(add, start.get(add));\n }", "public void loadLayout(boolean selected_only) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n if (file_chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n try {\n int entities_read = 0, entities_applied = 0;\n\tSet<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n System.out.println(\"Loading Layout (Selected Only = \" + selected_only + \")...\");\n BufferedReader in = new BufferedReader(new FileReader(file_chooser.getSelectedFile()));\n String line = in.readLine();\n\twhile (line != null) {\n\t StringTokenizer st = new StringTokenizer(line,\",\");\n\t String entity = Utils.decFmURL(st.nextToken());\n\t double wx = Double.parseDouble(Utils.decFmURL(st.nextToken())),\n\t wy = Double.parseDouble(Utils.decFmURL(st.nextToken()));\n if (entity_to_wxy.containsKey(entity)) {\n\t if (selected_only == false || sel.contains(entity)) {\n\t entity_to_wxy.put(entity, new Point2D.Double(wx,wy)); transform(entity);\n\t entities_applied++;\n\t }\n\t }\n\t line = in.readLine(); entities_read++;\n\t}\n\tin.close();\n\tSystem.out.println(\" Done Loading Layout! (\" + entities_read + \" Entities Read, \" + entities_applied + \" Entities Applied)\");\n\tzoomToFit(); repaint(); \n } catch (IOException ioe) {\n JOptionPane.showInternalMessageDialog(this, \"Save Layout Error\", \"IOException : \" + ioe, JOptionPane.ERROR_MESSAGE);\n\tSystem.err.println(\"IOException : \" + ioe); ioe.printStackTrace(System.err);\n }\n }\n }", "@Override \n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsavedInstanceState.putString(KEY_CHOSEN_CHARS, mCharDisp);\n\t\tsavedInstanceState.putString(KEY_CHOSEN_DIST, mDistDisp);\n\t}", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "private void readAndEditFrame()\n\t{\n\t\tmirror();\n\t\tinvert();\n\t\tgreenScreen();\n\t\tbackgroundSubtraction();\n\t}", "public void loadLayout() {\n\t\ttry {\n\t\t\tsetLayout(FileManager.loadLayout(fc3.getSelectedFile().toString()));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed To Load Layout\");\n\t\t}\n\t}", "public void saveMap(String name){\n\t\tString path = new File (\".\").getAbsolutePath();\n\t\t//System.out.println(path);\n\t\tObjectOutputStream outputStream=null;\n\t\t\n\t\tString fileName=path.concat(\"//Maps//\"+name+\".txt\");\n\t\tFile file = new File(fileName);\n\t\t\n\t\n\t\t\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream =new FileOutputStream(file);\n\t\t\toutputStream = new ObjectOutputStream(fileOutputStream);\n\t\t\n\t\t\toutputStream.writeInt(getWidth());\n\t\t\toutputStream.writeInt(getHeight());\n\t\t\t\n\t\t\tfor (Path p : temp){\n\t\t\t\toutputStream.writeInt(p.getPos());\n\t\t\t}\n\t\t\toutputStream.writeInt(-1);\n\t\t\t\n\t\t\toutputStream.flush();\n\t\t\toutputStream.close();\n\t\t\tsaveMapName(name);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Problem opening the file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem with output to file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\n\n\n\t}", "void storeValues(int posx, int posy, int piece) {\n\t\tprevPosX = posx;\n\t\tprevPosY = posy;\n\t\tprevName = \"\" + prevPosX + \"\" + prevPosY;\n\t\tprevComp = (JLabel) curComp;\n\t\tprevPiece = piece;\n\t\tpiece = Logic.arr[posx][posy];\n\t}", "public void setLoad(Vec3D p) { p_ = p; }", "public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "private void updateSizeInfo() {\n RelativeLayout drawRegion = (RelativeLayout)findViewById(R.id.drawWindow);\r\n drawW = drawRegion.getWidth();\r\n drawH = drawRegion.getHeight();\r\n getImageFromStorage();\r\n LinearLayout parentWindow = (LinearLayout)findViewById(R.id.parentWindow);\r\n parentWindow.setPadding((drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2, (drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2);\r\n parentWindow.invalidate();\r\n }", "public void saveCameraPosition() {\n \t\tCameraPosition camera = mMap.getCameraPosition();\n \t\tSharedPreferences settings = context.getSharedPreferences(\"MAP\", 0);\n \t\tSharedPreferences.Editor editor = settings.edit();\n \t\teditor.putFloat(\"lat\", (float) camera.target.latitude);\n \t\teditor.putFloat(\"lng\", (float) camera.target.longitude);\n \t\teditor.putFloat(\"bea\", camera.bearing);\n \t\teditor.putFloat(\"tilt\", camera.tilt);\n \t\teditor.putFloat(\"zoom\", camera.zoom);\n \t\teditor.commit();\n \t}", "public static void load()\n throws IOException, ClassNotFoundException {\n FileInputStream f_in = new\n FileInputStream (settingsFile);\n ObjectInputStream o_in = new\n ObjectInputStream(f_in);\n SettingsSaver loaded = (SettingsSaver) o_in.readObject();\n advModeUnlocked = loaded.set[0];\n LIM_NOTESPERLINE = loaded.set[1];\n LIM_96_MEASURES = loaded.set[2];\n LIM_VOLUME_LINE = loaded.set[3];\n LIM_LOWA = loaded.set[4];\n LIM_HIGHD = loaded.set[5];\n LOW_A_ON = loaded.set[6];\n NEG_TEMPO_FUN = loaded.set[7];\n LIM_TEMPO_GAPS = loaded.set[8];\n RESIZE_WIN = loaded.set[9];\n ADV_MODE = loaded.set[10];\n o_in.close();\n f_in.close();\n }", "@Override\n public void recalculatePositions() { \n \n }", "File getLoadLocation();", "void parsePosition(String[] pos){\n\t\tint x,y;\n\t\tleftScale=Double.parseDouble(pos[3])/(leftBitmap.getWidth()*1.0/2);\n\t\tscale(ib_analog_l,leftBitmap,leftScale);\n\t\tint i=0;\n\t\tsetMode(Integer.parseInt(pos[i++]));\n\t\tif(isMode(MODE1)){\n\t\t\tbutton_mode1.setChecked(true);\n\t\t}\n\t\tif(isMode(MODE2)){\n\t\t\trightScale=Double.parseDouble(pos[22])/(rightBitmap.getWidth()*1.0/2);\n\t\t\tscale(ib_analog_r,rightBitmap,rightScale);\n\t\t\tbutton_mode2.setChecked(true);\n\t\t\t\n\t\t}\n\t\tx=Integer.parseInt(pos[i++]);\n\t\ty=Integer.parseInt(pos[i++]);\n\t\tmoveView(ib_analog_l, x, y);\n\t\tleftEnable.setChecked(x>0&&y>0?true:false);\n\t\ti++;\n\t\tmoveView(button_a, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_b, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_x, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_y, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tif(isMode(MODE1))\n\t\t\tmoveView(button_l, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\telse\n\t\t\tmoveView(button_xl, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tif(isMode(MODE1))\n\t\t\tmoveView(button_r, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\telse\n\t\t\tmoveView(button_xr, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tif(isMode(MODE1))\n\t\t\tmoveView(button_l2, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\telse\n\t\t\tmoveView(button_xl2, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tif(isMode(MODE1))\n\t\t\tmoveView(button_r2, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\telse\n\t\t\tmoveView(button_xr2, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\t\n\t\tif(isMode(MODE1)){\n\t\t\tsetCheckedVisual2(Integer.parseInt(pos[i++]));\n\t\t\tx=Integer.parseInt(pos[i++]);\n\t\t\ty=Integer.parseInt(pos[i++]);\n\t\t\t//moveView(ib_analog_view, x, y);\n\t\t\tmoveView(ib_analog_view, width*3/4, height/2);\n\t\t\tviewEnable.setChecked(x>0&&y>0?true:false);\n\t\t\tmovePosition(ib_analog_r,x,y);\n\t\t}else if(isMode(MODE2)){\n\t\t\tx=Integer.parseInt(pos[i++]);\n\t\t\ty=Integer.parseInt(pos[i++]);\n\t\t\tmoveView(ib_analog_r, x, y);\n\t\t\trightEnable.setChecked(x>0&&y>0?true:false);\n\t\t\ti++;\n\t\t\tmovePosition(ib_analog_view, width*3/4, height/2);\n\t\t}else if(isMode(MODE_NULL)){\n\t\t\ti+=3;\n\t\t}\n\t\tmoveView(button_left, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_right, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_up, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_down, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_l3, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_r3, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_start, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t\tmoveView(button_select, Integer.parseInt(pos[i++]), Integer.parseInt(pos[i++]));\n\t}", "private void loadSheet() {\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(SpriteSheet.class\n\t\t\t\t\t.getResource(path));\n\t\t\tint w = image.getWidth();\n\t\t\tint h = image.getHeight();\n\t\t\timage.getRGB(0, 0, w, h, sheetPixles, 0, w);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tprotected void onStart()\n\t{\n\t\ttext_input.setPath(preference.getString(\"input\",FileUtils.getSDPath()));\n\t\ttext_output.setPath(preference.getString(\"output\",FileUtils.getSDPath()));\n\t\ttext_fileName.setText(preference.getString(\"name\",\"packer\"));\n\t\ttext_width.setText(preference.getString(\"width\",\"1024\"));\n\t\ttext_height.setText(preference.getString(\"height\",\"1024\"));\n\t\t\n\t\tsuper.onStart();\n\t}", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }", "private void loadOldGame() {\n String[] moveList = readFile().split(\"\");\n Long seed = getSeedFromLoad(moveList);\n String[] moves = getMoves(moveList).split(\"\");\n\n ter.initialize(WIDTH, HEIGHT, 0, -3);\n GameWorld world = new GameWorld(seed);\n for (int x = 0; x < WIDTH; x += 1) {\n for (int y = 0; y < HEIGHT; y += 1) {\n world.world[x][y] = Tileset.NOTHING;\n }\n }\n world.buildManyRandomSq();\n GameWorld.Position pos = randomAvatarPosition(world);\n world.world[pos.x][pos.y] = Tileset.AVATAR;\n for (String s: moves) {\n if (validMove(world, s.charAt(0))) {\n move(s.charAt(0), world);\n }\n }\n String senit = \"\";\n for (int i = 0; i < moveList.length; i++) {\n senit += moveList[i];\n }\n ter.renderFrame(world.world);\n playGame(world, senit);\n }", "void load_from_file(){\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a file\", FileDialog.LOAD);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"load path: \" + file_withpath);\t\n\t\t\n\t\t\t \n\t\t\t /**\n\t\t\t * read object from file \n\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file_withpath));\n\n\t\t\t\t\tKey_Lists = Key_Lists.copy((key_lists) in.readObject());\n\n\t\t\t\t\tkeys_area.setText(Key_Lists.arraylist_tostring());\t\t\n\t\t\t\t\t\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\tinfo_label.setForeground(green);\n\t\t\t\t\tinfo_label.setText(\"file loaded :D\");\n\t\t\t\t\t\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tinfo_label.setForeground(white);\n\t\t\t\t\tinfo_label.setText(\"wrong file format\");\n\t\t\t\t\tSystem.out.println(\"io exception\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\n\t}", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public void startSavedGame()\n {\n \n // get rid of nl character left in the stream\n // outFile.flush();\n \n // prompt user and get a file path\n System.out.println(\"\\nWhat is the file path?\");\n String filePath = keyboard.next();\n \n // call the getSavedGame( ) method in the GameControl class to load the game\n GameControl gc = new GameControl();\n gc.getSavedGame(filePath);\n\n // display the game menu for the loaded game\n MainMenuView mmv = new MainMenuView();\n mmv.displaySaveGameView();\n }", "@Override\n public void restore() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] iTmp1 = m_iCurrentMatrices;\n m_iCurrentMatrices = m_iStoredMatrices;\n m_iStoredMatrices = iTmp1;\n\n int[] iTmp2 = m_iCurrentPartials;\n m_iCurrentPartials = m_iStoredPartials;\n m_iStoredPartials = iTmp2;\n\n// int[] iTmp3 = m_iCurrentStates;\n// m_iCurrentStates= m_iStoredStates;\n// m_iStoredStates = iTmp3;\n }", "private void loadGame() {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tArrayList<String> data = new ArrayList<String>();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showOpenDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\r\n\t\tif (file != null) {\r\n\t\t\tmyFileReader fileReader = new myFileReader(file);\r\n\t\t\ttry {\r\n\t\t\t\tdata = fileReader.getFileContents();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// TODO: allow writing of whose turn it is!\r\n\t\t\tParser parse = new Parser();\r\n\t\t\tint tempBoard[][] = parse.parseGameBoard(data);\r\n\t\t\tgameBoard = new GameBoardModel(tempBoard, parse.isBlackTurn(), parse.getBlackScore(), parse.getRedScore());\r\n\t\t}\r\n\t}", "public void load (){\n try{\n FileInputStream fis = new FileInputStream(\"game.data\");\n ObjectInputStream o = new ObjectInputStream(fis);\n for (int i = 0; i < 8; i++){\n for (int j = 0; j < 8; j++){\n String loaded = o.readUTF();\n if (loaded.equals(\"null\")){\n Tiles[i][j].removePiece();\n }else if (loaded.equals(\"WhiteLeftKnight\")){\n Tiles[i][j].setPiece(WhiteLeftKnight);\n }else if (loaded.equals(\"WhiteRightKnight\")){\n Tiles[i][j].setPiece(WhiteRightKnight);\n }else if (loaded.equals(\"WhiteLeftBishop\")){\n Tiles[i][j].setPiece(WhiteLeftBishop);\n }else if (loaded.equals(\"WhiteRightBishop\")){\n Tiles[i][j].setPiece(WhiteRightBishop);\n }else if (loaded.equals(\"WhiteLeftRook\")){\n Tiles[i][j].setPiece(WhiteLeftRook);\n }else if (loaded.equals(\"WhiteRightRook\")){\n Tiles[i][j].setPiece(WhiteRightRook);\n }else if (loaded.equals(\"WhiteQueen\")){\n Tiles[i][j].setPiece(WhiteQueen);\n }else if (loaded.equals(\"WhiteKing\")){\n Tiles[i][j].setPiece(WhiteKing);\n }else if (loaded.equals(\"WhitePromotedRookPawn\")){\n Rook WhitePromotedRookPawn = new Rook(\"WhitePromotedRookPawn\");\n WhitePromotedRookPawn.setIcon(WhiteRookImg);\n Tiles[i][j].setPiece(WhitePromotedRookPawn);\n }else if (loaded.equals(\"WhitePromotedBishopPawn\")){\n Bishop WhitePromotedBishopPawn = new Bishop(\"WhitePromotedBishopPawn\");\n WhitePromotedBishopPawn.setIcon(WhiteBishopImg);\n Tiles[i][j].setPiece(WhitePromotedBishopPawn);\n }else if (loaded.equals(\"WhitePromotedKnightPawn\")){\n Knight WhitePromotedKnightPawn = new Knight(\"WhitePromotedKnightPawn\");\n WhitePromotedKnightPawn.setIcon(WhiteKnightImg);\n Tiles[i][j].setPiece(WhitePromotedKnightPawn);\n }else if (loaded.equals(\"WhitePromotedQueenPawn\")){\n Queen WhitePromotedQueenPawn = new Queen(\"WhitePromotedQueenPawn\");\n WhitePromotedQueenPawn.setIcon(WhiteQueenImg);\n Tiles[i][j].setPiece(WhitePromotedQueenPawn);\n }else if (loaded.equals(\"BlackLeftKnight\")){\n Tiles[i][j].setPiece(BlackLeftKnight);\n }else if (loaded.equals(\"BlackRightKnight\")){\n Tiles[i][j].setPiece(BlackRightKnight);\n }else if (loaded.equals(\"BlackLeftBishop\")){\n Tiles[i][j].setPiece(BlackLeftBishop);\n }else if (loaded.equals(\"BlackRightBishop\")){\n Tiles[i][j].setPiece(BlackRightBishop);\n }else if (loaded.equals(\"BlackLeftRook\")){\n Tiles[i][j].setPiece(BlackLeftRook);\n }else if (loaded.equals(\"BlackRightRook\")){\n Tiles[i][j].setPiece(BlackRightRook);\n }else if (loaded.equals(\"BlackQueen\")){\n Tiles[i][j].setPiece(BlackQueen);\n }else if (loaded.equals(\"BlackKing\")){\n Tiles[i][j].setPiece(BlackKing);\n }else if (loaded.equals(\"BlackPromotedQueenPawn\")){\n Queen BlackPromotedQueenPawn = new Queen(\"BlackPromotedQueenPawn\");\n BlackPromotedQueenPawn.setIcon(BlackQueenImg);\n Tiles[i][j].setPiece(BlackPromotedQueenPawn);\n }else if (loaded.equals(\"BlackPromotedRookPawn\")){\n Rook BlackPromotedRookPawn = new Rook(\"BlackPromotedRookPawn\");\n BlackPromotedRookPawn.setIcon(BlackRookImg);\n Tiles[i][j].setPiece(BlackPromotedRookPawn);\n }else if (loaded.equals(\"BlackPromotedBishopPawn\")){\n Bishop BlackPromotedBishopPawn = new Bishop(\"BlackPromotedBishopPawn\");\n BlackPromotedBishopPawn.setIcon(BlackBishopImg);\n Tiles[i][j].setPiece(BlackPromotedBishopPawn);\n }else if (loaded.equals(\"BlackPromotedKnightPawn\")){\n Knight BlackPromotedKnightPawn = new Knight(\"BlackPromotedKnightPawn\");\n BlackPromotedKnightPawn.setIcon(BlackKnightImg);\n Tiles[i][j].setPiece(BlackPromotedKnightPawn);\n }else if (loaded.equals(\"WhitePawn0\")){\n Tiles[i][j].setPiece(WhitePawns[0]);\n }else if (loaded.equals(\"WhitePawn1\")){\n Tiles[i][j].setPiece(WhitePawns[1]);\n }else if (loaded.equals(\"WhitePawn2\")){\n Tiles[i][j].setPiece(WhitePawns[2]);\n }else if (loaded.equals(\"WhitePawn3\")){\n Tiles[i][j].setPiece(WhitePawns[3]);\n }else if (loaded.equals(\"WhitePawn4\")){\n Tiles[i][j].setPiece(WhitePawns[4]);\n }else if (loaded.equals(\"WhitePawn5\")){\n Tiles[i][j].setPiece(WhitePawns[5]);\n }else if (loaded.equals(\"WhitePawn6\")){\n Tiles[i][j].setPiece(WhitePawns[6]);\n }else if (loaded.equals(\"WhitePawn7\")){\n Tiles[i][j].setPiece(WhitePawns[7]);\n }else if (loaded.equals(\"BlackPawn0\")){\n Tiles[i][j].setPiece(BlackPawns[0]);\n }else if (loaded.equals(\"BlackPawn1\")){\n Tiles[i][j].setPiece(BlackPawns[1]);\n }else if (loaded.equals(\"BlackPawn2\")){\n Tiles[i][j].setPiece(BlackPawns[2]);\n }else if (loaded.equals(\"BlackPawn3\")){\n Tiles[i][j].setPiece(BlackPawns[3]);\n }else if (loaded.equals(\"BlackPawn4\")){\n Tiles[i][j].setPiece(BlackPawns[4]);\n }else if (loaded.equals(\"BlackPawn5\")){\n Tiles[i][j].setPiece(BlackPawns[5]);\n }else if (loaded.equals(\"BlackPawn6\")){\n Tiles[i][j].setPiece(BlackPawns[6]);\n }else if (loaded.equals(\"BlackPawn7\")){\n Tiles[i][j].setPiece(BlackPawns[7]);\n }\n }\n }\n player = o.readInt();\n if (player == 1){\n area.setText(\"\\t\\t\\tPlayer \"+player+\" (White)\");\n }else{\n area.setText(\"\\t\\t\\tPlayer \"+player+\" (Black)\");\n }\n o.close();\n OriginalColor();\n }catch (Exception ex){\n\n }\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsavedInstanceState.putInt(\"LIST_POSITION\", mPosition);\n\t\tsavedInstanceState.putInt(\"LIST_OFFSET\", mOffset);\n\t\tsuper.onSaveInstanceState(savedInstanceState);\n\t}", "private void loadData() {\r\n titleProperty.set(TITLE);\r\n imageView.setImage(null);\r\n scrollPane.setContent(null);\r\n final Task<Void> finisher = new Task<Void>() {\r\n @Override\r\n protected Void call() throws Exception {\r\n Platform.runLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n buffer = replay.politicalBuffer;\r\n output = new WritableImage(replay.bufferWidth, replay.bufferHeight);\r\n output.getPixelWriter().setPixels(0, 0, replay.bufferWidth, replay.bufferHeight, PixelFormat.getIntArgbPreInstance(), buffer, 0, replay.bufferWidth);\r\n progressBar.progressProperty().unbind();\r\n progressBar.setProgress(0);\r\n statusLabel.textProperty().unbind();\r\n statusLabel.setText(l10n(\"replay.map.loaded\"));\r\n scrollPane.setContent(null);\r\n imageView.setImage(output);\r\n scrollPane.setContent(imageView);\r\n int fitWidth = Integer.parseInt(settings.getProperty(\"map.fit.width\", \"0\"));\r\n int fitHeight = Integer.parseInt(settings.getProperty(\"map.fit.height\", \"0\"));\r\n imageView.setFitHeight(fitHeight);\r\n imageView.setFitWidth(fitWidth);\r\n lock.release();\r\n }\r\n });\r\n return null;\r\n }\r\n };\r\n progressBar.progressProperty().bind(finisher.progressProperty());\r\n statusLabel.textProperty().bind(finisher.titleProperty());\r\n replay.loadData(finisher);\r\n }", "private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}", "public void loadQuickly(){\r\n System.out.println(\"I am going to try to load your games.\");\r\n String quickLoadPath = this.savePath + File.separator + \"QuickSave.ser\";\r\n this.load(quickLoadPath);\r\n }", "public void SaveState() {\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n temp_pictures[i][j] = pictures[i][j];\n\n }\n }\n }", "public void loadFromLocalStorage() {\n\t\t\n\t}", "public void saveLayoutToPref() {\n Editor edit = getSharedPreferences(Constants.PREF_NAME_LAYOUTS, 0).edit();\n edit.clear();\n for (int i = 0; i < 4; i++) {\n LayoutItem layoutItem = (LayoutItem) this.mLayoutItems.get(i);\n if (layoutItem.getViewNum() > 0) {\n layoutItem.writeToPref(edit);\n }\n }\n edit.apply();\n }", "@Override\n public void onSaveLoad(final int id) {\n new Thread(new Runnable() {\n public void run() {\n Save save = database.daoAccess().getSingleRecord(id);\n\n String[] arr = save.getContent().split(\";\");\n final int rows = Integer.parseInt(arr[0]);\n final int columns = Integer.parseInt(arr[1]);\n String[] colors = arr[2].split(\",\");\n final int[] pixels = new int[colors.length];\n for (int i=0;i<colors.length;i++)\n pixels[i] = Integer.parseInt(colors[i]);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n drawfragment.generate(rows,columns,pixels);\n }\n });\n }\n }).start();\n\n }", "public static void load() {\n }" ]
[ "0.6661955", "0.6245624", "0.62250674", "0.60633177", "0.60581905", "0.60093397", "0.60093397", "0.6008053", "0.59902084", "0.59747916", "0.5949467", "0.59364736", "0.5936211", "0.5936211", "0.5920889", "0.58627814", "0.5849441", "0.5849441", "0.58197635", "0.57470405", "0.573277", "0.5717718", "0.5700471", "0.56953883", "0.5661679", "0.56541", "0.5651572", "0.5623745", "0.5607253", "0.56004786", "0.55931467", "0.55711883", "0.5550505", "0.5528802", "0.5470158", "0.54354167", "0.54332685", "0.542637", "0.5410798", "0.5397481", "0.5397481", "0.5389866", "0.53588295", "0.5346106", "0.5326882", "0.53242135", "0.53230363", "0.53188217", "0.5311202", "0.53093034", "0.5306475", "0.5289104", "0.52877283", "0.5275784", "0.5274382", "0.52728975", "0.5259102", "0.52573484", "0.5252139", "0.5249297", "0.52463734", "0.5245364", "0.5239589", "0.52317804", "0.5230808", "0.5221287", "0.5214155", "0.5214027", "0.52110445", "0.520366", "0.5199782", "0.51985204", "0.51985204", "0.51985204", "0.51977336", "0.5190707", "0.51903194", "0.5185653", "0.51808727", "0.51718163", "0.51702994", "0.51623553", "0.51564", "0.5150602", "0.51504445", "0.5148774", "0.51485693", "0.5141451", "0.51405174", "0.513947", "0.5138779", "0.51340425", "0.51318926", "0.51317334", "0.51294124", "0.51291436", "0.51261", "0.51252776", "0.51252735", "0.5118475", "0.5118234" ]
0.0
-1
Check to ensure that it has been at least a day since the last check for an update
private void checkForUpdates(){ long now = System.currentTimeMillis(); if(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){ long lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING)); long day = 86400000; // milli-seconds in a day if((now - lastUpdateTime) < day){ return; // Don't need to check as a check has been made in the last 24hrs. } } setStatusBarText("Checking for updates..."); HttpClient webConnection = new HttpClient(); Properties webSideProps; try{ webSideProps = webConnection.getProperties("http://www.zygomeme.com/version_prop.txt"); } catch(SocketTimeoutException ste){ logger.debug("Can't connect to internet:" + ste); setStatusBarText("Unable to connect to internet to check for updates"); return; } catch(UnknownHostException uhe){ logger.debug("Can't connect to internet:" + uhe); setStatusBarText("Unable to connect to internet to check for updates"); return; } if(webSideProps == null || webSideProps.isEmpty()){ return; } int latestVersionAvailable = Integer.parseInt(webSideProps.get("version_number").toString()); if(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){ setStatusBarText("A new version of ZygoMeme York is now available. You can now upgrade to Version " + webSideProps.getProperty("version_string") + " " + webSideProps.get("stage")); } else{ setStatusBarText("Update check has been made - application is up to date."); } // To get here the properties will have been updated propertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, "" + now); // Save the properties straight away so that the new last "check for update" time is recorded try { propertiesMemento.saveProperties(this); } catch (Exception e) { logger.warn("Unable to save properties"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressLint({\"CommitPrefEdits\"})\n public void checkForUpdates() {\n synchronized (this.preferenceStore) {\n if (this.preferenceStore.get().contains(\"last_update_check\")) {\n this.preferenceStore.save(this.preferenceStore.edit().remove(\"last_update_check\"));\n }\n }\n long currentTimeMillis = this.currentTimeProvider.getCurrentTimeMillis();\n long j = ((long) this.betaSettings.updateSuspendDurationSeconds) * 1000;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Check for updates delay: \");\n sb.append(j);\n Fabric.getLogger().d(\"Beta\", sb.toString());\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Check for updates last check time: \");\n sb2.append(getLastCheckTimeMillis());\n Fabric.getLogger().d(\"Beta\", sb2.toString());\n long lastCheckTimeMillis2 = getLastCheckTimeMillis() + j;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Check for updates current time: \");\n sb3.append(currentTimeMillis);\n sb3.append(\", next check time: \");\n sb3.append(lastCheckTimeMillis2);\n Fabric.getLogger().d(\"Beta\", sb3.toString());\n if (currentTimeMillis >= lastCheckTimeMillis2) {\n try {\n performUpdateCheck();\n } finally {\n setLastCheckTimeMillis(currentTimeMillis);\n }\n } else {\n Fabric.getLogger().d(\"Beta\", \"Check for updates next check time was not passed\");\n }\n }", "private boolean checkTimeStamp(File file) {\n // uses sharedpreferences\n return (lastUpdate < file.getModifiedDate().getValue());\n }", "public static boolean isTimeToUpdate() throws IOException {\n LocalDateTime now = LocalDateTime.now();\n LocalDateTime lastRunDatetime = null;\n try {\n lastRunDatetime = readDateFromFile(timeTrackingFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if (lastRunDatetime != null) {\n Duration duration = Duration.between(lastRunDatetime, now);\n if (duration.toDays() < 1) {\n System.out.println(\"You updated on: \" + lastRunDatetime.getDayOfWeek() + \" at \" + lastRunDatetime.getHour() +\":\" +lastRunDatetime.getMinute() + \" already. Do you want to run anyways ? (y/n)\");\n Scanner scanner = new Scanner(System.in);\n boolean userChoice = scanner.nextLine().equalsIgnoreCase(\"y\");\n scanner.close();\n if(userChoice){\n writeDateToFile(createJsonStringFromDateObject(now));\n }\n return userChoice;\n }\n }\n else {\n System.out.println(\"Setting LocalDateTime for initial run\");\n writeDateToFile(createJsonStringFromDateObject(now));\n return true;\n }\n return false;\n }", "private void checkOcspResponseFresh(SingleResp resp) throws OCSPException\n {\n\n Date curDate = Calendar.getInstance().getTime();\n\n Date thisUpdate = resp.getThisUpdate();\n if (thisUpdate == null)\n {\n throw new OCSPException(\"OCSP: thisUpdate field is missing in response (RFC 5019 2.2.4.)\");\n }\n Date nextUpdate = resp.getNextUpdate();\n if (nextUpdate == null)\n {\n throw new OCSPException(\"OCSP: nextUpdate field is missing in response (RFC 5019 2.2.4.)\");\n }\n if (curDate.compareTo(thisUpdate) < 0)\n {\n LOG.error(curDate + \" < \" + thisUpdate);\n throw new OCSPException(\"OCSP: current date < thisUpdate field (RFC 5019 2.2.4.)\");\n }\n if (curDate.compareTo(nextUpdate) > 0)\n {\n LOG.error(curDate + \" > \" + nextUpdate);\n throw new OCSPException(\"OCSP: current date > nextUpdate field (RFC 5019 2.2.4.)\");\n }\n LOG.info(\"OCSP response is fresh\");\n }", "private static boolean updateRequired(Context context) {\r\n\t\tSharedPreferences pref = context.getSharedPreferences(\r\n\t\t\t\tUSER_ID_SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);\r\n\r\n\t\tif (pref.contains(LAST_UPDATE)) {\r\n\r\n\t\t\tLong lastUpdate = pref.getLong(LAST_UPDATE, -1);\r\n\t\t\tLong now = new Date().getTime();\r\n\r\n\t\t\treturn (now - lastUpdate) > TIME_IN_MILLIS;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "boolean hasUpdateTriggerTime();", "private boolean checkForUpdates(boolean force) {\n long lastCheckMillis = mPrefs.getLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, PREF_LAST_CHECK_ATTEMPT_TIME_DEFAULT);\n Logger.i(\"Last check time %s\", mSdfLog.format(new Date(lastCheckMillis)));\n if (force || (Math.abs(System.currentTimeMillis() - lastCheckMillis) > CHECK_THRESHOLD_MS)) {\n if (mOnWantUpdateCheckListener != null) {\n if (mOnWantUpdateCheckListener.onWantUpdateCheck(!force/*checkOnly*/)) {\n mPrefs.edit().putLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, System.currentTimeMillis()).commit();\n return true;\n }\n }\n }\n return false;\n }", "public boolean isUpdateRequired(int maximumUpdateTime)\n\t{\n\t\t\n\t\tboolean needToUpdate = false;\n\t\t\n\t\tfor (Journey j : journeyManager.journeys())\n\t\t{\n\t\t\tneedToUpdate |= (j.remainingTime() == 0);\n\t\t}\n\t\t\n\t\tDuration diff = new Duration(lastUpdated, new DateTime());\n\t\tLog.i(\"Updater\", Long.toString(diff.getStandardMinutes()));\n\t\t\n\t\tneedToUpdate |= (diff.getStandardMinutes() > maximumUpdateTime);\n\t\t\n\t\treturn needToUpdate;\n\t}", "Date getDateUpdated();", "protected void checkUpdate() {\n \t\t// only update from remote server every so often.\n \t\tif ( ( System.currentTimeMillis() - lastUpdated ) > refreshInterval ) return;\n \t\t\n \t\tClusterTask task = getSessionUpdateTask();\n \t\tObject o = CacheFactory.doSynchronousClusterTask( task, this.nodeId );\n \t\tthis.copy( (Session) o );\n \t\t\n \t\tlastUpdated = System.currentTimeMillis();\n \t}", "@java.lang.Override\n public boolean hasUpdateTime() {\n return updateTime_ != null;\n }", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "private boolean isReqTimeFresh(Date reqTime, String username) {\r\n\t\tDate oldReqTime = oldRequestTimes.get(username); \r\n\t\tif(oldReqTime!= null && oldReqTime.equals(reqTime))\r\n\t\t\tthrow new RuntimeException(\"This request has been sent before.\");\r\n\t\t\r\n\t\tDate current = new Date();\r\n\t\treturn current.getTime() - 750 < reqTime.getTime() && reqTime.getTime() < current.getTime() + 750;\r\n\t}", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "Date getForLastUpdate();", "private static boolean checkIfToUpdateAfterCreateFailed(LocalRegion rgn, EntryEventImpl ev) {\n boolean doUpdate = true;\n if (ev.oldValueIsDestroyedToken()) {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n doUpdate = false;\n }\n if (ev.isConcurrencyConflict()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"basicUpdate failed with CME, not to retry:\" + ev);\n }\n doUpdate = false;\n }\n return doUpdate;\n }", "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "public boolean isSetUpdate_time() {\n return this.update_time != null;\n }", "public boolean isUpToDate() {\n return false;\n }", "public void checkForUpdates(){\n if (mPrefs.getBoolean(PREF_ENABLED, true) && isStale()){\n// forceCheckForUpdates();\n }\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "@Test\n public void testValidateUpdateLifeTimeWithGoodDates() {\n updates.add(mockAssetView(\"endDate\", new Timestamp(20000).toString()));\n updates.add(mockAssetView(\"startDate\", new Timestamp(25000).toString()));\n defaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n verify(assetService).addError(eq(RuleProperty.END_DATE), anyString()); \n }", "boolean hasUpdatedAt();", "boolean hasTsUpdate();", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "Date getForUpdatesAfter();", "boolean hasUpdateTime();", "boolean hasUpdateTime();", "boolean hasUpdateTime();", "public boolean isRefreshRequired(Date lastDataRefresh) {\n Date cachedLastDataRefresh = (Date) mMemcache.get(MEMKEY_LASTDATAREFRESH);\n if (null != cachedLastDataRefresh && cachedLastDataRefresh.equals(lastDataRefresh)) {\n return false; \n } else {\n return true; \n }\n }", "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "public void checkForUpdate();", "public boolean isSetUpdateTime() {\n\t\treturn this.updateTime != null;\n\t}", "public void checkUpdates(int timePerStep){\r\n\t\tif(updateStatistics_ || statisticsCountdown_ == -1){\r\n\t\t\tstatisticsCountdown_ -= timePerStep;\r\n\t\t\tif(statisticsCountdown_ < 1){\r\n\t\t\t\tstatisticsCountdown_ += STATISTICS_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateStatistics();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(updateBeaconInfo_){\r\n\t\t\tbeaconInfoCountdown_ -= timePerStep;\r\n\t\t\tif(beaconInfoCountdown_ < 1){\r\n\t\t\t\tbeaconInfoCountdown_ += BEACONINFO_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateBeaconInfo();\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public final boolean hasChangeDateTime() {\n \treturn m_changeDate != 0L ? true : false;\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "private boolean isOutdatedDate(LocalDate date) {\n return date.isBefore(LocalDate.now());\n }", "Date getUpdatedDate();", "private boolean isSeedsInfoUpdated(String tDate){\n \treturn mSharedPref.getBoolean(tDate,false); \t\n }", "@PreUpdate\n private void beforeUpdate() {\n updatedDate = new Date();\n }", "public boolean isSetUpdateTime() {\n return __isset_bit_vector.get(__UPDATETIME_ISSET_ID);\n }", "@Test\n public void testValidateUpdateLifeTimeWithBadDates() {\n updates.add(mockAssetView(\"endDate\", new Timestamp(25000).toString()));\n updates.add(mockAssetView(\"startDate\", new Timestamp(20000).toString()));\n defaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n verify(assetService, never()).addError(eq(RuleProperty.END_DATE), anyString()); \n }", "public boolean checkDate(Date dateNow, Date maxAccess) {\n return dateNow.after(maxAccess);\n }", "public boolean hasUpdatedAt() {\n return updatedAt_ != null;\n }", "public Date getUpdateDatetime();", "boolean hasUpdate();", "boolean hasUpdate();", "public Date getUpdatedOn();", "public boolean hasUpdateTriggerTime() {\n return instance.hasUpdateTriggerTime();\n }", "public boolean isSetUpdatedAt() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UPDATEDAT_ISSET_ID);\n }", "private void checkForUpdate() {\n\t\tdouble updateversion = Double.parseDouble(MySoup.getUpdateVersion(SITE));\n\t\tdouble currentversion = Double.parseDouble(VERSION);\n\t\tif (updateversion > currentversion) {\n\t\t\tdisplayAlert(\"\", \"Update available, would you like to install it?\", this);\n\t\t}\n\t}", "public boolean isStale()\n {\n return (_iMdChecksum != TypeSystem.getRefreshChecksum() && !isProxy());\n }", "private void checkUpdateCheckTriggered(PackageVersions packageVersions) {\n // Assert the PackageTracker attempted to trigger an update.\n mFakeIntentHelper.assertUpdateTriggered();\n\n // If an update check was triggered reliability triggering should always be enabled to\n // ensure that it can be completed if it fails.\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n\n // Check the expected storage state.\n checkPackageStorageStatus(PackageStatus.CHECK_STARTED, packageVersions);\n }", "public synchronized void checkTokenExpiry() {\n if (this.mExpiryDate != null && this.mExpiryDate.getTime() <= System.currentTimeMillis() + REFRESH_THRESHOLD) {\n acquireTokenAsync();\n }\n }", "public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }", "public boolean isUpToDate(int id) {\n\t\tSystem.out.print(\"Checking if ID \" + id + \" is up to date\");\n\t\tboolean upToDate = upToDateIds.contains(id);\n\t\tSystem.out.println(\" \\tUp To Date: \" + upToDate);\n\t\treturn upToDate;\n\t}", "public boolean checkEpochIsStale(final WorkContainer<K, V> workContainer) {\n return pm.checkEpochIsStale(workContainer);\n }", "@Scheduled(fixedDelay=DateUtils.MILLIS_PER_HOUR)\n \tprotected void checkLastPublicationDate(){\n \t\ttry {\n \t\t\tString lpd = FileUtils.readFileToString(new File(vascanConfig.getLastPublicationDateFilePath()));\n \t\t\ttry {\n \t\t\t\tfreemarkerConfig.getConfiguration().setSharedVariable(\"lastPublicationDate\", lpd);\n \t\t\t} catch (TemplateModelException e) {\n \t\t\t\tLOGGER.fatal(\"Could not set Vascan lastPublicationDate\", e);\n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\tLOGGER.fatal(\"Could not read Vascan lastPublicationDate\", e);\n \t\t}\n \t}", "public void checkLavaTileUpdates() {\n // 1 second (1 bn nanoseconds) between each tick\n long timeBetweenTicks = 1000;\n long newTime = System.currentTimeMillis();\n\n // if it has been 1 second: decrement ticks, set a new time and return true\n if (newTime - timeLastTick >= timeBetweenTicks) {\n timeLastTick = newTime;\n updateLavaTiles();\n }\n }", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public void checkDate() throws InvalidDateException {\n Date todayDate = new Date();\n if (!todayDate.after(date)) {\n throw new InvalidDateException(\"Date is from the future!\");\n }\n }", "public boolean hasUpdatedAt() {\n return updatedAtBuilder_ != null || updatedAt_ != null;\n }", "protected boolean isUserRecentUpdated() {\r\n\t\tDate lastChangeDate = (Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE);\r\n\r\n\t\t// Retrieve current user profile from session\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap sessionUserProfile = (Map)request.getSession().getAttribute(AuthenticationConsts.USER_PROFILE_KEY);\r\n\r\n\t\tDate lastChangeDateInSession = null;\r\n\t\t// Retrieve user's current timezone offset and last change date\r\n\t\tif (sessionUserProfile != null) {\r\n\t\t\tif (sessionUserProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE) != null) {\r\n\t\t\t\tlastChangeDateInSession = ((Date)sessionUserProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Judge\r\n\t\tif (lastChangeDate == null) {\r\n\t\t\treturn false;\r\n\t\t} else if (lastChangeDateInSession == null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn lastChangeDate.after(lastChangeDateInSession);\r\n\t\t}\r\n\t}", "public boolean isSetLastUpdateTimestampMs() {\n return EncodingUtils.testBit(__isset_bitfield, __LASTUPDATETIMESTAMPMS_ISSET_ID);\n }", "default boolean isNeedToBeUpdated()\n {\n return getUpdateState().isUpdated();\n }", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "@Test\n\t@Transactional\n\t@Rollback\n\tpublic void updateAccurateAsOfDate() throws EntityRetrievalException, ValidationException {\n\t\tSecurityContextHolder.getContext().setAuthentication(adminUser);\n\t\tCalendar cal = Calendar.getInstance();\n\t\tLong timeInMillis = cal.getTimeInMillis();\n\t\tAccurateAsOfDate ad = new AccurateAsOfDate();\n\t\tad.setAccurateAsOfDate(timeInMillis);\n\t\tmeaningfulUseController.updateMeaningfulUseAccurateAsOf(ad);\n\t\tAccurateAsOfDate result = meaningfulUseController.getAccurateAsOfDate();\n\t\tassertTrue(result.getAccurateAsOfDate().equals(timeInMillis));\n\t}", "public void updateResult(){\n String lastUpdateDate = User.getLastUpdateDate(getApplicationContext());\n CheckListResultDBHelper dbHelper = new CheckListResultDBHelper(this);\n dbHelper.getReadableDatabase();\n int cnt = User.getCurrentCheckListCount(getApplicationContext());\n Log.d(\"TEST\", \"start date : \" + User.getStartDate(getApplicationContext()));\n Log.d(\"TEST\", \"last update date : \" + lastUpdateDate + \", cnt : \" + cnt);\n dbHelper.close();\n\n if(!lastUpdateDate.equals(\"\") && cnt > 0 && !lastUpdateDate.equals(nowDate)){\n ArrayList<String> list = User.getBetweenDate(lastUpdateDate, nowDate);\n save(list, null, null);\n }\n }", "public boolean hasExpired() {\n return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();\n }", "private boolean server_fresh(Runner runner) throws IOException, BadPathnameException {\n int last_edit_time = get_server_edit_time(runner);\n if (Constants.DEBUG) System.out.println(\"(log) Checking server: our last known edit time is \" + last_known_edit_time +\n \" and the server's last edit time is \" + last_edit_time);\n if (last_known_edit_time == last_edit_time) {\n if (Constants.DEBUG) System.out.println(\"(log) -> fresh at server\");\n return true;\n }\n else{\n if (Constants.DEBUG) System.out.println(\"(log) -> not fresh at server\");\n last_known_edit_time = last_edit_time;\n content = new HashMap<>();\n final_block = -1;\n return false;\n }\n }", "Date getLastServerUpdate();", "private boolean newsDateHasChanged(String guid, Date newDate) {\n String[] whereArgs = { guid };\n Cursor query = this.writableDatabase.query(TABLE_NEWS, new String[] { NEWS_DATE }, NEWS_GUID + \"=?\", whereArgs,\n null, null, null);\n if (query.getCount() > 0) {\n query.moveToFirst();\n Date oldDate = new Date(Long.valueOf(query.getString(query.getColumnIndex(NEWS_DATE))));\n query.close();\n if (newDate.getTime() > oldDate.getTime())\n Log.w(TAG, newDate.toLocaleString() + \" - \" + oldDate.toLocaleString());\n return newDate.getTime() > oldDate.getTime();\n }\n query.close();\n return false;\n }", "public boolean hasUpdateTriggerTime() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private boolean local_fresh(int freshness_interval) {\n long current_time = System.currentTimeMillis();\n boolean fresh = current_time - server_checkin_time < freshness_interval;\n if (Constants.DEBUG) System.out.println(\"(log) Checking freshness locally: it is currently \" + current_time +\n \" and we last checked the server at time \" + server_checkin_time);\n if (Constants.DEBUG) {\n if (fresh) {\n System.out.println(\"(log) -> fresh locally\");\n }\n else {\n System.out.println(\"(log) -> not fresh locally\");\n }\n }\n return fresh;\n }", "public void updateLastSeenTime() {\n\t\tsetLastSeenDate(new Date());\n\t}", "@Test\r\n \tpublic void testGetLastUpdated() {\n \t\tDate date = localProject.getLastUpdated();\r\n \t\tassertNull(date);\r\n \t}", "@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }", "@Override\n public boolean isUpToDate(String s, @Nullable Long oldValue) {\n return true;\n }", "long getLastUpdatedTime();", "@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();", "@Override\n\tpublic boolean update(Dates obj) {\n\t\treturn false;\n\t}", "public void checkSyncUptime() {\n long cpuTimeUptimeDifference = cpu.getTime() - lastCpuTimeSyncTimestamp;\n if (cpuTimeUptimeDifference >= syncUptimeThresholdCpuTicks) {\n doSyncUptime();\n doTimerTasks();\n }\n }", "public void setUpdatedOn(Date updatedOn);", "public boolean isNew() {\n return this.lastUpdateTime == NOT_YET;\n }", "public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n }", "boolean updateDeathsTillForget() {\n\t\tdeathsTillForget -= 1;\n\t\treturn (deathsTillForget < 1);\n\t}", "private static void checkLastSampleTime() {\n double lastSampleTime = ((Double)state.get( \"lastSampleTime\" )).doubleValue();\n Double cTime = (Double)state.get( \"currentTime\" );\n double currentTime = cTime.doubleValue(); // just in case this is a ref\n\n if( lastSampleTime <= currentTime ){\n validity = false;\n out.println( \"<BR>Error: Last Sample Time is less than current time<BR>\" ); \n }\n }", "public void checkCanUpdateCalendarDayOff(CalendarDayOff calendarDayOff) {\nif (!canUpdateCalendarDayOff(calendarDayOff)) {\nthrow new InvalidStateException(\"CalendarDayOff.update.invalidState\");\n}\n}", "private boolean compareWithCurrentDate(LocalDateTime deadline, LocalDateTime assignDate, boolean isLessThanDay) {\n boolean isReadyToNotify=false;\n if(isLessThanDay){\n if(deadline.until(LocalDateTime.now(),HOURS)==HALF_A_DAY){\n isReadyToNotify=true;\n }\n }else{\n // if this time is the mean of deadline and assign date\n if(deadline.until(LocalDateTime.now(),HOURS) == deadline.until(assignDate,HOURS)/2){\n isReadyToNotify=true;\n }\n }\n return isReadyToNotify;\n }", "void saveLastServerUpdate(Date date);", "public boolean isLate(){\n Date d = givenBack != null ? givenBack : new Date();\n return expirationDate.before(d);\n }", "private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }", "if (exitDateTime == adhocTicket.getExitDateTime()) {\n System.out.println(\"Exit Date Time is passed\");\n }", "boolean hasDepositEndTime();", "@Test\r\n public void testIsExpiredToday_ExpirationDateToday_ExpirationDateEarlierTime() {\r\n doTest(TEST_DATE_2_TODAY, TEST_DATE_1_TODAY, false);\r\n }", "@Override\n protected void validate(Model model) throws CommandException {\n Budget currentPeriod = model.getPrimaryBudget().deepCopy().normalize(Timestamp.getCurrentTimestamp());\n\n if (pastDate.dateIsAfter(currentPeriod.getWindowEndDate())) {\n throw new CommandException(MESSAGE_PERIOD_IS_FUTURE);\n }\n }", "@Test\n public void testYesterdayOrBetterComparision() {\n Calendar quietAllowedForFeature = Calendar.getInstance(TimeZone.getTimeZone(\"America/Chicago\"));\n quietAllowedForFeature.setTimeInMillis(DateHelper.MILLIS_PER_DAY * 2);\n // midnight 'now' user local time\n quietAllowedForFeature = DateHelper.asDay(quietAllowedForFeature);\n // midnight day before user local time\n quietAllowedForFeature.add(Calendar.DATE, -1); //1 days quiet ok; add this as per feature setting?\n // last rec'd as user local time\n Date userLastMessageReceived = new Date(DateHelper.MILLIS_PER_DAY * 3);\n // if any messages from module after midnight yesterday (any messages yesterday or newer)\n //System.out.println(quietAllowedForFeature);\n //System.out.println(userLastMessageReceived);\n assertTrue(userLastMessageReceived.after(quietAllowedForFeature.getTime()));\n }", "@Override\n public void onUpdateCheckFinished(@Nullable UpdateInfo update, boolean failed)\n {\n Context ctx = getContext();\n if (failed || ctx == null || updateHelper == null)\n {\n Toast.makeText(getContext(), R.string.more_update_check_failed_toast, Toast.LENGTH_LONG).show();\n return;\n }\n\n //save the current timestamp as last update check time in shared prefs\n updateHelper.updateTimeOfLastUpdateCheck();\n\n //do we have a update?\n if (update != null)\n {\n //have a update, set persistent flag show update dialog\n //set a flag in shared prefs that we have a update, in case the user does not update right away\n updateHelper.setUpdateAvailableFlag(true);\n\n //show update dialog\n updateHelper.showUpdateDialog(update, null, true);\n }\n else\n {\n //no update found, tell user that\n updateHelper.setUpdateAvailableFlag(false);\n Toast.makeText(getContext(), R.string.more_no_update_toast, Toast.LENGTH_LONG).show();\n }\n\n //unlock button\n updateCheckButton.setEnabled(true);\n }", "private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}" ]
[ "0.66024166", "0.657474", "0.650053", "0.65000236", "0.6495801", "0.6461365", "0.6392727", "0.6355418", "0.62376", "0.6207402", "0.6188599", "0.6188403", "0.6152586", "0.6134836", "0.6134836", "0.61342776", "0.6108347", "0.5967394", "0.5962213", "0.5943114", "0.59395736", "0.5927778", "0.5919059", "0.59178656", "0.5896836", "0.58641285", "0.5856613", "0.5851927", "0.5851927", "0.5851927", "0.5830234", "0.58287865", "0.58077884", "0.5803068", "0.5785382", "0.57713085", "0.5768631", "0.5759434", "0.5758046", "0.57523423", "0.5750896", "0.5743291", "0.57316417", "0.57135475", "0.5695492", "0.5682798", "0.56810755", "0.56810755", "0.56624764", "0.5661653", "0.5653084", "0.56313413", "0.5621963", "0.5620378", "0.561342", "0.56098485", "0.5602724", "0.5598215", "0.55805826", "0.55771965", "0.55664194", "0.5552025", "0.55464494", "0.55412394", "0.5535336", "0.55147904", "0.55080634", "0.5506882", "0.55048245", "0.55021554", "0.5501771", "0.54947716", "0.5484124", "0.5482655", "0.5474901", "0.5468208", "0.5466896", "0.546331", "0.54624593", "0.5461936", "0.54617155", "0.5460563", "0.5455027", "0.5437785", "0.54336786", "0.5432408", "0.54273164", "0.5424028", "0.54160583", "0.54125315", "0.54011923", "0.539844", "0.53910834", "0.5388437", "0.53876305", "0.53867465", "0.5380315", "0.53769046", "0.5376822", "0.5373319" ]
0.6142001
13
Run the analysis of the model in a separate thread
public void runModel(){ currentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor); new Thread(currentView.getDynamicModelView().getModel()).start(); setStatusBarText("Ready"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void runAnalysis ()\n\t{\n\t\tif (isBatchFile()) { runBatch(false); return; }\n\n\t\tfinal String modelText = editor.getText();\n\t\tString iterations = toolbar.getIterations();\n\t\tmodel = Model.compile (modelText, frame);\n\t\tif (model == null) return;\n\t\tTask task = model.getTask();\n\t\tfinal int n = (iterations.equals(\"\")) ? task.analysisIterations()\n\t\t\t\t: Integer.valueOf(iterations);\n\t\t(new SwingWorker<Object,Object>() {\n\t\t\tpublic Object doInBackground() {\n\t\t\t\tif (!core.acquireLock(frame)) return null;\n\t\t\t\tstop = false;\n\t\t\t\tupdate();\n\t\t\t\tclearOutput();\n\t\t\t\toutput (\"> (run-analysis \" + n + \")\\n\");\n\t\t\t\tif (model != null && model.getTask() != null) \n\t\t\t\t{\n\t\t\t\t\tTask[] tasks = new Task[n];\n\t\t\t\t\tfor (int i=0 ; !stop && i<n ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tmodel = Model.compile (modelText, frame);\n\t\t\t\t\t\t//brainPanel.setVisible (false);\n\t\t\t\t\t\tshowTask (model.getTask());\n\t\t\t\t\t\tmodel.setParameter (\":real-time\", \"nil\");\n\t\t\t\t\t\tmodel.run();\n\t\t\t\t\t\tmodel.getTask().finish();\n\t\t\t\t\t\ttasks[i] = model.getTask();\n\t\t\t\t\t}\n\t\t\t\t\tif (!stop && model!=null)\n\t\t\t\t\t\tmodel.getTask().analyze (tasks, true);\n\t\t\t\t\t//model = null;\n\t\t\t\t\thideTask();\n\t\t\t\t}\n\t\t\t\tcore.releaseLock (frame);\n\t\t\t\tupdate();\n\t\t\t\treturn null;\n\t\t\t}\n }).execute();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "private void runOnlineModel() {\n myScenario.setProbe(myProbe);\n myScenario.setSynchronizationMode(mySrcSelector);\n try {\n myScenario.resync();\n myScenario.run();\n } catch (SynchronizationException e) {\n System.out.println(e);\n } catch (ModelException e) {\n System.out.println(e);\n }\n }", "public void updateDataModel() {\n //this.dataModel = new TelemetryChartDataModel();\n this.dataModel.\n setModel(getStartDate(), getEndDate(), selectedProjects, telemetryName, parameters);\n Thread thread = new Thread() {\n @Override\n public void run() {\n dataModel.loadData();\n }\n };\n thread.start();\n }", "public void run() {\n doProcessDocuments();\n //doReport();\n\n }", "public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }", "public void run () {\n generalFeatureExtraction();\n\n //\n // 2 - Traverse the Call Graph and propagate call stack counter\n propagateFeatures();\n }", "public void run() {\n\t\tSystem.out.println(\"fuseAvg\");\n\t\tAverageConcurrent1 averager = new AverageConcurrent1();\n\t\tValidateFusion validator = new ValidateFusion();\n\t\tfloat avg = averager.averageConcurrent1(sortedSnapshot);\t\t\t \n\t\tvalidator.validate(avg, 0);\n\t\tGlobalInfo.completeThreads++;\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void run() {\n if (checkFailure()) {\n throw new InvalidInputException(\"任务结果计算器暂时无法工作,因为未满足条件\");\n } else {\n analysisDistribution();\n File file = writeFile();\n task.setResult(OSSWriter.upload(file));\n task.setHasResult(true);\n taskController.update(task);\n }\n }", "public void run() {\n // solve();\n faster();\n }", "public void run(){\n //logic to execute in a thread \n }", "@Override\n public void run() {\n try {\n while (this.getState() != Thread.State.TERMINATED) {\n IDataModel dataModel = myDataModelController.getCurrentModel();\n\n if ((dataModel != null) && (!dataModel.isModelChecked())) {\n runAllValidations(dataModel);\n }\n Thread.sleep(CYCLE_SLEEP_TIME);\n }\n } catch (InterruptedException e) {\n // state = Thread.State.TERMINATED;\n this.interrupt();\n }\n }", "@Override\n\tpublic void run() {\n\t\tBS.approach(AV);\n\t}", "private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}", "public void doWork() {\n Thread thread = new Thread( hva != null ? hva : this);\n thread.start();\n }", "public void run() {\n\n // Initialize control center.\n\n control = new Dispatch(parameters);\n control.run();\n linked = control.gettasks();\n\n // Initialize trains.\n\n trains = new TrainSim[parameters.numTrains];\n\n for (int i = 0; i < parameters.numTrains; i++) {\n\n trains[i] = new TrainSim(parameters, i);\n trains[i].genbasis();\n\n }\n\n // Add linked tasks to trains.\n\n for (Task each : linked) {\n\n int trainid = each.getTrain();\n each = new Task(each.getType(), each.getBeginTime(), parameters, false);\n each.setID(trainid);\n if (each.getArrTime() < parameters.numHours*60) {\n trains[trainid].linktask(each);\n }\n }\n\n // Run each train\n\n for (TrainSim each : trains) {\n\n each.run();\n\n }\n\n }", "protected void internalRun() {\n work();\n }", "@Override\n public void run() {\n logger.debug(\"OImaging.execute() handler called.\");\n\n // reset IRModelManager to fire an IRMODEL changed event to all registered listeners:\n IRModelManager.getInstance().start();\n\n // headless mode:\n final JFrame appFrame = App.getExistingFrame();\n if (appFrame != null) {\n appFrame.setVisible(true);\n }\n }", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public void run() \n\t{\n\t\ttry\n\t\t{\n\t\t\t// Record the time-taken to execute the filter\n\t\t\tstartTime.set(System.nanoTime());\n\t\t\t\n\t\t\treadInput(); \n\t\t\t\n\t\t\tstopTime.set(System.nanoTime());\n\t\t\tlogger.recordData(\"ComputeTermFrequencyFilter\", startTime.get(), stopTime.get());\n\t\t\tcomponentWaiter.countDown();\n\t\t}\n\t\tcatch (InterruptedException | IOException e) \n\t\t{ \n\t\t\t//e.printStackTrace(); \n\t\t\tThread.currentThread().interrupt();\n\t\t} \n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.train(groupid_long, TRAIN_TYPE.all );\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsessionId = result.data+\"\";\n\t\t\t\t Log.e(TAG,sessionId);\n\t\t\t}", "public void runExperiment() {\n\t\tevaluator = new Evaluator(trainingSet);\n\t\tevaluator.evaluateClassifiers(classifiers);\n\t}", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "public void run() {\r\n\t\tnotifyViews();\r\n\t\tfor (int i = 0; i < 100000; i++) {\r\n\t\t\ttick();\r\n\t\t}\r\n\t}", "public void run() {\n \n m_StartBut.setEnabled(false);\n m_StopBut.setEnabled(true);\n if (m_ResultsPanel != null) {\n\tm_ResultsPanel.setExperiment(null);\n }\n try {\n\tif (m_ExpCopy instanceof RemoteExperiment) {\n\t // add a listener\n\t System.err.println(\"Adding a listener\");\n\t ((RemoteExperiment)m_ExpCopy).\n\t addRemoteExperimentListener(new RemoteExperimentListener() {\n\t\tpublic void remoteExperimentStatus(RemoteExperimentEvent e) {\n\t\t if (e.m_statusMessage) {\n\t\t statusMessage(e.m_messageString);\n\t\t }\n\t\t if (e.m_logMessage) {\n\t\t logMessage(e.m_messageString);\n\t\t }\n\t\t if (e.m_experimentFinished) {\n\t\t m_RunThread = null;\n\t\t m_StartBut.setEnabled(true);\n\t\t m_StopBut.setEnabled(false);\n\t\t statusMessage(NOT_RUNNING);\n\t\t }\n\t\t}\n\t });\n\t}\n\tlogMessage(\"Started\");\n\tstatusMessage(\"Initializing...\");\n\tm_ExpCopy.initialize();\n\tint errors = 0;\n\tif (!(m_ExpCopy instanceof RemoteExperiment)) {\n\t statusMessage(\"Iterating...\");\n\t while (m_RunThread != null && m_ExpCopy.hasMoreIterations()) {\n\t try {\n\t String current = \"Iteration:\";\n\t if (m_ExpCopy.getUsePropertyIterator()) {\n\t\tint cnum = m_ExpCopy.getCurrentPropertyNumber();\n\t\tString ctype = m_ExpCopy.getPropertyArray().getClass().getComponentType().getName();\n\t\tint lastDot = ctype.lastIndexOf('.');\n\t\tif (lastDot != -1) {\n\t\t ctype = ctype.substring(lastDot + 1);\n\t\t}\n\t\tString cname = \" \" + ctype + \"=\"\n\t\t + (cnum + 1) + \":\"\n\t\t + m_ExpCopy.getPropertyArrayValue(cnum).getClass().getName();\n\t\tcurrent += cname;\n\t }\n\t String dname = ((File) m_ExpCopy.getDatasets()\n\t\t\t .elementAt(m_ExpCopy.getCurrentDatasetNumber()))\n\t\t.getName();\n\t current += \" Dataset=\" + dname\n\t\t+ \" Run=\" + (m_ExpCopy.getCurrentRunNumber());\n\t statusMessage(current);\n\t m_ExpCopy.nextIteration();\n\t } catch (Exception ex) {\n\t errors ++;\n\t logMessage(ex.getMessage());\n\t ex.printStackTrace();\n\t boolean continueAfterError = false;\n\t if (continueAfterError) {\n\t\tm_ExpCopy.advanceCounters(); // Try to keep plowing through\n\t } else {\n\t\tm_RunThread = null;\n\t }\n\t }\n\t }\n\t statusMessage(\"Postprocessing...\");\n\t m_ExpCopy.postProcess();\n\t if (m_RunThread == null) {\n\t logMessage(\"Interrupted\");\n\t } else {\n\t logMessage(\"Finished\");\n\t }\n\t if (errors == 1) {\n\t logMessage(\"There was \" + errors + \" error\");\n\t } else {\n\t logMessage(\"There were \" + errors + \" errors\");\n\t }\n\t statusMessage(NOT_RUNNING);\n\t} else {\n\t statusMessage(\"Remote experiment running...\");\n\t ((RemoteExperiment)m_ExpCopy).runExperiment();\n\t}\n } catch (Exception ex) {\n\tex.printStackTrace();\n\tSystem.err.println(ex.getMessage());\n\tstatusMessage(ex.getMessage());\n } finally {\n\tif (m_ResultsPanel != null) {\n\t m_ResultsPanel.setExperiment(m_ExpCopy);\n\t}\n\tif (!(m_ExpCopy instanceof RemoteExperiment)) {\n\t m_RunThread = null;\n\t m_StartBut.setEnabled(true);\n\t m_StopBut.setEnabled(false);\n\t System.err.println(\"Done...\");\n\t}\n }\n }", "@Override\n protected void execute() {\n\n SwingUtils.invokeLaterEDT(new Runnable() {\n /**\n * Show the application frame using EDT\n */\n @Override\n public void run() {\n logger.debug(\"OImaging.execute() handler called.\");\n\n // reset IRModelManager to fire an IRMODEL changed event to all registered listeners:\n IRModelManager.getInstance().start();\n\n // headless mode:\n final JFrame appFrame = App.getExistingFrame();\n if (appFrame != null) {\n appFrame.setVisible(true);\n }\n }\n });\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}", "private static void runCalculations()\n {\n // TODO Create two different empty concurrent histograms\n\n // Create a sleep time simulator, it will sleep for 10 milliseconds in each call\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulSleep(10);\n\n // List of threads\n List<Runner> runners = new LinkedList<>();\n\n // Create the threads and start them\n for (int i = 0; i < NUM_THREADS; i ++)\n {\n // TODO Pass the proper histograms\n final Runner runner = new Runner(syncOpSimulator, null, null);\n runners.add(runner);\n new Thread(runner).start();\n }\n\n // Wait for runners to finish\n runners.forEach(Runner::waitToFinish);\n\n // TODO Show the percentile distribution of the latency calculation of each executeOp call for all threads\n }", "public void run() {\n\t \t\t\tfinal Processor mProcessor = new Processor(ScanUtils.appFolder);\n\t \t\t\t\n\t \t\t\ttry {\n\t\t\t\t\t\tif( mProcessor.loadFormImage(inputPath, calibrationPath) ) {\n\t\t\t\t\t\t\tint formIdx = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i = 0; i < templatePaths.length; i++){ \n\t\t\t\t\t\t\t\tLog.i(LOG_TAG, \"loadingFD: \" + templatePaths[i]);\n\t\t\t\t\t\t\t\tif(!mProcessor.loadFeatureData(templatePaths[i])){\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"Could not load feature data from: \" + templatePaths[i]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(templatePaths.length > 1) {\n\t\t\t\t\t\t\t\tformIdx = mProcessor.detectForm();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(formIdx >= 0) {\n\t\t\t\t\t\t\t\tif(mProcessor.setTemplate(templatePaths[formIdx])) {\n\t\t\t\t\t\t\t\t\tLog.i(LOG_TAG,\"template loaded\");\n\t\t\t\t\t\t\t\t\tif( mProcessor.alignForm(outputPath, formIdx) ) {\n\t\t\t\t\t\t\t\t\t\tLog.i(LOG_TAG,\"aligned\");\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\tthrow new Exception(\"Failed to align form.\");\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\tthrow new Exception(\"Failed to set template.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tthrow new Exception(\"Failed to detect form.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthrow new Exception(\"Failed to load image: \" + inputPath);\n\t\t\t\t\t\t}\n\t \t\t\t} catch (Exception e) {\n\t \t\t\t\toutputData.putString(\"errorMessage\", e.toString());\n\t \t\t\t}\n\t \t\t\tMessage msg = new Message();\n\t \t\t\tmsg.setData(outputData);\n\t \t\t\thandler.sendMessage(msg);\n\t \t\t}", "@Override\n public void run() {\n calculate();\n }", "public void run() {\n try {\n PSTableGroup.registerThread();\n //get tables\n ClientTable tableL = PSTableGroup.getTableOrDie(0);\n ClientTable tableR = PSTableGroup.getTableOrDie(1);\n ClientTable tableLoss = PSTableGroup.getTableOrDie(2);\n // Initialize MF solver\n int totalNumWorkers = getTotalNumWorker();\n int globalWorkerId = getGlobalWorkerId(localThreadId);\n\n initMF(tableL, tableR);\n PSTableGroup.globalBarrier();\n long start = System.currentTimeMillis();\n //run mf solver\n for(int iter = 0; iter < numIterations; iter++) {\n if(globalWorkerId == 0) {\n System.out.println(\"Iteration \" + String.valueOf(iter + 1) + \"/\" + String.valueOf(numIterations));\n }\n //clear loss function table\n DenseRow lossRow = (DenseRow)tableLoss.get(0);\n tableLoss.inc(0, globalWorkerId, - lossRow.get(globalWorkerId));\n // Divide matrix elements across workers, and perform SGD\n double stepSize = initStepSize * Math.pow(stepSizeOffset + iter, - stepSizePow);\n\n MatrixLoader.Element ele = dataMatrix.getNextEl(globalWorkerId);\n while(ele.isLastEl == false) {\n sgdElement(ele.row, ele.col, ele.value, stepSize, globalWorkerId, tableL, tableR, tableLoss);\n ele = dataMatrix.getNextEl(globalWorkerId);\n }\n //output loss function\n if(globalWorkerId == 0) {\n lossRow = (DenseRow)tableLoss.threadGet(0);\n double loss = 0;\n for(int t = 0; t < totalNumWorkers; t++) {\n loss += lossRow.get(t);\n }\n System.out.println(\"loss function = \" + String.valueOf(loss));\n }\n PSTableGroup.clock();\n }\n long end = System.currentTimeMillis();\n if(globalWorkerId == 0) {\n System.out.println(\"Total time is \" + String.valueOf((end - start) / 1000f));\n }\n // Let stale values finish propagating (performs staleness+1 clock()s)\n PSTableGroup.globalBarrier();\n PSTableGroup.deregisterThread();\n\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run()\n {\n calculate();\n }", "public void execute() {\n if(isModified() && worker==null) {\n try {\n worker = new AnalyzeToolWorker();\n } catch (IOException ex) {\n setExecuting(false);\n ErrorDialog.displayIOExceptionDialog(toolName+\" Error\", \"Tool initialization failed.\", ex);\n return;\n }\n worker.start();\n }\n }", "public void run() {\n\t\ttry {\n\t\t\tif (!connect()){\n\t\t\t\tSystem.err.println(\"Mongo Thread: \"+threadnumber+\" NOT connected\");\n\t\t\t\tPerformance.console.append(\"Mongo Thread: \"+threadnumber+\" NOT connected\\n\");\n\t\t\t\tPerformance.error=true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Mongo Thread: \"+threadnumber+\" connected\");\n\t\t\n\t\t\t}\t\t\t\n\t\n\t\t\t//wait for others to connect and generate optional data for testcases.\n\t\t\tif (Performance.EXTERNAL_CONNECTION)\n\t\t\t\tPerformance.threadconnectionbarrierextern.waitForOthers();\n\t\t\telse\n\t\t\t\tPerformance.threadconnectionbarrier.waitForOthers();\t\t\n\t\t\t\t\n\t\t\tPerformance.threadstartbarrierM.waitForOthers(this);\n\t\t\t\n\t\t\tif (!Thread.interrupted()){\n\t\t\t\ttest(testcase);\n\t\t\t\t//wait for other threads to finish\t\n\t\t\t\tif (Performance.EXTERNAL_CONNECTION)\n\t\t\t\t\tPerformance.threadbarrierextern.waitForOthers(this);\n\t\t\t\telse\n\t\t\t\t\tPerformance.threadbarrier.waitForOthers(this);\t\t\n\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "private void execute() {\n Print.pr(\"Running ANNIE...\");\n try {\n annieController.execute();\n } catch (ExecutionException ex) {\n Out.prln(ex);\n }\n Print.prln(\"...ANNIE execution completed\");\n\n\n \n }", "public void run()\n\t\t\t{\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * \n\t\t\t\t * Process Query Here\n\t\t\t\t * \n\t\t\t\t **/\n\t\t\t}", "private void runThreads() {\n\t\tinsertionSort = new InsertionSortDemo(insertionData);\n\t\tquickSort = new QuickSortDemo(quickData);\n\t\t// add change listener\n\t\tinsertionSort.addPropertyChangeListener(this);\n\t\tquickSort.addPropertyChangeListener(this);\n\t\t//start the thread\n\t\tinsertionSort.execute();\n\t\tquickSort.execute();\n\t}", "public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(750);\n\t\t} catch (InterruptedException ex) {\n\t\t\treturn;\n\t\t}\n\t\tinitializeLabels();\n\t\tint iteration = 0;\n\t\twhile (iteration++ < maxIterations && !Thread.interrupted()) {\n\t\t\tappData.showCurrentIteration(iteration);\n\t\t\tassignLabels();\n\t\t\tif(iteration % updateInterval == 0){\n\t\t\t\tappData.updateChart(iteration);\n\t\t\t\tif (!isContinuous) {\n\t\t\t\t\tappData.enableRun();\n\t\t\t\t\ttocontinue.set(false);\n\t\t\t\t\twhile (!tocontinue()) { //wait until play is clicked\n\t\t\t\t\t\tif (Thread.interrupted()) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tappData.disableRun();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(750);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(iteration-1 == maxIterations){\n\t\t\tappData.completeAlgorithm(); //algorithm exhausted all iterations\n\t\t\tappData.updateChart(maxIterations);\n\t\t}else{\n\t\t\tappData.autocompleteAlgorithm(); //algorithm terminated by itself\n\t\t\tappData.updateChart(iteration);\n\t\t}\n\t}", "public void run() {\n System.out.println(\"main recognition loop started\");\n while (true) {\n try { \n // ask the recognizer to recognize text in the recording\n if(recognizer.getState()==Recognizer.State.READY) {\n Result result = recognizer.recognize(); \n // got a result\n if (result != null) {\n resultText = result.getBestFinalResultNoFiller();\n if(resultText.length()>0) {\n // System.out.println(\"[\"+result.getStartFrame()+\",\"+result.getEndFrame()+\"]\");\n// System.out.println(result.getTimedBestResult(false, true));\n makeEvent();\n }\n }\n }\n }\n catch (Exception e) { \n System.out.println(\"exception Occured \"); \n e.printStackTrace(); \n System.exit(1);\n }\n }\n }", "@Override\r\n\tpublic void doWorkFlowAnalysis() {\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\n\t\tURLConnection connection = null;\n\t\ttry {\n\t\t\tIterator<String> iterator = targetSensor.iterator();\n\t\t\tfor (int i = 0; i < targetSensor.size(); i++) {\n\t\t\t\tString sensorName = iterator.next();\n\n\t\t\t\tURL oracle = new URL(\"http://localhost:8081/fakeDataSource/sensors/\" + sensorName + \"/data\");\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(oracle.openStream()));\n\t\t\t\tString inputLine;\n\n\t\t\t\tString res = \"\";\n\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n//System.out.println(\"Received\" + inputLine);\n\t\t\t\t\tres += inputLine;\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"Thread [%s] - Tracking sensor %s and received %s\\n\", this.getName(), sensorName, res);\n\n\t\t\t\tin.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "public void runCalculation() throws InterruptedException {\n\tnew CalculationStarted(this).provide();\n\tcalculate();\n\tnew CalculationFinished(this).provide();\n }", "public void execute() {\n\t\tlaunch();\n\t}", "protected void execute() {\n\t\t\r\n\t\tParticleAnalysisReport[] reports = simpleVision.getFrame();\r\n\t\t for (int i = 0; i < reports.length; i++) { // print results\r\n ParticleAnalysisReport r = reports[i];\r\n SmartDashboard.putString(\"Particle\" + i, r.center_mass_x + \", \" + r.center_mass_y);\r\n\t\t }\r\n\t\t\r\n\t}", "public void run()\n\t\t{\n\t\t}", "public static void start(){\n mngr.getStpWds();\n mngr.getDocuments();\n mngr.calculateWeights();\n mngr.getInvertedIndex();\n mngr.getClusters();\n mngr.getCategories();\n mngr.getUserProfiles();\n mngr.makeDocTermMatrix();\n\n }", "public void run() {\n }", "public void run() {\r\n setStartTime();\r\n ///if ( this instanceof AlgorithmHistoryInterface ) {\r\n /// constructLog();\r\n ///}\r\n\r\n runAlgorithm();\r\n\r\n // write out anything that the algorithm put into the (history) logging string(s)\r\n writeLog();\r\n\r\n computeElapsedTime();\r\n\r\n if (Preferences.debugLevel(Preferences.DEBUG_ALGORITHM)) {\r\n logElapsedTime();\r\n }\r\n\r\n notifyListeners(this);\r\n\r\n /// finalize();\r\n }", "public void run() {\n\n\n\t\tStructurePairAligner aligner = new StructurePairAligner();\n\t\taligner.setDebug(true);\n\t\ttry {\n\t\t\taligner.align(structure1,structure2);\n\t\t} catch (StructureException e){\n\t\t\tlogger.warning(e.getMessage());\n\n\t\t}\n\n\n\n\t\tAlternativeAlignment[] aligs = aligner.getAlignments();\n\t\t//cluster similar results together \n\t\tClusterAltAligs.cluster(aligs);\n\t\tshowAlignment(aligner,aligs);\n\n\t\t//logger.info(\"done!\");\n\n\t\tparent.notifyCalcFinished();\n\n\t}", "public void run() {\n }", "public void run() {\n\n }", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run();", "public void run();", "public void run();", "public void run();", "public void run();", "public static void main(String[] args) throws IOException, InterruptedException {\n\n File src = new ClassPathResource(\"winequality-red.csv\").getFile();\n\n FileSplit fileSplit = new FileSplit(src);\n\n RecordReader rr = new CSVRecordReader(1,',');// since there is header in the file remove row 1 with delimter coma\n rr.initialize(fileSplit);\n\n Schema sc = new Schema.Builder()\n .addColumnsDouble(\"fixed acidity\",\"volatile acidity\",\"citric acid\",\"residual sugar\",\"chlorides\",\"free sulfur dioxide\",\"total sulfur dioxide\",\"density\",\"pH\",\"sulphates\",\"alcohol\")\n .addColumnCategorical(\"quality\", Arrays.asList(\"3\",\"4\",\"5\",\"6\",\"7\",\"8\"))\n .build();\n\n TransformProcess tp = new TransformProcess.Builder(sc)\n .categoricalToInteger(\"quality\")\n .build();\n\n System.out.println(\"Initial Schema : \"+tp.getInitialSchema());\n System.out.println(\"New Schema : \"+tp.getFinalSchema());\n\n List<List<Writable>> original_data = new ArrayList<>();\n\n while(rr.hasNext()){\n original_data.add(rr.next());\n }\n\n List<List<Writable>> transformed_data = LocalTransformExecutor.execute(original_data,tp);\n\n CollectionRecordReader crr = new CollectionRecordReader(transformed_data);\n\n DataSetIterator iter = new RecordReaderDataSetIterator(crr,transformed_data.size(),-1,6);\n\n DataSet fullDataSet = iter.next();\n fullDataSet.shuffle(seed);\n\n SplitTestAndTrain traintestsplit = fullDataSet.splitTestAndTrain(0.8);\n DataSet trainDataSet = traintestsplit.getTrain();\n DataSet testDataSet = traintestsplit.getTest();\n\n\n DataNormalization normalization = new NormalizerMinMaxScaler();\n normalization.fit(trainDataSet);\n normalization.transform(trainDataSet);\n normalization.transform(testDataSet);\n\n MultiLayerConfiguration config = getConfig (numberInput,numberClasses,learning_rate);\n\n MultiLayerNetwork model = new MultiLayerNetwork(config);\n model.init();\n\n //UI-Evaluator\n StatsStorage storage = new InMemoryStatsStorage();\n UIServer server = UIServer.getInstance();\n server.attach(storage);\n\n //Set model listeners\n model.setListeners(new StatsListener(storage, 10));\n\n Evaluation eval;\n\n for(int i=0;i<epochs;i++) {\n model.fit(trainDataSet);\n eval = model.evaluate(new ViewIterator(testDataSet, transformed_data.size()));\n System.out.println(\"Epoch \" + i + \", Accuracy : \"+eval.accuracy());\n }\n\n Evaluation evalTrain = model.evaluate(new ViewIterator(trainDataSet,transformed_data.size()));\n Evaluation evalTest = model.evaluate(new ViewIterator(testDataSet,transformed_data.size()));\n\n System.out.println(\"Train Eval : \"+evalTrain.stats());\n System.out.println(\"Test Eval : \"+evalTest.stats());\n\n\n\n\n\n\n\n }", "public void run() {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n LOG.error(\"Submit: {} - run {}/{}\", topologies.get(jobIndex).name, ((jobCounter - 1) % runs) + 1, runs);\n client.submitTopology(topologies.get(jobIndex), null);\n }", "@Override\npublic void run() {\n perform();\t\n}", "public void run() {\n\t\t\t\tLog.e(\"bc\", \"thread started!\");\n\n\t\t\t\t// UTPDirectTest();\n\t\t\t\t// UDPTest();\n\t\t\t\tUDPBroadcastTest();\n\n\t\t\t}", "@Override\n public void run() {\n runTask();\n\n }", "private void threads()\n {\n {\n Observable myObservable = Observable.create\n (\n new Observable.OnSubscribe<GetArtistQuery>() \n {\n public void call(Subscriber<? super GetArtistQuery> sub) \n { \n //System.out.println(Thread.currentThread().getName());\n sub.onNext(getArtistQuery);\n sub.onCompleted();\n }\n } \n );\n \n Subscriber mySubscriber = new Subscriber<GetArtistQuery>() \n {\n public void onNext(GetArtistQuery s) \n { \n try { \n s.execute();\n } catch (SQLException ex) { System.out.println(ex); }\n }\n public void onCompleted() { \n }\n public void onError(Throwable e) {System.out.println(e); } \n };\n //myObservable.subscribe(mySubscriber); \n try {\n myObservable.\n subscribeOn(Schedulers.io()).\n //observeOn(Schedulers.from(executorService)).\n observeOn(Schedulers.trampoline()).\n subscribe(mySubscriber);\n Thread.sleep(2); \n //executorService.shutdown();\n } catch(InterruptedException ex) {Thread.currentThread().interrupt();}\n }\n \n }", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "@Override\n public void run() {\n new NdefReaderTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "public void run() {\n\t\tcurrentTime = 0;\n\t\twhile (currentTime < timeLimit) {\n\t\t\t// add chosen task(s) to the scheduler\n\t\t\taddTaskToServer();\n\t\t\t// calculate the peak hour in every step and empty queue time\n\t\t\tcalculatePeakHour();\n\t\t\tcalculateEmptyQueueTime();\n\t\t\t// show the evolution of the queues\n\t\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\t\tcurrentTime++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(simulationSpeed);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// the time is over, stop other threads from running\n\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\tthis.scheduler.stopServers();\n\t\t// wait one more second before showing statistics\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tframe.dispayStatistics();\n\n\t\twriter.close();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsynchronized (mSync) {\n\t\t\t\t// 描画スレッドが実行されるまで待機\n\t\t\t\tif (!isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmSync.wait();\n\t\t\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinit();\n\t\t\tif (egl.getGlVersion() > 2) {\n\t\t\t\tcaptureLoopGLES3();\n\t\t\t} else {\n\t\t\t\tcaptureLoopGLES2();\n\t\t\t}\n\t\t\t// release resources\n\t\t\trelease();\n//\t\t\tif (DEBUG) Log.v(TAG, \"captureTask finished\");\n\t\t}", "@Test\n\tpublic void run() throws InterruptedException{\n\t\tDateTime since = new DateTime(\"2013-1-1\");\n\t\t/** setup the input and output streams **/\n\n\t\t/** setup the topology **/\n\n\t\tbuilder.setSpout(\"TickSpout\", new TickSpout(since));\n\t\t\n\t\t// filter odd number\n\t\tbuilder.setTask(\"Filter\", new OddNumberFilterTask(), \"TickSpout\");\n\t\t\n\t\tbuilder.setTask(\"Counter\", new CountTask(), \"Filter\").setTimeWindowSize(Hours.ONE);\n\n\t\tbuilder.setColdStart(false);\n\t\t//LocalCluster cluster = builder.submitToLocalCluster(\"Activity-Count\");\n\t\t//Thread.sleep(6000);\n\n\t\t\t\t\n\t\t\n\t}", "@Override\n public void run() {\n this.mdc.insertLog(\"#1 Memecah Dataset\\n\");\n //1. Split Dataset\n boolean isSplitted = false;\n try {\n List<Object> split_mat = this.dataset.split(this.userMap,this.recipeMap);\n this.trainM = (TrainMatrix) split_mat.remove(0);\n this.testM = (TestMatrix) split_mat.remove(0);\n isSplitted = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (isSplitted) {\n this.mdc.insertLog(\"Berhasil memecah dataset.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam memecah dataset. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n\n this.mdc.insertLog(\"#2 Inisialisasi Matriks Faktor\\n\");\n //2. Initialize Matrix Factor \n boolean initializeFactor = false;\n FactorMatrix userFactor = null;\n FactorMatrix userFactor_2 = null;\n FactorMatrix recipeFactor = null;\n FactorMatrix ingredientFactor = null;\n FactorMatrix recipeIngredientsMap = null;\n try {\n // user factor = m x f\n userFactor = new FactorMatrix(this.trainM.getRowLength(), utils.getLatentSize(), FactorType.USER);\n // recipe factor = n x f\n recipeFactor = new FactorMatrix(this.trainM.getColLength(), utils.getLatentSize(), FactorType.RECIPES);\n // ingredient factor = o x f\n ingredientFactor = new FactorMatrix(this.ingredients.size(), utils.getLatentSize(), FactorType.INGREDIENTS);\n // recipe x ingredient map matrix = n x o (mask matrix 1/0)\n recipeIngredientsMap = new FactorMatrix(this.trainM.getColLength(),\n this.ingredients.size(),\n this.recipes,\n this.recipeMap,\n this.ingredientMap);\n userFactor_2 = new FactorMatrix(userFactor);\n initializeFactor = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (initializeFactor) {\n this.mdc.insertLog(\"Berhasil menginisialisasi faktor matriks.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses inisialisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n \n //3. entering loop \n //loop a thousand time or break if objective value less than MIN_OBJECTIVE_VAL\n boolean firstMethodOptimization = false; \n boolean secondMethodOptimization = false;\n double objFuncPrev_1 = 0.0; \n double objFuncPrev_2 = 0.0;\n String[] rmseRecord1 = new String[MAX_LOOP];\n String[] rmseRecord2 = new String[MAX_LOOP];\n String[] objValueRecord1 = new String[MAX_LOOP];\n String[] objValueRecord2 = new String[MAX_LOOP];\n double[][] bestModel1 = null;\n double[][] bestModel2 = null;\n \n this.mdc.insertLog(\"#3.1 Memasuki iterasi untuk optimisasi model matriks faktor pertama.\\n\"\n + \"# Detail Proses No. 1:\\n\"\n + \"# Maksimal Iterasi: \" + MAX_LOOP + \"\\n\"\n + \"# Metode: Faktorisasi dengan dua buah matriks faktor, faktor Pengguna & Resep Makanan.\\n\"\n );\n long start = System.currentTimeMillis(); \n \n try{\n double max_value = Double.MAX_VALUE;\n int loop = MAX_LOOP;\n while(loop-->0){\n if(this.learningType > 0) this.utils.setLearningRate(1.0/((MAX_LOOP-loop)*1.0)); //iteratively \n \n double[][] currPrediction = userFactor.multiply(recipeFactor.transpose());\n double objectiveValue = utils.objectiveFunction_m1(\n userFactor,\n recipeFactor,\n this.dataset.getTrainPair()\n );\n \n double rmse = this.utils.rmse(this.dataset.getTrainPair(), currPrediction, trainM.getEntry(), 0);\n if(max_value > rmse){\n max_value = rmse;\n bestModel1 = currPrediction;\n }\n \n rmseRecord1[MAX_LOOP-1-loop] = String.format(\"%.3f\",rmse);\n objValueRecord1[MAX_LOOP-1-loop] = String.format(\"%.3f\",objectiveValue);\n \n if (Math.abs(objFuncPrev_1 - objectiveValue) <= 0.0001) break;\n else if(Double.isNaN(objectiveValue)) throw new RuntimeException(\"Objective Function value is NaN\");\n else{\n //do A-GD\n objFuncPrev_1 = objectiveValue;\n utils.alternatingGradientDescent_m1(\n userFactor,\n recipeFactor,\n this.dataset.getTrainPair()\n );\n } \n }\n firstMethodOptimization = true;\n } catch(Exception e){\n e.printStackTrace();\n } finally {\n if(firstMethodOptimization) this.mdc.insertLog(\"Proses optimisasi metode pertama selesai\\n\");\n else{ \n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses faktorisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n long elapsedTime_1 = System.currentTimeMillis() - start;\n \n \n this.mdc.insertLog(\"#3.2 Memasuki iterasi untuk optimisasi model matriks faktor kedua.\\n\"\n + \"# Detail Proses No. 2:\\n\"\n + \"# Maksimal Iterasi: \" + MAX_LOOP + \"\\n\"\n + \"# Metode: Faktorisasi dengan dua buah matriks faktor, faktor Pengguna & Bahan Makanan.\\n\"\n + \" Serta memanfaatkan matriks biner yang memetakan resep & bahan makanan.\\n\"\n );\n start = System.currentTimeMillis(); \n try {\n double max_value = Double.MAX_VALUE;\n int loop = MAX_LOOP;\n while (loop-- > 0) {\n if(this.learningType > 0) this.utils.setLearningRate(1.0/((MAX_LOOP-loop)*1.0)); //iteratively \n double[][] currPrediction = MatrixUtil.multiplyWithTransposing(\n MatrixUtil.multiplyWithTransposing(userFactor_2.getEntry(), ingredientFactor.getEntry(), 1),\n recipeIngredientsMap.getEntry(),\n 1); \n \n double objectiveValue = utils.objectiveFunction_m2(\n currPrediction,\n userFactor_2,\n ingredientFactor,\n this.dataset.getTrainPair()\n );\n \n double rmse = utils.rmse(this.dataset.getTrainPair(), currPrediction, this.trainM.getEntry(), 1);\n \n if(max_value > rmse){\n max_value = rmse;\n bestModel2 = currPrediction;\n }\n \n objValueRecord2[MAX_LOOP-1-loop] = String.format(\"%.3f\",objectiveValue);\n rmseRecord2[MAX_LOOP-1-loop] = String.format(\"%.3f\",rmse);\n if (Math.abs(objFuncPrev_2 - objectiveValue) <= 0.0001) {\n break;\n } else if (Double.isNaN(objectiveValue)) {\n throw new RuntimeException(\"Objective Function value is NaN\");\n } else {\n //do A-GD\n utils.alternatingGradientDescent_m2(\n currPrediction,\n userFactor_2,\n ingredientFactor,\n recipeIngredientsMap,\n this.dataset.getTrainPair()\n );\n objFuncPrev_2 = objectiveValue;\n }\n }\n secondMethodOptimization = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (secondMethodOptimization) {\n this.mdc.insertLog(\"Proses optimisasi metode kedua selesai.\\n\");\n } else {\n this.mdc.insertLog(\"Error: Terjadi kesalahan dalam proses faktorisasi. Lihat riwayat error untuk lebih detail.\\n\");\n System.exit(1);\n return;\n }\n }\n long elapsedTime_2 = System.currentTimeMillis() - start;\n \n this.firstMethodRes = bestModel1;\n this.secondMethodRes = bestModel2;\n \n double rmse_1_test = utils.rmse(\n this.dataset.getTestPair(),\n firstMethodRes,\n this.testM.getEntry(),\n 0\n );\n \n double rmse_1_train = utils.rmse(\n this.dataset.getTrainPair(),\n firstMethodRes,\n this.trainM.getEntry(),\n 0\n );\n \n double rmse_1_data = utils.rmse(\n this.dataset.getDataPair(),\n firstMethodRes,\n this.dataset.getEntry(),\n 0\n );\n \n double rmse_2_test = utils.rmse(\n this.dataset.getTestPair(),\n secondMethodRes,\n this.testM.getEntry(),\n 1\n );\n \n double rmse_2_train = utils.rmse(\n this.dataset.getTrainPair(),\n secondMethodRes,\n this.trainM.getEntry(),\n 1\n );\n \n double rmse_2_data = utils.rmse(\n this.dataset.getDataPair(),\n secondMethodRes,\n this.dataset.getEntry(),\n 1\n );\n \n this.mdc.insertLog(\"Hasil RMSE:\\n\"\n + \"############################\\n\"\n + \"# Metode Faktorisasi Pertama\\n\"\n + String.format(\"# RMSE (Test Set) = %.3f\\n\",rmse_1_test)\n + String.format(\"# RMSE (Train Set) = %.3f\\n\",rmse_1_train)\n + String.format(\"# RMSE (Data Set) = %.3f\\n\",rmse_1_data)\n + String.format(\"# Waktu Berjalan: %.3fs\\n\", elapsedTime_1/1000F)\n + \"############################\\n\"\n + \"\\n\"\n + \"############################\\n\"\n + \"# SECOND OPTIMIZATION METHOD\\n\"\n + String.format(\"# RMSE (Test Set) = %.5f\\n\",rmse_2_test)\n + String.format(\"# RMSE (Train Set) = %.5f\\n\",rmse_2_train)\n + String.format(\"# RMSE (Data Set) = %.5f\\n\",rmse_2_data)\n + String.format(\"# Waktu Berjalan: %.3fs\\n\", elapsedTime_2/1000F)\n + \"############################\\n\"\n + \"\\n\"\n + \"Seluruh proeses faktorisasi telah selesai.\\n\");\n }", "public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\tbackwardCalculation(records.get(j).output);\n\t\t\t}\n//\t\t\tpostprocessOutputs();\n\t\t}\n\t}", "public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }", "private void performMT() {\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int i, j, k, m;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n final int xdim = newDimLengths[0];\r\n final int ydim = newDimLengths[1];\r\n final int zdim = (newDimLengths.length == 3) ? newDimLengths[2] : 1;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n fireProgressStateChanged( -1, null, \"Centering data before FFT algorithm ...\");\r\n center(realData, imagData);\r\n }\r\n\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n\r\n //System.out.println(\"Number of Threads: \" + nthreads);\r\n if (threadStopped) {\r\n return;\r\n }\r\n /**\r\n * Initialize the progress step.\r\n */\r\n if (image25D) {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim) / Math.log(2.0))));\r\n } else {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim * zdim) / Math.log(2.0))));\r\n }\r\n\r\n final CountDownLatch doneSignalX = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_YZ);\r\n for (i = 0; i < nthreads; i++) {\r\n \tfinal int nslices;\r\n \tif (zdim < nthreads) {\r\n \t if (i < zdim) {\r\n \t\t nslices = 1;\r\n \t }\r\n \t else {\r\n \t\t nslices = 0;\r\n \t }\r\n \t}\r\n \telse {\r\n nslices = zdim / nthreads;\r\n \t} \r\n final int sliceLen = xdim * ydim;\r\n final int start = i * nslices * sliceLen;\r\n final int end = start + 1;\r\n final int length = (i + 1) * nslices * sliceLen;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, 1, xdim, length, dir);\r\n doneSignalX.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalX.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n final CountDownLatch doneSignalY = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_ZX);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices;\r\n final int end = (i + 1) * nslices;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim, xdim * ydim, xdim * ydim * zdim, dir);\r\n doneSignalY.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalY.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (dimNumber == 3) {\r\n final CountDownLatch doneSignalZ = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_XY);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices * xdim;\r\n final int end = (i + 1) * nslices * xdim;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim * ydim, xdim * ydim * zdim, xdim * ydim * zdim, dir);\r\n doneSignalZ.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalZ.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n fireProgressStateChanged( -1, null, \"Centering data after inverse FFT ...\");\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n \r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t\trealData[i] = realData[i] / newSliceSize;\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n\r\n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }", "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }", "public void run() {\n\t\tthis.launch( null );\n\t}", "public void run() {\n System.out.println(\"Running Indexing\");\n Indexer.index();\n }", "private void importAnalyses() {\n\t\tSwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {\n\t\t\t@Override\n\t\t\tprotected Void doInBackground() {\n\t\t\t\ttry {\n\t\t\t\t\timportModel.saveAnalysesIntoDB();\n\t\t\t\t} catch (Throwable ex) {\n\t\t\t\t\tLOG.error(\"Failed to import analyses\", ex);\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t\tworker.addPropertyChangeListener(workerListener);\n\t\tworker.execute();\n\t}", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run(){\n\t}", "private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}", "@Override\r\n\t\tpublic Void doInBackground() {\r\n\t\t\tDataInputStream dis = null; \r\n\r\n\t\t\ttry {\r\n\t\t\t\t//ProgressMonitorInputStream pmis = new ProgressMonitorInputStream(parent,\"Processing data...\",is);\r\n\t\t\t\t//dis = new DataInputStream(pmis);\r\n\r\n\t\t\t\tdis = new DataInputStream(is);\r\n\r\n\t\t\t\tmodel = new Model(dis, Preferences.cacheDataFile, Preferences.cacheIndexFile, isCached, recursivityLevel, minTs, maxTs, iniTs, endTs, licensesServer);\r\n\r\n\t\t\t\tminTs = model.getMinTs();\r\n\t\t\t\tmaxTs = model.getMaxTs();\r\n\r\n\t\t\t\t// Actualizo los entry points\r\n\t\t\t\t/*\r\n\t\t\t\tCollection<MethodNode> entryPoints = model.getEntryPoints();\r\n\t\t\t\tentryPointsTable = new TableData(2);\r\n\t\t\t\tArrayList<String> entryPointsRowKeys = new ArrayList<String>();\r\n\r\n\r\n\t\t\t\tfor (Iterator<MethodNode> it = entryPoints.iterator();it.hasNext();) {\r\n\t\t\t\t\tMethodNode entryNode = it.next();\r\n\t\t\t\t\tentryPointsTable.addRow(entryNode.getId(), Names.getDigestedName(entryNode.getName(),true),String.valueOf(entryNode.getInvCount()));\r\n\t\t\t\t}\r\n\t\t\t\t */\r\n\t\t\t\tok=true;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tCommonForms.showError(parent, e);\r\n\t\t\t\tdialog.dispose();\r\n\t\t\t\tparent.setEnabled(true);\r\n\t\t\t} \r\n\t\t\treturn null;\r\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\twhile (flag) {\n\t\t\t\tloadData(App.address+\"GetModel.php?uid=\" + id);//循环加载模式\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1*1000); //暂定延时1s\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tThread.interrupted();\n\t\t}", "public void run() {\n\t\tthis.setRunning(true);\n\t\tint iterationNumber = 0;\n\t\tstreamManager.setCounter(0);\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"************* ITERATION NUMBER: \" + iterationNumber + \" TRIPLES: \" + iterationNumber*number + \"*******************\");\n\t\t\t\n\t\t\t//Query to load all the information\n\t\t\tString query = \"SELECT DISTINCT*\"\n\t\t\t\t\t+ \"{ ?s ?p ?o }\"\n\t\t\t\t\t//+ \" ORDER BY ?s\" //If this order is made, then the SPARQL endpoint take to much time to respond.\n\t\t\t\t\t+ \" LIMIT \"+ number \n\t\t\t\t\t+ \" OFFSET \"+ number*iterationNumber;\n\t\t\titerationNumber++;\n\t\t\tQueryExecution qe = QueryExecutionFactory.sparqlService(this.serviceUrl,query);\n\t\t\ttry {\n\t\t\t\tResultSet rs = qe.execSelect();\n\t\t\t\n\t\t\t\tif(rs != null && rs.hasNext()){\n\t\t\t\t\tstreamManager.put(rs);\t//Put all the batch of answer into the streaming manager\n\t\t\t\t\tstreamManager.setCounter(streamManager.getCounter()+1); // Announced that the producer publish a result set\n\t\t\t\t\tSystem.out.println(\"Process the triples: \" + this.number);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t} catch (QueryExceptionHTTP e) {\n\t\t\t\tSystem.out.println(this.serviceUrl + \" is Not working or is DOWN\");\n\t\t\t\tbreak; //Close the cicle\n\t\t\t} \t\t\n\t\t}\n\t\tthis.setRunning(false);\n\t}", "public void run() {\n // System.out.println(\"bsid\\tiid\\tid\\tmethod name\");\n\n while (true) {\n // get interaction\n Hashtable<Integer, ArrayList<Request>> interaction = father\n .getInteraction();\n\n if (interaction == null) {\n break;\n }\n\n // execute interaction\n executeInteraction(interaction);\n if (reqIndex >= maxNoOfRequests)\n break;\n }\n\n // System.out.println(\"Thread \" + threadId + \" is ending\");\n father.replayFinished();\n }", "public void processResults(){\n double latitude = Double.parseDouble(latText.getText().trim());\n double longitude = Double.parseDouble(longText.getText().trim());\n int year = Integer.parseInt(yearText.getText().trim());\n\n int observatoryId = MainController.observatoryID;\n\n Runnable task = new Runnable() {\n @Override\n public void run() {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n int id = ObservatoryData.getInstance().getDatabase().getLastGalamseyEntry() + 1;\n Galamsey newest = new Galamsey(id,observatoryId,longitude,latitude,year, Galamsey.vegColour.getColour(colourValue));\n ObservatoryData.getInstance().getGalamseyHashMap().add(id,newest);\n ObservatoryData.getInstance().getDatabase().insertIntoGalamseyDB(vegColour,colourValue, latitude,longitude,year,observatoryId);\n ObservatoryData.getInstance().buildObservatoryList();\n }\n });\n\n }\n };\n\n new Thread(task).start();\n }", "@Override\n\tpublic void doJob() {\n\t\tSystem.out.println(\"Studying\");\n\t}", "void analysisStarting();", "@Override\n\t\tprotected Void doInBackground(Void... arg0) {\n\t\t\tInstance inst = new DenseInstance(mFeatLen);\n\t\t\tinst.setDataset(mtestSet);\n\t\t\tint blockSize = 0;\n\t\t\tFFT fft = new FFT(Globals.ACCELEROMETER_BLOCK_CAPACITY);\n\t\t\t\n\t\t\tdouble[] accBlock = new double[Globals.ACCELEROMETER_BLOCK_CAPACITY];\n\t\t\tdouble[] re = accBlock;\n\t\t\tdouble[] im = new double[Globals.ACCELEROMETER_BLOCK_CAPACITY];\n\n\t\t\tdouble max = Double.MIN_VALUE;\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t// need to check if the AsyncTask is cancelled or not in the while loop\n\t\t\t\t\tif (isCancelled () == true)\n\t\t\t\t {\n\t\t\t\t return null;\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\taccBlock[blockSize++] = mAccBuffer.take().doubleValue();\n\t\t\t\t\tif (blockSize == Globals.ACCELEROMETER_BLOCK_CAPACITY) {\n\t\t\t\t\t\tblockSize = 0;\n\t\t\t\t\t\tmax = .0;\n\t\t\t\t\t\tfor (double val : accBlock) {\n\t\t\t\t\t\t\tif (max < val) {\n\t\t\t\t\t\t\t\tmax = val;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfft.fft(re, im);\n\n\t\t\t\t\t\tfor (int i = 0; i < re.length; i++) {\n\t\t\t\t\t\t\tdouble mag = Math.sqrt(re[i] * re[i] + im[i]\n\t\t\t\t\t\t\t\t\t* im[i]);\n\t\t\t\t\t\t\tinst.setValue(i, mag);\n\t\t\t\t\t\t\tim[i] = .0; // Clear the field\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinst.setValue(Globals.ACCELEROMETER_BLOCK_CAPACITY, max);\n\t\t\t\t\t\tinst.setValue(mClassAttribute, Globals.CLASS_LABEL_STANDING);\n\t\t\t\t\t\tmtestSet.add(inst);\n\t\t\t\t\t\tLog.i(\"new instance\", mtestSet.size() + \"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(mtestSet.numInstances() == 64){\n\t\t\t\t\t\t\tfor(int i =0; i < mtestSet.numInstances(); i++){\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tdouble clsLabel = mtreeClassifier.classifyInstance(mtestSet.instance(i));\n\t\t\t\t\t\t\t\t\tpublishProgress(clsLabel);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n//\t\t\t\ttry {\n//\t\t\t\t\tmEval.evaluateModel(mtreeClassifier, mtestSet);\n//\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(mEval.toSummaryString(\"\\nResults\\n======\\n\", false));\n\t\t\t}", "public void run() {\n\n\t}", "public void run() {\n\n\t}" ]
[ "0.7106882", "0.6944787", "0.62380105", "0.62052274", "0.6189705", "0.60447496", "0.6009647", "0.5964518", "0.5959217", "0.59394103", "0.5927043", "0.5906613", "0.5875326", "0.58696884", "0.58639896", "0.5772488", "0.5756311", "0.5737604", "0.5704247", "0.5696525", "0.5680361", "0.5665611", "0.5657219", "0.5655142", "0.56533897", "0.56518346", "0.56477624", "0.5608027", "0.5608027", "0.55985284", "0.558168", "0.55731815", "0.55658054", "0.55551106", "0.5554593", "0.5522818", "0.55211043", "0.55139285", "0.551157", "0.55067176", "0.55046624", "0.5493193", "0.5491913", "0.5484527", "0.5483877", "0.5483877", "0.548293", "0.5480421", "0.54650235", "0.54555684", "0.54530025", "0.54403865", "0.54351556", "0.5432949", "0.54319483", "0.5431685", "0.54298806", "0.54298806", "0.54298806", "0.54188806", "0.54188806", "0.54188806", "0.54188806", "0.54188806", "0.5415619", "0.5410921", "0.5405847", "0.54046327", "0.54021025", "0.5382505", "0.53773195", "0.53624654", "0.53595597", "0.5358075", "0.53575397", "0.53457576", "0.53385895", "0.5335256", "0.53326267", "0.5331616", "0.5327291", "0.5325419", "0.5322166", "0.53201926", "0.5316198", "0.53150696", "0.53150696", "0.53150696", "0.5302712", "0.5299354", "0.52987224", "0.52973187", "0.5293693", "0.5282092", "0.5280336", "0.5270671", "0.52704734", "0.52685773", "0.5263543", "0.5263543" ]
0.6951367
1
If there was an error then report this to the user
public void reportAnyErrors(DynamicModelHistory history){ if(history.getStatus() == DynamicModelHistory.StatusType.ERROR && history.getErrorReport().getReport().size() > 0){ ErrorItem error = history.getErrorReport().getReport().get(0); if(error.getNodeId() != null){ JOptionPane.showMessageDialog(this, "Error on node \"" + error.getNodeId() + "\". " + error.getMessage(), "Run Aborted", JOptionPane.WARNING_MESSAGE); } else{ JOptionPane.showMessageDialog(this, error.getMessage(), "Run Aborted", JOptionPane.WARNING_MESSAGE); } // Don't leave the progress monitor hanging around on the screen progressMonitor.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inquiryError() {\n\t\t\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}", "public void error();", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public boolean proceedOnErrors() {\n return false;\n }", "public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}", "@Override\n public void errorOnUpdate(String buxError) {\n }", "public void checkError() throws IOException{\n if (transactionFailure == null) {\n FacesContext.getCurrentInstance().getExternalContext().\n redirect(\"converter.xhtml\");\n }\n }", "public void error() {\n throw new RuntimeException(getClass().getName() + \" error\");\n }", "public void checkError() {\n if (this.threadError != null) {\n throw new EncogError(this.threadError);\n }\n }", "void setError();", "@Override\n boolean isFailed() {\n return false;\n }", "@Override\n public void showError() {\n }", "public boolean hasError();", "@Override\n public void onError() {\n\n }", "protected void errorIfStarted() {\r\n if (HasStarted) {\r\n throw new Error(\"Cannot change settings, algorithm has started.\");\r\n }\r\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "public void unsuccessful()\n {\n inputFundsField.setText(\"An Error Has Occurred\");\n }", "public static void error()\r\n {\r\n valid=false;\r\n\r\n }", "@Override\n\tpublic void calculateError() {\n\t\t\n\t}", "protected void userErrorOccurred()\n {\n traceOK = false;\n }", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "public void error(Exception e);", "public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}", "boolean hadErrors();", "public void errorWhenCommitting();", "@Override\n\tpublic void error(Object message) {\n\n\t}", "public void Error(){\n }", "private void showAlertDBError() {\n showAlertSelectionFail(\"Database error\", \"Could not establish a connection to the database. Please visit the database settings to verify your connection.\");\n }", "@Override\r\n\t\t\tpublic void onError(Object error) {\n\t\t\t\t\r\n\t\t\t}", "protected abstract void error(String err);", "public void onConnectionError()\n\t\t{\n\t\t}", "@Override\n\t\t\tpublic void onError(Object error) {\n\n\t\t\t}", "void error() {\n status = ERROR;\n System.out.println(\"error\");\n stateChanged();\n }", "public boolean isError() { return error; }", "boolean error() {\n return error;\n }", "@Override\r\n\tpublic boolean hasErrors() {\n\t\treturn hasErrors;\r\n\t}", "@Override\r\n\tpublic void onError(String err) {\n\t\t\r\n\t}", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "@Override\n\t\tpublic void loadError() {\n\t\t}", "@Override\n public boolean hasErrorResults() {\n return false;\n }", "@Override\n\tpublic void adjustToError() {\n\t\t\n\t}", "protected void onConnectionError() {\n\t}", "public boolean isError(){\r\n\t\tif(error!=0)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "public void makeError(){\n\t\tisError = true;\n\t}", "private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }", "public void correctErrors();", "public boolean hasErrors();", "boolean hasError();", "boolean hasError();", "boolean hasError();", "private void handleError(Throwable error){\n // Re-enable button\n createBtn.setEnabled(true);\n // Hide Progress Bar\n progressIndicator.setVisibility(View.GONE);\n // Unlock screen orientation\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER);\n\n // Handle Errors using util class and save the error code\n int errorCode = errorHandler.handle(error, this, view);\n\n // If error is Code 11, show dialog\n if(errorCode == Errors.CUSTOMER_ALREADY_HAS_ACTIVE_BOOKING_ERROR.getErrorCode()){\n showErrorDialog();\n }\n }", "@Override\n public void uploadFailed() {\n }", "@Override\n\t\tprotected boolean onError(final Exception e) {\n\t\t\treturn false;\n\t\t}", "private void onLoadingError() {\n AppSession.showDataLoadError(\"conexus\");\n finish();\n }", "@Override\r\n\tpublic void err(ServiceStatistics serviceStatistics) {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void onError(int error) {\n\t\t\t\t\r\n\t\t\t}", "public boolean hasError()\n {\n return hasError;\n }", "@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}", "abstract void error(String error);", "protected void VerifyUrlDoesntHaveAnError() {\n\t\tif (urlHasAnError())\n\t\t\tReports.logAMessage(LogStatus.ERROR, \"BasePage: URL has an error\");\n\t}", "@Override\n public boolean continuePastError() {\n return false;\n }", "@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}", "private void sendOldError(Exception e) {\n }", "public boolean hasError() {\n\t\treturn results.getErrors().contains( \"ERROR\") ;\n\t}", "public void markAsFailed() {\n execution.setErrorReported();\n }", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "public boolean isError() {\n return code >= 400;\n }", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}", "@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}", "private void throwsError() throws OBException {\n }", "@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onError(Status status) {\n }", "@Override\r\n\tpublic void reportError(String errorInfo, String errorDetails) {\n\t\t\r\n\t}", "public boolean errors() {\n \treturn semantErrors != 0;\n }", "protected void handleError(String error, boolean fromSysErr) {}", "@Override\n public void onError(Throwable error) {\n Log.e(\"REALM\", \" ERROR .\" + error.toString());\n }", "public void errorOccured(String errorMessage, Exception e);", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "boolean isError();", "public void queryError()\r\n {\r\n myFailedQueryCountProvider.setValue(Integer.valueOf(myFailedQueryCounter.incrementAndGet()));\r\n }", "@Override\r\n\tpublic void onError(String error) {\n\t\t\r\n\t}", "boolean hasErrormessage();", "@Override\n\tpublic void error(Marker marker, String message, Object p0) {\n\n\t}", "public boolean getError() {\r\n \treturn error;\r\n }", "void recordExecutionError() {\n hadExecutionError = true;\n }", "@Override\n public void onError(Throwable t) {\n t.printStackTrace();\n }", "public String error();", "public void alertSaveError() {\n\t\tthis.alert(\"ERROR\",\"Save error\",AlertType.ERROR);\n\t}", "@Override\n\tpublic void error(String message, Object p0) {\n\n\t}" ]
[ "0.7434997", "0.7294528", "0.7014406", "0.6977953", "0.6962695", "0.6924867", "0.6849042", "0.67080784", "0.66508186", "0.66479903", "0.66317654", "0.6608823", "0.6600992", "0.65880364", "0.6566976", "0.6558664", "0.65399814", "0.65386146", "0.6524433", "0.6502235", "0.65020007", "0.64980847", "0.64934367", "0.6478596", "0.64697397", "0.64678127", "0.64344865", "0.64256275", "0.64185894", "0.6406297", "0.6399381", "0.63907295", "0.6382672", "0.63768864", "0.6375273", "0.6349512", "0.6346648", "0.634491", "0.63297325", "0.63290983", "0.6326271", "0.6323266", "0.6304617", "0.6300539", "0.62993306", "0.6291461", "0.62851405", "0.62656355", "0.62627494", "0.62618095", "0.62564784", "0.625201", "0.6247311", "0.6240374", "0.6239951", "0.6239951", "0.6239951", "0.6239361", "0.6234614", "0.6233507", "0.62329185", "0.6219462", "0.6214871", "0.6197487", "0.61943763", "0.61922854", "0.61861765", "0.61830974", "0.6174768", "0.6160302", "0.61416364", "0.6138503", "0.61378694", "0.61376524", "0.613105", "0.613105", "0.6120859", "0.6120859", "0.6116482", "0.6102792", "0.6099074", "0.60971963", "0.60898733", "0.6089061", "0.60860944", "0.60806054", "0.60804343", "0.60802215", "0.60802215", "0.60802215", "0.6072056", "0.6064952", "0.6061765", "0.6058582", "0.6058501", "0.60495794", "0.6049579", "0.60483044", "0.604712", "0.60470104", "0.60437536" ]
0.0
-1
Actions such as Open File, Open Tab etc...
public void openTab(String tabName){ TabView selectedTabView = new TabView(this); tabViews.add(selectedTabView); if(tabName == null){ // If a new tab.. // Ensure that there isn't already a model with that name while(propertiesMemento.getTabNames().contains(tabName) || tabName == null){ tabName = "New Model " + newModelIndex; newModelIndex++; } } logger.info("Adding tab:" + tabName); // Just resizes and doesn't scroll - so don't need the scroll pane /*JScrollPane scrollPane = new JScrollPane(selectedTabView, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scrollPane.getVerticalScrollBar().setUnitIncrement(20); tabbedPane.addTab(tabName, scrollPane);*/ tabbedPane.addTab(tabName, selectedTabView); currentView = selectedTabView; tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1); setTabName(tabName); tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView)); // Add Mouse motion Listener currentView.addMouseMotionListener(currentView); currentView.addMouseListener(currentView); // Record the tab in the memento propertiesMemento.addTabRecord(tabName); setTabButtons(true); setStatusBarText("Ready"); requestFocusInWindow(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoOpen();\n\t\t\t}", "ActionOpen()\n {\n super(\"Open\");\n this.setShortcut(UtilGUI.createKeyStroke('O', true));\n }", "public void Open() {\r\n\t click();\r\n\t }", "public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }", "private void openPressed(){\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showOpenDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\n\t\t\tSaveFile saveFile = null;\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectInputStream input = new ObjectInputStream(new FileInputStream(file));\n\t\t\t\tsaveFile = (SaveFile) input.readObject();\n\t\t\t\tinput.close();\n\t\t\t\tVariable.setList(saveFile.getVariables());\n\t\t\t\tUserFunction.setFunctions(saveFile.getFunctions());\n\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\tSystem.out.println(\"Open Success\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "void openFromFileClicked() {\n\t\tif (GeoGebraJSNativeBridge.get() != null) {\n\t\t\tGeoGebraJSNativeBridge.get().openFromFileClickedNative();\n\t\t}\n\t}", "public void open();", "public void open();", "private void openImageFile(ImageActions action) {\n\t\tsetImageHolder(action, RGPTUIUtil.getImageFile(this));\r\n\t}", "public void openFile(ActionEvent e) {\r\n JFileChooser chooser = new JFileChooser();\r\n\r\n int returnVal = chooser.showOpenDialog(null);\r\n if (returnVal == JFileChooser.APPROVE_OPTION) {\r\n this.is_alg_started = false;\r\n this.is_already_renumbered = false;\r\n if (e.getActionCommand().equals(\"nodelist\")) {\r\n this.nodefileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n if (e.getActionCommand().equals(\"edgelist\")) {\r\n this.edgeFileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n }\r\n }", "public abstract void open();", "public abstract void open();", "public void opened();", "@Override\r\n\tpublic void onBrowserSelected() {\n\t\tLog.d(TAG, \"onBrowserSelected()\");\r\n\t\t\r\n // Use the GET_CONTENT intent from the utility class\r\n Intent target = FileUtils.createGetContentIntent();\r\n // Create the chooser Intent\r\n Intent intent = Intent.createChooser(\r\n target, getString(R.string.choose_file));\r\n try {\r\n startActivityForResult(intent, 6383);\r\n } catch (ActivityNotFoundException e) {\r\n \tToast.makeText(getApplicationContext(), \"Couldn't open file browser\", Toast.LENGTH_SHORT).show();\r\n }\r\n\t}", "public void openFile(File selectedFile) {\n System.err.println(\"selected: \" + selectedFile);\n }", "public void open() {\r\n\t}", "private void openFile()\r\n {\r\n int returnState = openFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = openFileChooser.getSelectedFile();\r\n openUriInBackground(file.toURI());\r\n } \r\n }", "public void clickOnFile(String file) {\n clickOnFile(file, 1);\n }", "public void open() {\n\t}", "private void fileBrowserActionPerformed(ActionEvent e) {\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n \t\t\t\tpublic void doOpen() {\n \n \t\t\t\t}", "public void open(){\n }", "@FXML\r\n private void handleBrowseBtn(ActionEvent event) {\r\n openFile();\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()== openbt) {\n\t\t\topenFile();\n\t\t}\n\t\telse if(e.getSource()== quitbt) {\n\t\t\tSystem.exit(0);\t\n\t\t}\t\t\t\n\t}", "@FXML\n void fileOpenPressed(ActionEvent event) {\n \tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open File\");\n\t\tFile f = fileChooser.showOpenDialog(stage);\n\t\tif (f != null) {\n\t\t\tsetFile(f);\n\t\t\tviewState.set(ViewState.OPEN);\n\t\t}\n }", "private void openFile(File file) {\n try {\n desktop.open(file);\n } catch (IOException e) {\n e.printStackTrace();\n// Logger.getLogger(\n// FileChooser.class.getName()).log(\n// Level.SEVERE, null, ex\n// );\n }\n }", "public void openURLByFile(String url)\n {\n getAppleMenu().activate();\n getAppleMenu().select(Menu.FILE);\n getAppleMenu().open(Menu.OPEN_URL);\n logger.debug(\"Open Office document from URL: \" + url);\n getLdtp().enterString(url);\n getLdtp().generateKeyEvent(\"<enter>\");\n }", "protected void open()\n {\n }", "private void enableFileOperations() {\n view.getFileOperations().getOpenFile()\n .setEnabled(desktop.isSupported(Desktop.Action.OPEN));\n view.getFileOperations().getEditFile()\n .setEnabled(desktop.isSupported(Desktop.Action.EDIT));\n view.getFileOperations().getPrintFile()\n .setEnabled(desktop.isSupported(Desktop.Action.PRINT));\n }", "private void browserMouseClicked(java.awt.event.MouseEvent evt) {\n \n int ret = jfc.showOpenDialog(rootPane);\n if(ret==JFileChooser.APPROVE_OPTION)\n openFile(jfc.getSelectedFile());\n else\n {\n JOptionPane.showMessageDialog(rootPane, \"Not Working!\");\n }\n jPanel1.requestFocusInWindow();\n }", "private void showOpenFileDialog() {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"*/*\");\n // We accept PDF files and images (for image documents).\n intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {\"application/pdf\", \"image/*\"});\n\n // Set of the intent for result, so we can retrieve the Uri of the selected document.\n startActivityForResult(intent, REQUEST_OPEN_DOCUMENT);\n }", "@FXML\n\tpublic void openFile() {\n\t\tFileChooser openFileChooser = new FileChooser();\n\t\topenFileChooser.setInitialDirectory(userWorkspace);\n\t\topenFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\tfile = openFileChooser.showOpenDialog(ap.getScene().getWindow());\n\n\t\tuserText.clear();\n\n\t\tif (file != null) {\n\t\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\twriteToUserText();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) \n\t\t\t{\n\t\t\t\tIntent file_intent = new Intent();\n\t\t\t\tfile_intent.setClass(ReadTextActivity.this, FileReadActivity.class);\n\t\t\t\tstartActivity(file_intent);\n\t\t\t}", "private void openSavedTabs(){\n\t\tList<String> filenames = new ArrayList<String>();\r\n\t\tint i = 0;\t\t\r\n\t\twhile(propertiesMemento.get(\"tab\" + i) != null){\r\n\t\t\tfilenames.add((String) propertiesMemento.get(\"tab\" + i));\r\n\t\t\ti++;\t\t\t\r\n\t\t}\r\n\r\n\t\tfor(String filename: filenames){\r\n\t\t\tlogger.info(\"Looking for:\" + filename);\r\n\t\t\tFile file = new File(filename);\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\t//JOptionPane.showMessageDialog(null, \"Cannot find \" + filename, \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t// Simply ignore KIS\r\n\t\t\t\tlogger.info(\"Cannot find file \" + filename + \" so not load it as tab\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tString content = FileLoader.loadFile(filename);\r\n\t\t\t\t// If the application can't open one of the recorded tabs then drop out trying to load them.\r\n\t\t\t\tif(!openSavedTab(content)){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\t\n\t\t\t\tintent.setClass( SDFileExplorer.this,SDFileJiemi.class);\n\t\t\t\tSDFileExplorer.this.startActivity(intent);\n\t\t\t\tSDFileExplorer.this.finish();\n\t\t\t}", "@FXML\n private void openFile() {\n try {\n \tFile file = new File(filmTable.getSelectionModel().getSelectedItem().getLocation());\n desktop.open(file);\n } catch (IOException ex) {\n \tex.printStackTrace();\n }\n }", "public void open()\n {\n }", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "void open();", "void open();", "void open();", "Intent getOpenInOtherWindowIntent();", "private void openActivity() {\n }", "public void open()\n{\n}", "@Override\n public void actionPerformed(ActionEvent event)\n {\n Object source = event.getSource();\n\n if (source == fileNewItem)\n {\n //\n // File->New is clicked.\n //\n parent.onFileNew();\n }\n else if (source == fileOpenItem)\n {\n //\n // File->Open is clicked.\n //\n parent.onFileOpen();\n }\n else if (source == fileEditItem)\n {\n //\n // File->Edit is clicked.\n //\n parent.onFileEdit();\n }\n else if (source == fileCloseItem)\n {\n //\n // File->Close is clicked.\n //\n parent.onFileClose();\n }\n else if (source == fileAboutItem)\n {\n //\n // File->About is clicked.\n //\n parent.onFileAbout();\n }\n else if (source == fileExitItem)\n {\n //\n // File->Exit is clicked.\n //\n parent.onFileExit();\n }\n }", "private void openJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openJMenuItemActionPerformed\n fromFileJButton.doClick();\n }", "public void onMenuOpen() {\n String initialDirectory = getInitialDirectory();\n System.out.println(initialDirectory);\n File file = FileChooserHelper.showOpenDialog(initialDirectory, this);\n\n if (file == null || !file.exists() || !file.isFile()) {\n return;\n }\n\n handleMenuOpen(file.getAbsolutePath());\n }", "public void openProject(File pfile, FileOpenSelector files) { }", "private void startFileSelection() {\n final Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT);\n chooseFile.setType(getString(R.string.file_type));\n startActivityForResult(chooseFile, PICK_FILE_RESULT_CODE);\n }", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Explorer\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOpenWithDefaultViewer.open(GestionRepertoire.RecupRepTravail());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "@Override\n public void onActionPerformed(String actionName) {\n Log.d(TAG, \"Inside onActionPerformed.\" + actionName);\n\n switch (actionName) {\n case HanselHelper.ACTION_OPEN_PROFILE_ACTIVITY: {\n SmartechHelper.openDeeplink(this, ProfileActivity.class, null);\n }\n break;\n\n case HanselHelper.ACTION_OPEN_REGISTER_ACTIVITY: {\n SmartechHelper.openDeeplink(this, RegisterActivity.class, null);\n }\n break;\n\n default: {\n Log.e(TAG, \"Failed to perform the action.\");\n }\n break;\n }\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(e.getSource()==mniOpen){\r\n\t\t\t\t\topenFile();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniSave){\r\n\t\t\t\t\tsaveDoc();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource() == mniSaveAs){\r\n\t\t\t\t\tsaveDoc();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniExit){\r\n\t\t\t\t\tclosewindows();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniChangeBgColor){\r\n\t\t\t\t\tchangeBGColor();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniChangeFontColor){\r\n\t\t\t\t\tchangeFontColor();\r\n\t\t\t\t}\r\n\t\t\t}", "public void openFile(@NotNull final CheckedConsumer<FileManager, IOException> loadAction) {\n try {\n final var pair = editorManager.createEditor();\n final Editor editor = pair.getFirst();\n final var fm = pair.getSecond();\n loadAction.accept(fm);\n editorManager.openEditor(editor, fm);\n mimaUI.fileChanged();\n App.logger.log(\"loaded: \" + FileName.shorten(fm.getLastFile()));\n } catch (@NotNull final IOException | IllegalStateException e) {\n App.logger.error(\"Could not load file: \" + e.getMessage());\n }\n }", "public void openURL(String url)\n {\n getLdtp().generateKeyEvent(\"<command><shift>o\");\n logger.debug(\"Open Office document from URL: \" + url);\n getLdtp().enterString(url);\n getLdtp().generateKeyEvent(\"<enter>\");\n }", "public void OpenFileOptions(ActionEvent event) throws Exception {\n\n Parent root = FXMLLoader.load(getClass().getResource(\"ListWindow.fxml\"));\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setTitle(\"File Options\");\n stage.setScene(new Scene(root, 1000, 800));\n stage.show();\n }", "public abstract void onOpen();", "public void onOpen() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\txformsWidget.hideWindow();\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\t\t\t\ttry {\n\t\t\t\t\t//openFile();\n\t\t\t\t\txformsWidget.setXform(\"\");\n\t\t\t\t\txformsWidget.showOpenButton(true);\n\t\t\t\t\txformsWidget.showWindow();\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void open() {\n\n\t}", "@Override\n\tpublic void open() {\n\n\t}", "@Override\n\tpublic void open() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\ttry {\n\t\t\t\t\tString path = currentParent.getCanonicalPath();\n\t\t\t\t\tIntent filepath = new Intent(FileExplorerActivity.this,\n\t\t\t\t\t\t\tDetailActivity.class);\n\t\t\t\t\tfilepath.putExtra(\"path\", path);\n\t\t\t\t\tstartActivity(filepath);\n\t\t\t\t\tFileExplorerActivity.this.finish();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tToast.makeText(FileExplorerActivity.this, \"出问题啦\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\t\n\t\t\t\tintent.setClass( SDFileExplorer.this,MenuActivity.class);\n\t\t\t\tSDFileExplorer.this.startActivity(intent);\n\t\t\t\tSDFileExplorer.this.finish();\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\r\n if (identifier.intValue() == KeyEvent.VK_F1) {\r\n btnSearch.doClick();\r\n }\r\n else if (identifier.intValue() == KeyEvent.VK_F2) {\r\n btnRun.doClick();\r\n }\r\n else if (identifier.intValue() == KeyEvent.VK_F3) {\r\n btnFtp.doClick();\r\n }\r\n else if (identifier.intValue() == KeyEvent.VK_F12 ||\r\n identifier.intValue() == KeyEvent.VK_ESCAPE) {\r\n btnCancel.doClick();\r\n }\r\n }", "private void openFileChoose() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PEGA_IMAGEM);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString url = \"file:///C:/Users/J1637009/Desktop/aaaaa.pdf\";\n\t\t\t\tString url2 = \"file:///N:/AE/2017/‹l•[/ƒJƒPƒnƒVAEƒG[ƒWƒFƒ“ƒg‹l•[/doubLeiƒNƒŠƒGƒCƒeƒBƒuEj_18.pdf\";\n\t\t\t\t\n\t\t\t\t\n\t\t try {\n\t\t\t\t\tjava.awt.Desktop.getDesktop().browse(java.net.URI.create(url2));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "void openLink(Link target);", "public void open(String filePath) {\n\t\tcmd = new OpenCommand(editor, filePath);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "private void openFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.openFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tframe.setTitle(file.getName());\r\n\t\t\tedit = false;\r\n\t\t\tBibtexPrefs.addOpenedFile(file);\r\n\t\t\tpopulateRecentMenu();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\terrorDialog(e.toString());\r\n\t\t} catch (IllegalArgumentException e){\r\n\t\t\terrorDialog(\"The bibtex file \" +file.getPath()+ \" appears to be invalid.\\n\"\r\n\t\t\t\t\t+ \"Parsing error occured because you have the following in your file:\\n\"\r\n\t\t\t\t\t+e.getMessage());\r\n\t\t}\r\n\t}", "private void openContext() {\n\t\tJFileChooser fileChooser = new JFileChooser(LMPreferences\n\t\t\t\t.getLastDirectory());\n\n\t\t// Propriétés du fileChooser\n\t\tfileChooser.setApproveButtonText(GUIMessages\n\t\t\t\t.getString(\"GUI.openButton\")); //$NON-NLS-1$\n\t\tfileChooser.setDialogTitle(GUIMessages.getString(\"GUI.openAContext\")); //$NON-NLS-1$\n\t\tfileChooser.setAcceptAllFileFilterUsed(true);\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\n\t\t// Gere les extensions compatibles (cex, lmv, lmn, lmb)\n\t\tExampleFileFilter filterCex = new ExampleFileFilter(\n\t\t\t\t\"cex\", GUIMessages.getString(\"GUI.conceptExplorerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterCex);\n\t\tExampleFileFilter filterGaliciaBinSLF = new ExampleFileFilter(\n\t\t\t\t\"slf\", GUIMessages.getString(\"GUI.galiciaSLFBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBinSLF);\n\t\tExampleFileFilter filterGaliciaBin = new ExampleFileFilter(\n\t\t\t\t\"bin.xml\", GUIMessages.getString(\"GUI.galiciaXMLBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBin);\n\t\tExampleFileFilter filterValued = new ExampleFileFilter(\n\t\t\t\t\"lmv\", GUIMessages.getString(\"GUI.LatticeMinerValuedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterValued);\n\t\tExampleFileFilter filterNested = new ExampleFileFilter(\n\t\t\t\t\"lmn\", GUIMessages.getString(\"GUI.LatticeMinerNestedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterNested);\n\t\tExampleFileFilter filterBinary = new ExampleFileFilter(\n\t\t\t\t\"lmb\", GUIMessages.getString(\"GUI.LatticeMinerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterBinary);\n\t\tExampleFileFilter filterLM = new ExampleFileFilter(new String[] {\n\t\t\t\t\"lmb\", \"lmn\", \"lmv\" }, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\tGUIMessages.getString(\"GUI.LatticeMinerFormats\")); //$NON-NLS-1$\n\t\tfileChooser.addChoosableFileFilter(filterLM);\n\n\t\t// La boite de dialogue\n\t\tint returnVal = fileChooser.showOpenDialog(this);\n\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile contextFile = fileChooser.getSelectedFile();\n\t\t\topenContextFile(contextFile);\n\n\t\t\t// Sauvegarde le path utilisé\n\t\t\tLMPreferences.setLastDirectory(fileChooser.getCurrentDirectory()\n\t\t\t\t\t.getAbsolutePath());\n\t\t}\n\t}", "public void open(String file) {\n try {\n Desktop.getDesktop().open(new File(file));\n } catch (IOException error) {\n System.err.println(error.getMessage());\n }\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n if (Desktop.isDesktopSupported()) {\r\n try {\r\n File myFile = new File(\"E:\");\r\n Desktop.getDesktop().open(myFile);\r\n \r\n } catch (IOException ex) {\r\n // no application registered for PDFs\r\n }\r\n}\r\n \r\n \r\n }", "public void handleOpenFile (File inFile) {\n openFile (inFile);\n }", "private void jBtnHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnHelpActionPerformed\n // TODO add your handling code here:\n if (Desktop.isDesktopSupported()) {\n try {\n File myFile = new File(\"help.txt\");\n Desktop.getDesktop().open(myFile);\n } catch (IOException ex) {\n // no application registered for PDFs\n }\n }\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\topen(file);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\topenOptionsMenu();\n\t/*\t\t\t\t\t\t\t\t\tIntent intent = new Intent(MediaStore.INTENT_ACTION_MUSIC_PLAYER);\n\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t*/\t\t\t}", "public static void openFile(File file) {\r\n try {\r\n System.out.println(file.toPath().toAbsolutePath());\r\n Runtime.getRuntime().exec(\"explorer /select,\" + file.toPath().toAbsolutePath());\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n }", "@SuppressWarnings(\"static-access\")\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent Intent = new Intent(android.content.Intent.ACTION_VIEW);\r\n\t\t\t\tString extension = android.webkit.MimeTypeMap\r\n\t\t\t\t\t\t.getFileExtensionFromUrl(Uri.fromFile((File) item.downFile).toString());\r\n\t\t\t\tString mimetype = android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);\r\n\t\t\t\tIntent.setDataAndType(Uri.fromFile((File) item.downFile), mimetype);\r\n\t\t\t\tIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tmContext.startActivity(Intent);\r\n\t\t\t\tLogger.d(TAG, \"Intent\" + Intent);\r\n\t\t\t}", "public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}", "private void openLabButton() throws IOException{\n int returnVal = labChooser.showOpenDialog(this);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File lab = labChooser.getSelectedFile();\n openLab(lab);\n } \n }", "public void openNSE() {\n\t\t\t this.open.getText();\r\n\t\t}", "private void viewPageClicked() {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n try{\n Desktop d = Desktop.getDesktop();\n d.browse(new URI(itemView.getItem().getURL()));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n showMessage(\"View clicked!\");\n }", "public OpenAtMethodAction(String filename, String method)\n\t{\n\t\tsuper();\n\t\tsetFilename(filename);\n\t\tsetMethodName(method);\n\t}", "abstract void onOpen();", "private static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }", "public static void openFile(File file) throws IOException {\n\n\t\tif (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.OPEN))\n\t\t\tDesktop.getDesktop().open(file);\n\t}", "public void projectOpened(File pfile, FileOpenSelector files) { }", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL + \"support\");\r\n }", "private MenuManager createFileMenu(\tIWorkbenchWindow window) {\n\t\tMenuManager menu = new MenuManager(Messages.getString(\"IU.Strings.39\"),IWorkbenchActionConstants.M_FILE); //$NON-NLS-1$\n\t\t\n\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START));\n\n\t\tIContributionItem[] items=menu.getItems();\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.NEW_EXT));\n\t\t/**/\n\t\t/**/\n\t\tmenu.add(getAction(ActionFactory.CLOSE.getId()));\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.CLOSE_EXT));\n\n\t\tmenu.add(new Separator());\n\n\t\tmenu.add(getAction(ActionFactory.SAVE.getId()));\n\t\tmenu.add(getAction(ActionFactory.SAVE_AS.getId()));\n\t\t//menu.add(getAction(ActionFactory.REVERT.getId()));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.PRINT.getId()));\n\t\t\n\t\tmenu.add(ContributionItemFactory.REOPEN_EDITORS.create(window));\n\n\t\tmenu.add(new Separator());\n\n\t\tmenu.add(getAction(ActionFactory.QUIT.getId()));\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));\n\n\t\t\n\t\t//remove convert line delimiter and open file doublon\n\t\tActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry();\n\t\tIActionSetDescriptor[] actionSets = reg.getActionSets();\n\t\t//String actionSetId = \"org.eclipse.ui.edit.text.actionSet.navigation\"; //$NON-NLS-1$\n\t\tString actionSetId = \"org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo\"; //$NON-NLS-1$\n\t\tString actionSetId2 = \"org.eclipse.ui.actionSet.openFiles\"; //$NON-NLS-1$\n\t\t// Removing convert line delimiters menu.\n\n\t\tfor (int i = 0; i <actionSets.length; i++)\n\t\t{\n\t\t\tif ((!actionSets[i].getId().equals(actionSetId)) && (!actionSets[i].getId().equals(actionSetId2)))\n\t\t\t\tcontinue;\n\t\t\tIExtension ext = actionSets[i].getConfigurationElement()\n\t\t\t\t.getDeclaringExtension();\n\t\t\treg.removeExtension(ext, new Object[] { actionSets[i] });\n\t\t}\n\t\treturn menu;\n\t}", "public void openFile() {\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\n\t\tint returnVal = fc.showOpenDialog(null);\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fc.getSelectedFile();\n\t filename.setText(file.getName());\n\t try {\n\t\t\t\tmodel.FileContent(file);\t//read the content of the input file\n\t\t\t\tplotContent.repaint();\t//repaint the JComponent\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public interface OnFileClickListener {\n\n void onFileClicked(File file);\n\n void onFileLongClicked(File file);\n}", "@Override\n\tpublic void openDocument(String path, String name) {\n\t\t\n\t}", "public void onOpenFile() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tOpenFromFileDialog dlg = OpenFromFileDialog.getInstnace(controller);\n\t\tdlg.center();\n\t\t\n\t}", "public FileRecentOpenAction(File _file) {\n super(_file.getAbsolutePath(), FileSystemView.getFileSystemView().getSystemIcon(_file));\n \n file = _file;\n \n putValue(SHORT_DESCRIPTION, \"Size: \" + _file.length() + \" Bytes.\");\n putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_L));\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tint re = jfc.showOpenDialog(f);\n\t\t\t\tfile = jfc.getSelectedFile();\n\t\t\t\tif (re == 0) {\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\t\t\tint ch;\n\t\t\t\t\t\tString str = \"\";\n\n\t\t\t\t\t\twhile ((ch = fr.read()) != -1) {\n\t\t\t\t\t\t\tstr += (char) ch;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tta.setText(str);\n\t\t\t\t\t\tfr.close();\n\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"browse.do\";\n\t}", "private void registerActions() {\n // File menu :\n new NewAction();\n new LoadOIFitsAction();\n new LoadFitsImageAction();\n\n new ExportOIFitsAction();\n new ExportFitsImageAction();\n\n // Edit menu :\n new DeleteSelectionAction();\n\n // Processing menu :\n new RunAction();\n new ResampleImageAction();\n\n // Interop menu :\n // Send OIFits (SAMP) :\n new SendOIFitsAction();\n // Send Fits (SAMP) :\n new SendFitsAction();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJFileChooser jfc=new JFileChooser();\n\t\t\n\t\t//显示文件和目录\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );\n\t\tjfc.showDialog(new JLabel(), \"选择\");\n\t\tFile file=jfc.getSelectedFile();\n\t\t\n\t\t//file.getAbsolutePath()获取到的绝对路径。\n\t\tif(file.isDirectory()){\n\t\t\tSystem.out.println(\"文件夹:\"+file.getAbsolutePath());\n\t\t}else if(file.isFile()){\n\t\t\tSystem.out.println(\"文件:\"+file.getAbsolutePath());\n\t\t}\n\t\t\n\t\t//jfc.getSelectedFile().getName() 获取到文件的名称、文件名。\n\t\tSystem.out.println(jfc.getSelectedFile().getName());\n\t\t\n\t}", "@Override\r\n public void actionPerformed( ItemActionEvent<File> event )\r\n {\n }", "public void openMenu() {\r\n\t\tmenu.click();\r\n\t}", "void open(String fileName);" ]
[ "0.6929853", "0.6836249", "0.67723936", "0.6741072", "0.66021985", "0.658196", "0.6495018", "0.6495018", "0.6481702", "0.6392023", "0.63577646", "0.63577646", "0.6342584", "0.6290728", "0.62775624", "0.6259828", "0.625369", "0.6249733", "0.6247574", "0.6239365", "0.6234937", "0.62136877", "0.6208687", "0.6180213", "0.61547536", "0.6148288", "0.61444825", "0.61402017", "0.61130726", "0.6111914", "0.6104645", "0.6090008", "0.6069392", "0.6057248", "0.60208666", "0.60199064", "0.59890944", "0.59881496", "0.59734535", "0.5957914", "0.5957914", "0.5957914", "0.5955101", "0.59381205", "0.59380615", "0.59332615", "0.59267855", "0.5922497", "0.591311", "0.5910906", "0.5886906", "0.58828247", "0.5877013", "0.58676517", "0.58670795", "0.58659464", "0.5865015", "0.58593917", "0.5856629", "0.5856629", "0.5852651", "0.58506805", "0.58483815", "0.58375204", "0.58337015", "0.5822362", "0.58160615", "0.58137137", "0.580614", "0.5804092", "0.5801487", "0.5799058", "0.5791925", "0.5787416", "0.57864827", "0.5776527", "0.577592", "0.5772988", "0.5750467", "0.5742628", "0.57409364", "0.57403094", "0.5729584", "0.5720584", "0.5720311", "0.57191855", "0.5719035", "0.5713148", "0.5710832", "0.5709592", "0.5708448", "0.5706217", "0.5685435", "0.5680268", "0.5675306", "0.56728774", "0.5670078", "0.56650233", "0.5662853", "0.56573343", "0.565634" ]
0.0
-1
Grey out or ungrey the buttons
private void setTabButtons(boolean enableFlag){ buttonMap.get(SAVE_COMMAND).setEnabled(enableFlag); buttonMap.get(NEW_NODE).setEnabled(enableFlag); buttonMap.get(RUN_COMMAND).setEnabled(enableFlag); // Grey out or ungrey the menu items Map<Command, JMenuItem> menuItemMap = menuCreator.getMenuItemMap(); menuItemMap.get(MenuCreator.Command.SAVE_TAB).setEnabled(enableFlag); menuItemMap.get(MenuCreator.Command.EDIT_TAB_NAME).setEnabled(enableFlag); menuItemMap.get(MenuCreator.Command.NEW_DYNAMIC_NODE).setEnabled(enableFlag); menuItemMap.get(MenuCreator.Command.SAVE_AS_IMAGE).setEnabled(enableFlag); menuItemMap.get(MenuCreator.Command.EXPORT_RESULTS_TO_FILE).setEnabled(enableFlag); menuItemMap.get(MenuCreator.Command.INSERT).setEnabled(enableFlag); menuItemMap.get(MenuCreator.Command.EDIT).setEnabled(enableFlag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetButton() {\n for(int x=0;x<buttons.size();x++) {\n if(buttons.get(x).isOpaque())\n buttons.get(x).setOpaque(false);\n }\n }", "private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }", "private void disableButtons(boolean b) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setDisable(b);\n bt[i][j].setStyle(\"-fx-border-color:transparent\");\n }\n }\n }", "public void allOff() {\r\n\t\tsetAllColor(0, 0, 0);\r\n\t}", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "private void disableButtons()\r\n {\r\n }", "public void resetSelected(){\n\t\tfor(int x =0; x<9; x++){\n\t\t\tClientWindow.retButtons()[x].setBackground(Color.LIGHT_GRAY);\n\t\t}\n\t}", "private void resetDisableButton(boolean isSetBoth) {\n\t\tif(isSetBoth) {\n\t\t\tBoxBlur boxblur = new BoxBlur();\n\t\t\tvalue2.setEffect(boxblur);\n\t\t\tvalue1.setEffect(boxblur);\n\t\t\tvalue1.setDisable(true);\n\t\t\tvalue2.setDisable(true);\n\t\t\tchooseBoth.setDisable(true);\n\t\t\trolldice.setDisable(false);\n\t\t}\n\t\telse {\n\t\t\tColorAdjust colorAdjust = new ColorAdjust();\n\t\t\tvalue2.setEffect(colorAdjust);\n\t\t\tvalue1.setEffect(colorAdjust);\n\t\t\tvalue1.setDisable(false);\n\t\t\tvalue2.setDisable(false);\n\t\t\tchooseBoth.setDisable(false);\n\t\t\trolldice.setDisable(true);\n\t\t}\n\t}", "private void clearxuan() {\n\t\tbtn_Fourgroup6_xuan_big.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_little.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_all.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_odd.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_even.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_clear.setBackgroundResource(0);\r\n\t\tbtn_Fourgroup6_xuan_big.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_little.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_all.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_odd.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_even.setTextColor(0xffcfcfcf);\r\n\t\tbtn_Fourgroup6_xuan_clear.setTextColor(0xffcfcfcf);\r\n\r\n\t}", "private void turnOnOffColors () {\r\n\t\tif (store.getString(CDTFoldingConstants.COMBO_CHOICE).equals(\r\n\t\t\t\tCDTFoldingConstants.COMBO_CHOICE_HIGHLIGHT)) {\r\n\t\t\tfgLabel.setVisible(true);\r\n\t\t\tbgLabel.setVisible(true);\r\n\t\t\tbgColorSelector.setEnabled(true);\r\n\t\t\tfgColorSelector.setEnabled(true);\r\n\t\t} else {\r\n\t\t\tfgLabel.setVisible(false);\r\n\t\t\tbgLabel.setVisible(false);\r\n\t\t\tbgColorSelector.setEnabled(false);\r\n\t\t\tfgColorSelector.setEnabled(false);\r\n\t\t}\r\n\t}", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "public void disableHighlightButton(ImageButton imageButtonNotClicked) {\n imageButtonNotClicked.clearColorFilter();\n }", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "public synchronized void reviveLetterButtons() {\n\t\tfor (Button letterButton : this.letterButtons) {\n\t\t\tletterButton.setVisibility(Button.VISIBLE);\n\t\t}\n\t}", "public void resetButtonStyles() {\n\t\tint drawable_id = R.drawable.stockbutton;\n\t\tDrawable stockbutton = getResources().getDrawable(drawable_id);\n\t\t\n\t\t// For now I'm just going to set the bg colors\n\t\tButton outsideButton = (Button) findViewById(R.id.outside);\n\t\toutsideButton.setBackground(stockbutton);\n\t\tButton fridgeButton = (Button) findViewById(R.id.fridge);\n\t\tfridgeButton.setBackground(stockbutton);\n\t\tButton freezerButton = (Button) findViewById(R.id.freezer);\n\t\tfreezerButton.setBackground(stockbutton);\n\t}", "public void disableAllButtons() {\n\t\tfor (int i = 0; i < DIM; i++)\n\t\t\tfor (int j = 0; j < DIM; j++)\n\t\t\t\tbuttons[i][j].setEnabled(false);\n\t}", "private void clearBoard() {\n for (final Integer resId : TOKEN_BUTTON_RES_IDS) {\n mBoard.findViewById(resId).setEnabled(true);\n ViewCompat.setBackgroundTintList(mBoard.findViewById(resId), ColorStateList.valueOf(ContextCompat.getColor(mContext, R.color.gray)));\n }\n }", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "public void updateResetButton(){\n if (vertexImages.size() < 1){\n resetButton.setAlpha(0.5f);\n resetButton.setClickable(false);\n }\n else {\n resetButton.setAlpha(1f);\n resetButton.setClickable(true);\n }\n }", "private void resetIncognito()\n\t{\n\t\teToPower.setBackground (defaultButtonBackground);\n\t\ttwoPower.setBackground (defaultButtonBackground);\n\t\tln.setBackground (defaultButtonBackground);\n\t\txCube.setBackground (defaultButtonBackground);\n\t\txSquare.setBackground (defaultButtonBackground);\n\t\tdel.setBackground (defaultButtonBackground);\n\t\tcubeRoot.setBackground (defaultButtonBackground);\n\t\tC.setBackground (defaultButtonBackground);\n\t\tnegate.setBackground (defaultButtonBackground);\n\t\tsquareRoot.setBackground (defaultButtonBackground);\n\t\tnine.setBackground (defaultButtonBackground);\n\t\teight.setBackground (defaultButtonBackground);\n\t\tseven.setBackground (defaultButtonBackground);\n\t\tsix.setBackground (defaultButtonBackground);\n\t\tfive.setBackground (defaultButtonBackground);\n\t\tfour.setBackground (defaultButtonBackground);\n\t\tthree.setBackground (defaultButtonBackground);\n\t\ttwo.setBackground (defaultButtonBackground);\n\t\tone.setBackground (defaultButtonBackground);\n\t\tzero.setBackground (defaultButtonBackground);\n\t\tdivide.setBackground (defaultButtonBackground);\n\t\tpercent.setBackground (defaultButtonBackground);\n\t\tmultiply.setBackground (defaultButtonBackground);\n\t\treciprocal.setBackground (defaultButtonBackground);\n\t\tadd.setBackground (defaultButtonBackground);\n\t\tsubtract.setBackground (defaultButtonBackground);\n\t\tdecimalPoint.setBackground (defaultButtonBackground);\n\t\tequals.setBackground (defaultButtonBackground);\n\t\te.setBackground (defaultButtonBackground);\n\t\tPI.setBackground (defaultButtonBackground);\n\t\t\n\t\teToPower.setForeground (defaultButtonForeground);\n\t\ttwoPower.setForeground (defaultButtonForeground);\n\t\tln.setForeground (defaultButtonForeground);\n\t\txCube.setForeground (defaultButtonForeground);\n\t\txSquare.setForeground (defaultButtonForeground);\n\t\tdel.setForeground (defaultButtonForeground);\n\t\tcubeRoot.setForeground (defaultButtonForeground);\n\t\tC.setForeground (defaultButtonForeground);\n\t\tnegate.setForeground (defaultButtonForeground);\n\t\tsquareRoot.setForeground (defaultButtonForeground);\n\t\tnine.setForeground (defaultButtonForeground);\n\t\teight.setForeground (defaultButtonForeground);\n\t\tseven.setForeground (defaultButtonForeground);\n\t\tsix.setForeground (defaultButtonForeground);\n\t\tfive.setForeground (defaultButtonForeground);\n\t\tfour.setForeground (defaultButtonForeground);\n\t\tthree.setForeground (defaultButtonForeground);\n\t\ttwo.setForeground (defaultButtonForeground);\n\t\tone.setForeground (defaultButtonForeground);\n\t\tzero.setForeground (defaultButtonForeground);\n\t\tdivide.setForeground (defaultButtonForeground);\n\t\tpercent.setForeground (defaultButtonForeground);\n\t\tmultiply.setForeground (defaultButtonForeground);\n\t\treciprocal.setForeground (defaultButtonForeground);\n\t\tadd.setForeground (defaultButtonForeground);\n\t\tsubtract.setForeground (defaultButtonForeground);\n\t\tdecimalPoint.setForeground (defaultButtonForeground);\n\t\tequals.setForeground (defaultButtonForeground);\n\t\te.setForeground (defaultButtonForeground);\n\t\tPI.setForeground (defaultButtonForeground);\n\t\t\t\t\n\t\tentry.setBackground (white);\n\t\tentry.setForeground(black);\n\n\t\tmenuBar.setBackground(defaultMenuBackground);\n\t\tmenuBar.setForeground(defaultMenuForeground);\n\t\tfileMenu.setForeground(defaultMenuForeground);\n\t\thelpMenu.setForeground (defaultMenuForeground);\n\t\ttoolsMenu.setForeground(defaultMenuForeground);\n\t\t\t\t\n\t\texit.setBackground(defaultButtonBackground);\n\t\tsettings.setBackground(defaultButtonBackground);\n\t\treadme.setBackground(defaultButtonBackground);\n\t\tabout.setBackground(defaultButtonBackground);\n\t\t\t\t\n\t\texit.setForeground(defaultMenuForeground);\n\t\tsettings.setForeground(defaultMenuForeground);\n\t\treadme.setForeground(defaultMenuForeground);\n\t\tabout.setForeground(defaultMenuForeground);\n\t}", "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "private void resetColors() {\n button.setIdleColor(IDLE_COLOR);\n button.setClickColor(CLICK_COLOR);\n button.setHoverColor(HOVER_COLOR);\n\n icon.getMaterial().setColor(\"Color\", ICON_COLOR);\n label.setAlpha(1.0f);\n label.setColor(ICON_COLOR);\n\n levelLabel.setAlpha(1.0f);\n levelLabel.setColor(LEVEL_COLOR);\n }", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "private void hideAllButtons() {\n\t\tfor(int i = 0; i < 7; i++) {\n\t\t\tmButtons[i].setVisible(false);\n\t\t}\n\t}", "public static void turnButtonVisible(Labeled button){\n button.setStyle(\"-fx-background-color:#FFFFFF\"); //turn button white\n button.setTextFill(black); //turn text black\n }", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }", "private void clearAllButtonStates() {\n for (int i = 1; i <= 10; i++) {\n xbox.getRawButtonPressed(i);\n }\n\n for (int i = 1; i <= 12; i++) {\n joystick.getRawButtonPressed(i);\n }\n }", "@FXML\n public void isSelectedOff() {\n reset();\n on.setSelected(false);\n\n lab4.setVisible(false);\n txt4.setVisible(false);\n lab5.setVisible(false);\n txt5.setVisible(false);\n lab6.setVisible(false);\n txt6.setVisible(false);\n\n }", "private void disableCheck(){\n Button check = (Button) findViewById(R.id.check);\n check.setText(\"Check\");\n check.setClickable(false);\n check.setBackgroundColor(Color.parseColor(\"#e2e2e2\"));\n check.setTextColor(Color.parseColor(\"#a9a9a9\"));\n }", "private void disableBtn(){\n int [] ids = new int[]{\n R.id.box1, R.id.box2, R.id.box3, R.id.box4, R.id.box5, R.id.box6,\n R.id.box7, R.id.box8, R.id.box9\n };\n\n for (int i = 0; i < ids.length; i++)\n {\n ImageButton btnToDisable = (ImageButton)findViewById(ids[i]);\n btnToDisable.setEnabled(false);\n }\n\n }", "@SuppressLint(\"NewApi\")\n\tprivate void ResetBoard() {\n\t\tButton btnBottom_left = (Button) findViewById(R.id.btnBottom_left);\n\t\tButton btnBottom_center = (Button) findViewById(R.id.btnBottom_center);\n\t\tButton btnBottom_right = (Button) findViewById(R.id.btnBottom_right);\n\t\tButton btnTop_left = (Button) findViewById(R.id.btnTop_left);\n\t\tButton btnTop_center = (Button) findViewById(R.id.btnTop_center);\n\t\tButton btnTop_right = (Button) findViewById(R.id.btnTop_right);\n\t\tButton btnCenter_left = (Button) findViewById(R.id.btnCenter_left);\n\t\tButton btnCenter_center = (Button) findViewById(R.id.btnCenter_center);\n\t\tButton btnCenter_right = (Button) findViewById(R.id.btnCenter_right);\n\t\t\n\t\tbtnBottom_left.setEnabled(true);\n\t\tbtnBottom_left.setVisibility(View.VISIBLE);\n\t\tbtnBottom_left.setBackground(null);\n\t\t\n\t\tbtnBottom_center.setEnabled(true);\n\t\tbtnBottom_center.setVisibility(View.VISIBLE);\n\t\tbtnBottom_center.setBackground(null);\n\t\t\n\t\tbtnBottom_right.setEnabled(true);\n\t\tbtnBottom_right.setVisibility(View.VISIBLE);\n\t\tbtnBottom_right.setBackground(null);\n\t\t\n\t\tbtnTop_left.setEnabled(true);\n\t\tbtnTop_left.setVisibility(View.VISIBLE);\n\t\tbtnTop_left.setBackground(null);\n\t\t\n\t\tbtnTop_center.setEnabled(true);\n\t\tbtnTop_center.setVisibility(View.VISIBLE);\n\t\tbtnTop_center.setBackground(null);\n\t\t\n\t\tbtnTop_right.setEnabled(true);\n\t\tbtnTop_right.setVisibility(View.VISIBLE);\n\t\tbtnTop_right.setBackground(null);\n\t\t\n\t\tbtnCenter_left.setEnabled(true);\n\t\tbtnCenter_left.setVisibility(View.VISIBLE);\n\t\tbtnCenter_left.setBackground(null);\n\t\t\n\t\tbtnCenter_center.setEnabled(true);\n\t\tbtnCenter_center.setVisibility(View.VISIBLE);\n\t\tbtnCenter_center.setBackground(null);\n\t\t\n\t\tbtnCenter_right.setEnabled(true);\n\t\tbtnCenter_right.setVisibility(View.VISIBLE);\n\t\tbtnCenter_right.setBackground(null);\n\t\t\n\t\tfor(int i = 0;i<9;i++){\n\t\t\tgameBoard[i]=0;\n\t\t\tsquare_empty[i]= true;\n\t\t}\n\t}", "private void buttonMouseExit(Button btn){\r\n\t\tbtn.setBackground(\r\n\t\t\t\tnew Background(new BackgroundFill(Color.ALICEBLUE, new CornerRadii(0), new Insets(0)))); // set login button aliceblue with mouse exit\r\n\t\tbtn.setTextFill(Color.BLACK); // set text black\r\n\t}", "protected void removealphaOpeque() {\n\t\tlistbackground.setAlpha(1f);\n\t\tbackground.setAlpha(1f);\n\t\tlv.setClickable(true);\n\t\tlvx.setClickable(true);\n\t\trefresh.setClickable(true);\n\t\tsearch.setClickable(true);\n\t\tsearch.setEnabled(true);\n\t\tlv.setEnabled(true);\n\t\tlvx.setEnabled(true);\n\t\tcancelButton.setClickable(true);\n\t\tcancelButton.setEnabled(true);\n\t\trefresh.setEnabled(true);\n\t}", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "private void barDisableAll() {\n imgNinja.setImageDrawable(resources.getDrawable(R.drawable.ic_banana_dis));\n imgFruiter.setImageDrawable(resources.getDrawable(R.drawable.ic_like_dis));\n imgHack.setImageDrawable(resources.getDrawable(R.drawable.ic_lock_dis));\n imgNews.setImageDrawable(resources.getDrawable(R.drawable.ic_news_dis));\n tvNinja.setTextColor(resources.getColor(R.color.barTextDisabled));\n tvFruiter.setTextColor(resources.getColor(R.color.barTextDisabled));\n tvHack.setTextColor(resources.getColor(R.color.barTextDisabled));\n tvNews.setTextColor(resources.getColor(R.color.barTextDisabled));\n }", "public static void GameOverEffect(ArrayList<JButton> myGameButton){\n enableButtons(myGameButton);\n for(int i=0; i<myGameButton.size(); ++i){\n myGameButton.get(i).setBackground(Color.red); // set buttons back-ground color\n myGameButton.get(i).setForeground(Color.white); // set buttons fore-ground color\n } \n }", "protected void resetSideButtons(){\n mFightButton.setText(\"FIGHT\");\n mPokemonButton.setText(\"POKEMON\");\n mBagButton.setText(\"BAG\");\n mRunButton.setText(\"RUN\");\n mFightButton.setBackgroundColor(PokemonApp.FIGHT_COLOR);\n mPokemonButton.setBackgroundColor(PokemonApp.POKEMON_COLOR);\n mBagButton.setBackgroundColor(PokemonApp.BAG_COLOR);\n mRunButton.setBackgroundColor(PokemonApp.RUN_COLOR);\n }", "private void reactMain_region_digitalwatch_Display_glowing_GlowOff() {\n\t\tif (sCIButtons.topRightPressed) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\tsCIDisplay.operationCallback.setIndiglo();\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOn;\n\t\t}\n\t}", "public static void clearEffect(ArrayList<JButton> myGameButton){\n for(int i=0; i<myGameButton.size(); ++i){\n myGameButton.get(i).setBackground(Color.LIGHT_GRAY);\n }\n }", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "public void clearStatusIcons();", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "public void toggleButton(){\r\n\t\tImageIcon xImage = new ImageIcon(\"image/x.png\");\t//Inserting image to the button\r\n\t\tImageIcon oImage = new ImageIcon(\"image/o.png\");\t//Inserting image to the button\r\n\t\tfor(int i=0;i<3;i++){\t\t\t\t\t//Update the buttons' text base on array of state\r\n\t\t\tfor(int j=0;j<3;j++){\r\n\t\t\t\t this.b[i][j].setIcon(Exer10.state[i][j]==1?xImage:(Exer10.state[i][j]==2?oImage:null));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void cambiarFondobtnPagoTarjeta(){\n btnPagoTarjeta.setBackgroundResource(R.drawable.btn_met_pgo_seleccion);\n btnPagoBancolo.setChecked(false);\n btnPagoNequi.setChecked(false);\n btnPagoPSE.setChecked(false);\n }", "private void setupButtons()\n\t{\n\t\tequals.setText(\"=\");\n\t\tequals.setBackground(Color.RED);\n\t\tequals.setForeground(Color.WHITE);\n\t\tequals.setOpaque(true);\n\t\tequals.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 50));\n\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\tclear.setText(\"C\");\n\t\tclear.setBackground(new Color(0, 170, 100));\n\t\tclear.setForeground(Color.WHITE);\n\t\tclear.setOpaque(true);\n\t\tclear.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 50));\n\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\tbackspace.setText(\"<--\");\n\t\tbackspace.setBackground(new Color(0, 170, 100));\n\t\tbackspace.setForeground(Color.WHITE);\n\t\tbackspace.setOpaque(true);\n\t\tbackspace.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 35));\n\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\tnegative.setText(\"+/-\");\n\t\tnegative.setBackground(Color.GRAY);\n\t\tnegative.setForeground(Color.WHITE);\n\t\tnegative.setOpaque(true);\n\t\tnegative.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 35));\n\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t}", "private void setAllButton(int index) {\n if(buttons.get(index).isOpaque()) {\n buttons.get(index).setOpaque(false);\n } else {\n buttons.get(index).setOpaque(true);\n }\n }", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "protected void doBright() {\r\n\t\talpha = 1.0f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "public void gamereset() {\n Button tmp = (Button) findViewById(R.id.resetbutton);\n tmp.setVisibility(View.VISIBLE);\n }", "void turnOffButtonsNotIn(TransactionType tt1, TransactionType tt2) {\n\t\tfor (TransactionType t : perTransRB.keySet()) {\n\t\t\tif (t == tt1)\n\t\t\t\tcontinue;\n\t\t\tif (t == tt2)\n\t\t\t\tcontinue;\n\t\t\tfor (RbSite rbs : perTransRB.get(t)) {\n\t\t\t\trbs.rb.setValue(false);\n\t\t\t}\n\t\t}\n\t}", "public void leftOff() {\r\n\t\tsetLeftColor(0, 0, 0);\r\n\t}", "protected void doDark() {\r\n\t\talpha = 0.5f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "@Override\n public void disableProductionButtons() {\n gameboardPanel.disableProductionButtons();\n leaderCardsPanel.disableProductionButtons();\n }", "private void disableP2Buttons(){\n game_BTN_p2_lightAttack.setEnabled(false);\n game_BTN_p2_strongAttack.setEnabled(false);\n game_BTN_p2_brutalAttack.setEnabled(false);\n }", "public void hideToolbarButtons() {\n Log.i(tag, \"hideToolbarButtons\");\n this.actionBarDrawerToggle.setHomeAsUpIndicator((Drawable) null);\n this.settingsButton.setVisibility(4);\n }", "private void hideLevelButton() {\n AlphaAnimation animation = new AlphaAnimation(1.0f, 0.0f);\n animation.setDuration(500);\n levelButtons.startAnimation(animation);\n levelButtons.setVisibility(View.GONE);\n }", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "private void reset() {\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 9; col++) {\n buttons[row][col].setText(\"\");\n Drawable roundDrawable = getDrawable(R.drawable.circle_button);\n roundDrawable.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP);\n buttons[row][col].setTextColor(Color.BLACK);\n buttons[row][col].setBackground(roundDrawable);\n buttons[row][col].setClickable(true);\n }\n }\n }\n }, 3000);\n }", "private void resetBoard(){\n\n int [] ids = new int[]{\n R.id.box1, R.id.box2, R.id.box3, R.id.box4, R.id.box5, R.id.box6,\n R.id.box7, R.id.box8, R.id.box9\n };\n\n for (int i = 0; i < ids.length; i++)\n {\n ImageButton btnToDisable = (ImageButton)findViewById(ids[i]);\n btnToDisable.setEnabled(true);\n btnToDisable.setBackgroundResource(R.drawable.tile);\n }\n\n\n\n }", "public void resetButtons() {\n\t\t group.clearSelection();\n\t }", "public void rightOff() {\r\n\t\tsetRightColor(0, 0, 0);\r\n\t}", "private void checkButtonVisibility() {\n\n if (leftBlockIndex > 0) {\n buttonLeft.setVisibility(View.VISIBLE);\n } else {\n buttonLeft.setVisibility(View.INVISIBLE);\n }\n\n if (leftBlockIndex < blockCount - 2) {\n buttonRight.setVisibility(View.VISIBLE);\n } else {\n buttonRight.setVisibility(View.INVISIBLE);\n }\n\n }", "public void botoiaDesaktibatu2() {\r\n\t\tbtnAurrera.setEnabled(true);\r\n\t}", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "private void hexToggle() {\n\t\tJPanel content = (JPanel) frame.getContentPane();\n\t\tJPanel innerContent = (JPanel) content.getComponents()[1];\n\t\tComponent[] com = innerContent.getComponents();\n\n\t\tfor (Component button : com) {\n\t\t\tif (button instanceof JButton) {\n\t\t\t\tJButton hexButton = (JButton) button;\n\t\t\t\tif (hexButton.getText().matches(\"[A-F]\")) {\n\n\t\t\t\t\tif (hexButton.isVisible()) {\n\t\t\t\t\t\thexButton.setVisible(false);\n\t\t\t\t\t} else\n\t\t\t\t\t\thexButton.setVisible(true);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void btnAbort(View v){\n RadioGroup Radioone = (RadioGroup) findViewById(R.id.WireOne);\n RadioButton WireOneColor = ((RadioButton) findViewById(Radioone.getCheckedRadioButtonId()));\n String frk = \"\";\n frk = getGlobals(\"FRKLit\", frk);\n String bat = \"\";\n int battery = 0;\n battery = Integer.parseInt(getGlobals(\"Batteries\", bat));\n\n\n\n if (WireOneColor.getText().equals(\"Blue\")) {\n abort = \"A\";\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n //This is done.\n } else{\n if (battery > 2 && frk.equals(\"Yes\")){\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.INVISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.INVISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.INVISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.INVISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Release!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n } else {\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n }\n }\n\n }", "private void hideButtons(View rowView) {\n\t\tImageButton bikeButton = (ImageButton) rowView.findViewById(R.id.truckProfileHubwayButton);\n\t\tImageButton walkButton = (ImageButton) rowView.findViewById(R.id.truckProfileWalkingButton);\n\t\tImageButton subwayButton = (ImageButton) rowView.findViewById(R.id.truckProfileSubwayButton);\n\t\t\n\t\tbikeButton.setFocusable(false);\n\t\tbikeButton.setFocusableInTouchMode(false);\n\t\tbikeButton.setVisibility(View.GONE);\n\t\t\n\t\twalkButton.setFocusable(false);\n\t\twalkButton.setFocusableInTouchMode(false);\n\t\twalkButton.setVisibility(View.GONE);\n\t\t\n\t\tsubwayButton.setFocusable(false);\n\t\tsubwayButton.setFocusableInTouchMode(false);\n\t\tsubwayButton.setVisibility(View.GONE);\n\t}", "private void disableToolBar(ImageView[] im,int j) { \r\n BoxBlur bb = new BoxBlur(); //Inicializa el efecto Difuminado\r\n //se define los parametros del efecto del \r\n bb.setWidth(5); \r\n bb.setHeight(5); \r\n bb.setIterations(1); \r\n im[j].setEffect(bb); //Asigna el Efecto al Boton Correspondiente\r\n im[j].setDisable(true); //Deshabilita el Boton Correspondiente\r\n }", "private void unsetWorking(){\n\t\tcalibrationButtonImageView.setClickable(true);\n\t\tcalibrationButtonImageView.setEnabled(true);\n progressDialog.dismiss();\n\t}", "private void createBottomButtons() {\n // Create a composite that will contain the control buttons.\n Composite bottonBtnComposite = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, true);\n gl.horizontalSpacing = 10;\n bottonBtnComposite.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n bottonBtnComposite.setLayoutData(gd);\n\n // Create the Interpolate button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n interpolateBtn = new Button(bottonBtnComposite, SWT.PUSH);\n interpolateBtn.setText(\"Interpolate\");\n interpolateBtn.setLayoutData(gd);\n interpolateBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorData upperColorData = upperColorWheel.getColorData();\n ColorData lowerColorData = lowerColorWheel.getColorData();\n\n colorBar.interpolate(upperColorData, lowerColorData, rgbRdo\n .getSelection());\n undoBtn.setEnabled(true);\n updateColorMap();\n }\n });\n\n // Create the Undo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n undoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n undoBtn.setText(\"Undo\");\n undoBtn.setEnabled(false);\n undoBtn.setLayoutData(gd);\n undoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n undoBtn.setEnabled(colorBar.undoColorBar());\n updateColorMap();\n redoBtn.setEnabled(true);\n }\n });\n\n // Create the Redo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n redoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n redoBtn.setText(\"Redo\");\n redoBtn.setEnabled(false);\n redoBtn.setLayoutData(gd);\n redoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n redoBtn.setEnabled(colorBar.redoColorBar());\n updateColorMap();\n undoBtn.setEnabled(true);\n }\n });\n\n // Create the Revert button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n revertBtn = new Button(bottonBtnComposite, SWT.PUSH);\n revertBtn.setText(\"Revert\");\n revertBtn.setLayoutData(gd);\n revertBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n colorBar.revertColorBar();\n updateColorMap();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n }\n });\n\n // Create the Save button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n saveBtn = new Button(bottonBtnComposite, SWT.PUSH);\n saveBtn.setText(\"Save\");\n saveBtn.setLayoutData(gd);\n if( seldCmapName == null ) {\n saveBtn.setEnabled(false);\n }\n \n saveBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorMap cm = (ColorMap) cmapParams.getColorMap();\n seldCmapName = selCmapCombo.getText();\n \n// int sepIndx = seldCmapName.indexOf(File.separator);\n// String cmapCat = seldCmapName.substring(0,seldCmapName.indexOf(File.separator));\n// String cmapName = seldCmapName.substring( seldCmapName.indexOf(File.separator));\n if (lockedCmaps != null && lockedCmaps.isLocked(seldCmapName)) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists and is locked.\\n\\n\" +\n \t\t\t\"You cannot overwrite it.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tconfirmDlg.open();\n \tcolorBar.undoColorBar();\n updateColorMap();\n \treturn;\n } \n else if( ColorMapUtil.colorMapExists( seldCmapCat, seldCmapName ) ) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists.\\n\\n\" +\n \t\t\t\"Do you want to overwrite it?\",\n \t\t\tMessageDialog.QUESTION, new String[]{\"Yes\", \"No\"}, 0);\n \tconfirmDlg.open();\n\n \tif( confirmDlg.getReturnCode() == MessageDialog.CANCEL ) {\n \t\treturn;\n \t}\n }\n\n try {\n ColorMapUtil.saveColorMap( cm, seldCmapCat, seldCmapName );\n \n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Colormap Saved\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" Saved.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n } catch (VizException e) {\n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Error\", null, \n \t\t\t\"Error Saving Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\"\\n\"+e.getMessage(),\n \t\t\tMessageDialog.ERROR, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n }\n\n completeSave();\n }\n });\n\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.grabExcessHorizontalSpace = false;\n deleteBtn = new Button(bottonBtnComposite, SWT.PUSH);\n deleteBtn.setText(\"Delete\");\n deleteBtn.setLayoutData(gd);\n deleteBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tdeleteColormap();\n }\n });\n Label sep = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n sep.setLayoutData(gd);\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.HORIZONTAL_ALIGN_END);\n Button closeBtn = new Button(shell, SWT.PUSH);\n closeBtn.setText(\" Close \");\n closeBtn.setLayoutData(gd);\n closeBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tshell.dispose();\n }\n });\n }", "public void reset(View V) {\n counter = 0;\n cross = true;\n circle = false;\n\n cross1 = false;\n cross2 = false;\n cross3 = false;\n cross4 = false;\n cross5 = false;\n cross6 = false;\n cross7 = false;\n cross8 = false;\n cross9 = false;\n\n circle1 = false;\n circle2 = false;\n circle3 = false;\n circle4 = false;\n circle5 = false;\n circle6 = false;\n circle7 = false;\n circle8 = false;\n circle9 = false;\n //resetting imagebuttons to grey and clickable\n ImageButton b = (ImageButton) findViewById(R.id.imageButton1);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton2);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton3);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton4);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton5);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton6);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton7);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton8);\n b.setClickable(true);\n b.setEnabled(true);\n b = (ImageButton) findViewById(R.id.imageButton9);\n b.setClickable(true);\n b.setEnabled(true);\n //turns test box invisible\n TextView c = (TextView) findViewById(R.id.CrossWonView);\n c.setVisibility(View.INVISIBLE);\n\n c = (TextView) findViewById(R.id.CircleWonView);\n c.setVisibility(View.INVISIBLE);\n\n c = (TextView) findViewById(R.id.TieWonView);\n c.setVisibility(View.INVISIBLE);\n\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.greybox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.greybox);\n //turn reset button invisible\n Button tmp = (Button) findViewById(R.id.resetbutton);\n tmp.setVisibility(View.INVISIBLE);\n }", "private void clearButtons(){\n\t\t// remove-all saved search Buttons\n\t\tqueryTableLayout.removeAllViews();\n\t}", "private void updateButtons() {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t public void run() { \n\t\t botones[rowId1][columnId1].toggleOnOff();\n\t\t\t botones[rowId1][columnId1].setEnabled(true);\n\t\t\t \n\t\t\t botones[rowId2][columnId2].toggleOnOff();\n\t\t\t botones[rowId2][columnId2].setEnabled(true);\n\t\t\t \n\t\t\t setEnabled(true);\n\t\t\t \n\t\t timerPush.stop();\n\t\t }\n\t\t });\n\t }", "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "private void moikhoacontrol(boolean b) {\n\t\tbtnSua.setEnabled(b);\n\t\tbtnluu.setEnabled(b);\n\t\tbtnxoa.setEnabled(b);\n\t\tbtnThoat.setEnabled(b);\n\t\tbtnTim.setEnabled(b);\n\t\t\n\t}", "private void setButtons(boolean en){\n btnQuit.setEnabled(!en);\n btnResign.setEnabled(en);\n btnNewGame.setEnabled(!en);\n }", "private void settingNormalButton(Button button1, Button button2, Button button3) {\n button1.setBackgroundResource(R.drawable.my_btn_bg);\n button1.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button2.setBackgroundResource(R.drawable.my_btn_bg);\n button2.setTextColor(getResources().getColor(R.color.test_dark_blue));\n button3.setBackgroundResource(R.drawable.my_btn_bg);\n button3.setTextColor(getResources().getColor(R.color.test_dark_blue));\n }", "private void resetActionButtonsState()\n {\n // Actions\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // First player reset state\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, false);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, false);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, false);\n }\n\n // Second player reset state\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, true);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, true);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, true);\n }\n }", "void killButton() {\n //goes through all columns\n for (int i = 0; i < 7; i++) {\n //if the not of valid move is true, disable the buttons\n if (!Checker.validMove(currentBoard, i)) {\n Inputbuttons[i].setEnabled(false);\n }\n }\n }", "@FXML\n public void resetMultiplayer()\n {\n multiplayerButton.setOnMouseExited(mouseEvent -> multiplayerButton.setTextFill(Color.WHITE));\n }", "public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "private void clearButtons()\n {\n // remove all saved search Buttons\n listTableLayout.removeAllViews();\n }", "private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}", "private void endGame(boolean gameWon) {\n if (gameWon) {\n winloseLabel.setText(\"YOU WIN\");\n for (int i = 0;i < btArray.length;i++) {\n for (int j = 0; j < btArray[0].length; j++) {\n // if it's a mine\n if (mainField.getValue(i,j) == -1) {\n // turn the button green\n btArray[i][j].setStyle(\"-fx-background-color: #00FF00;\");\n }\n }\n }\n }\n else {\n winloseLabel.setText(\"YOU LOSE\");\n }\n // disables all of the buttons\n for (Button[] subArray : btArray) {\n for (Button button : subArray) {\n button.setDisable(true);\n }\n }\n }", "private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}", "public void initButtons() {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setOnMouseEntered(e -> {\n Button button;\n button = (Button) e.getSource();\n button.setStyle(\"-fx-border-color:yellow\");\n });\n bt[i][j].setOnMouseExited(e -> {\n Button button;\n button = (Button) e.getSource();\n button.setStyle(\"-fx-border-color:trasparent\");\n });\n\n }\n }\n }", "public void black() {\n g2.setPaint(Color.black);\r\n }", "public void solve(){\n\t\tfor(int i = 1; i < 26; i++){\n\t\t\tp.getButton(i).setBackground(Color.white);\n\t\t}\n\t}", "public void disableProductionButtons(){\n for(int i = 0; i < 3; i++){\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i],i));\n productionButtons[i].setEnabled(false);\n }\n\n baseProductionPanel.disableButton();\n }", "public void ocultaBotoesDeSegundoPlanoAtd(){\n JButton[] botSegPlan = botoesDeSegPlanoAtd();\n \n for(int i = 0; i<botSegPlan.length; i++){\n botSegPlan[i].setVisible(false);\n }\n }", "public void deactivate(){\n state = State.invisible;\n active = false;\n }", "void disableClearAllParametersButton();", "private void setAllGone() {\n ivOne.setVisibility(View.GONE);\n ivTwo.setVisibility(View.GONE);\n ivThree.setVisibility(View.GONE);\n ivFour.setVisibility(View.GONE);\n ivFive.setVisibility(View.GONE);\n ivSix.setVisibility(View.GONE);\n ivSeven.setVisibility(View.GONE);\n ivEight.setVisibility(View.GONE);\n ivNine.setVisibility(View.GONE);\n }", "public void resetSelections()\n {\n for(Node child: gridpane.getChildren())\n {\n Button randButton = (Button) child;\n\n // set all buttons to have default background\n randButton.setStyle(null);\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttotalLayout.setBackgroundColor(getResources().getColor(R.color.red));\n\t\t\t\tconfirmButton.setEnabled(false);\n\t\t\t\tconfirmRequest1();\n\t\t\t}", "private void clearBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clearBtnMouseReleased\n clearBtn.setBackground(Color.decode(\"#4fc482\"));\n }" ]
[ "0.6775654", "0.65115863", "0.64741147", "0.6463847", "0.6336247", "0.63047683", "0.62786496", "0.62154055", "0.62088203", "0.61878103", "0.6112747", "0.609217", "0.60836875", "0.60213375", "0.60209215", "0.6020811", "0.60166585", "0.5972851", "0.59704757", "0.59696215", "0.59546906", "0.5924848", "0.59238213", "0.59166855", "0.59098285", "0.5891493", "0.58907753", "0.5888587", "0.5877898", "0.58695966", "0.58597153", "0.5858369", "0.5843883", "0.5831507", "0.58310753", "0.5825942", "0.5820591", "0.5810689", "0.58093387", "0.58092177", "0.58075637", "0.5793338", "0.5792027", "0.5785013", "0.5780896", "0.5780461", "0.5766945", "0.57532996", "0.5746876", "0.57465947", "0.57442075", "0.57387", "0.57358885", "0.5735307", "0.5722423", "0.5704956", "0.57038707", "0.5688176", "0.56741196", "0.565879", "0.56381", "0.5632873", "0.5628793", "0.56270635", "0.5608871", "0.55991805", "0.5584636", "0.55816716", "0.5581238", "0.55708086", "0.5553595", "0.55455285", "0.5538794", "0.5534029", "0.5513754", "0.551356", "0.5508246", "0.5506251", "0.5505986", "0.5503283", "0.5499803", "0.5485585", "0.54852664", "0.54811114", "0.54722303", "0.5470435", "0.5468385", "0.54683393", "0.54667723", "0.54604465", "0.54590654", "0.5451858", "0.54512435", "0.54472387", "0.5443756", "0.5443555", "0.544335", "0.54433143", "0.54379815", "0.5437481", "0.5432544" ]
0.0
-1
Copy the tab filenames into a list to be used while loading as the opening tabs methods also includes the step of recording the tabs in the propertiesMemento thereby overwriting the loaded list. This would result in only one tab being opened.
private void openSavedTabs(){ List<String> filenames = new ArrayList<String>(); int i = 0; while(propertiesMemento.get("tab" + i) != null){ filenames.add((String) propertiesMemento.get("tab" + i)); i++; } for(String filename: filenames){ logger.info("Looking for:" + filename); File file = new File(filename); if(!file.exists()){ //JOptionPane.showMessageDialog(null, "Cannot find " + filename, "Warning", JOptionPane.WARNING_MESSAGE); // Simply ignore KIS logger.info("Cannot find file " + filename + " so not load it as tab"); } else{ String content = FileLoader.loadFile(filename); // If the application can't open one of the recorded tabs then drop out trying to load them. if(!openSavedTab(content)){ return; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void loadSet() {\n int returnVal = fc.showOpenDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n System.out.println(\"Opening: \" + file.getName());\n closeAllTabs();\n try {\n FileInputStream fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n //loopButton.setSelected( ois.readObject() ); \n ArrayList l = (ArrayList) ois.readObject();\n System.out.println(\"read \"+l.size()+\" thingies\");\n ois.close();\n for(int i=0; i<l.size(); i++) {\n HashMap m = (HashMap) l.get(i);\n openNewTab();\n getCurrentTab().paste(m);\n }\n } catch(Exception e) {\n System.out.println(\"Open error \"+e);\n }\n }", "private void initFileTab()\n\t{\n\t\t\n\t\tMainApp.getMainController().requestAddTab(fileTab);\n\t\t\n\t\t\n\t\tfileTab.getCodeArea().textProperty().addListener((obs, oldv, newv) -> dirty.set(true));\n\t\t\n\t\tdirty.addListener((obs, oldv, newv) -> {\n\t\t\t\n\t\t\tString tabTitle = fileTab.getText();\n\t\t\t\n\t\t\tif (newv && !tabTitle.endsWith(\"*\"))\n\t\t\t\tfileTab.setText(tabTitle + \"*\");\n\t\t\t\n\t\t\telse if (!newv && tabTitle.endsWith(\"*\"))\n\t\t\t\tfileTab.setText(tabTitle.substring(0, tabTitle.length()-1));\n\t\t});\n\t\t\n\t\t\n\t\tfileTab.setOnCloseRequest(e -> {\n\t\t\t\n\t\t\tboolean success = FileManager.closeFile(this);\n\t\t\t\n\t\t\tif (!success)\n\t\t\t\te.consume();\n\t\t});\n\t\t\n\t\tMainApp.getMainController().selectTab(fileTab);\n\t}", "private ArrayList<Tab> getTabs() {\n ArrayList<Tab> res = new ArrayList<Tab>();\n res.add(getRegisterTab());\n res.add(getRouleauTab());\n res.add(getCoinageTab());\n res.add(getBillTab());\n return res;\n }", "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "public void createFileObjects() {\n List<String> externalFiles = abbreviationsPreferences.getExternalJournalLists();\n externalFiles.forEach(name -> openFile(Paths.get(name)));\n }", "private void setupTabs() {\n }", "private void createTabList() throws UnsupportedEncodingException {\n\n org.mortbay.html.List tabList =\n new org.mortbay.html.List(org.mortbay.html.List.Unordered);\n tabsDiv.add(tabList);\n Integer tabCount = 1;\n for (Map.Entry letterPairs : startLetterList.entrySet()) {\n Character startLetter = (Character) letterPairs.getKey();\n Character endLetter = (Character) letterPairs.getValue();\n Link tabLink = new Link(\"DisplayContentTab?start=\" + startLetter + \"&amp;end=\" + endLetter + \"&amp;group=\"\n + grouping + \"&amp;type=\" + type + \"&amp;filter=\" + filterKey +\n \"&amp;timeKey=\" + timeKey, startLetter + \" - \" + endLetter);\n Composite tabListItem = tabList.newItem();\n tabListItem.add(tabLink);\n Block loadingDiv = new Block(Block.Div, \"id='ui-tabs-\" + tabCount++ + \"'\");\n Image loadingImage = new Image(LOADING_SPINNER);\n loadingImage.alt(\"Loading...\");\n loadingDiv.add(loadingImage);\n loadingDiv.add(\" Loading...\");\n tabsDiv.add(loadingDiv);\n }\n }", "private void populateRecentMenu(){\r\n\t\trecentMenu.removeAll();\r\n\t\tString[] files = BibtexPrefs.getOpenedFiles();\r\n\t\trecentMenuItems = new JMenuItem[files.length];\r\n\t\tfor(int i = 0; i < files.length; i++){\r\n\t\t\trecentMenuItems[i] = new JMenuItem(files[i]);\r\n\t\t\trecentMenuItems[i].addActionListener(this);\r\n\t\t\trecentMenu.add(recentMenuItems[i]);\r\n\t\t}\r\n\t}", "private DefaultListModel<String> loadFileNames(){\r\n\t\tthis.fileNamesListModel.clear();\r\n\t\tfor(FileModel model : FileData.getAllFileModels()) {\r\n\t\t\tthis.fileNamesListModel.addElement(model.getName());\r\n\t\t}\r\n\t\treturn this.fileNamesListModel;\r\n\t}", "public void loadFileList() {\n\n if (mCredential.getSelectedAccountName() == null) {\n chooseAccount();\n } else {\n new MakeRequestTask(mCredential,MakeRequestTask.TASK_TYPE_FILELIST).execute();\n\n }\n }", "public List<String> getSheetTabs() {\r\n return sheetTabs;\r\n }", "private void initList() {\r\n\t\tlist = new JList<>();\r\n\t\tFile rootFile = new File(System.getProperty(\"user.dir\"));\r\n\t\tloadFilesInFolder(rootFile);\r\n\t\tlist.addListSelectionListener(new FileListSelectionListener());\r\n\t}", "public void printtabnames (List <WebElement> tablist) throws Exception{\r\n\t\t\ttry {\r\n\t\t\t\tint count = tablist.size();\r\n\t\t\tfor (int i= 0; i<count; i++){\r\n\t\t\t\telement = tablist.get(i);\r\n\t\t\t\tString tabname = element.getText();\r\n\t\t\t\tSystem.out.println(tabname);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Tab not found :: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t}", "public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}", "private void saveExternalFilesList() {\n List<String> extFiles = new ArrayList<>();\n journalFiles.forEach(file -> {\n if (!file.isBuiltInListProperty().get()) {\n file.getAbsolutePath().ifPresent(path -> extFiles.add(path.toAbsolutePath().toString()));\n }\n });\n abbreviationsPreferences.setExternalJournalLists(extFiles);\n }", "private void initTab()\n {\n \n }", "public void setUpListView(){\n ObservableList<File> observableList = FXCollections.observableArrayList();\n // dir is the folder that contains our saved game files - different for singleplayer and multiplayer\n File dir;\n if(ActiveGameState.isMultiplayer())\n dir = new File(\".multiplayerGames\");\n else\n dir = new File(\".singleplayerGames\");\n\n File[] savedGames = dir.listFiles((directory, filename) -> filename.endsWith(\".json\"));\n // add files to observable List and furthermore to gameList\n observableList.clear();\n observableList.addAll(savedGames);\n gameList.setItems(observableList);\n\n\n // use Cell Factory to display only the Name of the Files + make ContextMenu for loading/deleting gameFile\n gameList.setCellFactory(new Callback<ListView<File>, ListCell<File>>() {\n @Override\n public ListCell<File> call(ListView<File> gameList) {\n\n // change updateItem method - display name of file\n ListCell<File> cell = new ListCell<File>() {\n @Override\n protected void updateItem(File item, boolean empty) {\n super.updateItem(item, empty);\n if (item == null)\n setText(\"\");\n else\n setText(item.getName());\n }\n };\n\n // create context menu + function for its items\n ContextMenu contextMenu = new ContextMenu();\n\n //1// Currently Disabled Feature Load\n //By adding make sure to add the item to the context menu\n\n //Delete -> delete game file from list and system\n MenuItem delete = new MenuItem();\n delete.setText((ActiveGameState.getLanguage() == ActiveGameState.Language.german) ? \"Spielstand löschen\" : \"Delete Game\");\n delete.setOnAction(e -> {\n logLoadGame.log(Level.INFO, \"Delete Item\" + cell.getItem().toString());\n\n //Remove linker in multiplayer savegames\n String fileNameToDelete = cell.getItem().toString();\n String onlyFileNameJson = cell.getItem().getName();\n String[] onlyFileName = onlyFileNameJson.split(\"\\\\.\");\n boolean linkerDeleted;\n if (ActiveGameState.isMultiplayer()){\n linkerDeleted = SavegameLinker.removeLinker(onlyFileName[0]);\n if (!linkerDeleted) logLoadGame.log(Level.WARNING, \"Savegame \"+ fileNameToDelete +\" link couldn`t removed from the savegame linker\");\n }\n\n\n File game = cell.getItem();\n gameList.getItems().remove(game);\n\n if(!(game.delete())) logLoadGame.log(Level.WARNING, \"Savegame \"+ fileNameToDelete +\" couldn't be deleted from system\");\n });\n contextMenu.getItems().addAll(delete);\n\n // display context menu only for cells that contain file - not for empty cells\n cell.emptyProperty().addListener((obs, wasEmpty, isNowEmpty) -> {\n if (isNowEmpty) {\n cell.setContextMenu(null);\n } else {\n cell.setContextMenu(contextMenu);\n }\n });\n\n return cell;\n }\n });\n }", "@Override\n public void onTabStateInitialized() {\n SharedPreferences.Editor editor = getSharedPreferences().edit();\n editor.clear();\n TabModelFilter filter =\n mTabModelSelector.getTabModelFilterProvider().getTabModelFilter(false);\n for (int i = 0; i < filter.getCount(); i++) {\n Tab tab = filter.getTabAt(i);\n int id = tab.getId();\n editor.putString(getUrlKey(id), tab.getUrl().serialize());\n editor.putString(getTitleKey(id), tab.getTitle());\n CriticalPersistedTabData tabData = CriticalPersistedTabData.from(tab);\n editor.putInt(getRootIdKey(id), tabData.getRootId());\n editor.putLong(getTimestampMillisKey(id), tabData.getTimestampMillis());\n }\n editor.apply();\n Tab currentTab = mTabModelSelector.getCurrentTab();\n if (currentTab != null) cacheLastSearchTerm(currentTab);\n filter.addObserver(mTabModelObserver);\n }", "public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tfilename);\t\t\n\t\ttabbedPane.setMnemonicAt(0, 0);\n\t}", "default List<String> tabComplete(CommandSender sender, String[] args) {\n return Collections.emptyList();\n }", "protected List<String> getTabCompletion(final CommandSender sender, final List<String> args) {\n\t\treturn new ArrayList<String>();\n\t}", "private void addMenuItems() {\n menuBar.setLayout(new FlowLayout(FlowLayout.CENTER));\n menuBar.setBackground(Color.BLUE);\n JMenuItem newTabButton = new JMenuItem(\"New Tab\");\n newTabButton.addActionListener(e ->\n {\n String tabName = \"Space \";\n Random rand = new Random();\n float r = (float) (rand.nextFloat() / 2f + 0.5);\n float g = (float) (rand.nextFloat() / 2f + 0.5);\n float b = (float) (rand.nextFloat() / 2f + 0.5);\n Color backgroundColor = new Color(r, g, b);\n tabName += tabIndex;\n tabIndex += 1;\n WorkingPanel workingPanel = new WorkingPanel();\n workingPanel.setBackground(backgroundColor);\n jTabbedPane.add(tabName, workingPanel);\n addIconToTab(workingPanel, \"(\");\n addIconToTab(workingPanel, \")\");\n });\n JMenuItem saveButton = new JMenuItem(\"Save\");\n fileManager = new FileManager(this);\n saveButton.addActionListener(e -> {\n try {\n fileManager.saveFile();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n } catch (NullPointerException nullPointerException){\n JOptionPane.showMessageDialog(null, \"No file selected\");\n }\n });\n JMenuItem loadButton = new JMenuItem(\"Load\");\n loadButton.addActionListener(e -> {\n try {\n fileManager.loadFile();\n } catch (IOException | ClassNotFoundException ioException) {\n ioException.printStackTrace();\n }\n });\n JMenuItem compileButton = new JMenuItem(\"Compile\");\n compileButton.addActionListener(e -> {\n visited = new HashSet<>();\n boolean compileFlag = true;\n for (int idx = 0; idx < jTabbedPane.getTabCount(); idx++) {\n WorkingPanel workingPanel = (WorkingPanel) jTabbedPane.getComponent(idx);\n boolean isSuccessfullyCompiled = compileTab(workingPanel.getConnections(), workingPanel, idx);\n if (!isSuccessfullyCompiled) {\n compileFlag = false;\n }\n }\n if (compileFlag) {\n generateGraphCode();\n }\n });\n newTabButton.setPreferredSize(new Dimension(150, 40));\n loadButton.setPreferredSize(new Dimension(150, 40));\n saveButton.setPreferredSize(new Dimension(150, 40));\n compileButton.setPreferredSize(new Dimension(150, 40));\n menuBar.add(newTabButton);\n menuBar.add(saveButton);\n menuBar.add(loadButton);\n menuBar.add(compileButton);\n }", "public ArrayList getRecentFilesList() {\n ArrayList list = new ArrayList();\n String recent = \"\";\n try {\n recent = Constants.PREFS.get( Constants.RECENT_LIST, \"\" );\n }\n catch ( Exception e ) {} // NOPMD\n StringTokenizer st = new StringTokenizer( recent, File.pathSeparator );\n while ( st.hasMoreTokens() ) {\n String filename = st.nextToken();\n JMenuItem item = new JMenuItem( filename );\n item.addActionListener( new MenuItemListener( AntelopePanel.this, filename ) );\n list.add( item );\n }\n return list;\n }", "private void createTab() {\n tab = new char[tabSize];\n for (int i = 0; i < tabSize; i++) {\n tab[i] = tabChar;\n }\n }", "public void openFiles(List<Path> filesToOpen) {\n LibraryTab toRaise = null;\n int initialCount = filesToOpen.size();\n int removed = 0;\n\n // Check if any of the files are already open:\n for (Iterator<Path> iterator = filesToOpen.iterator(); iterator.hasNext(); ) {\n Path file = iterator.next();\n for (int i = 0; i < frame.getTabbedPane().getTabs().size(); i++) {\n LibraryTab libraryTab = frame.getLibraryTabAt(i);\n if ((libraryTab.getBibDatabaseContext().getDatabasePath().isPresent())\n && libraryTab.getBibDatabaseContext().getDatabasePath().get().equals(file)) {\n iterator.remove();\n removed++;\n // See if we removed the final one. If so, we must perhaps\n // raise the LibraryTab in question:\n if (removed == initialCount) {\n toRaise = libraryTab;\n }\n // no more LibraryTabs to check, we found a matching one\n break;\n }\n }\n }\n\n // Run the actual open in a thread to prevent the program\n // locking until the file is loaded.\n if (!filesToOpen.isEmpty()) {\n FileHistoryMenu fileHistory = frame.getFileHistory();\n filesToOpen.forEach(theFile -> {\n // This method will execute the concrete file opening and loading in a background thread\n openTheFile(theFile);\n fileHistory.newFile(theFile);\n });\n } else if (toRaise != null) {\n // If no files are remaining to open, this could mean that a file was\n // already open. If so, we may have to raise the correct tab:\n frame.showLibraryTab(toRaise);\n }\n }", "public void loadRecentPaneFiles() {\r\n // create streams\r\n \r\n boolean exists = (new File(fileWithFileListOfPaneRecentFiles)).exists();\r\nif (exists) {\r\n \r\n try {\r\n // open the file containing the stored list of recent files\r\n FileInputStream input = new FileInputStream(fileWithFileListOfPaneRecentFiles);\r\n \r\n //create reader stream\r\n BufferedReader recentsReader= new BufferedReader(new InputStreamReader(input));\r\n\r\n recentPaneFiles.clear(); // clear the Vector of recent files\r\n String currentLine; // refill it from disk\r\n while ((currentLine = recentsReader.readLine()) != null)\r\n if (recentPaneFiles.indexOf(currentLine) == -1) // file not already in list\r\n recentPaneFiles.add(currentLine);\r\n\r\n recentsReader.close();\r\n input.close();\r\n updateRecentPaneFilesMenu(); // update the recent files menu\r\n\r\n }\r\n catch(java.io.IOException except)\r\n {\r\n System.out.println(\"IO exception in readRecentsFiles. File: \"+fileWithFileListOfPaneRecentFiles+\" not found\");\r\n recentPaneFilesMenu.removeAll(); // clear previous menu items\r\n clearRecentFilesJMenuItem = new JMenuItem(\"Clear the list of recent files\");\r\n clearRecentFilesJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n recentPaneFiles.clear();\r\n recentPaneFilesMenu.removeAll();\r\n }\r\n });\r\n\r\n recentPaneFilesMenu.add(clearRecentFilesJMenuItem);\r\n mainJMenuBar.add(recentPaneFilesMenu); // finally add the recent files menu to the main menu bar\r\n \r\n }\r\n }\r\n }", "void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }", "private static void initFileNames() {\n if (fileNames == null) {\n fileNames = new HashMap<>();\n }\n fileNames.put(\"Linked List (simple)\", \"MySimpleLinkedList\");\n fileNames.put(\"Linked List\", \"MyLinkedList\");\n fileNames.put(\"Stack\", \"MyStack\");\n fileNames.put(\"Queue\", \"MyArrayDeque\");\n fileNames.put(\"Graph\", \"MyGraph\");\n fileNames.put(\"HashTable\", \"MyHashTable\");\n fileNames.put(\"Linear Search\", \"Algorithms\");\n fileNames.put(\"Binary Search\", \"Algorithms\");\n fileNames.put(\"Bubble Sort\", \"Algorithms\");\n fileNames.put(\"Insertion Sort\", \"Algorithms\");\n fileNames.put(\"Selection Sort\", \"Algorithms\");\n fileNames.put(\"Shell Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort (in-place)\", \"Algorithms\");\n fileNames.put(\"Quick Sort\", \"Algorithms\");\n }", "private void loadPersistantWatchLists()\r\n {\r\n\r\n debug(\"loadPersistantWatchLists() called - \");\r\n\r\n expungeAllHistoricFiles();\r\n\r\n final int watchListCount =\r\n ParseData.parseNum(appProps.getProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\")), 0);\r\n\r\n for (int index = 0; index < watchListCount; index++)\r\n {\r\n // Create a NEW header Vector\r\n Vector headers = new Vector();\r\n headers.removeAllElements();\r\n for (int i = 0; i < StockData.columns.length; i++)\r\n {\r\n headers.addElement(StockData.columns[i]);\r\n }\r\n\r\n // Create a new DATA Vector\r\n Vector data = new Vector();\r\n data.removeAllElements();\r\n // Are we in DEMO mode ior in Live Mode\r\n // Populate the Vectors\r\n if (DEMO_MODE)\r\n {\r\n getDemoData(data);\r\n }\r\n else\r\n {\r\n //getDemoData(data);\r\n getLiveData(data, index);\r\n }\r\n\r\n // Create a new Table Model with our headers and data\r\n StockDataTableModel tableModel = new StockDataTableModel(headers, data);\r\n\r\n // Create a new Table with our Tablemodel\r\n JTable table = new HGTable(tableModel);\r\n\r\n // This method will add a timer ( via the index ) the table and tableModel\r\n // the appropriate vector containers.\r\n addDataToVectorContainers(table, tableModel, index);\r\n // This Method will add the Popup menu to the this table\r\n addPopupMenuToTable(table);\r\n // Create a new ScrollPane and add our table to it\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.getViewport().add(table);\r\n JPanel panel = new JPanel(new BorderLayout());\r\n\r\n // Creae a new Vertical Panel and add our Menu and JScrollPane Table\r\n JPanel lblPanel = createVerticalPanel(true);\r\n\r\n lblPanel.add(createDropDownMenu());\r\n panel.add(lblPanel, BorderLayout.NORTH);\r\n panel.add(scrollPane, BorderLayout.CENTER);\r\n\r\n // Create a default name for that tab and tab name lookup\r\n String tabName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n // Get the WatchList title via Properties\r\n // Get the Property\r\n tabName = appProps.getProperty(tabName, tabName);\r\n tabPane.addTab(tabName, null, panel, new String(\"Click here to view \" + tabName));\r\n\r\n // Set the selected index to the first in the list\r\n tabPane.setSelectedIndex(0);\r\n // Repaint the tabpane with the current data\r\n tabPane.repaint();\r\n\r\n // Load the Historical Data on the Util Event Thread as \r\n // to get our primary data up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes class instance method loadHistoricData(index);\r\n // NOTE: Startup Initial delay of 5 seconds, give the application,\r\n // Time to load.\r\n TimerTask historicDataTask = new LoadHistoricListDataTask(index);\r\n Timer timer = new Timer(true);\r\n timer.schedule(historicDataTask, ONE_SECOND ); // ONE_SECOND * 6);\r\n\r\n this.setStatusBar(\"Loading watch list [\" + index + \"] complete.\");\r\n }\r\n\r\n this.MODULE_READY = true;\r\n\r\n this.monitorTask = new WatchListMonitorTask();\r\n Timer timer = new Timer(true); // Non-Deamon\r\n timer.scheduleAtFixedRate(monitorTask, MONITOR_DELAY, MONITOR_DELAY);\r\n\r\n debug(\"loadPersistantWatchLists() complete - \");\r\n\r\n }", "@NbBundle.Messages({\"DomainDetailsPanel.miniTimelineTitle.text=Timeline\"})\n @ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n void configureArtifactTabs(String tabName) {\n selectedTabName = tabName;\n if (StringUtils.isBlank(selectedTabName)) {\n selectedTabName = Bundle.DomainDetailsPanel_miniTimelineTitle_text();\n }\n selectTab();\n jTabbedPane1.addChangeListener(new ChangeListener() {\n @Override\n public void stateChanged(ChangeEvent e) {\n if (jTabbedPane1.getSelectedIndex() >= 0) {\n String newTabTitle = jTabbedPane1.getTitleAt(jTabbedPane1.getSelectedIndex());\n if (selectedTabName == null || !selectedTabName.equals(newTabTitle)) {\n selectedTabName = newTabTitle;\n Component selectedComponent = jTabbedPane1.getSelectedComponent();\n if (selectedComponent instanceof DomainArtifactsTabPanel) {\n runDomainWorker((DomainArtifactsTabPanel) selectedComponent, true);\n } else if (selectedComponent instanceof MiniTimelinePanel) {\n runMiniTimelineWorker((MiniTimelinePanel) selectedComponent, true);\n }\n }\n }\n }\n });\n }", "private void refreshList() {\n setTitle(this.path.get(this.path.size() - 1));\n\n // Read all files sorted into the values-array\n values.clear();\n File dir = new File(this.path.get(this.path.size() - 1));\n if (!dir.canRead()) {\n setTitle(getTitle() + \" (inaccessible)\");\n }\n String[] list = dir.list();\n if (list != null) {\n for (String file : list) {\n if (!file.startsWith(\".\")) {\n values.add(file);\n }\n }\n }\n Collections.sort(values);\n }", "protected void setupRecentFiles() {\r\n\t\trecentMenu.removeAll();\r\n\t\tList keys = recentFiles.getFiles();\r\n\t\tif (keys.isEmpty()) {\r\n\t\t\tJMenuItem recentMenuItem = new JMenuItem(\"<<None>>\");\r\n\t\t\trecentMenu.add(recentMenuItem);\r\n\t\t} else\r\n\t\t\tfor (int i = 0; i < keys.size(); i++) {\r\n\t\t\t\tString key = (String) keys.get(i);\r\n\t\t\t\tJMenuItem recentMenuItem = new JMenuItem((i + 1) + \". \" + key);\r\n\t\t\t\trecentMenuItem.addActionListener(new OpenRecentListener());\r\n\t\t\t\trecentMenu.add(recentMenuItem);\r\n\t\t\t\tsuper.repaint();\r\n\t\t\t}\r\n\t}", "public void createTabs(ILaunchConfigurationDialog dialog, String mode) {\n setTabs(new ILaunchConfigurationTab[] { new JavaArgumentsTab(),\n new JavaJRETab(), new JavaClasspathTab(), new CommonTab() });\n }", "private void loadFiles() {\n User user = ConnectionManager.getInstance().getUser();\n List<NoteFile> files = DatabaseManager.getInstance().getSharedFiles(user);\n ObservableList<GuiFile> guiFiles = FXCollections.observableArrayList();\n\n for (NoteFile file : files)\n guiFiles.add(new GuiFile(file));\n\n tableFiles.setItems(guiFiles);\n GUIUtils.autoResizeColumns(tableFiles);\n }", "public void addCompositeToTab(String tabName){\r\n\t\tTabItem item = new TabItem(folderReference, SWT.NONE);\r\n\t\titem.setText(tabName);\r\n\t\t\r\n\t\tfolderReference.getItem(compositeIndex).setControl(compositeMap.get(compositeIndex));\r\n\t\t++compositeIndex;\r\n\t}", "protected void createFileList()\n {\n // get a sorted array of files\n File f = new File(appManagementDir);\n String[] files = f.list(new FileFilter(AppSettings.getFilter()));\n \n // get the adapter for this file list\n ArrayAdapter<String> a = (ArrayAdapter<String>)fileList.getAdapter();\n a.clear();\n \n // clear the check boxes\n fileList.clearChoices();\n \n if (files != null && files.length > 0)\n {\n Arrays.sort(files, 0, files.length, new Comparator<Object>() {\n \n @Override\n public int compare(Object object1, Object object2)\n {\n int comp = 0;\n if (object1 instanceof String \n && object2 instanceof String)\n {\n String str1 = (String)object1;\n String str2 = (String)object2;\n \n comp = str1.compareToIgnoreCase(str2);\n }\n \n return comp;\n }});\n \n \n // add all the files\n for (String fileName : files)\n {\n a.add(fileName);\n }\n \n fileList.invalidate();\n }\n }", "private void setDirtyFlagToTabTitle(Tab tab) {\n String extension = tab.getAttributeAsString(\"Extension\");\n String tabName = tab.getAttributeAsString(\"TabName\");\n\n final Editor editor = (Editor) tab.getAttributeAsObject(EDITOR);\n if (editor != null && editor.isChanged() && tabName.indexOf('*') == -1) {\n tabName = \"*\" + tabName;\n } else if (editor != null && !editor.isChanged() && tabName.indexOf('*') > -1) {\n tabName = tabName.replace(\"*\", \"\");\n }\n if (!tabName.equals(tab.getAttributeAsString(\"TabName\"))) {\n tab.setAttribute(\"TabName\", tabName);\n editorTabSet.setTabTitle(tab, getTabImgTitle(tabName, Extension.getByCode(extension)));\n editorTabSet.markForRedraw();\n }\n if (tab.getAttributeAsObject(\"FileHistoryEditor\") instanceof FileHistoryEditor) {\n editorTabSet.setTabTitle(tab, getHistoryTabImgTitle(tab.getAttributeAsString(\"TabName\")));\n editorTabSet.markForRedraw();\n }\n }", "void buildTabFromSelection(GralFileSelector.FavorPath info, GralPanelContent tabPanel)\n { assert(false);\n /*\n tabPanel.addGridPanel(info.tabName1, info.tabName1,1,1,10,10);\n mng.setPosition(0, 0, 0, -0, 1, 'd'); //the whole panel.\n FileSelector fileSelector = new FileSelector(\"fileSelector-\"+info.tabName1, mng);\n fileSelector.setActionOnEnterFile(main.executer.actionExecute);\n main.idxFileSelector.put(info.tabName1, fileSelector);\n fileSelector.setToPanel(mng, info.tabName1, 5, new int[]{2,20,5,10}, 'A');\n fileSelector.fillIn(new File(info.path));\n */\n }", "public Tab createOpenEditorTab(long fileId, boolean useSearch) {\n Tab retTab = new Tab();\n long ref = 0;\n StringBuilder tabId = new StringBuilder();\n for (Tab tab : editorTabSet.getTabs()) {\n if (tab.getAttributeAsLong(\"ref\") == fileId) {\n ref = tab.getAttributeAsLong(\"ref\");\n tabId.append(tab.getAttributeAsString(\"UniqueId\"));\n editorTabSet.selectTab(tabId.toString());\n if (useSearch) {\n search.selectSearchResultModel(tab);\n return null;\n } else {\n return tab;\n }\n }\n }\n\n if (ref == 0) {\n editResourceService.getVMFile(fileId, new AsyncCallback<VMFile>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(VMFile result) {\n if (result == null) {\n SC.warn(\"File not found.\");\n return;\n }\n\n tabId.append(HTMLPanel.createUniqueId().replaceAll(\"-\", \"_\"));\n String tabName = result.getName();\n retTab.setTitle(getTabImgTitle(tabName, result.getExtension()));\n retTab.setCanClose(true);\n retTab.setID(tabId.toString());\n String path = result.getFullPath().replaceAll(\"(.*)/\" + result.getName() + \"\\\\.\" + result.getExtensionStr() + \"$\", \"$1\");\n retTab.setPrompt(path);\n retTab.setPane(new Layout());\n retTab.setAttribute(\"ref\", fileId);\n retTab.setAttribute(\"UniqueId\", tabId.toString());\n retTab.setAttribute(\"Extension\", result.getExtension().getValue());\n retTab.setAttribute(\"TabName\", tabName);\n createView(retTab, result, new PostProcessHandler() {\n @Override\n public void execute() {\n if (useSearch) {\n search.selectSearchResultModel(retTab);\n }\n }\n });\n }\n });\n return retTab;\n }\n return retTab;\n }", "public List<String> loadProfiles() {\n List<String> profileNames = new ArrayList<>();\n profilesMap.clear();\n\n ProfilesWrapper profiles = (ProfilesWrapper) XMLFileManager.loadXML(\"profiles.xml\", ProfilesWrapper.class);\n if (profiles != null && profiles.getProfiles() != null) {\n for (Profiles prof : profiles.getProfiles()) {\n profileNames.add(prof.getFileName());\n profilesMap.put(prof.getFileName(), new Profiles(prof.getFileName(), prof.getFilePath()));\n }\n }\n return profileNames;\n }", "public void initializeTabs() {\n\n\t\tTabHost.TabSpec spec;\n\n\t\tspec = mTabHost.newTabSpec(Const.EVENTS);\n\t\tmTabHost.setCurrentTab(0);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_events_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(1);\n\t\tspec = mTabHost.newTabSpec(Const.FEED);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_feed_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(2);\n\t\tspec = mTabHost.newTabSpec(Const.INFO);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_info_selector));\n\t\tmTabHost.addTab(spec);\n\n\t}", "public void readtabs(File f) {\r\n \tString str = new String();\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(f.getAbsolutePath()));\r\n str = br.readLine();\r\n \r\n while((str = br.readLine()) != null){\r\n //str = str.replaceAll(\";\", \"\");\r\n String info[] = str.split(\";\");\r\n if(f.getName().equals(\"mdl_chat_messages.txt\")){\r\n \t//chat message id; chatid; userid; groupid; system; message; timestamp;\r\n \tmobileact ma = new mobileact(info[2].trim(), info[6].trim(), \"Chat Message\", info[5]);\r\n \tmobact.add(ma);\r\n }else if(f.getName().equals(\"mdl_forum_posts.txt\")){\r\n \t//id; discussion; parent; userid; created; modified; mailed; subject; message; \r\n \t//messageformat; messagetrust; attachment; totalscore; mailnow; \r\n \tmobileact ma = new mobileact(info[3].trim(), info[5].trim(), \"Forum Posts\", info[8].trim());\r\n \tmobact.add(ma);\r\n }else if(f.getName().equals(\"mdl_quiz_attempts.txt\")){\r\n \t//id; quiz; userid; attempt; uniqueid; layout; currentpage; \r\n \t//preview; state; timestart; timefinish; timemodified; timecheckstate; \r\n \t//sumgrades; needsupgradetonewqe; \r\n \tmobileact ma = new mobileact(info[2].trim(), info[11].trim(), \"Attempt Quiz\", info[8].trim());\r\n \tmobact.add(ma);\r\n }\r\n }\r\n br.close();\r\n }catch(Exception e){\r\n JOptionPane.showMessageDialog(null, \"read moodle log file failed.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "private void enableTabPages() {\n // Disables all tabs except the first (the common for all Net Objects)\n for (int i = jTabbedPane1.getTabCount() - 1; i > 0; i--) {\n int tabIndex = i;\n // Enables specific Net Object tab\n if (!IntStream.of(currentTabIndices).anyMatch(x -> x == tabIndex)) {\n this.jTabbedPane1.remove(i);\n }\n }\n }", "List<String> tab(CommandSender sender, List<String> args);", "public void renameTabs(){\n\t\tfor(int i =0;i<nbTabs;i++){\n\t\t\tif(!tabs.getTitleAt(i).equals(\"Exemples\"))\n\t\t\t\ttabs.setTitleAt(i,(\"Génération\"+(i+1)));\n\t\t}\n\t}", "private ArrayList<JSONObject> loadCurrentTrackingObjects() {\n ArrayList<JSONObject> currentTrackingObjects = new ArrayList<JSONObject>();\n\n SharedPreferences prefs = context.getSharedPreferences(TRACKING_EVENTS_STORAGE, Context.MODE_PRIVATE);\n if (prefs.getAll().isEmpty()) {\n return null;\n }\n\n TreeMap<String, ?> keys = new TreeMap<String, Object>(prefs.getAll());\n for (Map.Entry<String, ?> entry : keys.entrySet()) {\n String data[] = ((String)entry.getValue()).split(\";\");\n currentTrackingObjects.add(buildTrackingItemObject(data[0], data[1], data[2], Long.parseLong(data[3])));\n }\n\n return currentTrackingObjects;\n }", "private void helperDisplayProjectFiles ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString[] fileNameList = DataController.scenarioGetFileNames();\r\n\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentComboboxFileName().removeAllItems();\r\n\r\n\t\t\tfor (int i = 0; i < fileNameList.length; i++)\r\n\t\t\t{\r\n\t\t\t\tmainFormLink.getComponentPanelLeft().getComponentComboboxFileName().addItem(fileNameList[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "public JScrollPane getFileNameList() {\r\n\t\tthis.displayFileNames = new JList<String>(this.loadFileNames());\r\n\t\tthis.displayFileNames.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\tthis.displayFileNames.addListSelectionListener(this);\r\n\t\tthis.displayFileNames.setVisibleRowCount(6);\r\n\t\tthis.fileNameListContainer = new JScrollPane(this.displayFileNames);\r\n\t\treturn this.fileNameListContainer;\r\n\t}", "@Override\n public void onResume() {\n super.onResume();\n //atualizar Listas\n onTabSelected(getActionBar().getSelectedTab(), null);\n }", "public List<Tab> getTabs() {\n\t\tList<Tab> result = new LinkedList<Tab>();\n\t\tfor (JComponent comp : navigator.getAllComponents()) {\n\t\t\tresult.add((Tab) comp);\n\t\t}\n\t\treturn result;\n\t}", "public void applyTab();", "private void loadAPlayListPressed() {\n\n\t\t// go to the selected folder and look for a file called list.txt and then load all the names of the files onto the jlist\n\n\t\tJFileChooser outputChooser = new JFileChooser();\n\t\toutputChooser.setCurrentDirectory(new java.io.File(\".\"));\n\t\toutputChooser.setDialogTitle(\"Choose a directory to output to\");\n\n\t\toutputChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n\t\tint returnValue = outputChooser.showOpenDialog(Library.this);\n\n\t\tif (returnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\tplaylistDirectory = outputChooser.getSelectedFile().getAbsoluteFile();\n\n\t\t}\n\n\t\t// now look in the playlist directory for the list.txt file. If there is one then go to all the paths and then load the file \n\t\t// names onto the jlist\n\t\tFile[] files;\n\t\tif(playlistDirectory !=null){\n\t\t\tfiles = playlistDirectory.listFiles();\n\n\t\t\tboolean textFileExists = false;\n\t\t\tFile a = null;\n\t\t\tfor(File f : files ){\n\t\t\t\tif((f.getName().toLowerCase().endsWith(\".txt\"))){\n\t\t\t\t\ttextFileExists = true;\n\t\t\t\t\ta = f;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// checks if the file exists\n\t\t\tif(textFileExists){\n\n\t\t\t\ttry {\n\t\t\t\t\tl.clear();\n\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(a));\n\t\t\t\t\tString line = br.readLine();\n\t\t\t\t\twhile (line != null) {\n\t\t\t\t\t\tString[] split = line.split(File.separator);\n\t\t\t\t\t\tint last = split.length;\n\t\t\t\t\t\tString lastString = split[last-1];\n\t\t\t\t\t\tpaths.put(lastString, line);\n\t\t\t\t\t\tFile mock = new File(line);\n\t\t\t\t\t\tsizes.put(lastString,mock.length());\n\t\t\t\t\t\tl.addElement(lastString);\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e3) {\n\t\t\t\t\t// Could not read log file, display error message\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Could not open file\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\n\t\t\t}else{\n\t\t\t\tJOptionPane.showMessageDialog(Library.this, \"Sorry, no plyalist exists in this folder!\");\n\t\t\t}\n\t\t}\n\t}", "public List<String> openFileHandles() {\n return this.openFileHandles;\n }", "private void syncProfileNames() {\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tparsedProfiles.get(i).setName(tableSelectionPD.getProfileName(i));\r\n\t\t}\r\n\t}", "public void initData(ObservableList<File> fileObservableList){\n ProfileFactory profileFactory = new ProfileFactory();\n profiles = profileFactory.createAllProfiles(fileObservableList);\n buildUniqueView();\n }", "private void loadFileNamePopup(ArrayAdapter<String> mFileNameAdapter) {\n if(mFileNameAdapter!=null) mFileNameAdapter.clear();\n ArrayList<String> fileNames = Parser.extractFileNames();\n if (!fileNames.isEmpty()){\n for (String fileName : fileNames){\n if (mFileNameAdapter != null)\n mFileNameAdapter.add(fileName);\n }\n }\n }", "private void adjustRecentFilesMenu() {\n _recent.removeAll();\n ArrayList list = getRecentFilesList();\n Iterator it = list.iterator();\n while ( it.hasNext() ) {\n _recent.add( ( JMenuItem ) it.next() );\n }\n }", "private void loadLists() {\n }", "static Extractor byTabs() {\n\t\t\treturn Splitter.TAB_EXTRACTOR;\n\t\t}", "private org.gwtbootstrap3.client.ui.NavTabs get_f_NavTabs42() {\n return build_f_NavTabs42();\n }", "public JTabbedPane initTabs() {\n\t\treturn null;\n\t}", "public IPresentablePart[] getPartList() {\r\n\t\treturn tabs.getPartList();\r\n\t}", "@ArrayRes\n protected abstract int getTabTitleArrayResources();", "protected synchronized void updateMainTabs(String entryName) {\n String name = m_history.getSelectedName();\n if (!name.equals(entryName)) {\n return;\n }\n updateComponentTabs(name, m_outputPane);\n }", "public void initial_list_original(){\n \tFile file = new File(original_directory_conf);\n \tif(file.exists()){\n \t\tArrayList<String> original_directory_list = new ArrayList<String>();\n original_directory_list = read_from_file.readFromFile(original_directory_conf);\n for(int i = 0; i < original_directory_list.size(); i++){\n \tdefault_list_model1.addElement(original_directory_list.get(i));\n }\n list_original.setModel(default_list_model1);\n scroll_pane.repaint();\n \t}else{\n \t\treturn;\n \t}\n \t\n }", "public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "void onShowAllPreview(List<FileItem> fileItemList);", "public void refreshClipboard() {\n BufferedReader reader;\n ArrayList<String> paths = new ArrayList<>();\n try {\n reader = new BufferedReader(new FileReader(this.clipboardPath));\n String path = reader.readLine();\n while (path != null) {\n paths.add(path);\n path = reader.readLine();\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Sorts the paths by length\n Collections.sort(paths, new Comparator<String>() {\n @Override\n public int compare(String o1, String o2) {\n return o1.length() - o2.length();\n }\n });\n\n paths = checkSubDir(paths);\n\n this.numberOfItems = paths.size();\n this.paths = paths;\n\n }", "private void loadData(){\n\n fileName = EditedFiles.getActiveFacilityFile();\n getFacilities().clear();\n\n try {\n getFacilities().addAll(ReaderThreadRunner.startReader(fileName));\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n\n observableList = FXCollections.observableList(getFacilities());\n facilitiesView.setItems(observableList);\n }", "public void printFileNames() {\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()) {\n System.out.println(f);\n }\n }", "private static ArrayList<String> fetchHistory() {\n\t\tScanner s;\n\t\tint count = 0;\n\t\tArrayList<String> historyList = new ArrayList<String>();\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"History.txt\"));\n\t\t\twhile (s.hasNext()) {\n\t\t\t\thistoryList.add(s.next());\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of converted urls fetched: \" + count);\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn historyList;\n\t}", "public static ArrayList<String[]> open() {\r\n int r = file.showOpenDialog(null);\r\n ArrayList<String> data = new ArrayList<>();\r\n String line = \"\";\r\n ArrayList<String[]> datosF = new ArrayList<String[]>();\r\n\r\n if (r == JFileChooser.APPROVE_OPTION) {\r\n arch = file.getSelectedFile();\r\n ruta = arch.getAbsolutePath();\r\n System.out.println(\"\\nArchivo a utilizar: \" + arch.getAbsolutePath());\r\n try {\r\n FileReader read = new FileReader(ruta);\r\n BufferedReader read1 = new BufferedReader(read);\r\n data.add(read1.readLine());\r\n while ((line = read1.readLine()) != null) {\r\n line = line.toLowerCase();\r\n data.add(line);\r\n }\r\n } catch (ArithmeticException | IOException | NumberFormatException e) {\r\n System.out.println(e.toString());\r\n }\r\n }\r\n\r\n for (int i = 0; i < data.size(); i++) {\r\n String[] l = data.get(i).toLowerCase().split(\" \");\r\n datosF.add(l);\r\n }\r\n return datosF;\r\n }", "@Override\n public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {\n List<String> players = new ArrayList<>();\n List<String> completions = new ArrayList<>();\n for (Player player : Bukkit.getOnlinePlayers())\n players.add(player.getName());\n if (args.length == 1) {\n StringUtil.copyPartialMatches(args[0], players, completions);\n }\n return completions;\n }", "public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }", "private void showList() {\n\n if(USE_EXTERNAL_FILES_DIR) {\n mList = mFileUtil.getFileNameListInExternalFilesDir();\n } else {\n mList = mFileUtil.getFileListInAsset(FILE_EXT);\n }\n mAdapter.clear();\n mAdapter.addAll(mList);\n mAdapter.notifyDataSetChanged();\n mListView.invalidate();\n}", "private void updateListView() {\n fileList.getItems().setAll(files.readList());\n //System.out.println(System.currentTimeMillis() - start + \" мс\");\n }", "@Override\n public void loadSettings() {\n\n DefaultListModel srcModel = new DefaultListModel();\n DefaultListModel dstModel = new DefaultListModel();\n\n // always present\n srcModel.addElement(fakeSeparatorButton);\n\n Button[] buttons = ContextBar.getRegisteredButtons();\n Button[] usedButtons = ContextBar.getShared().getButtons();\n\n //\n for (Button u : usedButtons) {\n if (u == null) {\n dstModel.addElement(fakeSeparatorButton);\n } else {\n dstModel.addElement(u);\n }\n }\n\n // add all registered buttons to srcList, except those already on bar\n for (Button b : buttons) {\n int i;\n for (i = 0; i < usedButtons.length; ++i) {\n final Button u = usedButtons[i];\n if (u == null) {\n continue; // skip separator\n }\n if (u == b) {\n break;\n }\n }\n if (i == usedButtons.length) {\n StrangeEons.log.log(Level.INFO, \"added {0} ({1}) to list\", new Object[]{b.getID(), b.getName()});\n srcModel.addElement(b);\n } else {\n StrangeEons.log.log(Level.INFO, \"added {0} ({1}) to bar\", new Object[]{b.getID(), b.getName()});\n }\n }\n\n srcList.setModel(srcModel);\n dstList.setModel(dstModel);\n }", "public static void handleTabs() {\n ArrayList<String> allTabs = new ArrayList<String>(driver.getWindowHandles());\n // There will always be 2 tabs.\n driver.switchTo().window(allTabs.get(1));\n driver.close();\n driver.switchTo().window(allTabs.get(0));\n }", "public static void main(String[] args) {\r\n // SwingUtilities.invokeLater(new Runnable() {\r\n // public void run() {\r\n // RegexReplacer inst = new RegexReplacer();\r\n // inst.setLocationRelativeTo(null);\r\n // gtu.swing.util.JFrameUtil.setVisible(true, inst);\r\n // }\r\n // });\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n System.out.println(\"=====\" + info.getClassName());\r\n // javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n }\r\n final SwingTabTemplateUI tabUI = SwingTabTemplateUI.newInstance(null, \"cheater.ico\", RegexReplacer.class, true, new SwingTabTemplateUI_Callback() {\r\n\r\n @Override\r\n public void beforeInit(SwingTabTemplateUI self) {\r\n }\r\n\r\n @Override\r\n public void afterInit(final SwingTabTemplateUI self) {\r\n self.getJframe().addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent paramWindowEvent) {\r\n try {\r\n RegexReplacer ui = (RegexReplacer) self.getJframeKeeperLst().get(self.getSelectTabIndex());\r\n ui.configHandler.saveProp();\r\n } catch (Exception e) {\r\n JCommonUtil.handleException(\"properties store error!\", e);\r\n }\r\n self.getJframe().setVisible(false);\r\n self.getJframe().dispose();\r\n }\r\n });\r\n }\r\n });\r\n\r\n tabUI.setEventAfterChangeTab(new ChangeTabHandlerGtu001() {\r\n public void afterChangeTab(int tabIndex, List<JFrame> jframeKeeperLst) {\r\n if (jframeKeeperLst != null && !jframeKeeperLst.isEmpty()) {\r\n RegexReplacer regex = ((RegexReplacer) jframeKeeperLst.get(tabIndex));\r\n regex.jTabbedPane1.setSelectedIndex(0);\r\n }\r\n }\r\n });\r\n tabUI.setEventOnFocus(new FocusTabHandlerGtu001() {\r\n public void focusOnWin(List<JFrame> jframeKeeperLst) {\r\n for (JFrame f : jframeKeeperLst) {\r\n RegexReplacer regex = ((RegexReplacer) f);\r\n\r\n // 還在進行\r\n if (System.currentTimeMillis() - regex.keyEventExecuteHandler.getExecuteStartTime() < 1000) {\r\n continue;\r\n }\r\n\r\n regex.jTabbedPane1.setSelectedIndex(0);\r\n }\r\n }\r\n });\r\n\r\n MASTER_UI.set(tabUI);\r\n\r\n tabUI.setSize(700, 550);\r\n tabUI.startUI();\r\n }", "public void loadList(String name){\n }", "private void initTabs()\n {\n updateDayTab();\n\n // Set initial time on time tab\n updateTimeTab();\n }", "public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}", "public void setTabName(String value) {\n this.tabName = value;\n }", "public ArrayList<String> loadFavorites() {\n\n\t\tSAVE_FILE = FAVORITE_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public void loadNames() {\n\t\tloadNames(false);\n\t}", "private void loadPropertyFiles() {\n if ( _sax_panel != null ) {\n _property_files = ( ( SAXTreeModel ) _sax_panel.getModel() ).getPropertyFiles();\n if ( _property_files == null )\n return ;\n HashMap filelist = new HashMap();\n ArrayList resolved = new ArrayList();\n Iterator it = _property_files.keySet().iterator();\n while ( it.hasNext() ) {\n Object o = it.next();\n if ( o == null )\n continue;\n File f = null;\n if ( o instanceof File ) {\n f = ( File ) o;\n Long lastModified = ( Long ) _property_files.get( f );\n filelist.put( f, lastModified );\n }\n else if ( _project != null ) {\n String value = o.toString();\n String filename = value;\n if ( value.startsWith( \"${\" ) && value.endsWith( \"}\" ) ) {\n filename = filename.substring( 2, filename.length() - 1 );\n }\n filename = _project.getProperty( filename );\n if ( filename != null )\n f = new File( filename );\n if ( f != null && !f.exists() ) {\n f = new File( _project.getBaseDir(), filename );\n }\n if ( f != null && f.exists() ) {\n filelist.put( f, new Long( f.lastModified() ) );\n resolved.add( value );\n }\n // see issue #21, Ant standard is to quietly ignore files not found\n //else\n // _logger.warning( \"Unable to find property file for \" + value );\n }\n }\n it = resolved.iterator();\n while ( it.hasNext() ) {\n filelist.remove( it.next() );\n }\n _property_files = filelist;\n }\n }", "private void configure_tabs() {\n Objects.requireNonNull(tabs.getTabAt(0)).setIcon(R.drawable.baseline_map_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(0)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n Objects.requireNonNull(tabs.getTabAt(1)).setIcon(R.drawable.baseline_view_list_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(1)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n Objects.requireNonNull(tabs.getTabAt(2)).setIcon(R.drawable.baseline_people_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(2)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n swipeRefreshLayout.setEnabled(false);\n\n // Set on Tab selected listener\n tabs.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n // Change color of the tab -> orange\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n\n // set the current page position\n current_page = tab.getPosition();\n\n // if the current page is the ListMatesFragment, remove the searchView\n if(mToolbar_navig_utils!=null){\n if(current_page==2)\n mToolbar_navig_utils.getSearchView().setVisibility(View.GONE);\n else\n mToolbar_navig_utils.getSearchView().setVisibility(View.VISIBLE);\n }\n\n // refresh title toolbar (different according to the page selected)\n if(mToolbar_navig_utils !=null)\n mToolbar_navig_utils.refresh_text_toolbar();\n\n // Disable pull to refresh when mapView is displayed\n if(tab.getPosition()==0)\n swipeRefreshLayout.setEnabled(false);\n else\n swipeRefreshLayout.setEnabled(true);\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n // if the searchView is opened, close it\n if(mToolbar_navig_utils !=null) {\n if (mToolbar_navig_utils.getSearchView() != null) {\n if (!mToolbar_navig_utils.getSearchView().isIconified()) {\n mToolbar_navig_utils.getSearchView().setIconified(true);\n\n // Recover the previous list of places nearby generated\n switch (current_page) {\n case 0:\n getPageAdapter().getMapsFragment().recover_previous_state();\n break;\n case 1:\n getPageAdapter().getListRestoFragment().recover_previous_state();\n break;\n }\n }\n }\n }\n\n // Change color of the tab -> black\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n }\n });\n }", "public void listPictures()\r\n {\r\n int index = 0;\r\n while(index >=0 && index < pictures.size()) \r\n {\r\n String filename = pictures.get(index);\r\n System.out.println(index + \": \"+ filename);\r\n index++;\r\n }\r\n }", "public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }", "@Bean\n @Scope(BeanDefinition.SCOPE_SINGLETON)\n @Lazy(false)\n public TabConfig profileTabConfig() {\n TabConfig bean = new TabConfig();\n bean.setViewName(\"profile\");\n\n List<Tab> tabs = new ArrayList<>();\n\n Tab theTab = new Tab();\n theTab.setPageId(\"GENERAL\");\n theTab.setTitle(\"general\");\n theTab.setJsp(\"../profile-general.jsp\");\n theTab.setCommandClass(org.webcurator.ui.profiles.command.GeneralCommand.class);\n theTab.setValidator(new ProfileGeneralValidator());\n theTab.setTabHandler(new ProfileGeneralHandler());\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"BASE\");\n theTab.setTitle(\"base\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n HeritrixProfileHandler tabHandler = heritrixProfileHandler(\"/crawl-order\");\n tabHandler.setRecursionFilter(new GeneralOnlyRendererFilter());\n theTab.setTabHandler(tabHandler);\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"SCOPE\");\n theTab.setTitle(\"scope\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n theTab.setTabHandler(heritrixProfileHandler(\"/crawl-order/scope\"));\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"FRONTIER\");\n theTab.setTitle(\"frontier\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n theTab.setTabHandler(heritrixProfileHandler(\"/crawl-order/frontier\"));\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"PREFETCH\");\n theTab.setTitle(\"prefetchers\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n theTab.setTabHandler(heritrixProfileHandler(\"/crawl-order/pre-fetch-processors\"));\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"FETCH\");\n theTab.setTitle(\"fetchers\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n theTab.setTabHandler(heritrixProfileHandler(\"/crawl-order/fetch-processors\"));\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"EXTRACT\");\n theTab.setTitle(\"extractors\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n theTab.setTabHandler(heritrixProfileHandler(\"/crawl-order/extract-processors\"));\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"WRITE\");\n theTab.setTitle(\"writers\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n theTab.setTabHandler(heritrixProfileHandler(\"/crawl-order/write-processors\"));\n tabs.add(theTab);\n\n theTab = new Tab();\n theTab.setPageId(\"POST\");\n theTab.setTitle(\"postprocessors\");\n theTab.setJsp(\"../profile-page-view.jsp\");\n theTab.setCommandClass(EmptyCommand.class);\n theTab.setValidator(null);\n theTab.setTabHandler(heritrixProfileHandler(\"/crawl-order/post-processors\"));\n tabs.add(theTab);\n\n bean.setTabs(tabs);\n\n return bean;\n }", "public void setGroupList() {\n \n String path = \".\"; //curent folder\n String files; //files name\n File folder = new File(path); // get the folfer\n File[] listOfFiles = folder.listFiles(); //list of files\n for (int i = 0; i < listOfFiles.length; i++) {//this loop go trough the folder\n if (listOfFiles[i].isFile()) {\n files = listOfFiles[i].getName();\n if (files.endsWith(\".xls\") || files.endsWith(\".XLS\")) {//filter all the xls file\n if(!files.equalsIgnoreCase(\".xls\")){\n // add a new objet CompoundBook in a our xlsBook\n xlsBook.add(new CompoundBook(files));\n //add only the name of the file without the .xls extension\n groups.add(files.substring(0, files.lastIndexOf(\".\")));\n }\n }\n }\n }\n gList.setListData(groups); // set the group List on the GUI\n }", "private void readSavedFile() {\n\n String[] files = new String[0];\n \n // On récupère la liste des fichiers\n File file = new File(folderName);\n\n // check if the specified pathname is directory first\n if(file.isDirectory()){\n //list all files on directory\n files = file.list();\n }\n\n if (files != null) {\n for(String currentFile : files) {\n Vehicule voiture;\n try {\n FileInputStream fileIn = new FileInputStream(folderName + \"/\" + currentFile);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n voiture = (Vehicule) in.readObject();\n addVoitureToList(voiture);\n in.close();\n fileIn.close();\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"#Erreur : Impossible de récupérer l'objet \" + currentFile);\n c.printStackTrace();\n return;\n }\n }\n }\n }", "private void getFilenames() {\n\t\tString[] filenames = getApplicationContext().fileList();\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor(int i = 0; i<filenames.length; i++){\n\t\t\t//Log.d(\"Filename\", filenames[i]);\n\t\t\tlist.add(filenames[i]);\n\t\t}\n\t\tArrayAdapter<String> filenameAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, list);\n\t\tspinner.setAdapter(filenameAdapter);\n\t}", "private void init() {\n\n File folder = new File(MAP_PATH);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < Objects.requireNonNull(listOfFiles).length; i++) {\n this.mapFiles.add(new File(MAP_PATH + listOfFiles[i].getName()));\n }\n }", "private void checkAllTabs() {\r\n\t\tboolean close = true;\r\n\t\tfor (int i = 0, n = tabbedPane.getTabCount()-1; i <= n; i++) {\r\n\t\t\tif (! checkForSaving(i)) {\r\n\t\t\t\tclose = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (close) {\r\n\t\t\ttimer.stop();\r\n\t\t\ttimer = null;\r\n\t\t\tdispose();\r\n\t\t\tSystem.exit(0);\t//terminates timer \r\n\t\t}\r\n\t}", "public static List<String> tabComplete(CommandSender sender, String[] args) {\n\t\tif (!Util.testPermission(sender, \"homeother\") || args.length != 2) return null;\n\t\t\n\t\tList<String> list = createEmptyList();\n\t\tOfflinePlayer offPlayer = SlapHomebrew.getInstance().getServer().getOfflinePlayer(args[0]);\n\t\tif (offPlayer.getPlayer() == null && !offPlayer.hasPlayedBefore()) { //If player doesn't exist\n\t\t\treturn list;\n\t\t}\n\t\t\t\t\n\t\t//Add list and all homes\n\t\tlist.add(\"list\");\n\t\ttry {\n\t\t\tlist.addAll(SlapHomebrew.getInstance().getHomes().getHomes(args[0]));\n\t\t} catch (CommandException e) {}\n\t\t\n\t\t//Filter\n\t\tfilterResults(list, args[1]);\n\t\t\n\t\treturn list; //Return\n\t}", "public void fileChooser() {\n\t\tWindow stage = mediaView.getScene().getWindow();\n// configureFileChooser(fileChooser);\n\t\tfileChooser.setTitle(\"Open Resource File\");\n\t\tfileChooser.getExtensionFilters().addAll(new ExtensionFilter(\"Video Files\", \"*.mp4\", \"*.mpeg\"),\n\t\t\t\tnew ExtensionFilter(\"Audio Files\", \"*.mp3\"),\n\t\t\t\tnew ExtensionFilter(\"All Files\", \"*.*\"));\n\t\tFile selectedFile = fileChooser.showOpenDialog(stage);\n\t\tif (selectedFile != null) {\n\t\t\ttry {\n\t\t\t\tif(arrayList.size() != 0) {\n\t\t\t\t\tmp.stop();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdesktop.open(selectedFile);\n\t\t\t\tdirectory = selectedFile.getAbsolutePath();\n\t\t\t\t\n\t\t\t\tplayMedia(directory);\n\t\t\t\t\n\t\t\t\tarrayList.add(new File(directory));\n//\t\t\t\tSystem.out.println(arrayList.get(i).getName());\n\t\t\t\ti++;\n\t\t\t\t\n\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\t}", "java.util.List<java.lang.String>\n getFileNamesList();", "public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}", "@Override\n\tpublic JTabbedPane initTabs() {\n\t\treturn null;\n\t}" ]
[ "0.64679307", "0.61787695", "0.54659826", "0.54275084", "0.5416942", "0.54071397", "0.5399427", "0.5324411", "0.52874184", "0.52608055", "0.5243238", "0.52370304", "0.5127981", "0.5111621", "0.5090215", "0.5043829", "0.503408", "0.5026874", "0.5021272", "0.50166893", "0.50122815", "0.4980016", "0.4959071", "0.49349296", "0.49275544", "0.491229", "0.49061406", "0.48746124", "0.48598224", "0.48548755", "0.48412347", "0.48376784", "0.48059782", "0.47953138", "0.4794751", "0.47916278", "0.4784659", "0.47842196", "0.47741812", "0.47730634", "0.4771944", "0.47678605", "0.47671264", "0.47560805", "0.4752892", "0.47438276", "0.47337168", "0.47121647", "0.4711488", "0.47109216", "0.47016764", "0.46986213", "0.4681263", "0.4678172", "0.4663462", "0.4639897", "0.46331367", "0.4632248", "0.4628619", "0.46181712", "0.4613711", "0.46120447", "0.45981422", "0.4597485", "0.45710555", "0.45667467", "0.4557417", "0.4550642", "0.4543036", "0.45355326", "0.45322257", "0.45262274", "0.4520928", "0.4504272", "0.45037523", "0.4500471", "0.44948453", "0.44865292", "0.44860172", "0.4485526", "0.4483209", "0.44804475", "0.4476836", "0.44730896", "0.44702643", "0.44694906", "0.4463893", "0.4458565", "0.44564584", "0.44557065", "0.44525775", "0.4447728", "0.44444767", "0.444369", "0.44427362", "0.44423565", "0.44272324", "0.44267255", "0.44197813", "0.44188172" ]
0.7359242
0
Get the file type
private void loadViewModel(String configName, String content){ HeadHandler hHandler = new HeadHandler(); try { hHandler.parse(content); if(hHandler.getFileType() == null){ throw new RuntimeException("Unrecognised file type"); } } catch (Exception e) { // TODO: Add some intelligence to the process of handling this exception JOptionPane.showMessageDialog(this, "Sorry, unrecognised file type. Content starts:" + hHandler.getHead() + "...", "Error", JOptionPane.ERROR_MESSAGE); return; } StandardHandler vHandler = HandlerFactory.getHandler(hHandler.getFileType()); logger.info("Found file of type:" + hHandler.getFileType()); logger.info("vHandler:" + vHandler); try { vHandler.parse(content); } catch (Exception e) { // TODO: Add some intelligence to the process of handling this exception JOptionPane.showMessageDialog(this, "Sorry. Unable to parse the file " + configName, "Error", JOptionPane.ERROR_MESSAGE); } YorkEntityView newView = ViewFactory.getView(hHandler.getFileType(), this, vHandler, null); if(newView != null){ currentView.addModelView(newView); } requestFocusInWindow(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getFiletype() {\n return filetype;\n }", "public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }", "public String getFiletype() {\n return filetype;\n }", "public String getFileType(){\n\t\treturn type;\n\t}", "public String getFileType()\n {\n if (m_fileOptions.m_type == null ||\n m_fileOptions.m_type.length() <= 0)\n {\n return getTypeFromExtension();\n }\n\n return m_fileOptions.m_type;\n }", "public String getFileType() {\n return fileType;\n }", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.');\n if (index >= 0)\n {\n ext = filename.substring(index + 1);\n }\n }\n\n return ext;\n }", "public Integer getFileType() {\n return fileType;\n }", "public FileType getFileType() {\n return fileType;\n }", "public String getType()\n {\n return VFS.FILE_TYPE;\n }", "public TFileType getFileType() {\n\n\t\treturn type;\n\t}", "String getFileMimeType();", "public static String getFileType(){\n\t\t//Get the selected file type\n\t\tString type = (String) fileType.getSelectedItem();\n\t\t//Re-enable the combobox, since download has already started\n\t\tfileType.setEnabled(true);\n\t\t//Reset the default file type\n\t\tfileType.setSelectedIndex(0);\n\t\treturn type;\n\t}", "public String getContentType() {\r\n return mFile.getContentType();\r\n }", "protected FileType doGetType()\n {\n return m_type;\n }", "String getContentType(String fileExtension);", "public String getMimeType ()\n {\n final String METHOD_NAME = \"getMimeType\";\n this.logDebug(METHOD_NAME + \"1/2: Started\");\n\n String mimeType = null;\n try\n {\n\tint contentType = this.document.getContentType();\n\tif ( contentType >= 0 ) mimeType = MediaType.nameFor[contentType];\n }\n catch (Exception exception)\n {\n\tthis.logWarn(METHOD_NAME + \"Failed to retrieve mime type\", exception);\n }\n\n this.logDebug(METHOD_NAME + \" 2/2: Done. mimeType = \" + mimeType);\n return mimeType;\n }", "java.lang.String getMimeType();", "java.lang.String getMimeType();", "public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}", "String getMimeType();", "public String getFileContentType() {\r\n return (String) getAttributeInternal(FILECONTENTTYPE);\r\n }", "public static int fileType(File file) {\n for (String type : imageType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_IMAGE_CODE;\n }\n }\n\n for (String type : videoType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_VIDEO_CODE;\n }\n }\n\n for (String type : audioType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.AUDIO_CODE;\n }\n }\n return Template.Code.FILE_MANAGER_CODE;\n\n }", "public String getMimeType();", "public String getMime_type()\r\n {\r\n return getSemanticObject().getProperty(data_mime_type);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "protected String getContentType()\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n String ext = FilenameUtils.getExtension(fullAttachmentFilename);\n if (ext == null)\n {\n return null;\n }\n if (ext.equalsIgnoreCase(\"pdf\"))\n {\n return \"application/pdf\";\n } else if (ext.equalsIgnoreCase(\"zip\"))\n {\n return \"application/zip\";\n } else if (ext.equalsIgnoreCase(\"jpg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"jpeg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"html\"))\n {\n return \"text/html\";\n\n } else if (ext.equalsIgnoreCase(\"png\"))\n {\n return \"image/png\";\n\n } else if (ext.equalsIgnoreCase(\"gif\"))\n {\n return \"image/gif\";\n\n }\n log.warn(\"Content type not found for file extension: \" + ext);\n return null;\n }", "public edu.umich.icpsr.ddi.FileTypeType getFileType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTypeType target = null;\n target = (edu.umich.icpsr.ddi.FileTypeType)get_store().find_element_user(FILETYPE$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "private int getFileType(SourceFile sourceFile)\n\t{\n\t\tString name = sourceFile.getName();\n\t\tString pkg = sourceFile.getPackageName();\n\n\t\tif (name.startsWith(\"<\") && name.endsWith(\">\") || name.equals(\"GeneratedLocale\")) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\treturn SYNTHETIC_FILE;\n\n for (final String frameworkPkg : FRAMEWORK_FILE_PACKAGES )\n {\n // look for packages starting with pkgName\n if (pkg.startsWith(frameworkPkg + '\\\\') || //$NON-NLS-1$\n pkg.startsWith(frameworkPkg + '/') || //$NON-NLS-1$\n pkg.equals(frameworkPkg)) //$NON-NLS-1$\n {\n return FRAMEWORK_FILE;\n }\n }\n\n if (name.startsWith(\"Actions for\")) //$NON-NLS-1$\n return ACTIONS_FILE;\n\n return AUTHORED_FILE;\n}", "public final String getImageType() {\n String imageType = null;\n\n if (this.url != null) {\n imageType = this.url.substring(this.url.lastIndexOf(\".\") + 1);\n }\n\n return imageType;\n }", "MimeType mediaType();", "public String getMimeType() throws VlException\n {\n return MimeTypes.getDefault().getMimeType(this.getPath());\n }", "public String getFileExtension();", "@NotNull\n String getMimeType();", "private String getFileExtension(String mimeType) {\n mimeType = mimeType.toLowerCase();\n if (mimeType.equals(\"application/msword\")) {\n return \".doc\";\n }\n if (mimeType.equals(\"application/vnd.ms-excel\")) {\n return \".xls\";\n }\n if (mimeType.equals(\"application/pdf\")) {\n return \".pdf\";\n }\n if (mimeType.equals(\"text/plain\")) {\n return \".txt\";\n }\n\n return \"\";\n }", "private String getMimeType(File file) {\n String fileName = file.getName();\n\n if (fileName.endsWith(\"css\")) {\n return \"text/css; charset=utf-8\";\n } else if (fileName.endsWith(\"html\")) {\n return \"text/html; charset=utf-8\";\n } else if (fileName.endsWith(\"jpg\") || fileName.endsWith(\"jpeg\")) {\n return \"image/jpeg\";\n } else if (fileName.endsWith(\"png\")) {\n return \"image/png\";\n } else if (fileName.endsWith(\"ico\")) {\n return \"image/x-icon\";\n }\n\n return \"text/plain; charset=utf-8\";\n }", "public static String getContentType(String filename) {\n return getTika().detect(filename);\n }", "String[] getFileTypes();", "public String fileExtension() {\r\n return getContent().fileExtension();\r\n }", "@Override\n\tpublic String getContentType(File file) {\n\t\treturn null;\n\t}", "public TrimString getFileSystemType() {\n\t\treturn(_type);\n\t}", "ImageType getType();", "public String getFilecontentContentType() {\n return filecontentContentType;\n }", "public String getFileExtension() {\n return toString().toLowerCase();\n }", "public String getType(String fileExtension) {\n // trim leading dot if given\n if (fileExtension.startsWith(\".\")) {\n fileExtension = fileExtension.substring(1);\n }\n return this.typeMap.get(fileExtension);\n }", "public static FileType valueOf(File file){\r\n\t\tString fileName = file.getName().toUpperCase();\r\n\t\treturn FileType.valueOf(fileName.substring(fileName.lastIndexOf(\".\")+1));\r\n\t}", "public java.lang.String getMimeType() {\n return _courseImage.getMimeType();\n }", "public interface FileType {\n\tString name();\n}", "@Override\n\tpublic String getContentType(String filename) {\n\t\treturn null;\n\t}", "String getFileExtension();", "public String getMimeType() {\r\n return mimeType;\r\n }", "public String getReadMimeType(int formatIndex);", "public String getFileSystemType() {\n return this.fileSystemType;\n }", "public static FileTypes getFileType(String fileName) {\n\t\tFile file = new File(fileName);\n\t\tif (file.isDirectory()) {\n\t\t\treturn FileTypes.DIRECTORY;\n\t\t} else {\n\t\t\tif (isJavaSourceFile(fileName)) {\n\t\t\t\treturn FileTypes.JAVA_FILE;\n\t\t\t} else {\n\t\t\t\treturn FileTypes.NON_JAVA_FILE;\n\t\t\t}\n\t\t}\n\t}", "private static TYPE getFileType(final String path, final ServiceContext context) {\n return PROJECT_FILE;\n }", "public String getContentTypeFor(String fileName)\r\n {\r\n String ret_val = null;\r\n\r\n if(fileName.toUpperCase().endsWith(\".PNG\"))\r\n ret_val = \"image/png\";\r\n else if(fileName.toUpperCase().endsWith(\".TIF\"))\r\n ret_val = \"image/tiff\";\r\n else if(fileName.toUpperCase().endsWith(\".TIFF\"))\r\n ret_val = \"image/tiff\";\r\n else if(fileName.toUpperCase().endsWith(\".TGA\"))\r\n ret_val = \"image/targa\";\r\n else if(fileName.toUpperCase().endsWith(\".BMP\"))\r\n ret_val = \"image/bmp\";\r\n else if(fileName.toUpperCase().endsWith(\".PPM\"))\r\n ret_val = \"image/x-portable-pixmap\";\r\n else if(fileName.toUpperCase().endsWith(\".PGM\"))\r\n ret_val = \"image/x-portable-graymap\";\r\n\r\n // handle previous filename maps\r\n if(ret_val == null && prevMap != null)\r\n return prevMap.getContentTypeFor(fileName);\r\n\r\n // return null if unsure.\r\n return ret_val;\r\n }", "public static String getFileType() {return \"json\";}", "public int getEntityType(){\n\t\tIterator<ArrayList<String>> i = headerLines.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tArrayList<String> headerLines = i.next();\n\t\t\tString headerName = headerLines.get(0);\n\t\t\tif (headerName.matches(\"Content-Type:\")){\n\t\t\t\tString headerData = headerLines.get(1);\n\t\t\t\tif(headerData.contains(\"text\")){\n\t\t\t\t\treturn TEXT;\n\t\t\t\t} else if (headerData.contains(\"pdf\")){\n\t\t\t\t\treturn PDF;\n\t\t\t\t} else if (headerData.contains(\"gif\")){\n\t\t\t\t\treturn GIF;\n\t\t\t\t} else if (headerData.contains(\"jpeg\")){\n\t\t\t\t\treturn JPEG;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public String getMIMEType(String format)\n\t{\n\t\treturn engine.getMIMEType(format);\n\t}", "public String getMimeType() {\n return mimeType;\n }", "private static TYPE getFtlWebfileType(final String path) {\n if (path.indexOf('.') > -1) {\n final String ext = path.substring(path.lastIndexOf('.'));\n if (BINARY_EXTENSIONS.contains(ext)) {\n return BINARY_WEBFILE;\n }\n }\n return WEBFILE;\n }", "FileFormat getFormat();", "public static FileType getType(final File file) {\n if (FileUtils.isLink(file)) {\n return SYMLINK;\n } else if (file.isDirectory()) {\n return DIRECTORY;\n } else if (file.isFile()) {\n return FILE;\n }\n return FILE;\n }", "public static String getType() {\n type = getProperty(\"type\");\n if (type == null) type = \"png\";\n return type;\n }", "public String getMimeType() {\n return mimeType;\n }", "public String getMimeType() {\n return mimeType;\n }", "private String fileType(String username,String folderName,String fileName){\n //从数据库中获取用户ID\n int userId=userService.getUserIdByname(username);\n //根据用户ID和文件夹名获取文件夹ID\n int folderId=folderService.getFolderIdByName(folderName,userId);\n //根据文件夹id和文件夹名获取文件实体,再取出type\n String fileType= tableService.getTableByName(fileName,folderId).getType();\n return fileType;\n }", "public String getMimeType() {\n return mimeType;\n }", "public String getMimeType() {\n\t\treturn mimeType;\n\t}", "public String getMimeType() {\n\t\treturn mimeType;\n\t}", "public String getMimeType() {\n\t\treturn mimeType;\n\t}", "public Long getFiletypeForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;", "public void testGetType_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getType();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}", "public abstract String getFileExtension();", "private String getMimeType(String aFilename) {\n String extension = aFilename.substring(aFilename.length() - 3, aFilename.length()).toUpperCase();\n\n if (extension.equals(\"AMR\")) {\n return \"audio/AMR\";\n }\n //DuongNT add\n if (extension.equals(\"WAV\")) {\n return \"audio/X-WAV\";\n } else {\n return \"audio/midi\";\n }\n }", "public MimeType mimetype() {\r\n return getContent().mimetype();\r\n }", "public String getMimeType() {\r\n\t\treturn this.mimeType;\r\n\t}", "@Override\r\n public String getCustomContentType() {\r\n return DirectUtils.getFileMIMEType(new File(this.imagePath));\r\n }", "public void setFileType(FileType typ) {\n fileType = typ;\n }", "public abstract String getFileFormatName();", "private FileType getFileType(String name) {\n\t\tif(name==null)\n\t\t\treturn null;\n\t\tfor(FileType fileType: fileTypes){\n\t\t\tif(name.startsWith(fileType.getFileNamePrefix())){\n\t\t\t\treturn fileType;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getMimeType() {\n return this.mimeType;\n }", "protected abstract String getFileExtension();", "public int getFileShapeType() {\n return fileShapeType;\n }", "public void setFileType(String fileType) {\r\n\t\tthis.fileType = fileType;\r\n\t}", "@ApiModelProperty(required = true, value = \"The file type of the file.\")\n public String getFormat() {\n return format;\n }", "private String getMimeType(String path) {\n String extension = absoluteFileChosen.substring(absoluteFileChosen.lastIndexOf(\".\") + 1);\n return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);\n }", "public String logFileType() {\n return this.logFileType;\n }", "public String getWriteMimeType(int formatIndex);", "@Test\n public void testGetFileType() {\n System.out.println(\"getFileType\");\n String file = \"adriano.pdb\";\n String expResult = \"pdb\";\n String result = Util.getFileType(file);\n assertEquals(expResult, result);\n }", "public static String getMimeTypeForFile(String uri) {\n\t\tint dot = uri.lastIndexOf('.');\n\t\tString mime = null;\n\t\tif (dot >= 0) {\n\t\t\tmime = mimeTypes().get(uri.substring(dot + 1).toLowerCase());\n\t\t}\n\t\treturn mime == null ? \"application/octet-stream\" : mime;\n\t}", "public String getMimeType() {\n return null;\n }", "public String getMimeType() {\n return null;\n }", "public java.lang.String getMimeType() {\n java.lang.Object ref = mimeType_;\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 mimeType_ = s;\n }\n return s;\n }\n }", "@Override\n protected FileType doGetType() throws Exception {\n if (isRoot()) {\n return FileType.FOLDER;\n }\n\n final MantaObject response = this.lastResponse;\n if (response == null) {\n return FileType.IMAGINARY;\n } else if (response.isDirectory()) {\n return FileType.FOLDER;\n } else {\n return FileType.FILE;\n }\n }", "public java.lang.String getMimeType() {\n java.lang.Object ref = mimeType_;\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 mimeType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private String detectMimeType(XDIMEContextInternal context,String path){\n int lastDot = path.lastIndexOf('.');\n String resultMimeType = null;\n\n if (lastDot != -1) {\n MarinerPageContext pageContext = getPageContext(context);\n EnvironmentContext envContext = pageContext.getEnvironmentContext();\n resultMimeType = envContext.getMimeType(path);\n }\n return resultMimeType;\n }", "com.google.protobuf.ByteString getMimeTypeBytes();", "private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}", "public String getFileExtension() {\r\n\t\treturn this.fileExtension;\r\n\t}", "public static String getFileType(String fileName) {\n String[] fileNames = fileName.split(\"\\\\.\");\n\n if (\"cs\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CSHARP;\n } else if (\"java\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_JAVA;\n } else if (\"cpp\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else if (\"h\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else if (\"hpp\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else if (\"cc\".equals(fileNames[fileNames.length - 1])) {\n return LanguageManager.LANGUAGE_CPLUS;\n } else {\n return null;\n }\n }" ]
[ "0.83726114", "0.8304197", "0.82257515", "0.8216286", "0.8199331", "0.8132295", "0.79388016", "0.7885738", "0.77858573", "0.7774397", "0.77580357", "0.77298725", "0.76406366", "0.7500043", "0.74545544", "0.7295442", "0.7249978", "0.7169939", "0.7169939", "0.71461093", "0.7140758", "0.70164514", "0.7005437", "0.69969964", "0.6949077", "0.6944833", "0.69434536", "0.6939117", "0.6879602", "0.6832495", "0.68322223", "0.6807089", "0.6766697", "0.67491835", "0.6747519", "0.67469215", "0.67034423", "0.6701865", "0.66975087", "0.66903496", "0.668909", "0.6687596", "0.6679273", "0.66766495", "0.66551936", "0.6632979", "0.66159475", "0.661144", "0.6598836", "0.6586795", "0.65642524", "0.65628713", "0.6561669", "0.6547072", "0.6525025", "0.6522405", "0.65089965", "0.6492469", "0.64915097", "0.64910483", "0.6490755", "0.6480589", "0.6475259", "0.6474992", "0.647113", "0.647113", "0.6462985", "0.6461712", "0.64600945", "0.64600945", "0.64600945", "0.6436114", "0.64248645", "0.64237785", "0.64105815", "0.6389967", "0.63863295", "0.6377205", "0.6366918", "0.6348335", "0.63438076", "0.63344806", "0.6321125", "0.6307544", "0.63014424", "0.6299633", "0.6284138", "0.6267426", "0.62656677", "0.6260428", "0.6252218", "0.6232842", "0.6232842", "0.6176588", "0.6165129", "0.6162351", "0.61456496", "0.61332834", "0.61323833", "0.61297935", "0.6126414" ]
0.0
-1
By default the dynamic model has the same name as the tab
private void createNewDynamicModel(){ DynamicModel dModel = new DynamicModel(currentView.getViewModel().getName()); // Add the new graph to the view int modelWidth = DynamicModelView.minimumWidth; int modelHeight = DynamicModelView.minimumHeight; int viewHeight = currentView.getHeight(); int pad = 8; currentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, viewHeight - (modelHeight + pad), modelWidth, modelHeight, EntityViewConfig.Type.DYNAMIC_MODEL), dModel, this, currentView)); currentView.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getObjectName()\n\t{\n\t\treturn (\"Ext.TabPanelItem\") ;\n\t}", "@Override\n\tpublic String getModel() {\n\t\treturn \"cool model\";\n\t}", "@Override\r\n\tpublic String getModel() {\n\t\treturn \"Activa\";\r\n\t}", "public String getModelName() {\n return \"game\";\n }", "public String getModel();", "@Override\n\tpublic String getModel() {\n\t\treturn model;\n\t}", "@Override\r\n public String getModel() {\n return null;\r\n }", "public String getModelName()\r\n {\r\n return modelName;\r\n }", "public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}", "public Object getModel();", "public void setTabName(String value) {\n this.tabName = value;\n }", "@Override\r\n public void setModel(String model) {\n }", "@Override\n protected void initModel() {\n bannerModel = new BannerModel();\n// homeSousuoModel = new Home\n\n// bannerModel = new BannerModel();\n// homeSousuoModel = new HomeSousuoModel();\n// izxListModelBack = new\n }", "java.lang.String getModel();", "public interface M00 extends TabModel {\n}", "public void setModel(String model)\n {\n this.model = model;\n }", "private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\n\t}", "@Override\r\n\tpublic void setModel() {\n\t}", "public void setModel(String model) {\r\n this.model = model;\r\n }", "public WizardModel(){ \n wp = new HashMap<Object,WizardPanelDescriptor>();\n step = 1;\n }", "private void initTab()\n {\n \n }", "public abstract String getTab();", "public String getName()\n {\n return _model.getName();\n }", "public void setModel(String model) {\n this.model = model;\n }", "Tab getTab();", "ModelData getModel();", "Model getModel();", "Model getModel();", "Model getModel();", "@Override\r\n public String getTabTitle()\r\n {\r\n return \"Allgemeine Einstellungen\";\r\n }", "@Override\n\t\tpublic int getModel() {\n\t\t\treturn 0;\n\t\t}", "@Override\r\n\tpublic Object getModel() {\n\t\treturn null;\r\n\t}", "public String getName()\n\t{\n\t\treturn _model.getName();\n\t}", "public TabComboBoxModel(JTabbedPane jtp) {\n this.jtp = jtp;\n }", "@Override\n\tpublic void setModel(String model) {\n\t\tthis.model = model;\n\t}", "public String getModel()\n {\n return model;\n }", "@Override\n\tpublic String getModel() {\n\t\treturn \"medium model\";\n\t}", "String getModelA();", "ModelSlot getModelSlot();", "public String getModel() {\r\n return model;\r\n }", "@Override\n\t\tpublic void setModel(int model) {\n\t\t\t\n\t\t}", "@Override\n\tpublic Object getModel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object getModel() {\n\t\treturn null;\n\t}", "public void setModel(String modelName)\n\t{\n\t\tmyModel = modelName;\n\t}", "public String getTabName() {\n return this.tabName;\n }", "@Override\r\n\tpublic int getModelId() {\n\t\treturn 0;\r\n\t}", "public String getModelName() {\n\t\treturn modelName;\n\t}", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "public void setModelName(String modelName) {\n\t\tthis.modelName = modelName;\n\t}", "public void leseViewAusModel() {\r\n Model model = Model.getInstanz();\r\n\r\n ATab aktuellerTab = model.getRoot();\r\n\r\n while (aktuellerTab.getNext() != null) {\r\n ArrayList<ATab> next = aktuellerTab.getNext();\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n if (next.get(j) instanceof Inhalt) {\r\n\r\n Inhalt tmpNext = (Inhalt) next.get(j);\r\n\r\n setInhalt(tmpNext.getName(), tmpNext.getInhalt());\r\n }\r\n }\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n\r\n if (next.get(j) instanceof Tab || next.get(j) instanceof Inhalt) {\r\n aktuellerTab = next.get(j);\r\n }\r\n }\r\n }\r\n }", "public String getInputName(){\n \treturn model.getName();\n }", "public String getModel() {\n return model;\n }", "public String getModel() {\n return model;\n }", "public String getModel() {\n return this.model;\r\n }", "private String getModelName(Class<?> beanType)\r\n\t{\r\n\t\tModel model = beanType.getAnnotation(Model.class);\r\n\t\t\r\n\t\t//if model annotation is not found\r\n\t\tif(model == null)\r\n\t\t{\r\n\t\t\tthrow new InvalidStateException(\"Trying to load bean type {} as model, but class is not annotated with @Model\", beanType.getName());\r\n\t\t}\r\n\t\t\r\n\t\tString modelName = StringUtils.isBlank(model.name()) ? beanType.getSimpleName() : model.name();\r\n\t\treturn modelName;\r\n\t}", "public String getModel()\n\t{\n\t\treturn null;\n\t}", "public Model getModel(){\r\n return model;\r\n }", "public void initTab(ArrayList<CircuitUsageModel> modelList) {\n\t\ttabHost = getTabHost();\n\t\tResources res = getResources();\n\n\t\t// energy\n\t\tenergySpec = tabHost.newTabSpec(\"energy\");\n\t\tenergySpec.setIndicator(getString(R.string.energy),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_energy));\n\t\t// power\n\t\tpowerSpec = tabHost.newTabSpec(\"power\");\n\t\tpowerSpec.setIndicator(getString(R.string.power),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_power));\n\t\t// credit\n\t\tcreditSpec = tabHost.newTabSpec(\"credit\");\n\t\tcreditSpec.setIndicator(getString(R.string.credit),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_credit));\n\n\t\t// set tab content\n\t\tsetTabContent(modelList);\n\t\t\n\t\t// auto refresh\n\t\tautoRefresh();\n\t}", "private static String[] getModelNames() {\n\t\treturn getConfiguration().getString(MODELS).split(\"\\\\|\");\n\t}", "@Override\n public void newPanelModel() {\n\n }", "@Override\n public void newPanelModel() {\n\n }", "public String getModel()\n\t{\n\t\treturn model;\n\t}", "public void switchModel()\n {\n \tactiveModel++;\n \tif (activeModel > 1)\n \t{\n \t\tactiveModel = 0;\n \t}\n }", "public void setModel(String model) {\r\n if (model != null) {\r\n store.put(Names.model, model);\r\n } else {\r\n \tstore.remove(Names.model);\r\n }\r\n }", "public String getTab()\n\t{\n\t\treturn tab;\n\t}", "public abstract M getModel();", "@Override\r\n public void addModel(String name, Object value) {\n if (value == null) return;\r\n super.addModel(name, value);\r\n }", "public String getModel() {\n\t\treturn model; \n\t}", "public Object getModel() {\n\t\treturn null;\n\t}", "public void selectModelItem(final String type, final String name){\n\t\tactivate();\n\t\tDisplay.syncExec(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n DefaultCTabItem tabItem = new DefaultCTabItem(1);\n\t\t\t\ttabItem.activate();\n\t\t\t\tGraphicalViewer viewer = ((IEditorPart) tabItem.getSWTWidget().getData()).getAdapter(GraphicalViewer.class);\n\t\t\t\tviewer.select(ViewerHandler.getInstance().getEditParts(viewer, new ModelEditorItemMatcher(type, name)).get(0));\n\t\t\t}\n\t\t});\n\t}", "public String getModel() {\r\n return (String) store.get(Names.model);\r\n }", "@RequestMapping(\"/addjob\")\n public String addJob(Model model)\n {\n model.addAttribute(\"aJob\",new Job());\n return \"addjob\";\n }", "@Override\n public String getModel() {\n return aircraftId.getModel();\n }", "public void crearModelo() {\r\n\t\tmodelo = new DefaultComboBoxModel<>();\r\n\t\tmodelo.addElement(\"Rojo\");\r\n\t\tmodelo.addElement(\"Verde\");\r\n\t\tmodelo.addElement(\"Azul\");\r\n\t\tmodelo.addElement(\"Morado\");\r\n\t}", "public Model getModel () { return _model; }", "public void tabChange() {\r\n\t}", "public String editRequiredElements(){\r\n \tthis.getLog().info(\"+ nextView: editM_Tabpage\");\r\n \treturn \"editM_Tabpage\";\r\n }", "private void cargarModelo() {\n dlmLibros = new DefaultListModel<>();\n listaLibros.setModel(dlmLibros);\n }", "public void applyTab();", "@RequestMapping(\"/cabaretier/toevoegen\")\n public String showNewProductPage(Model model) {\n Cabaretier cabaretier = new Cabaretier();\n model.addAttribute(\"cabaretier\", cabaretier);\n\n return \"CabaretierToevoegen\";\n }", "public String getItemModelName() {\n\t\treturn itemModelName;\n\t}", "void populateProductLineTabs() {\n ArrayList<ItemType> typeNames = new ArrayList<ItemType>();\n\n for (ItemType typeValue : ItemType.values()) {\n typeNames.add(typeValue);\n }\n System.out.println(\"type array size = \" + typeNames.size());\n\n for (int i = 0; i < typeNames.size(); i++) {\n choiceType.getItems().add(i, typeNames.get(i));\n }\n choiceType.getSelectionModel().selectFirst();\n }", "public static void setActiveTab(Tab tab) {\n\n try {\n controller.tabPane.getTabs().add(controller.appointmentTab);\n controller.tabPane.getTabs().add(controller.bookingTab);\n controller.tabPane.getTabs().add(controller.customerTab);\n controller.tabPane.getTabs().add(controller.employeeTab);\n controller.tabPane.getTabs().add(controller.malfunctionTab);\n controller.tabPane.getTabs().add(controller.statisticTab);\n controller.tabPane.getTabs().add(controller.vehicleTab);\n\n SingleSelectionModel<Tab> selectionModel = controller.tabPane.getSelectionModel();\n\n selectionModel.select(tab);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}", "public ZbiorNaTablicyDynamicznej()\n {\n super();\n }", "public TabRelationshipDef(EditorMainApp editorMainApp, DefinitionNode definitionNode) {\n initComponents();\n mEditorMainApp = editorMainApp;\n mDefinitionNode = definitionNode;\n mDefinition = definitionNode.getDefinition();\n mOldDefName = mDefinition.getName();\n jTextName.setText(mDefinition.getName());\n // Get plugin list\n //mOldPlugin = mDefinition.getPlugin();\n ArrayList <String> alPlugins = mEditorMainApp.getPluginList(mDefinition.getSourceDomain(), Definition.TYPE_RELATIONSHIP);\n for (int i=0; alPlugins != null && i < alPlugins.size(); i++) {\n this.jComboBoxPlugin.insertItemAt(alPlugins.get(i), i);\n \n }\n if (mDefinition.getPlugin() != null) {\n if (!alPlugins.contains(mDefinition.getPlugin())) {\n this.jComboBoxPlugin.insertItemAt(mDefinition.getPlugin(), 0);\n this.jComboBoxPlugin.setSelectedIndex(0);\n } else {\n this.jComboBoxPlugin.setSelectedItem(mDefinition.getPlugin());\n }\n } else {\n this.jComboBoxPlugin.setSelectedIndex(0);\n mDefinition.setPlugin((String) jComboBoxPlugin.getSelectedItem());\n }\n \n this.jTextDomain1.setText(mDefinition.getSourceDomain());\n this.jTextDomain2.setText(mDefinition.getTargetDomain());\n String direction = mDefinition.getDirection();\n \n jComboBoxDirection.setModel(new javax.swing.DefaultComboBoxModel(new ImageIcon[] { RIGHTDIRECTIONICON, LEFTDIRECTIONICON, BIDIRECTIONICON }));\n jComboBoxDirection.setPreferredSize(new java.awt.Dimension(55, 22));\n jComboBoxDirection.setVerifyInputWhenFocusTarget(false);\n if (direction == null) {\n this.jComboBoxDirection.setSelectedIndex(0);\n } else if (direction.equals(\"2\")) {\n this.jComboBoxDirection.setSelectedIndex(2);\n } else {\n this.jComboBoxDirection.setSelectedIndex(0);\n }\n String description = mDefinition.getDescription();\n if (description != null) {\n this.jTextAreaDescription.setText(description);\n }\n ArrayList <PredefinedAttributeRow> rowsPredefinedAttribute = new ArrayList();\n TableModelPredefinedAttribute modelPredefinedAttribute = new TableModelPredefinedAttribute(rowsPredefinedAttribute);\n this.jTablePredefinedAttr.setModel(modelPredefinedAttribute);\n \n ArrayList <ExtendedAttributeRow> rowsExtendedAttribute = new ArrayList();\n TableModelExtendedAttribute modelExtendedAttribute = new TableModelExtendedAttribute(rowsExtendedAttribute);\n this.jTableExtendedAttr.setModel(modelExtendedAttribute);\n // Predefined attributes\n modelPredefinedAttribute.rows.clear();\n ArrayList <Attribute> al = mDefinition.getPredefinedAttributes();\n for (int j=0; al != null && j < al.size(); j++) {\n Attribute attr = (Attribute) al.get(j);\n PredefinedAttributeRow row = new PredefinedAttributeRow(attr.getName(), attr.getIncluded(), attr.getRequired());\n modelPredefinedAttribute.addRow(j, row);\n }\n // Extended attributes\n modelExtendedAttribute.rows.clear();\n al = mDefinition.getExtendedAttributes();\n for (int j=0; al != null && j < al.size(); j++) {\n Attribute attr = (Attribute) al.get(j);\n ExtendedAttributeRow row = new ExtendedAttributeRow(attr.getName(), attr.getDataType(), \n attr.getDefaultValue(), attr.getSearchable(), attr.getRequired());\n modelExtendedAttribute.addRow(j, row);\n }\n \n // Listeners\n jTextName.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n mEditorMainApp.enableSaveAction(true);\n }\n });\n \n jTextName.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n String newName = jTextName.getText();\n if (newName == null || newName.length() == 0) {\n Toolkit.getDefaultToolkit().beep();\n\n NotifyDescriptor desc = new NotifyDescriptor.Message(NbBundle.getMessage(TabRelationshipDef.class, \"MSG_Name_Cannot_Be_Empty\"));\n desc.setMessageType(NotifyDescriptor.ERROR_MESSAGE);\n desc.setTitle(NbBundle.getMessage(TabHierarchyDef.class, \"MSG_Error\"));\n DialogDisplayer.getDefault().notify(desc);\n jTextName.setText(mOldDefName);\n } else if (!newName.equals(mOldDefName)) {\n mDefinition.setName(newName);\n mEditorMainApp.getEditorMainPanel().getTabOverview().updateDefinitionName(mOldDefName, mDefinition);\n mEditorMainApp.getEditorMainPanel().updatePropertiesScrollPaneTitle(newName);\n mDefinitionNode.updateDefinitionName(newName);\n mOldDefName = jTextName.getText();\n }\n }\n });\n \n this.jTextAreaDescription.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n mEditorMainApp.enableSaveAction(true);\n mDefinition.setDescription(jTextAreaDescription.getText());\n }\n });\n \n this.jComboBoxPlugin.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n mEditorMainApp.enableSaveAction(true);\n String plugin = (String) jComboBoxPlugin.getSelectedItem(); \n mDefinition.setPlugin(plugin);\n //mEditorMainApp.getEditorMainPanel().getTabOverview().updatePlugin(mOldPlugin, mDefinition);\n //mOldPlugin = plugin;\n }\n });\n \n jComboBoxDirection.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n mEditorMainApp.enableSaveAction(true);\n //update TabOverView\n String direction = (getDirectionCode() == 2) ? Definition.BIDIRECTIONAL : Definition.ONEDIRECTION;\n mDefinition.setDirection(direction);\n mDefinition.setSourceDomain(getSourceDomain());\n mDefinition.setTargetDomain(getTargetDomain());\n mEditorMainApp.getEditorMainPanel().getTabOverview().updateDomainNames(mDefinition);\n }\n });\n \n jTablePredefinedAttr.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n if (evt.getClickCount() == 2) {\n onEditPredefinedAttribute(null);\n } else {\n onPredefinedAttributesSelected();\n }\n }\n });\n \n jTableExtendedAttr.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n if (evt.getClickCount() == 2) {\n onEditExtendedAttribute(null);\n } else {\n onExtendedAttributesSelected();\n }\n }\n });\n\n }", "M getModel();", "@Override\r\n\tpublic void setModel() {\n\t\tnew UpUI(context).execute();\r\n\t}", "public Tab getDataTab(){\n return taDataTab;\n }", "protected final String getModelName() {\n return device.getModelName();\n }", "@Override\r\n//\tpublic Application getModel() {\r\n//\n//\t\treturn application;\r\n//\t}\r\n\t\r\n\tpublic Application getModel() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn application;\r\n\t}", "protected E getModel ()\n\t{\n\t\treturn model;\n\t}", "public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "A getModel();", "public void revise()\n {\n super.revise();\n\n String nm = model.get(\"name\", \"Init\");\n String newnm = revisePatchName(nm);\n if (!nm.equals(newnm))\n model.set(\"name\", newnm);\n }", "protected abstract void setClueModels();", "public String getTabTitle();", "@Override\r\n\tpublic FqAccidenthistory getModel() {\n\t\treturn fqbean;\r\n\t}", "String getModelB();" ]
[ "0.6128617", "0.6061888", "0.59813255", "0.5924356", "0.58437157", "0.5806194", "0.58007836", "0.5798457", "0.57769394", "0.5766783", "0.57585907", "0.5756658", "0.5733319", "0.57215434", "0.5649282", "0.56479156", "0.56376666", "0.56342405", "0.5630151", "0.560428", "0.55951655", "0.55850255", "0.5581234", "0.55754", "0.5554796", "0.5534998", "0.5495773", "0.5495773", "0.5495773", "0.5485559", "0.5481377", "0.54772633", "0.54682595", "0.54578537", "0.54521054", "0.54353505", "0.54349154", "0.54162985", "0.5413909", "0.5412971", "0.54101396", "0.54093885", "0.54093885", "0.5405203", "0.5403125", "0.53865254", "0.5385098", "0.5384302", "0.53722525", "0.53557956", "0.5331322", "0.53272414", "0.53272414", "0.5319709", "0.53124326", "0.5311479", "0.531115", "0.5306109", "0.5299666", "0.5297198", "0.5297198", "0.5279103", "0.5268899", "0.5263439", "0.52626646", "0.52550733", "0.52229136", "0.5218719", "0.5218502", "0.52149284", "0.5209997", "0.5198929", "0.5193173", "0.5189733", "0.5189044", "0.51875675", "0.51712775", "0.51706475", "0.5168949", "0.5156496", "0.51524645", "0.5122696", "0.51165897", "0.51030093", "0.50980246", "0.5096859", "0.5092475", "0.50887555", "0.50810987", "0.5069715", "0.50675565", "0.50624293", "0.5057638", "0.50557214", "0.505423", "0.50436914", "0.5043273", "0.5040416", "0.50339615", "0.50326645" ]
0.5705546
14
Exports the table results to a file.
public void exportResultsToFile(){ // This if clause shouldn't fire as the icon is grayed out if there is no tab open if(currentView == null || currentView.getDynamicModelView() == null || currentView.getDynamicModelView().getModel() == null){ JOptionPane.showMessageDialog(this, "A tab must be open, and a model and table must be present before results can be exported", "Information", JOptionPane.INFORMATION_MESSAGE); return; } if(currentView.getDynamicModelView().getModel().getDefaultHistory() == null){ JOptionPane.showMessageDialog(this, "A table must be present before results can be exported", "Information", JOptionPane.INFORMATION_MESSAGE); return; } DynamicModelHistory history = currentView.getDynamicModelView().getModel().getDefaultHistory(); StringBuffer buffer = new StringBuffer(30000); if(history != null && history.getTimePointCount() > 0 && history.getSnapshot(0) != null){ // Get the filename YorkGUIUtils guiUtils = new YorkGUIUtils(); String selectedFile = guiUtils.getUserToDefineFilename(this, propertiesMemento.getBaseDir(), "txt csv", "Results files (.txt, .csv)", JFileChooser.SAVE_DIALOG); if(selectedFile == null || guiUtils.wasCancelled()){ requestFocusInWindow(); return; } logger.info("Selected file for exporting results:" + selectedFile); buffer.append("time point").append("\t"); for(int t = 0; t < history.getTimePointCount(); t++){ buffer.append(t).append("\t"); } buffer.append("\n"); for(Iterator<String> it = history.getSnapshot(0).keySet().iterator(); it.hasNext();){ String name = it.next(); buffer.append(name).append("\t"); // For all time points for(int t = 0; t < history.getTimePointCount(); t++){ buffer.append(history.getSnapshot(t).get(name).getOutputValue()).append("\t"); } buffer.append("\n"); } FileLoader.save(selectedFile, buffer.toString()); } else{ JOptionPane.showMessageDialog(this, "No results available in the selected tab. Run the model first.", "Warning", JOptionPane.WARNING_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void exportToCSV();", "void exporter(JTable tab, File file) {\n try {\r\n\r\n TableModel model = tab.getModel();\r\n FileWriter out = new FileWriter(file);\r\n for (int i = 0; i < model.getColumnCount(); i++) {\r\n out.write(model.getColumnName(i) + \"\\t\");\r\n }\r\n out.write(\"\\n\");\r\n\r\n for (int i = 0; i < model.getRowCount(); i++) {\r\n for (int j = 0; j < model.getColumnCount(); j++) {\r\n out.write(model.getValueAt(i, j).toString() + \"\\t\");\r\n }\r\n out.write(\"\\n\");\r\n }\r\n\r\n out.close();\r\n } catch (Exception err) {\r\n err.printStackTrace();\r\n }\r\n }", "private void outputToFile() {\n\t\tPath filePath = Paths.get(outputFile);\n\n\t\ttry (BufferedWriter writer = Files.newBufferedWriter(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tRowIterator iterator = currentGen.iterateRows();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tElemIterator elem = iterator.next();\n\t\t\t\twhile (elem.hasNext()) {\n\t\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\t\twriter.write(mElem.rowIndex() + \",\" + mElem.columnIndex());\n\t\t\t\t\twriter.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to write to the provided file\");\n\t\t}\n\n\t}", "public void export(final String filepath) throws IOException {\n File outputFile = new File(filepath);\n outputFile.delete();\n outputFile = null;\n\n FileOutputStream fout = null;\n\n try {\n fout = new FileOutputStream(filepath);\n\n for(int i = 0; i < rows; ++i) {\n for(int j = 0; j < cols; ++j) {\n\n //Handle null tableArray[][] values\n if(tableArray[i][j] == null) {\n String formatError = \"ERROR: tableArray[%d][%d] is null\\n\";\n System.out.println(String.format(formatError, i, j));\n fout.close();\n return;\n }\n\n if(j != cols -1)\n fout.write((tableArray[i][j] + DELIMITER).getBytes());\n else\n fout.write(tableArray[i][j].getBytes());\n\n }\n if(i != rows - 1)\n fout.write(\"\\n\".getBytes());\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n finally {\n if(fout != null)\n fout.close();\n }\n }", "private void outputfile() {\n\n ConnectDB dbconnect = new ConnectDB();\n\n try {\n PrintWriter writer = new PrintWriter(\"memberoutput.txt\");\n\n try {\n dbconnect.pst = dbconnect.con.prepareStatement(\"select * from members\");\n dbconnect.rs = dbconnect.pst.executeQuery();\n\n while (dbconnect.rs.next()) {\n writer.println(dbconnect.rs.getString(1) + \",\"\n + dbconnect.rs.getString(2) + \",\"\n + dbconnect.rs.getString(3) + \",\"\n + dbconnect.rs.getString(4) + \",\"\n + dbconnect.rs.getString(5) + \",\"\n + dbconnect.rs.getString(6) + \",\"\n + dbconnect.rs.getString(7) + \",\"\n + dbconnect.rs.getString(8) + \",\"\n + dbconnect.rs.getString(9));\n }\n\n writer.flush();\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n }\n writer.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n JOptionPane.showMessageDialog(null, \"File exported\");\n }", "@Override\n public void exportToFile(SpreadsheetTable focusOwner) {\n try {\n File dire = new File(dir);\n File file = new File(dire, filename);\n\n FileWriter writer = new FileWriter(file, false);\n int start = 0;\n if (this.header) {\n start++;\n }\n\n this.selectedCells = focusOwner.getSelectedCells();\n\n for (int i = start; i < selectedCells.length; i++) {\n for (int j = 0; j < selectedCells[i].length; j++) {\n if (j != 0) {\n writer.append(delimiter);\n }\n writer.append(selectedCells[i][j].getContent());\n }\n writer.append('\\r');\n writer.append('\\n');\n }\n writer.flush();\n writer.close();\n } catch (IOException e) {\n System.out.println(\"Error exporting file!\");\n }\n }", "@Override\n\tpublic void exportToCSV() {\n\n\t}", "void export(DataExportOptions options, Pageable pageable, OutputStream outputStream);", "DataFrameExport export();", "@Override\n public void csvExport(String filename) {\n PrintWriter out = null;\n try {\n out = new PrintWriter(filename);\n\n for (Student key : map.keySet()) {\n out.println(key.getFirst() + \", \" + key.getLast() + \", \" + key.getID() + \", \" + map.get(key).getLetter());\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"File was not found\");\n } finally {\n out.close();\n }\n }", "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"recaudado-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "public void writeEvaluateResultCSV(String resultFilePath) {\n writeCSV(resultFilePath, evaluates());\n System.out.println(\"write evaluate result finished:\" + resultFilePath);\n\n }", "void exportToAJP(JTable tableToExport, String tabName, String pathToExportTo) throws IOException \n {\n BufferedWriter out;//defines a writer\n TableModel model = tableToExport.getModel();\n \n CodeSource codeSource = ExportToAJP.class.getProtectionDomain().getCodeSource();\n File jarFile = new File(URLDecoder.decode(codeSource.getLocation().getPath(), \"UTF-8\"));\n pathToExportTo = jarFile.getParentFile().getPath();\n //creates new save in the install dir/saves folder\n out = new BufferedWriter(new FileWriter(pathToExportTo+\"\\\\saves\\\\\"+tabName+\".ajp\"));\n \n try \n { //writes the tabled headers to the .ajp\n for(int i=0; i < model.getColumnCount(); i++) {\n if (i!=model.getColumnCount()-1)\n out.write(model.getColumnName(i) + \",\");\n else\n out.write(model.getColumnName(i));\n }\n out.write(\"\\n\");//new line\n //cycles each cell after the headers and writes to the csv file\n for(int i=0; i< model.getRowCount(); i++) {\n for(int j=0; j < model.getColumnCount(); j++) {\n if (model.getValueAt(i,j)!= null)//checks for empty cell\n {\n if (j!=model.getColumnCount()-1)\n out.write(model.getValueAt(i,j).toString()+\",\");\n else\n out.write(model.getValueAt(i,j).toString());\n }\n else if (j!=model.getColumnCount()-1)\n out.write(\",\");\n }\n out.write(\"\\n\");\n }\n } catch (IOException e) {}\n finally //checks if the writter worked\n {\n try {\n if(out != null){\n out.close();//closes file for deletion and other manipulation\n } else {\n System.out.println(\"Buffer has not been initialized!\");\n }\n } catch (IOException e) {}\n }\n }", "@Then(\"^the results should be displayed and saved in csv file$\")\n\tpublic void the_results_should_be_displayed_and_saved_in_csv_file() throws Throwable {\n\t\thomepage.waitForPageToLoad(homepage.getTitle());\n\t\thomepage.waitForVisibility(homepage.searchResults);\n\t\tList<WebElement> allSearchResults = homepage.findElements(homepage.searchResults);\n\n\t\ttry{\n\n\t\t\tfile = new File(csvFilePath);\n\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\tpw = new PrintWriter(new File(csvFilePath));\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\n\t\t\t//for header\n\t\t\tsb.append(\"Title\");\n\t\t\tsb.append(\" , \");\n\t\t\tsb.append(\"Link\");\n\t\t\tsb.append('\\n');\n\n\t\t\t// writing the required data to CSV file\n\t\t\tfor (WebElement result : allSearchResults){\n\n\t\t\t\tsb.append(result.getText());\n\t\t\t\tsb.append(\" , \");\n\t\t\t\tsb.append(result.getAttribute(\"href\"));\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\n\t\t\tpw.write(sb.toString());\n\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error while writing to csv file !!!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.flush();\n\t\t\t\tpw.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t\tSystem.out.println(\"Error while flushing/closing fileWriter !!!\");\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void writeToCSV() {\n final String CSV_SEPARATOR = \",\";\n final String QUOTE = \"\\\"\";\n if (!Crawler.getKeyWordsHits().isEmpty()) {\n try (BufferedWriter bufferedWriter =\n new BufferedWriter(\n new OutputStreamWriter(\n new FileOutputStream(\"results.csv\", true), StandardCharsets.UTF_8))) {\n\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> {\n String oneLine = QUOTE + keyWord + QUOTE +\n CSV_SEPARATOR +\n hitsNumber;\n try {\n bufferedWriter.write(oneLine);\n bufferedWriter.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n String lastLine = QUOTE + Crawler.getUrl() + QUOTE + CSV_SEPARATOR + Crawler.getTotalHits();\n bufferedWriter.write(lastLine);\n bufferedWriter.newLine();\n bufferedWriter.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n Crawler.setKeyWordsHits(new HashMap<>());\n Crawler.setTotalHits(0);\n }", "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"client-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "public void saveResult() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(resultFile));\n\t\t\tout.println(record.resultToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void write(String outputFolder, String name) throws IOException {\n for (Gender gender : this.keySet1()) {\n for (EventScoringTable scoreTable : this.get(gender).values()) {\n File outFile = new File(String.format(\"%s/Table %s - %s - %s.csv\",\n outputFolder,\n name,\n gender,\n scoreTable.getEvent().getIaafName()\n ));\n if (outFile.getParentFile().mkdirs()) {\n System.out.println(\"Created directory: \" + outFile.getParent());\n }\n\n FileWriter fileWriter = new FileWriter(outFile);\n fileWriter.write(String.format(\"%s,%s%n\", \"performance\", \"points\"));\n\n for (Entry<Double, Integer> score : scoreTable.getPerformancePoints().entrySet()) {\n fileWriter.write(String.format(Locale.ENGLISH,\n \"%.2f,%d%n\",\n score.getKey(),\n score.getValue()\n ));\n }\n fileWriter.close();\n }\n }\n System.out.println(\"Written conversion tables to: \" + outputFolder);\n }", "public void writeTableResults(\n GenericService genericService,\n TableResult tableResult,\n String nonce\n ) throws IOException {\n // Get the current method name\n String methodName = new Throwable().getStackTrace()[0].getMethodName();\n\n // To time how long function takes to run\n Stopwatch stopwatch = Stopwatch.createStarted();\n\n OrcFileWriter.writeTableResults(\n genericService.getOutputPath(nonce) + genericService.getFilename(),\n genericService.getStructStr(),\n tableResult,\n defaultFs,\n datanodeUseHostname,\n clientUseHostname\n );\n stopwatch.stop(); // Optional\n log.info(\"[{} - {}] -> Time elapsed: [{}] ms\",\n genericService.getTableName(),\n methodName,\n stopwatch.elapsed(TimeUnit.MILLISECONDS));\n }", "public static void writeIntoCSVFromTable() {\n try {\n backItUp(ROOT);\n backItUp(ROOT + Calendar.getInstance().getTime() + \"/\");\n } catch (Throwable e) {\n itsLogger.error(e.getMessage(), e);\n }\n\n }", "public abstract boolean exportStatistics(String statsFileName) throws SQLException;", "public void writeFile(String[] results) {\n\t\ttry {\n\t\t\tFile file = new File(outputFile);\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\tfor(int i = 0; i < results.length; i++) {\n\t\t\t\tString[] tuple = testTuples.get(i);\n\t\t\t\t// convert String[] to String\n\t\t\t\tString tupleString = \"\";\n\t\t\t\tfor(int j = 0; j < tuple.length; j++) {\n\t\t\t\t\ttupleString += tuple[j] + \",\";\n\t\t\t\t}\n\t\t\t\twriter.write(tupleString + results[i] + \"\\n\");\n\t\t\t}\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void writeTable(Table table, String pathName, String filename){\n\n Record tempRow; \n String tempString;\n FileWriter fw;\n\n //create file\n try {\n fw = new FileWriter(pathName + filename);\n \n //add table name\n fw.write(table.getName());\n fw.write(\"\\n\");\n\n //add each row to a new line\n //get primary keys and loop over to add rows\n List<String> keys = table.getPrimaryKeys();\n for (int i = 0; i < keys.size(); i++){\n tempRow = table.getRow(keys.get(i));\n tempString = tempRow.getAllItemString();\n fw.write(tempString);\n fw.write(\"\\n\");\n }\n\n fw.close();\n } catch (IOException ex){\n System.out.println(\"ERROR: failed to create file \" + filename);\n }\n }", "public String export() throws SQLException, IOException {\n\t\t\treturn employeeDAO.export();\n\t\t}", "public void writeCSVtable(String outBuffer) throws IOException\n {\n String csvFile;\n // Create a file chooser\n File currentDir = new File(\"\").getAbsoluteFile();\n final JFileChooser fc = new JFileChooser(currentDir);\n // In response to a button click:\n int returnVal = fc.showSaveDialog(null);\n // open file\n File file = fc.getSelectedFile();\n // obtain filename\n csvFile = file.getName();\n\n // open the file\n fWriter = new FileWriter(csvFile); \n // write ALL the to the file in 1 burst\n fWriter.write(outBuffer); \n // close the file\n fWriter.close();\n }", "@Override\n public File importCSV(String query) {\n String retorno = executeQuery(query);\n File file = new File(\"export.csv\");\n try {\n file.createNewFile();\n if(file.exists()){\n try (Writer writer = new FileWriter(file)) {\n writer.append(retorno);\n writer.flush();\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return file;\n }", "public void exportarapolice(){\n gettableconteudo();\n conexao.Conectar();\n File f = null;\n try {\n conexao.sql = \"SELECT data, nomefile, arquivo FROM arquivo WHERE data = ?\"; \n conexao.ps = conexao.con.prepareStatement(conexao.sql); \n ps.setString(1, id1);\n ResultSet rs = ps.executeQuery(); \n if ( rs.next() ){ \n byte [] bytes = rs.getBytes(\"arquivo\"); \n String nome = rs.getString(\"nomefile\");\n f = new File(\"C:\\\\rubinhosis\\\\exportacoes\\\\\" + nome); \n FileOutputStream fos = new FileOutputStream( f);\n fos.write( bytes ); \n fos.close(); \n }\n rs.close(); \n ps.close(); \n \n \n } catch (SQLException ex) { \n ex.printStackTrace();\n }\n catch (IOException ex) {\n ex.printStackTrace();\n }\n\n}", "public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }", "public void exportToCsv(String outputFilePath) {\r\n\t\tBufferedWriter outputWriter = null;\r\n\t\ttry {\r\n\t\t\tFile outputFile = new File(outputFilePath);\r\n\t\t\tif (!outputFile.exists()) outputFile.createNewFile();\r\n\t\t\toutputWriter = new BufferedWriter(new FileWriter(outputFile.getAbsoluteFile()));\r\n\t\t\tString valString,typeString;\r\n\t\t\tSupplyValue supplyValue;\r\n\t\t\tfor (String date : datesValuesMap.keySet())\r\n\t\t\t{\r\n\t\t\t\tfor (String zone : datesValuesMap.get(date).keySet())\r\n\t\t\t\t{\r\n\t\t\t\t\tsupplyValue = datesValuesMap.get(date).get(zone);\r\n\t\t\t\t\tvalString = (supplyValue.getSupplyValue() == NULL_VALUE) ? NULL : String.valueOf(supplyValue.getSupplyValue());\r\n\t\t\t\t\tif (valString.equals(NULL))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttypeString = NULL;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttypeString = supplyValue.isActual() ? \"actual\" : \"aggregated\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\toutputWriter.write(zone+\",\"+date+\",\"+valString+\",\"+typeString+\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"IOException: got an error while trying to work with output file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tif (outputWriter != null) outputWriter.close();\r\n\t\t\t} catch (IOException e) {}\r\n\t\t}\r\n\t}", "@Override\n public void csvExport(String filename, Grade grade) {\n PrintWriter out = null;\n try {\n out = new PrintWriter(filename);\n\n for (Student key : map.keySet()) {\n if (map.get(key).getLetter().equals(grade.getLetter())) {\n out.println(key.getFirst() + \", \" + key.getLast() + \", \" + key.getID());\n }\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"File was not found\");\n } finally {\n out.close();\n }\n }", "String exportResultsData(FilterSpecifier.ListBy listBy, String filename) throws SearchServiceException;", "public void export(String dataTableId)\r\n {\r\n export(dataTableId, \"\");\r\n }", "private void storeToCsvFile( final File aSelectedFile, final Asm45DataSet aAnalysisResult )\n {\n try\n {\n final CsvExporter exporter = ExportUtils.createCsvExporter( aSelectedFile );\n\n exporter.setHeaders( \"index\", \"clocks\", \"block\", \"address\", \"value\", \"bus grant\", \"type\", \"event\" );\n\n final List<Asm45Data> dataSet = aAnalysisResult.getData();\n for ( int i = 0; i < dataSet.size(); i++ )\n {\n final Asm45Data ds = dataSet.get( i );\n exporter.addRow( Integer.valueOf( i ), Integer.valueOf( ds.getClocks() ),\n StringUtils.integerToHexString( ds.getBlock(), 2 ), StringUtils.integerToHexString( ds.getAddress(), 4 ),\n StringUtils.integerToHexString( ds.getValue(), 4 ), ds.getBusGrant() ? \"X\" : \"-\", ds.getType(),\n ds.getEvent() );\n }\n\n exporter.close();\n }\n catch ( final IOException exception )\n {\n // Make sure to handle IO-interrupted exceptions properly!\n if ( !HostUtils.handleInterruptedException( exception ) )\n {\n LOG.log( Level.WARNING, \"CSV export failed!\", exception );\n }\n }\n }", "private static void writeResultToFile(FileWriter writer, NumberedQuery query,\n ScoreDoc result, Document doc, int rank) throws IOException {\n StringJoiner resultLine = new StringJoiner(\" \");\n resultLine.add( Integer.toString(query.getNumber()) ); // query-id\n resultLine.add( \"0\" ); // Q0\n resultLine.add( doc.get(DOCNO) ); // document-id\n resultLine.add( Integer.toString(rank) ); // rank\n resultLine.add( Float.toString(result.score) ); // score\n resultLine.add( \"STANDARD\\n\" ); // STANDARD\n writer.write(resultLine.toString());\n }", "private static void writeResults() {\n\t\t//Sort hashMap before sending to file\n\t\tTreeSet<Word> mySet = new TreeSet<>(hm.values());\n\n\t\t//Create result.txt file and write treeMap out to it\n\t\tWriter writer = null;\n\t\ttry {\n\t\t\t//System.out.println(\"Here\");\n\t\t\twriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"output\\\\results.txt\")));\n\t\t\tfor (Word word : mySet) {\n\t\t\t\twriter.write(word.getValue() + \"\\t\" + word.getCount() + \"\\n\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\twriter.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public synchronized void saveTable() \n\t{\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(tableFile);\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(htRecords);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(\"Cannot save : FileNotFoundException\",e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"Cannot save : IOException\",e);\n\t\t}\n\t}", "public static void exportScores(String filePath, Map<String, List<DenovoHit>> resultsMap) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // header\r\n writer.append(getScoreHeader());\r\n writer.newLine();\r\n\r\n for (String spectrum : resultsMap.keySet()) {\r\n\r\n for (DenovoHit denovoHit : resultsMap.get(spectrum)) {\r\n\r\n // Get the protein hit.\r\n writer.append(spectrum + SEP);\r\n writer.append(denovoHit.getIndex() + SEP);\r\n writer.append(denovoHit.getSequence() + SEP);\r\n writer.append(denovoHit.getLength() + SEP);\r\n writer.append(denovoHit.getCharge() + SEP);\r\n writer.append(denovoHit.getNTermGap() + SEP);\r\n writer.append(denovoHit.getCTermGap() + SEP);\r\n writer.append(denovoHit.getPepNovoScore() + SEP);\r\n writer.append(denovoHit.getRankScore() + SEP);\r\n writer.newLine();\r\n writer.flush();\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }", "private void writeTableContents(BufferedWriter writer, ISuite suite,\r\n\t\t\tResultTable table) throws IOException {\r\n\r\n\t\tMap<String, ResultVo> dataMap = table.getResultData();\r\n\t\tString closer = \"</tbody></table></div>\";\r\n\t\tdataMap.forEach((key, value) -> {\r\n\t\t\tString datagenerator = \"\";\r\n\t\t\tString message = value.getExpectionMessage() != null ? value\r\n\t\t\t\t\t.getExpectionMessage() : \"\";\r\n\t\t\tSystem.out.println(message);\r\n\t\t\tdatagenerator = \"<tr><td>\" + value.getTestCaeId() + \"</td><td>\"\r\n\t\t\t\t\t+ value.getMethodName() + \"</td><td>\" + value.getPrioirty()\r\n\t\t\t\t\t+ \"</td><td>\" + value.getTotalTime() + \"</td>\";\r\n\r\n\t\t\tswitch (value.getResult().toString()) {\r\n\t\t\tcase \"pass\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4CAF50;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"fail\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#EF5350;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ \"<i class='material-icons' style='font-size: 16px;'>&#xE002;</i><span>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</span></td>\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"skip\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4FC3F7;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\twriter.write(datagenerator);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t});\r\n\t\twriter.write(closer);\r\n\t}", "public void export(List<double[]> allBounds)\n {\n\t if(!filePath.endsWith(\".csv\"))\n\t \tfilePath = filePath + \".csv\";\n \n try ( CSVWriter writer = new CSVWriter(new FileWriter(filePath)) ) \n {\n writer.writeNext(new String[] {\"mzMin\",\"mzMax\",\"rtMin\",\"rtMax\",\"pointNumber\"});\n \n // write away!\n for (double[] bounds : allBounds)\n writer.writeNext( new String[] {Double.toString(bounds[0]), Double.toString(bounds[1]), Double.toString(bounds[2]), Double.toString(bounds[3]), Double.toString(bounds[4]) });\n \n } catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n return;\n }", "private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }", "public void exportShowingsToCsv() {\n filmEdit.exportShowingsToCsv();\n }", "public void exportFile() {\n\t\ttry {\n\t\t\tFileWriter file_write = new FileWriter(\"accounts/CarerAccounts.txt\", false);\n\t\t\tString s = System.getProperty(\"line.separator\");\n\t\t\tfor (int i=0; i < CarerAccounts.size();i++) {\n\t\t\t\tString Users = new String();\n\t\t\t\tfor (int user: CarerAccounts.get(i).getUsers()) {\n\t\t\t\t\tUsers += Integer.toString(user) + \"-\";\n\t\t\t\t}\n\t\t\t\tString individual_user = CarerAccounts.get(i).getID() + \",\" + CarerAccounts.get(i).getUsername() + \",\" + CarerAccounts.get(i).getPassword() + \",\" + CarerAccounts.get(i).getFirstName() + \",\" + CarerAccounts.get(i).getLastName() + \",\" + CarerAccounts.get(i).getEmailAddress() + \",\" + Users;\n\t\t\t\tfile_write.write(individual_user + s);\n\t\t\t}\n\t\t\tfile_write.close();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to export file.\");\n\t\t}\n\t}", "private void writePzIntoCsv(double[] vals, PrintWriter outfile) {\n for (int i = 0; i < vals.length; i++) {\n outfile.append(vals[i] + \",\");\n }\n //outfile.append(stimulus);\n outfile.append(\"\\n\");\n }", "public abstract void saveToFile(PrintWriter out);", "String export(UserDataExportQuery query) throws ApplicationException;", "private void writeResults() {\n File externalStorage = Environment.getExternalStorageDirectory();\n if (!externalStorage.canWrite()) {\n Log.v(TAG, \"sdcard is not writable\");\n return;\n }\n File resultFile = new File(externalStorage, RESULT_FILE);\n resultFile.setWritable(true, false);\n try {\n BufferedWriter rsWriter = new BufferedWriter(new FileWriter(resultFile));\n Log.v(TAG, \"Saved results in: \" + resultFile.getAbsolutePath());\n java.text.DecimalFormat df = new java.text.DecimalFormat(\"######.##\");\n\n for (int ct=0; ct < IPTestListJB.TestName.values().length; ct++) {\n IPTestListJB.TestName t = IPTestListJB.TestName.values()[ct];\n final float r = mResults[ct];\n float r2 = rebase(r, t);\n String s = new String(\"\" + t.toString() + \", \" + df.format(r) + \", \" + df.format(r2));\n rsWriter.write(s + \"\\n\");\n }\n rsWriter.close();\n } catch (IOException e) {\n Log.v(TAG, \"Unable to write result file \" + e.getMessage());\n }\n }", "private boolean exportResult(){\n System.out.println(\"Writing to \" + \"out_\" + inputFile);\n return true;\n }", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "protected void write_results(String output) {\r\n\t\t// File OutputFile = new File(output_train_name.substring(1,\r\n\t\t// output_train_name.length()-1));\r\n\t\ttry {\r\n\t\t\tFileWriter file_write = new FileWriter(output);\r\n\r\n\t\t\tfile_write.write(IS.getHeader());\r\n\r\n\t\t\t// now, print the normalized data\r\n\t\t\tfile_write.write(\"@data\\n\");\r\n\t\t\tfor (int i = 0; i < ndatos; i++) {\r\n\t\t\t\tif (!filtered[i]) {\r\n\t\t\t\t\tfile_write.write(X[i][0]);\r\n\t\t\t\t\tfor (int j = 1; j < nvariables; j++) {\r\n\t\t\t\t\t\tfile_write.write(\",\" + X[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfile_write.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfile_write.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"IO exception = \" + e);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "public void toFile (String nameFile)\n {\n //definir dados\n int i, j;\n int lin;\n int col;\n FILE arquivo;\n\n //obter dimensoes\n lin = lines();\n col = columns();\n\n //verificar se as dimensoes sao validas\n if( lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Tamanho(s) invalido(s). \");\n } //end\n else\n {\n //verificar se tabela e' valida\n if( table == null )\n {\n IO.println(\"ERRO: Matriz invalida. \" );\n } //end\n else\n {\n arquivo = new FILE(FILE.OUTPUT, nameFile);\n arquivo.println(\"\"+ lin);\n arquivo.println(\"\"+ col);\n\n //pecorre para preencher a matriz\n for( i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n arquivo.println(\"\" + table[ i ][ j ]);\n } //end repetir\n } //end repetir\n //fechar arquivo (indispensavel)\n arquivo.close();\n } //end se\n } //end se\n }", "protected <T> void exportTable(final Class<T> c, final String[] primaryKeys, final int batchSize, final File exportFile,\n final String persistenceUnit, final boolean verifyIntegrity, final OutputFormat outputFormat) {\n boolean includeFailed = true;\n final DatabaseReader<T> dbReader = new DatabaseReader<T>(c, primaryKeys, batchSize, includeFailed, 1000, verifyIntegrity);\n\n try {\n ObjectOutputStream outputStream;\n /*\n * Using private classes for the actual export job in order to be able to reuse\n * as much of the below code as possible.\n */\n switch (outputFormat) {\n case XML:\n outputStream = new XStream().createObjectOutputStream(new FileWriter(exportFile));\n break;\n case BINARY:\n default:\n outputStream = new ObjectOutputStream(new FileOutputStream(exportFile));\n }\n while (!dbReader.isDone()) {\n final EntityManager entityManager = getEntityManager(persistenceUnit);\n final List<T> chunk = dbReader.getNextVerifiedChunk(entityManager);\n // Reduce memory footprint by killing off the database connection after each batch (slow, but necessary for large databases)\n entityManager.clear();\n entityManager.close();\n entityManagers.remove(persistenceUnit);\n entityManagerFactories.get(persistenceUnit).close();\n entityManagerFactories.remove(persistenceUnit);\n LOG.info(c.getSimpleName() + \": \" + dbReader.getTotalRowCount() + \" rows exported so far.\");\n for (T entity : chunk) {\n outputStream.writeObject(entity);\n }\n chunk.clear();\n }\n outputStream.close();\n LOG.info(c.getSimpleName() + \": \" + (dbReader.getTotalRowCount() - (includeFailed ? 0 : dbReader.getErrorCount())) + \"/\"\n + dbReader.getTotalRowCount() + \" exported.\");\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void dumpTable(File toFile, boolean append, DBSelect<gDBR> dsel, String fldn[])\n throws DBException\n {\n \n /* validate filename */\n if (toFile == null) {\n throw new DBException(\"'To' file not specified\");\n }\n\n /* include header */\n boolean inclHeader = (append && toFile.exists())? false : true;\n\n /* dump to file */\n PrintWriter dumpOutStream = null;\n boolean closeStream = true;\n try {\n\n /* output format */\n String fn = toFile.getName();\n int outputFmt = DUMP_FORMAT_CSV;\n if (fn.endsWith(_DUMP_EXT_CSV)) {\n outputFmt = DUMP_FORMAT_CSV;\n } else \n if (fn.endsWith(_DUMP_EXT_XML)) {\n outputFmt = DUMP_FORMAT_XML;\n } else {\n outputFmt = DUMP_FORMAT_SQL;\n }\n \n /* open output and dump */\n if (fn.startsWith(\"stdout.\")) {\n Print.logDebug(\"Output to STDOUT ...\");\n dumpOutStream = new PrintWriter(System.out, true);\n closeStream = false;\n } else\n if (fn.startsWith(\"stderr.\")) {\n Print.logDebug(\"Output to STDERR ...\");\n dumpOutStream = new PrintWriter(System.err, true);\n closeStream = false;\n } else {\n Print.logDebug(\"Output to File: '%s' ...\", toFile.toString());\n dumpOutStream = new PrintWriter(new FileOutputStream(toFile,append));\n closeStream = true;\n }\n this._dumpTable(dumpOutStream, inclHeader, dsel, fldn, outputFmt);\n \n } catch (IOException ioe) {\n throw new DBException(\"Dumping table\", ioe);\n } finally{\n if (closeStream && (dumpOutStream != null)) { \n try{ dumpOutStream.close(); } catch (Throwable th) {} \n }\n }\n \n }", "public void SerializeTable(ObjectOutputStream out) {\n\t\t\n\t}", "public static void writeTsv(List<List<String>> rows, String filename) throws IOException \n\t{ \n\t FileWriter fileWriter = new FileWriter(filename);\n\t PrintWriter printWriter = new PrintWriter(fileWriter);\n\t \n\t\t// print row and columns\n\t\tfor (List<String> r : rows) {\n\t\t\tfor (String s : r) {\n\t\t\t\tprintWriter.print(s + \"\\t\");\n\t\t\t}\n\t\t\tprintWriter.print(\"\\n\");\n\t\t}\n\t printWriter.close();\n\t}", "public void writeToCsv(String fileName) throws Exception {\n\tFileWriter writer=new FileWriter(fileName);\n\n\twriter.append(Integer.toString(this.gen));\n\twriter.append('\\n');\n\n\tfor(int i=0;i<popSize;i++) {\n\t writer.append(getBna(i));\n\t writer.append('\\n');\n\t}\n\twriter.close();\n }", "public void output(File outputFile){\n try {\n BufferedWriter file = new BufferedWriter(new FileWriter(outputFile));\n file.write(hashTable.length + \"\\n\");\n file.write(space() + \"\\n\");\n file.write(loadFactor + \"\\n\");\n file.write(collisionLength() + \"\\n\");\n for (int i = 0; i < hashTable.length; i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n while (ptr.getNext() != null){\n file.write(\"(\" + ptr.getKey() + \",\" + ptr.getFreq() + \") \");\n ptr = ptr.getNext();\n }\n file.write(\"(\" + ptr.getKey() + \",\" + ptr.getFreq() + \") \");\n }\n }\n file.close();\n }\n catch (IOException e){\n System.out.println(\"Cannot create new file\");\n e.printStackTrace();\n }\n }", "private final void exportAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tserializeToFile(file);\n\t }\t\n\t}", "private void output(FileWriter outputFile, Map<Query, List<Evaluation>> evalData, FactDatabase source, FactDatabase target) {\n\t\tPrintWriter out = new PrintWriter(outputFile, true);\n\t\tif(source != null && target != null){\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.third);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tdetermineSource(eval, source, target);\n\t\t\t\t\tout.print(eval.source.toString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.result.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Query rule: evalData.keySet()){\n\t\t\t\tfor(Evaluation eval: evalData.get(rule)){\n\t\t\t\t\tout.print(rule.getRuleString());\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.first);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.print(eval.fact.second);\n\t\t\t\t\tout.print(\"\\t\");\n\t\t\t\t\tout.println(eval.fact.third);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tout.close();\n\t}", "public void writeOutputTableInfo(OutputInfo oti) {\n conf.set(getOutputTableInfoKey(), Writables.writeToEncodedStr(oti));\n }", "public void dumpTable(File toFile, boolean append, DBSelect<gDBR> dsel)\n throws DBException\n {\n this.dumpTable(toFile, append, dsel, /*String[]*/null);\n }", "private void actionSaveOutputAll ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tJFileChooser saveFileChooser = new JFileChooser();\r\n\r\n\t\t\t\tFileNameExtensionFilter typeCSV = new FileNameExtensionFilter(\"CSV\", \"csv\", \"CSV\");\r\n\t\t\t\tsaveFileChooser.addChoosableFileFilter(typeCSV);\r\n\r\n\t\t\t\tFileNameExtensionFilter typeTXT = new FileNameExtensionFilter(\"TXT\", \"txt\", \"TXT\");\r\n\t\t\t\tsaveFileChooser.addChoosableFileFilter(typeTXT);\r\n\r\n\t\t\t\tsaveFileChooser.setAcceptAllFileFilterUsed(false);\r\n\t\t\t\tsaveFileChooser.setFileFilter(typeCSV);\r\n\r\n\t\t\t\tint isOpen = saveFileChooser.showOpenDialog(saveFileChooser);\r\n\r\n\t\t\t\tif (isOpen == JFileChooser.APPROVE_OPTION) \r\n\t\t\t\t{\r\n\t\t\t\t\tString filePath = saveFileChooser.getSelectedFile().getPath();\r\n\r\n\t\t\t\t\t/*!*/DebugLogger.logMessage(\"Saving output of all images to file \" + filePath, LOG_MESSAGE_TYPE.INFO);\r\n\r\n\t\t\t\t\tif (saveFileChooser.getFileFilter().equals(typeCSV))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!filePath.substring(filePath.length() - 4).equals(\".csv\")) { filePath += \".csv\"; }\r\n\r\n\t\t\t\t\t\tOutputController.saveFileAll(filePath, DataController.getTable(), OUTPUT_FORMAT.CSV);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!filePath.substring(filePath.length() - 4).equals(\".txt\")) { filePath += \".txt\"; }\r\n\r\n\t\t\t\t\t\tOutputController.saveFileAll(filePath, DataController.getTable(), OUTPUT_FORMAT.TXT);\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\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}", "private static void LOG() {\n if (!RESULTFILE.exists()) {\n\n if (!RESULTFILE.getParentFile().exists()) {\n RESULTFILE.getParentFile().mkdirs();\n }\n\n try {\n RESULTFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + RESULTFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(RESULTFILE, true));\n bw.write(\"rank\" + \"\\t\" + \"DBID\" + \"\\n\");\n bw.close();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(RESULTFILE));\n out.writeObject(RESULTS);\n out.close();\n\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n }\n\n /**\n * print also SQL query into a sql file\n *\n */\n if (!SQLFILE.exists()) {\n if (!SQLFILE.getParentFile().exists()) {\n SQLFILE.getParentFile().mkdirs();\n }\n try {\n SQLFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + SQLFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(SQLFILE, true));\n bw.write(UNKNOWN.getSortedQuery() + \"\\n\");\n bw.close();\n } catch (Exception e) {\n System.err.println(\"Konnte nicht in Datei \" + SQLFILE + \" schreiben!\");\n }\n }\n }", "public void writeToCSV(String path) throws IOException, SQLException {\n\t\tWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n\t\t// Title\n\t\tout.write(\"pageId;title;earliest year;latest year;mean year;\");\n\t\t// IBM\n\t\tout.write(\n\t\t\t\t\"Anger;Disgust;Fear;Joy;Sadness;Analytical;Confident;Tentative;Openness;Conscientiousness;Extraversion;Agreeableness;Emotional Range;\");\n\t\t// LIWC\n\t\tout.write(\n\t\t\t\t\"LIWC;Word Count;Analytical thinking;Clout;Authentic;Emotional tone;Dictionary Words;Positive Emotion;Negative Emotion;Anxiety;Anger;Sadness;Tentative;Certainty;Power;Risk;Death;\");\n\t\tout.write(\"AlchemyTone;mixed;score;type;\");\n\t\tout.write(\"\\n\");\n\t\tfor (Page page : this.getExtractsFromDatabase()) {\n\t\t\tint pageId = page.getPageId();\n\t\t\tString title = page.getTitle();\n\t\t\tToneAnalysis ibmTone = page.getIbmTone();\n\t\t\tReceptivitiAnalysis liwcTone = page.getLiwcTone();\n\t\t\tDocumentSentiment docSentiment = page.getDocumentSentiment();\n\t\t\tint earliestYear = page.getEarliestYear();\n\t\t\tint latestYear = page.getLatestYear();\n\t\t\tint meanYear = 0;\n\t\t\tif (earliestYear == 0) {\n\t\t\t\tmeanYear = latestYear;\n\t\t\t} else {\n\t\t\t\tmeanYear = (earliestYear + latestYear) / 2;\n\t\t\t}\n\t\t\tif (ibmTone != null) {\n\t\t\t\tout.write(pageId + \";\" + title + \";\" + earliestYear + \";\" + latestYear + \";\" + meanYear + \";\");\n\t\t\t\tElementTone documentTone = ibmTone.getDocumentTone();\n\t\t\t\tList<ToneCategory> toneCategories = documentTone.getTones();\n\t\t\t\tfor (ToneCategory toneCategory : toneCategories) {\n\t\t\t\t\tList<ToneScore> toneScores = toneCategory.getTones();\n\t\t\t\t\tfor (ToneScore toneScore : toneScores) {\n\t\t\t\t\t\t// String name = toneScore.getName();\n\t\t\t\t\t\tdouble score = toneScore.getScore();\n\t\t\t\t\t\tout.write(String.valueOf(score).replace('.', ','));\n\t\t\t\t\t\tout.write(\";\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout.write(\";\");\n\n\t\t\t\tif (liwcTone != null) {\n\t\t\t\t\tDouble wordCount = liwcTone.getLiwcScores().getWc();\n\t\t\t\t\tDouble analyticalThinking = liwcTone.getLiwcScores().getAnalytic();\n\t\t\t\t\tDouble clout = liwcTone.getLiwcScores().getClout();\n\t\t\t\t\tDouble authentic = liwcTone.getLiwcScores().getAuthentic();\n\t\t\t\t\tDouble emotionalTone = liwcTone.getLiwcScores().getTone();\n\t\t\t\t\tDouble dictionaryWords = liwcTone.getLiwcScores().getDic();\n\n\t\t\t\t\tDouble posEmo = liwcTone.getLiwcScores().getCategories().getPosemo();\n\t\t\t\t\tDouble negEmo = liwcTone.getLiwcScores().getCategories().getNegemo();\n\t\t\t\t\tDouble anxiety = liwcTone.getLiwcScores().getCategories().getAnx();\n\t\t\t\t\tDouble anger = liwcTone.getLiwcScores().getCategories().getAnger();\n\t\t\t\t\tDouble sadness = liwcTone.getLiwcScores().getCategories().getSad();\n\t\t\t\t\tDouble tentative = liwcTone.getLiwcScores().getCategories().getTentat();\n\t\t\t\t\tDouble certainty = liwcTone.getLiwcScores().getCategories().getCertain();\n\t\t\t\t\tDouble power = liwcTone.getLiwcScores().getCategories().getPower();\n\t\t\t\t\tDouble risk = liwcTone.getLiwcScores().getCategories().getRisk();\n\t\t\t\t\tDouble death = liwcTone.getLiwcScores().getCategories().getDeath();\n\n\t\t\t\t\tout.write(wordCount + \";\");\n\t\t\t\t\tout.write(String.valueOf(analyticalThinking).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(clout).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(authentic).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(emotionalTone).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(dictionaryWords).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(posEmo).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(negEmo).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(anxiety).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(anger).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(sadness).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(tentative).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(certainty).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(power).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(risk).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(death).replace('.', ',') + \";\");\n\t\t\t\t}\n\t\t\t\tout.write(\";\");\n\t\t\t\tif (docSentiment != null) {\n\t\t\t\t\tString mixed = docSentiment.getSentiment().getMixed();\n\t\t\t\t\tDouble score = docSentiment.getSentiment().getScore();\n\t\t\t\t\tString type = docSentiment.getSentiment().getType().toString();\n\t\t\t\t\tout.write(String.valueOf(mixed).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(score).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(type).replace('.', ',') + \";\");\n\t\t\t\t}\n\t\t\t\tout.write(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tout.close();\n\t\tSystem.out.println(\"Export finished.\");\n\n\t}", "public void saveToFile(File outputFile) throws IOException {\n PrintWriter writer = new PrintWriter(outputFile);\n\n writer.write(\"# Exported by FrogLord\" + Constants.NEWLINE);\n for (Tuple3<Float, Float, Float> vertex : this.vertices)\n writer.write(\"v \" + vertex.getA() + \" \" + vertex.getB() + \" \" + vertex.getC() + Constants.NEWLINE);\n\n for (Tuple2<Float, Float> normal : this.normals)\n writer.write(\"vt \" + normal.getA() + \" \" + normal.getB() + Constants.NEWLINE);\n\n writer.close();\n }", "String exportPivotResultsData(FilterSpecifier.ListBy listBy, String filename, Results results) throws SearchServiceException;", "public void exportScores(OutputStream outputStream) throws IOException {\n exportScores(outputStream, \"\\t\");\n }", "String storeTable(String name) {\n PrintWriter writer = null;\n Table t = tables.get(name);\n\n try {\n\n /** Boolean decides if to overwrite the file if false, or continue if true */\n FileWriter fw = new FileWriter(name + \".tbl\", false);\n writer = new PrintWriter(fw);\n\n writer.println(t.getColString());\n\n int i = 1;\n for (; i < t.rowSize(); i += 1) {\n writer.println(t.getRowString(i));\n }\n\n writer.print(t.getRowString(i));\n writer.close();\n return \"\";\n\n } catch (IOException e) {\n return \"ERROR: Invalid Table\";\n } catch (NullPointerException e) {\n return \"ERROR: Invalid Table\";\n }\n\n\n }", "public void outputToFile(String filemame)\n {\n }", "public FileData export() {\n\t\ttry(Workbook workbook = createWorkbook();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();) {\n\t\t\tsheet = workbook.createSheet();\n\t\t\tcreateRows();\n\t\t\tworkbook.write(outputStream);\n\t\t\treturn getExportedFileData(outputStream.toByteArray());\n\t\t} catch (IOException ex) {\n\t\t\tthrow new RuntimeException(\"error while exporting file\",ex);\n\t\t}\n\t}", "public static void TSVExport(String output, LinkedList<Patient> src, boolean[] shouldEx) {\n\t\tExportSepValuesFile(output, src, \"\\t\", shouldEx);\n\t}", "private static void export(Tensor tensor, String filterType, int index, int radius, SmoothingKernel smoothingKernel) throws IOException {\n try (FileWriter writer = new FileWriter(\"030619_\" + filterType + \"_\" + smoothingKernel.toString() + \"_\" + radius + \"_\" + index + \".csv\")) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < tensor.length(); i++) {\n sb.append(tensor.get(i).Get(0).toString());\n sb.append(\",\");\n sb.append(tensor.get(i).Get(1).toString());\n sb.append(\",\");\n sb.append(tensor.get(i).Get(2).toString());\n sb.append(\"\\n\");\n }\n writer.write(sb.toString());\n }\n }", "private void writeCsv(float[] vals, String stimulus, PrintWriter outfile) throws FileNotFoundException {\n for (int i = 0; i < vals.length; i++) {\n outfile.append(vals[i] + \",\");\n }\n outfile.append(stimulus);\n outfile.append(\"\\n\");\n\n }", "public void exportTable(ExportJobContext context)\n throws IOException, ExportException {\n throw new ExportException(\"This database does not support exports\");\n }", "public void writeFile(HashMap<String, Float> results) throws IOException {\n for (Map.Entry<String, Float> entry : results.entrySet()) {\n writer.printf(\"%s %.2f\", entry.getKey(), entry.getValue());\n writer.println(\"%\");\n }\n writer.close();\n }", "public void outputToCSV() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"test_data.csv\", \"UTF-8\");\n\n //For every object in array list, print surname, initials and extension, separated by commmas\n for (int i=0; i<toArrayList().size(); i++) {\n writer.println(toArrayList().get(i).getSurname() + \",\" + toArrayList().get(i).getInitials() + \",\" +\n toArrayList().get(i).getExtension());\n }\n writer.close();\n }", "void export(UtilityDataExportQuery query) throws ApplicationException;", "public void exportScores(File file) throws IOException {\n exportScores(file, \"\\t\");\n }", "public void actionExport_actionPerformed(ActionEvent e) throws Exception {\n\t\t\n\t\tFile tempFile;\n\t\t\t\t\n\t\tKDTable table = getTableForCommon();\n\t\tif(table != null){\n\t\t\tInteger rowMax = queryHelper.getCanExportMaxRowIndex(table.getName());\n\t\t\tif(table.getRowCount()>rowMax.intValue()){\n\t\t\t\tMsgBox.showInfo(this,\"您没有全部公司的权限,您只能导出前\"+rowMax.toString()+\"行\");\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttempFile = File.createTempFile(\"eastemp\", \".xls\");\n\t\t\t\ttable.getIOManager().setTempFileDirection(\n\t\t\t\t\t\ttempFile.getPath());\n\t\t\t\ttable.getIOManager().exportExcelToTempFile(false);\n\t\t\t\ttempFile.deleteOnExit();\n\t\t\t}\n\t\t}\n\t}", "public static void writeReport(Collection<HitsHunter> sorted) {\n List<String> resArr = new ArrayList<>(10);\n for (HitsHunter hunter : sorted) {\n var res = Printer.printTotalResult(hunter);\n resArr.add(res);\n }\n CSVWriter.writeInFile(resArr, true);\n }", "private void writeStatsToFile() {\n\t\tString fileName = \"TypeaheadStats.dat\";\n\t\tString contents = \"Typeahead_Tasks,Index_Hits,Hit_Ratio,Avg_Time,Suffix_Time,Pruning\\n\";\n\t\tcontents += numOfSearchTasks + \n\t\t\t\t\",\" + numOfIndexHits + \n\t\t\t\t\",\" + 1.0 * numOfIndexHits / numOfSearchTasks + \n\t\t\t\t\",\" + totalTime / numOfSearchTasks +\n\t\t\t\t\",\" + suffixTreeTime / numOfSearchTasks + \n\t\t\t\t\",\" + pruningPercentage / numOfSearchTasks;\n\t\tFileManager.writeToFile(fileName, contents);\n\t}", "public static void output(String filePath, BigDecimal[][] m){\n\t\tFileWriter fileWriter;\n\t\ttry {\n\t\t\tfileWriter = new FileWriter(filePath);\n\t\t\tfor(int i = 0; i < m.length; i++){\n\t\t\t\tfor(int j = 0; j < m[0].length; j++)\n\t\t\t\t\tfileWriter.append(m[i][j]+\"\\t\");\n\n\t\t\t\tfileWriter.append(\"\\n\");\n\t\t\t}\n\t\t\tfileWriter.flush();\n\t\t\tfileWriter.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"File writer error!\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "@Override\r\n\tpublic void createFile(FacebookClient fbClient, ITable table,\r\n\t\t\tString outputFile) {\n\t}", "private void writeOutput() {\n\n textMergeScript.setCurrentDirectoryFromFile (chosenOutputFile);\n tabFileOutput = new TabDelimFile (chosenOutputFile);\n tabFileOutput.setLog (log);\n tabFileOutput.setDataLogging (false);\n boolean outputOK = true;\n try {\n tabFileOutput.openForOutput (list.getRecDef());\n } catch (IOException e) {\n outputOK = false;\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem opening Output File\",\n false);\n }\n if (outputOK) {\n list.openForInput();\n DataRecord inRec;\n int count = 0;\n do {\n inRec = list.nextRecordIn ();\n if (inRec != null) {\n try {\n tabFileOutput.nextRecordOut (inRec);\n count++;\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing to Output File\",\n true);\n }\n } // end if in rec not null\n } while (list.hasMoreRecords());\n\n list.close();\n\n try {\n tabFileOutput.close();\n } catch (IOException e) {\n }\n\n log.recordEvent(LogEvent.NORMAL,\n String.valueOf(count) + \" records output\",\n false);\n\n tabNameOutput = chosenOutputFile.getName();\n openOutputDataName.setText (tabNameOutput);\n if (usingDictionary) {\n tabFileName =\n new FileName (chosenOutputFile.getAbsolutePath());\n dictFile =\n new TabDelimFile (textMergeScript.getCurrentDirectory(),\n tabFileName.replaceExt(DICTIONARY_EXT));\n dictFile.setLog (log);\n try {\n dataDict.store (dictFile);\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing Output Dictionary\",\n true);\n }\n } // end if using dictionary\n\n textMergeScript.recordScriptAction (\n ScriptConstants.OUTPUT_MODULE,\n ScriptConstants.OPEN_ACTION,\n ScriptConstants.NO_MODIFIER,\n ScriptConstants.NO_OBJECT,\n chosenOutputFile.getAbsolutePath());\n\n } // end if output ok\n\n }", "@Override\n public void exportTables(FileEnvVar exportFile,\n List<TableInfo> tableDefs,\n boolean includeBuildInformation,\n boolean replaceMacros,\n boolean includeVariablePaths,\n CcddVariableHandler variableHandler,\n String[] separators,\n String outputType,\n Object... extraInfo) throws JAXBException,\n MarshalException,\n CCDDException,\n Exception\n {\n\n // Convert the table data into XTCE XML format\n convertTablesToXTCE(tableDefs,\n includeBuildInformation,\n (EndianType) extraInfo[0],\n (boolean) extraInfo[1],\n (String) extraInfo[2],\n (String) extraInfo[3],\n (String) extraInfo[4],\n (String) extraInfo[5],\n (String) extraInfo[6]);\n\n // Output the XML to the specified file. The marshaller has a hard-coded limit of 8 levels;\n // once exceeded it starts back at the first column. Therefore, a Transformer is used to\n // set the indentation amount (it doesn't have an indentation level limit)\n DOMResult domResult = new DOMResult();\n marshaller.marshal(project, domResult);\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"3\");\n transformer.transform(new DOMSource(domResult.getNode()), new StreamResult(exportFile));\n }", "public static void writeQueriesToCSV(ArrayList<ArrayList<ArrayList<Double>>> query, String name) throws IOException {\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(name+\".csv\"));\r\n\t\tfor (int i=0; i<query.size();i++){\r\n\t\t\tint a=0;\r\n\t\t\tString entry=\"\";\r\n\t\t\tfor(a=0; a<query.get(i).size()-1;a++) {\r\n\t\t\t\tentry+=query.get(i).get(a).get(0) +\",\"+ query.get(i).get(a).get(1)+\",\" ;\t\r\n\t\t\t}\r\n\t\t\tentry+= query.get(i).get(a).get(0)+\",\" +\";\";\r\n\t\t\twriter.write(entry);\r\n\t\t\twriter.newLine();\r\n\r\n\t\t} \t\t\twriter.flush();\r\n\t\t\t\t\twriter.close();}", "public void writeDataToCsv(String filename , ArrayList<TestDataInstance> inputData) {\n \n String header = \"\";\n \n File outFile = null;\n int dataCount = 0;\n try {\n outFile = new File(filename);\n \n FileWriter fw = new FileWriter(outFile);\n \n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(header);\n \n for(TestDataInstance data : inputData) {\n bw.newLine();\n bw.write(data.toSamiamCsvString());\n dataCount++;\n }\n \n System.out.println(\"Written \" + dataCount + \" rows of data to SAMIAM CSV format @ \" + filename);\n \n } catch(Exception e) {\n e.printStackTrace();\n }\n \n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "protected void exportScriptToFile() {\n\t\ttry {\n\t\t\tfinal MigrationConfiguration cfg = getMigrationWizard()\n\t\t\t\t\t.getMigrationConfig();\n\t\t\tprepare4SaveScript();\n\t\t\tExportScriptDialog.exportScript(cfg, isSaveSchema());\n\t\t} catch (Exception e) {\n\t\t\t// MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n\t\t\t// Messages.msgWarning, Messages.setOptionPageErrMsg);\n\t\t}\n\t}", "public void exportMap(){\n\t\tString toSave = \"\";\r\n\t\tfor(int i=0;i<map.getH();i++){\r\n\t\t\tfor(int j=0;j<map.getL();i++){\r\n\t\t\t\tif(j == map.getL()-2)\r\n\t\t\t\t\ttoSave += map.getCase(i, j).toString();\r\n\t\t\t\telse\r\n\t\t\t\t\ttoSave += map.getCase(i, j).toString()+\"|\";\r\n\t\t\t}\r\n\t\t\ttoSave += \"\\n\";\r\n\t\t}\r\n\t\t//ecriture d'un fichier\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(EMPLOYEE_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (EmployeeDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\t// log.debug(\"Writing transaction record for Employee id :\"+\n\t\t\t\t\t\t// transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getEmpId());\n\t\t\t\t\t\trecord.add(transaction.getName());\n\t\t\t\t\t\trecord.add(transaction.getDesignation());\n\t\t\t\t\t\trecord.add(transaction.getManagerName());\n\t\t\t\t\t\trecord.add(transaction.getProjectName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getActive());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "void saveAs() {\n writeFile.Export();\n }", "private void writeCSVToFile(List<String[]> dataRows, String filepath) {\n try {\n FileWriter output = new FileWriter(filepath);\n CSVWriter csvWriter = new CSVWriter(output);\n\n csvWriter.writeAll(dataRows);\n\n csvWriter.close();\n\n System.out.println(\"Your order has been succesfully sent to Foodora\");\n\n } catch (IOException e) {\n System.out.println(\"Could not write to Foodora output file\");\n }\n\n }", "public void exportTableInfoDefinitions(FileEnvVar exportFile,\n boolean includeTableTypes,\n boolean includeInputTypes,\n boolean includeDataTypes,\n String outputType,\n boolean addEOFMarker,\n boolean addSOFMarker) throws CCDDException, Exception\n {\n // Placeholder\n }", "public static void PrintToCsv() throws Exception {\n\t\tBufferedWriter bw1 = new BufferedWriter(new FileWriter(\"./data/output1.csv\"));\n\t\tBufferedWriter bw2 = new BufferedWriter(new FileWriter(\"./data/output2.csv\"));\n\t\tBufferedWriter bw3 = new BufferedWriter(new FileWriter(\"./data/output3.csv\"));\n\t\tBufferedWriter bw4 = new BufferedWriter(new FileWriter(\"./data/output4.csv\"));\n\t\t\n\t\t//print the name of attributes in Table\n\t\tPrint_attribute(bw1,bw2,bw3,bw4);\n\t\tIterator<String> iter = BugDBConnection.Domain.keySet().iterator();\n\t\ttry{\n\t\t\twhile(iter.hasNext()){\n\t\t\t\tString key = iter.next();\n\t\t\t\tdomain = key.split(\"-\")[0];\n\t\t\t\tproject = key.split(\"-\")[1];\n\n\t\t\t\tFieldSet fieldset = BugDBConnection.Domain.get(key);\n\t\t\t\tPrintQ1(bw1,fieldset.field);\n\t\t\t\tPrintQ2(bw2, fieldset.refield);\n\t\t\t\tPrintQ3(bw3, fieldset.f1, fieldset.f2, fieldset.f3, fieldset.f4);\n\t\t\t\tPrintQ4(bw4, fieldset.avg, fieldset.min, fieldset.max);\n\t\t\t\t\n\t\t\t}\n\t\t\tbw1.close();\n\t\t\tbw2.close();\n\t\t\tbw3.close();\n\t\t\tbw4.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void downloadReport() {\n // Get Employees and Tasks\n ArrayList<Employee> inUnit = Main.getEmployeesInUnit();\n ArrayList<Task> allTasks = Main.getAllTasks();\n\n // Create BufferedWriter Object\n String fileName = fileDate.format(new Date()) + \"_report.csv\";\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(fileName));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Filename already exists.\");\n }\n\n try {\n // Write Header\n writer.write(\n \"Task ID,Task Description,Employee ID, Employee Name, WiGrow Needed, Incomplete Scheduling, Exception Report Needed\\n\");\n // Look through employee and their task\n for (int i = 0; i < inUnit.size(); ++i) {\n Employee current = inUnit.get(i);\n for (int j = 0; j < allTasks.size(); ++j) {\n Task currentTask = allTasks.get(j);\n // If found, write to file\n if (currentTask.getEmployees().contains(current)) {\n writer.write(currentTask.getID() + \",\" + currentTask.getDescription() + \",\"\n + current.getId() + \",\" + current.getName() + \",\" + current.isWiGrow() + \",\"\n + current.isScheduling() + \",\" + current.isExceptionReport() + \"\\n\");\n }\n }\n }\n writer.close();\n } catch (IOException e) {\n // Do nothing\n\n }\n // Alert pop up\n Alert downloadSuccess = new Alert(AlertType.NONE, \"Successfully Downloaded Report! It is named \"\n + fileName + \" and is located in your program's local directory.\");\n downloadSuccess.setTitle(\"Download File\");\n downloadSuccess.getButtonTypes().add(ButtonType.OK);\n downloadSuccess.showAndWait();\n }", "@Override\n\tpublic void createCSVOutput() {\n\t\tFile file = new File(\"rejectedByEsteticalRestructurationRejector.csv\"); \n\t\t\n\t\t//test if the file already exist\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"le fichier rejectedByEstheticalRestructurationRejector.csv existe deja\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t//create the different column for the CSV file\n\t\tString[] titles = { \"before\" , \"after\", \"id\"};\n\t\ttry {\n\t\t\toutputFile = new CsvFileWriter(file, '\\t', titles);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public void export(List<User> listUsers, HttpServletResponse response) throws IOException {\n\t\t/*\n\t\t * NB commented code moved to setResponseHeader method in AbstractExporter class and modified\n\t\t * \n\t\t * // the code below is for generating the file name for the csv file //using\n\t\t * time stamp\n\t\t * \n\t\t * //creates date format object DateFormat dateFormatter = new\n\t\t * SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\t * \n\t\t * //creates time stamp that format the current date and time String timestamp =\n\t\t * dateFormatter.format(new Date());\n\t\t * \n\t\t * \n\t\t * // users_ can be any name of your choice //creates file name. String fileName\n\t\t * = \"users_\" + timestamp + \".csv\";\n\t\t * \n\t\t * //set information for HttpServletResponse for the browser to download the\n\t\t * file // as csv file response.setContentType(\"text/csv\");\n\t\t * \n\t\t * //header for the file to be downloaded. String headerKey =\n\t\t * \"Content-Disposition\"; String headerValue = \"attachment; filename=\" +\n\t\t * fileName; response.setHeader(headerKey, headerValue);\n\t\t * \n\t\t */\n\t\tsuper.setResponseHeader(response,\"text/csv\",\".csv\",\"users_\");\n\t\t\n\t\t//creates csv writer from csv library\n\t\tICsvBeanWriter csvWriter = new CsvBeanWriter(response.getWriter(),\n\t\t\t\tCsvPreference.STANDARD_PREFERENCE);\n\t\t\n\t\t//header line of the csv file\n\t\tString[] csvHeader = {\"User ID\",\"E-mail\",\"First Name\",\"Last Name\",\"Role\",\"Enabled\"};\n\t\t\n\t\t//map fields for the actual data to be exported\n\t\t//this field mapping must correspond with the class entity variable names\n\t\tString[] fieldMapping = {\"id\",\"email\",\"firstName\",\"lastName\",\"roles\",\"enabled\"};\n\t\t\n\t\t//writes the header\n\t\tcsvWriter.writeHeader(csvHeader);\n\t\t\n\t\t//iterate through each of the list of users\n\t\tfor(User user : listUsers) {\n\t\t\tcsvWriter.write(user, fieldMapping);\n\t\t}\n\t\t\n\t\t//close the writer\n\t\tcsvWriter.close();\n\t\t\n\t}", "private void writeBatchToFile(ArrayList<SensorEntry> batch) {\n\n\t\tFile file = new File(currFolder + \"/\" + entriesRecorded + \".csv\");\n\n\t\ttry {\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\toutputStream.write(Constants.INS_DATA_HEADER.getBytes());\n\t\t\t}\n\n\t\t\tfor (SensorEntry e : batch)\n\t\t\t\toutputStream.write((e.toRawString() + \",\" + e.getTimeRecorded() + \"\\n\").getBytes());\n\n\t\t\toutputStream.close();\n\n\t\t\tsetsOfEntriesRecorded++;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void createCSV(ArrayList<String> result, String output){\t\r\n\t\ttry{\r\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(output);\r\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, \"MS949\");\r\n\t\t\tBufferedWriter fw = new BufferedWriter(outputStreamWriter);\r\n\t\t\tfor(String line : result){\r\n\t\t\t\tfw.write(line+\"\\n\");\r\n\t\t\t}\r\n\t\t\tfw.flush();\r\n\t\t\tfw.close();\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}" ]
[ "0.70674896", "0.69661224", "0.6533197", "0.6508553", "0.64240867", "0.63725215", "0.63718903", "0.6366975", "0.63304704", "0.6269637", "0.6179191", "0.61718315", "0.61617666", "0.6157049", "0.61446464", "0.6140329", "0.6135566", "0.61145186", "0.6059383", "0.60417795", "0.6026004", "0.60189444", "0.60093147", "0.6002154", "0.59345174", "0.5927734", "0.59250635", "0.5920162", "0.58909243", "0.58693486", "0.58689797", "0.58422816", "0.5834387", "0.58048767", "0.57972383", "0.57756746", "0.57638747", "0.57631296", "0.5761327", "0.5757003", "0.5738195", "0.5738144", "0.57244927", "0.5713238", "0.5709001", "0.5706004", "0.56983757", "0.56909657", "0.5688918", "0.5687078", "0.5675661", "0.5659115", "0.5650186", "0.56399935", "0.5634482", "0.5597628", "0.55942714", "0.5592776", "0.5592395", "0.55849916", "0.5576586", "0.55708915", "0.5567637", "0.5559167", "0.55572", "0.5557045", "0.5556375", "0.5550426", "0.5547337", "0.55422544", "0.55388284", "0.552988", "0.5527432", "0.55220777", "0.55199325", "0.5512337", "0.54918224", "0.5489319", "0.5488225", "0.54863924", "0.5486317", "0.54737276", "0.54651666", "0.5463919", "0.5460143", "0.5455681", "0.5444783", "0.54414594", "0.5436279", "0.5433065", "0.5401166", "0.539417", "0.5387685", "0.53866285", "0.53812546", "0.537273", "0.5365684", "0.53643566", "0.5364255", "0.5359718" ]
0.69568974
2
Should not fire as the icon should be grayed out if there is not open tab or no dynamic model
public void configureNestedLoops(){ if(currentView == null || currentView.getDynamicModelView() == null){ JOptionPane.showMessageDialog(this, "A tab must be open and a dynamic model present before nested loops can be configured", "Information", JOptionPane.INFORMATION_MESSAGE); return; } currentView.getDynamicModelView().configureNestedLoops(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTab()\n {\n \n }", "private void initBusyIconTab() {\n /** Set the current selected icon to the JLabelIcon\n */\n this.jLabelIcon.setIcon( getSelectedBusyICon() );\n }", "private void setModifiedAndUpdateIcon() {\n document.setModified(true);\n updateTabIcon(document);\n }", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onTabUnselected(TabLayout.Tab tab) {\n if(mToolbar_navig_utils !=null) {\n if (mToolbar_navig_utils.getSearchView() != null) {\n if (!mToolbar_navig_utils.getSearchView().isIconified()) {\n mToolbar_navig_utils.getSearchView().setIconified(true);\n\n // Recover the previous list of places nearby generated\n switch (current_page) {\n case 0:\n getPageAdapter().getMapsFragment().recover_previous_state();\n break;\n case 1:\n getPageAdapter().getListRestoFragment().recover_previous_state();\n break;\n }\n }\n }\n }\n\n // Change color of the tab -> black\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n }", "@FXML\n private void dailyTab() {\n openReservation(false);\n openEventInfo(false, null);\n }", "public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}", "public void cliniciansTabAreInViewMode() {\n\n\tString icon=addIconClinicians.getAttribute(\"data-ng-click\");\n\tif(icon.contains(\"isDisabled\")) {\n\t\tAssert.assertTrue(true);\n\t}\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void windowIconified(WindowEvent we) {\n }", "@Override\n public void windowIconified(WindowEvent e)\n {\n\n }", "@Override\n\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "@Override\n public boolean isIcon(){\n return super.isIcon() || speciallyIconified;\n }", "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\r\n\t\t}", "@FXML\n private void weeklyTab(){\n openReservation(false);\n openEventInfo(false, null);\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n public void windowIconified(WindowEvent e) {\n }", "@Override\n\tpublic void windowIconified( WindowEvent e ) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void updateIcons() {\n String info = \"\";\n if (Main.mainProject.getCurrentCase().isLeaf()) {\n info += ((TestCase) Main.mainProject.getCurrentCase().getParent()).getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getConclusion().toString();\n }\n infoTextArea.setText(info);\n Main.mainProject.getCurrentCase().setChecked(true);\n TreePath path = projectTree.getSelectionPath();\n this.updateTreeModel();\n projectTree.setSelectionPath(path);\n projectTree.scrollPathToVisible(path);\n }", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\n\t\t\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent e) {\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\r\n\t}", "@Override\n\t\t\t\tpublic void windowIconified(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowIconified(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowIconified(WindowEvent e) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void windowIconified(WindowEvent e) {\n\n\t\t\t\t}", "@Override\r\n public void windowIconified(WindowEvent e) {\n }", "private void handleSelectedElement() {\n tabPane.setVisible(true);\n tabPane.getTabs().clear();\n AOElement e = null;\n if (selectedTreeItem.get() != null) e = selectedTreeItem.get().getValue();\n\n if (!(e instanceof AOLight) && !(e instanceof AOCamera) && !(e instanceof AOGeometry)) {\n tabPane.setVisible(false);\n\n } else {\n\n try {\n\n Tab t = FXMLLoader.load(getClass().getResource(\"/fxml/mainSettingsView.fxml\"));\n tabPane.getTabs().addAll(t);\n if (e instanceof ONode) t.setText(\"Node\");\n else if (e instanceof AOLight) t.setText(\"Light\");\n else if (e instanceof AOCamera) t.setText(\"Camera\");\n\n if (e instanceof ONode) {\n if (!((ONode) e).oGeos.isEmpty() && !(((ONode) e).oGeos.get(0) instanceof ONode)) {\n Tab t2 = FXMLLoader.load(getClass().getResource(\"/fxml/mainMaterialSettingsView.fxml\"));\n t2.setText(\"Material\");\n tabPane.getTabs().add(1, t2);\n tabPane.getSelectionModel().select(0);\n }\n }\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "public Icon getTabIcon();", "@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void windowIconified(WindowEvent e)\n\t{\n\n\t}", "@Override\n\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\n\t\t}", "private void changeIcon(SingleDocumentModel model) {\n\t\tif (model.isModified()) {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/red.png\"));\n\t\t}else {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/green.png\"));\n\t\t}\n\t}", "public void addedToDom() {\n activateTab();\n }", "public void setupIcons() {\n try {\n tabLayout.getTabAt(0).setCustomView(getTabView(R.string.ic_user_black_bg, 0));\n tabLayout.getTabAt(1).setCustomView(getTabView(R.string.ic_hot_or_burn, 1));\n tabLayout.getTabAt(2).setCustomView(getTabView(R.string.ic_chat_1, 0));\n\n viewPager.addOnPageChangeListener(this);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "public void verifyTabInViewMode() {\n\t\tmoveToElement(addIconDisabled);\n\t\tString value=addIconDisabled.getAttribute(\"disabled\");\n\t\tif(value.contains(\"disabled\")) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\tsuper.windowIconified(e);\n\t\t\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "private void showIconDialog(IconInfo iconInfo) {\n Drawable iconD = iconInfo.getDrawable();\n String iconType = iconD.getClass().getSimpleName();\n\n LayoutInflater inflater = m_context.getLayoutInflater();\n final View dialogLayout = inflater.inflate(R.layout.icon_dlg, null);\n\n View shareBtn = dialogLayout.findViewById(R.id.icon_dlg_share);\n shareBtn.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n Utils.shareScreen(dialogLayout, \"iconDetail\", null);\n }\n });\n\n final TextView imageName = Ui.viewById(dialogLayout, R.id.icon_dlg_name);\n final TextView imageSize = Ui.viewById(dialogLayout, R.id.icon_dlg_size);\n final TextView imageType = Ui.viewById(dialogLayout, R.id.icon_dlg_type);\n final TextView imageExtra = Ui.viewById(dialogLayout, R.id.icon_dlg_extra);\n\n imageName.setText(iconInfo.fieldStr());\n imageSize.setText(String.format(\"Size: %d x %d\",\n iconD.getIntrinsicWidth(), iconD.getIntrinsicHeight()));\n imageType.setText(iconType);\n\n final ImageView imageView = Ui.viewById(dialogLayout, R.id.icon_dlg_image);\n // imageView.setImageDrawable(iconD);\n boolean hasStates = iconD.isStateful();\n\n final View stateTitle = dialogLayout.findViewById(R.id.icon_dlg_state_title);\n stateTitle.setVisibility(hasStates ? View.VISIBLE : View.GONE);\n\n final TableRow row1 = Ui.viewById(dialogLayout, R.id.icon_dlg_state_row1);\n row1.removeAllViews();\n\n final TableRow row2 = Ui.viewById(dialogLayout, R.id.icon_dlg_state_row2);\n row2.removeAllViews();\n\n boolean showRows = false;\n String extraInfo = \"\";\n\n if (hasStates) {\n extraInfo = \"StateFul\";\n showRows = true;\n\n StateListDrawable stateListDrawable = (StateListDrawable) iconD;\n Set<Drawable> stateIcons = new HashSet<>();\n showStateIcon(imageView, row1, row2, stateListDrawable, android.R.attr.state_enabled, \"Enabled\", stateIcons);\n showStateIcon(imageView, row1, row2, stateListDrawable, android.R.attr.state_pressed, \"Pressed\", stateIcons);\n showStateIcon(imageView, row1, row2, stateListDrawable, android.R.attr.state_checked, \"Checked\", stateIcons);\n showStateIcon(imageView, row1, row2, stateListDrawable, android.R.attr.state_selected, \"Selected\", stateIcons);\n }\n\n if (iconD instanceof LayerDrawable) {\n showRows = true;\n LayerDrawable layerDrawable = (LayerDrawable) iconD;\n int layerCnt = layerDrawable.getNumberOfLayers();\n extraInfo = String.format(Locale.getDefault(), \"Layers:%d\", layerCnt);\n for (int layerIdx = 0; layerIdx < Math.min(layerCnt, 3); layerIdx++) {\n showLayerIcon(imageView, row1, row2, layerDrawable.getDrawable(layerIdx), layerIdx);\n }\n } else if (iconD instanceof AnimationDrawable) {\n final AnimationDrawable animationDrawable = (AnimationDrawable) iconD;\n extraInfo = String.format(Locale.getDefault(), \"Frames:%d\", animationDrawable.getNumberOfFrames());\n showRows = true;\n showAnimationBtns(imageView, animationDrawable, row1, row2);\n\n // Can't control animation at this time, drawable not rendered yet.\n // animationDrawable.stop();\n }\n\n row1.setVisibility(showRows ? View.VISIBLE : View.GONE);\n row2.setVisibility(showRows ? View.VISIBLE : View.GONE);\n\n imageExtra.setText(extraInfo);\n imageView.setImageDrawable(iconD);\n\n dialogLayout.findViewById(R.id.icon_dlg_whiteBtn).setOnClickListener(new View.OnClickListener() {\n @SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View v) {\n imageView.setBackgroundDrawable(v.getBackground());\n }\n });\n\n dialogLayout.findViewById(R.id.icon_dlg_grayBtn).setOnClickListener(new View.OnClickListener() {\n @SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View v) {\n imageView.setBackgroundDrawable(v.getBackground());\n }\n });\n\n dialogLayout.findViewById(R.id.icon_dlg_blackBtn).setOnClickListener(new View.OnClickListener() {\n @SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View v) {\n imageView.setBackgroundDrawable(v.getBackground());\n }\n });\n\n dialogLayout.findViewById(R.id.icon_dlg_squaresBtn).setOnClickListener(new View.OnClickListener() {\n @SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View v) {\n imageView.setBackgroundDrawable(v.getBackground());\n }\n });\n\n AlertDialog.Builder builder = new AlertDialog.Builder(m_context);\n builder.setView(dialogLayout);\n\n builder.setMessage(\"Icon\")\n .setCancelable(false)\n .setPositiveButton(\"Close\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // if this button is clicked, close\n dialog.cancel();\n }\n });\n\n builder.show();\n }", "@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\n\t}", "@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\n\t\t\t}", "@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\n\t}" ]
[ "0.61176765", "0.6060319", "0.6056068", "0.6012471", "0.6012471", "0.6012471", "0.6012471", "0.6012471", "0.5995231", "0.5976675", "0.5960247", "0.5945702", "0.5944699", "0.5944699", "0.59425086", "0.5941496", "0.5920629", "0.5920629", "0.59065473", "0.5893481", "0.5892182", "0.5892182", "0.5892182", "0.5892182", "0.5892182", "0.58830124", "0.5880662", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.5874879", "0.58672804", "0.58640164", "0.58640164", "0.58572114", "0.58371454", "0.58371454", "0.58371454", "0.58371454", "0.58371454", "0.58371454", "0.58371454", "0.58371454", "0.58371454", "0.5827455", "0.5827455", "0.5813031", "0.5813031", "0.5813031", "0.5813031", "0.5813031", "0.5813031", "0.5813031", "0.58069825", "0.5806369", "0.5799327", "0.5799327", "0.5799327", "0.5799327", "0.57956016", "0.5784032", "0.57709986", "0.57613623", "0.57478434", "0.5743762", "0.57349575", "0.5717044", "0.57124376", "0.5696845", "0.56886744", "0.56768537", "0.56768537", "0.56768537", "0.56768537", "0.56768537", "0.56768537", "0.56768537", "0.56768537", "0.56724703", "0.56548256", "0.5647413", "0.56473535", "0.56473535", "0.56473535" ]
0.0
-1
Should not fire as the menu item to select this feature is grayed out
public void saveAsImage(){ if(currentView == null){ JOptionPane.showMessageDialog(this, "A tab must be open before an image can be saved", "Information", JOptionPane.INFORMATION_MESSAGE); return; } currentView.saveAsImage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}", "protected boolean onMenuItemSelected(int menuItemId) {\r\n\t\treturn false;\r\n\t}", "@Override\n public void onMenuToggle(boolean b) {\n }", "@Override\r\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\r\n // TODO Auto-generated method stub\r\n return false;\r\n }", "@Override\n protected void hookContextMenu() {\n\n }", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\n\n return true;\n }", "public void option() {\n ReusableActionsPageObjects.clickOnElement(driver, options, logger, \"user options.\");\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return false;\n }", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n int lSelectedItemID = item.getItemId(); // 액션 메뉴 아이디 확인함.\n if(lSelectedItemID == R.id.action_example){\n // To-do something\n }\n return super.onMenuItemSelected(featureId, item);\n }", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n Block_Dialog();\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "void omoguciIzmenu() {\n this.setEnabled(true);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onMenuItemSelected(int featureId, MenuItem item) {\n \tif(featureId == 0){\n \t\tif(!in_set_param){\n\t \t\tin_set_param = true;\n\t \t\ton_button_setting();\n \t}\n \t\tif(button_setting_num < 6){\n\t \t\tbutton_setting_num++;\n\t \t}else{\n\t \t\tbutton_setting_num = 1;\n\t \t\tGetGpioNumberAndSerialNumber();\n\t \t}\n \t}\n \treturn super.onMenuItemSelected(featureId, item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\treturn super.onContextItemSelected(item);\n\t}", "void enableAgentSelectionControl();", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetSupportMenuInflater().inflate(R.menu.activity_display_selected_scripture,\n \t\t\t\tmenu);\n \t\treturn true;\n \t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item){\n super.onOptionsItemSelected(item);\n return true;\n }", "@Override public boolean selectAutomaticallyInTreeMenu() {\n return infoPanel == null;\n }", "void clickAmFromMenu();", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\npublic void menuDeselected(MenuEvent arg0) {\n\t\r\n}", "public boolean isSelectingAction() {\n return false;\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenu.setMouseClick(true);\n\t\t\t}", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\r\n }", "@Override\r\n\tprotected void onUnitSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"unit button implementation\");\r\n\t}", "@Override\n public void select(Menu context) {\n updateControllable(context);\n currentStructure.assignWorkersToPowerHarvest(context.getFocus(), PopUpMenuWindow.WorkerMenu());\n }", "void clickFmFromMenu();", "public void onMenuNew() {\n handleMenuOpen(null);\n }", "private void helperSwitchSelectOn()\r\n\t{\r\n\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_SELECT_PRESSED);\r\n\r\n\t\tmainFormLink.getComponentToolbar().getComponentButtonSelect().setIcon(iconButton);\r\n\r\n\t\tFormMainMouse.isSampleSelectOn = true;\r\n\t}", "@Override\n public void menuDeselected(MenuEvent e) {\n\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n if (enabledMenuItem != null) {\n enabledMenuItem.disableProfile();\n enabledMenuItem = null;\n }\n }", "@Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }", "private static void submenu() {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}", "void onMenuItemClicked();", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n if (!menuMgr.handleMenuEvent(item))\n return super.onOptionsItemSelected(item);\n return true;\n }", "protected void onSelectionPerformed(boolean success) {\n }", "private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}", "public void setMenuDefault() {\n if (disableAll.isSelected()) {\n disableAll.doClick();\n }\n\n if (!(observability.isSelected())) {\n observability.doClick();\n }\n\n if (!(remaining.isSelected())) {\n remaining.doClick();\n }\n\n if (!(allocation.isSelected())) {\n allocation.doClick();\n }\n\n if (!(zoneOfAvoidance.isSelected())) {\n zoneOfAvoidance.doClick();\n }\n }", "void disableAgentSelectionControl();", "void jMenu1_actionPerformed(ActionEvent e) {\n\r\n cutMenuItem.setEnabled(false);\r\n\r\n\r\n }", "public void buttonAction(int selectedFeature) {\n\t\tmyParent.stopCustomCursor(this.couplerMullionPanel);\n\t\t\n\t\tthis.myParent.setActionTypeEvent(1);\n\t\t\n\t\tif (selectedLevel == 1) {\n\t\t\t\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t} else {\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "@Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n \t//G.trace(\"----Menu selected----\"); // TODO\n \tparrotMode = !parrotMode;\n \tG.trace(\"Parrot Mode: \"+parrotMode);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tshowIndicator();\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\r\n\t}", "@Override\r\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tmenu.findItem(R.id.context_class_test_add).setEnabled(clasststToggleButton.isChecked());\r\n\t\tLog.e(\"test\", \"onPrepareOptionsMenu\");\r\n\t\treturn super.onPrepareOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item){\n return super.onNavigationItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t\treturn onMenuItemSelected(item.getItemId());\r\n\t}", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase ADD_EXPENSE_ID:\n\t\t\taddExpense();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "@Override\n public boolean onPrepareOptionsMenu (Menu menu) {\n \n return super.onPrepareOptionsMenu (menu);\n \n }", "@Override\r\n\t\t\t\tpublic boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n\t\t\t\t\treturn false;\r\n\t\t\t\t}", "@Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n return super.onOptionsItemSelected(item);\r\n }", "public void setRefreshMenu() {\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n if (enabledMenuItem != null) {\n enabledMenuItem.disableProfile();\n }\n newMenuItem.enableProfile();\n enabledMenuItem = newMenuItem;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n return super.onNavigationItemSelected(item);\n }", "public void toSelectingAction() {\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tmenu.setMouseClick(false);\n\t\t\t}", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "private void doSelect() {\n this.setVisible(false);\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n displaySelectedOptions(id);\n return true;\n }", "@Override\r\n public void onCreateContextMenu(ContextMenu menu, View v,\r\n ContextMenuInfo menuInfo) {\n return;\r\n }", "@Override\n protected void onCreateContextMenu(ContextMenu menu) {\n super.onCreateContextMenu(menu);\n }", "boolean beforeMasterSelectionChange();", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, \"您沒有選擇任何藍牙裝置。\", Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\r\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tswitch(item.getItemId()){\r\n\t\tcase android.R.id.home:\r\n\t\t\tfinish();\r\n\t\t}\r\n\t\treturn super.onMenuItemSelected(featureId, item);\r\n\t}" ]
[ "0.7174144", "0.70662075", "0.7010769", "0.70091456", "0.6794152", "0.676418", "0.6731904", "0.6717055", "0.66659474", "0.663903", "0.66244435", "0.6612768", "0.6612768", "0.66084194", "0.65987325", "0.6586585", "0.6579286", "0.6575946", "0.6544655", "0.6535224", "0.6529567", "0.6521902", "0.6498817", "0.64902", "0.64902", "0.64902", "0.64902", "0.64902", "0.64902", "0.64865226", "0.64865226", "0.6461798", "0.6461798", "0.6461798", "0.6461798", "0.6458844", "0.6457953", "0.64378524", "0.6428875", "0.6421481", "0.6410651", "0.64104575", "0.64104575", "0.64104575", "0.64104575", "0.64104575", "0.64104575", "0.64104575", "0.64104575", "0.6405177", "0.63957196", "0.638674", "0.6385277", "0.6381243", "0.6381243", "0.6381243", "0.63634616", "0.63611144", "0.6345109", "0.633189", "0.63021755", "0.62988746", "0.62902486", "0.628387", "0.6269365", "0.62689257", "0.62661904", "0.6263237", "0.626005", "0.62590504", "0.6258937", "0.62518424", "0.6238161", "0.6221567", "0.6195253", "0.6193506", "0.6190906", "0.6190095", "0.61827016", "0.61761177", "0.6169018", "0.61675674", "0.61671627", "0.6166755", "0.61587393", "0.6155292", "0.61519355", "0.61493623", "0.6147277", "0.6143313", "0.6136731", "0.61323225", "0.61262244", "0.61190635", "0.6113018", "0.6111626", "0.6110171", "0.61094356", "0.6101519", "0.60991025", "0.6096722" ]
0.0
-1
Modal dialog with yes/no button
public void allowUserToQuit(){ int answer = JOptionPane.showConfirmDialog(this, "Are you sure you want to quit?", "Quit?", JOptionPane.YES_NO_OPTION); if (answer == JOptionPane.YES_OPTION) { try { propertiesMemento.saveProperties(this); } catch (Exception e) { JOptionPane.showMessageDialog(this, "Unable to save properties. Ensure the file " + propertiesMemento.getAppDir() + "appProp.txt is not in use by another application.", "Unable to save properties", JOptionPane.WARNING_MESSAGE); } // If there are any tabs open then ask the user if she wants to save the tabs if(currentView != null){ askIfTheUserWantsToSaveTabs(); } System.exit(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void MoodRatingAddNoteConfirmDialog() {\n final Dialog dialog = new Dialog(getActivity());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // Include dialog.xml file\n dialog.setContentView(R.layout.lay_moodratings_addnote);\n // Set dialog TV_TITLE\n dialog.setTitle(\"Custom Dialog\");\n\n // set values for custom dialog components - text, image and button\n TextView _tvNo = (TextView) dialog.findViewById(R.id.tvNo);\n TextView _tvYes = (TextView) dialog.findViewById(R.id.tvYes);\n\n dialog.show();\n _tvNo.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n _tvYes.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n MoodRatingAddNoteDialog();\n }\n });\n }", "public interface YesNoDialogConfirmation {\n\n public void onYesClicked(int pos,String type);\n}", "public static int yesNoCancelPop(String title, String message, String yesButton, String noButton, String cancelButton) {\n\t\t\t//Custom button text\n\t\t\tObject[] options = {yesButton, noButton, cancelButton};\n\t\t\tint n = JOptionPane.showOptionDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,\n\t\t\t options,\n\t\t\t options[2]);\n\t\t\t\n\t\t\treturn n;\n\t\t}", "public boolean showYesNoDialog(String title, String message) {\n int n = JOptionPane.showConfirmDialog(\n this,\n message,\n title,\n JOptionPane.YES_NO_OPTION);\n return n == JOptionPane.YES_OPTION;\n }", "@Override\r\n\t\tpublic boolean promptYesNo(String message) {\n\t\t\treturn true;\r\n\t\t}", "private boolean confirmAlert(String title, String message) {\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(message);\n\t\terrorMessage.setPrefWidth(150 + message.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tButton yes = new Button(\"yes\");\n\t\tButton no = new Button(\"no\");\n\n\t\tyes.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = true;\n\t\t});\n\t\tno.setOnAction(event -> {\n\t\t\twindow.close();\n\t\t\tanswer = false;\n\t\t});\n\n\n\t\tHBox answers = new HBox(yes, no);\n\t\tanswers.setSpacing(15);\n\t\tanswers.setAlignment(Pos.CENTER);\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, answers);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\n\t\treturn answer;\n\t}", "public void handleYesConfirmButtonAction(ActionEvent event) {\n if (updateItemPane.isVisible()){\n deleteItem();\n this.clearUpdateItemFields();\n }\n else if(updateCopyPane.isVisible()){\n deleteCopy();\n this.clearUpdateCopyFields();\n }\n maskPane.setVisible(false);\n confirmPane.setVisible(false);\n }", "private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}", "public void makeConfirmationDialog(View view) {\n new AlertDialog.Builder(this)\n .setTitle(\"Are you sure?\")\n .setCancelable(false)\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startExperiment();\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n return;\n }\n }).show();\n }", "void CloseOkDialog();", "private boolean showConfirmationMessage(String title, String body)\r\n {\r\n MyLogger.log(Level.INFO, \"Info message initiated. Info Title: {0}\", title);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n alert.initOwner(currentStage);\r\n alert.setTitle(title);\r\n alert.setHeaderText(null);\r\n alert.setContentText(body);\r\n ButtonType buttonTypeCancel = new ButtonType(\"Cancel\", ButtonData.CANCEL_CLOSE);\r\n ButtonType buttonTypeOK = new ButtonType(\"OK\", ButtonData.OK_DONE);\r\n alert.getButtonTypes().setAll(buttonTypeCancel, buttonTypeOK);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == buttonTypeOK)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"User confirmed coin action\");\r\n return true;\r\n } else if (result.isPresent() && result.get() == buttonTypeCancel)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"User canceled coin Action\");\r\n return false;\r\n }\r\n return false;\r\n\r\n }", "public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}", "private static void JGUI5() {\n\t\tint response = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\"Do you want to continue?\", \"Confirm\",\n\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); \n\t\tif (response == JOptionPane.NO_OPTION) {\n\t\t\tSystem.out.println(\"No button clicked\");\n\t\t} else if (response == JOptionPane.YES_OPTION) {\n\t\tSystem.out.println(\"Yes button clicked\");\n\t\t} else if (response == JOptionPane.CLOSED_OPTION) {\n\t\t\tSystem.out.println(\"JOptionPane closed\");\n\t\t}\n\t}", "public void clickYes ();", "private void showConfirmationDeleteDialog(\n DialogInterface.OnClickListener yesButtonClickListener) {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.are_you_sure);\n builder.setPositiveButton(R.string.yes, yesButtonClickListener);\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the Item.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }", "private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }", "@Override\n public void onClick(View v) {\n builder.setMessage(R.string.alertMessage)\n .setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //buClick();\n //finish();\n dialog.cancel();\n calculat();\n\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'NO' Button\n dialog.cancel();\n\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n //Setting the title manually\n alert.setTitle(R.string.alertTitle);\n alert.show();\n }", "public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n this.setCancelable(true);\n\n //NB! Må settes av kaller:\n Bundle bundle = this.getArguments();\n this.dialogTitle = bundle.getString(\"dialogTitle\");\n this.dialogText = bundle.getString(\"dialogText\");\n this.yesButtonText = bundle.getString(\"yesButtonText\");\n this.noButtonText = bundle.getString(\"noButtonText\");\n this.callback_id = bundle.getInt(\"callback_id\");\n int icon_drawable = bundle.getInt(\"icon_drawable\");\n\n //Bruker en styla dialog (se styles.xml):\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this.getActivity(), R.style.AlertDialogCustom));\n builder.setTitle(this.dialogTitle);\n builder.setIcon(icon_drawable);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.fragment_yesno_dialog, null);\n\n TextView tvDialogText = (TextView) view.findViewById(R.id.tvDialogText);\n tvDialogText.setText(dialogText);\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n builder.setView(view)\n // Add action buttons\n .setPositiveButton(yesButtonText, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //Lagre at tipset er sett...\n mListener.onDialogPositiveClick(YesNoDialog.this, callback_id);\n }\n })\n .setNegativeButton(noButtonText, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogNegativeClick(YesNoDialog.this, callback_id);\n }\n });\n\n //Opprett og vis dialogen:\n Dialog dialog = builder.create();\n return dialog;\n }", "void okButtonClicked();", "private static void JGUI4() {\n\t\tint n = JOptionPane.showConfirmDialog(\n\t\tnull,\n\t\t\"Would you like green eggs and ham?\",\n\t\t\"An Inane Question\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t}", "public void actionPerformed(ActionEvent e) {\n Object[] options ={ \"Yes\", \"No\" };\r\n //yes = 0 no = 1\r\n int m = JOptionPane.showOptionDialog(null, \"Go Back?\", \"tips\",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n\r\n if (m == 0)\r\n {\r\n frame.dispose();\r\n new init();\r\n }\r\n }", "@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "public boolean promptYesNo(String str)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void Skills(View v) {\n TextView txtclose;\n Button btn;\n myDialog.setContentView(R.layout.skills);\n txtclose = (TextView) myDialog.findViewById(R.id.txtclose);//exit the dialog\n txtclose.setText(\"X\");//edit the text in close textbox\n txtclose.setOnClickListener(new View.OnClickListener() {//listener\n @Override\n public void onClick(View v) {\n myDialog.dismiss();//call the popup message\n }\n });\n myDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));//editable in xml\n myDialog.show();//to show\n\n }", "public int showOkCancelMessage(String title, String msg) {\r\n return JOptionPane.showConfirmDialog(this,\r\n\t\t\t\t\t msg, title, JOptionPane.OK_CANCEL_OPTION);\r\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "protected abstract boolean onOkClicked();", "public Button getYes() {\n return yes;\n }", "public boolean getUserConfirmation() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Box\");\n alert.setHeaderText(\"Are you sure you want to delete?\");\n alert.setResizable(false);\n Optional<ButtonType> result = alert.showAndWait();\n ButtonType button = result.orElse(ButtonType.CANCEL);\n\n if (button == ButtonType.OK) {\n return true;\n } else {\n return false;\n }\n }", "private void showLoserDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"You Have Been Defeated \" + player1.getName() + \",Computer Wins!!\", new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Try Again?\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/bronze.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Computer Wins\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }", "DialogResult show();", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "protected boolean hasPositiveButton() {\n return false;\n }", "@Override\r\n\tpublic void onClick(View v) {\r\n\t\tif (v == okButton){\r\n\t\t\tif(dontShow.isChecked()){\r\n\t\t\tAlertDialog builder2 = new AlertDialog.Builder(this.parentcontext)\r\n .setTitle(\"Confirmation\")\r\n .setMessage(\"Are you sure about disabling instruction from next use\")\r\n .setPositiveButton(\"Submit\", new Dialog.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n // Mark this version as read.\r\n \t\r\n \t\t\t\tSharedPreferences.Editor editor = prefs.edit();\r\n editor.putBoolean(CustomizeDialog.this.key, true);\r\n editor.commit();\r\n //dialogInterface.dismiss();\r\n \t\t\t}\r\n \r\n })\r\n .setNegativeButton(\"Cancel\", new Dialog.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// Close the activity as they have declined the EULA\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n \t\r\n })\r\n .show();}\t\t\t\r\n\t\t\r\n\t\t\tdismiss();\r\n\t\t}\r\n\t}", "private static void JGUI2() {\n\t\tint n = JOptionPane.showConfirmDialog(\n\t\tnull,\n\t\t\"Would you like green eggs and ham?\",\n\t\t\"An Inane Question\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t}", "public void getConfirmDialog(String title, String msg, String positiveBtnCaption, String negativeBtnCaption, boolean isCancelable, final AlertMagnatic target) {\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n\t\tint imageResource = android.R.drawable.ic_dialog_alert;\r\n\t\tDrawable image = getResources().getDrawable(imageResource);\r\n\r\n\t\tbuilder.setTitle(title).setMessage(msg).setIcon(image).setCancelable(false).setPositiveIjoomerButton(positiveBtnCaption, new DialogInterface.OnClickListener() {\r\n\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\ttarget.PositiveMathod(dialog, id);\r\n\t\t\t}\r\n\t\t}).setNegativeIjoomerButton(negativeBtnCaption, new DialogInterface.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\ttarget.NegativeMathod(dialog, id);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tAlertDialog alert = builder.create();\r\n\t\talert.setCancelable(isCancelable);\r\n\t\talert.show();\r\n\t}", "public void showConfirmDialog() {\n mDialogClickInterface = (DialogueInterface) mContext;\n final Dialog dialog = new Dialog(mContext);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialogue_modify);\n Button buttonCancel = dialog.findViewById(R.id.btn_cancel);\n Button buttonOK = dialog.findViewById(R.id.btn_ok);\n final RadioGroup radioGroupLanguage = dialog.findViewById(R.id.radio_group);\n\n\n\n\n dialog.setCancelable(true);\n dialog.show(); // if decline button is clicked, close the custom dialog\n buttonCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n buttonOK.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n int selectedId = radioGroupLanguage.getCheckedRadioButtonId();\n\n switch (selectedId) {\n\n case R.id.rb_arabic:\n view.editItem(listModel,index);\n break;\n case R.id.rb_english:\n view.deleteItem(listModel);\n break;\n }\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n\n }", "void ShowOkDialog(String title, String message, OnClickListener listener);", "public interface DialogListener {\r\n public void handleYesButton();\r\n}", "public boolean isStartAsModal();", "public CardDialog(Frame owner, boolean modal) {\n super(owner, modal);\n parentFrame = (JFrame) owner;\n buttonText = \"Confirm\";\n }", "public boolean pregunta(){\n int d = JOptionPane.showConfirmDialog(null, \"¿Desea escribir otra palabra?\", \"¿Escribir?\", JOptionPane.YES_NO_OPTION);\n if (d == 0) {\n return true;\n }else if (d == 1) {\n return false;\n }\n return false;\n }", "public static void showConfirmationDialog(Context context,\n @StringRes int titleRes,\n @StringRes int messageRes,\n final SingleButtonCallback positiveAction,\n final SingleButtonCallback negativeAction) {\n new MaterialDialog.Builder(context)\n .title(titleRes)\n .content(messageRes)\n .positiveText(android.R.string.yes)\n .onPositive(positiveAction)\n .negativeText(android.R.string.no)\n .onNegative(negativeAction)\n .show();\n\t}", "private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_SUCCESS);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }", "private void showReturnDialog(){\n final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme);\n verificationDialog.setContentView(R.layout.dialog_verification);\n TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text);\n Button cancelButton = (Button) verificationDialog.findViewById(R.id.cancel_button);\n Button acceptButton = (Button) verificationDialog.findViewById(R.id.accept_button);\n verificationDialog.show();\n\n verificationText.setText(R.string.verification_return);\n\n // Setting up a listener for the Cancel Button:\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }\n });\n\n // Setting up a listener for the Done Button:\n acceptButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n // Go back to main menu:\n\n // Creating an intent:\n Intent mainIntent = new Intent(OfflineGameActivity.this , MainActivity.class);\n // Starting the Main Activity:\n startActivity(mainIntent);\n\n }\n });\n\n }", "public static boolean promptForYesNo(String title, String message) {\n // Bury Bones\n int yes = JOptionPane.showOptionDialog(null,\n message,\n title,\n JOptionPane.YES_NO_OPTION,\n JOptionPane.INFORMATION_MESSAGE,\n null,\n new String[]{\"Yes\", \"No\"},\n \"Yes\");\n\n return yes == 0;\n }", "private void showConfirmClearDialog() {\n AlertDialog.Builder dialog = new AlertDialog.Builder(getActivity());\n dialog.setTitle(res.getString(R.string.dialog_clear_sale));\n dialog.setPositiveButton(res.getString(R.string.no), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n\n dialog.setNegativeButton(res.getString(R.string.clear), new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n register.cancleSale();\n update();\n }\n });\n\n dialog.show();\n }", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "public void ClickYes()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Yes\")).click();\n\t}", "protected boolean showConfirm (String msg, String title)\n {\n String[] options = {\n UIManager.getString(\"OptionPane.okButtonText\"),\n UIManager.getString(\"OptionPane.cancelButtonText\")\n };\n return 0 == JOptionPane.showOptionDialog(\n this, _msgs.get(msg), _msgs.get(title),\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null,\n options, options[1]); // default to cancel\n }", "public static boolean showConfirmDialog(String action) {\n\tint reply = JOptionPane.showConfirmDialog(null, \"Are you sure you wish to \" + action + \"?\", \"Confirmation\",\n\t\tJOptionPane.YES_NO_OPTION);\n\t\n\treturn reply == JOptionPane.YES_OPTION;\n }", "public void testShowModalDialog() {\n System.out.println(\"showModalDialog\");\n Wizard instance = new Wizard();\n int expResult = 0;\n int result = instance.showModalDialog();\n assertEquals(expResult, result);\n }", "public void OnOkClick()\r\n {\r\n\r\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogPositiveClick(YesNoDialog.this, callback_id);\n }", "@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}", "public OverviewSmallConfirmDialogOptions showConfirmDialog(String referenceID, String title, String textContent, String okText, String cancelText) {\n/*Generated! Do not modify!*/ ConfirmDialogParameters confirmDialogParameters = new ConfirmDialogParameters();\n/*Generated! Do not modify!*/ confirmDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ confirmDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ confirmDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setConfirmDialogParameters(confirmDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"showConfirmDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallConfirmDialogOptions(this, confirmDialogParameters);\n/*Generated! Do not modify!*/ }", "private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}", "public void showIntroDialog() {\n\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setCancelable(false);\n\t\talert.setTitle(\"Introduction\").setMessage(R.string.intro);\n\t\talert.setNegativeButton(\"Don't Show Again\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int which) { \n\t\t pStream.disableIntroDialog();\n\t\t }\n\t\t })\n\t\t .setPositiveButton(\"Okay\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int which) { \n\t\t // do nothing\n\t\t }\n\t\t }).show();\n\t}", "public static void showDialog(Context context, final int Id, String title, String description, String yesbuttonTxt,\n String noButtonText, boolean displayTitle, boolean cancelTouchOutside, final DialogInterface dialogInterface) {\n\n TextView tvtitle, tvdescription, btn_yes, btn_no;\n\n final Dialog dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_layout);\n\n tvtitle = (TextView) dialog.findViewById(R.id.txt_title);\n tvdescription = (TextView) dialog.findViewById(R.id.txt_description);\n btn_yes = (TextView) dialog.findViewById(R.id.txt_yes);\n btn_no = (TextView) dialog.findViewById(R.id.txt_no);\n\n tvtitle.setVisibility(displayTitle ? View.VISIBLE : View.GONE);\n\n tvtitle.setText(title);\n tvdescription.setText(description);\n btn_yes.setText(yesbuttonTxt);\n btn_no.setText(noButtonText);\n\n dialog.setCanceledOnTouchOutside(cancelTouchOutside);\n dialog.setTitle(title);\n dialog.show();\n\n btn_yes.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogInterface.clickResponse(Id, AppConstant.dialogYes);\n dialog.dismiss();\n }\n });\n\n btn_no.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogInterface.clickResponse(Id, AppConstant.dialogNo);\n dialog.dismiss();\n }\n });\n }", "@Override\n\tprotected void showFisrtDialog() {\n\t\tboolean isFirst=LocalApplication.getInstance().sharereferences.getBoolean(\"music\", false);\n\t if(isFirst){\tshowAlertDialog(showString(R.string.app_Music),\n\t\t\tshowString(R.string.music_dialog),\n\t\t\tnew String[] {showString(R.string.no_dialog), showString(R.string.yes_dialog)}, true, true, null);}\n\t\t LocalApplication.getInstance().sharereferences.edit().putBoolean(\"music\", false).commit();\n\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_QUESTION_CONFIRMATION);\n jbNewOrderButton.setVisible(false);\n jbConfirm.setVisible(true);\n jbCancel.setVisible(true);\n }", "private void confirmacion(String P, String T) {\n int n = JOptionPane.showConfirmDialog(\n null,\n P,\n T,\n JOptionPane.YES_NO_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n N_Cupon ventana = new N_Cupon(conexion);\n ventana.setVisible(true);\n this.setVisible(false);\n //Abrir nueva ventana para insertar Ticket en cupon\n } else {\n this.setVisible(false);\n }\n }", "public void Confirm(){\n new AlertDialog.Builder(MapsActivity.this)\n .setTitle(\"Confirm Location\")\n .setMessage(\"Are you sure about this location?\")\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // continue with delete\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }", "private void showCustomDialog() {\n final Dialog dialog = new Dialog(getContext());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); //before\n // Include dialog.xml file\n dialog.setContentView(R.layout.success_dialog);\n TextView btn_home = dialog.findViewById(R.id.btn_home);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n btn_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n // Set dialog title\n\n dialog.show();\n }", "protected boolean hasModalWindow() {\n return false;\n }", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "public static boolean confirmAction(Container parent, String msg) {\n int rsp = JOptionPane.showConfirmDialog(\n parent,\n msg,\n \"Question\",\n JOptionPane.YES_NO_OPTION\n );\n if (rsp == JOptionPane.NO_OPTION || rsp == JOptionPane.CLOSED_OPTION) {\n return false; //don't replace\n }\n return true;\n }", "private void showFormatConfirmDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\tbuilder.setMessage(R.string.setting_format_desc);\n\t\tbuilder.setNegativeButton(R.string.setting_no,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setPositiveButton(R.string.setting_yes,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t// handler.obtainMessage(REQUEST_FORMAT_SD_CARD).sendToTarget();\n\t\t\t\t\t\tFormatSDCard formatSDCard = new FormatSDCard(handler);\n\t\t\t\t\t\tformatSDCard.start();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tdialog = builder.create();\n\t\tdialog.show();\n\t}", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }", "private void showCheckDialog() {\n AlertDialog.Builder showAuditAlert = new AlertDialog.Builder(this); // Create Alert dialog\n showAuditAlert.setTitle(\"Total prize\"); // Set title\n showAuditAlert.setMessage(\"= \"+mydb.getResultDayAudit(year,month,day).intValue()+\"\"); // Set message\n\n showAuditAlert.setPositiveButton(\"Done\",\n new DialogInterface.OnClickListener()\n { // Can hear \"CLICK\"\n @Override\n public void onClick(DialogInterface dialog,int which)\n {\n \tdialog.dismiss(); // CLICK then disappear\n }\n }\n );\n showAuditAlert.show(); // Show dialog that created upper this line\n }", "public void showConfirm(String message,final String actionCommand) {\n\t\tMessagebox.show(message, new Messagebox.Button[] { Messagebox.Button.YES\n\t\t\t\t, Messagebox.Button.CANCEL }, new EventListener<Messagebox.ClickEvent>() {\n\t\t\tpublic void onEvent(ClickEvent event) throws Exception {\n\t\t\t\tif(event.getButton()==Messagebox.Button.YES){\n\t\t\t\t\tbinder.postCommand(actionCommand, null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }", "public void actionPerformed(ActionEvent e) {\n if(e.getSource() == confirmButton) {\n setVisible(false); // causes all the add text \n }\n else if(e.getSource() == exitButton) {\n System.exit(0);\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}", "private void showbadgedialog() {\n final LayoutInflater li = LayoutInflater.from(mContext);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dialog_badges, null);\n // number=session.getMobileNumber();\n //Initizliaing confirm button fo dialog box and edittext of dialog box\n final Button buttonconfirm = (Button) confirmDialog.findViewById(R.id.buttonConfirm);\n\n\n AlertDialog.Builder alert = new AlertDialog.Builder(mContext);\n\n alert.setView(confirmDialog);\n\n final AlertDialog alertDialog = alert.create();\n alertDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n alertDialog.show();\n\n //On the click of the confirm button from alert dialog\n buttonconfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n }\n });\n\n }", "private boolean showModal(String resource, String title, Object params) throws Exception {\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(resource));\r\n AnchorPane page = loader.load();\r\n\r\n // Create the dialog Stage.\r\n Stage dialogStage = new Stage();\r\n dialogStage.setTitle(title);\r\n dialogStage.initModality(Modality.WINDOW_MODAL);\r\n dialogStage.initOwner(primaryStage);\r\n Scene scene = new Scene(page);\r\n dialogStage.setScene(scene);\r\n\r\n IDataStateModalController controller = loader.getController();\r\n controller.setDialogStage(dialogStage);\r\n controller.setParams(params);\r\n controller.setState(this, this.dataState);\r\n\r\n // Show the dialog and wait until the user closes it\r\n dialogStage.showAndWait();\r\n\r\n return controller.isOkClicked();\r\n }", "public void showAlertDialog(View v){\n AlertDialog.Builder alert = new AlertDialog.Builder(this);\n alert.setTitle(\"Update Details\");\n alert.setMessage(\"Do you really want to update details?\");\n\n //if customer click yes\n alert.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Toast.makeText(MEditProfile.this, \"Update Successfully\", Toast.LENGTH_SHORT).show();\n }\n });\n //if customer click no\n alert.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Toast.makeText(MEditProfile.this,\"\",Toast.LENGTH_SHORT).show();\n }\n });\n alert.create().show();\n }", "public abstract void showConfirmationBox(String message, Consumer<Boolean> resultCallback);", "private void showMsgBox(Context context, String msgTitle, String msgContent, boolean flag){\n final Dialog dialog = new Dialog(context);\n //tell the Dialog to use the dialog.xml as it's layout description\n dialog.setContentView(R.layout.custom_dialog);\n //dialog.setTitle(msgContent);\n TextView title = (TextView) dialog.findViewById(R.id.dlgTitle);\n TextView content = (TextView) dialog.findViewById(R.id.dlgContent);\n title.setText(msgTitle);\n content.setText(msgContent);\n if (!flag){\n LinearLayout linearLayout = (LinearLayout)dialog.findViewById(R.id.type1);\n linearLayout.removeAllViews();\n }else{\n LinearLayout linearLayout = (LinearLayout)dialog.findViewById(R.id.type2);\n linearLayout.removeAllViews();\n }\n Button dlgCancel = (Button) dialog.findViewById(R.id.dlgCancel);\n dlgCancel.setText(\"Okay\");\n dlgCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "private void newGame() \n {\n int input = JOptionPane.showConfirmDialog(null, \"Would you like to play again?\\n\",\"Game has ended\",JOptionPane.YES_NO_OPTION);\n if (input == JOptionPane.NO_OPTION){\n JOptionPane.showMessageDialog(null, \"Thank you for playing! \\n\\nBye Bye!\",\"Game Over\", JOptionPane.PLAIN_MESSAGE);\n System.exit(0);\n }\n else if (input == JOptionPane.YES_OPTION){\n isFirst = false;\n init();\n gameLogic();\n }\n }", "public void setAsDoneDialog() {\n okButton.setText(\"Done\");\n cancelButton.setVisible(false);\n }", "public OsylOkCancelDialog(boolean autoHide, boolean modal,\r\n\t String dialogTitle, String dialogContent, String okButtonLabel,\r\n\t String cancelButtonLabel) {\r\n\tsuper(autoHide, modal);\r\n\tsetOkButtonLabel(okButtonLabel);\r\n\tsetCancelButtonLabel(cancelButtonLabel);\r\n\tinitDialog(dialogTitle, dialogContent);\r\n }", "@Override\n public void onClick(View v) {\n builder.setMessage(R.string.dialog_message2).setTitle(R.string.dialog_title);\n\n //Setting message manually and performing action on button click\n builder.setMessage(\"Do you want to cancel?\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n Toast.makeText(getApplicationContext(), \"payment cancelled\",\n Toast.LENGTH_SHORT).show();\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'NO' Button\n dialog.cancel();\n Toast.makeText(getApplicationContext(), \"payment not cancelled\",\n Toast.LENGTH_SHORT).show();\n }\n });\n AlertDialog alert = builder.create();\n //Setting the title manually\n alert.setTitle(\"Cancel\");\n alert.show();\n }", "private void showDeleteDialog(String yesLabel, String noLabel, String messageText, final int parameterId){\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AppTheme_Dialog));\n builder.setMessage(messageText)\n .setPositiveButton(yesLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n new DeleteAquariumTask(parameterId).execute();\n }\n })\n .setNegativeButton(noLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n builder.create();\n builder.show();\n }", "public PapegaaiDialoog(JFrame frame, boolean isModal) {\n super(frame, true);\n this.setLayout(new GridLayout(4, 2));\n setTitle(\"Voeg papegaai toe\");\n setSize(400, 120);\n //standaard invulling velden\n naamVogel = \"\";\n ringnummer = 0;\n kooinummer = 0;\n //buttons and fields\n Naam = new JLabel(\"Naam: \");\n this.add(Naam);\n RingNummer = new JLabel(\"Ringnummer: \");\n nV = new JTextField();\n this.add(nV);\n this.add(RingNummer);\n rnV = new JTextField();\n this.add(rnV);\n KooiNummer = new JLabel(\"Kooinummer (1 tot 10): \");\n this.add(KooiNummer);\n knV = new JTextField();\n this.add(knV);\n cancel = new JButton(\"Cancel\");\n this.add(cancel);\n cancel.addActionListener(this);\n ok = new JButton(\"OK\");\n this.add(ok);\n ok.addActionListener(this);\n\n }", "@OnClick(R.id.btnConfirm)\n public void onConfirmClicked(){\n new MaterialAlertDialogBuilder(getActivity(), R.style.MaterialAlertDialog_MaterialComponents_Title_Icon)\n .setTitle(R.string.dialog_confirm_title)\n .setMessage(R.string.card_message_demo_small)\n .setPositiveButton(R.string.dialog_confirm, (dialog, which) -> Toast.makeText(getActivity(),\n R.string.message_action_success, Toast.LENGTH_LONG).show())\n .setNegativeButton(R.string.dialog_cancel, null)\n .show();\n\n }", "public void verificaJogo(){\n\t\t\t\tif(jogo.verificaPerdeu()) {\n\t \t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce Perdeu!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t\tif(jogo.verificaGanhou()) {\n\t\t\t\t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce GANHOOOOO!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t}", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the goal.\n deleteGoal();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n public void showDiscardDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive, neutral and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_unsaved_changes_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(R.string.product_config_unsaved_changes_dialog_positive_text, mUnsavedDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(R.string.product_config_unsaved_changes_dialog_negative_text, mUnsavedDialogOnClickListener);\n //Set the Neutral Button and its listener\n builder.setNeutralButton(R.string.product_config_unsaved_changes_dialog_neutral_text, mUnsavedDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}", "boolean isCloseButtonDisplayed();", "void confirm();", "@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}", "public void ConfirmPopupWindowClick(View view) {\n LayoutInflater inflater = (LayoutInflater)\n getSystemService(LAYOUT_INFLATER_SERVICE);\n View popupView = inflater.inflate(R.layout.activity_confirm_pub_crawl, null);\n\n // create the popup window\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\n boolean focusable = true; // lets taps outside the popup also dismiss it\n final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);\n\n // show the popup window\n // which view you pass in doesn't matter, it is only used for the window tolken\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\n\n Button noBtn = (Button) popupView.findViewById(R.id.NoBtn);\n noBtn.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View popupView) {\n popupWindow.dismiss();\n }\n });\n\n Button yesBtn = (Button) popupView.findViewById(R.id.YesBtn);\n yesBtn.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View popupView) {\n popupWindow.dismiss();\n Intent goToRandomPubCrawlActivity = new Intent(AddToPubCrawl.this, random_pub_crawl.class);\n startActivity(goToRandomPubCrawlActivity);\n }\n });\n }", "void ShowWaitDialog(String title, String message);", "@Override\r\n\t\t\t\t\t\t\t\tpublic void setPositiveButton() {\n\t\t\t\t\t\t\t\t\tif (SystemConfig.loginResponse.getDutyFlag().equals(\"on\")) {\r\n\t\t\t\t\t\t\t\t\t\tsendForService(\"1\", str);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(ConstantValue.PROGRESS_CLOSE);\r\n\t\t\t\t\t\t\t\t\t\tMessage message = Message.obtain();\r\n\t\t\t\t\t\t\t\t\t\tmessage.obj = \"下班状态不可以改派任务!\";\r\n\t\t\t\t\t\t\t\t\t\tmessage.what = ConstantValue.ERROE;\r\n\t\t\t\t\t\t\t\t\t\thandler.sendMessage(message);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// for update by haoyun\r\n\t\t\t\t\t\t\t\t\t// 20130401 end\r\n\t\t\t\t\t\t\t\t}", "public void handleNoConfirmButtonAction(ActionEvent event) {\n confirmPane.setVisible(false);\n maskPane.setVisible(false);\n }" ]
[ "0.7313474", "0.6878414", "0.68213373", "0.66773444", "0.66407245", "0.66173446", "0.6614281", "0.6567061", "0.6556532", "0.6518776", "0.64706594", "0.6445523", "0.64423865", "0.64185", "0.6412023", "0.6366252", "0.6360111", "0.6346771", "0.6323234", "0.6313396", "0.62996745", "0.62646574", "0.6263139", "0.62619156", "0.6236289", "0.6233418", "0.6231555", "0.6222188", "0.62078315", "0.6199308", "0.61934537", "0.6190956", "0.61777633", "0.6174485", "0.6170129", "0.6160551", "0.6159757", "0.61439055", "0.6142609", "0.6131193", "0.61305636", "0.6127623", "0.61268824", "0.61258876", "0.6120833", "0.61126506", "0.61007506", "0.61006093", "0.6097728", "0.60889053", "0.6079402", "0.6079357", "0.60750204", "0.60647905", "0.6053", "0.6051043", "0.6045294", "0.60414505", "0.6028808", "0.6025803", "0.60224575", "0.6022234", "0.60190403", "0.60182023", "0.6015131", "0.60115236", "0.5982427", "0.59796584", "0.5969522", "0.5959084", "0.59552914", "0.59536093", "0.59530485", "0.5952178", "0.59492636", "0.59456474", "0.5941348", "0.59376824", "0.59243894", "0.59203076", "0.59192014", "0.5905656", "0.5898631", "0.58964515", "0.5892788", "0.5891041", "0.5889776", "0.58854485", "0.5880306", "0.58796775", "0.58792317", "0.5874236", "0.58714795", "0.5871206", "0.58681494", "0.586423", "0.5859218", "0.58569413", "0.5850712", "0.5850198", "0.58488977" ]
0.0
-1
End of Key Events Getters and Setters for Properties
public int getWidth(){ width = super.getWidth(); return width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void endProperty()\n {\n\n }", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t}", "public SimpleStringProperty getKeyReleasedInput(){\n return keyReleasedInput;\n }", "@Override\n public void key() {\n \n }", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\r\n\t\t\t}", "@Override\r\n public void keyReleased(KeyEvent e) {\r\n \r\n }", "@Override\r\n\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void keyReleased(KeyEvent e) {\n\t\t}", "@Override\n public void keyReleased(KeyEvent e) {\n\n }", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) { \n\t}", "@Override\r\n public void keyReleased(KeyEvent e) {\r\n }", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t}", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\n\t}", "@Override\r\n\t\tpublic void keyReleased(KeyEvent e) {\n\r\n\t\t}", "@Override\r\n\t\tpublic void keyReleased(KeyEvent e) {\n\r\n\t\t}", "@Override\r\n\t\tpublic void keyReleased(KeyEvent e) {\n\r\n\t\t}", "@Override\r\n public void keyReleased(KeyEvent e)\r\n {\n }", "@Override\r\n public void keyReleased(KeyEvent e) {\n }", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\n\t}", "@Override\n\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t}", "@Override\n\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t}", "@Override\n public void keyReleased(KeyEvent e){\n }", "@Override\n public void keyReleased(KeyEvent event) {\n }", "@Override\n\tpublic void keyReleased(KeyEvent e)\n\t\t{\n\t\t\t\n\t\t}", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n public void keyReleased(KeyEvent e) {\n }", "@Override\n public void keyReleased(KeyEvent e) {\n }", "void keyEnd();", "@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n \t\t\tpublic void keyReleased(KeyEvent arg0) {\n \t\t\t\t\n \t\t\t}", "@Override\n public void keyReleased(KeyEvent e) {\n\n }", "@Override\n\tpublic void onKeyRelease(KeyEvent e) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void keyReleased(KeyEvent e) {}", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0)\n\t\t\t{\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void keyReleased\r\n (KeyEvent ke\r\n \r\n \r\n \r\n \r\n\r\n) {\n }", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}" ]
[ "0.7302569", "0.62507683", "0.62507683", "0.62507683", "0.62507683", "0.62507683", "0.62507683", "0.62361085", "0.621926", "0.6199036", "0.618939", "0.61868995", "0.61868995", "0.61868995", "0.61661136", "0.6165591", "0.6143705", "0.6128534", "0.61274", "0.6126689", "0.6126689", "0.6126689", "0.6126689", "0.6126689", "0.6126301", "0.6126301", "0.6126301", "0.6126301", "0.6126301", "0.6126301", "0.6126301", "0.61242664", "0.61235124", "0.61061513", "0.6100638", "0.6100638", "0.6100638", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.61000144", "0.6086656", "0.6086656", "0.6086656", "0.6078706", "0.60751", "0.6070549", "0.6070549", "0.6070549", "0.6070549", "0.6070549", "0.6070549", "0.6070549", "0.6070549", "0.60593027", "0.60593027", "0.60566676", "0.60476655", "0.6045603", "0.6026245", "0.6026245", "0.6026245", "0.6026245", "0.6026245", "0.6026245", "0.60190576", "0.6009951", "0.6009951", "0.6009951", "0.6009951", "0.6009951", "0.6009951", "0.6009951", "0.6007278", "0.6002932", "0.6002926", "0.6001515", "0.6001515", "0.6001515", "0.6001515", "0.6001515", "0.5988801", "0.59834015", "0.5980418", "0.59724516", "0.5962671" ]
0.0
-1
If there are any tabs open then ask the user if she wants to save the tabs
public void windowClosing(WindowEvent we) { if(currentView != null){ askIfTheUserWantsToSaveTabs(); } System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openSavedTabs(){\n\t\tList<String> filenames = new ArrayList<String>();\r\n\t\tint i = 0;\t\t\r\n\t\twhile(propertiesMemento.get(\"tab\" + i) != null){\r\n\t\t\tfilenames.add((String) propertiesMemento.get(\"tab\" + i));\r\n\t\t\ti++;\t\t\t\r\n\t\t}\r\n\r\n\t\tfor(String filename: filenames){\r\n\t\t\tlogger.info(\"Looking for:\" + filename);\r\n\t\t\tFile file = new File(filename);\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\t//JOptionPane.showMessageDialog(null, \"Cannot find \" + filename, \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t// Simply ignore KIS\r\n\t\t\t\tlogger.info(\"Cannot find file \" + filename + \" so not load it as tab\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tString content = FileLoader.loadFile(filename);\r\n\t\t\t\t// If the application can't open one of the recorded tabs then drop out trying to load them.\r\n\t\t\t\tif(!openSavedTab(content)){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void checkAllTabs() {\r\n\t\tboolean close = true;\r\n\t\tfor (int i = 0, n = tabbedPane.getTabCount()-1; i <= n; i++) {\r\n\t\t\tif (! checkForSaving(i)) {\r\n\t\t\t\tclose = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (close) {\r\n\t\t\ttimer.stop();\r\n\t\t\ttimer = null;\r\n\t\t\tdispose();\r\n\t\t\tSystem.exit(0);\t//terminates timer \r\n\t\t}\r\n\t}", "public static void handleTabs() {\n ArrayList<String> allTabs = new ArrayList<String>(driver.getWindowHandles());\n // There will always be 2 tabs.\n driver.switchTo().window(allTabs.get(1));\n driver.close();\n driver.switchTo().window(allTabs.get(0));\n }", "protected void exitSafely() {\n for (int i = 0, numberOfTabs = tabs.getTabCount(); i < numberOfTabs; i++) {\n DocumentTab selectedDocument = (DocumentTab)tabs.getComponentAt(i);\n if (selectedDocument.isModified()) {\n tabs.setSelectedIndex(i);\n int answer = JOptionPane.showConfirmDialog(\n appWindow,\n \"File \" + selectedDocument.getName() + \" is modified.\\n\" +\n \"Do you want to save the file before closing?\",\n \"Warning\",\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.WARNING_MESSAGE);\n if (answer == JOptionPane.CANCEL_OPTION) {\n return;\n } else if (answer == JOptionPane.YES_OPTION) {\n saveCurrentTab(SaveMode.SAVE);\n }\n }\n }\n\n appWindow.dispose();\n }", "private void createTabMenu(Tab tab, MenuItem saveItemTab) {\n Menu tabMenu = new Menu();\n MenuItem closeItem = new MenuItem(\"Close\");\n closeItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n tabCloseEvent(tab);\n }\n });\n MenuItem closeOtersItem = new MenuItem(\"Close Others\");\n closeOtersItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) != editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeLeftItem = new MenuItem(\"Close Tabs to the Left\");\n closeLeftItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) < editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeRightItem = new MenuItem(\"Close Tabs to the Right\");\n closeRightItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) > editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeAllItem = new MenuItem(\"Close All\");\n closeAllItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n tabCloseEvent(closeTab);\n }\n }\n });\n MenuItemSeparator sep = new MenuItemSeparator();\n if (saveItemTab != null) {\n MenuItemIfFunction enableCondition = new MenuItemIfFunction() {\n public boolean execute(Canvas target, Menu menu, MenuItem item) {\n return tab == editorTabSet.getSelectedTab();\n }\n };\n\n saveItemTab.setEnableIfCondition(enableCondition);\n saveItemTab.setKeyTitle(\"Ctrl + S\");\n\n // If you use addItem, the association with the shortcut key is lost.\n tabMenu.setItems(saveItemTab, sep, closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n } else {\n tabMenu.setItems(closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n }\n tab.setContextMenu(tabMenu);\n }", "public boolean newTabOpener() {\n\t\tString selectLinkOpeninNewTab = Keys.chord(Keys.CONTROL, \"t\");\n\t\tdriver.findElement(By.tagName(\"html\")).sendKeys(selectLinkOpeninNewTab);\n\t\treturn true;\n\t}", "public void allowUserToQuit(){\n int answer = JOptionPane.showConfirmDialog(this, \"Are you sure you want to quit?\", \"Quit?\", JOptionPane.YES_NO_OPTION);\r\n \r\n if (answer == JOptionPane.YES_OPTION) {\r\n \ttry {\r\n \t\tpropertiesMemento.saveProperties(this);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Unable to save properties. Ensure the file \" + propertiesMemento.getAppDir() + \"appProp.txt is not in use by another application.\", \r\n\t\t\t\t\t\t\"Unable to save properties\", JOptionPane.WARNING_MESSAGE);\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t// If there are any tabs open then ask the user if she wants to save the tabs\r\n\t\t\tif(currentView != null){\r\n\t\t\t\taskIfTheUserWantsToSaveTabs();\r\n\t\t\t}\r\n\r\n \tSystem.exit(0);\r\n } \r\n }", "public void manageTabsAndWindows() throws Exception{\n\t\tfor(int i = 0; i <= 4; i++){\n\t\t\t((JavascriptExecutor) driver).executeScript(\"window.open();\");\n\t\t}\n\n\t\t//close all tabs open including parent tab\n\t\tfor (String winHandle : driver.getWindowHandles()) {\n\t\t driver.switchTo().window(winHandle);\n\t\t System.out.println(\"Found handle: \" + winHandle);\n\t\t driver.close();\n\t\t}\n\n\t\t\n\t}", "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "private void updateTabButtons() {\n\t\tif (currentTab == null || currentTab.equals(\"history\")) {\n\t\t\thistory.setDisable(true);\n\t\t\tlanguage.setDisable(false);\n\t\t} else if (currentTab == null || currentTab.equals(\"language\")) {\n\t\t\tlanguage.setDisable(true);\n\t\t\thistory.setDisable(false);\n\t\t}\n\t}", "private boolean checkForSaving(Integer i) {\r\n\t\tint index;\r\n\t\tif (i == null) {\r\n\t\t\tindex = tabbedPane.getSelectedIndex();\r\n\t\t} else {\r\n\t\t\tindex = i;\r\n\t\t}\r\n\t\t\r\n\t\tif (tabbedPane.getIconAt(index) == redIcon) {\r\n\t\t\tint pressed = JOptionPane.showConfirmDialog(\r\n\t\t\t\t\tJNotepadApp.this,\r\n\t\t\t\t\ttabbedPane.getTitleAt(index)+\" \"+flp.getString(\"notSaved\"),\r\n\t\t\t\t\tflp.getString(\"save\"),\r\n\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\tif (pressed == JOptionPane.YES_OPTION) {\r\n\t\t\t\tsaveDocumentAction.actionPerformed(null);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tif (pressed == JOptionPane.CANCEL_OPTION) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public void saveHistory() {\r\n\t\tJFileChooser jfc = new JFileChooser();\r\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\tjfc.setDialogTitle(\"Save \" + curveName + \" history\");\r\n\t\tjfc.setSelectedFile(new File(\".txt\"));\r\n\t\tint returnVal = jfc.showSaveDialog(getRootPane());\r\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tif (!cancelBecauseFileExist(jfc.getSelectedFile())) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\thistory.save(jfc.getSelectedFile());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Error while saving the history\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean validateTab();", "public void openDefaultTabs() {\r\n player.getConfigManager().set(108, 0);\r\n for (Sidebar sidebar : Sidebar.values()) {\r\n if (sidebar == Sidebar.MAGIC_TAB) {\r\n openTab(sidebar.ordinal(), new Component(player.getSpellBookManager().getSpellBook()));\r\n continue;\r\n }\r\n if (sidebar == Sidebar.PRAYER_TAB) {\r\n openTab(sidebar.ordinal(), new Component(player.getSavedData().getGlobalData().getPrayerBook()));\r\n continue;\r\n }\r\n if (sidebar == Sidebar.QUEST_TAB) {\r\n openTab(sidebar.ordinal(), new Component(player.getAttribute(\"quest_tab\", Sidebar.QUEST_TAB.getInterfaceId())));\r\n continue;\r\n }\r\n openTab(sidebar.ordinal(), new Component(sidebar.getInterfaceId()));\r\n }\r\n WeaponInterface inter = player.getExtension(WeaponInterface.class);\r\n if (inter == null) {\r\n player.addExtension(WeaponInterface.class, inter = new WeaponInterface(player));\r\n }\r\n openTab(0, inter); // Attack\r\n//\t\tif (player.getProperties().getAutocastSpell() != null) {\r\n//\t\t\tinter.selectAutoSpell(inter.getAutospellId(player.getProperties().getAutocastSpell().getSpellId()), true);\r\n//\t\t}\r\n }", "private void enableTabPages() {\n // Disables all tabs except the first (the common for all Net Objects)\n for (int i = jTabbedPane1.getTabCount() - 1; i > 0; i--) {\n int tabIndex = i;\n // Enables specific Net Object tab\n if (!IntStream.of(currentTabIndices).anyMatch(x -> x == tabIndex)) {\n this.jTabbedPane1.remove(i);\n }\n }\n }", "private void tabCloseEvent(Tab tab) {\n final String tabName = tab.getAttributeAsString(\"TabName\");\n final Editor editor = (Editor) tab.getAttributeAsObject(EDITOR);\n\n if (editor != null && editor.isChanged()) {\n final Dialog dialog = new Dialog();\n dialog.setIsModal(true);\n dialog.setShowModalMask(true);\n dialog.setCanDrag(true);\n dialog.setCanDragReposition(true);\n dialog.setTitle(\"Save File\");\n dialog.setMessage(\"Save changes in '\" + tabName + \"'?\");\n dialog.setIcon(\"[SKIN]ask.png\");\n dialog.addCloseClickHandler(e -> dialog.markForDestroy());\n Button dialogSave = new Button(\"Save\");\n Button dialogDontSave = new Button(\"Don't Save\");\n Button dialogCancel = new Button(\"Cancel\");\n dialogSave.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n editor.save(ModelingProjectView.this, editor, tab, new PostProcessHandler() {\n @Override\n public void execute() {\n editorTabSet.selectTab(tab);\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n }\n });\n dialog.markForDestroy();\n }\n });\n dialogDontSave.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n editorTabSet.selectTab(tab);\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n dialog.markForDestroy();\n }\n });\n dialogCancel.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n dialog.markForDestroy();\n }\n });\n dialog.setButtons(dialogSave, dialogDontSave, dialogCancel);\n dialog.draw();\n } else {\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n }\n }", "void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }", "private static void checkSaveOnExit() {\n\t\tif(!saved && !config.isUpdateDB()) {\n \t\tint option = JOptionPane.showOptionDialog(frame,\n \t\t\t\t\"There are unsaved changes\\nDo you want to save them now?\",\n \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n \t\tswitch(option) {\n \t\tcase 0:\n \t\t\tportfolio.save(WORKING_FILE);\n \t\tcase 1:\n \t\t\tframe.dispose();\n \t\tdefault:\n \t\t\tbreak; \t \t\t\n \t\t}\n \t\tSystem.out.println(\"unsaved changes \" + option);\n \t} else {\n \t\tframe.dispose();\n \t}\n\t\t\n\t}", "public boolean tabClosing(int index, String title);", "private boolean serializeAs() {\r\n JFrame parentFrame = new JFrame();\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setDialogTitle(\"Save ToDoList\");\r\n fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n int userSelection = fileChooser.showSaveDialog(parentFrame);\r\n if (userSelection == JFileChooser.APPROVE_OPTION) {\r\n File fileToSave = fileChooser.getSelectedFile();\r\n this.newFile = sr.saveAs(userSelection, fileToSave);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "private void initFileTab()\n\t{\n\t\t\n\t\tMainApp.getMainController().requestAddTab(fileTab);\n\t\t\n\t\t\n\t\tfileTab.getCodeArea().textProperty().addListener((obs, oldv, newv) -> dirty.set(true));\n\t\t\n\t\tdirty.addListener((obs, oldv, newv) -> {\n\t\t\t\n\t\t\tString tabTitle = fileTab.getText();\n\t\t\t\n\t\t\tif (newv && !tabTitle.endsWith(\"*\"))\n\t\t\t\tfileTab.setText(tabTitle + \"*\");\n\t\t\t\n\t\t\telse if (!newv && tabTitle.endsWith(\"*\"))\n\t\t\t\tfileTab.setText(tabTitle.substring(0, tabTitle.length()-1));\n\t\t});\n\t\t\n\t\t\n\t\tfileTab.setOnCloseRequest(e -> {\n\t\t\t\n\t\t\tboolean success = FileManager.closeFile(this);\n\t\t\t\n\t\t\tif (!success)\n\t\t\t\te.consume();\n\t\t});\n\t\t\n\t\tMainApp.getMainController().selectTab(fileTab);\n\t}", "private void setupTabs() {\n }", "private void clickSaveFile(Editor editor, Tab tab) {\n editor.addSaveHandler(createClickSavaHandler(editor, tab));\n }", "private void checkSave() {\n if (view.getSave()) {\n try {\n saveGame.export(view.getSaveGameName());\n } catch (Exception e) {\n System.out.println(\"saving failed\");\n }\n System.exit(0);\n }\n }", "private void promptToSaveBeforeClosing() {\r\n int userChoice = JOptionPane.showConfirmDialog(this,\r\n \"You have unsaved work. Would you like to save before exiting?\",\r\n \"Save before quitting?\",\r\n JOptionPane.YES_NO_CANCEL_OPTION);\r\n\r\n if (userChoice == JOptionPane.YES_OPTION) {\r\n String saveFile = graph.getFilename();\r\n if (saveFile == null || saveFile.length() == 0)\r\n saveFile = GraphIO.chooseSaveFile(graph.getFilename());\r\n GraphIO.saveGraph(graph, saveFile);\r\n }\r\n\r\n if (userChoice != JOptionPane.CANCEL_OPTION)\r\n dispose();\r\n }", "public void applyTab();", "private static boolean tabExist(TabPane tabpane, Tab tab, int tabSize) {\n for (int i = 0; i < tabSize; i++) {\n\n if (tab.getId().equals(tabpane.getTabs().get(i).getId())) {\n tabselect = i;\n return true;\n }\n }\n return false;\n }", "public boolean pressTab() {\n\t\treturn false;\n\t}", "@Override\n public void saveFile() {\n LOG.fine(\"no.of viewers:\" + viewers.size());\n // assuming the widget that is active is the dirty widget. save it\n for (FileViewer viewer : viewers) {\n if (viewer.isDirty()) {\n saveFile(viewer);\n break;\n }\n }\n }", "public boolean closeSingleTab() {\r\n if (singleTab != null) {\r\n close(singleTab);\r\n singleTab = null;\r\n }\r\n return true;\r\n }", "protected void showTabs() {\r\n\t\tif (getPageCount() > 1) {\r\n\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y - 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void closeTab() {\n\t\tclose();\n\t\t\n\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\tif(hostName.equals(Main.gameHandler.get(i).getHostName())) {\n\t\t\t\tMain.gameHandler.remove(i);\n\t\t\t}\n\t\t}\n\t}", "protected boolean saveAsLastFragment() {\n return true;\n }", "public void openSavedFilesFrame()\n {\n //create a new load frame\n savedFilesFrame = new SavedFilesFrame(this);\n //if user saved some games and wants to see them on this frame\n if( !firstLoadGame )\n {\n savedFilesFrame.updatePanel(sideMenu.getSaved_files());\n }\n }", "@Override\n public void bookmarkedStatusHasChanged(Tab tab) {\n mUi.bookmarkedStatusHasChanged(tab);\n }", "public void switchToChildTab() {\n for (String child : driver.getWindowHandles()) {\n try {\n driver.switchTo().window(child);\n } catch (NoSuchWindowException e) {\n log.error(\"Window is not found\");\n log.error(e.toString());\n }\n }\n }", "protected void actionPerformedSave ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.syncSave ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.syncSave ();\n this.setVisible (false);\n this.dispose ();\n }", "private void saveAndExit() {\n if (yesNoQuestion(\"Would you like to save the current active courses to the saved list before saving?\")) {\n addActiveCourseListToCourseList();\n }\n try {\n JsonWriter writer = new JsonWriter(\"./data/ScheduleList.json\",\n \"./data/CourseList.json\");\n writer.open(true);\n writer.writeScheduleList(scheduleList);\n writer.close(true);\n\n writer.open(false);\n writer.writeCourseList(courseList);\n writer.close(false);\n } catch (IOException ioe) {\n System.out.println(\"File Not Found, failed to save\");\n } catch (Exception e) {\n System.out.println(\"Unexpected Error, failed to save\");\n }\n\n }", "public void bukaTabAwal() {\n Intent i = getIntent();\n if (i != null) {\n int tab_number;\n if (JENIS_USER.equals(JENIS_USER_ALUMNI)) {\n tab_number = i.getIntExtra(INDEX_OPENED_TAB_KEY, 2);\n } else if (JENIS_USER.equals(JENIS_USER_PIMPINAN)) {\n tab_number = i.getIntExtra(INDEX_OPENED_TAB_KEY, 0);\n } else {\n tab_number = i.getIntExtra(INDEX_OPENED_TAB_KEY, 1);\n }\n\n if (tab_number == 0) {\n tabLayout.getTabAt(1).select();\n tabLayout.getTabAt(0).select();\n INDEX_OPENED_TAB = 0;\n } else {\n tabLayout.getTabAt(tab_number).select();\n INDEX_OPENED_TAB = tab_number;\n }\n }\n }", "boolean openPageInEditMode();", "public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }", "@Test(priority = 4)\r\n\tpublic void PDPPage_TabsDIsplay() throws Exception\r\n\t{\r\n\t\tthis.driver=driver;\r\n Click_Action.Btn_Click(PageObjectModal.WISE_PDPPage_Page.PDP_TroubleShoot_CSS, 7, 6,\"CSS\");\r\n \r\n //Thread.sleep(1000);\r\n AssertCls.AssertText(PageObjectModal.WISE_PDPPage_Page.PDP_TroubleShootTitle_CSS, 7, 6, 7, 5,\"CSS\");\r\n\r\n Click_Action.Btn_Click(PageObjectModal.WISE_PDPPage_Page.PDP_HowTo_CSS, 8, 6,\"CSS\");\r\n \r\n Thread.sleep(1000);\r\n AssertCls.AssertText(PageObjectModal.WISE_PDPPage_Page.PDP_HowToTitle_CSS, 8, 6, 8, 5,\"CSS\");\r\nClick_Action.Btn_Click(PageObjectModal.WISE_PDPPage_Page.PDP_ProdInfo_CSS, 9, 6,\"CSS\");\r\n \r\n Thread.sleep(1000);\r\n AssertCls.AssertText(PageObjectModal.WISE_PDPPage_Page.PDP_ProdInfoTitle_CSS, 9, 6, 9, 5,\"CSS\");\r\n /*\r\n //**\r\n Set<String> AllWindowHandles = driver.getWindowHandles();\r\n String window1 = (String) AllWindowHandles.toArray()[0];\r\n System.out.print(\"window1 handle code = \"+AllWindowHandles.toArray()[0]);\r\n String window2 = (String) AllWindowHandles.toArray()[1];\r\n System.out.print(\"\\nwindow2 handle code = \"+AllWindowHandles.toArray()[1]);\r\n driver.switchTo().window(window2);\r\n \r\n //**\r\n */\r\n \r\n // driver.close();\r\n //driver.switchTo().window(window1);\r\n //driver.close();\r\n\t\t\r\n\t\t\t\t\r\n\t}", "public void navigateToTab(String tabName) {\n if (tabName.equals(\"File\") || tabName.equals(\"Appreciation\") ||\n tabName.equals(\"Announcement\") || tabName.equals(\"Workflow\")) {\n WebElement more = driver.findElement(By.xpath(\"//span[@id='feed-add-post-form-link-text' and contains(text(),'More')]\"));\n more.click();\n BrowserUtils.wait(3);\n WebElement subModule=driver.findElement(By.xpath(\"//span[@class='menu-popup-item-text' and contains(text(),'\"+tabName+\"')]\"));\n subModule.click();\n } else {\n String tabXpath = \"//span[@class='feed-add-post-form-link']//span[text()='\" + tabName + \"']\";\n WebElement tab = driver.findElement(By.xpath(tabXpath));\n\n tab.click();\n }\n }", "void loadSet() {\n int returnVal = fc.showOpenDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n System.out.println(\"Opening: \" + file.getName());\n closeAllTabs();\n try {\n FileInputStream fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n //loopButton.setSelected( ois.readObject() ); \n ArrayList l = (ArrayList) ois.readObject();\n System.out.println(\"read \"+l.size()+\" thingies\");\n ois.close();\n for(int i=0; i<l.size(); i++) {\n HashMap m = (HashMap) l.get(i);\n openNewTab();\n getCurrentTab().paste(m);\n }\n } catch(Exception e) {\n System.out.println(\"Open error \"+e);\n }\n }", "private boolean shouldEnableAddCurrentPageMenu(ChromeTabbedActivity activity) {\n if (activity.getActivityTab() == null) return false;\n if (!ReadingListUtils.isReadingListSupported(activity.getActivityTab().getUrl()))\n return false;\n BookmarkId existingBookmark =\n mDelegate.getModel().getUserBookmarkIdForTab(activity.getActivityTab());\n if (existingBookmark == null) return true;\n return existingBookmark.getType() != BookmarkType.READING_LIST;\n }", "@Override\n public void onTabChanged(String tabId) {\n\t\t\t\tif(tabId.equalsIgnoreCase(FocusKeyWord.page_log.toString())&&isFirstInitLogBoolean){\n \tif(isLoadingLog==false)\n \t\tLoadPlayerLog(); \n \tSetFocusToView(refreshButton);\n \tisFirstInitLogBoolean=false;\n }\n else if(tabId.equalsIgnoreCase(FocusKeyWord.page_download.toString())&&isFirstInitDownloadBoolean){\n \tStartDownloadDatas();\n \tisFirstInitDownloadBoolean=false;\n }\n }", "private void setDirtyFlagToTabTitle(Tab tab) {\n String extension = tab.getAttributeAsString(\"Extension\");\n String tabName = tab.getAttributeAsString(\"TabName\");\n\n final Editor editor = (Editor) tab.getAttributeAsObject(EDITOR);\n if (editor != null && editor.isChanged() && tabName.indexOf('*') == -1) {\n tabName = \"*\" + tabName;\n } else if (editor != null && !editor.isChanged() && tabName.indexOf('*') > -1) {\n tabName = tabName.replace(\"*\", \"\");\n }\n if (!tabName.equals(tab.getAttributeAsString(\"TabName\"))) {\n tab.setAttribute(\"TabName\", tabName);\n editorTabSet.setTabTitle(tab, getTabImgTitle(tabName, Extension.getByCode(extension)));\n editorTabSet.markForRedraw();\n }\n if (tab.getAttributeAsObject(\"FileHistoryEditor\") instanceof FileHistoryEditor) {\n editorTabSet.setTabTitle(tab, getHistoryTabImgTitle(tab.getAttributeAsString(\"TabName\")));\n editorTabSet.markForRedraw();\n }\n }", "protected abstract void updateTabState();", "public void checkSaveObjectData() {\r\n\t\tif (this.objectDescriptionTabItem != null) this.objectDescriptionTabItem.checkSaveObjectData();\r\n\t}", "@Override\n public boolean canFinish() {\n IWizardPage page = getContainer().getCurrentPage();\n return super.canFinish() && page == getPages()[getPageCount()-1];\n }", "public void tabChange() {\r\n\t}", "public void tabSelected();", "protected boolean promptToSave() {\n if (!boxChanged) {\n return true;\n }\n switch (JOptionPane.showConfirmDialog(this,\n bundle.getString(\"Do_you_want_to_save_the_changes_to_\")\n + (boxFile == null ? bundle.getString(\"Untitled\") : boxFile.getName()) + \"?\",\n APP_NAME, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {\n case JOptionPane.YES_OPTION:\n return saveAction();\n case JOptionPane.NO_OPTION:\n return true;\n default:\n return false;\n }\n }", "@Override\n public void windowClosing(WindowEvent e) {\n EditFrame ew = (EditFrame) e.getWindow();\n int j;\n for(int i = 0; i < windows.size(); i++) {\n j = windows.get(i).windowClosing();\n if(j == 0)\n windows.get(i).save(windows.get(i).name);\n if(j == 2 || j == -1)\n return;\n }\n windows = new ArrayList();\n e.getWindow().dispose(); \n }", "@Test\n public void testEditorsTab() {\n try {\n //Navigate to users search page (faster this way)\n driver.get(\"http://stackoverflow.com/users\");\n \n wait(3);\n \n //Select editors tab\n driver.findElement(By.cssSelector(\"#tabs > a:nth-child(4)\")).click();\n \n wait(5);\n \n //Find if first user's info contains their number of edits\n WebElement userDetails = driver.findElement(By.className(\"user-tags\"));\n assertTrue(userDetails.getText().contains(\"edits\"));\n }\n catch(NoSuchElementException nsee) {\n fail();\n }\n }", "private boolean promptToSave() throws IOException {\n applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION).show(\"Save work?\", \n \"Would you like to save your current work?\");\n return ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.YES) \n || ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.NO);\n }", "@Test\n @SmallTest\n @UiThreadTest\n public void testTabSaving() throws Throwable {\n try (StrictModeContext ignored = StrictModeContext.allowAllThreadPolicies()) {\n TabImpl tab = new MockTab(1, false);\n CriticalPersistedTabData spyCriticalPersistedTabData =\n spy(CriticalPersistedTabData.from(tab));\n tab = MockTab.initializeWithCriticalPersistedTabData(tab, spyCriticalPersistedTabData);\n tab.registerTabSaving();\n\n tab.setIsTabSaveEnabled(true);\n verify(spyCriticalPersistedTabData, times(1)).save();\n verify(spyCriticalPersistedTabData, times(0)).delete();\n\n tab.setIsTabSaveEnabled(false);\n verify(spyCriticalPersistedTabData, times(1)).save();\n verify(spyCriticalPersistedTabData, times(1)).delete();\n\n tab.setIsTabSaveEnabled(true);\n verify(spyCriticalPersistedTabData, times(2)).save();\n verify(spyCriticalPersistedTabData, times(1)).delete();\n }\n }", "public void switchTotab(String showName) {\n\t\tArrayList<String> tabs = new ArrayList<String>(_eventFiringDriver.getWindowHandles());\n\t\tfor (String tab : tabs) {\n\t\t\t_eventFiringDriver.switchTo().window(tab);\n\t\t\tif (_eventFiringDriver.getTitle().contains(showName))\n\t\t\t\tbreak;\n\t\t}\n\t\tsleep(5);\n\t}", "private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }", "protected void hideTabs() {\r\n\t\tif (getPageCount() <= 1) {\r\n\t\t\tsetPageText(0, \"\");\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(1);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y + 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean clicktab(String tabname) throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\tBy tab = By.xpath(\"//div[@class='ds_jobheader']//div[contains(.,'\"+tabname+\"')]\");\r\n\t\t\t\tSystem.out.println(tab);\r\n\t\t\t\telement = driver.findElement(tab);\r\n\t\t\t\tflag = element.isDisplayed() && element.isEnabled();\r\n\t\t\t\tAssert.assertTrue(flag, \"Tab Not present\");\r\n\t\t\t\telement.click();\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t\ttxt = element.getAttribute(\"class\");\r\n\t\t\t\tSystem.out.println(txt);\r\n\t\t\t\tif (txt.contains(\"active\")){\r\n\t\t\t\t\tflag = true;\r\n\t\t\t\t\tSystem.out.println(\"Tab \" + tabname +\" is selected\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"Tab \" + tabname +\" is not selected\");\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t}\r\n\t\t\t\tAssert.assertTrue(flag, \"Tab can not be selected\");\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Tab \"+tabname +\" NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\treturn flag;\r\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void addTab(Tab tab, boolean setSelected) {\n\t\t\n\t}", "private boolean changeModes() {\n\n\t\tif (fieldsChanged) {\n\t\t\tMessageBox mbWarning = new MessageBox(getShell(),\n\t\t\t\t\tSWT.ICON_WARNING | SWT.YES | SWT.NO | SWT.CANCEL);\n\t\t\tmbWarning.setText(\"iDART: Save Changes?\");\n\t\t\tmbWarning\n\t\t\t.setMessage(\"You have not saved your changes. Would you like to save your changes?\");\n\t\t\tswitch( mbWarning.open()) {\n\n\t\t\t// proceed but save changes\n\t\t\tcase SWT.YES:\n\t\t\t\tcmdSaveWidgetSelected();\n\t\t\t\treturn true;\n\t\t\t\t// proceed without saving changes\n\t\t\tcase SWT.NO:\n\t\t\t\treturn true;\n\t\t\t\t// remain in current mode\n\t\t\tcase SWT.CANCEL:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// proceed to next mode\n\t\treturn true;\n\t}", "private static void OnQueryStatusTabBackward(Object sender, CanExecuteRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender);\r\n if (This != null && This.AcceptsTab) \r\n { \r\n args.CanExecute = true;\r\n } \r\n else\r\n {\r\n args.ContinueRouting = true;\r\n } \r\n }", "private void showTab(int tab) {\n switch (tab) {\n case OUTING_TAB_EXPENSES:\n switchToExpensesTab();\n break;\n case OUTING_TAB_BUDDIES:\n switchToBuddiesTab();\n break;\n }\n\n this.activeTab = tab;\n }", "private void saveCurrentFile(String file) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tPath path = Paths.get(file);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.write(path, editor.getText().getBytes(StandardCharsets.UTF_8));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tJNotepadApp.this,\r\n\t\t\t\t\tflp.getString(\"saveError\"),\r\n\t\t\t\t\tflp.getString(\"error\"),\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\tJNotepadApp.this,\r\n\t\t\t\tflp.getString(\"saved\"),\r\n\t\t\t\t\"Info\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\r\n\t\tchangeCurrentIcon(greenIcon);\r\n\t\t\r\n\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\ttabbedPane.setToolTipTextAt(index, path.toString());\r\n\t\ttabbedPane.setTitleAt(index, path.getFileName().toString());\r\n\t\t\r\n\t\tfor (ChangeListener l : tabbedPane.getChangeListeners()) {\r\n\t\t\tl.stateChanged(new ChangeEvent(tabbedPane));\r\n\t\t}\r\n\t}", "private void exportTabDelim() {\n boolean modOK = modIfChanged();\n int exported = 0;\n if (modOK) {\n fileChooser.setDialogTitle (\"Export to Tab-Delimited\");\n fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n File selectedFile = fileChooser.showSaveDialog (this);\n if (selectedFile != null) {\n TabDelimFile tabs = new TabDelimFile(selectedFile);\n try {\n tabs.openForOutput(ClubEvent.getRecDef());\n for (int i = 0; i < clubEventList.size(); i++) {\n ClubEvent nextClubEvent = clubEventList.get(i);\n if (nextClubEvent != null) {\n tabs.nextRecordOut(nextClubEvent.getDataRec());\n exported++;\n }\n }\n tabs.close();\n JOptionPane.showMessageDialog(this,\n String.valueOf(exported) + \" Club Events exported successfully to\"\n + GlobalConstants.LINE_FEED\n + selectedFile.toString(),\n \"Export Results\",\n JOptionPane.INFORMATION_MESSAGE,\n Home.getShared().getIcon());\n logger.recordEvent (LogEvent.NORMAL, String.valueOf(exported) \n + \" Club Events exported in tab-delimited format to \" \n + selectedFile.toString(),\n false);\n statusBar.setStatus(String.valueOf(exported) \n + \" Club Events exported\");\n } catch (java.io.IOException e) {\n logger.recordEvent (LogEvent.MEDIUM,\n \"Problem exporting Club Events to \" + selectedFile.toString(),\n false);\n trouble.report (\"I/O error attempting to export club events to \" \n + selectedFile.toString(),\n \"I/O Error\");\n statusBar.setStatus(\"Trouble exporting Club Events\");\n } // end if I/O error\n } // end if user selected an output file\n } // end if were able to save the last modified record\n }", "public void saveAsImage(){\n\t\tif(currentView == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open before an image can be saved\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcurrentView.saveAsImage();\r\n\t}", "private static void OnQueryStatusTabForward(Object sender, CanExecuteRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n if (This != null && This.AcceptsTab)\r\n { \r\n args.CanExecute = true;\r\n }\r\n else\r\n { \r\n args.ContinueRouting = true;\r\n } \r\n }", "@Test\r\n\tpublic void TC004() {\r\n\t\t// 1. User Opens the JBrick application\r\n\t\t// => The Code Frame has only one tab opened, \"New File 1\"\r\n\t\t\r\n\t\tMainWindow jbricks = StartupFunctions.newJBricksInstance(\"JBricks - TC004\");\r\n\t\tString fileName = FileFunctions.getFileName(jbricks);\r\n\t\tassertTrue(fileName.equals(\"New File 1\"));\r\n\t\t\r\n\t\t// 2. User creates a new file using File>New menu option\r\n\t\t// => A new tab is generated in the code frame, labeled \"New File 2\"\r\n\t\t\r\n\t\tMenuFunctions.newFile(jbricks);\r\n\t\tint tabCount = FileFunctions.getTabCount(jbricks);\r\n\t\tassertTrue(tabCount == 2);\r\n\t\tfileName = FileFunctions.getCurrentFile(jbricks);\r\n\t\tassertTrue(fileName.equals(\"New File 2\"));\r\n\t}", "@Override\n\tpublic void onTabChange() {\n\t}", "private void openHistoryManagementWindow() {\r\n\t\tnew JFrameHistory(this.jFrameMainWindow.getUser());\r\n\t}", "public void saveRecentPaneFiles() {\n try {\r\n // open the file for writing the recent files \r\n FileOutputStream output = new FileOutputStream(fileWithFileListOfPaneRecentFiles); \r\n\r\n //create writer stream\r\n OutputStreamWriter recentsWriter= new OutputStreamWriter(output);\r\n int fileCnt=0; // restrict the maximum number of recent files\r\n\r\n for (int k=0; k<recentPaneFiles.size(); k++) {\r\n String currentRecentFile = (String)recentPaneFiles.elementAt(k)+\"\\n\";\r\n recentsWriter.write(currentRecentFile, 0, currentRecentFile.length());\r\n if (fileCnt++ == GlobalValues.maxNumberOfRecentFiles) break;\r\n }\r\n recentsWriter.close();\r\n output.close();\r\n }\r\n catch(java.io.IOException except)\r\n {\r\n System.out.println(\"IO exception in saveRecentFiles\");\r\n System.out.println(except.getMessage());\r\n except.printStackTrace();\r\n }\r\n }", "void doSaveAs() {\r\n\t\tMapOpenSaveDialog dlg = new MapOpenSaveDialog(true, labels, saveSettings);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.saveSettings != null) {\r\n\t\t\tsaveSettings = dlg.saveSettings;\r\n\t\t\tfinal String fn = dlg.saveSettings.fileName.getPath();\r\n\t\t\taddRecentEntry(fn);\r\n\t\t\tdoSave();\r\n\t\t}\r\n\t}", "public void actionPerformed(java.awt.event.ActionEvent evt) {\n if (!askSave()) {\n return;\n }\n //loop until user choose valid file\n while (true) {\n int result = chooser.showOpenDialog(form);\n //check if user chooser approve option\n if (result == JFileChooser.APPROVE_OPTION) {\n File openFile = chooser.getSelectedFile();\n //check if open file is exist\n if (openFile.exists()) {\n file = openFile;\n text.setText(\"\");\n setSaveTitle(openFile.getName());\n writeToTextArea(openFile);\n saved = true;\n break;\n } else {\n JOptionPane.showMessageDialog(form, \"File not found\", \"Open\", JOptionPane.OK_OPTION);\n }\n } else {\n break;\n }\n\n }\n }", "public void saveFile() {\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\tfileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;;\t\t\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\ttry {\n\t\t\tif(fl.exists()) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"The file with this name already exists, do you want to overwrite it?\", \"Save File\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tFiles.delete(fl.toPath());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The specified folder doesnt exist.\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void tabClosed(int index, String title);", "public void save() {\n savePrefs();\n }", "@Override\n public void bookmarksOrHistoryPicker(ComboViews startView) {\n if (mTabControl.getCurrentWebView() == null) {\n return;\n }\n // clear action mode\n if (isInCustomActionMode()) {\n endActionMode();\n }\n Bundle extras = new Bundle();\n // Disable opening in a new window if we have maxed out the windows\n extras.putBoolean(BrowserBookmarksPage.EXTRA_DISABLE_WINDOW, !mTabControl.canCreateNewTab());\n mUi.showComboView(startView, extras);\n }", "@Override\n public boolean canClose() {\n if (obj != null && obj.isModified()) {\n NotifyDescriptor.Confirmation mesg = new NotifyDescriptor.Confirmation(\"Scene has not been saved,\\ndo you want to save it?\",\n \"Not Saved\",\n NotifyDescriptor.YES_NO_CANCEL_OPTION);\n DialogDisplayer.getDefault().notify(mesg);\n if (mesg.getValue() == NotifyDescriptor.Confirmation.YES_OPTION) {\n try {\n obj.getCookie(SaveCookie.class).save();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n } else if (mesg.getValue() == NotifyDescriptor.Confirmation.CANCEL_OPTION) {\n return false;\n } else if (mesg.getValue() == NotifyDescriptor.Confirmation.NO_OPTION) {\n obj.setModified(false);\n return true;\n }\n }\n return true;\n }", "public boolean promptToSave()\r\n {\r\n // PROMPT THE USER TO SAVE UNSAVED WORK\r\n AnimatedSpriteEditorGUI gui = AnimatedSpriteEditor.getEditor().getGUI();\r\n int selection =JOptionPane.showOptionDialog(gui, \r\n PROMPT_TO_SAVE_TEXT, PROMPT_TO_SAVE_TITLE_TEXT, \r\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, \r\n null, null, null);\r\n \r\n // IF THE USER SAID YES, THEN SAVE BEFORE MOVING ON\r\n if (selection == JOptionPane.YES_OPTION)\r\n {\r\n poseIO.savePose(currentFile, false);\r\n poseIO.savePoseImage(currentPoseName, poseID);\r\n saved = true;\r\n }\r\n \r\n // IF THE USER SAID CANCEL, THEN WE'LL TELL WHOEVER\r\n // CALLED THIS THAT THE USER IS NOT INTERESTED ANYMORE\r\n else if (selection == JOptionPane.CANCEL_OPTION)\r\n {\r\n return false;\r\n }\r\n\r\n // IF THE USER SAID NO, WE JUST GO ON WITHOUT SAVING\r\n // BUT FOR BOTH YES AND NO WE DO WHATEVER THE USER\r\n // HAD IN MIND IN THE FIRST PLACE\r\n return true;\r\n }", "public boolean tabClose(TabItem item) throws KettleException\n\t{\n\t\tList<TabMapEntry> collection = new ArrayList<TabMapEntry>();\n\t\tcollection.addAll(tabMap);\n\t\tint idx = 0;\n\t\t\n\t\tboolean close = true;\n\t\tfor (TabMapEntry entry : collection)\n\t\t{\n\t\t\tif (item.equals(entry.getTabItem()))\n\t\t\t{\n\t\t\t\tTabItemInterface itemInterface = entry.getObject();\n\n\t\t\t\t// Can we close this tab?\n\t\t\t\t//adit by xnren \n\t\t\t\tif (!itemInterface.canBeClosed() && PriviledgeType.hasPriviledge(KettleDatabaseRepositoryMeta.priviledge,PriviledgeType.ModifyFile))\n\t\t\t\t{\n\t\t\t\t\tint reply = itemInterface.showChangedWarning();\n\t\t\t\t\tif (reply == SWT.YES)\n\t\t\t\t\t{\n\t\t\t\t\t\tclose = itemInterface.applyChanges();\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tif (reply == SWT.CANCEL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclose = false;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclose = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Also clean up the log/history associated with this\n\t\t\t\t// transformation/job\n\t\t\t\t// \n\t\t\t\tif (close)\n\t\t\t\t{\n\t\t\t\t\tif (entry.getObject() instanceof TransGraph)\n\t\t\t\t\t{\n\t\t\t\t\t\tTransMeta transMeta = (TransMeta) entry.getObject().getManagedObject();\n\t\t\t\t\t\tspoon.delegates.trans.closeTransformation(transMeta);\n\t\t\t\t\t\tspoon.refreshTree();\n\t\t\t\t\t\t//spoon.refreshCoreObjects();\n\t\t\t\t\t} else if (entry.getObject() instanceof JobGraph)\n\t\t\t\t\t{\n\t\t\t\t\t\tJobMeta jobMeta = (JobMeta) entry.getObject().getManagedObject();\n\t\t\t\t\t\tspoon.delegates.jobs.closeJob(jobMeta);\n\t\t\t\t\t\tspoon.refreshTree();\n\t\t\t\t\t\t//spoon.refreshCoreObjects();\n\t\t\t\t\t} else if (entry.getObject() instanceof SpoonBrowser)\n\t\t\t\t\t{\n\t\t\t\t\t\tspoon.closeSpoonBrowser();\n\t\t\t\t\t\tspoon.refreshTree();\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (entry.getObject() instanceof Composite)\n\t\t\t\t\t{\n\t\t\t\t\t\tComposite comp = (Composite) entry.getObject();\n\t\t\t\t\t\tif (comp != null && !comp.isDisposed())\n\t\t\t\t\t\t\tcomp.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tidx+=1;\n\t\t}\n\t\t\n\t\treturn close;\n\t}", "public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}", "private void saveAsButton(){\n SaveAsLabNameTextField.setText(\"\");\n SaveAsErrorLabel.setVisible(false);\n SaveAsDialog.setVisible(true);\n }", "void writeToFile() throws IOException{\n\t\tString fileName = f.getTitle() + \".txt\";\n\t\tfileWrite = new BufferedWriter( new FileWriter(fileName));\n\t\tfileWrite.write(history);\n\t\tSystem.out.println(fileName + \" File Writing Successful!!\");\n\t\tSystem.out.println(\"Data in file :\\n\" + history);\n\t\tfileWrite.flush();\n\t\tFile file = new File(fileName);\n\t\tjava.awt.Desktop.getDesktop().open(file);\n\n\t}", "@FXML\n private void dailyTab() {\n openReservation(false);\n openEventInfo(false, null);\n }", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.out.println(\"Window Closing\");\n\t\t\t\tcheckSaveOnExit();\n\t\t\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n\n if(tab.getPosition() == 2 && !jsonData.equals(\"\") && !integratedUpdated) {\n carCheckIntegratedFragment.letsEnterModifyMode();\n integratedUpdated = true;\n }\n\n if(tab.getPosition() == 1 && !jsonData.equals(\"\") && !frameUpdated) {\n carCheckFrameFragment.letsEnterModifyMode();\n frameUpdated = true;\n }\n }", "public static void openTab(ClientContext ctx, Game.Tab tab) {\n if (ctx.game.tab() != tab) {\n\n if (tab == Game.Tab.INVENTORY) {\n ctx.input.send(\"{VK_F2 down}\");\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n ctx.input.send(\"{VK_F2 up}\");\n\n } else if (tab == Game.Tab.MAGIC) {\n ctx.input.send(\"{VK_F4 down}\");\n\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n ctx.input.send(\"{VK_F4 up}\");\n } else {\n ctx.game.tab(tab);\n\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n }\n }\n }", "@Override\n public void onTabStateInitialized() {\n SharedPreferences.Editor editor = getSharedPreferences().edit();\n editor.clear();\n TabModelFilter filter =\n mTabModelSelector.getTabModelFilterProvider().getTabModelFilter(false);\n for (int i = 0; i < filter.getCount(); i++) {\n Tab tab = filter.getTabAt(i);\n int id = tab.getId();\n editor.putString(getUrlKey(id), tab.getUrl().serialize());\n editor.putString(getTitleKey(id), tab.getTitle());\n CriticalPersistedTabData tabData = CriticalPersistedTabData.from(tab);\n editor.putInt(getRootIdKey(id), tabData.getRootId());\n editor.putLong(getTimestampMillisKey(id), tabData.getTimestampMillis());\n }\n editor.apply();\n Tab currentTab = mTabModelSelector.getCurrentTab();\n if (currentTab != null) cacheLastSearchTerm(currentTab);\n filter.addObserver(mTabModelObserver);\n }", "protected void onSaveInstanceState(Bundle outState) {\n outState.putString(\"tab\", mTabHost.getCurrentTabTag());\n super.onSaveInstanceState(outState);\n }", "@AForm( description = \"Security Check Tabs\", name = \"\" )\n \tprivate interface TabsForm\n \t{\n \t\t@APage( name = \"Assertions\" )\n \t\tpublic final static Assertions ASSERTIONS = null;\n \n \t\t@APage( name = \"Strategy\" )\n \t\tpublic final static Strategy STRATEGY = null;\n \n \t\t@APage( name = \"Advanced\" )\n \t\tpublic final static AdvancedSettings ADVANCED = null;\n \n \t\t@APage( name = \"SetUp\" )\n \t\tpublic final static SetupScript SETUP = null;\n \n \t\t@APage( name = \"TearDown\" )\n \t\tpublic final static TearDownScript TEARDOWN = null;\n \t}", "private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }", "private void saveOutputFile() {\n FileChooser fileChooser = new FileChooser();\n if (textMergeScript.hasCurrentDirectory()) {\n fileChooser.setInitialDirectory (textMergeScript.getCurrentDirectory());\n }\n chosenOutputFile = fileChooser.showSaveDialog (ownerWindow);\n if (fileChooser != null) {\n writeOutput();\n openOutputDataName.setText (tabNameOutput);\n }\n }", "public void closeDefaultTabs() {\r\n WeaponInterface inter = player.getExtension(WeaponInterface.class);\r\n if (inter != null) {\r\n close(inter); // Attack\r\n }\r\n close(new Component(320)); // Skills\r\n close(new Component(274)); // Quest\r\n close(new Component(149)); // inventory\r\n close(new Component(387)); // Equipment\r\n close(new Component(player.getSpellBookManager().getSpellBook()));\r\n close(new Component(662)); // summoning.\r\n close(new Component(550)); // Friends\r\n close(new Component(551)); // Ignores\r\n close(new Component(589)); // Clan chat\r\n close(new Component(261)); // Settings\r\n close(new Component(464)); // Emotes\r\n close(new Component(187)); // Music\r\n close(new Component(182)); // Logout\r\n // close(new Component(player.getSavedData().getGlobalData().getPrayerBook()));\r\n }", "@Override\n\tpublic void doSaveAs() {\n\t\tMessageDialog.openInformation(Display.getCurrent().getActiveShell(), null,\"doSaveAs\");\n\t}", "public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }", "private void onExit()\n {\n if (settings.window_size_remember)\n {\n settings.window_size_last = html_panel.getSize();\n settings.saveWindowSize();\n }\n \n System.exit(1);\n }", "void onTabReselected(int position);", "private void onClickButtonSaveAndCreateAnother() {\n if (onClickButtonSave()) {\n startActivity(getIntent());\n }\n }" ]
[ "0.7543428", "0.7250076", "0.6660213", "0.62365586", "0.61249924", "0.6112146", "0.59764534", "0.59004426", "0.5809403", "0.57810813", "0.5759959", "0.5757529", "0.57202286", "0.569348", "0.56443876", "0.56351805", "0.5625999", "0.5620767", "0.5571313", "0.5535074", "0.5445272", "0.54417944", "0.54365444", "0.54085064", "0.5402645", "0.54018706", "0.53732055", "0.5361254", "0.5346058", "0.5319692", "0.53135115", "0.5304306", "0.5277613", "0.5276404", "0.52631676", "0.52585834", "0.5254405", "0.5247029", "0.5239012", "0.5237559", "0.5235647", "0.52207106", "0.5220146", "0.52189535", "0.5213707", "0.52111274", "0.52024275", "0.5196531", "0.51749045", "0.5160767", "0.5159923", "0.51584226", "0.51477456", "0.51446277", "0.5135077", "0.51338536", "0.51223564", "0.5120541", "0.51186824", "0.5103569", "0.5101689", "0.5098812", "0.5098292", "0.50922775", "0.50910455", "0.5090813", "0.5089953", "0.5085187", "0.508156", "0.50769085", "0.5073606", "0.5072006", "0.50625217", "0.5061211", "0.50609475", "0.50607944", "0.5057407", "0.5055326", "0.505454", "0.50531805", "0.50527155", "0.50512606", "0.50488347", "0.5043833", "0.50395626", "0.50337106", "0.5031691", "0.50315446", "0.50291914", "0.50278616", "0.50185454", "0.50137883", "0.5013559", "0.5013376", "0.50080556", "0.50065255", "0.50036716", "0.49985364", "0.4995575", "0.49953312" ]
0.5307802
31
End of Window events Listen for changes in the selection of the tabbed pane
public void stateChanged(ChangeEvent e){ //logger.info("Change event " + e.getSource()); if(e.getSource() == tabbedPane){ logger.info("Index of the selected tab is " + tabbedPane.getSelectedIndex()); if(tabbedPane.getSelectedIndex() == -1){ return; } // Change to the current view currentView = tabViews.get(tabbedPane.getSelectedIndex()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "public void windowClosed(WindowEvent e){}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\n\t\t\t}", "@Override\r\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\n\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void windowClosed(WindowEvent arg0) {\n\n }", "@Override\n\tpublic void windowClosed(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\r\n public void windowClosed(WindowEvent e) {\r\n System.out.println(\"Window closed.\");\r\n }", "@Override\n public void windowClosed(WindowEvent we) {\n }", "@Override\r\n public void windowDeactivated(WindowEvent e) {\r\n\r\n }", "@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\r\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void windowClosed (WindowEvent e)\n\t{\n\t}", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n public void windowDeactivated(WindowEvent e) {\n }", "@Override\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n public void windowDeactivated(WindowEvent arg0) {\n\n }", "@Override\n\tpublic void windowDeactivated(WindowEvent arg0)\n\t{\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\n\t}", "@Override\n public void windowDeactivated(WindowEvent e)\n {\n\n }", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}" ]
[ "0.683033", "0.683033", "0.68234783", "0.68234783", "0.6805764", "0.6805764", "0.6805764", "0.6805764", "0.6805764", "0.6805764", "0.6805764", "0.680469", "0.680469", "0.68006146", "0.68006146", "0.68006146", "0.67951256", "0.6791367", "0.67873853", "0.6775504", "0.6774788", "0.67683804", "0.6764941", "0.6764941", "0.6764941", "0.6764941", "0.6764941", "0.6764941", "0.6764941", "0.6757904", "0.67572886", "0.67572886", "0.67572886", "0.67572886", "0.67502135", "0.67431885", "0.67375976", "0.67293376", "0.6722674", "0.6722674", "0.6721638", "0.6721638", "0.6721638", "0.6721638", "0.6721638", "0.6721638", "0.6721638", "0.6718097", "0.67076033", "0.66954744", "0.668487", "0.668487", "0.668487", "0.668487", "0.66770047", "0.66754454", "0.6671342", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6668566", "0.6667266", "0.6667266", "0.66479784", "0.6639125", "0.6638657", "0.6636771", "0.6636771", "0.6636771", "0.6636771", "0.6636771", "0.6636771", "0.6636771", "0.6636771", "0.66350746", "0.66312814", "0.66300553", "0.66217864", "0.66217864", "0.66217864", "0.66217864", "0.66217864", "0.66217864", "0.66217864" ]
0.0
-1
constructor for the CommandCenter class
public CommandCenter() { super( new ArrayList<String>( Arrays.asList( "file:lib/images/resized/" + "sc2_red_command_center.gif" ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CommandMAN() {\n super();\n }", "public CommandManager() {}", "public Command() {\n }", "public GetMotorPositionCommand ()\r\n {\r\n }", "private Command() {\n initFields();\n }", "public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}", "public CPRCommand()\r\n {\r\n }", "public CommandDirector() {\n\t\t//factory = ApplicationContextFactory.getInstance();\n\t\t//context = factory.getClassPathXmlApplicationContext();\n\t\t\n\t\t//commands.put(\"createEntry\", context.getBean(\"creationEntryCommand\", CreationEntryCommand.class));\n\t\t//commands.put(\"searchEntry\", context.getBean(\"searchingEntryCommand\", SearchingEntryCommand.class));\n\t\t\n\t\tcommands.put(\"createEntry\", new CreationEntryCommand());\n\t\tcommands.put(\"searchEntry\", new SearchingEntryCommand());\n\t\t\n\t}", "private CommandBrocker() {}", "public Command() {\n this.arguments = new String[0];\n }", "public AbstractCommandController(Class commandClass)\r\n/* 16: */ {\r\n/* 17:66 */ setCommandClass(commandClass);\r\n/* 18: */ }", "public AbstractCommand()\n {\n this.logger = new ConsoleLogger();\n }", "public Commands(){\n this.power = 0;\n this.direction = 0;\n this.started = false;\n this.runTime = new ElapsedTime();\n this.timeGoal = 0;\n }", "public AbstractCommandController(Class commandClass, String commandName)\r\n/* 21: */ {\r\n/* 22:75 */ setCommandClass(commandClass);\r\n/* 23:76 */ setCommandName(commandName);\r\n/* 24: */ }", "public ControlCommand() {\r\n\t\tthis(CommandType.NotSet);\r\n\t}", "public DrawCommand() {\n\t\tcommand = null;\n\t\targs1 = null;\n\t\targs2 = null;\n\t}", "public HelpCommand()\n {\n }", "private CommandMapper() {\n }", "public CommandsFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public Command(){\n \n comando.put(\"!addGroup\", 1);\n comando.put(\"!addUser\", 2);\n comando.put(\"!delFromGroup\", 3);\n comando.put(\"!removeGroup\", 4);\n comando.put(\"!upload\", 5);\n comando.put(\"!listUsers\",6);\n comando.put(\"!listGroups\",7);\n\n }", "public CommandMAN(String[] arguments) {\n super(arguments);\n }", "public Command()\r\n {\r\n this.aSecondWord = null;\r\n }", "public CommandDetail() {\n this.commandType = CommandType.UNKNOWN;\n commandData = new HashMap<String, Object>();\n }", "private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}", "public Command(String prefix){\r\n this.prefix = prefix;\r\n }", "public RedoCommand() {\n }", "@Override\n public void initDefaultCommand() {\n\n }", "@Override\n public void initDefaultCommand() \n {\n }", "public AbstractTtcsCommandController() {\n\t}", "public ItemCommand() {\n }", "private CommandWord(String commandString)\n {\n this.commandString = commandString;\n }", "@SuppressWarnings(\"unused\")\n\tprivate AbstractCommand() {\n\t\t//\n\t}", "PSConsoleCommand(String cmdArgs)\n {\n super();\n m_cmdArgs = cmdArgs;\n }", "public ListCommand() {\n super();\n }", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "public RemoteControl() {\n onCommands = new ArrayList<Command>(7); // concrete command.Command registers itself with the invoker\n offCommands = new ArrayList<Command>(7);\n\n Command noCommand = new NoCommand(); //Good programming practice to create dummy objects like this\n for (int i = 0;i < 7;i++) {\n onCommands.add(noCommand);\n }\n\n //Initialize the off command objects\n for (int i = 0;i < 7;i++) {\n offCommands.add(noCommand);\n }\n\n undoCommand = noCommand;\n }", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "protected CommandDispatcher()\n {\n // do nothing\n }", "protected VmCommand(Guid commandId) {\n super(commandId);\n }", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n \tclaw = new DoubleSolenoid(RobotMap.CLAW_PNU_1, RobotMap.CLAW_PNU_2);\n \tpunch = new DoubleSolenoid(RobotMap.PUNCH_PNU_1, RobotMap.PUNCH_PNU_2);\n \t\n \tarm = new VictorSP(RobotMap.ARM_MOTOR);\n \t\n \tarmEncode = new Encoder(RobotMap.ARM_ENCODE_1, RobotMap.ARM_ENCODE_2);\n \t\n \t//armEncode.setPIDSourceType(PIDSourceType.kDisplacement);\n \tarmControl = new PIDController(0.01,0,0, armEncode, arm);\n \t\n }", "public CommandParser(){\n setLanguage(\"ENGLISH\");\n commandTranslations = getPatterns(new String[] {TRANSLATION});\n commands = new ArrayList<>();\n addErrors();\n }", "public DeviceDataRequestCommand()\n {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n\t\t//System.out.println(\"initDefaultCommand()\");\n\t\tJoystickControlCommand JCC = new JoystickControlCommand();\n\t\tthis.setDefaultCommand(JCC);\n\t}", "public CommandHandler() {\r\n\t\tcommands.put(\"userinfo\", new UserInfoCommand());\r\n\t\tcommands.put(\"verify\", new VerifyCommand());\r\n\t\tcommands.put(\"ping\", new PingCommand());\r\n\t\tcommands.put(\"rapsheet\", new RapsheetCommand());\r\n\t\tcommands.put(\"bet\", new BetCommand());\r\n\t\tcommands.put(\"buttons\", new ButtonCommand());\r\n\r\n\t\t// for each command in commands\r\n\t\t// call getAlternativeName and assign to that key\r\n\t\tcommands.keySet().stream().forEach(key -> {\r\n\t\t\tList<String> alts = commands.get(key).getAlternativeNames();\r\n\t\t\tif (alts != null)\r\n\t\t\t\talts.forEach(a -> commandAlternative.put(a, key));\r\n\t\t});\r\n\t}", "public void initDefaultCommand() {\n \n }", "public Command (int id, String name) {\n if (commands[id] != null) {\n\n } else {\n commands[id] = this;\n this.name = name;\n System.out.println(\"[Command Initialization] Command \" + name + \" successfully initialized with id \"\n + id + \" and allowable arguments:\" /*allowable args will be printed here.*/);\n }\n }", "public CircleCADTool() {\r\n }", "public ExitCommand() {\n }", "protected VmPoolCommandBase(Guid commandId) {\n super(commandId);\n }", "public CommonCommand(Controller controller) {\r\n\t\tsuper();\r\n\t\tthis.controller = controller;\r\n\t}", "public CommandPanel(){\n\t\tsetLayout(new MigLayout(\"fill\"));\n\n\t\tadd(inputField, \"dock south, growx\");\n\t\tinputField.setText(\"Enter command\");\n\n\t\tcentralArea.setEditable(false);\n\t\tJScrollPane scrollPane = new JScrollPane(centralArea);\n\t\tadd(scrollPane, \"grow\");\n\n\t\tinitCommands();\n\t\tinitHelp();\n\n\t\tinputField.addFocusListener(new FocusListener() {\n\n\t\t\t@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tif (inputField.getText().equals(\"Enter command\"))\n\t\t\t\t\tinputField.setText(\"\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tif (inputField.getText().equals(\"\"))\n\t\t\t\t\tinputField.setText(\"Enter command\");\n\n\t\t\t}\n\t\t});\n\n\t\tinputField.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER){\n\t\t\t\t\tString command = inputField.getText();\n\t\t\t\t\tString reply = processCommand(command);\n\t\t\t\t\tinputField.setText(\"\");\n\t\t\t\t\tif (!command.equals(\"clear\"))\n\t\t\t\t\t\tcentralArea.setText(centralArea.getText() + \"\\n\" + command + \"> \" + reply);\n\t\t\t\t}\n\t\t\t\telse if (e.getKeyCode() == KeyEvent.VK_UP){\n\t\t\t\t\tif (currentCommandIndex > 0)\n\t\t\t\t\t\tcurrentCommandIndex --;\n\t\t\t\t\tinputField.setText(allCommands.get(currentCommandIndex));\n\t\t\t\t}\n\t\t\t\telse if (e.getKeyCode() == KeyEvent.VK_DOWN){\n\t\t\t\t\tif (currentCommandIndex < allCommands.size() - 1)\n\t\t\t\t\t\tcurrentCommandIndex ++;\n\t\t\t\t\tif (currentCommandIndex < allCommands.size())\n\t\t\t\t\t\tinputField.setText(allCommands.get(currentCommandIndex));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}\n\t\t});\n\n\t}", "public void initDefaultCommand() \n {\n }", "public Shell() {\n commandNumber = 0;\n prevPID = -1;\n command = \"\";\n }", "public Command() {\n this.executed = false;\n }", "public void initDefaultCommand() {\n \n }", "public DCursorMove() {\n super(COMMAND);\n }", "protected void initDefaultCommand() {\n \t\t\n \t}", "protected PermissionsCommandBase(Guid commandId) {\n super(commandId);\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new operateClimber());\n }", "Commands createCommands();", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SetPlungerMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public RobotContainer() {\n\nleftJoystick = new Joystick(0);\nrightJoystick = new Joystick(1);\n\ndriveBase = new DriveBase();\ndriveWithJoystick = new DriveWithJoystick();\nCommandScheduler.getInstance().setDefaultCommand(driveBase, driveWithJoystick);\n\n\n // Configure the button bindings\n configureButtonBindings();\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SetCanMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public AllSystemsClimbCenter() {\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=PARAMETERS\n // Add Commands here:\n // e.g. addSequential(new Command1());\n // addSequential(new Command2());\n // these will run in order.\n\n // To run multiple commands at the same time,\n // use addParallel()\n // e.g. addParallel(new Command1());\n // addSequential(new Command2());\n // Command1 and Command2 will run in parallel.\n\n // A command group will require all of the subsystems that each member\n // would require.\n // e.g. if Command1 requires chassis, and Command2 requires arm,\n // a CommandGroup containing them would require both the chassis and the\n // arm.\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n\n // if (!Robot.getKillClimber()) constantly checks if climber was killed by driver\n\n // if (!Robot.getKillClimber())\n // {\n // // set drive direction to correct orientation for climbing (front of robot direction)\n // Robot.chassis.setDriveDirection(-1);\n // }\n\n // if (!Robot.getKillClimber())\n // {\n // // ensure robot intake is in start position\n // addParallel(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_CLIMB_START_POSITION));\n // // ensure robot is against platform\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_INITIAL_POWER, \n // Constants.ALL_CENTER_CHASSIS_INITIAL_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n \n // extends front and back climber at the same time\n if (!Robot.getKillClimber())\n {\n addParallel(new ClimberFrontSetPosition(Constants.ALL_CENTER_FRONT_CLIMBER_EXTEND_POSITION));\n addParallel(new ClimberBackSetPosition(Constants.ALL_CENTER_BACK_CLIMBER_EXTEND_POSITION));\n // delay only 2 seconds in order to rotate shooter angle to pull in position faster\n addSequential(new Delay(2));\n }\n\n // // rotate shooter angle in order to pull robot onto platform\n // if (!Robot.getKillClimber())\n // {\n // addParallel(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_PULL_IN_POSITION));\n // addSequential(new Delay(2));\n // }\n \n // if (!Robot.getKillClimber())\n // {\n // // start shooter climber wheels in order to pull in\n // addParallel(new SetShooterSpeedStraight(Constants.ALL_CENTER_SHOOTER_PULL_IN_RPM));\n // // drive forward onto the platform\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n\n // // bring up back climber\n // if (!Robot.getKillClimber())\n // {\n // addParallel(new ClimberBackSetPosition(Constants.ALL_CENTER_BACK_CLIMBER_RETRACT_POSITION));\n // addSequential(new Delay(2));\n // }\n\n // // drive forward onto the platform\n // if (!Robot.getKillClimber())\n // {\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n\n // if (!Robot.getKillClimber())\n // {\n // // bring up front climber\n // addParallel(new ClimberFrontSetPosition(Constants.ALL_CENTER_FRONT_CLIMBER_RETRACT_POSITION));\n // addSequential(new Delay(2));\n // }\n // if (!Robot.getKillClimber())\n // {\n // // drive forward onto the platform\n // addParallel(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // // bring shooter angle rotate to home position so it doesn't hit driver station\n // addSequential(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_HOME_POSITION));\n // }\n }", "public MailCommand() {\n this(\"\");\n }", "public void initDefaultCommand()\n {\n }", "private InfoCommand()\n\t{\n\t\t\n\t\t\n\t}", "Command createCommand();", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }" ]
[ "0.7566692", "0.74895877", "0.73410976", "0.71389216", "0.6949135", "0.69237304", "0.69207984", "0.6867314", "0.68319356", "0.68171555", "0.6771844", "0.66871136", "0.6637242", "0.6636837", "0.66226715", "0.6598569", "0.6566807", "0.6564288", "0.6536187", "0.65150315", "0.6480821", "0.64688927", "0.64385825", "0.64065456", "0.6389654", "0.6368676", "0.63420516", "0.63193375", "0.6315941", "0.63150245", "0.6302132", "0.6296642", "0.6288709", "0.6263302", "0.62493145", "0.62461144", "0.6245411", "0.6242509", "0.6242509", "0.62414426", "0.62361926", "0.623386", "0.623386", "0.623386", "0.62331605", "0.62326986", "0.6231828", "0.6225271", "0.62225425", "0.62225425", "0.62225425", "0.62225425", "0.62225425", "0.62225425", "0.62225425", "0.62164", "0.62164", "0.62164", "0.62164", "0.62164", "0.62164", "0.62145156", "0.62080353", "0.6199787", "0.6190955", "0.6173247", "0.61488473", "0.61452067", "0.6137409", "0.6136357", "0.6134053", "0.6131783", "0.6125716", "0.6117555", "0.6102083", "0.60968024", "0.60914797", "0.60895735", "0.6087892", "0.6061587", "0.60491836", "0.60406834", "0.60406053", "0.6027401", "0.60235834", "0.6018987", "0.60050577", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126", "0.60034126" ]
0.8009085
0
Ottiene la lista dei codici bilancio.
public String ottieniListaCodiceBilancio(){ Integer uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE); caricaListaCodiceBilancio(uid); return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n int nd=0;\n \n // Se comprueba para cada ni si es mayor que 0, en cuyo caso, se generan\n // los posibles códigos de longitud i que quedan libres y se asignan.\n while (i<n.size()){\n nd=nd*base;\n int cont=n.get(i);\n if (cont>0){\n candidatos=generaCod(i+1,nd);\n int cod=0;\n while (cont>0){\n res.add(alfabeto.getN(cont_alfa), candidatos.get(cod));\n nd++;\n cont_alfa++;\n cod++;\n cont--;\n }\n }\n i++;\n } \n return res;\n }", "public List<AccesorioBicicletaEntity> getAccesorioBici() {\r\n LOGGER.info(\"Inicia proceso de consultar todas las Bicicletaes\");\r\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\r\n List<AccesorioBicicletaEntity> acc = persistence.findAll();\r\n LOGGER.info(\"Termina proceso de consultar todas las Bicicletaes\");\r\n return acc;\r\n }", "public List<Comentario> listaComentarioPorCodigo(Long codigo);", "private void getCodigosCasas(){\n mCodigosCasas = estudioAdapter.getListaCodigosCasasSinEnviar();\n //ca.close();\n }", "java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil>\n getCazuriList();", "private void getRecepcionBHCs(){\n mRecepcionBHCs = estudioAdapter.getListaRecepcionBHCSinEnviar();\n //ca.close();\n }", "public String listarCursosInscripto(){\n StringBuilder retorno = new StringBuilder();\n \n Iterator<Inscripcion> it = inscripciones.iterator();\n while(it.hasNext())\n {\n Inscripcion i = it.next();\n retorno.append(\"\\n\");\n retorno.append(i.getCursos().toString());\n retorno.append(\" en condición de: \");\n retorno.append(i.getEstadoInscripcion());\n }\n return retorno.toString();\n }", "public List<Bloques> getDataListBloques() {\n\t\tif(dataListBloques == null){\n\t\t\tdataListBloques = new ArrayList<Bloques>();\n\t\t\tdataListBloques = bloquesFacade.findByLike(\"SELECT B FROM Bloques B ORDER BY B.nombre\");\n\t\t}\n\t\treturn dataListBloques;\n\t}", "private List<String> listCodesPizza() {\n\t\tString[] paths = file.list();\n\t\tList<String> stringList = new ArrayList<String>(Arrays.asList(paths));\n\t\treturn stringList;\n\t}", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "public void ListarVehiculosCiatCasaCiat() throws GWorkException {\r\n\t\ttry {\r\n\t\t\tDate dtFechaInicio;\r\n\t\t\tDate dtFechaFin;\r\n\t\t\tLong idPeriodo = 1L;\r\n\r\n\t\t\tdtFechaInicio = ManipulacionFechas\r\n\t\t\t\t\t.getMesAnterior(ManipulacionFechas.getFechaActual());\r\n\r\n\t\t\t// Integer mes = Integer.valueOf(ManipulacionFechas\r\n\t\t\t// .getMes(ManipulacionFechas.getFechaActual()));\r\n\t\t\tCalendar calendario = Calendar.getInstance();\r\n\r\n\t\t\tcalendario.setTime(dtFechaInicio);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 5);\r\n\t\t\t// calendario.set(Calendar.MONTH, mes - 2);\r\n\r\n\t\t\tdtFechaInicio = calendario.getTime();\r\n\r\n\t\t\tdtFechaFin = ManipulacionFechas.getFechaActual();\r\n\t\t\tcalendario.setTime(dtFechaFin);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 4);\r\n\r\n\t\t\tdtFechaFin = calendario.getTime();\r\n\r\n\t\t\tList<BillingAccountVO> vehiculos = listVehiclesFlatFileCiatCasaCiat(\r\n\t\t\t\t\tdtFechaInicio, dtFechaFin);\r\n\r\n\t\t\tReporteCobroCiatCasaCiat(vehiculos, idPeriodo);\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().begin();\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().commit();\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",re);\r\n\t\t\tthrow new GworkRuntimeException(\"[INFO] - \" + re.getMessage(), re);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",e);\r\n\t\t\tthrow new GWorkException(\r\n\t\t\t\t\t\"No se pudo generar el comprobante [ERROR] - \"\r\n\t\t\t\t\t\t\t+ e.getMessage(), e);\r\n\r\n\t\t}\r\n\t}", "private ArrayList<String> getConectorQue(String infoDaPilha){\n\t\tArrayList<String> listaDeConectores = new ArrayList<String>();\n\t\t\n\t\tlistaDeConectores.add(\"que\");\n\t\t\n\t\treturn listaDeConectores;\n\t}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public List<IbBeneficiariosPjDTO> listarIbBeneficiariosPjDTO(Long idBeneficiario, Short estatusCarga, String idCanal, String codigoCanal);", "private static List<Billetes> generarBilletes(String fecha, Pasajero p){\n\t\tList<Billetes> billetes = new ArrayList<>();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tBilletes billete = new Billetes();\n\t\t\tbillete.setId(i);\n\t\t\tbillete.setFecha(fecha);\n\t\t\t\n\t\t\tchar c1 = (char)new Random().nextInt(50);\n\t\t\tchar c2 = (char)new Random().nextInt(50);\n\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t */\n\t\t\tbillete.setAsiento(\"\" + c1 + c2 + new Random().nextInt(100) + new Random().nextInt(50));\n\t\t\tbillete.setPasajero(p); \n\t\t\tbillete.setVuelo(p.getVuelos().get(new Random().nextInt(p.getVuelos().size())));\n\t\t\t\n\t\t\tbilletes.add(billete);\n\t\t}\n\t\t\n\t\treturn billetes;\n\t}", "public List getAllBarCodes(){\n if(barcodeList ==null) {\n readItemsFromFile();\n }\n return barcodeList;\n }", "public List<VatCodeRec> getVatCodes() throws BacException {\n \n List<VatCodeRec> vatCodes = this.vatDM.getAllVatCodes();\n LOGGER.log(INFO, \"Number of VAT Codes returned from DB layer {0}\", vatCodes.size());\n return vatCodes;\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "List<Oficios> buscarActivas();", "public List<Cliente> getListCliente(){//METODO QUE RETORNA LSITA DE CLIENTES DO BANCO\r\n\t\treturn dao.procurarCliente(atributoPesquisaCli, filtroPesquisaCli);\r\n\t}", "@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "private void napuniCbPozoriste() {\n\t\t\r\n\t\tfor (Pozoriste p:Kontroler.getInstanca().vratiPozorista())\r\n\t\t\t\r\n\t\t\tcbPozoriste.addItem(p.getImePozorista());\r\n\t}", "List<Curso> obtenerCursos();", "Object getBcclist();", "public List<MLocoBoggie> getboogie() {\n\t\t\t\tList<MLocoBoggie> getboogies = new ArrayList<>();\n\t\t\t\tobj_boogierepo.findAll()\n\t\t\t\t.forEach(getboogies::add);\n\n\t\t\t\treturn getboogies;\t\t\t\t\n\t\t\t\t\t\t}", "public List<String> Garsonkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanicisini alirken hata olustu\");\r\n\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n String deger = \" \";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='GARSON';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs = ps.executeQuery(sorgu2);\r\n while (rs.next()) {\r\n deger = rs.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanici Alinirken hata oldu\");\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "public List<String> retornaDatasComprasDeClientes () {\n return this.contasClientes\n .values()\n .stream()\n .flatMap((Conta conta) -> conta.retornaDatasDasCompras().stream())\n .collect(Collectors.toList());\n }", "public List<Ingrediente> verCondimentos(){\n // Implementar\n \tList<Ingrediente> condimentos = new LinkedList<Ingrediente>();\n for (Ingrediente ingrediente : ingredientes) {\n \tif(ingrediente.getTipo().toString().toLowerCase() == \"condimento\")\n\t\t\t\tcondimentos.add(ingrediente);\n\t\t}\n \treturn condimentos;\n }", "public static NodoListaC creaInCoda() {\r\n\t\tNodoListaC a = new NodoListaC();\r\n\t\tNodoListaC p = a; //a rimane in testa alla lista\r\n\t\tp.info = 'A';\r\n\t\tp.next = new NodoListaC();\r\n\t\tp = p.next;\r\n\t\tchar c;\r\n\t\tfor (c = 'B'; c < 'Z'; c++) {\r\n\t\t p.info = c;\r\n\t\t p.next = new NodoListaC();\r\n\t \t p = p.next; \r\n\t\t}\r\n\t\tp.info = 'Z';\r\n\t\tp.next = null;\r\n\t\t\r\n\t\treturn a; \r\n\t}", "public Collection<BaseData> getCauseCodeByImsi(Long imsi) {\n\t\tQuery query = em.createQuery(\"from BaseData c where c.imsi = :imsi\");\n\t\tquery.setParameter(\"imsi\", imsi);\n\t\treturn (List<BaseData>)query.getResultList();\n\t}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public List<CatCurso> consultarCatCurso()throws NSJPNegocioException;", "public List<List<CruciCasillas>> cargar(){\r\n\t\t\r\n\t\tList<List<CruciCasillas>> palabras = new ArrayList<List<CruciCasillas>>(manejadorArchivos.cargar());\r\n\t\t\r\n\t\treturn palabras;\r\n\t}", "public List<Citas> getAllCitas2() {\n List<Citas> citas= new ArrayList<Citas>();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM paciente WHERE estatus='activo'\";\n pstm = con.prepareStatement(query);\n rs = pstm.executeQuery();\n while (rs.next()) {\n Citas cita = new Citas();\n cita.setId(rs.getInt(\"id_paciente\"));\n cita.setName(rs.getString(\"name\"));\n cita.setDoctor(rs.getString(\"doctor\"));\n cita.setFecha(rs.getString(\"fecha\"));\n cita.setHora(rs.getString(\"hora\"));\n cita.setTel(rs.getString(\"tel\"));\n cita.setCorreo(rs.getString(\"correo\"));\n cita.setGenero(rs.getString(\"genero\"));\n cita.setMotivo(rs.getString(\"motivo\"));\n cita.setSintomas(rs.getString(\"sintomas\"));\n cita.setEstatus(rs.getString(\"estatus\"));\n citas.add(cita);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return citas;\n }", "public ArrayList<Comobox> listaTodosBanco()\n {\n @SuppressWarnings(\"MismatchedQueryAndUpdateOfCollection\")\n ArrayList<Comobox> al= new ArrayList<>();\n @SuppressWarnings(\"UnusedAssignment\")\n ResultSet rs = null;\n sql=\"select * FROM VER_BANCO\";\n Conexao conexao = new Conexao();\n if(conexao.getCon()!=null)\n {\n try \n {\n if(conexao.getCon()!=null)\n {\n cs = conexao.getCon().prepareCall(sql);\n cs.execute();\n rs=cs.executeQuery(); \n if (rs!=null) \n { \n while (rs.next())\n { \n al.add(new Comobox(rs.getString(\"ID\"), rs.getString(\"SIGLA\")));\n } \n }\n rs.close();\n }\n else\n {\n al.add(new Comobox(\"djdj\",\"ddj\"));\n al.add(new Comobox(\"1dj\",\"dmsmdj\"));\n }\n } \n catch (SQLException ex)\n {\n Logger.getLogger(CreditoDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Erro a obter fontes rendimentos \"+ex.getMessage());\n }\n }\n return al;\n }", "@GetMapping(\n\t\t\tvalue=\"/bioskopi/{id}\",\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<BioskopDTO>> bioskopi(@PathVariable(name=\"id\")Long id){\n\t\t\tMenadzer m=this.menadzerService.findOne(id);\n\t\t\tSet<Bioskop> bioskopi=m.getBioskopi();\n\t\t\tList<BioskopDTO> povratna=new ArrayList<>();\n\t\t\t\n\t\t\tfor(Bioskop b:bioskopi) {\n\t\t\t\tBioskopDTO bd=new BioskopDTO();\n\t\t\t\tbd.setId(b.getId());\n\t\t\t\tbd.setNaziv(b.getNaziv());\n\t\t\t\tbd.setAdresa(b.getAdresa());\n\t\t\t\tbd.setBrojCentrale(b.getBrojCentrale());\n\t\t\t\tbd.seteMail(b.getEMail());\n\t\t\t\tpovratna.add(bd);\n\t\t\t}\n\t\t\t\n\t\t\treturn new ResponseEntity<>(povratna,HttpStatus.OK);\n\t}", "public List<BonoEntity> getBonos() {\r\n return bonos;\r\n }", "private static ArrayList<Integer> generateBinaryCodeList(ArrayList<ArrayList<Integer>> tMat){\r\n\t\tArrayList<Integer> bcList = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < tMat.size(); i++){\r\n\t\t\tint code = getBinaryCode(tMat, i);\r\n\t\t\tbcList.add(code);\r\n\t\t}\r\n\t\treturn bcList;\r\n\t}", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "@Override\n\tpublic ArrayList<CodeBean> findCodeList() {\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : findCodeList 시작 \"); }\n\t\tArrayList<CodeBean> codeList = null;\n\t\ttry{\n\t\t\tcodeList = codeDAO.selectCodeList(); \n\t\t\t\n\t\t\tfor(CodeBean codeBean : codeList){\t\t\t\t\t\t\n\t\t\t\tcodeBean.setCodeDetailList(codeDetailDAO.selectDetailCodeList(codeBean.getDivisionCode()));\n\t\t\t}\t\t\n\t\t\n\t\t}catch(DataAccessException e){\n\t\t\tSystem.out.println(\"\t\t@ 코드어플서비스 조회 오류\");\n\t\t\tlogger.fatal(e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tif(logger.isDebugEnabled()){ logger.debug(\" CodeListApplicationServiceImpl : findCodeList 종료 \"); }\n\t\treturn codeList;\n\t}", "public List<Compte> getComptesClient(int numeroClient);", "public java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil> getCazuriList() {\n return cazuri_;\n }", "private void getObsequios(){\n mObsequios = estudioAdapter.getListaObsequiosSinEnviar();\n //ca.close();\n }", "public static ArrayList<Vkladi> rascetObsciBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tint z = 0;\r\n\t\tfor (Krediti kredit : kred) {\r\n\r\n\t\t\tz = z + kredit.getDolg();\r\n\t\t}\r\n\t\tint y = 0;\r\n\t\ty = z + t;\r\n\t\tSystem.out.println(\"Symarnii balanse Scetov= \" + y + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}", "private static ArrayList<Compra> listComprasDoCliente(int idCliente) throws Exception {//Inicio mostraCompras\r\n ArrayList<Compra> lista = arqCompra.toList();\r\n lista.removeIf(c -> c.idCliente != idCliente);\r\n return lista;\r\n }", "@Override\r\n\tpublic List<ComunidadBean> getComunidadList() {\n\t\tList<ComunidadBean> result=new ArrayList<ComunidadBean>();\r\n\t\t\r\n\t\tList<JugComunidad> list= comunidadRepository.getComunidadList();\r\n\t\tfor (JugComunidad entiry : list) \r\n \t\tresult.add(new ComunidadBean(entiry.getId(), entiry.getCodigo(), entiry.getDescripcion()));\t\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public java.util.List<teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil> getCazuriList() {\n if (cazuriBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cazuri_);\n } else {\n return cazuriBuilder_.getMessageList();\n }\n }", "public List<String> Mutfakkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(\"mutfak kullanici girdi\");\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Mutfak kullanicisini alirken hata olustu\");\r\n return null;\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n boolean durum = false;\r\n String deger = \"\";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='MUTFAK';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs1 = ps.executeQuery(sorgu2);\r\n while (rs1.next()) {\r\n deger = rs1.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n System.out.println(\"null\");\r\n System.out.println(deger);\r\n }\r\n System.out.println(kullad);\r\n durum = true;\r\n }\r\n } catch (Exception e) {\r\n durum = false;\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }", "@Override\r\n\tpublic List<BIrdBeans> birdList() throws Exception {\n\t\tList<BIrdBeans> birdList= new ArrayList<BIrdBeans>();\r\n\t\ttry{\r\n\t\t\tsession = sessionfactory.openSession();\r\n\t\t\tCriteria criteria = session.createCriteria(BIrd.class);\r\n\t\t\tbirdList = criteria.addOrder(Order.asc(\"category\")).list();\r\n\t\t\tSystem.out.println(birdList);\r\n\t\t\tsession.close();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\treturn birdList;\r\n\t}", "public List<FacturaCabecera> list(){ \n\t\t\treturn em.createQuery(\"SELECT c from FacturaCabecera c\", FacturaCabecera.class).getResultList();\n\t\t}", "@Override\n\tpublic List<BankCategory> getBankCategoryList() throws Exception {\n\t\tString sql = \" SELECT bank_category_id , bank_name , bank_cate FROM bank_category WHERE 1 = 1 \";\n\t\tList<BankCategory> list = this.getList(sql, new Object[]{}, BankCategory.class);\n\t\treturn list;\n\t}", "public String[] getAllCopiers();", "public List<Branch> getBranchs()\r\n\t{\t\r\n\t\tif (branchs.size() == 0)\r\n\t\t{\r\n\t\t\t//Lacos abertos carga x terra (redes radiais)\r\n\t\t\tbranchs.addAll(findBranchs());\t\t\r\n\t\t\r\n\t\t}\r\n\t\treturn branchs; \r\n\t}", "public void consultarListaDeContatos() {\n\t\tfor (int i = 0; i < listaDeContatos.size(); i++) {\n\t\t\tSystem.out.printf(\"%d %s \\n\", i, listaDeContatos.get(i));\n\t\t}\n\t}", "private void CargarListaFincas() {\n listaFincas = controlgen.GetComboBox(\"SELECT '-1' AS ID, 'Seleccionar' AS DESCRIPCION\\n\" +\n \"UNION\\n\" +\n \"SELECT `id` AS ID, `descripcion` AS DESCRIPCION\\n\" +\n \"FROM `fincas`\\n\"+\n \"/*UNION \\n\"+\n \"SELECT 'ALL' AS ID, 'TODOS' AS DESCRIPCION*/\");\n \n Utilidades.LlenarComboBox(cbFinca, listaFincas, \"DESCRIPCION\");\n \n }", "public static void dodavanjeBicikl() {\n\t\tString vrstaVozila = \"Bicikl\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = Main.nista;\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = 0;\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 700;\n\t\tdouble cenaServisa = 5000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tint brSedist = 1;\n\t\tint brVrata = 0;\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tBicikl vozilo = new Bicikl(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public void datosCombobox() {\n listaColegios = new ColegioDaoImp().listar();\n for (Colegio colegio : listaColegios) {\n cbColegio.addItem(colegio.getNombre());\n }\n }", "Code[] getCodes();", "public List<SermCit> getCits(){\n return citations;\n }", "public List<Coupefeu> rechercheCoupefeuBatiment(int numeroBatiment){\n\t\treturn em.createQuery(\"from Coupefeu c WHERE c.batiment.numero = \"+numeroBatiment).getResultList();\n\t}", "public ArrayList<Paises> obtenerPaises();", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "private void atualizarBandeirasIa() {\n\t\tnumeroBombas = mapa.getBombas();\r\n\t\tfor(int i = 0; i < this.mapa.getCampo().length; i++) {\r\n\t\t\tfor(int j = 0; j < this.mapa.getCampo().length; j++) {\r\n\t\t\t\tif(celulaEscolhida(botoes[i][j]).isBandeira()) {\r\n\t\t\t\t\tbotoes[i][j].setEnabled(false);\r\n\t\t\t\t\tnumeroBombas--;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tbotoes[i][j].setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(numeroBombas);\r\n\t}", "public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "@Override\r\n\tpublic List<ComunidadBean> getComunidadListWithOutNAC() {\n\t\tList<ComunidadBean> result=new ArrayList<ComunidadBean>();\r\n\t\t\r\n\t\tList<JugComunidad> list= comunidadRepository.getComunidadList();\r\n\t\tfor (JugComunidad entiry : list) \r\n\t\t\t if(!entiry.getCodigo().equalsIgnoreCase(\"NAC\"))\r\n \t\t result.add(new ComunidadBean(entiry.getId(), entiry.getCodigo(), entiry.getDescripcion()));\t\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public StatCognomiListe(LinkedHashMap<String, Integer> mappaCognomi) {\n this.mappaCognomi = mappaCognomi;\n doInit();\n }", "public static ArrayList<Course> ottieniCorsi() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.GET_COURSES;\n\t\t\tReceiveContent resP = sendReceive(rp);\n\t\t\tArrayList<Course> lista = (ArrayList<Course>) resP.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Errore nell'ottenimento dei corsi\");\n\t\t}\n\t\treturn new ArrayList<Course>();\n\t}", "List<BInformation> findAll();", "private void mostrarCoches() {\n int i = 0;\n for (Coche unCoche : coches) {\n System.out.println((i + 1) + \"º \" + coches.get(i));\n ++i;\n }\n }", "private void getConsentimientoChik(){\n mConsentimientoChiks = estudioAdapter.getListaConsentimientoChikSinEnviar();\n //ca.close();\n }", "java.util.List<? extends teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabilOrBuilder>\n getCazuriOrBuilderList();", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public ArrayList<ComentarioComp> listaComentarioNoRespondido() {\n ArrayList<ComentarioComp> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select co.nombre, c.nombreUsuario, c.descripcion, c.fecha, c.valoracion\\n\" +\n\"from Comentarios c join Comercios co on c.id_comercio = co.id_comercio\\n\" +\n\"where id_comentario not in (select id_comentario from Respuestas r )\");\n\n while (rs.next()) {\n String nombreC = rs.getString(1);\n String nombre = rs.getString(2);\n String descripcion = rs.getString(3);\n String fecha = rs.getString(4);\n int valoracion = rs.getInt(5);\n\n ComentarioComp c = new ComentarioComp(nombreC, nombre, descripcion, fecha, valoracion);\n\n lista.add(c);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static List<StockInfoCategory> getBICategoryList(){\r\n\t\treturn BICategoryList;\r\n\t}", "public ArrayList<Cuenta> verCuentasDeCliente(String codigo_cliente) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta where Codigo_Cliente = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = new Cuenta();\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComTicketsDependencia> codigosdisponibles(Long ide) {\n\t\t\r\n\t\treturn em.createQuery(\"select ct.id,ct.ticket from ComTicketsDependencia c inner join c.comTicket ct where c.dependencia.id=\"+ide+\" and c.comTicket.estado=1 and c.comPeriodo.estado='1' order by ct.id \").getResultList();\r\n\t}", "String getCodiceFiscale();", "List<Codebadge> findAll();", "public void CobroCiatCasaCiat() throws GWorkException {\r\n\t\tListarVehiculosCiatCasaCiat();\r\n\t}", "public List<BbsNotice> getNoticeList();", "public static void main(String[] args) {\n\t// write your code her\n\n //Crear objeto de la clase BeneficiosCovid19\n BeneficiosCovid19 beneficioscovid = new BeneficiosCovid19();\n\n // Declarar tamaño vector\n int nroarray;\n\n // Crear lista de la Clase BeneficiosCovid19\n ArrayList<BeneficiosCovid19> lista1 = new ArrayList<BeneficiosCovid19>();\n ArrayList<BeneficiosCovid19> lista2 = new ArrayList<BeneficiosCovid19>();\n\n //Ingresar Informacion al lista1\n nroarray= 1;\n lista1 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista1.size(); i++){\n System.out.println(\"ID: \" + lista1.get(i).getId());\n System.out.println(\"Nombre: \" + lista1.get(i).getNombre());\n System.out.println(\"Valor: \" + lista1.get(i).getValorSubsidio());\n }\n */\n\n //Ingresar Informacion al lista2\n nroarray= 2;\n lista2 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista2.size(); i++){\n System.out.println(\"ID: \" +lista2.get(i).getId());\n System.out.println(\"Nombre: \" +lista2.get(i).getNombre());\n System.out.println(\"Valor: \" +lista2.get(i).getValorSubsidio());\n }\n */\n\n //Comparar y mostra comparacion entre lista\n getMejorbeneficios(lista1,lista2);\n\n }", "public List<RjEstadoConservacion> getAllRjEstadoConservacion()throws Exception{\n\t\tList<RjEstadoConservacion> lista=new LinkedList<RjEstadoConservacion>();\n\t\ttry{\n\t\t\tStringBuffer SQL=new StringBuffer(\"SELECT conservacion_id,descripcion FROM \").append(Constante.schemadb).append(\".rj_estado_conservacion order by descripcion asc\");\n\t\t\t\n\t\t\tPreparedStatement pst=connect().prepareStatement(SQL.toString());\n\t\t\tResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tRjEstadoConservacion obj=new RjEstadoConservacion(); \n\t\t\t\tobj.setConservacionId(rs.getInt(\"conservacion_id\"));\n\t\t\t\tobj.setDescripcion(rs.getString(\"descripcion\"));\n\t\t\t\tlista.add(obj);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tthrow(e);\n\t\t}\n\t\treturn lista;\n\t}", "List<C1111j> mo5873b();", "java.util.List<hr.client.appuser.CouponCenter.AppCoupon> \n getCouponListList();", "public ArrayList<Branch> getBranches() {\r\n\t\ttry {\r\n\t\t\tbranchList.clear();\r\n \tFileInputStream fis = new FileInputStream(BRANCH_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \tBranch obj = null;\r\n \r\n \twhile ((obj=(Branch)ois.readObject())!=null) {\r\n \t\tbranchList.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn branchList;\r\n\t}", "private Map<Integer,Boolean> getProductCodeMap(){\n\t\t/*\n\t\t * Preleviamo i codici prodotto attualmente registrati nel database\n\t\t */\n\t\tStatement codeSt = null;\n\t\tResultSet codeRs = null;\n\t\ttry{\n\t\t\tcodeSt = connection.createStatement();\n\t\t\tString sql = \"SELECT CODICE FROM PRODOTTO;\";\n\t\t\tcodeRs = codeSt.executeQuery(sql);\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to fetch product IDs from database.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\tMap<Integer,Boolean> codeMap = new HashMap<Integer,Boolean>();\n\t\tBoolean placeHolder = new Boolean(true);\n\t\ttry{\n\t\t\twhile(codeRs.next()){\n\t\t\t\tcodeMap.put(codeRs.getInt(\"CODICE\"), placeHolder);\n\t\t\t}\n\t\t\tcodeSt.close(); // Chiude anche il ResultSet codeRs\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"ResultSet issue: failed to create the product code list.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\treturn codeMap;\n\t}", "public List<TcTipoNomina> getNominasValidasBenefComodin() {\n String nominasValidasBenefComodin = super.getQueryDefinition(\"nominasValidasBenefComodin\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(nominasValidasBenefComodin, namedParameters, new TcTipoNominasValidasBenefComodinAux());\n }", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "public ArrayList<String> listarCursosInst(String nombreInstituto) throws InstitutoExcepcion;", "public static ArrayList<Krediti> rascetOtricBalans() {\r\n\t\tArrayList<Krediti> foundKrediti = new ArrayList<Krediti>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Krediti vkla : kred) {\r\n\r\n\t\t\tt = t + vkla.getDolg();\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"Otrictelni balanse Scetov= \" + t + \"$\");\r\n\t\treturn foundKrediti;\r\n\t}", "@RequestMapping(value=\"/api/combocustomerinvoicepay\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic List<CustomerInvoiceDto> getDataCombox(){\n\t\treturn customerPayableService.getComboCPayInvoice();\n\t}", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "List<CabinClassModel> findCabinClasses();", "public List<Integer> findAllCambiosCosto() throws Exception {\n List<Integer> filtroCambioCosto = alertasCambiosCostosController.readAll();\r\n return filtroCambioCosto;\r\n }" ]
[ "0.65276", "0.64053595", "0.6206636", "0.6085582", "0.6044601", "0.59871304", "0.59056914", "0.58945835", "0.58575857", "0.585406", "0.5849329", "0.5822537", "0.5816806", "0.5803667", "0.57869256", "0.57774585", "0.57706505", "0.5769331", "0.5763694", "0.5740788", "0.5727811", "0.5717267", "0.57168525", "0.571478", "0.5698113", "0.56898606", "0.56864345", "0.5677665", "0.5655737", "0.56499726", "0.56425923", "0.5632053", "0.5623504", "0.5619533", "0.5602518", "0.5589452", "0.5582024", "0.5570035", "0.55658436", "0.5561917", "0.5553096", "0.55475676", "0.554749", "0.5533634", "0.5526468", "0.5520578", "0.55167586", "0.5516453", "0.55084586", "0.55033785", "0.549731", "0.54878324", "0.5483346", "0.548221", "0.5481727", "0.54796755", "0.5468876", "0.5460025", "0.5453395", "0.5453136", "0.5451319", "0.5448389", "0.5445841", "0.54368883", "0.5434101", "0.5427368", "0.5425433", "0.5419144", "0.54109025", "0.5408566", "0.54084235", "0.53971404", "0.539576", "0.53889567", "0.53831935", "0.5381006", "0.53772676", "0.5376609", "0.53747016", "0.5372949", "0.53723776", "0.5369442", "0.5366214", "0.5366199", "0.5366069", "0.536376", "0.53622067", "0.53517675", "0.5350735", "0.5349867", "0.5349136", "0.5349071", "0.53454757", "0.5339829", "0.53332186", "0.5333051", "0.5331199", "0.5330936", "0.5327872", "0.5322337" ]
0.71798986
0
Carica la lista di tutte le classi piano
public String ottieniListaClassiCompleta(){ final String methodName = "ottieniListaClassiCompleta"; try { caricaListaClassi(); } catch(WebServiceInvocationFailureException wsife) { log.info(methodName, wsife.getMessage()); } return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String classificacao(ArrayList<Musica> musicas, Musica proxima, int k){\n String classeResultado = \"\";\n\n int qtdeMusicas = musicas.size();\n //System.out.println(\"Quantidade de musicas \" + qtdeMusicas);\n double distAmostra[] = new double[qtdeMusicas];\n int vetorOrdenado[] = new int[qtdeMusicas];\n\n for(int i=0; i<qtdeMusicas;i++){\n double dist = distancia(musicas.get(i), proxima);\n distAmostra[i] = dist; \n } \n System.out.println(\"ANTES\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n selectionSort(distAmostra,vetorOrdenado);\n \n System.out.println(\"DEPOIS\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n int contadorDeClasse[] = new int[6];\n int vizinhos = 0;\n for(int i=0; i < distAmostra.length; i++){\n if(vizinhos > k){\n break;\n }\n \n String classe = musicas.get(vetorOrdenado[i]).getClasse();\n //System.out.println(\"musica classe \" + classe); //Para Teste\n\n switch (classe) {\n case \"rap\":\n contadorDeClasse[0]++;\n break;\n case \"axe\":\n contadorDeClasse[1]++;\n break;\n case \"sertanejo\":\n contadorDeClasse[2]++;\n break;\n case \"samba\":\n contadorDeClasse[3]++;\n break;\n case \"forro\":\n contadorDeClasse[4]++;\n break;\n case \"bossa_nova\":\n contadorDeClasse[5]++;\n break; \n }\n vizinhos++;\n } \n /*\n for(int i = 0; i < contadorDeClasse.length; i++){\n System.out.println(contadorDeClasse[i]);\n }\n */\n int maior = 0;\n int indiceMaior = -1;\n for (int i = 0; i < contadorDeClasse.length; i++) {\n if (contadorDeClasse[i] > maior) {\n maior = contadorDeClasse[i];\n indiceMaior = i;\n }\n }\n \n switch (indiceMaior) {\n case 0:\n classeResultado = \"rap\";\n break;\n case 1:\n classeResultado = \"axe\";\n break;\n case 2:\n classeResultado = \"sertanejo\";\n break;\n case 3:\n classeResultado = \"samba\";\n break;\n case 4:\n classeResultado = \"forro\";\n break;\n case 5:\n classeResultado = \"bossa_nova\";\n break; \n }\n return classeResultado;\n }", "private List<String> tipoNotificaciones() {\n\t\tList<String> tipos = new LinkedList<String>();\n\t\ttipos.add(\"Estrenos\");\n\t\ttipos.add(\"Promociones\");\n\t\ttipos.add(\"Noticias\");\n\t\ttipos.add(\"Eventos\");\n\t\ttipos.add(\"Pre-Ventas\");\n\n\t\treturn tipos;\n\t}", "public List<ClassId> getThirdClasses() {\n\t\tList<ClassId> classes = new ArrayList<>();\r\n\r\n\t\t/*\r\n\t\t * classes.add(ClassId.EVAS_SAINT); classes.add(ClassId.SHILLIEN_TEMPLAR);\r\n\t\t * classes.add(ClassId.SPECTRAL_DANCER); classes.add(ClassId.GHOST_HUNTER);\r\n\t\t * \r\n\t\t * classes.add(ClassId.DREADNOUGHT); classes.add(ClassId.PHOENIX_KNIGHT);\r\n\t\t * classes.add(ClassId.HELL_KNIGHT);\r\n\t\t * \r\n\t\t * classes.add(ClassId.HIEROPHANT); classes.add(ClassId.EVAS_TEMPLAR);\r\n\t\t * classes.add(ClassId.SWORD_MUSE);\r\n\t\t * \r\n\t\t * classes.add(ClassId.DOOMCRYER); classes.add(ClassId.FORTUNE_SEEKER);\r\n\t\t * classes.add(ClassId.MAESTRO);\r\n\t\t */\r\n\r\n\t\t// classes.add(ClassId.ARCANA_LORD);\r\n\t\t// classes.add(ClassId.ELEMENTAL_MASTER);\r\n\t\t// classes.add(ClassId.SPECTRAL_MASTER);\r\n\t\t// classes.add(ClassId.SHILLIEN_SAINT);\r\n\r\n\t\tclasses.add(ClassId.SAGGITARIUS);\r\n\t\tclasses.add(ClassId.ARCHMAGE);\r\n\t\tclasses.add(ClassId.SOULTAKER);\r\n\t\tclasses.add(ClassId.MYSTIC_MUSE);\r\n\t\tclasses.add(ClassId.STORM_SCREAMER);\r\n\t\tclasses.add(ClassId.MOONLIGHT_SENTINEL);\r\n\t\tclasses.add(ClassId.GHOST_SENTINEL);\r\n\t\tclasses.add(ClassId.ADVENTURER);\r\n\t\tclasses.add(ClassId.WIND_RIDER);\r\n\t\tclasses.add(ClassId.DOMINATOR);\r\n\t\tclasses.add(ClassId.TITAN);\r\n\t\tclasses.add(ClassId.CARDINAL);\r\n\t\tclasses.add(ClassId.DUELIST);\r\n\r\n\t\tclasses.add(ClassId.GRAND_KHAVATARI);\r\n\r\n\t\treturn classes;\r\n\t}", "List<TipoHuella> listarTipoHuellas();", "private void mostrarCoches() {\n int i = 0;\n for (Coche unCoche : coches) {\n System.out.println((i + 1) + \"º \" + coches.get(i));\n ++i;\n }\n }", "private List<String> listCodesPizza() {\n\t\tString[] paths = file.list();\n\t\tList<String> stringList = new ArrayList<String>(Arrays.asList(paths));\n\t\treturn stringList;\n\t}", "private void classes() {\n List<String> list = new ArrayList<>();\n list.add(\"Mont.\");\n list.add(\"Nur\");\n list.add(\"KG 1\");\n list.add(\"KG 2\");\n list.add(\"Class 1\");\n list.add(\"Class 2\");\n list.add(\"Class 3\");\n list.add(\"Class 4\");\n list.add(\"Class 5\");\n list.add(\"Class 6\");\n list.add(\"Class 7\");\n list.add(\"Class 8\");\n list.add(\"Class 9\");\n list.add(\"Class 10\");\n\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n cls.setAdapter(dataAdapter);\n }", "public static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona();\r\n persona.setAltura(5.5);\r\n persona.setColorPiel(\"Blanca\");\r\n persona.setEdad(16);\r\n persona.setGenero('f');\r\n persona.setNacionalidad(\"Japonesa\");\r\n persona.setPeso(130);\r\n persona.setTipoDePelo(\"Lacio\"); \r\n persona.setOcupacion(\"Dinero\");\r\n \r\n //Se dan todas las características\r\n perro.setNombre(\"Manuel\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);//Se añade a la instancia\r\n \r\n perro = new Perro();//Se limpia y se vuelve a llamar la instancia\r\n perro.setNombre(\"Igor\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Lacio\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n \r\n perro = new Perro();\r\n perro.setNombre(\"Luli\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Siberiano\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n //****************CUANDO EJECUTES ESTO VE COMENTADO LOS BLOQUES QUE NO QUIERES QUE SE USEN*************\r\n //foreach y for hace la misma funcion\r\n //Uso de for\r\n for (Perro perro1:perros){\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo());\r\n }\r\n \r\n //Formas de uso del for each\r\n perros.forEach(perro1->\r\n System.out.println(perro1.getNombre()));\r\n \r\n perros.forEach(perro1 ->{//Se define una variable que es perro1 y esta recorrera toda la lista\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo()); \r\n System.out.println();\r\n \r\n });\r\n \r\n \r\n System.out.println(\"Blanco\".equals(perro.color)? \"Si es blanco\":\"No es blanco\");\r\n \r\n //Uso del if\r\n if (((4/2==0)&&(10/5 !=0))||(100/20==0)){\r\n System.out.println(\"Es bisiesto\");\r\n }else{\r\n System.out.println(\"No es bisiesto\");\r\n }\r\n \r\n //Uso del switcH\r\n switch(x){\r\n case 6:\r\n System.out.println(\"Es verdadero\");\r\n break;\r\n case 2:\r\n System.out.println(\"Es falso\");\r\n break;\r\n default:\r\n System.out.println(\"No es ninguna\");\r\n \r\n //Uso de la lista de un item en especifico \r\n System.out.println(\"Nombre: \" + perros.get(2).getNombre());//El número del get\r\n System.out.println(\"Color: \"+perros.get(2).getColor());//define que item es que tomará\r\n System.out.println(\"Raza: \"+perros.get(2).getRaza());\r\n \r\n \r\n //Demostración del uso de getters\r\n System.out.println(\"Nombre: \");\r\n System.out.println(\"Altura: \" + persona.getAltura());\r\n System.out.println(\"Color: \" + persona.getColorPiel());\r\n System.out.println(\"Edad: \"+persona.getEdad());\r\n System.out.println(\"Genero: \"+persona.getGenero());\r\n System.out.println(\"Nacionalidad: \"+persona.getNacionalidad());\r\n System.out.println(\"Peso: \"+persona.getPeso());\r\n System.out.println(\"Tipo de Pelo: \"+persona.getTipoDePelo());\r\n \r\n }\r\n \r\n}", "public void printaPiedras(){\n for(Piedra p: piedras){\n System.out.println(p);\n }\n \n// Iterator<Piedra> it =piedras.iterator();\n// while(it.hasNext()){\n// System.out.println(it.next());\n// }\n \n }", "public Mazo()\n {\n cartasBaraja = new ArrayList<>();\n for(Palo paloActual: Palo.values()){ \n String palo = paloActual.toString().toLowerCase();\n for(int i = 1; i < 13; i ++){\n\n if(i > 7 && i < 10){\n i = 10;\n }\n Carta carta = new Carta(i, paloActual);\n cartasBaraja.add(carta);\n }\n }\n }", "public static void main(String[] args) {\r\n\t\t\t\t\r\n\t\tPutnici p1 = new Putnici (\"Milan\", \"Milanovic\", 105864312);\r\n\t\tPutnici p2 = new Putnici (\"Gordana\", \"Gajic\", 103886432);\r\n\t\tPutnici p3 = new Putnici (\"Zorana\", \"Pajic\", 103866115);\r\n\t\tPutnici p4 = new Putnici (\"Gordan\", \"Pajic\", 105612834);\r\n\t\tPutnici p5 = new Putnici (\"Zoltan\", \"Hrdelj\", 104916773);\r\n\t\tPutnici p6 = new Putnici (\"Milana\", \"Hrdelj\", 105834491);\r\n\t\tPutnici p7 = new Putnici (\"Atila\", \"Hrdelj\", 112586493);\r\n\t\tPutnici p8 = new Putnici (\"Dejan\", \"Petrovic\", 104386166);\r\n\t\tPutnici p9 = new Putnici (\"Bozidarka\", \"Serdar\", 105821386);\r\n\t\tPutnici p10 = new Putnici (\"Dobrivoj\", \"Serdar\", 104386991);\r\n\t\tPutnici p11 = new Putnici (\"Stefana\", \"Drobnjak\", 105813671);\r\n\t\tPutnici p12 = new Putnici (\"Dubravka\", \"Stojakovic\", 103846939);\r\n\t\t\r\n\t\tList<Putnici>listaPutnika = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnika.add(p1);\r\n\t\tlistaPutnika.add(p2);\r\n\t\tlistaPutnika.add(p3);\r\n\t\tlistaPutnika.add(p4);\r\n\t\tlistaPutnika.add(p5);\r\n\t\tlistaPutnika.add(p6);\r\n\t\tlistaPutnika.add(p7);\r\n\t\tlistaPutnika.add(p8);\r\n\t\tlistaPutnika.add(p9);\r\n\t\tlistaPutnika.add(p10);\r\n\t\tlistaPutnika.add(p11);\r\n\t\tlistaPutnika.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT1 = new ArrayList<Putnici>();\r\n\t\t\t\t\r\n\t\tlistaPutnikaT1.add(p1);\r\n\t\tlistaPutnikaT1.add(p2);\r\n\t\tlistaPutnikaT1.add(p5);\r\n\t\tlistaPutnikaT1.add(p6);\r\n\t\tlistaPutnikaT1.add(p7);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT2 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT2.add(p3);\r\n\t\tlistaPutnikaT2.add(p4);\r\n\t\tlistaPutnikaT2.add(p8);\r\n\t\tlistaPutnikaT2.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT3 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT3.add(p9);\r\n\t\tlistaPutnikaT3.add(p10);\r\n\t\tlistaPutnikaT3.add(p11);\r\n\t\t\r\n\t\tPutovanje v1 = new Putovanje (\"Sardinija-Algero\", 950.25, listaPutnikaT3);\r\n\t\tPutovanje v2 = new Putovanje (\"Sejseli-Ostrvo Mae\", 1024.5, listaPutnikaT1);\r\n\t\tPutovanje v3 = new Putovanje (\"Meksiko-Kankun\", 1456.34, listaPutnikaT2);\r\n\t\t\r\n\t\tList<Putovanje> listaPonuda = new ArrayList<Putovanje>();\r\n\t\tlistaPonuda.add(v1);\r\n\t\tlistaPonuda.add(v2);\r\n\t\tlistaPonuda.add(v3);\r\n\t\t\r\n\t\tSystem.out.println(\"U ponudi su \" + listaPonuda.size() + \" destinacije.\");\r\n\t\tSystem.out.println(\"Pogledajte kompletnu ponudu: \");\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"1. Lokacija: \");\r\n\t\tsb.append(v1.getDestinacija());\r\n\t\tsb.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb.append(v1.getCena());\r\n\t\tsb.append(\" evra.\");\r\n\t\tsb.append(\" Putnici: \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getPrezime());\r\n\t\tsb.append(\".\");\r\n\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\t\tStringBuilder sb1 = new StringBuilder();\r\n\t\tsb1.append(\"2. Lokacija: \");\r\n\t\tsb1.append(v2.getDestinacija());\r\n\t\tsb1.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb1.append(v2.getCena());\r\n\t\tsb1.append(\" evra.\");\r\n\t\tsb1.append(\" Putnici: \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(3).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(3).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(4).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(4).getPrezime());\r\n\t\tsb1.append(\".\");\r\n\t\tSystem.out.println(sb1.toString());\r\n\t\t\r\n\t\tStringBuilder sb2 = new StringBuilder();\r\n\t\tsb2.append(\"3. Lokacija: \");\r\n\t\tsb2.append(v3.getDestinacija());\r\n\t\tsb2.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb2.append(v3.getCena());\r\n\t\tsb2.append(\" evra.\");\r\n\t\tsb2.append(\" Putnici: \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(1).getIme());\r\n\t\tsb2.append(\" \"); \r\n\t\tsb2.append(listaPutnikaT2.get(1).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getPrezime());\r\n\t\tsb2.append(listaPutnikaT2.get(3).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(3).getPrezime());\t\t\r\n\t\tsb2.append(\".\");\r\n\t\tSystem.out.println(sb2.toString());\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"Za destinaciju \" + v2.getDestinacija() + \", trenutna cena aranzmana je\");\t\t\r\n\t\tSystem.out.println(v2.getCena() + \" evra za 10 nocenja sa avionskim prevozom.\");\r\n\t\t\t\t\r\n\t\tv2.setCena(1125.0);\r\n\t\tSystem.out.println(\"Od 10. juna cena aranzmana za destinaciju \" + v2.getDestinacija() + \" iznosice \" + v2.getCena() + \" evra.\");\r\n\t\t\r\n\t\tlistaPonuda.remove(v3);\t\r\n\t\tSystem.out.println(\"Zbog novonastale situacije obavestavamo vas o izmenama ponude putovanja. \");\r\n\t\tSystem.out.println(\"Nakon izmena u ponudi ostaju \" + listaPonuda.size() + \" destinacije: \");\r\n\t\tSystem.out.println(\"1. \" + listaPonuda.get(0).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(0).getCena());\r\n\t\tSystem.out.println(\"2. \" + listaPonuda.get(1).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(1).getCena());\r\n\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t}", "public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }", "public ListapalIterador pala() {\n\n return new ListapalIterador(pal1, pal2, pal3, pal4, pal5);\n }", "public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\r\n\t\t \r\n\t\t String titulo=\"\", artista;\r\n\t\t int duracionminutos;\r\n\t\t Cancion vuelta;\r\n\t\t int menu=9;\r\n\t\tArrayList<Cancion> Lc;\r\n\t\tPlaylist p1=new Playlist(\"playlist coche\");\r\n\t\t//menu\r\n\t\twhile (menu != 0) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"\\n0.Salir\\n1.aņadir cancion\\n2.Obtener cancion\\n3.Obtener total canciones\\n4.mostrar playlist\\n5.duracion total playlist\\n6.reproducir playlist\\n7.reproducir cancion\\n8.limpiar playlist\\n9.eliminar cancion\\n10.encontrar Cancion Por Titulo\\n11.EncontrarCanciones Por Artista\");\r\n\t\t\tSystem.out.println(\"elige una opcion:\");\r\n\t\t\tmenu = sc.nextInt();\r\n\t\t\t// opcion1 aņadir canciones\r\n\t\t\tif (menu == 1) {\r\n\r\n\t\t\t\t// crear objeto nueva cancion\r\n\t\t\t\tCancion nuevaCancion = new Cancion();\r\n\t\t\t\t// pedir y poner los datos de la cancion\r\n\t\t\t\tSystem.out.print(\"Introduce titulo: \");\r\n\t\t\t\tnuevaCancion.setTitulo(sc.next());\r\n\t\t\t\tSystem.out.print(\"Introduce artista: \");\r\n\t\t\t\tnuevaCancion.setArtista(sc.next());\r\n\t\t\t\tSystem.out.print(\"duracion: \");\r\n\t\t\t\tnuevaCancion.setDuracionMinutos(sc.nextInt());\r\n\t\t\t\tp1.anyadirCancion(nuevaCancion);\r\n\t\t\t}\r\n\t\t\t//opcion 2 obtener canciones\r\n\t\t\tif (menu == 2) {\r\n\r\n\t\t\t\tSystem.out.print(\"introduce el id de la cancion que quiere\");\r\n\t\t\t\tint id = sc.nextInt();\r\n\t\t\t\tvuelta = p1.obtieneCancion(id);\r\n\t\t\t\tif (vuelta != null)\r\n\t\t\t\t\tSystem.out.println(\"cancion1: \" + vuelta.getTitulo() + \"\\nartista: \" + vuelta.getArtista()\r\n\t\t\t\t\t\t\t+ \"\\nduracion: \" + vuelta.getDuracionMinutos());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"no existe esa cancion\");\r\n\t\t\t}\r\n\t\t\t//opcion 3 obtener total canciones\r\n\t\t\tif (menu == 3) {\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"la playlist \" + p1.nombre_playlist + \" tiene \" + p1.obtieneTotalCanciones() + \" canciones\");\r\n\t\t\t}\r\n\t\t\t//opcion 4 mostrar playlist\r\n\t\t\tif (menu == 4) {\r\n\t\t\t\tp1.mostrarPlaylist();\r\n\t\t\t}\r\n\t\t\t//opcion 5 duracion total playlist\r\n\t\t\tif (menu == 5) {\r\n\t\t\t\tSystem.out.println(\"la playlist \" + p1.nombre_playlist + \" dura \"+p1.totalDuracionPlaylist()+\" minutos\");\r\n\t\t\t}\r\n\t\t\t//opcion 6 reproducir playlist\r\n\t\t\tif (menu == 6) {\r\n\t\t\t\tp1.reproducirPlaylist();\r\n\t\t\t}\r\n\t\t\t//opcion 7 reproducir cancion\r\n\t\t\tif (menu == 7) {\r\n\t\t\t\tSystem.out.println(\"dime que cancion quieres reproducir\");\r\n\t\t\t\tint id = sc.nextInt();\r\n\t\t\t\tp1.reproducirCancion(id);\r\n\t\t\t}\r\n\t\t\t//opcion 8 limpiar playlist\r\n\t\t\tif (menu == 8) {\r\n\t\t\t\tp1.limpiarPlaylist();\r\n\t\t\t}\r\n\t\t\t//opcion 9 eliminar cancion\r\n\t\t\tif (menu == 9) {\r\n\t\t\t\tSystem.out.println(\"dime que cancion quieres borrar\");\r\n\t\t\t\tint id = sc.nextInt();\r\n\t\t\t\tif(p1.eliminarCancion(id)==true) {\r\n\t\t\t\t\tSystem.out.println(\"Cancion eliminada\");\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\tSystem.out.println(\"la cancion no ha podido ser eliminada\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t//opcion 10 Encontrar Cancion Por Titulo\r\n\t\t\tif (menu == 10) {\r\n\t\t\t\tSystem.out.println(\"digame el titulo\");\r\n\t\t\t\ttitulo=sc.nextLine();\r\n\t\t\t\ttitulo+=sc.nextLine();\r\n\t\t\t\tSystem.out.println(titulo);\r\n\t\t\t\tvuelta=p1.encontrarCancionPorTitulo(titulo);\r\n\t\t\t\tif(vuelta==null) {\r\n\t\t\t\t\tSystem.out.println(\"la cancion \"+titulo+\" no ha sido encontrada\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse System.out.println(\"la cancion \"+titulo+\" encontrada\");\r\n\t\t\t}\r\n\t\t\t//opcion 11 EncontrarCanciones Por Artista\r\n\t\t\tif (menu == 11) {\r\n\t\t\t\tSystem.out.println(\"dime el artista\");\r\n\t\t\t\tartista=sc.nextLine();\r\n\t\t\t\tartista+=sc.nextLine();\r\n\t\t\t\tLc=p1.encontrarCancionesPorArtista(artista);\r\n\t\t\t\t\r\n\t\t\t\tfor(Cancion c: Lc)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"canciones del artista \"+artista+\":\" +c.getTitulo());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n}", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "public static List<Integer> czytanieMotorniczego(){\r\n int numerMotorniczego;\r\n int wiek=0;\r\n int doswiadczenie = 0;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazamotorniczych.txt\");\r\n String numerWStringu = String.valueOf( numerMotorniczego = (int) (Math.random() * 4));\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n while ((line = czytaj.readLine()) != null) {\r\n if (line.equals(numerWStringu)) {\r\n wiek = Integer.parseInt(czytaj.readLine());\r\n doswiadczenie = Integer.parseInt(czytaj.readLine());\r\n break;\r\n }\r\n else{\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return List.of(numerMotorniczego, wiek, doswiadczenie);\r\n }", "public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public ArrayList<Paises> obtenerPaises();", "public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "private void inizializzaBatteri(Vector<Class> classi) {\n batteri = new LinkedList<>();\n Random r = new Random();\n numeroBatteri = new HashMap<>();\n coloreBatteri = new HashMap<>();\n nomiBatteri = new ArrayList<>();\n\n int count = 0;\n for (Class batterio : classi) {\n nomiBatteri.add(batterio.getSimpleName());\n\n for (int i = 0; i < NUM_BATTERI; i++)\n try {\n batteri.add((Batterio) batterio.getConstructors()[0].newInstance(r.nextInt(food.getWidth()),\n r.nextInt(food.getHeight()),\n COLORS[count], food));\n\n numeroBatteri.put(batterio.getSimpleName(), NUM_BATTERI);\n coloreBatteri.put(batterio.getSimpleName(), COLORS[count]);\n } catch (Exception e) {\n System.err.println(\"Non e' stato possibile istanziare il batterio \" + batterio.getSimpleName());\n }\n\n count++;\n }\n }", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }", "java.util.List<com.orange.network.game.protocol.model.ZhaJinHuaProtos.PBPoker> \n getPokersList();", "public List<Pai> getPaises() {\n\t\tList<Pai> retorno = new ArrayList<Pai>();\n\n\t\tQuery query = getEntityManager().createNamedQuery(\"Pai.findAll\");\n\t\tretorno = (List<Pai>) query.getResultList();\n\n\t\treturn retorno;\n\n\t}", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "private static void obtenirUneListe() throws FileNotFoundException {\n\t\tSystem.out.println(\"\\r\\nPour combien de jours : \");\n\t\tint nbJours = sc.nextInt();\n\n\t\tSystem.out.println(\"\\r\\nCombien de propositions : \");\n\t\tint nbPropositions = sc.nextInt();\n\n\t\tList<List<Recette>> listeProposition = genererListePropositions(nbJours, nbPropositions);\n\n\t\tSystem.out.println(\"\\r\\nChoix ? \");\n\t\tint choix = sc.nextInt();\n\n\t\tgenererFichier(listeProposition.get(choix - 1));\n\n\t\tsc.nextLine();\n\n\t\traz();\n\t}", "List<GameCode> getGameCodeList();", "List<Trait> getTraitsOfPrey();", "public void listar() {\n\t\t\n\t}", "public static ArrayList<Symbol> spin(){\n Symbol s1=new Symbol(6,new Image(\"Images/bell.png\")); //bell payout credit is 6\n Symbol s2=new Symbol(2,new Image(\"Images/cherry.png\")); //cherry payout credit is 2\n Symbol s3=new Symbol(3,new Image(\"Images/lemon.png\")); //lemon payout credit is 3\n Symbol s4=new Symbol(4,new Image(\"Images/plum.png\")); //plum payout credit is 4\n Symbol s5=new Symbol(7,new Image(\"Images/redseven.png\")); //seven payout credit is 7\n Symbol s6=new Symbol(5,new Image(\"Images/watermelon.png\"));//watermelon payout credit is 5\n\n //add symbols to the arraylist by adding the objects\n symbolList.add(s1);\n symbolList.add(s2);\n symbolList.add(s3);\n symbolList.add(s4);\n symbolList.add(s5);\n symbolList.add(s6);\n\n //shuffle the arraylist to get random symbols/images\n Collections.shuffle(symbolList);\n return symbolList;\n }", "public abstract java.util.Collection getTecnico_peticion();", "public void listAllSongs()\n {\n for(int i = 0; i < songs.size(); i++) {\n System.out.print((i+1) + \"- \");\n listSong(i);\n }\n }", "public java.util.List<viaggi.Pacchetto> getPacchetti();", "List<IMotion> getMotions();", "private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }", "public List<Colour> getPlayerList();", "public void geneticoPSO(){ \n //leer archivos de texto\n nombreArchivos.stream().map((nombreArchivo) -> lam.leerArchivo(nombreArchivo)).forEach((Mochila moc) -> {\n mochilas.add(moc);\n }); \n \n int o = 0;\n for (Mochila mochila : mochilas) { \n \n Algorithm_PSO alg_pso = new Algorithm_PSO(0.1, 0.8, 0.7, 0.6, 1, tamanioPob, EFOs, mochila.getSolucion().length, mochila); \n Individuo_mochilaPSO res = (Individuo_mochilaPSO)alg_pso.correr();\n System.out.println(\"fitnes: \" + res.getFitness() + \". Solucion\" + Arrays.toString(res.getCromosoma()));\n if (o == 9){\n System.out.println(\"\");\n }\n o++;\n }\n \n }", "public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }", "public List<String> nomsFactures() {\n File folder = new File(\"factures/\");\n File[] listOfFiles = folder.listFiles();\n List<String> noms = new ArrayList<String>();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n noms.add(listOfFiles[i].getName());\n }\n }\n return noms;\n }", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void wczytaj() {\n\t\tTowar t=new Towar();\n\t\tString nazwa;\n\t\tDouble ilosc;\n\t\tDouble cena;\n\t\tDouble wartosc;\n\t\tScanner odczyt=new Scanner(System.in);\n\t\tSystem.out.println(\"Ile towarow chcesz dodac\");\n\t\tint n=odczyt.nextInt();\n\t\tlista=new ArrayList<Towar>(n);\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(\"Podaj nazwe\");\n\t\t\tnazwa=odczyt.next();\t\t\t \n\t\t\tSystem.out.println(\"Podaj ilosc\");\n\t\t\tilosc=odczyt.nextDouble();\t\t\t \n\t\t\tSystem.out.println(\"Podaj cene\");\n\t\t\tcena=odczyt.nextDouble();\t\t\t \n\t\t\tSystem.out.println(\"Podaj wartosc\");\n\t\t\twartosc=odczyt.nextDouble();\n\t\t\tt=new Towar(nazwa,ilosc,cena,wartosc);\n\t\t\tlista.add(t);\n\t}\n\t\t\n\t\t\n\t}", "public List<TipoIva> getList() {\n\t\tQuery q = em.createQuery(\"SELECT i FROM TipoIva i ORDER BY i.nombre\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<TipoIva> lista = q.getResultList();\n\t\tfor (TipoIva ti : lista) ti.getTramosTiposIva().size();\n\t\treturn lista;\n\t}", "public static void main(String[] args){\r\n Language myLang = new Language(\"Willish\", 5, \"Mars\", \"verb-noun-verb-adjective\");\r\n Mayan mayan = new Mayan(\"Ki'che'\", 2330000);\r\n SinoTibetan sino1 = new SinoTibetan(\"Chinese Tibetan\", 100000);\r\n SinoTibetan sino2 = new SinoTibetan(\"Tibetan\", 200000);\r\n ArrayList<Language> langList = new ArrayList<Language>();\r\n langList.add(myLang);\r\n langList.add(mayan);\r\n langList.add(sino1);\r\n langList.add(sino2);\r\n \r\n for (Language allLangs : langList){\r\n allLangs.getInfo();\r\n }\r\n }", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "public ArrayList<Veiculo> pesquisarCarro(int tipoCarro);", "private static void openUpPotionTypes()\n\t{\n\t\tPotion[] potionTypes = null;\n\n\t for (Field f : Potion.class.getDeclaredFields()) \n\t {\n\t f.setAccessible(true);\n\t \n\t try \n\t {\n\t if (f.getName().equals(\"potionTypes\") || f.getName().equals(\"field_76425_a\")) \n\t {\n\t Field modfield = Field.class.getDeclaredField(\"modifiers\");\n\t modfield.setAccessible(true);\n\t modfield.setInt(f, f.getModifiers() & ~Modifier.FINAL);\n\n\t potionTypes = (Potion[])f.get(null);\n\t final Potion[] newPotionTypes = new Potion[256];\n\t System.arraycopy(potionTypes, 0, newPotionTypes, 0, potionTypes.length);\n\t f.set(null, newPotionTypes);\n\t }\n\t } \n\t catch (Exception e) \n\t {\n\t System.err.println(e);\n\t }\n\t }\n\t}", "public List<Pizza> getPizzas(){\n return new ArrayList<>(pizzas);\n }", "public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}", "public List<Vendedor> listarVendedor();", "public List<String> getClassesList() {\n\t\tCursor c = theDb.rawQuery(\"SELECT * \" +\n\t\t\t\t\t\t\t\t \"FROM \" + DbContract.Classes.TABLE_NAME, null);\n\t\t\n\t\t//Read cursor into an ArrayList\n\t\tList<String> classesList = new ArrayList<String>();\n\t\tclassesList.add( context.getString(R.string.all_classes) );\t\t\t//Add \"All classes\"\n\t\t\n\t\twhile (c.moveToNext()) {\n\t\t\tclassesList.add( c.getString( c.getColumnIndex(DbContract.Classes.ATTRIBUTE_NAME)));\n\t\t}\n\t\t\n\t\treturn classesList;\n\t}", "public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n proComMonopolio.add(pro);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return proComMonopolio;\r\n }", "public List<Elemento> getElementosConPrefijo(String pre) {\n ArrayList<Elemento> lista = new ArrayList<>();\n for (String e : porNombre.keySet()) {\n if (e.startsWith(pre)) {\n lista.add(porNombre.get(e));\n }\n }\n return lista;\n }", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "public Coalition(Coalition coalition) {\n super();\n this.definedOn = coalition.getPlayer();\n for(int i : coalition){\n add(i);\n }\n }", "public void cargarNotas() {\n\n notas.add(null);\n notas.add(null);\n notas.add(null);\n\n int nota, cont = 0;\n for (int i = 0; i <= 2; i++) {\n\n System.out.println(\"Indique nota \" + (i + 1));\n nota = leer.nextInt();\n notas.set(cont, nota);\n cont++;\n\n }\n\n cont = 0;\n\n }", "public Kupcek() {\r\n kup = new ArrayList<Karta>();\r\n\r\n for (int i = 0; i < 4; i++) { //gremo preko vseh simbolo kart\r\n for (int j = 0; j < 13; j++) { //in njihovih rangov\r\n if (j == 0) { //prvi indeks je vedno as torej mu damo vrednost 11\r\n Karta card = new Karta(i, j, 11); //ustvarimo nasega asa z i-tim simbolom in j-tim rangom\r\n kup.add(card); //karto dodamo v kupcek\r\n }\r\n else if (j >= 10) { //podobno storimo za karte Fant, Kraljica, Kralj in jim dodamo vrednost 10\r\n Karta card = new Karta(i, j, 10);\r\n kup.add(card);\r\n }\r\n else { //za vse preostale karte povecamo vrednost za +1 indeksa zaradi poteka kart 2[1] 3[2] etc.\r\n Karta card = new Karta(i, j, j+1);\r\n kup.add(card);\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=40;\r\n Persegi p = new Persegi();\r\n p.sisi=40;\r\n lingkaran l= new lingkaran();\r\n l.jari=20;\r\n \r\npp.luas();\r\npp.keliling();\r\np.luas();\r\np.keliling();\r\ns.luas();\r\ns.keliling();\r\nl.luas();\r\nl.keliling();\r\n}", "public List<Roi> getExamples(String classKey, String type);", "public List<Prodotto> getListaProdotti() {\n\t\treturn Shop.getInstance().getProdotti();\n\t}", "public List<Tipousr> findAllTipos(){\n\t\t List<Tipousr> listado;\n\t\t Query q;\n\t\t em.getTransaction().begin();\n\t\t q=em.createQuery(\"SELECT u FROM Tipousr u ORDER BY u.idTipousr\");\n\t\t listado= q.getResultList();\n\t\t em.getTransaction().commit();\n\t\t return listado;\n\t\t \n\t\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "@Override\n public String toString() {\n return \"Pato{\" + \"patas=\" + patas + \", volar=\" + volar + '}';\n }", "private List<String> parseTipologie(HtmlTableCell cell) {\n\t\tString[] tipi = cell.asText().split(\" \");\n\t\tList<String> tipologie = new ArrayList<String>();\n\t\tfor(int i = 0; i < tipi.length; i++) {\t\t\t\t\t// leggo le tipologie e le porto in un formato comune\n\t\t\t\n\t\t\tString t = tipi[i];\t\n\t\t\tif(t.equals(\"P\"))\n\t\t\t\ttipologie.add(\"Pizzeria\");\n\t\t\telse if(t.equals(\"Bar\"))\n\t\t\t\t\ttipologie.add(\"Bar\");\n\t\t\telse if(t.equals(\"Pub\"))\n\t\t\t\t\ttipologie.add(\"Pub\");\n\t\t\telse if(t.equals(\"Agr\"))\n\t\t\t\t\ttipologie.add(\"Agriturismo\");\n\t\t\telse if(t.equals(\"Gel\"))\n\t\t\t\t\ttipologie.add(\"Gelateria\");\n\t\t\telse if(t.equals(\"Ct\"))\n\t\t\t\t\ttipologie.add(\"Catering\");\n\t\t\telse if(t.equals(\"Tr\") || t.equals(\"Ost\"))\n\t\t\t\t\ttipologie.add(\"Trattoria\");\n\t\t\telse if(t.equals(\"Crep\"))\n\t\t\t\t\ttipologie.add(\"Creperia\");\n\t\t\telse if(t.equals(\"SR\"))\n\t\t\t\t\ttipologie.add(\"SalaRicevimento\");\n\t\t\telse if(t.equals(\"H\"))\n\t\t\t\t\ttipologie.add(\"Hotel\");\n\t\t\telse if(t.equals(\"Alb\"))\n\t\t\t\t\ttipologie.add(\"Albergo\");\n\t\t\telse if(t.equals(\"Eno\"))\n\t\t\t\ttipologie.add(\"Enoteca\");\n\t\t\telse if(t.equals(\"Tc\"))\n\t\t\t\ttipologie.add(\"TavolaCalda\");\n\t\t\telse\n\t\t\t\ttipologie.add(\"Ristorante\");\n\t\t}\n\t\treturn tipologie;\n\t}", "public List<String> nomeAnimais(){\n\t\tfor (Animal a: this.animais) {\n\t\t\tthis.nomes.add(a.getNomeNumero());\n\t\t}\n\t\treturn this.nomes;\n\t}", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "List<ExamPackage> getListIsComing();", "@Test public void getListTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n \n Assert.assertArrayEquals(pArray, pList.getList());\n }", "public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }", "public ArrayList<String> listarProgramas();", "public static List<PhuThuocHam> phuToithieu(List<PhuThuocHam> list) {\n\t\tList<PhuThuocHam> listPTH = new ArrayList<PhuThuocHam>(); \n\t\t\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tPhuThuocHam pth = list.get(i);\n\t\t\tfor (int j = 0; j < pth.getVePhai().length(); j++) {\n\t\t\t\tlistPTH.add(new PhuThuocHam(pth.getVeTrai(),Character.toString(pth.getVePhai().charAt(j))));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//bo cac thuoc tinh du thua ben trai\n\t\tint index = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tPhuThuocHam pth = listPTH.get(index);\n\t\t\t//ve ben trai chi co 1 thuoc tinh thi khong can xet\n\t\t\tif (pth.getVeTrai().length() != 1) {\n\t\t\t\tfor (int i = 0; i < pth.getVeTrai().length(); i++) {\n\t\t\t\t\tString chuoiBo = Character.toString(pth.getVeTrai().charAt(i));\n\t\t\t\t\tString chuoiSauKhiBo = CongCu.catChuoi(pth.getVeTrai(), i);\n\t\t\t\t\tif (TimBaoDong.timBaoDong(listPTH, chuoiSauKhiBo).contains(chuoiBo)) {\n//\t\t\t\t\t\tSystem.out.println(\"Delete \" + chuoiBo + \" From \" + pth.getVeTrai() + \" -> \" + pth.getVePhai());\n\t\t\t\t\t\tlistPTH.get(index).setVeTrai(chuoiSauKhiBo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t//bo phu thuoc ham du thua\n\t\tindex = 0;\n\t\twhile (index < listPTH.size()) {\n\t\t\tString trai = listPTH.get(index).getVeTrai();\n\t\t\tString phai = listPTH.get(index).getVePhai();\n\t\t\t\tlistPTH.remove(index);\n\t\t\t\tif(!TimBaoDong.timBaoDong(listPTH, trai).contains(phai)) {\n\t\t\t\tlistPTH.add(index, new PhuThuocHam(trai, phai));\n\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tSystem.out.println(\"Delete \" + trai + \" -> \" + phai);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn listPTH;\n\t}", "public ArrayList<String> getNombrePropiedades(){\n ArrayList<String> listaPropiedades = new ArrayList();\n \n for(TituloPropiedad propiedad :propiedades){\n listaPropiedades.add(propiedad.getNombre());\n }\n return listaPropiedades;\n }", "List<Videogioco> retriveByGenere(String genere);", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "static void constructor(){\n /*SK*/ /*CZ*/ /*EN*/ \n /*0*/ SK.add(\"Základné nastavenia a konštanty\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); //language String value at position \n/*1*/ SK.add(\"A :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*2*/ SK.add(\"Z :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*3*/ SK.add(\"Dľžka rozpätia \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*4*/ SK.add(\"Počítaná vzdialenosť od osi vedenia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*5*/ SK.add(\"\\u0394l \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*6*/ SK.add(\"Dľžka elementu reťazovky\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*7*/ SK.add(\"Aplikovať terén\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*8*/ SK.add(\"Aplikovat modelovaný terén?\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*9*/ SK.add(\"A/Z hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*10*/ SK.add(\"hranice priestoru su v tvare obdlžnika dopočítaneho na základe hodnôt konštánt AZ\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*11*/ SK.add(\"Generované hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*12*/ SK.add(\"hranice priestoru sú generovane an základe vstupných bodov pozn. Comlex Hull\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*13*/ SK.add(\"Teren\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*14*/ SK.add(\"Model terénu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*15*/ SK.add(\"Hlavná os rozpätia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*16*/ SK.add(\"X1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*17*/ SK.add(\"X-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*18*/ SK.add(\"Z1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*19*/ SK.add(\"Z-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*20*/ SK.add(\"X2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*21*/ SK.add(\"X-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*22*/ SK.add(\"Z2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*23*/ SK.add(\"Z-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*24*/ SK.add(\"Ukažka terenu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*25*/ SK.add(\"Y :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*26*/ SK.add(\"Výškový offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*27*/ SK.add(\"block offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*28*/ SK.add(\"Blokuje daný ofset \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*29*/ SK.add(\"Strana počitaneho štvorca\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*30*/ SK.add(\"H :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*31*/ SK.add(\"Vyska pre vertikalne mapovanie\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n \n \n \n \n \n \n \n \n \n \n \n \n // language_main_frame.LangLabel(constants.getLanguage_option(),0) \n inicializovane = true;\n}", "public static Lista getLista(String hilera) {\r\n\t\tif (hilera.equals(\"basica\")) {\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tListaSimple<Enemigo> listaEnemigosBasica = new ListaSimple<Enemigo>();\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tlistaEnemigosBasica.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\txPos += 75;\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosBasica;\r\n\r\n\t\t} else if (hilera.equals(\"claseA\")) {\r\n\t\t\tListaSimple<Enemigo> listaEnemigosClaseA = new ListaSimple<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 1), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseA;\r\n\t\t} else if (hilera.equals(\"claseB\")) {\r\n\t\t\tListaDoble<Enemigo> listaEnemigosClaseB = new ListaDoble<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tint x = (int) (Math.random() * 4 + 1);\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, x, \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseB;\r\n\t\t} else if (hilera.equals(\"claseC\")) {\r\n\t\t\tListaCircular<Enemigo> listaEnemigosClaseC = new ListaCircular<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 2), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseC;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static List <Produk> buatSampleData(){\n\t\tList <Produk> hasil = new ArrayList<Produk>();\n\t\t\n\t\tProduk p1 = new Produk();\n\t\tp1.setKode(\"P-001\");\n\t\tp1.setNama(\"Mouse Logitech\");\n\t\tp1.setHarga(\"150.000,00\");\n\t\thasil.add(p1);\n\t\t\n\t\tProduk p2 = new Produk();\n\t\tp2.setKode(\"P-002\");\n\t\tp2.setNama(\"USB Flashdisk 2 GB\");\n\t\tp2.setHarga(\"50.000,00\");\n\t\thasil.add(p2);\n\t\t\n\t\tProduk p3 = new Produk();\n\t\tp3.setKode(\"P-003\");\n\t\tp3.setNama(\"Laptop Acer\");\n\t\tp3.setHarga(\"10.000.000,00\");\n\t\thasil.add(p3);\n\t\t\n\t\tProduk p4 = new Produk();\n\t\tp4.setKode(\"P-004\");\n\t\tp4.setNama(\"Harddisk 500 GB\");\n\t\tp4.setHarga(\"800.000,00\");\n\t\thasil.add(p4);\n\t\t\n\t\tProduk p5 = new Produk();\n\t\tp5.setKode(\"P-005\");\n\t\tp5.setNama(\"Printer Canon IP1980\");\n\t\tp5.setHarga(\"600.000,00\");\n\t\thasil.add(p5);\n\t\t\n\t\tProduk p6 = new Produk();\n\t\tp6.setKode(\"P-006\");\n\t\tp6.setNama(\"Joystick\");\n\t\tp6.setHarga(\"60.000,00\");\n\t\thasil.add(p6);\n\t\t\n\t\tProduk p7 = new Produk();\n\t\tp7.setKode(\"P-007\");\n\t\tp7.setNama(\"Monitor LCD Acer\");\n\t\tp7.setHarga(\"2.000.000,00\");\n\t\thasil.add(p7);\n\t\t\n\t\treturn hasil;\n\t}", "public List<Models.Class> showClasses() {\n // Get from all levels\n List<Models.Class> results = em.createNativeQuery(\"select c.* from class c, classparticipant cpa, participant p where c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ?\", Models.Class.class).setParameter(1, user.getUserid()).getResultList();\n\n // Display the output\n String output = \"\";\n\n output = addChat(results.size() + \" classes were found.\");\n\n for (Models.Class classroom : results) {\n output += \"<div class='result display' onclick=\\\"window.location.href='Class?id=\" + classroom.getClassid() + \"'\\\">\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/717/717874.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='type'>CLASS</a>\\n\"\n + \" <a class='name'>\" + classroom.getClasstitle() + \"</a>\\n\"\n + \" <a class='subname'>\" + classroom.getClassid() + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n }\n\n servlet.putInJsp(\"result\", output);\n return results;\n }", "private String[] obtenerColores(List<Categoria> listaCategorias) {\n\t\tString[] colores = new String[listaCategorias.size()];\n\t\tRandom obj = new Random();\n\t\tfor (int i = 0; i < listaCategorias.size(); i++) {\n\t\t\tint rand_num = obj.nextInt(0xffffff + 1);\n\t\t\tcolores[i] = String.format(\"#%06x\", rand_num);\n\t\t}\n\t\treturn colores;\n\t}", "Integer[] getClasses() {\n\t\tArrayList<Integer> uniqueClasses = new ArrayList<Integer>();\n\t\tfor(ClassInfo c : preferences) {\n\t\t\tif (uniqueClasses.contains(c.getCourseID()) == false){\n\t\t\t\tuniqueClasses.add(c.getCourseID());\n\t\t\t}\n\t\t}\n\t\treturn uniqueClasses.toArray(new Integer[0]);\n\t}", "public List<Tipo> listaTipo() throws SQLException{\n String sql= \"SELECT * FROM aux_tipo_obra\";\n ResultSet rs = null ;\n try {\n PreparedStatement stmt = connection.prepareStatement(sql);\n rs=stmt.executeQuery();\n List<Tipo> listaTipo = new ArrayList<>();\n \n while(rs.next()){\n Tipo tipo = new Tipo();\n tipo.setId(rs.getInt(\"id_tipo\"));\n tipo.setTipo(rs.getString(\"Tipo\"));\n listaTipo.add(tipo); \n }\n return listaTipo;\n }\n catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "List<Vehiculo>listar();", "@SuppressWarnings(\"unchecked\")\r\n\t\r\n\tpublic List<ParadaUtil> listar() {\n\t\tiniciarTransacao();\r\n\t\tCriteria c = s.createCriteria(ParadaUtil.class);\r\n\t\tc.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\r\n\t\treturn c.list();\r\n\t}", "public static void main(String[] args) {\n\t\tSet<String> nomes = new HashSet<String>();\n\t\tnomes.add(\"Mauricio\");\n\t\tnomes.add(\"Guilherme\");\n\t\tnomes.add(\"Guilherme\");\n\t\t\n\t\tSystem.out.println(nomes.size());\n\t\t\n\t\t/*System.out.println(nomes.get(0));\n\t\tSystem.out.println(nomes.contains(\"Guilherme\"));*/\n\t\t\n\t\t/*for(int i = 0; i < nomes.size(); i++){\n\t\t\tSystem.out.println(nomes.get(i));\n\t\t}*/\n\t/*\t\n\t\tfor(String nome : nomes){\n\t\t\tSystem.out.println(nome);\n\t\t}\n\t\t\n\t\t//Collections.sort(nomes);\n\t\t\n\t\tSystem.out.println(\"Ordenado: \");\n\t\t\n\t\tfor(String nome : nomes){\n\t\t\tSystem.out.println(nome);\n\t\t}\n\t\t\n\t\tArrayList<Conta> contas = new ArrayList<Conta>();\n\t\tConta c1 = new Conta(1500.0);\n\t\tConta c2 = new Conta(700.0);\n\t\tcontas.add(c1);\n\t\tcontas.add(c2);\n\t\t\n\t\tCollections.sort(contas);\n\t\t\n\t\tfor(Conta c : contas){\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//System.out.println(contas.get(1));\n\t\t*/\n\t\t\n\t\t/*Set<Conta> contas = new HashSet<Conta>();\n\t\tConta c1 = new Conta(200.0);\n\t\tConta c2 = new Conta(200.0);\n\t\tcontas.add(c1);\n\t\tcontas.add(c1);\n\t\tcontas.add(c2);\n\t\t\n\t\tSystem.out.println(contas.size());*/\n\t\t\n\t\tMap<String, Conta> contas = new HashMap<String, Conta>();\n\t\tConta c1 = new Conta(200.0);\n\t\tConta c2 = new Conta(500.0);\n\t\tcontas.put(\"Diretor\", c1);\n\t\tcontas.put(\"Gerente\", c2);\n\t\t\n\t\tSystem.out.println(contas.get(\"Diretor\").getSaldo());\n\t\tSystem.out.println(contas.get(\"Gerente\").getSaldo());\n\t\tSystem.out.println(contas.size());\n\t\t\n\t}", "private static void mostrarListaDeComandos() {\n System.out.println(\"Lista de comandos:\");\n for (int i = 0; i < comandos.length; i++){\n System.out.println(comandos[i]);\n }\n }", "public abstract Class<?>[] getCoClasses();", "@Override\r\n public void mostrarProfesores(){\n for(Persona i: listaPersona){\r\n if(i instanceof Profesor){\r\n i.mostrar();\r\n }\r\n }\r\n }", "public void mostrarDisponibles(ArrayList<parqueo> parking){\n try {\n System.out.println(\"Espacios Disponibles: \");//Recorremos la base de datos y vamos imprimiendo solo los que esten disponibles\n for (int num = 0; num < parking.size(); num++){\n parqueo park = parking.get(num);\n if(park.getOcupado() == false){\n System.out.println(\"---------------------------------\");\n System.out.println(\"Numero de parqueo: \" + park.getNumero());\n }\n }\n System.out.println(\"---------------------------------\");\n } catch (Exception e) {\n System.out.println(\"Ocurrio un error en la impresion de los parqueos disponibles\");\n }\n }", "private void fillMusicList()\n\t{\n\t\tmusicList.add(\"violin\");\n\t\tmusicList.add(\"viola\");\n\t\tmusicList.add(\"cello\");\n\t\tmusicList.add(\"bass\");\n\t\tmusicList.add(\"guitar\");\n\t\tmusicList.add(\"drums\");\n\t\tmusicList.add(\"tuba\");\n\t\tmusicList.add(\"flute\");\n\t\tmusicList.add(\"harp\");\n\t}", "public ArrayList<String> Info_Disc_Mus_Compras(String genero) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Mus_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3])) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public void IteratorParcoAuto(){\n Iterator<AbstractAuto> auto=new AutoIterator();\n auto=parco.lista.iterator();\n int i=1;\n while(auto.hasNext())\n {\n Object element=auto.next();\n if(element instanceof Auto)\n {\n System.out.print(i+\" \"+element +\" \\n\");\n }\n i++;\n }\n }", "public ArrayList<AbstractPokemon> selectPokemon()\n {\n /**\n * Tells the Java Runtime Environment to add a certain Pokemon to a list of Pokemon when a button is clicked.\n * \n * @author Jonathan Lowe\n * @version 1.0.0\n */\n class PokemonClickListener implements ActionListener\n {\n private JTextArea label;\n private String pokemonName;\n private AbstractPokemon pokemon;\n private ArrayList<AbstractPokemon> party;\n \n /**\n * Creates a copy of the Pokemon to be stored in the list of Pokemon\n * \n * @param list The list the selected Pokemon will be added to\n * @param label The output stream to be updated when a Pokemon is added\n * @param poke The Pokemon to be added to the list\n */\n public PokemonClickListener(ArrayList<AbstractPokemon> list, JTextArea label, AbstractPokemon poke)\n {\n this.label = label;\n this.pokemonName = poke.toString();\n if(poke instanceof Bulbasaur)\n this.pokemon = new Bulbasaur();\n else if(poke instanceof Sunkern)\n this.pokemon = new Sunkern();\n else if(poke instanceof Oddish)\n this.pokemon = new Oddish();\n else if(poke instanceof Charmander)\n this.pokemon = new Charmander();\n else if(poke instanceof Vulpix)\n this.pokemon = new Vulpix();\n else if(poke instanceof Magby)\n this.pokemon = new Magby();\n else if(poke instanceof Squirtle)\n this.pokemon = new Squirtle();\n else if(poke instanceof Poliwhirl)\n this.pokemon = new Poliwhirl();\n else if(poke instanceof Magikarp)\n this.pokemon = new Magikarp();\n else\n this.pokemon = new Charmander();\n this.party = list;\n }\n \n /**\n * Adds the copied Pokemon to the list of Pokemon\n * \n * @param event The button click event\n */\n public void actionPerformed(ActionEvent event)\n {\n label.append(\"\\n\" + pokemonName);\n party.add(pokemon);\n }\n }\n \n /**\n * Tells the Java Runtime Environment to \"close\" the JFrame this button is found in\n * \n * @author Jonathan Lowe\n * @version 1.0.0\n */\n class ExitClickListener implements ActionListener\n {\n private JFrame frame;\n \n /**\n * Sets the JFrame to be closed\n * \n * @param frame The JFrame to be closed\n */\n public ExitClickListener(JFrame frame)\n {\n this.frame = frame;\n }\n \n /**\n * Closes the JFrame\n * \n * @param event The button click event\n */\n public void actionPerformed(ActionEvent event)\n {\n frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n }\n }\n \n JFrame frame = new JFrame();\n JTextArea label = new JTextArea(\"The Pokemon in your party:\", 7, 20);\n label.setEditable(false);\n JPanel masterPanel = new JPanel(new GridLayout(3, 1));\n JLabel title = new JLabel(\"Please select this trainer's Pokemon.\");\n JPanel titlePanel = new JPanel();\n titlePanel.setSize(10, 400);\n titlePanel.add(title);\n masterPanel.add(titlePanel);\n JPanel bottomPanel = new JPanel(new GridLayout(1, 2));\n ArrayList<AbstractPokemon> party = new ArrayList<AbstractPokemon>();\n JPanel leftPanel = new JPanel(new GridLayout(3, 3));\n JButton charmanderButton = new JButton(new ImageIcon(\"Charmander.gif\"));\n charmanderButton.addActionListener(new PokemonClickListener(party, label, new Charmander()));\n leftPanel.add(charmanderButton);\n JButton vulpixButton = new JButton(new ImageIcon(\"Vulpix.gif\"));\n vulpixButton.addActionListener(new PokemonClickListener(party, label, new Vulpix()));\n leftPanel.add(vulpixButton);\n JButton magbyButton = new JButton(new ImageIcon(\"Magby.gif\"));\n magbyButton.addActionListener(new PokemonClickListener(party, label, new Magby()));\n leftPanel.add(magbyButton);\n JButton squirtleButton = new JButton(new ImageIcon(\"Squirtle.gif\"));\n squirtleButton.addActionListener(new PokemonClickListener(party, label, new Squirtle()));\n leftPanel.add(squirtleButton);\n JButton poliwhirlButton = new JButton(new ImageIcon(\"Poliwhirl.gif\"));\n poliwhirlButton.addActionListener(new PokemonClickListener(party, label, new Poliwhirl()));\n leftPanel.add(poliwhirlButton);\n JButton magikarpButton = new JButton(new ImageIcon(\"Magikarp.gif\"));\n magikarpButton.addActionListener(new PokemonClickListener(party, label, new Magikarp()));\n leftPanel.add(magikarpButton);\n JButton bulbasaurButton = new JButton(new ImageIcon(\"Bulbasaur.gif\"));\n bulbasaurButton.addActionListener(new PokemonClickListener(party, label, new Bulbasaur()));\n leftPanel.add(bulbasaurButton);\n JButton sunkernButton = new JButton(new ImageIcon(\"Sunkern.gif\"));\n sunkernButton.addActionListener(new PokemonClickListener(party, label, new Sunkern()));\n leftPanel.add(sunkernButton);\n JButton oddishButton = new JButton(new ImageIcon(\"Oddish.gif\"));\n oddishButton.addActionListener(new PokemonClickListener(party, label, new Oddish()));\n leftPanel.add(oddishButton);\n bottomPanel.add(leftPanel);\n JPanel rightPanel = new JPanel();\n rightPanel.add(label);\n bottomPanel.add(rightPanel);\n masterPanel.add(bottomPanel);\n JButton exitButton = new JButton(\"Okay, I'm done\");\n exitButton.addActionListener(new ExitClickListener(frame));\n JPanel exitPanel = new JPanel();\n exitPanel.setSize(20, 100);\n exitPanel.add(exitButton);\n masterPanel.add(exitPanel);\n frame.add(masterPanel);\n frame.setTitle(\"Pokemon Selection\");\n frame.setSize(600, 400);\n frame.setVisible(true);\n \n return party;\n }", "private static ArrayList<String> getPlayerFileNames() {\n\n ArrayList<String> fileNames = new ArrayList<String>();\n\n File folder = new File(\"otterbein/pig/player\");\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n if (listOfFiles[i].isFile()) {\n if (listOfFiles[i].getName().endsWith(\".class\")) {\n fileNames.add(listOfFiles[i].getName());\n }\n }\n }\n\n return fileNames;\n }", "private void poetries() {\n\n\t}", "List<Motion> getMotions();", "public ArrayList<String> cartasQueTieneEnLaMano()\n {\n {\n ArrayList<String> coleccionString = new ArrayList<String>();\n for (Carta objetoCarta : cartasDeJugador) {\n coleccionString.add(objetoCarta.getNombre());\n }\n return coleccionString;\n }\n }", "private static void catList() {\n\t\tSystem.out.println(\"List of preset Categories\");\n\t\tSystem.out.println(\"=========================\");\n\t\tSystem.out.println(\n\t\t\t\t\"Family\\nTeen\\nThriller\\nAnimated\\nSupernatural\\nComedy\\nDrama\\nQuirky\\nAction\\nComing of age\\nHorror\\nRomantic Comedy\\n\\n\");\n\t}", "public void metodoInstanciaArbitrariaDeUnTipo2() {\n\t\tString[] lista= {\"cielo\",\"agua\",\"papa\",\"carpintero\",\"taza\",\"ciencia\",\"dedo\",\"mamut\",\"telefono\",\"computadora\",\"maniqui\",\"zapato\"};\n\t\tList<String> palabras=Arrays.asList(lista);\n\t\tpalabras.forEach(String::length);// \n\t\t//forEach recibe un consumidor de solo un parametro, es decir puede ser de la siguiente forma: (palabra)->{}\n\t\t//Pero tambien puede recibir un metodo referencia, en este caso, por ejemplo recibe el metodo length, pero el metodo length se opera sobre una instancia de String.\n\t\t//la firma del metodo length es: public int length() , es decir no recibe parametros, es operado sobre la instanacia del objeto.\n\t\t\n\t\t//Otro caso de referencia arbitraria seria\n\t\tArrays.sort(lista, String::compareToIgnoreCase);\n\t\t//Donde el segundo parametro es un Comparator, en este caso el metodo compareToIgnoreCase es un metodo de instancia, y recibe como parametro otro String para compararse \n\t\t//sobre la instancia del mismo.\n\t\t//definicion del Comparator: int compare(T o1, T o2);\n\t\t//definicion del compareToIgnoreCase: public int compareToIgnoreCase(String str)\n\t\t//La definicion compareToIgnoreCase esta muy cerca de Comparator pero el primero parametro es una instancia y el segundo parametro otra instancia. \n\t}", "public void chooseProp(Joueur joueur){\n int nb;\n int[] tab = new int[5];\n Random randomCode = new Random();\n int pif = this.listprop.length;\n System.out.println(\"pif \"+pif);\n nb = randomCode.nextInt(pif);\n for(int i =0; i<5; i++){\n tab[i] = this.listprop[nb][i];\n }\n this.propositions = tab;\n }" ]
[ "0.5962072", "0.59079385", "0.5886226", "0.5794426", "0.57324535", "0.5667118", "0.5621487", "0.5603944", "0.55964845", "0.55697984", "0.5560394", "0.5539802", "0.55010134", "0.54814434", "0.54585445", "0.54458696", "0.5442083", "0.544166", "0.54259247", "0.5415024", "0.5407932", "0.53964", "0.53563404", "0.5343184", "0.5340612", "0.5324763", "0.5306697", "0.5299363", "0.52874815", "0.5285617", "0.5283644", "0.5278115", "0.5274716", "0.52707237", "0.5249313", "0.5245891", "0.523376", "0.5230702", "0.5228558", "0.52284986", "0.52283615", "0.52256346", "0.5219171", "0.52177745", "0.5217648", "0.52152765", "0.52044713", "0.5194106", "0.51906043", "0.51824194", "0.5181005", "0.5180203", "0.51724464", "0.5166209", "0.5158286", "0.5154583", "0.5150679", "0.5148746", "0.51483804", "0.5147607", "0.5146748", "0.5146573", "0.514025", "0.51398844", "0.5136683", "0.5133776", "0.5131844", "0.5131785", "0.5131264", "0.5130259", "0.5128956", "0.51281446", "0.5125939", "0.5123162", "0.51221764", "0.51181656", "0.5114355", "0.51085305", "0.51075596", "0.5104181", "0.5104136", "0.5102163", "0.5099371", "0.50956184", "0.5092091", "0.5089453", "0.50893307", "0.50870854", "0.5086548", "0.5080238", "0.50762665", "0.50689274", "0.50654966", "0.50651515", "0.5064046", "0.5060829", "0.50573915", "0.505616", "0.505584", "0.50557023", "0.50530964" ]
0.0
-1
Carica la lista delle sole classi piano che hanno conti di tipo ammortamento
public String ottieniListaClassiAmmortamento(){ final String methodName = "ottieniListaClassiAmmortamento"; try { caricaListaClassiAmmortamento(); } catch(WebServiceInvocationFailureException wsife) { log.info(methodName, wsife.getMessage()); } model.setListaClassi(model.getListaClassiAmmortamento()); return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<TipoHuella> listarTipoHuellas();", "public ArrayList<Veiculo> pesquisarCarro(int tipoCarro);", "public static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona();\r\n persona.setAltura(5.5);\r\n persona.setColorPiel(\"Blanca\");\r\n persona.setEdad(16);\r\n persona.setGenero('f');\r\n persona.setNacionalidad(\"Japonesa\");\r\n persona.setPeso(130);\r\n persona.setTipoDePelo(\"Lacio\"); \r\n persona.setOcupacion(\"Dinero\");\r\n \r\n //Se dan todas las características\r\n perro.setNombre(\"Manuel\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);//Se añade a la instancia\r\n \r\n perro = new Perro();//Se limpia y se vuelve a llamar la instancia\r\n perro.setNombre(\"Igor\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Lacio\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n \r\n perro = new Perro();\r\n perro.setNombre(\"Luli\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Siberiano\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n //****************CUANDO EJECUTES ESTO VE COMENTADO LOS BLOQUES QUE NO QUIERES QUE SE USEN*************\r\n //foreach y for hace la misma funcion\r\n //Uso de for\r\n for (Perro perro1:perros){\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo());\r\n }\r\n \r\n //Formas de uso del for each\r\n perros.forEach(perro1->\r\n System.out.println(perro1.getNombre()));\r\n \r\n perros.forEach(perro1 ->{//Se define una variable que es perro1 y esta recorrera toda la lista\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo()); \r\n System.out.println();\r\n \r\n });\r\n \r\n \r\n System.out.println(\"Blanco\".equals(perro.color)? \"Si es blanco\":\"No es blanco\");\r\n \r\n //Uso del if\r\n if (((4/2==0)&&(10/5 !=0))||(100/20==0)){\r\n System.out.println(\"Es bisiesto\");\r\n }else{\r\n System.out.println(\"No es bisiesto\");\r\n }\r\n \r\n //Uso del switcH\r\n switch(x){\r\n case 6:\r\n System.out.println(\"Es verdadero\");\r\n break;\r\n case 2:\r\n System.out.println(\"Es falso\");\r\n break;\r\n default:\r\n System.out.println(\"No es ninguna\");\r\n \r\n //Uso de la lista de un item en especifico \r\n System.out.println(\"Nombre: \" + perros.get(2).getNombre());//El número del get\r\n System.out.println(\"Color: \"+perros.get(2).getColor());//define que item es que tomará\r\n System.out.println(\"Raza: \"+perros.get(2).getRaza());\r\n \r\n \r\n //Demostración del uso de getters\r\n System.out.println(\"Nombre: \");\r\n System.out.println(\"Altura: \" + persona.getAltura());\r\n System.out.println(\"Color: \" + persona.getColorPiel());\r\n System.out.println(\"Edad: \"+persona.getEdad());\r\n System.out.println(\"Genero: \"+persona.getGenero());\r\n System.out.println(\"Nacionalidad: \"+persona.getNacionalidad());\r\n System.out.println(\"Peso: \"+persona.getPeso());\r\n System.out.println(\"Tipo de Pelo: \"+persona.getTipoDePelo());\r\n \r\n }\r\n \r\n}", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public void mostrarLista(String tipo, String encabezado){\n System.out.println(\"\\n\" /*+ \"Departamento de \"*/ + tipo.concat(\"s\") + \"\\n\" + encabezado);\n for (Producto i: productos){\n if (tipo.compareToIgnoreCase(i.tipo) == 0)\n System.out.println(i);\n }\n }", "public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;", "public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}", "public List<MascotaExtraviadaEntity> darProcesosExtraviadaConTipoIgualA(String tipo)throws Exception{\n \n if(!tipo.equals(MascotaEntity.PERRO) && !tipo.equals(MascotaEntity.GATO)){\n throw new BusinessLogicException(\"Las mascotas solo son de tipo gato o perro\");\n }\n \n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n for( MascotaExtraviadaEntity p : procesos){\n if(p.getMascota().getTipo().equals(tipo)){\n procesosFiltrados.add(p);\n }\n }\n \n return procesosFiltrados;\n }", "List<Alimento> getAlimentos();", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;", "public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }", "public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "private List<String> tipoNotificaciones() {\n\t\tList<String> tipos = new LinkedList<String>();\n\t\ttipos.add(\"Estrenos\");\n\t\ttipos.add(\"Promociones\");\n\t\ttipos.add(\"Noticias\");\n\t\ttipos.add(\"Eventos\");\n\t\ttipos.add(\"Pre-Ventas\");\n\n\t\treturn tipos;\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "public void IteratorParcoAuto(){\n Iterator<AbstractAuto> auto=new AutoIterator();\n auto=parco.lista.iterator();\n int i=1;\n while(auto.hasNext())\n {\n Object element=auto.next();\n if(element instanceof Auto)\n {\n System.out.print(i+\" \"+element +\" \\n\");\n }\n i++;\n }\n }", "List<ParqueaderoEntidad> listar();", "public List<Elemento> getElementosPorTipo(TipoElemento tipo) {\n ArrayList<Elemento> lista = new ArrayList<>();\n for (Elemento e : porNombre.values()) {\n if (e.getTipo().equals(tipo)) {\n lista.add(e);\n }\n }\n return lista;\n }", "public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }", "public List<Tipo> listaTipo() throws SQLException{\n String sql= \"SELECT * FROM aux_tipo_obra\";\n ResultSet rs = null ;\n try {\n PreparedStatement stmt = connection.prepareStatement(sql);\n rs=stmt.executeQuery();\n List<Tipo> listaTipo = new ArrayList<>();\n \n while(rs.next()){\n Tipo tipo = new Tipo();\n tipo.setId(rs.getInt(\"id_tipo\"));\n tipo.setTipo(rs.getString(\"Tipo\"));\n listaTipo.add(tipo); \n }\n return listaTipo;\n }\n catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "private List<String> parseTipologie(HtmlTableCell cell) {\n\t\tString[] tipi = cell.asText().split(\" \");\n\t\tList<String> tipologie = new ArrayList<String>();\n\t\tfor(int i = 0; i < tipi.length; i++) {\t\t\t\t\t// leggo le tipologie e le porto in un formato comune\n\t\t\t\n\t\t\tString t = tipi[i];\t\n\t\t\tif(t.equals(\"P\"))\n\t\t\t\ttipologie.add(\"Pizzeria\");\n\t\t\telse if(t.equals(\"Bar\"))\n\t\t\t\t\ttipologie.add(\"Bar\");\n\t\t\telse if(t.equals(\"Pub\"))\n\t\t\t\t\ttipologie.add(\"Pub\");\n\t\t\telse if(t.equals(\"Agr\"))\n\t\t\t\t\ttipologie.add(\"Agriturismo\");\n\t\t\telse if(t.equals(\"Gel\"))\n\t\t\t\t\ttipologie.add(\"Gelateria\");\n\t\t\telse if(t.equals(\"Ct\"))\n\t\t\t\t\ttipologie.add(\"Catering\");\n\t\t\telse if(t.equals(\"Tr\") || t.equals(\"Ost\"))\n\t\t\t\t\ttipologie.add(\"Trattoria\");\n\t\t\telse if(t.equals(\"Crep\"))\n\t\t\t\t\ttipologie.add(\"Creperia\");\n\t\t\telse if(t.equals(\"SR\"))\n\t\t\t\t\ttipologie.add(\"SalaRicevimento\");\n\t\t\telse if(t.equals(\"H\"))\n\t\t\t\t\ttipologie.add(\"Hotel\");\n\t\t\telse if(t.equals(\"Alb\"))\n\t\t\t\t\ttipologie.add(\"Albergo\");\n\t\t\telse if(t.equals(\"Eno\"))\n\t\t\t\ttipologie.add(\"Enoteca\");\n\t\t\telse if(t.equals(\"Tc\"))\n\t\t\t\ttipologie.add(\"TavolaCalda\");\n\t\t\telse\n\t\t\t\ttipologie.add(\"Ristorante\");\n\t\t}\n\t\treturn tipologie;\n\t}", "public List<FaturamentoVO> validaSelecionaSinistros(String ano, int tipo) {\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0%\");\n\n\t\tUteis uteis = new Uteis();\n\t\tString anoAnterior = Integer.toString((Integer.parseInt(uteis.cortaRetornaAno(ano)) - 1));\n\n\t\tList<FaturamentoVO> listaTratada = new ArrayList<FaturamentoVO>();\n\n\t\tList<FaturamentoVO> listaAnoParam = dadosFaturamentoDetalhado;\n\t\tList<FaturamentoVO> listaAnoAnterior = dadosFaturamentoDetalhadoAnoAnterior;\n\n\t\tString quantidadeTextoBancoDados = \"\";\n\t\tString quantidadeTextoApresentacao = \"\";\n\t\tString valorTextoBancoDados = \"\";\n\t\tString valorTextoApresentacao = \"\";\n\n\t\tswitch (tipo) {\n\t\tcase 1: // AVISADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS AVISADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS AVISADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 2: // INDENIZADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS INDENIZADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS INDENIZADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 3: // PENDENTE\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS PENDENTES\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS PENDENTES\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 4: // DESPESA\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS - DESPESAS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS - DESPESAS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaAnoParam.size(); i++) {\n\t\t\tif (listaAnoParam.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoParam.get(i).getProduto().equals(valorTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoParam.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoParam\n\n\t\tfor (int i = 0; i < listaAnoAnterior.size(); i++) {\n\t\t\tif (listaAnoAnterior.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(anoAnterior);\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoAnterior.get(i).getProduto().equals(valorTextoBancoDados)) {\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(anoAnterior);\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoAnterior\n\n\t\tbyte qtdAnoParam = 0;\n\t\tbyte qtdAnoAnterior = 2;\n\n\t\tbyte vlrAnoParam = 1;\n\t\tbyte vlrAnoAnterior = 3;\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 QTD\n\t\tString[] mesesQtdTratado = new String[13];\n\t\tdouble totalQtd = 0.0D;\n\t\tFaturamentoVO variacaoQtdVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\t\t\tBigDecimal bigQtdAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\")));\n\n\t\t\ttry {\n\t\t\t\ttotalQtd = Double.parseDouble((bigQtdAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 4,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalQtd = 0D;\n\t\t\t}\n\n\t\t\tmesesQtdTratado[j] = percentForm.format(totalQtd);\n\n\t\t}\n\t\tvariacaoQtdVO.setProduto(\"Varia&ccedil;&atilde;o Qtd.\");\n\t\tvariacaoQtdVO.setMeses(mesesQtdTratado);\n\t\tlistaTratada.add(variacaoQtdVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 Valor\n\t\tString[] mesesVlrTratado = new String[13];\n\t\tdouble totalVlr = 0.0D;\n\t\tFaturamentoVO variacaoVlrVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalVlr = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\tlistaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t4, RoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalVlr = 0D;\n\t\t\t}\n\n\t\t\tmesesVlrTratado[j] = percentForm.format(totalVlr);\n\n\t\t}\n\t\tvariacaoVlrVO.setProduto(\"Varia&ccedil;&atilde;o Valor\");\n\t\tvariacaoVlrVO.setMeses(mesesVlrTratado);\n\t\tlistaTratada.add(variacaoVlrVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoParam - anoAtual\n\t\tString[] mesesAvisoMedioAnoParamTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoParam = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoParamVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoParam = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t2, RoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoParam = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoParamTratado[j] = uteis.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoParam));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoParamVO.setAno(uteis.cortaRetornaAno(ano));\n\t\tvariacaoAvisoMedioAnoParamVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoParamVO.setMeses(mesesAvisoMedioAnoParamTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoParamVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoAnterior\n\t\tString[] mesesAvisoMedioAnoAnteriorTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoAnterior = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoAnteriorVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoAnterior = new BigDecimal(Double\n\t\t\t\t\t.parseDouble(listaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoAnterior = Double.parseDouble((bigVlrAnoAnterior.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 2,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoAnterior = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoAnteriorTratado[j] = uteis\n\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoAnterior));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setAno(anoAnterior);\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setMeses(mesesAvisoMedioAnoAnteriorTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoAnteriorVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao Media\n\t\tshort avisoMedioAnoParam = 6;\n\t\tshort avisoMedioAnoAnterior = 7;\n\n\t\tString[] meses_AM_Tratado = new String[13];// AM -aviso medio\n\t\tdouble total_AM = 0.0D;\n\t\tFaturamentoVO variacao_AM_VO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal big_AM_AnoParam = new BigDecimal(Double.parseDouble(\n\t\t\t\t\tlistaTratada.get(avisoMedioAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotal_AM = Double\n\t\t\t\t\t\t.parseDouble((big_AM_AnoParam\n\t\t\t\t\t\t\t\t.divide(new BigDecimal(listaTratada.get(avisoMedioAnoAnterior).getMeses()[j]\n\t\t\t\t\t\t\t\t\t\t.replace(\".\", \"\").replace(\",\", \".\")), 4, RoundingMode.HALF_DOWN)).toString())\n\t\t\t\t\t\t- 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotal_AM = 0D;\n\t\t\t}\n\n\t\t\tmeses_AM_Tratado[j] = percentForm.format(total_AM);\n\n\t\t}\n\t\tvariacao_AM_VO.setProduto(\"Varia&ccedil;&atilde;o M&eacute;dia\");\n\t\tvariacao_AM_VO.setMeses(meses_AM_Tratado);\n\t\tlistaTratada.add(variacao_AM_VO);\n\n\t\treturn listaTratada;\n\t}", "public RepositorioAvioes() {\n avioes = new ArrayList<Aviao>();\n }", "public ArrayList<Paises> obtenerPaises();", "public List<mTipoAdicionais> selectAdicTipoProd(int codAdicional) throws SQLException {\n\t\tString sql = \"select adictipoprod.codTipoProduto,tDescTipo, adictipoprod.adicPreco,adictipoprod.adicAtivo\\r\\n\" + \r\n\t\t\t\t\"from adicionais, adictipoprod,tipoproduto\\r\\n\" + \r\n\t\t\t\t\"where adictipoprod.codTipoProduto = tipoproduto.codTipoProduto \\r\\n\" + \r\n\t\t\t\t\"and adictipoprod.codAdicionais = adicionais.codAdicionais\\r\\n\" + \r\n\t\t\t\t\"and adicionais.codAdicionais = ?;\";\r\n\t\t\r\n\t\tPreparedStatement stm = this.createPreparedStatement(sql);\r\n\t\tstm.setInt(1,codAdicional);\r\n\t\t\r\n\t\tResultSet rs = stm.executeQuery();\r\n\t\tList<mTipoAdicionais> retorno = new ArrayList();\r\n\t\t\r\n\t\twhile(rs.next()) {\r\n\t\t\tmTipoAdicionais temp = new mTipoAdicionais();\r\n\t\t\ttemp.setCodTipoProduto(rs.getInt(1));\r\n\t\t\ttemp.setTipoProduto(rs.getString(2));\r\n\t\t\ttemp.setPreco(rs.getFloat(3));\r\n\t\t\ttemp.setAtivo(rs.getBoolean(4));\r\n\t\t\t\r\n\t\t\tretorno.add(temp);\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\tclose(rs,stm);\r\n\t\tfecha();\r\n\t\treturn retorno;\r\n\r\n\t}", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "List<Oficios> buscarActivas();", "public abstract java.util.Collection getTecnico_peticion();", "public Adaptador_Puntuaciones(ArrayList<Puntuacion> puntuaciones) {\n listaPuntuaciones = puntuaciones;\n }", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "@Override\n public String toString() {\n return \"Pato{\" + \"patas=\" + patas + \", volar=\" + volar + '}';\n }", "public void metodoInstanciaArbitrariaDeUnTipo2() {\n\t\tString[] lista= {\"cielo\",\"agua\",\"papa\",\"carpintero\",\"taza\",\"ciencia\",\"dedo\",\"mamut\",\"telefono\",\"computadora\",\"maniqui\",\"zapato\"};\n\t\tList<String> palabras=Arrays.asList(lista);\n\t\tpalabras.forEach(String::length);// \n\t\t//forEach recibe un consumidor de solo un parametro, es decir puede ser de la siguiente forma: (palabra)->{}\n\t\t//Pero tambien puede recibir un metodo referencia, en este caso, por ejemplo recibe el metodo length, pero el metodo length se opera sobre una instancia de String.\n\t\t//la firma del metodo length es: public int length() , es decir no recibe parametros, es operado sobre la instanacia del objeto.\n\t\t\n\t\t//Otro caso de referencia arbitraria seria\n\t\tArrays.sort(lista, String::compareToIgnoreCase);\n\t\t//Donde el segundo parametro es un Comparator, en este caso el metodo compareToIgnoreCase es un metodo de instancia, y recibe como parametro otro String para compararse \n\t\t//sobre la instancia del mismo.\n\t\t//definicion del Comparator: int compare(T o1, T o2);\n\t\t//definicion del compareToIgnoreCase: public int compareToIgnoreCase(String str)\n\t\t//La definicion compareToIgnoreCase esta muy cerca de Comparator pero el primero parametro es una instancia y el segundo parametro otra instancia. \n\t}", "public TipoPedina getTipo() {\n return tipo;\n }", "public List<SinistroPendente_FaixaVO> validaSelecionaSinistroPendente_Faixa(int tipo) {\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tList<SinistroPendente_FaixaVO> listaTratadaTotais = new ArrayList<SinistroPendente_FaixaVO>();\n\t\tList<SinistroPendente_FaixaVO> listaSinistroPendente = null;\n\t\tList<SinistroPendente_FaixaVO> listaFinal = new ArrayList<SinistroPendente_FaixaVO>();\n\n\t\tswitch (tipo) {\n\t\tcase 1: // faixa tempo\n\t\t\tlistaSinistroPendente = listaSinistroPendenteTempo;\n\t\t\tbreak;\n\t\tcase 2:// faixa valor\n\t\t\tlistaSinistroPendente = listaSinistroPendenteValor;\n\t\t\tbreak;\n\t\t}\n\n\t\tint totalNumSinistrosPendentes_Administrativo = 0;\n\t\tint totalNumSinistrosPendentes_Judicial = 0;\n\t\tint totalNumSinistrosPendentes_Total = 0;\n\n\t\tBigDecimal totalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\n\t\tString textoGrupoAnterior = \"\";\n\n\t\t// ============================\n\t\t// esse obj serve apenas para a lista nao ficar vazia\n\t\tSinistroPendente_FaixaVO totaNulo = new SinistroPendente_FaixaVO();\n\t\ttotaNulo.setGrupo(\"vazio\");\n\t\t// ============================\n\n\t\tlistaTratadaTotais.add(totaNulo);\n\t\tfor (int i = 0; i < listaSinistroPendente.size(); i++) {\n\n\t\t\tif (i == 0) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior)) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (!(listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior))) {\n\n\t\t\t\tSinistroPendente_FaixaVO totalVO = new SinistroPendente_FaixaVO();\n\t\t\t\ttotalVO.setGrupo(textoGrupoAnterior);\n\t\t\t\ttotalVO.setFaixa(\"Total\");\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Administrativo(\n\t\t\t\t\t\ttotalValorSinistrosPendentes_Administrativo.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\t\tlistaTratadaTotais.add(totalVO);\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Judicial = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\n\t\t\t\ttotalNumSinistrosPendentes_Total = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t}\n\n\t\t}\n\t\tboolean insere = false;\n\t\tfor (int i = 0; i < listaTratadaTotais.size(); i++) {\n\t\t\tif (listaTratadaTotais.get(i).getGrupo().equalsIgnoreCase(textoGrupoAnterior)) {\n\t\t\t\tinsere = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tinsere = true;\n\t\t\t}\n\t\t}\n\t\tif (insere) {\n\t\t\tSinistroPendente_FaixaVO totaVO = new SinistroPendente_FaixaVO();\n\t\t\ttotaVO.setGrupo(textoGrupoAnterior);\n\t\t\ttotaVO.setFaixa(\"Total\");\n\t\t\ttotaVO.setValorSinistrosPendentes_Administrativo(totalValorSinistrosPendentes_Administrativo.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\n\t\t\ttotaVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\ttotaVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\ttotaVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\tlistaTratadaTotais.add(totaVO);\n\t\t}\n\t\tlistaTratadaTotais.remove(0);// remove o obj inserido acima com o texto\n\t\t\t\t\t\t\t\t\t\t// \"nulo\"\n\n\t\t// ###################################################\n\t\t// ###################################################\n\t\t// parte para calcular as porcentagens\n\t\t// ###################################################\n\n\t\t// este 'for' serve para vincular a lista de pendentes com a lista de\n\t\t// totais atraves do indice da lista de totais\n\t\ttextoGrupoAnterior = \"\";\n\t\tint tamLista = listaSinistroPendente.size();\n\t\tfor (int i = 0; i < tamLista; i++) {\n\t\t\tfor (int j = 0; j < listaTratadaTotais.size(); j++) {\n\t\t\t\tif (listaSinistroPendente.get(i).getGrupo().equalsIgnoreCase(listaTratadaTotais.get(j).getGrupo())) {\n\t\t\t\t\t// Exemplo: Na listaSinistroPendente na posicao i=5 o\n\t\t\t\t\t// produto eh \"Auto Correntista\". Na listaTratadaTotais\n\t\t\t\t\t// esse produto \"Auto Correntista\" eh j=1. Entao assim\n\t\t\t\t\t// saberei onde esta o total de \"Auto Correntista\" na\n\t\t\t\t\t// listaTratadaTotais.\n\t\t\t\t\tlistaSinistroPendente.get(i).setIndiceListaTotais(j);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// este 'for' serve para organizar as listas de pendentes e a lista de\n\t\t// totais\n\t\tint inseriu = 0;\n\t\tint ultimoIndice = 0;\n\t\tfor (int j = 0; j < listaSinistroPendente.size(); j++) {\n\n\t\t\tif (listaSinistroPendente.get(j).getIndiceListaTotais() != ultimoIndice) {\n\t\t\t\tinseriu = 0;\n\t\t\t}\n\t\t\tif (inseriu == 0) {\n\t\t\t\tlistaFinal.add(listaTratadaTotais.get(listaSinistroPendente.get(j).getIndiceListaTotais()));\n\t\t\t\tultimoIndice = listaSinistroPendente.get(j).getIndiceListaTotais();\n\t\t\t\tinseriu = 1;\n\t\t\t}\n\n\t\t\tlistaFinal.add(listaSinistroPendente.get(j));\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\t\t\tif (!(listaFinal.get(i).getFaixa().equalsIgnoreCase(\"Total\"))) {\n\n\t\t\t\tint indice = listaFinal.get(i).getIndiceListaTotais();\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Administrativo())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Administrativo())));\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(percentForm.format(\n\t\t\t\t\t\t\tnew BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Administrativo()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(\"0%\");\n\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Judicial())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Judicial())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Judicial()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Judicial()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Total())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Total())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Total()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(listaTratadaTotais.get(indice).getValorSinistrosPendentes_Total()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t}\n\n\t\t\t} // if\n\t\t} // for\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Administrativo(uteis.insereSeparadoresMoeda(roundForm\n\t\t\t\t\t.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Judicial(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Judicial()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Total(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Total()))));\n\n\t\t}\n\n\t\treturn listaFinal;\n\t}", "public void trancribirPistas() {\r\n\t\t\r\n\t\tfor (int x = 0; x<manejadorArchivos.getPistas().size();x++) {\r\n\t\t\t\r\n\t\t\tpistas.add(manejadorArchivos.getPistas().get(x));\t\r\n\t\t}\r\n\t}", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "public String[] ListarDPIMedicos(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Medico) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIMedicos= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Medico) {\r\n DPIMedicos[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIMedicos;\r\n }", "void getPlanificacion(int tipoPlanificacion);", "public Mazo()\n {\n cartasBaraja = new ArrayList<>();\n for(Palo paloActual: Palo.values()){ \n String palo = paloActual.toString().toLowerCase();\n for(int i = 1; i < 13; i ++){\n\n if(i > 7 && i < 10){\n i = 10;\n }\n Carta carta = new Carta(i, paloActual);\n cartasBaraja.add(carta);\n }\n }\n }", "public ListapalIterador pala() {\n\n return new ListapalIterador(pal1, pal2, pal3, pal4, pal5);\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "@Override\r\n public String toString() {\r\n return tipo;\r\n }", "public ArrayList<PremioDto> listarPremiosGanadores(PlanLoteriaDto dto) {\n this.ganadores = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n\n this.consultarGanadoresSuperPleno(dto, con);\n this.consultarGanadoresPleno(dto, con);\n this.consultarGanadoresPata(dto, con);\n this.consultarGanadoresUña(dto, con);\n this.consultarGanadoresCombinado(dto, con);\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n return this.ganadores;\n }\n\n }", "public Lista(int tam, byte tipoOrden) {\n this.tam = tam;\t\t\t\t\t//NOS AHORRAMOS UN METODO \n this.tipoOrden = tipoOrden;\t//NOS AHORRAMOS UN METODO\n tope = 0;\n listaLlena=false;\n listaVacia=true;\n lista = new int[tam];\t\t\t//NOS AHORRAMOS UN METODO\n listaClon = new int[tam]; //PARA EL RECORREDO HACIA DELANTE\n \n }", "public List<Mobibus> darMobibus();", "public List<Perfil> perfilListar() {\r\n\r\n try {\r\n ControladorPerfil ctrlperfil = new ControladorPerfil();\r\n return ctrlperfil.getListaPerfil();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n return new ArrayList<>();\r\n }\r\n }", "public Artefato() {\r\n\t\tthis.membros = new ArrayList<Membro>();\r\n\t\tthis.servicos = new ArrayList<IServico>();\r\n\t}", "public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n proComMonopolio.add(pro);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return proComMonopolio;\r\n }", "public static void main(String[] args) {\n ArrayList<Pessoa> pessoas = new ArrayList<>();\n Scanner s = new Scanner(System.in);\n char sin;\n \n //Identifica como o filtro deve ser realizado\n System.out.println(\"Deseja filtrar por nome (1) ou idade (2)?\");\n sin = s.next().charAt(0); \n \n //Instancia e povoa a primeira pessoa\n Pessoa pessoa1 = new Pessoa();\n pessoa1.setNome(\"Carlos\");\n pessoa1.setIdade(32);\n \n //Instancia e povoa a segunda pessoa\n Pessoa pessoa2 = new Pessoa();\n pessoa2.setNome(\"Izabel\");\n pessoa2.setIdade(21);\n \n //Instancia e povoa a terceira pessoa\n Pessoa pessoa3 = new Pessoa();\n pessoa3.setNome(\"Ademir\");\n pessoa3.setIdade(34); \n \n //Adiciona objetos no ArrayList\n pessoas.add(pessoa1);\n pessoas.add(pessoa2);\n pessoas.add(pessoa3);\n \n //Compara utilizando Comparator - necessario utilizar para permitir a criaçao de dois metodos de comparaçao\n if(sin == '1'){\n Collections.sort(pessoas, comparaNome());\n }else if(sin == '2'){\n Collections.sort(pessoas, comparaIdade());\n }\n \n //Imprime as pessoas considerando a ordem do sort\n System.out.println(\"Saida do comparator: \");\n for(Pessoa p : pessoas){\n System.out.println(\"Nome: \" +p.getNome()+ \" Idade: \" + p.getIdade());\n }\n \n //Compara utilizando Comparable - somente ordenara de acordo com a implementaçao do metodo na clase de origem - somente uma implementaçao\n //O que nao permitira variar entre atributos de ordenaçao diferentes.\n System.out.println(\"\\nSaida do comparable (Filtro atual por idade): \");\n Collections.sort(pessoas);\n for(Pessoa p : pessoas){\n System.out.println(\"Nome: \" +p.getNome()+ \" Idade: \" + p.getIdade());\n }\n \n }", "public List<Prevision> getListTipoPrevisionByFK(Integer Aux);", "public static List<Integer> czytanieMotorniczego(){\r\n int numerMotorniczego;\r\n int wiek=0;\r\n int doswiadczenie = 0;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazamotorniczych.txt\");\r\n String numerWStringu = String.valueOf( numerMotorniczego = (int) (Math.random() * 4));\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n while ((line = czytaj.readLine()) != null) {\r\n if (line.equals(numerWStringu)) {\r\n wiek = Integer.parseInt(czytaj.readLine());\r\n doswiadczenie = Integer.parseInt(czytaj.readLine());\r\n break;\r\n }\r\n else{\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return List.of(numerMotorniczego, wiek, doswiadczenie);\r\n }", "public Puerto()\n {\n alquileres = new ArrayList<Alquiler>();\n }", "public String[] ListarDPIEnfermeras(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Enfermera) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIEnfermeras= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Enfermera) {\r\n DPIEnfermeras[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIEnfermeras;\r\n }", "public List<Poliza> generarPoliza(final Periodo p){\r\n\t\tList<Poliza> polizas=new ArrayList<Poliza>();\r\n\t\tfor(Date dia:p.getListaDeDias()){\r\n\t\t\ttry {\r\n\t\t\t\tPoliza res=generarPoliza(dia);\r\n\t\t\t\tpolizas.add(res);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(\"No genero la poliza para el dia: \"+dia+ \" \\nMsg: \"+ExceptionUtils.getRootCauseMessage(e)\r\n\t\t\t\t\t\t,e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn polizas;\r\n\t}", "public java.util.List<viaggi.Pacchetto> getPacchetti();", "@Override\r\n public void mostrarProfesores(){\n for(Persona i: listaPersona){\r\n if(i instanceof Profesor){\r\n i.mostrar();\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }", "public List<String> getTiposEmpleados() {\n List<String> tipos = new ArrayList<String>();\n tipos.add(TipoEmpleado.EmpleadoAsalarido.name());\n tipos.add(TipoEmpleado.EmpleadoBaseMasComision.name());\n tipos.add(TipoEmpleado.EmpleadoPorComision.name());\n tipos.add(TipoEmpleado.EmpleadoPorHora.name());\n\n return tipos;\n }", "@Override\r\n\tpublic String getTipoPersona() {\n\t\treturn \"alumno del curso \" + curso + \" de \" + grupo + \" de \" + tipoEstudios ;\r\n\t\t\r\n\t}", "public NodoArbolSintactico(String nombre, int tipo) {\r\n hijos = new ArrayList<>();\r\n this.nombre = nombre;\r\n accion = null;\r\n this.tipo = tipo;\r\n }", "public List<Tipo> getTiposOrdenadosNumerosEventosDecrescente() {\n\t\tList<Tipo> listaOrdenada = new ArrayList<Tipo>();\n\n\t\ttry {\n\t\t\tverificaTiposOrdenados(listaOrdenada);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERRO] Arquivo não encontrado no caminho: '\" + ARQUIVO_CSV + \"'\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERRO] Erro ao ler arquivo csv.\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tfechaBuffer();\n\t\t}\n\t\treturn listaOrdenada;\n\t}", "public void printaPiedras(){\n for(Piedra p: piedras){\n System.out.println(p);\n }\n \n// Iterator<Piedra> it =piedras.iterator();\n// while(it.hasNext()){\n// System.out.println(it.next());\n// }\n \n }", "@Override\n\tpublic void tipoMovimento() {\n\t\tSystem.out.println(super.getNome() + \" anda com 4 patas.\");\n\t}", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }", "public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}", "private void carregarPacienteAtivoList() {\n\t\tthis.setPacienteList(new ArrayList<Paciente>());\n\t\tthis.getPacienteList().addAll(this.getPacienteDAO().getPacienteAtivoList());\n\t}", "@Override\r\n\tpublic List<Turista> conMasPuntos() {\n\t\treturn (List<Turista>) turistaDAO.conMasPuntos();\r\n\t}", "public List<Comentario> buscaPorTopico(Topico t);", "public Tarta(int tipo) {\r\n\t\tthis.setTipo(tipo);\r\n\t}", "public List<Pai> getPaises() {\n\t\tList<Pai> retorno = new ArrayList<Pai>();\n\n\t\tQuery query = getEntityManager().createNamedQuery(\"Pai.findAll\");\n\t\tretorno = (List<Pai>) query.getResultList();\n\n\t\treturn retorno;\n\n\t}", "public int getTipoAtaque(){return tipoAtaque;}", "@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }", "public ArrayList<TypeProjet> listeAllTypeProjet() throws RemoteException{\r\n\t\t\tArrayList<TypeProjet> list = new ArrayList<TypeProjet>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t String requete = \"select t_id, t_nom from typeprojet where t_cursus ='\" + _etudiant.getCursus() +\r\n\t\t \t\t\t\t\"' AND CURRENT_DATE >= t_debinscr AND CURRENT_DATE <= t_fininscr\";\r\n\t\t System.out.println(\"requete listeAllTypeProjet: \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tint t_id = Integer.parseInt(data.getColumnValue(\"t_id\"));\r\n\t\t \tString t_nom = data.getColumnValue(\"t_nom\");\r\n\t\t \r\n\t\t \tlist.add(new TypeProjetImpl (t_id, t_nom));\r\n\t\t }\r\n\t\t System.out.println(\"_____________________________________________\");\r\n\t\t for (TypeProjet i : list)\r\n\t\t \tSystem.out.println(i.get_id() + \" \" + i.get_nom());\r\n\t\t System.out.println(\"______________________________________________\");\r\n\t\t \t\t \r\n\t\t return list;\r\n\t\t}", "public ArrayList<ModelAprendizagemTeorica> getListaAprendizagemTeoricaDAO(){\n ArrayList<ModelAprendizagemTeorica> listamodelAprendizagemTeorica = new ArrayList();\n ModelAprendizagemTeorica modelAprendizagemTeorica = new ModelAprendizagemTeorica();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"id,\"\n + \"descricao,\"\n + \"texto\"\n + \" FROM\"\n + \" aprendizagem_teorica\"\n + \";\"\n );\n\n while(this.getResultSet().next()){\n modelAprendizagemTeorica = new ModelAprendizagemTeorica();\n modelAprendizagemTeorica.setId(this.getResultSet().getInt(1));\n modelAprendizagemTeorica.setDescricao(this.getResultSet().getString(2));\n modelAprendizagemTeorica.setTexto(this.getResultSet().getString(3));\n listamodelAprendizagemTeorica.add(modelAprendizagemTeorica);\n }\n }catch(Exception e){\n e.printStackTrace();\n }finally{\n this.fecharConexao();\n }\n return listamodelAprendizagemTeorica;\n }", "public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }", "public List<String> nomeAnimais(){\n\t\tfor (Animal a: this.animais) {\n\t\t\tthis.nomes.add(a.getNomeNumero());\n\t\t}\n\t\treturn this.nomes;\n\t}", "@GET\n\t@Path(\"/tipos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoAutoDTO> listarTipos(){\n\t\tSystem.out.println(\"ini: listarTipos()\");\n\t\t\n\t\tTipoAutoService tipoService = new TipoAutoService();\n\t\tArrayList<TipoAutoDTO> lista = tipoService.ListadoTipoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarTipos()\");\n\t\t\n\t\treturn lista;\n\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }", "public List<ActDetalleActivo> listarDetalleActivoLaboratorio(long codigoSalaLaboratorio,long codigoTipo,String amie, int estado,int anio);", "public Hipermercado(){\r\n this.clientes = new CatalogoClientes();\r\n this.produtos = new CatalogoProdutos();\r\n this.numFiliais = 3;\r\n this.faturacao = new Faturacao(this.numFiliais);\r\n this.filial = new ArrayList<>(this.numFiliais);\r\n for (int i = 0; i < this.numFiliais; i++){\r\n this.filial.add(new Filial());\r\n }\r\n \r\n this.invalidas = 0;\r\n }", "private TipoAtaque generateTipoAtaque() {\n\t\treturn null;\r\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "@Override\n\tpublic ArrayList<Object[]> parEmplo(String puesto) {\n\t\tfor (Employe emplo : treeMap.values()) {\n\t\t\tif (emplo.getClass().getName().substring(13).equals(puesto)) {\n\t\t\t\t// System.out.println(emplo);\n\t\t\t\tObject[] aux = { emplo.getId(), emplo.getNom(),\n\t\t\t\t\t\templo.getPrenom(), emplo.getDate_N(), emplo.getSexe(),\n\t\t\t\t\t\templo.getRue(), emplo.getNumero(), emplo.getVille(),\n\t\t\t\t\t\templo.getPay(), emplo.getTelef(),\n\t\t\t\t\t\templo.getClass().getName().substring(13) };\n\t\t\t\tarray1.add(aux);\n\t\t\t}\n\t\t}\n\t\treturn array1;\n\t}", "public int[] setReservacion(String tipo) {\n\tint[] cord = new int[2];\n\tfor(int i = 0;i<mun_pisos;i++) {\n\t\tfor(int y = 0;y<getNum_habitaciones_x_piso(i);y++) {\n\t\t\tif(getEstado(i,y).equals(\"Libre\")&&(getTipo(i, y).equals(tipo))) {//si encuentra una habitacion libre se le asigna y listo\n\t\t\t\tcord[0]=i;\n\t\t\t\tcord[1]=y;\n\t\t\t\treturn cord;\n\t\t\t}\n\t\t}\n\t}\n\treturn cord;\n}", "public void geneticoPSO(){ \n //leer archivos de texto\n nombreArchivos.stream().map((nombreArchivo) -> lam.leerArchivo(nombreArchivo)).forEach((Mochila moc) -> {\n mochilas.add(moc);\n }); \n \n int o = 0;\n for (Mochila mochila : mochilas) { \n \n Algorithm_PSO alg_pso = new Algorithm_PSO(0.1, 0.8, 0.7, 0.6, 1, tamanioPob, EFOs, mochila.getSolucion().length, mochila); \n Individuo_mochilaPSO res = (Individuo_mochilaPSO)alg_pso.correr();\n System.out.println(\"fitnes: \" + res.getFitness() + \". Solucion\" + Arrays.toString(res.getCromosoma()));\n if (o == 9){\n System.out.println(\"\");\n }\n o++;\n }\n \n }", "private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }", "private static List<Billetes> generarBilletes(String fecha, Pasajero p){\n\t\tList<Billetes> billetes = new ArrayList<>();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tBilletes billete = new Billetes();\n\t\t\tbillete.setId(i);\n\t\t\tbillete.setFecha(fecha);\n\t\t\t\n\t\t\tchar c1 = (char)new Random().nextInt(50);\n\t\t\tchar c2 = (char)new Random().nextInt(50);\n\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t */\n\t\t\tbillete.setAsiento(\"\" + c1 + c2 + new Random().nextInt(100) + new Random().nextInt(50));\n\t\t\tbillete.setPasajero(p); \n\t\t\tbillete.setVuelo(p.getVuelos().get(new Random().nextInt(p.getVuelos().size())));\n\t\t\t\n\t\t\tbilletes.add(billete);\n\t\t}\n\t\t\n\t\treturn billetes;\n\t}", "public List<Vendedor> listarVendedor();", "public List<MascotaExtraviadaEntity> darProcesosExtraviadaConRazaIgualA(String raza){\n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n for( MascotaExtraviadaEntity p : procesos){\n if(p.getMascota().getRaza().equals(raza)){\n procesosFiltrados.add(p);\n }\n }\n return procesosFiltrados;\n }", "public List<Tripulante> obtenerTripulantes();", "public List<TipoIva> getList() {\n\t\tQuery q = em.createQuery(\"SELECT i FROM TipoIva i ORDER BY i.nombre\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<TipoIva> lista = q.getResultList();\n\t\tfor (TipoIva ti : lista) ti.getTramosTiposIva().size();\n\t\treturn lista;\n\t}", "static String classificacao(ArrayList<Musica> musicas, Musica proxima, int k){\n String classeResultado = \"\";\n\n int qtdeMusicas = musicas.size();\n //System.out.println(\"Quantidade de musicas \" + qtdeMusicas);\n double distAmostra[] = new double[qtdeMusicas];\n int vetorOrdenado[] = new int[qtdeMusicas];\n\n for(int i=0; i<qtdeMusicas;i++){\n double dist = distancia(musicas.get(i), proxima);\n distAmostra[i] = dist; \n } \n System.out.println(\"ANTES\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n selectionSort(distAmostra,vetorOrdenado);\n \n System.out.println(\"DEPOIS\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n int contadorDeClasse[] = new int[6];\n int vizinhos = 0;\n for(int i=0; i < distAmostra.length; i++){\n if(vizinhos > k){\n break;\n }\n \n String classe = musicas.get(vetorOrdenado[i]).getClasse();\n //System.out.println(\"musica classe \" + classe); //Para Teste\n\n switch (classe) {\n case \"rap\":\n contadorDeClasse[0]++;\n break;\n case \"axe\":\n contadorDeClasse[1]++;\n break;\n case \"sertanejo\":\n contadorDeClasse[2]++;\n break;\n case \"samba\":\n contadorDeClasse[3]++;\n break;\n case \"forro\":\n contadorDeClasse[4]++;\n break;\n case \"bossa_nova\":\n contadorDeClasse[5]++;\n break; \n }\n vizinhos++;\n } \n /*\n for(int i = 0; i < contadorDeClasse.length; i++){\n System.out.println(contadorDeClasse[i]);\n }\n */\n int maior = 0;\n int indiceMaior = -1;\n for (int i = 0; i < contadorDeClasse.length; i++) {\n if (contadorDeClasse[i] > maior) {\n maior = contadorDeClasse[i];\n indiceMaior = i;\n }\n }\n \n switch (indiceMaior) {\n case 0:\n classeResultado = \"rap\";\n break;\n case 1:\n classeResultado = \"axe\";\n break;\n case 2:\n classeResultado = \"sertanejo\";\n break;\n case 3:\n classeResultado = \"samba\";\n break;\n case 4:\n classeResultado = \"forro\";\n break;\n case 5:\n classeResultado = \"bossa_nova\";\n break; \n }\n return classeResultado;\n }" ]
[ "0.6404956", "0.63283235", "0.6202923", "0.61860853", "0.61363125", "0.61276674", "0.60973203", "0.60862505", "0.60263073", "0.60156876", "0.6013204", "0.59828246", "0.5965113", "0.59474874", "0.5946444", "0.5934839", "0.5928429", "0.59238017", "0.59206086", "0.59178317", "0.591427", "0.5901319", "0.58965147", "0.58750796", "0.58421785", "0.5841142", "0.58242315", "0.5799731", "0.5784934", "0.57801926", "0.5777061", "0.5770789", "0.5767218", "0.5744066", "0.572774", "0.57149184", "0.5713602", "0.57116807", "0.570141", "0.56698334", "0.56678575", "0.5660997", "0.5656014", "0.56446046", "0.564457", "0.5639346", "0.563448", "0.5630701", "0.56280655", "0.56239516", "0.5613872", "0.5613052", "0.56081617", "0.56081367", "0.5607374", "0.5606279", "0.56032753", "0.56030047", "0.55981654", "0.5596572", "0.5595154", "0.5591823", "0.55819625", "0.55710655", "0.55699754", "0.5566692", "0.55644333", "0.55582273", "0.5554629", "0.5553277", "0.55503255", "0.5549672", "0.5546367", "0.55413026", "0.5539934", "0.55350435", "0.5534348", "0.552541", "0.5517238", "0.55152494", "0.55088717", "0.5505772", "0.5499838", "0.54993933", "0.54950964", "0.549359", "0.54873323", "0.54868436", "0.5482967", "0.5471477", "0.547029", "0.54700965", "0.54699665", "0.54699373", "0.546255", "0.5461139", "0.54576576", "0.5457289", "0.54525816", "0.5451458" ]
0.5730718
34
dont call super to avoid simulating!
public void tick(double dt) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "public abstract void simulate();", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void some() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "public void method_6191() {\r\n super.method_6191();\r\n }", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void driving() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void doYouWantTo() {\n\n\t}", "@Override\n public void tick() {\n super.tick();\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n protected void doAct() {\n }", "@Override\r\n\tpublic void member() {\n\t\t\r\n\t}", "protected void h() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void act(){\n super.act();\n }", "protected abstract void switchOnCustom();", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void moverse() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void e() {\n\n\t}", "@Override\n public void test() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void b() {\n }", "protected Doodler() {\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n public void salir() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void think() {\n\t\t\n\t}", "@Override\n\tpublic void swim() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n public void act() {\n }" ]
[ "0.7226611", "0.70530444", "0.6894444", "0.68584204", "0.68279064", "0.6806858", "0.6786545", "0.6778229", "0.6701688", "0.6675458", "0.6673548", "0.6668589", "0.6668589", "0.66683286", "0.66075337", "0.65888333", "0.65619504", "0.65180194", "0.6502057", "0.6474427", "0.6474427", "0.6474427", "0.64637977", "0.6462819", "0.6462819", "0.6457756", "0.644895", "0.6445789", "0.64447886", "0.6442641", "0.63786274", "0.6370895", "0.63624895", "0.63624895", "0.6353045", "0.6336063", "0.6320304", "0.6315128", "0.6312275", "0.6309595", "0.63000065", "0.6299164", "0.6293882", "0.62860477", "0.62745905", "0.6253356", "0.6242939", "0.6236694", "0.6228655", "0.6210159", "0.6203203", "0.6197239", "0.61700135", "0.6167296", "0.6166159", "0.6162734", "0.6160735", "0.6154953", "0.61523247", "0.61416227", "0.6137543", "0.6135428", "0.61287713", "0.61196727", "0.61125815", "0.61047816", "0.6102858", "0.6101053", "0.61002374", "0.6097983", "0.60924596", "0.60811317", "0.60793394", "0.6079202", "0.60761476", "0.6075676", "0.60736626", "0.60733473", "0.6072684", "0.60721993", "0.6071222", "0.60668766", "0.60668766", "0.60668766", "0.60668766", "0.60668766", "0.60668766", "0.6047806", "0.6045276", "0.60450834", "0.60338384", "0.6030842", "0.60210073", "0.6017216", "0.60127014", "0.6012328", "0.6010304", "0.60033745", "0.5997324", "0.5996192", "0.59902567" ]
0.0
-1
Created by Administrator on 2017/12/21/021.
public interface ServiceApi { @GET("/user/login") Observable<DlBean> dL(@Query("mobile") String mobile,@Query("password") String password ); @GET("/user/reg") Observable<ZcBean> zC(@Query("mobile") String mobile,@Query("password") String password ); @GET("/ad/getAd") Observable<LbBean> lieb(@Query("source") String source ); // http://120.27.23.105/product/getProductDetail?pid=1&source=android @GET("/product/getProductDetail") Observable<XqBean> xQ(@Query("source") String source, @Query("pid") int pid); @GET("product/getCarts") Observable<MsgBean<List<DataBean>>> getDatas(@Query("uid") String uid, @Query("source") String source); @GET("product/deleteCart") Observable<MsgBean> deleteData(@Query("uid") String uid, @Query("pid") String pid, @Query("source") String source); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Pitonyak_09_02() {\r\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void create() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n public Date getCreated()\n {\n return null;\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private TMCourse() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private static void oneUserExample()\t{\n\t}", "public void mo12930a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void designBasement() {\n\t\t\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "CreationData creationData();", "private ReportGenerationUtil() {\n\t\t\n\t}", "public static void created() {\n\t\t// TODO\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public void mo1531a() {\n }", "public void verarbeite() {\n\t\t\r\n\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public Date getDateCreated(){return DATE_CREATED;}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo21877s() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private void getStatus() {\n\t\t\n\t}", "private UsineJoueur() {}", "@Override\n protected void getExras() {\n }", "public void mo3376r() {\n }", "protected void mo6255a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void gored() {\n\t\t\n\t}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public void mo9848a() {\n }", "@Override\n public String toString() {\n return \"\";\n }", "private void poetries() {\n\n\t}", "public void mo21878t() {\n }", "Consumable() {\n\t}", "public static void listing5_14() {\n }", "@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void generate() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void init() {\n\n\t}" ]
[ "0.60882545", "0.5892931", "0.56788594", "0.56764686", "0.56759083", "0.5671709", "0.56632894", "0.56603146", "0.5659894", "0.56188625", "0.56033933", "0.5602759", "0.5596534", "0.5580131", "0.55757153", "0.5557005", "0.5556484", "0.55462337", "0.55462337", "0.55462337", "0.55462337", "0.55462337", "0.55462337", "0.55462337", "0.5531028", "0.5527289", "0.5524523", "0.5517547", "0.5517404", "0.5514448", "0.5513306", "0.5500833", "0.54896355", "0.5487126", "0.5487126", "0.54777414", "0.5477564", "0.5473429", "0.5469804", "0.5468751", "0.5448979", "0.5438429", "0.5431415", "0.54298604", "0.54296386", "0.5426261", "0.54259205", "0.5420597", "0.5413256", "0.5413256", "0.54122", "0.53827363", "0.53760636", "0.5375323", "0.537333", "0.53725296", "0.53572965", "0.5350406", "0.5340158", "0.53327644", "0.53258675", "0.5322083", "0.53145385", "0.530127", "0.5295951", "0.52917975", "0.52790964", "0.5263842", "0.5257153", "0.5252221", "0.524778", "0.52477646", "0.5245866", "0.5243277", "0.5238289", "0.5213043", "0.5209938", "0.52086407", "0.520698", "0.5206838", "0.52065927", "0.5203046", "0.5198655", "0.5187883", "0.51764995", "0.5171835", "0.51694113", "0.51694113", "0.51694113", "0.51694113", "0.51694113", "0.51694113", "0.5164139", "0.51629955", "0.51581687", "0.51540893", "0.5149155", "0.5148876", "0.5148655", "0.5148165", "0.5146211" ]
0.0
-1
txt = text1 + text2
public int getQuizNumber() { return quizNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String makeAbba(String aText, String bText) {\r\n return aText + bText + bText + aText;\r\n }", "public void Addtxt (String txt) {\n clearZero();\n lastNumber = true;\n displayResult.setText(displayResult.getText()+txt);\n }", "void append(String text);", "void append(String text);", "public void append(String text)\n{\n\ttextArea().append(text);\n}", "String concat(String... text);", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "public static String myConcatenator(String str1, String str2)\r\n {\r\n str1 += str2;\r\n return str1;\r\n }", "public void addText(String text) {\n resultsText.append(text);\n }", "public static String add(String num1, String num2) {\n\t\t// *** WRITE YOUR CODE HERE ***\n\t}", "void add(String s1, String s2)\n\n\t{\n\t\tString s = s1 + s2;\n\t\tSystem.out.println(s);\n\t}", "private void addToOutput(String text)\n {\n // If we only have a 0 in output, clear it\n if(\"0\".equals(textOutput.getText()) )\n {\n textOutput.setText(\"\");\n }\n textOutput.setText(textOutput.getText() + text);\n }", "private static void append(String text) {\n // Print the same text to STDOUT\n System.out.println(text);\n\n try {\n outputFileBuffer.write(text+\"\\n\");\n outputFileBuffer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void actionPerformed(ActionEvent ae)\n {\n int num1 = Integer.parseInt(t1.getText());\n int num2 = Integer.parseInt(t2.getText());\n int value = num1 + num2;\n //set Text needs string so added \"\" with value\n l1.setText(value + \"\");\n \n \n }", "public static final String shift(String text) {\n return \"+\" + text; /*I18nOK:LINE*/\n }", "public void addText(String text) {\n\t\tthis.text = text;\n\t}", "public void concat2Strings(String s1, String s2)\r\n {\r\n // s1.concat(s2);\r\n ///sau\r\n s1=s1+s2;\r\n System.out.println(\"Stringurile concatenate sunt \"+s1);\r\n }", "private void appendText(String text) {\n textArea.appendText(text);\n }", "public static String plusInt(String num1, String num2){\n\t\tString result =\"\";\n\t\tif(null != num1 && !\"\".equals(num1) && null != num2 && !\"\".equals(num2)){\n\t\t\tresult = String.valueOf((Integer.parseInt(num1)+Integer.parseInt(num2)));\n\t\t}\n\t\treturn result;\n\t}", "public TextBuilder addStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n return lastText;\n }", "private void appendText()\n\t{\n\t\tString fieldText = \"\";\n\t\tString newText = \"\";\n\t\tfieldText = entry.getText();\n\t\t\n\t\tif(fieldText.equals (\"0\"))\n\t\t{\n\t\t\tnewText += append;\n\t\t\tfieldText = newText;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfieldText += append;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\t\n\t\tentry.grabFocus ( );\n\t\t\n\t}", "public void addText(Text text)\n {\n texts.add(text);\n }", "public void append(MConstText srcText) {\r\n replace(length(), length(), srcText, 0, srcText.length());\r\n }", "public void insertStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n lastText.build();\n }", "public void actionPerformed(ActionEvent e) {\n String text = textField1.getText();\n textField2.setText(text);\n\n }", "public String getText2() {\n return text2;\n }", "public String concate(String x, String y)\n\t{\n\t\treturn x.concat(y);\n\t}", "String combine(String pattern1, String pattern2);", "public void addText(String str) {\r\n\t\tdialog.setText(dialog.getText()+str);\r\n\t}", "public static String merge(String str1, String str2)\r\n {\r\n return (str1==null?\"\":str1)+(str2==null?\"\":str2);\r\n }", "public void appendToText(String text) {\n if(this.text == null)\n this.text = new StringBuilder();\n if(StringUtils.hasLength(text))\n this.text.append(text);\n }", "public String concatSubstring(String word1, int start, int finish, String word2){\n String str = word1.substring(start, finish);\n String newWord = str + word2;\n return newWord;\n }", "public static String concatElements(String joinText, String... texts) {\n return concatElements(asList(texts), joinText);\n }", "void concat(String a, int b) {\n System.out.println(\"First : \" + a + \" second : \" + b);\n }", "void addition(int num1, int num2){\n System.out.println(\"Addition \"+(num1+num2));\n }", "private void convertion(){\n txtBox2.setText(workin.convertText(txtBox1.getText())) ; \n }", "public String addStrings(String num1, String num2) {\n int prev = 0, i = num1.length() - 1, j = num2.length() - 1;\n StringBuilder res = new StringBuilder();\n\n while (i >= 0 || j >= 0) {\n int cur = prev;\n if (i >= 0) cur += num1.charAt(i--) - '0';\n if (j >= 0) cur += num2.charAt(j--) - '0';\n prev = cur / 10;\n cur %= 10;\n res.append(cur);\n }\n if (prev != 0) res.append(prev);\n return res.reverse().toString();\n }", "static String addStringInteger(String s1, String s2) {\r\n //return String.valueOf(Integer.parseInt(s1) + Integer.parseInt(s2));\r\n return String.valueOf(Integer.valueOf(s1) + Integer.valueOf(s2));\r\n }", "public void addText(String newText) {\n lb.setText(newText + \"\\n\" + lb.getText());\n instance.setVvalue(0);\n }", "private void loadText() {\n\t\ttext1 = app.loadStrings(\"./data/imports/TXT 1.txt\");\n\t\ttext2 = app.loadStrings(\"./data/imports/TXT 2.txt\");\n\t}", "public void append(String newText) {\n getLock().getWriteLock();\n try {\n SelectionSetter noChange = new SelectionSetter(SelectionSetter.DO_NOT_CHANGE);\n PTextBuffer buffer = getTextBuffer();\n buffer.replace(noChange, buffer.length(), 0, newText, noChange);\n } finally {\n getLock().relinquishWriteLock();\n }\n }", "public void add(String text){\n\t\thead = add(text, head ,0);\n\t}", "private void txt() {\n\n\t}", "Builder addText(String value);", "Builder addText(Text value);", "public void addText(String text) {\n\t\tNodeList frameList = maNoteElement.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"frame\");\n\t\tif (frameList.getLength() > 0) {\n\t\t\tDrawFrameElement frame = (DrawFrameElement) frameList.item(0);\n\t\t\tNodeList textBoxList = frame.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"text-box\");\n\t\t\tif (textBoxList.getLength() > 0) {\n\t\t\t\tDrawTextBoxElement textBox = (DrawTextBoxElement) textBoxList.item(0);\n\t\t\t\tTextPElement newPara = textBox.newTextPElement();\n\t\t\t\tnewPara.setTextContent(text);\n\t\t\t}\n\t\t}\n\t}", "public static String add(String num1,String num2)\n\t{\n\t\t\n\t\tString num3=\"\";\n\t\tint res, carry=0;\n\t\t\n\t\t\n\t\t//appending zeros to num1 if length of num1 is less\n\t\tif(num1.length()<num2.length())\n\t\t{\n\t\t\tint n=num2.length()-num1.length();\n\t\t\twhile(n!=0)\n\t\t\t{\n\t\t\t\tnum1=\"0\"+num1;\n\t\t\t\tn--;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//appending zeros to num2 if length of num2 is less\n\t\telse if(num2.length()<num1.length())\n\t\t{\n\t\t\tint n=num1.length()-num2.length();\n\t\t\twhile(n!=0)\n\t\t\t{\n\t\t\t\tnum2=\"0\"+num2;\n\t\t\t\tn--;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//running the loop till strings are not null\n\t\twhile(num1.length()!=0)\n\t\t{\n\t\t\t\n\t\t\tchar c1=num1.charAt(num1.length()-1);\n\t\t\tchar c2=num2.charAt(num2.length()-1);\n\t\t\t\n\t\t\t//convert c1 and c2 into integer and then add\n\t\t\tres=Integer.parseInt(\"\"+c1)+ Integer.parseInt(\"\"+c2)+carry;\t\t\n\t\t\t\n\t\t\t//if we get a 2 digit number after addition then breaking the carry and storing the units part\n\t\t\tif(res/10!=0)\n\t\t\t{\n\t\t\t\tnum3=(res%10)+num3;\n\t\t\t\tcarry=res/10;\n\t\t\t}\n\t\t\t\n\t\t\telse\t\n\t\t\t{\n\t\t\t\tnum3=res+num3;\t\n\t\t\t\tcarry=0;\n\t\t\t}\n\t\t\n\t\t\t//truncating the last digit of num1 and num2\n\t\t\tnum1=num1.substring(0,num1.length()-1);\n\t\t\tnum2=num2.substring(0,num2.length()-1);\n\t\t}\n\t\t\n\t\tif(carry!=0)\n\t\tnum3=carry+num3;\n\t\t//System.out.println(\"num3= \"+num3);\n\t\treturn num3;\n\t}", "public void setText2(String text2) {\n this.text2 = text2 == null ? null : text2.trim();\n }", "public static String concat(String... texts) {\n return concatElements(asList(texts), EMPTY);\n }", "void imprimir(String s){\n\t\ttxtS.append(s+\"\\n\");\n\t}", "public static String combineTextWithNewline(String... text) {\r\n return Arrays.asList(text).stream()\r\n .map(content -> content.strip())\r\n .collect(Collectors.joining(NEWLINE));\r\n }", "String getTextB(){\n\t\treturn textB;\n\t}", "public static String addStrings(String num1, String num2) {\n\t\tif (num1 == null || num1.length() == 0 || num2 == null || num2.length() == 0) return null;\n char[] c1 = num1.toCharArray();\n char[] c2 = num2.toCharArray();\n int n1 = c1.length;\n int n2 = c2.length;\n \n StringBuilder sb = new StringBuilder();\n int i, j;\n int add = 0;\n for (i = n1 - 1, j = n2 - 1; i >= 0 && j >= 0; i--, j--) {\n \tint sum = (c1[i] - '0') + (c2[j] - '0') + add;\n \tsb.append(sum % 10);\n \tadd = sum / 10;\n }\n if (j > 0) {\n \tc1 = c2;\n }\n for (i = Math.max(i, j); i >= 0; i--) {\n \t\tint v = c1[i] - '0' + add;\n \t\tsb.append(v % 10);\n \t\tadd = v / 10;\n \t}\n \tif (add > 0) {\n \t sb.append(add);\n \t}\n \t\n \treturn sb.reverse().toString();\n }", "public static void main(String[] args) {\n int num1 = 10;\n int num2 = 20;\n String word = \"Hello\";\n int num3 = num1 + num2;\n String wordNum = word + num1;\n System.out.println(num3 + \"\" + wordNum);\n }", "public void appendText(String text) {\n\t\ttry {\n\t\t\tDocument doc = getDocument();\n\n\t\t\t// Move the insertion point to the end\n\t\t\tsetCaretPosition(doc.getLength());\n\n\t\t\t// Insert the text\n\t\t\treplaceSelection(text);\n\n\t\t\t// Convert the new end location\n\t\t\t// to view co-ordinates\n\t\t\tRectangle r = modelToView(doc.getLength());\n\n\t\t\t// Finally, scroll so that the new text is visible\n\t\t\tif (r != null) {\n\t\t\t\tscrollRectToVisible(r);\n\t\t\t}\n\t\t} catch (BadLocationException e) {\n\t\t\tSystem.out.println(\"Failed to append text: \" + e);\n\t\t}\n\t}", "String text();", "public void addText(String texto) {\n\t\tthis.texto = texto == null ? \"\" : texto.trim();\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfloat n1=Float.parseFloat(a.getText().toString());\n\t\t float n2=Float.parseFloat(b.getText().toString());\n\n\t\t\t\top.setText(String.valueOf(n1+n2));\n\t\t\t}", "public static ArthurString add(ArthurString one, ArthurNumber two) {\n String t = \"\" + two.val;\n return add(one, new ArthurString(t));\n }", "public static String addStrings(String nums1, String nums2) {\n int i = nums1.length() - 1;\n int j = nums2.length() - 1;\n StringBuilder sb = new StringBuilder();\n int carry = 0;\n\n while (i >= 0 || j >= 0) {\n int sum = carry;\n if (i >= 0) {\n sum += nums1.charAt(i--) - '0';\n }\n if (j >= 0) {\n sum += nums2.charAt(j--) - '0';\n }\n sb.append(sum % 10);\n carry = sum / 10;\n }\n if (carry != 0) {\n sb.append(carry);\n }\n return sb.reverse().toString();\n }", "public static String concat(Object s1, Object s2) {\n return String.valueOf(s1) + String.valueOf(s2);\n }", "public void button2(View v) {\n expression += \"2\";\n\n /* Update the screen. */\n TextView expressionText = (TextView) findViewById(R.id.expressionText);\n expressionText.setText(expression);\n }", "public static ArthurString add(ArthurString one, ArthurString two) {\n return new ArthurString(one.str + two.str);\n }", "ILoString append(String that);", "@Test(priority=1,dataProvider=\"InputData\")\n\tpublic void additionTest(String s1,String s2) {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(s1,s2);\n\t\tandroidCalculator.addition();\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), Integer.parseInt(s1)+Integer.parseInt(s2));\n\t}", "public void appendToPasswordOutput(String text) {\n\t\tpasswordOutput.setText(passwordOutput.getText() + text);\n\t}", "public int add(String s1, String s2) {\n int int1 = Integer.parseInt(s1);\r\n int int2 = Integer.parseInt(s2);\r\n return int1 + int2;\r\n }", "Text createText();", "private static String getSingleText(CommonToken token, String name1, String name2) {\n String input = token.getText();\n\n if (StringUtils.containsWhitespace(input)) return input;\n if (\",\".equals(input)) return \" AND \";\n return name1 + \".\" + input + \"=\" + name2 + \".\" + input;\n }", "private void setText(Text text) {\n \t\tthis.text = text;\n \t}", "public String LateralOp(String name) {\n String line1, line2, tmpBuf1, tmpBuf2;\n try {\n BufferedReader br = new BufferedReader(new FileReader(file1));\n BufferedWriter bw = new BufferedWriter(new FileWriter(name));\n\n // Working with two files\n if (file2 != null) {\n BufferedReader br2 = new BufferedReader(new FileReader(file2));\n\n do{\n line1 = br.readLine(); line2 = br2.readLine();\n tmpBuf1 = line1 == null ? \"\" : line1;\n tmpBuf2 = line2 == null ? \"\" : line2;\n\n bw.write(tmpBuf1 + tmpBuf2);\n bw.newLine();\n }while (line1!= null || line2 != null);\n bw.flush();\n }\n // Working with spacers\n else{\n line2 = \"\";\n for (int i = 0; i < spaceCount; ++i) {\n line2 += spacer;\n }\n while((line1 = br.readLine()) != null) {\n bw.write(line1 + line2);\n bw.newLine();\n }\n bw.flush();\n }\n }\n catch (FileNotFoundException e) {\n System.err.println(\"ERROR: File does not exist. Please input a valid file.\");\n }\n catch (IOException e) {\n System.err.println(\"ERROR: Failure while reading from file.\");\n }\n return name;\n }", "public void setarText() {\n txdata2 = (TextView) findViewById(R.id.txdata2);\n txdata1 = (TextView) findViewById(R.id.txdata3);\n txCpf = (TextView) findViewById(R.id.cpf1);\n txRenda = (TextView) findViewById(R.id.renda1);\n txCpf.setText(cpf3);\n txRenda.setText(renda.toString());\n txdata1.setText(data);\n txdata2.setText(data2);\n\n\n }", "void addHadithText(Object newHadithText);", "String getToText();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString no1=num1.getText().toString();\n\t\t\t\tfinal int num11=Integer.parseInt(no1);\n\t\t\t\t\n\t\t\t\tString no2=num2.getText().toString();\n\t\t\t\tfinal int num12=Integer.parseInt(no2);\n\t\t\t\tres=num11+num12;\n\t\t\t\tresult.setText(Integer.toString(res));\n\t\t\t\t\n\t\t\t}", "ILoLoString append(ILoString that);", "public String plus(Object value) {\n return this.theString + value;\n }", "public static String append(String name1, String name2) {\n return normalizer.appendNames(defaultRule, name1, name2);\n }", "TextWithReferences getTextWithReferences();", "@DISPID(-2147417083)\n @PropPut\n void outerText(\n java.lang.String rhs);", "public static String combineTextWithSpace(String... text) {\r\n return Arrays.asList(text).stream()\r\n .map(content -> content.strip())\r\n .collect(Collectors.joining(SPACE));\r\n }", "public void addText(SalesOrderText... entity) {\r\n if (toText == null) {\r\n toText = Lists.newArrayList();\r\n }\r\n toText.addAll(Lists.newArrayList(entity));\r\n }", "public final void addText(final String textContent) {\n\t\tthis.text = textContent.trim();\n\t\tif (this.text.length() == 0) {\n\t\t\tthis.text = null;\n\t\t}\n\t}", "public static String Add_pandy(String a, String b)\n\t{\n\t\tString ans = \"\";\n\t\tif (a.length() != b.length())\n\t\t{\n\t\t\tint len1 = a.length();\n\t\t\tint len2 = b.length();\n\t\t\tint lenght_max = Math.max(len1, len2);\n\n\t\t\tfor (int i = 0; i < lenght_max - len1; i++)\n\t\t\t{\n\t\t\t\ta = \"0\" + a;\n\t\t\t}\n\t\t\tfor (int i = 0; i < lenght_max - len2; i++)\n\t\t\t{\n\t\t\t\tb = \"0\" + b;\n\t\t\t}\n\t\t}\n\n\t\tint carry = 0;\n\t\tint tem = 0;\n\t\tfor (int i = a.length() - 1; i >= 0; i--)\n\t\t{\n\t\t\ttem = Integer.parseInt(String.valueOf(a.charAt(i)))\n\t\t\t\t\t+ Integer.parseInt(String.valueOf(b.charAt(i))) + carry;\n\t\t\tif (tem >= 10)\n\t\t\t\tcarry = 1;\n\t\t\telse\n\t\t\t\tcarry = 0;\n\t\t\tans = String.valueOf(tem % 10) + ans;\n\t\t}\n\t\tif (carry == 1)\n\t\t\tans = String.valueOf(carry) + ans;\n\n\t\t// System.out.println(a);\n\t\t// System.out.println(b);\n\n\t\treturn ans;\n\t}", "public void updateText( String text ) {\n\t\tthis.text = text;\n\t}", "public final void addText(final String text) {\n Element e = this.newElement(Constants.ELEMENT_TEXT);\n e.setTextContent(text);\n this.getElement().appendChild(e);\n this.texts.add((Element) e);\n }", "public static void main(String[] args) {\nString s = \"hello world\";\n\t\t\n\t\tint a = 100;\n\t\tint b = 200;\n\t\t\n\t\tSystem.out.println(a+b);\n\t\t\n\t\tSystem.out.println(a+s);\n\t\t\n\t\tSystem.out.println(a+b+s);\n\t\t\n\t\tSystem.out.println(s+a+b);\n\t\t\n\t\tSystem.out.println(s+(a+b));\n\t\t\n\t\tString p = \"Test\";\n\t\tString q = \"Automation\";\n\t\t\n\t\tSystem.out.println(p+q);\n\t\tSystem.out.println(p+\" \"+q);\n\t\t\n\t\t//ASCII\n\t\tchar c1 = 'a';//97\n\t\tchar c2 = 'b';//98\n\t\t\n\t\tSystem.out.println(c1+c2);//195\n\t\t//a-z --> 97 - 122\n\t\t//A-Z --> 65 - 90\n\t\t//0-9 --> 48 - 57\n\n\t}", "static public Object add(Object a, Object b) throws Exception {\r\n\t\t//\r\n\t\tif (a instanceof String || b instanceof String)\r\n\t\t\treturn asString(a) + asString(b);\r\n\t\treturn new Double(asNumber(a) + asNumber(b));\r\n\t}", "public Hologram addText(String text) {\n this.text.add(text);\n return this;\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tstr1=t1.getText();\r\n\t\tstr2=t2.getText();\r\n\t\t\t\ta=Integer.parseInt(str1);\r\n\t\t\t\tb=Integer.parseInt(str2);\r\n\t\tif(e.getSource()==b1)\r\n\t\t{\r\n\t\t\ts=a+b;\r\n\t\t\tstr3=String.valueOf(s);\r\n\t\t\tt3.setText(str3);\r\n\t\t}\r\n\t\tif(e.getSource()==b2)\r\n\t\t{\r\n\t\t\ts=a-b;\r\n\t\t\tstr3=String.valueOf(s);\r\n\t\t\tt3.setText(str3);\r\n\t\t}\r\n\t}", "public void performCopy() {\n \t\ttext.copy();\n \t}", "String getTextA(){\n\t\treturn textA;\n\t}", "public String comboString(String a, String b) {\r\n return a.length() > b.length() ? b + a + b : a + b + a;\r\n }", "void setText (String text);", "private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }", "public static ResultValue stringConcat(String a, String b, int type){\r\n\t\tResultValue result = new ResultValue();\r\n//\t\tNumeric n1 = new Numeric();\r\n\t\tresult.value = a.concat(b);\r\n\t\t\r\n\t\t/*if(n1.isFloat(result.value))\r\n\t\t\tresult.type = Token.FLOAT;\r\n\t\telse if(n1.isInt(result.value))\r\n\t\t\tresult.type = Token.INTEGER;\r\n\t\telse\r\n\t\t\tresult.type = Token.STRING;*/\r\n\t\t\r\n\t\tresult.type = type;\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public static UnitP Addition(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Addition,\n OperationsOther.GetOperationString(first, second, Operations.Addition)\n );\n }", "@Override\n\tpublic void SuccessText(String text) {\n\t\tLog.i(TAG, \"==-->text:=\"+text);\n\t\tmain_one.setText(text);\n\t}", "public int addition(int a, int b){\n return a + b;\n }", "public void insertCharSequenceAt(CursorPosition start, CharSequence text) {\n //todo here accounting only for when start is at a SingleText Field && isInternal\n\n SingleText f;\n try{\n f = ((SingleText) getFieldAt(start.fieldIndex));\n }catch(Exception e){return;}\n if (!start.isInternal())return;\n\n CharSequence seq1 = f.getMainTextBox().getText().subSequence(0,start.characterIndex);\n CharSequence seq2 = f.getMainTextBox().getText().subSequence(start.characterIndex,f.getMainTextBox().length());\n\n f.getMainTextBox().setText(android.text.TextUtils.concat(seq1,text,seq2));\n\n }", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}" ]
[ "0.69140124", "0.6711964", "0.65685517", "0.65685517", "0.6429591", "0.63798624", "0.6374771", "0.6339974", "0.62733823", "0.62113136", "0.61773974", "0.61334527", "0.6099879", "0.6093931", "0.6067704", "0.60608554", "0.605811", "0.6052445", "0.5961561", "0.59008926", "0.5861085", "0.58546215", "0.5808163", "0.5807989", "0.5781656", "0.5768702", "0.57329595", "0.57208866", "0.5709749", "0.5698324", "0.56909835", "0.56851846", "0.562839", "0.5625786", "0.56109446", "0.5587658", "0.55843174", "0.55842924", "0.55825907", "0.5581146", "0.5565262", "0.55529994", "0.55300087", "0.5526432", "0.5520642", "0.5511193", "0.54928577", "0.5486363", "0.5485703", "0.5471217", "0.54706275", "0.54704976", "0.54674786", "0.5460662", "0.54558986", "0.54548", "0.5421784", "0.54052246", "0.5404453", "0.5402764", "0.53838295", "0.538165", "0.5377661", "0.5366336", "0.5351131", "0.5349805", "0.5344601", "0.5343151", "0.53270173", "0.53268206", "0.5323812", "0.5300588", "0.52918535", "0.52856493", "0.5282543", "0.5270166", "0.5267269", "0.526416", "0.52509224", "0.5236307", "0.52270067", "0.52217233", "0.5211253", "0.5211125", "0.5210737", "0.5205054", "0.51934594", "0.51907235", "0.5185961", "0.518332", "0.517731", "0.51735455", "0.51687187", "0.5157711", "0.5154221", "0.5149241", "0.51410544", "0.5139031", "0.5137613", "0.5137391", "0.5135095" ]
0.0
-1
/ WARNING Removed try catching itself possible behaviour change.
@Override public int[] executeBatch() { if (this.batchPos == 0) { return new int[0]; } try { int[] arrn = this.db.executeBatch(this.pointer, this.batchPos / this.paramCount, this.batch); return arrn; } finally { this.clearBatch(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "@Override\n\tpublic void catchPiece() {\n\t\t\n\t}", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "@Override\n\tpublic void catching(Throwable t) {\n\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1962e() throws cf {\r\n }", "public void pos2() {\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n } catch (NullPointerException e) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"Exception occurred\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "void m5770d() throws C0841b;", "@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}", "void mo57276a(Exception exc);", "void m5771e() throws C0841b;", "public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "public void mo1972o() throws cf {\r\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void VisitTryNode(BunTryNode Node) {\n\n\t}", "public void mo1970m() throws cf {\r\n }", "private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }", "public void testingTryCatch() {\r\n\t\tSystem.err.println(\"Class NewFeatures, method testingTryCatch called!\");\r\n\t\ttry (FileInputStream stream = new FileInputStream(\"hey\")) {\r\n\t\t\tSystem.out.println(\"Try/block accessed!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tThread.currentThread().getStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingTryCatch done!\");\r\n\t}", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "public void mo1966i() throws cf {\r\n }", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "public void mo1963f() throws cf {\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n if (true){throw new Error();}\n }\n catch(Error err){\n x*=3;\n System.out.println(x);\n }\n x*=5;\n System.out.println(x);\n }", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "void m5769c() throws C0841b;", "private void throwsError() throws OBException {\n }", "public void mo1974q() throws cf {\r\n }", "public void mo5385r() {\n throw null;\n }", "public void mo1960c() throws cf {\r\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "default void recover() {}", "static void doStuff() {\n try {\n throw new Error();\n } catch (Error me) {\n throw me; // We catch but then rethrow it.\n }\n }", "public void pos1() {\n int num1, num2;\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"You should not divide a number by zero\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "private void m44337f() throws BaseException {\n Throwable th = this.f30622n;\n if (th != null) {\n if (th instanceof StreamClosedException) {\n throw new BaseException(1068, \"async reader closed!\");\n }\n DownloadUtils.m44505a(th, \"async_read\");\n }\n throw new BaseException(1069, \"async reader terminated!\");\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "private void rethrowIfFailed()\r\n/* 198: */ {\r\n/* 199:232 */ Throwable cause = cause();\r\n/* 200:233 */ if (cause == null) {\r\n/* 201:234 */ return;\r\n/* 202: */ }\r\n/* 203:237 */ PlatformDependent.throwException(cause);\r\n/* 204: */ }", "public void mo37873b() {\n C13256a aVar;\n C13256a aVar2;\n C13256a aVar3 = C13256a.INTERNAL_ERROR;\n e = null;\n try {\n this.f34245f.mo38127a((C13280b) this);\n while (this.f34245f.mo38128a(false, (C13280b) this)) {\n }\n aVar = C13256a.NO_ERROR;\n try {\n aVar2 = C13256a.CANCEL;\n } catch (IOException e) {\n e = e;\n }\n } catch (IOException e2) {\n e = e2;\n aVar = aVar3;\n try {\n aVar = C13256a.PROTOCOL_ERROR;\n aVar2 = C13256a.PROTOCOL_ERROR;\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n } catch (Throwable th) {\n th = th;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n } catch (Throwable th2) {\n th = th2;\n aVar = aVar3;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n }", "public static void sync() {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 24\n if (r0 >= r1) goto L_0x001f\n java.io.File r0 = new java.io.File\n java.lang.String r1 = mStrPath\n r0.<init>(r1)\n r2 = 0\n java.io.FileInputStream r1 = new java.io.FileInputStream // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0020, all -> 0x0030 }\n java.io.FileDescriptor r0 = r1.getFD() // Catch:{ Exception -> 0x0044 }\n r0.sync() // Catch:{ Exception -> 0x0044 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x003d }\n L_0x001f:\n return\n L_0x0020:\n r0 = move-exception\n r1 = r2\n L_0x0022:\n r0.printStackTrace() // Catch:{ all -> 0x0042 }\n if (r1 == 0) goto L_0x001f\n r1.close() // Catch:{ Exception -> 0x002b }\n goto L_0x001f\n L_0x002b:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0030:\n r0 = move-exception\n r1 = r2\n L_0x0032:\n if (r1 == 0) goto L_0x0037\n r1.close() // Catch:{ Exception -> 0x0038 }\n L_0x0037:\n throw r0\n L_0x0038:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0037\n L_0x003d:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x001f\n L_0x0042:\n r0 = move-exception\n goto L_0x0032\n L_0x0044:\n r0 = move-exception\n goto L_0x0022\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.syu.util.MySharePreference.sync():void\");\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "void m5768b() throws C0841b;", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n StringReader stringReader0 = new StringReader(\"catch\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 106, 0);\n javaCharStream0.maxNextCharInd = (-3000);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "private void inizia() throws Exception {\n }", "Block getTryBlock();", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBObjectListener.FetcherListener fBObjectListener_FetcherListener0 = null;\n FileSystemHandling.shouldAllThrowIOExceptions();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative(1433);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Invalid escape character at line \");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n // Undeclared exception!\n try { \n javaCharStream0.AdjustBuffSize();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n BufferedInputStream bufferedInputStream0 = new BufferedInputStream((InputStream) null);\n JavaCharStream javaCharStream0 = new JavaCharStream(bufferedInputStream0, 98, (-5023));\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((InputStream) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.Reader\", e);\n }\n }", "@Override\n\t\tpublic void onIOException(IOException e, Object state) {\n \n \t}", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n FileSystemHandling.shouldAllThrowIOExceptions();\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative((-513));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "@Override\r\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\r\n\t\t}", "@Override\n boolean canFail() {\n return true;\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(3131);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField(182, \"IK\", \"IK\", \"IK\", \"The FileFilter must not be null\");\n classWriter0.firstField = fieldWriter0;\n ClassWriter classWriter1 = new ClassWriter(1);\n Item item0 = classWriter0.key2;\n fieldWriter0.getSize();\n fieldWriter0.visitAnnotation(\"Exceptions\", false);\n classWriter1.newFloat((-2110.0F));\n item0.hashCode = 231;\n // Undeclared exception!\n try { \n frame0.execute(182, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}", "@Test(timeout = 4000)\n public void test256() throws Throwable {\n Form form0 = new Form(\"w\");\n FileInput fileInput0 = new FileInput(form0, \"w\", \"w\");\n // Undeclared exception!\n try { \n fileInput0.strong((Object) \"w\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "public void swrap() throws NoUnusedObjectExeption;", "@Override\n public void onMachineBroken()\n {\n \n }", "@Test(timeout = 4000)\n public void test369() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"J]'z8)\", \"J]'z8)\");\n // Undeclared exception!\n try { \n fileInput0.dfn((Object) \"J]'z8)\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "protected void failed()\r\n {\r\n //overwrite\r\n }", "@Test(timeout = 4000)\n public void test290() throws Throwable {\n Form form0 = new Form(\"first character in input was UNICODE noncharacter (0xFFFE)- input requires int swapping\");\n // Undeclared exception!\n try { \n form0.bdo(\"first character in input was UNICODE noncharacter (0xFFFE)- input requires int swapping\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public interface RoutineException {}", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(159);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter1.newFieldItem(\"y])rS3DhfdTg\", \"y])rS3DhfdTg\", \"\");\n Item item0 = classWriter0.newLong(1);\n classWriter0.newLong(2);\n Item item1 = classWriter0.key2;\n // Undeclared exception!\n try { \n frame0.execute(159, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseAndSimplifyResultSet((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n ClassWriter classWriter2 = new ClassWriter(2);\n Item item0 = classWriter2.newLong(2);\n classWriter1.newLong(2178L);\n classWriter2.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(197, (-5054), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Form form0 = new Form(\"null\");\n Hidden hidden0 = new Hidden(form0, \"null\", \"null\");\n // Undeclared exception!\n try { \n hidden0.sub((Object) \"null\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public int getTryCatchBlockIndex() {\n/* 424 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }", "@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}", "protected Problem() {/* intentionally empty block */}", "public final void mo28153e() {\n super.mo28153e();\n try {\n this.f4965f = null;\n } catch (Exception unused) {\n } catch (Throwable th) {\n this.f4964e.mo28153e();\n throw th;\n }\n this.f4964e.mo28153e();\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(4);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 4. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n Form form0 = new Form(\"Lc7/B.MJD\");\n Checkbox checkbox0 = new Checkbox(form0, \"Cannot add a form element. No surrounding form found.\", \"[rO+3\");\n // Undeclared exception!\n try { \n checkbox0.samp((Object) \"Cannot add a form element. No surrounding form found.\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = null;\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Item item0 = new Item((-532));\n int int0 = 180;\n // Undeclared exception!\n try { \n frame0.execute(180, 4, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"zuQ-ES@*gn\");\n Type type1 = Type.INT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(22, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n Item item0 = classWriter0.newFieldItem(\"\", \"\", \"T~1S2uS7<aMtHqcUL\");\n Frame frame1 = new Frame();\n // Undeclared exception!\n try { \n frame1.execute(154, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test308() throws Throwable {\n Form form0 = new Form(\"S_AON\");\n // Undeclared exception!\n try { \n form0.object();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static TypeReference newTryCatchReference(int tryCatchBlockIndex) {\n/* 296 */ return new TypeReference(0x42000000 | tryCatchBlockIndex << 8);\n/* */ }", "@Test(timeout = 4000)\n public void test362() throws Throwable {\n Form form0 = new Form(\"\\r\");\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"\\r\");\n // Undeclared exception!\n try { \n form0.sup((Object) xmlEntityRef0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n linkedList0.push((byte[][]) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.previous();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n // Undeclared exception!\n try { \n javaCharStream0.ReInit((Reader) stringReader0, (-1), (-1), (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}", "private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }" ]
[ "0.6632181", "0.6445396", "0.6306119", "0.62854445", "0.62589747", "0.6257267", "0.62414694", "0.6176756", "0.61748254", "0.6164259", "0.61007214", "0.60852796", "0.605599", "0.6040991", "0.59922194", "0.59886706", "0.59456414", "0.5924899", "0.5917984", "0.5904189", "0.58977824", "0.58977824", "0.5888047", "0.5882307", "0.58814925", "0.58743274", "0.5860816", "0.58535177", "0.5852248", "0.5814755", "0.5811182", "0.5803199", "0.5793067", "0.5777344", "0.57765335", "0.57765335", "0.57765335", "0.57765335", "0.57765335", "0.57691956", "0.57691956", "0.57652605", "0.57426697", "0.57406276", "0.5737391", "0.57225794", "0.5709767", "0.5692263", "0.56865764", "0.567942", "0.56650174", "0.5660269", "0.5651905", "0.5640496", "0.56377506", "0.56331736", "0.5625917", "0.56162924", "0.5614961", "0.5614665", "0.5612099", "0.5603578", "0.5601307", "0.5588807", "0.55878013", "0.55869776", "0.5583092", "0.5577438", "0.5566169", "0.55590147", "0.554849", "0.55423385", "0.55381125", "0.5537796", "0.55334353", "0.5522028", "0.55200833", "0.5520014", "0.55180687", "0.5515698", "0.5509214", "0.5508478", "0.5507652", "0.5503138", "0.5499738", "0.5499531", "0.54947084", "0.5492145", "0.5486388", "0.54815435", "0.5480095", "0.54772025", "0.5476311", "0.54745424", "0.5472653", "0.54699475", "0.54659504", "0.5461366", "0.54564786", "0.5455968", "0.5454358" ]
0.0
-1
to sign out the user user
@Override public void onClick(View v) { FirebaseAuth.getInstance().signOut(); Intent signOutIntent = new Intent(ResultActivity.this,LoginActivity.class); startActivity(signOutIntent); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "private void signOut() {\n mAuth.signOut();\n }", "public void signOut(){\n mAuth.signOut();\n }", "private void signOut() {\n mAuth.signOut();\n updateUI(null);\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(getActivity(), LoginActivity.class);\n startActivity(intent);\n getActivity().finish();\n }", "public boolean signOut(String username);", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(EscolhaProjeto.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logout() {\n //set offline flag\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\n new PostNoSqlDataBase(this).offline(uid);\n\n //logout\n // FirebaseAuth mAuth = FirebaseAuth.getInstance();\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mGoogleSignInClient.signOut();\n FirebaseAuth.getInstance().signOut();\n //go to the main activity\n startActivity(new Intent(this, SignUpActivity.class));\n finish();\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "Boolean signOut();", "private void signOut () {\n mAuth.signOut();\n textViewStatus.setText(\"Signed Out\");\n }", "private void signOut() {\n\n // Sign the user out and update the UI\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n m_tvStatus.setText(R.string.status_notsignedin);\n m_tvEmail.setText(\"\");\n m_tvDispName.setText(\"\");\n }\n });\n }", "private void signOut(){\n Log.d(TAG, \"signOut: signing out\");\n FirebaseAuth.getInstance().signOut();\n }", "private void signOut () {\n\n //Normal account sign out\n mAuth.signOut();\n //Google account sign out\n mGoogleSignInClient.signOut();\n updateUI(\"Signed out\");\n //Can't open chat without non-empty accountEmail\n accountEmail = \"\";\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(Activity_Main.this, Activity_Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "private void signOut() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mAuth = FirebaseAuth.getInstance();\n // Firebase sign out\n mAuth.signOut();\n\n // Google sign out\n mGoogleSignInClient.signOut();\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\t\tdb.deleteUsers();\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(MainActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "private void signOut() {\n //logout of google\n GoogleSignIn.getClient(this, GoogleSignInOptions.DEFAULT_SIGN_IN).signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n\n //logout of facebook\n LoginManager.getInstance().logOut();\n\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "public void signOutClick()\n {\n if(mAuth.getCurrentUser() != null)\n {\n // sign out.\n mAuth.signOut();\n\n // switch activity to login form.\n finish();\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }\n }", "public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}", "private void signOut(){\n LoginSharedPreference.endLoginSession(this);\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n finish();\n }", "private void logout()\r\n {\r\n LogoutRequest request = new LogoutRequest();\r\n request.setUsername(username);\r\n this.sendRequest(request);\r\n }", "public void signOut() {\n ReusableActionsPageObjects.clickOnElement(driver, signOut, logger, \"log out.\");\n }", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\n\t\t}", "public void firebaseSignOut() {\n firebaseAuth.signOut();\n }", "void onSignOutButtonClicked();", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\t\n\t\t}", "private void signOut() {\n MailboxServer.removeClient(this);\n clientResponse(\"GoodyBye!\");\n }", "public void onSignOut() {\n SharedPreferences userPrefs = PreferenceManager.getDefaultSharedPreferences(\n TBLoaderAppContext.getInstance());\n SharedPreferences.Editor editor = userPrefs.edit();\n editor.clear().apply();\n mTbSrnHelper = null;\n mUserPrograms = null;\n }", "private void signOut() {\n mGoogleSignInClient.signOut().addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n updateUI(null);\n }\n });\n }", "public void logout () {\n\t\tif (isLoggedIn()) {\n\t\t\tGPPSignIn.sharedInstance().signOut();\n\t\t\tGPGManager.sharedInstance().signOut();\n\t\t}\n\t}", "public void signOut(View view) {\n databaseManager.deleteAll();\n finish();\n }", "public void logoutCurrentUser() {\n mAuth.signOut();\n this.loggedInUser = null;\n }", "@Override\n\tpublic void logout(user theUser) {\n\t}", "public void logout() {\n \n }", "private void LogOut() {\n FirebaseAuth.getInstance().signOut();\n Intent intToMain = new Intent(getActivity(),LoginActivity.class);\n startActivity(intToMain);\n }", "boolean userLogout(UserDTO user) throws UserException, SQLException,ConnectException;", "public void Logout() {\n \t\t\t\n \t\t}", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "public static void signOut(){\n\t\tActions action_logout = new Actions(driver);\n\t\tWebElement UI = driver.findElement(By.id(\"UserNavigationTabsContainer\"));\n\t\taction_logout.moveToElement(UI).build().perform();\n\t\tdriver.findElement(By.linkText(\"Logout\")).click();\t\n\t\tpause(500);\n\t}", "private void signOut()\n {\n Auth.GoogleSignInApi.signOut(googleApiClient).setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n //Intent intent = new Intent(LandingPageActivity.this, MainActivity.class);\n //startActivity(intent);\n //finish();\n }\n });\n }", "protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}", "public void sign_out(View v){\n\n Intent intent = new Intent(this, popRateClinic.class);\n startActivity(intent);\n finish();\n }", "private void logout() {\n ProgressDialog logoutProgressDialog = new ProgressDialog(ContributionsGalleryActivity.this);\n logoutProgressDialog.setMessage(getResources().getString(R.string.logging_out));\n logoutProgressDialog.setCancelable(false);\n logoutProgressDialog.show();\n ParseUser.logOutInBackground(e -> {\n logoutProgressDialog.dismiss();\n if (e != null) { // Logout has failed\n Snackbar.make(contributionsGalleryRelativeLayout, getResources().getString(R.string.logout_failed), Snackbar.LENGTH_LONG).show();\n }\n else { // Logout has succeeded\n goLoginSignupActivity();\n finish();\n }\n });\n }", "private void logout() {\n fbAuth.signOut();\n startActivity(new Intent(getApplicationContext(), LoginActivity.class));\n finish();\n }", "ResponseEntity<?> signOut(HttpServletRequest req, HttpServletResponse res);", "public void logout(){\r\n\t\tallUser.remove(this.sessionID);\r\n\t\tthis.sessionID = -1;\r\n\t}", "private void logout() {\n\n\n GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(context);\n //start home activity, when account is not null (user already signed in)\n if (account != null) {\n Log.d(\"LOGOUT\", \"Google Accoutn is not null\");\n if (mGoogleSignInClient != null) {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(getActivity(), new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(\"LogoutButton\", \"You were Logged out succesfully\");\n //remove user id from preferences to indicate, that he is not logged in\n Preferences.saveUserId(context, null);\n\n //remove FCM token\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n FirebaseInstanceId.getInstance().deleteInstanceId();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }).start();\n\n Intent intent = new Intent(context, LoginActivity.class);\n startActivity(intent);\n //remove home activity from stack\n getActivity().finish();\n }\n });\n }\n }\n }", "private void LogoutDialog() {\n\n AlertDialog.Builder alert;\n alert = new AlertDialog.Builder(this,R.style.Theme_MaterialComponents_Dialog_Alert);\n LayoutInflater inflater = getLayoutInflater();\n\n View view = inflater.inflate(R.layout.logout_dialog,null);\n\n s_cancel = view.findViewById(R.id.s_cancel);\n btnSignout = view.findViewById(R.id.btn_signout);\n\n alert.setView(view);\n alert.setCancelable(false);\n\n AlertDialog dialog = alert.create();\n dialog.getWindow().setBackgroundDrawableResource(R.color.transparent);\n\n dialog.show();\n\n btnSignout.setOnClickListener(v -> {\n FirebaseAuth.getInstance().signOut();\n startActivity(new Intent(UserActivity.this , LoginOrSignUpActivity.class));\n finish();\n\n Toast.makeText(UserActivity.this, \"Sign out is Successful\" , Toast.LENGTH_SHORT).show();\n });\n\n s_cancel.setOnClickListener(v -> dialog.dismiss());\n }", "protected void logout() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\t\tuserController.performLogout();\n\n\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t}", "private void googleSignOut() {\n googleSignInClient.signOut();\n }", "public String logout()\n\t{\n\t\tsession.remove(\"user_name\");\n\t\tsession.remove(\"password\");\n\t\tsession.clear();\n\t\tsession.invalidate();\t\n\t\taddActionMessage(\"You Have Been Successfully Logged Out\");\n\t\treturn SUCCESS;\n\t}", "private void cerrarSession() {\n FirebaseAuth.getInstance().signOut();\n LoginManager.getInstance().logOut();\n Auth.GoogleSignInApi.signOut(googleApiClient).setResultCallback( new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n logOut();\n } else {\n Toast.makeText(getApplicationContext(),\"Fallo al cerrar session\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }", "public void logOutOnClick(View view)\n {\n Intent mainIntent = new Intent(SettingsActivity.this, AppLoginActivity.class);\n mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n FirebaseAuth.getInstance().signOut();\n startActivity(mainIntent);\n finish();\n }", "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "public void logout(Principal user) {\n }", "@Override\n\tpublic int signOut(Attendance attendance) {\n\t\treturn attendanceMapper.signOut(attendance);\n\t}", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "@Override\n public void Logout() {\n\t \n }", "public static void signOut(String name, Session user) {\n playerList.remove(name);\n user.removeAttribute(\"player\");\n }", "private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}", "@Override\n\tpublic void exitSessionUser() {\n\t\tgetThreadLocalRequest().getSession().invalidate();\n\t\t\n\t}", "@Override\r\n public void onClick(View view) {\n new SignOut();\r\n\r\n // stop all services\r\n stopService(new Intent(MainActivity.this,UserDataChangeListener.class));\r\n stopService(new Intent(MainActivity.this,GeofenceService.class));\r\n stopService(new Intent(MainActivity.this,LocationService.class));\r\n\r\n // restart sign in\r\n Intent signIn = new Intent(MainActivity.this,SignIn.class);\r\n startActivity(signIn);\r\n finish();\r\n }", "public void logoutCurrentUser() {\n currentUser = null;\n }", "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }", "public void onClick(DialogInterface dialog, int id) {\n session.logoutUser();\r\n }", "@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}", "public Result logOut() {\n customerService().logout();\n return redirectToReturnUrl();\n }", "private void logout(){\r\n\t\ttry {\r\n\t\t\tserver.rmvClient(user);\r\n\t\t} catch (RemoteException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tSystem.exit(0);\r\n\t}", "private void logout(){\n ParseUser.logOut();\n removeUserFromPrefs();\n Intent intent = LandingActivity.intent_factory(this);\n startActivity(intent);\n }", "public void signOut(View view) {\r\n startActivity(new Intent(getApplicationContext(),AdminDashboard.class));\r\n }", "private void logout(HttpServletRequest request, HttpServletResponse response)\n throws SQLException, IOException, ServletException {\n\tHttpSession session = request.getSession(false);\n\t// session.setAttribute(\"user\", null);\n\tsession.removeAttribute(\"email\");\n\t response.sendRedirect(\"index.jsp\");\n\t}", "boolean checkLogout(User user, HttpServletRequest request, HttpSession session);", "public Key<User> logout(User user) {\n\t\treturn null;\n\t}", "public boolean logoutUser(Context context){\n DatabaseHandler db = new DatabaseHandler(context);\n db.resetTables();\n return true;\n }", "public void logout() {\n // Mengambil method clear untuk menghapus data Shared Preference\n editor.clear();\n // Mengeksekusi perintah clear\n editor.commit();\n // Membuat intent untuk berpindah halaman\n Intent intent = new Intent(context, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n }", "public void logout(View view) {\n if (isNetworkAvailable()) {\n FirebaseAuth.getInstance().signOut();\n startActivity(new Intent(AllChannelListActivity.this, SignInActivity.class));\n finish();\n } else {\n\n Toast.makeText(AllChannelListActivity.this, \"To Log Out, Please Connect your Phone to Internet..\", Toast.LENGTH_SHORT).show();\n\n }\n }", "@Override\n\tpublic void userLogout(String userId) throws Exception {\n\n\t}", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "public String logout(){\r\n this.user = null;\r\n loggedIn = false;\r\n return \"/index?faces-redirect=true\";\r\n }", "public void logoutUser(final Activity a) {\n\n new LovelyStandardDialog(a)\n .setButtonsColorRes(R.color.colorPrimary)\n .setMessage(R.string.logOutAccountDialog)\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n a.startActivity(new Intent(a, LoginActivity.class));\n a.finishAffinity();\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n\n }", "public void logout() {\n getRequest().getSession().invalidate();\n }", "@Override\r\n\tpublic void userLogout(String login) {\n\r\n\t}", "public static void logout(Context context) \r\n\t{\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\tcontext.sessionAttribute(\"currentUser\", null);\r\n\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t//context.json(new MyCustomResponseMessage(\"You've successfully logged out\", \"success\"));\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t}", "public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}", "void logout();", "void logout();", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tsession.logoutUser();\n\t\t\t\tToast.makeText(getApplicationContext(), \"Anda Sudah Keluar!\", Toast.LENGTH_LONG).show();\n\t\t\t}", "public void logout(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", 0);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.clear();\n preferencesEditor.commit();\n // take user back to login screen\n Intent logoutIntent = new Intent(mContext, LoginActivity.class);\n logoutIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(logoutIntent);\n }", "public void logOut() {\n sp.edit().clear().commit();\n }", "public boolean logoutUser(Context context){\n\t\tDatabaseHandler db = new DatabaseHandler(context);\n\t\tdb.resetTables();\n\t\treturn true;\n\t}", "public void removeCurrentUser() {\n currentUser.logout();\n currentUser = null;\n indicateUserLoginStatusChanged();\n }" ]
[ "0.83085555", "0.8121375", "0.8101187", "0.7856498", "0.7850378", "0.7845614", "0.78100884", "0.7804071", "0.7762167", "0.7751923", "0.77446055", "0.77382565", "0.77365047", "0.7716271", "0.7715599", "0.7711177", "0.7674885", "0.7674876", "0.7671546", "0.7639763", "0.7618699", "0.7606425", "0.76011467", "0.75957716", "0.75955445", "0.75348425", "0.7534054", "0.7525509", "0.7481385", "0.74550927", "0.7432322", "0.73848987", "0.73800963", "0.7342911", "0.7333441", "0.73321354", "0.73257005", "0.7324741", "0.72836304", "0.72835135", "0.72719944", "0.7255303", "0.72448945", "0.7240712", "0.7219737", "0.7197006", "0.71965325", "0.7187844", "0.71550703", "0.71278375", "0.7127081", "0.71237975", "0.7095787", "0.709515", "0.7024077", "0.7015412", "0.7009663", "0.70093966", "0.7009116", "0.7000162", "0.699418", "0.6977509", "0.6975758", "0.6962957", "0.6962059", "0.69512916", "0.6929461", "0.69289535", "0.69256145", "0.69240093", "0.69054157", "0.6905195", "0.68990123", "0.6886101", "0.6883107", "0.6881265", "0.687297", "0.6859157", "0.6856544", "0.68488574", "0.6848592", "0.68458813", "0.68395174", "0.6839018", "0.6833416", "0.68328136", "0.68319553", "0.68314654", "0.6829662", "0.68247926", "0.6808415", "0.6807276", "0.6797816", "0.6796402", "0.6796402", "0.6789473", "0.67803806", "0.67701185", "0.67676204", "0.67646897" ]
0.72388256
44
Created by Richard Bariny on 23.10.2016
public interface FlightService { /** * CREATE FLIGHT - adding new entity * @param flight entity of flight object * @return Flight object */ Flight saveFlight(Flight flight); /** * READ FLIGHT - read exiting entity * @param id Long value of flight id * @return Flight object */ Flight getFlight(Long id) throws DataAccessException; /** * UPDATE FLIGHT - update existing entity * @param flight entity of flight object * @return Flight object */ Flight updateFlight(Flight flight); /** * DELETE FLIGHT - delete entity * @param flight Long value of flight id */ void removeFlight(Flight flight); /** * FIND FLIGHT BY NAME - find all entities by parameter * @param name String value of flight name * @return List of Flight objects */ List<Flight> findFlightByName(String name) throws DataAccessException; /** * FIND ALL FLIGHTS - find all entities * @return List of Flight objects */ List<Flight> findAllFlights(); /** * Add steward to flight * @param flight Flight where to add Steward * @param steward Steward to be add * @return List of Flight objects */ Flight addStewardToFlight(Flight flight, Steward steward); /** * Validate Flight parameters - steward availibility, airplane availibility and time * @param flight validated Flight object * @return validation true or false if do not pass */ boolean validateFlight(Flight flight); Flight removeStewardToFlight(Flight flight, Steward steward); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void perish() {\n \n }", "private void poetries() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void interr() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "private void m50366E() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo38117a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "public void mo4359a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n public void init() {\n\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void init() {\n }", "public void mo21877s() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo12628c() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n protected void initialize() {\n\n \n }", "public abstract void mo56925d();", "@Override\n void init() {\n }", "private void m50367F() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public abstract String mo13682d();", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "static void feladat4() {\n\t}", "private final zzgy zzgb() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public void m23075a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public abstract String mo118046b();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}" ]
[ "0.55130935", "0.54454714", "0.53590155", "0.53515965", "0.53494585", "0.534321", "0.53019255", "0.52961963", "0.5292976", "0.5266375", "0.5265592", "0.5254799", "0.5242234", "0.52338", "0.52338", "0.52184534", "0.5207737", "0.5171324", "0.5151411", "0.5125855", "0.5114175", "0.51042306", "0.5083061", "0.5072285", "0.50645643", "0.5057953", "0.50466233", "0.50450814", "0.5032019", "0.50283873", "0.50283873", "0.50283873", "0.50283873", "0.50283873", "0.50273526", "0.501121", "0.5009556", "0.4999709", "0.4994526", "0.4991272", "0.49900365", "0.4982157", "0.49722475", "0.4970671", "0.49691886", "0.49691886", "0.495651", "0.49410048", "0.49410048", "0.49410048", "0.49410048", "0.49410048", "0.49410048", "0.49410048", "0.49304223", "0.4924473", "0.49238342", "0.4913466", "0.49110815", "0.49092507", "0.49092507", "0.49092507", "0.49092507", "0.49092507", "0.49092507", "0.49090064", "0.4900705", "0.4898733", "0.48962682", "0.489584", "0.48913532", "0.48873925", "0.4886275", "0.48837164", "0.48837164", "0.48837164", "0.4874511", "0.4874511", "0.4874511", "0.4873455", "0.48692048", "0.48661044", "0.48555785", "0.48554355", "0.48552397", "0.48517388", "0.48486945", "0.48480707", "0.48473862", "0.48473862", "0.48473862", "0.48453432", "0.48448947", "0.48332077", "0.4832623", "0.4832451", "0.48247555", "0.48213604", "0.48199388", "0.48199388", "0.4819598" ]
0.0
-1
CREATE FLIGHT adding new entity
Flight saveFlight(Flight flight);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "void create(T entity);", "void create(E entity);", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "void create(Feedback entity);", "E create(E entity);", "E create(E entity);", "void create(T entity) throws Exception;", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "T createEntity();", "void create(Student entity);", "public CatalArticle create(CatalArticle entity) {\n\t\tCatalArtFeatMapping features = entity.getFeatures();\n\n\t\tentity = repository.save(attach(entity));\n\n\t\tif (features == null) {\n\t\t\tfeatures = new CatalArtFeatMapping();\n\t\t}\n\t\tif (StringUtils.isBlank(features.getLangIso2())) {\n\t\t\tString lg = securityUtil.getUserLange();\n\t\t\tfeatures.setLangIso2(lg);\n\t\t}\n\t\tfeatures.setArtIdentif(entity.getIdentif());\n\t\tfeatures = featMappingEJB.create(features);\n\n\t\tCatalPicMapping picMapping = new CatalPicMapping();\n\t\tpicMapping.setArtIdentif(entity.getPic());\n\t\tpicMapping.setCode(entity.getPic());\n\t\tpicMapping.setCodeOrigin(cipOrigineEnumContract.getMain());\n\t\tpicMapping.setPriority(0);\n\t\tpicMappingEJB.create(picMapping);\n\n\t\tentity.setFeatures(features);\n\n\t\treturn entity;\n\t}", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "public void create(GameSet entity) {\r\n\t\tgetDatabase().beginTransaction();\r\n\t\ttry {\r\n\t\t\tString sql = \"insert into GAME_SET (\" + GameSet.DbField.ID + \",\" + GameSet.DbField.GAME_ID + \",\" + GameSet.DbField.NAME + \",\" + GameSet.DbField.IMAGE\r\n\t\t\t\t\t+ \") values (?,?,?,?)\";\r\n\t\t\tObject[] params = new Object[4];\r\n\t\t\tparams[0] = entity.getId();\r\n\t\t\tparams[1] = entity.getGame().getId();\r\n\t\t\tparams[2] = entity.getName();\r\n\t\t\tparams[3] = entity.getImageName();\r\n\r\n\t\t\texecSQL(sql, params);\r\n\r\n\t\t\tgetDatabase().setTransactionSuccessful();\r\n\t\t\tentity.setState(DbState.LOADED);\r\n\r\n\t\t} finally {\r\n\t\t\tgetDatabase().endTransaction();\r\n\t\t}\r\n\t}", "org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();", "Relationship createRelationship();", "private void createSerie(ws.Serie entity) {\n ws.DrawdedeWebService port = service.getDrawdedeWebServicePort();\n port.createSerie(entity);\n }", "public void create() {\r\n for(int i=0; i< 50; i++){\r\n long id = (new Date()).getTime();\r\n Benefit newBeneficio = new Benefit();\r\n newBeneficio.setId(\"\"+id); \r\n newBeneficio.setCategory(\"almacenes \"+id);\r\n newBeneficio.setDescription(\"description \"+id);\r\n newBeneficio.setDiscount(i);\r\n newBeneficio.setStart_date(\"start_date \"+id);\r\n newBeneficio.setEnd_date(\"end_date \"+id);\r\n newBeneficio.setReview(\"review \"+id);\r\n newBeneficio.setTitle(\"title \"+id);\r\n newBeneficio.setLogo(\"logo \"+id);\r\n newBeneficio.setTwitter(\"twitter \"+id);\r\n newBeneficio.setFacebook(\"facebook \"+id);\r\n newBeneficio.setUrl(\"url \"+ id);\r\n \r\n Address address = new Address();\r\n address.setCity(\"Santiago \"+ id);\r\n address.setCountry(\"Santiago \"+ id);\r\n address.setLine_1(\"Linea 1 \"+ id);\r\n address.setLine_2(\"Linea 2 \"+ id);\r\n address.setLine_3(\"Linea 3 \"+ id);\r\n address.setPostcode(\"\" + id);\r\n address.setState(\"Region Metropolitana \"+ id);\r\n \r\n Location location = new Location();\r\n double[] cordenadas = {-77.99283,-33.9980};\r\n location.setCoordinates(cordenadas);\r\n location.setDistance(5.445);\r\n location.setType(\"Point\");\r\n \r\n Lobby lobby = new Lobby();\r\n lobby.setHours(\"HORA \"+ + id);\r\n \r\n newBeneficio = service.persist(newBeneficio);\r\n LOGGER.info(newBeneficio.toString());\r\n }\r\n }", "private void addArbitraryDataToDatabase() {\n\n try (Transaction tx = graphDatabaseService.beginTx()) {\n Node arbitraryNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n arbitraryNode.setProperty(\"name\", \"Colin\");\n Node otherNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n otherNode.setProperty(\"age\", 39);\n arbitraryNode.createRelationshipTo(otherNode, DynamicRelationshipType.withName(\"TEST\"));\n\n tx.success();\n }\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "protected abstract ENTITY createEntity();", "@Override\n\tprotected IEntity createEntity(final String pEntityName, final IEntity pParent, final float pX, final float pY, final float pWidth, final float pHeight, final Attributes pAttributes, final CCBEntityLoaderData pCCBEntityLoaderData) throws IOException {\n\t\tfinal VertexBufferObjectManager vertexBufferObjectManager = pCCBEntityLoaderData.getVertexBufferObjectManager();\n\n\t\treturn new CCLayerGradient(pX, pY, pWidth, pHeight, vertexBufferObjectManager);\n\t}", "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "WriteRequest insert(PiEntity entity);", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public Flight save(Flight flight);", "@Override\n\tpublic void create(IWizardEntity entity, WizardRunner runner) {\n\t\t\n\t}", "public void addNewEntity() {\n Random random = new Random();\n int bound = Aquarium.WIDTH / 10;\n int randX = bound + random.nextInt(Aquarium.WIDTH - (2 * bound));\n int randY = bound + random.nextInt(Aquarium.HEIGHT - (2 * bound));\n Piranha newPiranha = new Piranha(randX, randY);\n piranhas.add(newPiranha);\n }", "@POST\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic Response addNode(Entity entity) {\n\t\tif(currentGraph != null) {\n\t\t\tcurrentGraph.agregarNodo(entity);\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph)\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(400)\n\t\t\t\t\t.build();\n\t\t}\n\n\t}", "org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();", "CounselorBiographyTemp create(CounselorBiographyTemp entity);", "ID create(T entity);", "@Override\n\tpublic Trunk create(final List<NameValuePair> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}", "void createOrUpdate(T entity);", "public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;", "public DefectEntity createDefectEntity(DefectEntity defectEntity);", "protected abstract EntityBase createEntity() throws Exception;", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "public ViajeroEntity create (ViajeroEntity viajeroEntity){\n LOGGER.log(Level.INFO, \"Creando un review nuevo\");\n em.persist(viajeroEntity);\n return viajeroEntity;\n }", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "@Test\r\n\t public void addAnExistingRouteFather(){\r\n\t\tRouteFather toAdd = new RouteFather();\r\n\t\ttoAdd = routeFatherDAO.create(toAdd);\r\n\t\tAssert.assertNull(toAdd);\r\n\t\t\r\n\t }", "@Override\n public void create(T entity) throws SQLException {\n\n this.dao.create(entity);\n\n }", "void addEntity(IViewEntity entity);", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public Level create(Long id,String level){\n \n System.out.println(\"level\"+level);\n Level l=new Level(1,\"Beginner\");\n Level l2=new Level(2,\"Intermediate\");\n Level l3=new Level(3,\"professional\");\n levelRepository.save(l);\n levelRepository.save(l2);\n return levelRepository.save(l3);\n \n }", "FuelingStation createFuelingStation();", "public abstract boolean create(T entity) throws SQLException;", "@Override\n\tpublic Trunk create(final Map<String, String> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}", "public abstract void startDXFEntity();", "public void createNewFarm(){\n this.mFarm = new Farm();\n this.loaded = false;\n }", "void addFlight(Node toNode);", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public void doAddEntity(TreePath path) {\n \t\tif(world == null) return;\n \t\tNode node = (Node) path.getLastPathComponent();\n \t\tString[] names = new String[EEntity.values().length];\n \t\tfor (int i = 0; i < names.length; i++) {\n \t\t\tnames[i] = EEntity.values()[i].name();\n \t\t}\n \t\tString selected = (String) JOptionPane.showInputDialog(\n \t\t\t\tWorldEditor.this, \"What kind of entity\", \"Create Entity\",\n \t\t\t\tJOptionPane.PLAIN_MESSAGE, null, names, names[0]);\n \t\tEEntity selectedEntity = EEntity.valueOf(selected);\n \t\tif (selectedEntity == null)\treturn;\n \t\tEditableEntity entity = (EditableEntity) EntityManager.getInstance().createEntity(selectedEntity);\n \t\tif (selectedEntity == EEntity.Terrain) {\n \t\t\tTerrainDialog dialog = new TerrainDialog(this);\n \t\t\tif (dialog.wasCanceled()) {\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tDimension d = dialog.getTerrainSize();\n \t\t\tint tris = dialog.getTrisPerMesh();\n \t\t\t((TerrainEntity) entity).setWidth((int) d.getWidth());\n \t\t\t((TerrainEntity) entity).setDepth((int) d.getHeight());\n \t\t\t((TerrainEntity) entity).setTrianglesPerMesh(tris);\n \t\t}\n \t\tEditableView view = (EditableView) ViewManager.getInstance().createView(entity);\n \t\tif (selectedEntity == EEntity.Terrain) {\n \t\t\tthis.terrainView = (TerrainView)view;\n \t\t\tthis.terrainView.getTerrainCluster().setDetailTexture(1, 1);\n \t\t}\n \t\tthis.world.attachView(view);\n \t\ttreeModel.addChild(node, view);\n \t\trepaint();\n \t}", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "Lehrkraft createLehrkraft();", "public abstract boolean create(T entity) throws ServiceException;", "void addNode(Entity entity) {\n\t\tProcessing.nodeSet.add(entity);\n\t\tSystem.out.println(\"the entity was successfully added to the network.\");\n\t}", "@Override\n public CreateEntityRecognizerResult createEntityRecognizer(CreateEntityRecognizerRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEntityRecognizer(request);\n }", "@Test\r\n\t public void addANullRouteFather(){\r\n\t\t RouteFather test = routeFatherDAO.create(new RouteFather(null, null, null, null, null));\r\n\t\t Assert.assertNull(\"it should returns null\", test);\r\n\t }", "@Override\n\t@Transactional\n\tpublic DetalleCarrito create(DetalleCarrito entity) throws Exception {\n\t\treturn detalleCarritoRepository.save(entity);\n\t}", "ActionResult onInsert(HopperBlockEntity hopperBlockEntity, BlockPos insertPosition);", "@RequestMapping(value = \"/rest/hikes\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void create(@RequestBody HikeDTO hikeDto) {\n log.debug(\"REST request to save Hike : {}\", hikeDto);\n User currentUser = userRepository.findOne(SecurityUtils.getCurrentLogin());\n \n Hike hike = new Hike();\n hike.setDuration(hikeDto.getDuration());\n hike.setLabel(hikeDto.getLabel());\n hike.setStartingTown(hikeDto.getStartingTown());\n hikeRepository.save(hike);\n }", "protected abstract E createEntity(String line);", "org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance addNewDecisionSightDistance();", "private static void saveEntity(TaskViewModel node, StorableFactory<Task> taskFactory) throws DatabaseException {\n Task dto = Infrastructure.getInstance().getTaskMapper().toDto(node);\n taskFactory.create(dto);\n // after creation in db id will be set\n node.setId(dto.getId());\n for (TaskViewModel child : node.getChildren()) {\n saveEntity(child, taskFactory);\n }\n }", "Builder addMainEntity(String value);", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "FogNode createFogNode();", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "Feature createFeature();", "@POST\n public Response create(EvenementDto evenementDto) {\n DataAccess dataAccess = DataAccess.begin();\n EvenementEntity evenementEntity = EvenementEntity.convertFromEvenementDto(evenementDto);\n\n System.out.println(evenementDto.toString());\n System.out.println(evenementEntity.toString());\n\n if (evenementDto.getNom() == null) {\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"name not specified\\n\").build();\n }\n else if(evenementDto.getDate() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"date not specified\\n\").build();\n }\n else if(evenementDto.getHeure() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"heure not specified\\n\").build();\n }\n\n long id = dataAccess.createEvent(evenementEntity);\n URI instanceURI = uriInfo.getAbsolutePathBuilder().path(\"\" + id).build();\n dataAccess.closeConnection(true);\n return Response.created(instanceURI).status(201).entity(evenementDto).location(instanceURI).build(); // .created(instanceURI).build();\n\n }", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);", "Builder addMainEntity(Thing value);", "void spawnEntityAt(String typeName, int x, int y);", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "protected Object create(Object entity, Class clazz) {\r\n\r\n try {\r\n EntityTransaction transaction = entityManager.getTransaction();\r\n transaction.begin();\r\n entityManager.persist(entity);\r\n transaction.commit();\r\n return entity;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao criar Entidade \" + e.getMessage());\r\n }\r\n return null;\r\n }", "TDLRoleEntity create(TDLRoleEntity tldrole);", "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }", "public void spawnEntity(Entity entity)\n\t{\n\t\tif(!entity.isLoadedResources() && !entity.loadResources())\n\t\t{\n\t\t\t//Don't add entity if an error occurs\n\t\t\treturn;\n\t\t}\n\t\tthis.newEntityBuffer.add(entity);\n\t\tLoggingHandler.logger.log(Level.FINE, \"Added entity to spawn queue: \" + entity);\n\t}", "SurfaceEntity createRoadEntity(Tile tile) {\r\n\t\tSurfaceEntity result = new SurfaceEntity();\r\n\t\tresult.tile = tile;\r\n\t\tresult.tile.alpha = alpha;\r\n\t\tresult.type = SurfaceEntityType.ROAD;\r\n\t\treturn result;\r\n\t}", "public com.Hotel.model.Hotel create(long hotelId);", "com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "Entity make(Map<String,String> status) throws FactoryException;", "org.landxml.schema.landXML11.RoadsideDocument.Roadside insertNewRoadside(int i);", "public void createExpense(ExpenseBE expenseBE) {\n\n }", "@Override\n\tpublic void insert(UserFlight userFlight) {\n\t\t\n\t}", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "ShipmentItemFeature createShipmentItemFeature();", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "public CCLayerGradientEntityLoader() {\n\t\tsuper(CCLayerGradientEntityLoader.ENTITY_NAMES);\n\t}", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "public AnimalEntity(Animal myFlyweight, Vector2D position){\n\t\tthis.position = position;\n\t\tthis.direction = new Vector2D(0, 0);\n\t\tthis.myFlyweight = myFlyweight;\n\t\tthis.maxAnimationFrame = this.myFlyweight.getMaxAnimationFrame();\n\t\tthis.starvationRate = myFlyweight.getStarvationRate();\n\t\t\n\t\tthis.foodLevel = this.myFlyweight.getFoodRepro() /2.0;\n\t}" ]
[ "0.63309366", "0.6115036", "0.6105742", "0.60250306", "0.59500694", "0.593894", "0.593894", "0.58937985", "0.58493036", "0.5818631", "0.5754685", "0.5711576", "0.56737614", "0.5672319", "0.566401", "0.5654187", "0.5653859", "0.5633379", "0.56238574", "0.5610925", "0.5592914", "0.55330306", "0.55254775", "0.55211204", "0.55171907", "0.5514171", "0.5512655", "0.55083823", "0.546213", "0.5457421", "0.54544055", "0.5429782", "0.5422907", "0.5391422", "0.5386812", "0.5367004", "0.5358863", "0.53581494", "0.53466856", "0.5340631", "0.5305129", "0.52874255", "0.5284384", "0.52825654", "0.5275287", "0.52707446", "0.5260131", "0.52537423", "0.5250811", "0.5250456", "0.5235579", "0.5229882", "0.5229882", "0.52293855", "0.5221699", "0.5212293", "0.52063245", "0.52009386", "0.520011", "0.5194832", "0.5182458", "0.5180609", "0.5169831", "0.5159087", "0.5158863", "0.5158545", "0.515033", "0.51488847", "0.5147575", "0.5147575", "0.51433545", "0.51417583", "0.51401305", "0.513512", "0.5132757", "0.5132047", "0.5128896", "0.5125716", "0.5116354", "0.51141375", "0.511049", "0.5108756", "0.5093508", "0.5084726", "0.506876", "0.5067257", "0.5065942", "0.5054644", "0.5047917", "0.50458175", "0.5039464", "0.50342345", "0.50323904", "0.5028561", "0.5026711", "0.5024888", "0.5014504", "0.50001305", "0.49963784", "0.49913952" ]
0.53499985
38
READ FLIGHT read exiting entity
Flight getFlight(Long id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}", "@Override\n public GameLogEntity readEntity(final GameLogEntity entity) {\n return this.getEntityManager().\n find(GameLogEntity.class, entity.getId());\n }", "@Override\r\n\tpublic CEntity readNext(CEntity entity) {\n\t\tentity.read(scanner);\r\n\t\treturn entity;\r\n\t}", "abstract public Vertex getReadIn();", "private DataRelationModelEntity readEntityForcely(UserDto userDto, String drmId) throws LogicException {\n\t\tDataRelationModelEntity entity = entityOperator.selectByPk(ENTITY_CLASS, drmId);\n\t\tif (entity == null) {\n\t\t\tthrow new LogicException(String.format(\"Data not found.: (drmId,)=(%s,)\", drmId), Status.NOT_FOUND.getStatusCode());\t\n\t\t}\n\t\treturn entity;\n\t}", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "org.naru.park.ParkController.CommonAction getGetLatestReading();", "@Override\r\n protected void readImpl() {\r\n _recipeId = readD();\r\n }", "public List<Tailor> read();", "@Override\r\n\tpublic CEntity read(CEntity entity, String ID) {\n\t\twhile (scanner.hasNext()) {\r\n\t\t\tentity.read(scanner);\r\n\t\t\tif (entity.getID().equals(ID))\r\n\t\t\t\treturn entity;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "boolean getForRead();", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public void read(NetInput in)\r\n/* 35: */ throws IOException\r\n/* 36: */ {\r\n/* 37:35 */ this.entityId = in.readInt();\r\n/* 38:36 */ this.metadata = NetUtil.readEntityMetadata(in);\r\n/* 39: */ }", "@Override\n\tpublic ReadRecord readItem() throws Exception {\n\t\tif (failimmediate){\n\t\t\tthrow new Exception(\"read fail immediate\");\n\t\t}\n\t\telse {\n\t\t\treturn new ReadRecord();\n\t\t}\n\t}", "@Override\n\tpublic void read() {\n\n\t}", "public void ownRead();", "private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}", "Read createRead();", "protected Entity readEntity(final UriInfoResource uriInfo) throws ODataApplicationException {\n return readEntity(uriInfo, false);\n }", "@Override\n\tpublic void readEntityFromNBT(NBTTagCompound p_70037_1_)\n\t{\n\t\tthis.xTile = p_70037_1_.getShort(\"xTile\");\n\t\tthis.yTile = p_70037_1_.getShort(\"yTile\");\n\t\tthis.zTile = p_70037_1_.getShort(\"zTile\");\n\t\tthis.inTile = Block.getBlockById(p_70037_1_.getByte(\"inTile\") & 255);\n\t\tthis.throwableShake = p_70037_1_.getByte(\"shake\") & 255;\n\t\tthis.inGround = p_70037_1_.getByte(\"inGround\") == 1;\n\t\tthis.throwerName = p_70037_1_.getString(\"ownerName\");\n\n\t\tif ((this.throwerName != null) && (this.throwerName.length() == 0))\n\t\t{\n\t\t\tthis.throwerName = null;\n\t\t}\n\t}", "@Override\r\n\tpublic void read() {\n\r\n\t}", "public Entity getLender();", "protected void modelRead(){\r\n\t\tthis.model.read(in, null);\r\n\t\tSystem.out.println(\"\\n -- model read finished --\\n\");\r\n\t}", "private void doRecoveryRead() {\n if (!promise.isDone()) {\n startEntryToRead = endEntryToRead + 1;\n endEntryToRead = endEntryToRead + clientCtx.getConf().recoveryReadBatchSize;\n new RecoveryReadOp(lh, clientCtx, startEntryToRead, endEntryToRead, this, null)\n .initiate();\n }\n }", "public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }", "public void getInformation() throws IOException {\n\t\tList<Fire> listFeux = new ArrayList<Fire>();\n\t listFeux = this.collectData();\n\t \n\t if(this.previousIntensity > this.real_intensity) {\n\t \tthis.previousIntensity = this.real_intensity;\n\t }\n\t\t\n\t\tthis.alerte.resetIntensity();\t//on reset l'intensite\n\t\tthis.real_intensity = 0;\n\t\t\n\t for (Fire feu: listFeux) {\t\t//on recalcul l'intensite\n\t \tfor (CoordEntity coord: feu.getLocation()) {\n\t\t \tif ( (Math.abs(coord.getX() - this.localisation.x) < this.range) &&\n\t\t \t\t\t(Math.abs(coord.getY() - this.localisation.y) < this.range) ) {\n\t\t \t\tint intensity = this.getIntensityFromFire(feu);\n\t\t \t\tthis.addRealIntensity(intensity);\n\t\t \t\tif (this.isDetectable(feu) == true) {\n\t\t \t\t\tSystem.out.println(\"Detectable\");\n\t\t\t \t\tif (this.applyErrors() == true) {\n\t\t\t \t\t\tthis.alerte.setIntensity(intensity);\t\n\t\t\t \t\t}\n\t\t \t\t}\n\t }\t\t\n\t }\n\t }\n\t System.err.println(previousIntensity + \"/\" + this.real_intensity + \"/\" + this.alerte.getIntensity() );\n\t\t if (this.alerte.getIntensity() > previousIntensity) {\n\t\t \tthis.previousIntensity = this.real_intensity;\t//on recupere l'intensite mesuree precedement\n\t\t \tSystem.err.println(\"Alarme\");\n\t\t \tthis.triggerAlarm();\t//si il y a eu aggravation de l'etat du feu\n\t\t }\n\t}", "public void readAdditional(CompoundNBT compound) {\n super.readAdditional(compound);\n if (compound.contains(\"EggLayTime\")) {\n this.timeUntilNextEgg = compound.getInt(\"EggLayTime\");\n }\n if (compound.contains(\"isBreed\")) {\n this.breed = compound.getBoolean(\"isBreed\");\n }\n if (compound.contains(\"isSleeping\")) {\n this.sleeping = compound.getBoolean(\"isSleeping\");\n }\n if (compound.contains(\"leaderEntity\") && !world.isRemote()) {\n Entity e = ((ServerWorld)world).getEntityByUuid(UUID.fromString(compound.getString(\"leaderEntity\")));\n if(e instanceof AbstractDuckEntity){\n leader = (AbstractDuckEntity) e;\n Main.LOGGER.debug(\"My leader is \" + leader==this + \" \" + leader);\n }\n }else{\n Main.LOGGER.debug(\"Cannot get leader\");\n\n }\n if (compound.contains(\"isGroupLeader\")) {\n this.isGroupLeader = compound.getBoolean(\"isGroupLeader\");\n if(!world.isRemote() && compound.contains(\"duckGroup\")){\n ListNBT l = (ListNBT)compound.get(\"duckGroup\");\n\n assert l != null;\n\n for(INBT nbt : l){\n Main.LOGGER.info(\"Reading nbt...\");\n String s = ((CompoundNBT)nbt).getString(\"uuid\");\n Entity e = ((ServerWorld)world).getEntityByUuid(UUID.fromString(s));\n if(e instanceof AbstractDuckEntity){\n Main.LOGGER.info(\"Readed from uuid \" + group.size() + \" : \" + e);\n\n group.add((AbstractDuckEntity)e);\n }\n }\n }\n }else{\n //new spawned\n }\n\n }", "E read(K id);", "abstract protected Entity selectNextEntity();", "@GET\n @Path(\"/\")\n public Response read() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n EntityBody entityBody = entityDefinition.getService().getCustom(entityId);\n if (entityBody == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n return Response.status(Status.OK).entity(entityBody).build();\n }", "abstract void read();", "com.rpg.framework.database.Protocol.MonsterState getData(int index);", "public void readEntityFromNBT(NBTTagCompound tagCompund) {\n/* 182 */ this.fireworkAge = tagCompund.getInteger(\"Life\");\n/* 183 */ this.lifetime = tagCompund.getInteger(\"LifeTime\");\n/* 184 */ NBTTagCompound var2 = tagCompund.getCompoundTag(\"FireworksItem\");\n/* */ \n/* 186 */ if (var2 != null) {\n/* */ \n/* 188 */ ItemStack var3 = ItemStack.loadItemStackFromNBT(var2);\n/* */ \n/* 190 */ if (var3 != null)\n/* */ {\n/* 192 */ this.dataWatcher.updateObject(8, var3);\n/* */ }\n/* */ } \n/* */ }", "protected T doRead() throws Exception {\r\n\r\n\t\tif (noInput) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tT item = null;\r\n\r\n\t\tint success = 0;\r\n\t\ttry {\r\n\t\t\tsuccess = moveCursorToNextFragment(fragmentReader);\r\n\t\t}\r\n\t\tcatch (NonTransientResourceException e) {\r\n\t\t\t// Prevent caller from retrying indefinitely since this is fatal\r\n\t\t\tnoInput = true;\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tif (success == 1) {\r\n\t\t\tfragmentReader.markStartFragment();\r\n\t\t\ttry {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tT mappedFragment = (T) unmarshaller.unmarshal(StaxUtils.getSource(fragmentReader));\r\n\t\t\t\titem = mappedFragment;\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tfragmentReader.markFragmentProcessed();\r\n\t\t\t}\r\n\t\t}else if(success == 2){\r\n\t\t\tfragmentReader.markStartFragment();\r\n\t\t\ttry {\r\n\t\t\t\tSource currentSource = StaxUtils.getSource(fragmentReader);\r\n\t\t\t\tXmlStreamEvent event = StaxDefaultUnmarshaller.sourceToParsedEvent(currentSource);\r\n\t\t\t\theaderWriter.write(event);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tfragmentReader.markFragmentProcessed();\r\n\t\t\t}\r\n\t\t\treturn doRead();\r\n\t\t}\r\n\t\treturn item;\r\n\t}", "NodeRecord nodeLoadLight( long id );", "org.naru.park.ParkController.CommonAction getGetLatestSensorReadingForUser();", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }", "@Test\r\n\t\tpublic void readANonExistingRouteFather(){\r\n\t\t\tRouteFather toRead = new RouteFather(1234123);\r\n\t\t\ttoRead = routeFatherDAO.read(toRead);\r\n\t\t\tAssert.assertNull(\"it should returns null\", toRead);\r\n\t\t}", "boolean getRead();", "@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "public void read() {\n\t\tthis.jtfSoundReaderServ = new JtfSoundReaderServ(this.audioFormat, this.targetDataLine);\n\t\tthis.readerThread = new Thread(this.jtfSoundReaderServ);\n\t\tthis.readerThread.start();\n\t}", "private void readObject() {\n }", "@Override\n\tpublic void readImpl()\n\t{\n\t\t_requestedPointType = readD();\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\r\n public void read() {\n System.out.println('\\n' + \"DB repo: \");\r\n //Idk, probably search for a person and read data??\r\n\r\n }", "RelationshipRecord relLoadLight( long id );", "protected void doBeginRead() throws Exception {}", "public static Row weakReadProtocol(String tablename, String key, String columnFamily, int start, int count) throws Exception\n {\n Row row = null;\n long startTime = System.currentTimeMillis();\n List<EndPoint> endpoints = StorageService.instance().getNLiveStorageEndPoint(key);\n /* Remove the local storage endpoint from the list. */ \n endpoints.remove( StorageService.getLocalStorageEndPoint() );\n // TODO: throw a thrift exception if we do not have N nodes\n \n Table table = Table.open( DatabaseDescriptor.getTables().get(0) );\n if( start >= 0 && count < Integer.MAX_VALUE)\n {\n row = table.getRow(key, columnFamily, start, count);\n }\n else\n {\n row = table.getRow(key, columnFamily);\n }\n \n logger_.debug(\"Local Read Protocol: \" + (System.currentTimeMillis() - startTime) + \" ms.\");\n /*\n * Do the consistency checks in the background and return the\n * non NULL row.\n */\n if ( endpoints.size() > 0 && DatabaseDescriptor.getConsistencyCheck())\n \tStorageService.instance().doConsistencyCheck(row, endpoints, columnFamily, start, count);\n return row; \n }", "public interface DataReader extends DataAccessor, IntermittentlyAvailableResource {\n /**\n * \n * Resets this accessor to focus on the first message in the specified \n * TSF at or after the specified timestamp.\n * \n * @param timeSlice The time slice to focus on.\n * @param timestamp Fast forward to specified timestamp.\n * Pass Long.MIN_VALUE (or any timestamp prior \n * to TSF) to process all messages.\n * @param movePastTSFEnd If true, the reader will move to next \n * time slice, as normal. If false, the reader\n * will return false from {@link #readNext(deltix.qsrv.dtb.store.pub.TSMessageConsumer) }\n * at the end of the current time slice.\n * @param filter The entity filter. Pass null to read all data.\n */\n public void open (\n TSRef timeSlice,\n long timestamp,\n boolean movePastTSFEnd,\n EntityFilter filter\n ); \n \n /**\n * Resets this accessor to focus on\n * the first message at or after the specified timestamp.\n * \n * @param timestamp The timestamp (all times are in nanoseconds) to seek.\n * @param forward Whether to read forward in time.\n * @param filter The entity filter. Pass null to read all data.\n */\n public void open (\n long timestamp,\n boolean forward,\n EntityFilter filter\n );\n\n /**\n * Reset current filter and change subscription.\n * @param filter EntityFilter to apply for the current slice\n */\n public void setFilter(EntityFilter filter);\n \n /**\n * Sets limit timestamp to read.\n *\n * @param timestamp The timestamp (all times are in nanoseconds) to limit reader.\n */\n public void setLimitTimestamp (long timestamp);\n\n /**\n * Returns start time of the current time slice.\n */\n public long getStartTimestamp();\n\n /**\n * Returns end time of the current time slice.\n */\n public long getEndTimestamp();\n \n /**\n * Read a message at the current location.\n * \n * @param processor The MemoryDataInput instance to configure\n * \n * @return false if the current message was the last one.\n */\n public boolean readNext (TSMessageConsumer processor);\n\n /*\n Reopens reader to the given timestamp in nanoseconds.\n */\n public void reopen(long timestamp);\n\n /**\n * Closed all allocated and opened slices. Data reading can be resumed again calling reopen() method.\n */\n public void park();\n}", "T read(int id);", "T read(int id);", "org.naru.park.ParkController.CommonActionOrBuilder getGetLatestReadingOrBuilder();", "org.naru.park.ParkController.CommonAction getSendReading();", "protected void onGetMeasuredFloorTemperature(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "private int getEntBlock(FileTableEntry ftEnt)\n\t{\n\t\tint block = ftEnt.seekPtr / Disk.blockSize;\n\t\t//get actual block number\n\t\tif (block < Inode.directSize)\n\t\t{\n\t\t\treturn (int)ftEnt.inode.direct[block];\n\t\t}\n\n\t\tbyte[] temp = new byte[Disk.blockSize];\n\t\tSysLib.rawread((int)ftEnt.inode.indirect, temp);\n\t\treturn (int)SysLib.bytes2short(temp, (block - Inode.directSize) * 2);\n\t}", "@Override\r\npublic Detalle_pedido read(int id) {\n\treturn detalle_pedidoDao.read(id);\r\n}", "protected void readEntityFromNBT(NBTTagCompound var1)\n {\n this.fuse = var1.getByte(\"Fuse\");\n }", "public abstract double readLightValue();", "int getBytesRead() {\n \treturn _read + _o;\n }", "@Override\r\n\tpublic void reading() {\n\t\tSystem.out.println(\"reading\");\r\n\t}", "public Mass getFiberContent() throws ClassCastException;", "protected abstract Object read ();", "private int getRL(Entity entity){\n\t\treturn Mappers.renderLevel.get(entity).renderLevel;\n\t}", "boolean hasForRead();", "public void read(final EntityID sender, final int time, final BitArrayInputStream stream);", "@Override\n\tprotected void readEntityFromNBT(NBTTagCompound tag) {\n\t\tthis.fuse = tag.getByte(\"Fuse\");\n\t\tthis.variant = tag.getByte(\"Variant\");\n\t}", "private LogData readEntry(FileHandle fh, long address)\n throws IOException {\n ByteBuffer o = fh.getMapForRegion(64, (int) fh.getChannel().size());\n while (o.hasRemaining()) {\n short magic = o.getShort();\n if (magic != 0x4C45) {\n return null;\n }\n short flags = o.getShort();\n long addr = o.getLong();\n if (address == -1) {\n //Todo(Maithem) : maybe we can move this to getChannelForAddress\n fh.knownAddresses.add(addr);\n }\n int size = o.getInt();\n if (addr != address) {\n o.position(o.position() + size - 16); //skip over (size-20 is what we haven't read).\n log.trace(\"Read address {}, not match {}, skipping. (remain={})\", addr, address, o.remaining());\n } else {\n log.debug(\"Entry at {} hit, reading (size={}).\", address, size);\n if (flags % 2 == 0) {\n log.error(\"Read a log entry but the write was torn, aborting!\");\n throw new IOException(\"Torn write detected!\");\n }\n int metadataMapSize = o.getInt();\n ByteBuf mBuf = Unpooled.wrappedBuffer(o.slice());\n o.position(o.position() + metadataMapSize);\n ByteBuffer dBuf = o.slice();\n dBuf.limit(size - metadataMapSize - 24);\n return new LogData(Unpooled.wrappedBuffer(dBuf),\n ICorfuPayload.enumMapFromBuffer(mBuf, IMetadata.LogUnitMetadataType.class, Object.class));\n }\n }\n return null;\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }", "public IEntity getLeashedEntity() {\n return getEntity(source.getLeashedEntity());\n }", "protected T input() {\n\t\tRecordReader<T> inputReader = getReader(getMainConstraint());\n\t\tif (inputReader == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).error(\"no main reader!\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\tT inputRecord = inputReader.read();\n\t\tif (inputRecord == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).info(\"end of input\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\t// Logger.getLogger(OneToManyLookupProcessNode.class).info(\"got input\"); //$NON-NLS-1$\n\t\tsetInCount(getInCount() + 1);\n\t\tif (getProgressCount() > 0 && getInCount() % getProgressCount() == 0) {\n\t\t\tLogger.getLogger(ProcessNode.class).info(\"input records: \" + getInCount()); //$NON-NLS-1$\n\t\t\tlong newTime = System.currentTimeMillis();\n\t\t\tLogger.getLogger(ProcessNode.class).info(\n\t\t\t\t\"duration: \" + String.valueOf(((double) newTime - (double) getTime()) / 1000)); //$NON-NLS-1$\n\t\t\tsetTime(newTime);\n\t\t}\n\t\treturn inputRecord;\n\t}", "NffgReader getReader() throws ServiceException;", "int getReadPosition(int index) {\n/* 170 */ return index - this.origPos + this.readerIndex;\n/* */ }", "public int readLife(int[] fighter) {\n return fighter[LIFE];\n }", "@Override\n\tvoid performReading() {\n\t\tthis.humiditySensorMeasurements.setAbsHumidity(this.varibles.get(\"absHumidity\"));\n\t\tthis.humiditySensorMeasurements.setRelHumidity(this.varibles.get(\"relHumidity\"));\n\t\tSensorResults hum = this.humiditySensorMeasurements.measurements();\n\t\n\t/*if (hum == SensorResults.HIGH && temp == SensorResults.HIGH) {\n\t\t\t// System.out.println(\"abnormal temp\");\n\t\t\tthis.creatMessage(\"abnormal hight Humidity\");\n\t\t}\n\t\tif (hum == SensorResults.LOW) {\n\t\t\t// System.out.println(\"abnormal Light\");\n\t\t\tthis.creatMessage(\"abnormal low Humidity\");\n\t\t}/**/\n\t\tmap.put(\"Light\", hum);\n\t\tthis.observer.update();\n\t}", "public long readLong() {\n while (isEmpty()) {\n }\n Timing.waitSyncLocal();\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }", "@Override\n\tpublic int getReadSpeed() {\n\t\treturn 0;\n\t}", "protected abstract int readInternal(int index);", "@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}", "public Read(Person person) {\n\t\t// Use Task constructor.\n\t\tsuper(NAME, person, true, false, STRESS_MODIFIER, true, 5D);\n\n\t\tif (person.isInSettlement() || person.isInVehicle()) {\n\n\t\t\tboolean walkSite = false;\n\n\t\t\tint score = person.getPreference().getPreferenceScore(new ReadMeta());\n\t\t\tsuper.setDuration(5 + score);\n\t\t\t// Factor in a person's preference for the new stress modifier\n\t\t\tsuper.setStressModifier(score / 10D + STRESS_MODIFIER);\n\n\t\t\t// set the boolean to true so that it won't be done again today\n\t\t\t// person.getPreference().setTaskStatus(this, false);\n\n\t\t\tif (person.isInSettlement()) {\n\t\t\t\t// if gym is not available, go back to his quarters\n\t\t\t\tBuilding quarters = person.getQuarters();\n\t\t\t\tif (quarters != null) {\n\t\t\t\t\twalkToActivitySpotInBuilding(quarters, FunctionType.LIVING_ACCOMODATIONS, true);\n\t\t\t\t\twalkSite = true;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (!walkSite) {\n\t\t\t\tif (person.isInVehicle()) {\n\t\t\t\t\t// If person is in rover, walk to passenger activity spot.\n\t\t\t\t\tif (person.getVehicle() instanceof Rover) {\n\t\t\t\t\t\twalkToPassengerActivitySpotInRover((Rover) person.getVehicle(), true);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Walk to random location.\n\t\t\t\t\twalkToRandomLocation(true);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tsetDescription(Msg.getString(\"Task.description.read\"));\n\n\t\t} else {\n\t\t\tendTask();\n\t\t}\n\n\t\t// Initialize phase\n\t\taddPhase(READING);\n\t\tsetPhase(READING);\n\t}", "static void read(DataInputStream f, byte[] b, int posicion, int longitud) throws Exception {\n while (longitud > 0) {\n int n = f.read(b, posicion, longitud);\n posicion += n;\n longitud -= n;\n }\n }", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "private void readObject() {/*default - does nothing empty block */}", "public abstract Integer getEntity();", "@Test\n @Ignore(\"This is only applicable to Neo4j 2.0.0-M03 and below where transactions \" +\n \"were not mandatory for reading\")\n public void defaultReadingIsReadCommitted() throws Exception {\n assertNameAndAgeViaLookup(john.getId(), \"John\", 34, \"John\");\n\n // Do the update in a separate Thread and ensure its actually updated\n doUpdateInSeparateThread(new PersonUpdater(\"John\", 44));\n\n // Now, back in our thread, ensure we read the commited value\n assertNameAndAgeViaLookup(john.getId(), \"John\", 44, \"John\");\n }", "protected void onGetMeasuredAmountOfWaterRemainingInTank(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}" ]
[ "0.59911096", "0.5879649", "0.5625859", "0.5498708", "0.542902", "0.53951824", "0.5382243", "0.5360309", "0.53456175", "0.53324914", "0.5325026", "0.52755976", "0.5265694", "0.5256873", "0.5238831", "0.5236653", "0.5224597", "0.5213811", "0.5190967", "0.51675695", "0.51442814", "0.51397383", "0.5132001", "0.51300704", "0.5115314", "0.5106158", "0.50935334", "0.50916946", "0.5090975", "0.5071876", "0.50674134", "0.50641775", "0.5059649", "0.50527406", "0.50436705", "0.50411576", "0.5026347", "0.5024885", "0.5024885", "0.5024885", "0.5007142", "0.50069356", "0.49890655", "0.49821293", "0.4980226", "0.49769214", "0.49709883", "0.49677223", "0.49646887", "0.4939245", "0.49388427", "0.49366796", "0.49230015", "0.4922664", "0.4903054", "0.4903054", "0.48991722", "0.48879924", "0.48839843", "0.48753425", "0.48739448", "0.4861604", "0.48450187", "0.4840883", "0.48221222", "0.48190543", "0.48179808", "0.48143265", "0.48100054", "0.480288", "0.48006302", "0.47956732", "0.47947612", "0.47935575", "0.47871515", "0.47833908", "0.47825685", "0.4782516", "0.47816536", "0.4780643", "0.47706643", "0.47654685", "0.47557306", "0.47480997", "0.47467756", "0.4745189", "0.47445777", "0.47445777", "0.47445777", "0.47445777", "0.47445777", "0.47445777", "0.47445777", "0.47445777", "0.47445777", "0.47445777", "0.47425485", "0.4742171", "0.47374448", "0.47340715" ]
0.496583
48
UPDATE FLIGHT update existing entity
Flight updateFlight(Flight flight);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "E update(E entity);", "E update(E entity);", "void update(CE entity);", "T update(T entity);", "T update(T entity);", "void update(T entity);", "void update(T entity);", "void update(T entity) throws Exception;", "public void update(E entity);", "public PtJJdwcy update(PtJJdwcy entity);", "CounselorBiographyTemp update(CounselorBiographyTemp entity);", "public <T> T update(T entity);", "void update(Student entity);", "public void Update(StokContract entity) {\n\t\t\n\t}", "E update(E entiry);", "E update(ID id, E entity, RequestContext context);", "@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}", "@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}", "public void updateByEntity(Paciente paciente) {\n\t\n}", "public Address update(Address entity);", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "boolean update(T entity) throws Exception;", "@Override\n\tpublic void update(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}", "@Override\n\tpublic Fournisseur update(Fournisseur entity) {\n\t\treturn null;\n\t}", "E update(E entity) throws ValidationException;", "public HrJBorrowcontract update(HrJBorrowcontract entity);", "Table8 update(Table8 table8) throws EntityNotFoundException;", "public void updateGeominas(Geominas entity) throws Exception;", "@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "public void update(IEntity entity) throws SQLException;", "@Override\n\tpublic void update(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.update(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}", "@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}", "public abstract boolean update(T entity) throws ServiceException;", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "public CbmCItemFininceItem update(CbmCItemFininceItem entity);", "@Override\n\tpublic int update(Subordination entity) throws DBOperationException {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}", "void update(T obj) throws PersistException;", "public T update(T entity) throws DataAccessException;", "@Override\r\n public void update(Answer entity) {\n\r\n }", "@Override\n\tpublic void update(Factura t) {\n\t\tfacturaRepository.save(t);\n\t\t\n\t}", "@Override\n public void updateEntity(LineageEntity lineageEntity) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n Iterator<Vertex> vertex = g.V().has(PROPERTY_KEY_ENTITY_GUID, lineageEntity.getGuid());\n if (!vertex.hasNext()) {\n log.debug(VERTEX_GUID_NOT_FOUND_WHEN_UPDATE, lineageEntity.getGuid());\n rollbackTransaction(g);\n return;\n }\n commit(graphFactory, g, this::addOrUpdatePropertiesVertex, g, vertex.next(), lineageEntity, PROPERTIES_UPDATE_EXCEPTION);\n }", "public long update(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.UPDATE_TYPE);\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void update(ZpEvaluateDegreeVersionEntity entity) {\n\t\tdao.update(entity);\n\t}", "public void update(RutaPk pk, Ruta dto) throws RutaDaoException;", "@Override\n public void entityRPClassUpdate(RPObject entity) {\n }", "public void update(Triplet t) throws DAOException;", "@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}", "@Test\n public void testUpdateSightingGP() throws InvalidIdException, InvalidEntityException {\n Sighting original = new Sighting(1, LocalDate.parse(\"2010-01-01\"), loc1, hero1);\n Sighting updated = new Sighting(1, LocalDate.parse(\"2015-01-01\"), loc1, hero1);\n \n Sighting toCheck = service.getSightingById(1);\n assertEquals(original, toCheck);\n \n service.updateSighting(updated);\n \n toCheck = service.getSightingById(1);\n assertEquals(updated, toCheck);\n assertNotEquals(original, toCheck);\n }", "@Override\n\tpublic Product update(Product entity) {\n\t\treturn null;\n\t}", "int updTravelById(Travel record) throws TravelNotFoundException;", "@Test\r\n public void testUpdate() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n PodamFactory pf = new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity = pf.manufacturePojo(MonitoriaEntity.class);\r\n nuevaEntity.setId(entity.getId());\r\n persistence.update(nuevaEntity);\r\n// Assert.assertEquals(nuevaEntity.getName(), resp.getName());\r\n }", "@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}", "@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }", "public void update(T entity) {\n\t\tsessionFactory.getCurrentSession().update(entity);\n\t}", "boolean updateById(T entity);", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "D update(D dto);", "public Hoppy update(Hoppy hoppy) throws DataAccessException;", "@Test\n public void updateVisitaTest() {\n VisitaEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity newEntity = factory.manufacturePojo(VisitaEntity.class);\n newEntity.setId(entity.getId());\n\n VisitaPersistence.update(newEntity);\n\n VisitaEntity resp = em.find(VisitaEntity.class, entity.getId());\n\n Assert.assertEquals(newEntity.getId(), resp.getId());\n Assert.assertArrayEquals(newEntity.getFotos().toArray(), resp.getFotos().toArray());\n Assert.assertEquals(newEntity.getOferta(), resp.getOferta());\n Assert.assertEquals(newEntity.getUsuario(), resp.getUsuario());\n Assert.assertEquals(newEntity.getComentario(), resp.getComentario());\n Assert.assertEquals(newEntity.getCalificacion(), resp.getCalificacion());\n }", "public Client update(Client updated) throws EntityNotFoundException;", "@Override\n\tpublic Result update(CurriculumVitae entity) {\n\t\treturn null;\n\t}", "@Update\n void update(UsersEntity usersEntity);", "Weather update(Long id, WeatherInformation weatherInformation);", "@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }", "@PUT\n @JWTTokenNeeded\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n public Response update(EscenarioDTO entidad) {\n logger.log(Level.INFO, \"entidad:{0}\", entidad);\n \n try {\n \tConciliacion entidadPadreJPA = null;\n if (entidad.getIdConciliacion() != null) {\n entidadPadreJPA = padreDAO.find(entidad.getIdConciliacion());\n if (entidadPadreJPA == null) {\n throw new DataNotFoundException(Response.Status.NOT_FOUND.getReasonPhrase() + entidad.getIdConciliacion());\n }\n }\n //Hallar La entidad actual para actualizarla\n Escenario entidadJPA = managerDAO.find(entidad.getId());\n if (entidadJPA != null) {\n entidadJPA.setFechaActualizacion(Date.from(Instant.now()));\n entidadJPA.setNombre(entidad.getNombre() != null ? entidad.getNombre() : entidadJPA.getNombre());\n entidadJPA.setImpacto(entidad.getImpacto() != null ? entidad.getImpacto() : entidadJPA.getImpacto());\n entidadJPA.setDescripcion(entidad.getDescripcion() != null ? entidad.getDescripcion() : entidadJPA.getDescripcion());\n \n Boolean actualizarConciliacion = false;\n entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n \n Conciliacion conciliacionpadreactual = null;\n \n \n if (entidadJPA.getConciliacion() != null && !Objects.equals(entidadJPA.getConciliacion().getId(), entidad.getIdConciliacion())){\n actualizarConciliacion = true;\n conciliacionpadreactual = padreDAO.find(entidadJPA.getConciliacion().getId());\n }\n //entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n managerDAO.edit(entidadJPA);\n if (actualizarConciliacion){\n if ((entidadPadreJPA != null)) {\n entidadPadreJPA.addEscenario(entidadJPA);\n padreDAO.edit(entidadPadreJPA);\n conciliacionpadreactual.removeEscenario(entidadJPA);\n padreDAO.edit(conciliacionpadreactual);\n }\n }\n LogAuditoria logAud = new LogAuditoria(this.modulo, Constantes.Acciones.EDITAR.name(), Date.from(Instant.now()), entidad.getUsername(), entidadJPA.toString());\n logAuditoriaDAO.create(logAud);\n \n ResponseWrapper wraper = new ResponseWrapper(true,I18N.getMessage(\"escenario.update\", entidad.getNombre()) ,entidadJPA.toDTO());\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }\n \n ResponseWrapper wraper = new ResponseWrapper(false,I18N.getMessage(\"escenario.notfound\", entidad.getNombre()));\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }catch (Exception e) {\n \tif(e.getCause() != null && (e.getCause() instanceof DataAlreadyExistException || e.getCause() instanceof DataNotFoundException)) {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, e.getCause().getMessage(), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}else {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, I18N.getMessage(\"general.readerror\"), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}\n }\n }", "@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "public void update(SgfensBancoPk pk, SgfensBanco dto) throws SgfensBancoDaoException;", "public HrCStatitem update(HrCStatitem entity);", "@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }", "@Override\n\tpublic T update(T entity) {\n\t\treturn entity;\n\t}", "@Override\n\tpublic void updateWaybill(WaybillEntity waybill) {\n\t\t\n\t}", "Product update(Product product, long id);", "default E update(ID id, E entity) {\n return update(id, entity, null);\n }", "@Override\n\tpublic void update(T entity) {\n\t\tbaseDaoImpl.update(entity);\n\t}", "@Test\r\n\t public void updateANonExistingRouteFather(){\r\n\t\t RouteFather routeFather = new RouteFather(888988);\r\n\t\t routeFather = routeFatherDAO.update(routeFather);\r\n\t\t Assert.assertNull(\"it should returns null\", routeFather);\r\n\t }", "@Override\n\tpublic Map<String, Object> update(StoreBase entity) {\n\t\treturn null;\n\t}", "LoginHistory update(LoginHistory entity);", "public void updateContratoDosimetro(ContratoDosimetro entity)\n throws Exception;", "@Override\n\tpublic void update(Object dto) throws Exception {\n\t\tpropertyConfigMapper.updateByPrimaryKeySelective(dto);\n\t}", "Feature update(Feature feature);", "public void update(RelacionConceptoEmbalajePk pk, RelacionConceptoEmbalaje dto) throws RelacionConceptoEmbalajeDaoException;", "UserEntity updateUser(UserEntity userEntity);", "public void updateEntity2(Entity2 entity2) throws DaoException;", "@Override\n\tpublic Trainee updateTrainee(Trainee t) {\n\t\tTrainee a=em.find(Trainee.class,t.getId());\n\t\tif(a!=null) {\n\t\t\ta.setName(t.getName());\n\t\t\ta.setLocation(t.getLocation());\n\t\t\ta.setDomain(t.getDomain());\n\t\t}\n\t\treturn a;\n\t}", "public void update(SgfensPedidoProductoPk pk, SgfensPedidoProducto dto) throws SgfensPedidoProductoDaoException;", "int updateByPrimaryKey(TbFreightTemplate record);", "void saveOrUpdate(T entity);", "void saveOrUpdate(T entity);", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "AdPartner updateAdPartner(AdPartner adPartner);", "@Test\n public void updateViajeroTest() {\n ViajeroEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n ViajeroEntity newEntity = factory.manufacturePojo(ViajeroEntity.class);\n\n newEntity.setId(entity.getId());\n\n vp.update(newEntity);\n\n ViajeroEntity resp = em.find(ViajeroEntity.class, entity.getId());\n\n Assert.assertEquals(newEntity.getId(), resp.getId());\n }", "@SmallTest\n public void testUpdate() {\n int result = -1;\n if (this.entity != null) {\n Settings settings = SettingsUtils.generateRandom(this.ctx);\n settings.setId(this.entity.getId());\n\n result = (int) this.adapter.update(settings);\n\n Assert.assertTrue(result >= 0);\n }\n }", "public void update(){}", "public void update(){}" ]
[ "0.7502105", "0.72444725", "0.72444725", "0.7106717", "0.70068634", "0.70068634", "0.69018704", "0.69018704", "0.6858318", "0.68399704", "0.67544454", "0.67433983", "0.6713969", "0.671308", "0.6711961", "0.6672542", "0.65827525", "0.6552894", "0.6541722", "0.6531713", "0.6516225", "0.6515554", "0.64994794", "0.64922726", "0.64519817", "0.6432522", "0.64279854", "0.64168173", "0.6401452", "0.6338266", "0.6316535", "0.63043386", "0.62881076", "0.6284065", "0.62680495", "0.62521094", "0.6246363", "0.62119067", "0.6208433", "0.61958414", "0.61880314", "0.6186664", "0.61586684", "0.61092514", "0.6076027", "0.6057506", "0.6042175", "0.60194784", "0.6016599", "0.60135376", "0.60071445", "0.59974205", "0.59969664", "0.598972", "0.5986489", "0.5978", "0.5977529", "0.5976838", "0.59645295", "0.595904", "0.5957446", "0.5943756", "0.59315073", "0.59178406", "0.5910618", "0.5906877", "0.5905001", "0.5895968", "0.5889603", "0.58694744", "0.58649683", "0.585708", "0.58492184", "0.5845509", "0.5841451", "0.583845", "0.583013", "0.57845426", "0.5778217", "0.5760337", "0.5757678", "0.5754743", "0.5751362", "0.57496476", "0.57487845", "0.5743356", "0.5739019", "0.5733873", "0.5723975", "0.5717172", "0.57160753", "0.57150507", "0.57150507", "0.57112896", "0.5704395", "0.57010096", "0.5692238", "0.5690061", "0.5668973", "0.5668973" ]
0.582512
77
DELETE FLIGHT delete entity
void removeFlight(Flight flight);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}", "@Override\n public void delete(SideDishEntity entity) {\n\n }", "void delete(int entityId);", "void delete(Entity entity);", "@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}", "void delete(T entity);", "void delete(T entity);", "@Override\n public void delete(LineEntity entity) {\n\n }", "@Override\r\n public void deleteEntity(String entityName) {\n\r\n }", "void delete(Object entity);", "public void delete(HrJBorrowcontract entity);", "@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "void deleteEntityById(Long id);", "@Override\r\n\tpublic void delete(PartyType entity) {\n\t\t\r\n\t}", "void delete(E entity);", "void delete(E entity);", "public void deleteGeominas(Geominas entity) throws Exception;", "Feature delete(Long featureId);", "@Override\n\tpublic void delete(T entity) {\n\t}", "public void delete(HrCStatitem entity);", "public void delete(Contract entity) {\n\r\n\t}", "Boolean delete(T entity);", "public void delete() throws EntityPersistenceException {\n\n }", "@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}", "@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }", "public <T> boolean delete(T entity);", "boolean delete(T entity) throws Exception;", "@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}", "public void delete(ControlAcceso entity) {\n\n\t}", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "int deleteByPrimaryKey(Integer tfId);", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "public void delete(Address entity);", "ApiResponse deleteEntityById(Integer id);", "@Override\n\tpublic int delete(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}", "public void delete(CbmCItemFininceItem entity);", "@Override\n\tpublic void delete(Audit entity) {\n\t\t\n\t}", "public void deleteDefectEntity(Long id);", "@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}", "public long delete(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.DELETE_TYPE);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void deleteEntity(TypeModePaiement entity) {\n\t\trepository.deleteById(entity.getIdTypeMdp());\r\n\t}", "@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}", "@Test(expected = NotFoundException.class)\n public void testDeleteEntityFromGDC() {\n Transaction tx = graphDatabaseContext.beginTx();\n Person p = new Person(\"Michael\", 35);\n Person spouse = new Person(\"Tina\", 36);\n p.setSpouse(spouse);\n long id = spouse.getId();\n graphDatabaseContext.removeNodeEntity(spouse);\n tx.success();\n tx.finish();\n Assert.assertNull(\"spouse removed \" + p.getSpouse(), p.getSpouse());\n NodeFinder<Person> finder = finderFactory.createNodeEntityFinder(Person.class);\n Person spouseFromIndex = finder.findByPropertyValue(Person.NAME_INDEX, \"name\", \"Tina\");\n Assert.assertNull(\"spouse not found in index\",spouseFromIndex);\n Assert.assertNull(\"node deleted \" + id, graphDatabaseContext.getNodeById(id));\n }", "@Override\n\tpublic Map<String, Object> delete(StoreBase entity) {\n\t\treturn null;\n\t}", "@Override\n public void delete(Iterable<? extends SideDishEntity> entities) {\n\n }", "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }", "@Override\n\tpublic void delete(Category entity) {\n\t\t\n\t}", "@Override\n\tpublic Result delete(CurriculumVitae entity) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteEntityObj(StdMilkRate e) {\n\t\t\n\t}", "@Override\n\tpublic void entityDeleted(TGEntity entity) {\n \tOptional<TGAttribute> attr = entity.getAttributes().stream().findFirst();\n gLogger.log(TGLogger.TGLevel.Debug, \"Entity is deleted - \" + (attr.isPresent() ? attr.get().getValue() : \"no attribute found\"));\n removedList.put(((AbstractEntity) entity).getVirtualId(), entity);\n\t}", "@Override\n\tpublic void delete(Category entity) {\n\n\t}", "@Override\n public void delete(Long id) throws Exception {\n\n }", "@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "void deleteFeature(Integer id);", "@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }", "void delete(E entity, RequestContext context)\n throws TechnicalException, ResourceNotFoundException;", "public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }", "public StokContract Delete(StokContract entity) {\n\t\treturn null;\n\t}", "@Test\r\n\tpublic void deleteAnExistingRouteFather(){\r\n\t\tRouteFather deleted = routeFatherDAO.delete(this.routeFather);\r\n\t\tAssert.assertNotNull(\"it should returns a not null object\", deleted);\r\n\t}", "@Test\n public void deleteEspecieTest() throws BusinessLogicException {\n EspecieEntity entity = especieData.get(1);\n System.out.println(entity.getId());\n System.out.println(entity.getRazas().size());\n especieLogic.deleteEspecie(entity.getId());\n EspecieEntity deleted = em.find(EspecieEntity.class, entity.getId());\n Assert.assertTrue(deleted.getDeleted());\n }", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "@Test\n public void deleteVisitaTest() {\n VisitaEntity entity = data.get(0);\n VisitaPersistence.delete(entity.getId());\n VisitaEntity deleted = em.find(VisitaEntity.class, entity.getId());\n Assert.assertNull(deleted);\n }", "@Override\n\tpublic <T> long delete(Map<String, CustmerCriteria> query, Class<T> entityClass) throws Exception {\n\t\treturn 0;\n\t}", "@Delete\n void deleteEggDaily(EggDaily eggDaily);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Fonctions : {}\", id);\n fonctionsRepository.deleteById(id);\n }", "@Test\r\n\tpublic void deleteANonExistingRouteFather(){\r\n\t\tRouteFather toDelete = new RouteFather(123123);\r\n\t\tRouteFather deleted = routeFatherDAO.delete(toDelete);\r\n\t\tAssert.assertNull(\"it should returns a null object\", deleted);\r\n\t}", "@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}", "public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}", "@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "public void delete(SecRole entity);", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }", "private Delete() {}", "private Delete() {}", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "@Override\n\tpublic void delete(List<User> entity) {\n\t\t\n\t}", "@Override\r\n\tpublic TypeModePaiement delete(TypeModePaiement entity) {\n\t\treturn null;\r\n\t}", "@Transactional\n\t@Override\n\tpublic void delete(T entity) {\n\t\tregistroDao.delete((Registro) entity);\n\t\t\n\t}", "public void delete() {\n\n\t}", "@Override\r\n\tpublic void delete(Country entity) {\r\n\t\tif (entity == null) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treadMapFromFile();\r\n\t\t\tthis.daoMap.remove(entity.getName());\r\n\t\t\twriteMapToFile();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void delete(Plant plant) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "public void deleteDistrict(District District);", "int deleteByExample(DebtsRecordEntityExample example);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete TypeVehicule : {}\", id);\n typeVehiculeRepository.deleteById(id);\n }", "public int delete(o dto);", "public int deleteOrderRequest(OrderEntity orderEntity);" ]
[ "0.79248154", "0.7340036", "0.7323958", "0.72804606", "0.72687334", "0.70920384", "0.70402265", "0.70402265", "0.70075935", "0.6966936", "0.69477105", "0.69433093", "0.6937131", "0.6935766", "0.689265", "0.68900585", "0.6880546", "0.68791574", "0.6870645", "0.6870645", "0.68596417", "0.68371046", "0.68137926", "0.67239106", "0.6714442", "0.66937625", "0.664712", "0.664077", "0.6621094", "0.66036797", "0.6589362", "0.6580643", "0.6559308", "0.6551655", "0.6536098", "0.65346545", "0.65346545", "0.6533414", "0.6521061", "0.6503956", "0.6502986", "0.65025616", "0.6500592", "0.6457565", "0.64458334", "0.64356476", "0.64132977", "0.6406194", "0.6405691", "0.6383328", "0.63820136", "0.63716215", "0.63610476", "0.63534164", "0.6352481", "0.63380784", "0.63307005", "0.6315647", "0.6309366", "0.6300197", "0.6291666", "0.628372", "0.6269264", "0.6264593", "0.6261037", "0.62565595", "0.62349015", "0.6233422", "0.6229714", "0.6219749", "0.6217213", "0.62139493", "0.61986655", "0.6192224", "0.6189555", "0.6186562", "0.6185093", "0.6184646", "0.617897", "0.6178653", "0.61736745", "0.61732155", "0.61732155", "0.61410886", "0.61404", "0.61404", "0.61404", "0.61404", "0.61404", "0.61369234", "0.61368203", "0.61355186", "0.6134483", "0.6133285", "0.61310816", "0.6129967", "0.6129726", "0.6126898", "0.6118482", "0.6117827", "0.6113131" ]
0.0
-1
FIND FLIGHT BY NAME find all entities by parameter
List<Flight> findFlightByName(String name) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void searchByName(String name) {\n\t\tint i=0;\n\t\t\tfor (Entity entity : Processing.nodeSet) {\n\t\t\t\t\n\t\t\t\t/* if Entity is person */\n\t\t\t\tif(entity instanceof Person) {\n\t\t\t\t\tPerson person=(Person)entity;\n\t\t\t\t\tif(person.getName().equalsIgnoreCase(name)){\n\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\tSystem.out.println(\" name : \" + person.getName());\n\t\t\t\t\tSystem.out.println(\" phone : \" + person.getPhone());\n\t\t\t\t\tSystem.out.println(\" email : \" + person.getEmail());\n\t\t\t\t\tSystem.out.println(\" school : \" + person.getSchool());\n\t\t\t\t\tSystem.out.println(\" college : \" + person.getCollege() + \"\\n\");\n\t\t\t\t\t\tfor(String interest:person.getInterests()){\n\t\t\t\t\t\t\tSystem.out.println(\" interest in : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* If entity is organization */\n\t\t\t\telse {\n\t\t\t\t\tOrganization organization=(Organization)entity;\n\t\t\t\t\tif(organization.getName().equalsIgnoreCase(name)){\n\t\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\t\tSystem.out.println(\" name : \" + organization.getName());\n\t\t\t\t\t\tSystem.out.println(\" phone : \" + organization.getPhone());\n\t\t\t\t\t\tSystem.out.println(\" email : \" + organization.getEmail());\n\t\t\t\t\t\tfor(String interest:organization.getCourses()){\n\t\t\t\t\t\t\tSystem.out.println(\" courses are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getFaculty()){\n\t\t\t\t\t\t\tSystem.out.println(\" Faculties are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getPlacements()){\n\t\t\t\t\t\t\tSystem.out.println(\" Placements are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(i>=Processing.nodeSet.size()) {//if no such name exist\n\t\t\t\tSystem.out.println(name+\" does not exist\");\n\t\t\t}\n\t}", "List<Person> findByIdAndName(int id,String name);", "public void test_findByNamedOfQuery() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByNamedOfQuery(FIND_ALL_PERSON);\r\n\t\tassertNotNull(personList);\r\n\t\tassertEquals(ALL_PERSON_COUNT, personList.size());\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME_EXT, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 3:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME, getParamMap(1));\r\n\t\tassertForFindGoogle(personList);\r\n\t}", "List<Goods> findByName(String name);", "private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }", "public List<EntityPropertyLocation> find();", "@Query(\"name = ?\")\n List<PersonDocument> findByName(String name);", "public List<T> findByName(String text) {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u where u.name like :name\");\n\t q.setParameter(\"name\", \"%\" + text + \"%\");\n\t return q.getResultList();\n\t }", "@Query(\"select i from Product i where name=:name\")\r\n public List<Product> findByQuery(@Param(\"name\")String netto);", "List<Product> findByName(String name);", "List<Item> findByName(String name);", "public interface ActorRepository extends Neo4jRepository<Actor, Long> {\n\n\t\n\t@Query(\"MATCH (p:Actor) WHERE lower(p.name) CONTAINS lower($name) or lower(p.fullName) CONTAINS lower($name) RETURN p ORDER BY p.name\")\n\tCollection<Actor> findByNameLike(@Param(\"name\") String name);\n\n\t\n\t\n}", "List<Cloth> findByNameContaining(String name);", "Object find(String name);", "private static Person findPersonByNameWithAllDogs(EntityManager em, String name) {\n\t\tQuery query = em.createQuery(\"select p from Person p join fetch p.dogs where p.name = :name\", Person.class);\n\t\tquery.setParameter(\"name\", name);\n\t\treturn (Person) query.getSingleResult();\n\t}", "List<Employee> findByName(String name);", "Expertise findByName(String name);", "Page<Product> findByNameContaining(@RequestParam(\"name\") String name, Pageable pageable);", "public List<Product> findByNameIs(String name);", "public abstract T findByName(String name) ;", "List<Employee> findByNameAndLocation(String name, String location);", "List<Member> findByName(String name);", "public abstract List<T> findEntities(int pFirstRow, int pNumberOfRows);", "AirlineEntity findByName(String name);", "Heaver findByName(String name);", "TourPackage findByName(@Param(\"name\") String name);", "public abstract List<Technique> findTechniqueByName(String technique);", "List<EmployeeDTO> findByName(String name);", "@Override\r\n public List<Asset> findByKeyWord(Map<String, Object> params) {\n return assetDao.findByKeyWord(params);\r\n }", "List<T> searchByExample(T entity);", "List<DishDTO> findFirst5ByName(String name);", "List<T> findByCriteria(String eCriteria, Object... parameters);", "@Query(value = \"SELECT a \" + \n \"FROM artikel a \" + \n \"WHERE a.artikelId = :\" + ApiNames.ARTIKEL_ID,\n nativeQuery = false)\n //@formatter:on\n @EntityGraph(value = \"artikel.withChildren\", type = EntityGraphType.FETCH)\n Optional<Artikel> findByArtikelId(@Param(ApiNames.ARTIKEL_ID) String artikelId);", "@Override\n\tpublic Set<Person> getfindByNameContaining(String name) {\n\t\treturn null;\n\t}", "public List<T> searchByName(String name) throws DAOException {\n Helper.checkNullAndEmpty(name, \"name\");\n Helper.checkEntityManager(entityManager);\n\n String queryString = \"select e from \"\n + entityBeanType.getCanonicalName() + \" as e\"\n + \" where e.name = :name\" + \" and e.deleted = false\";\n\n try {\n return Helper.getEntities(\"name\", name, entityManager, queryString);\n } catch (Exception e) {\n throw new DAOException(\"Failed to search entities by name:\" + name + \".\", e);\n }\n }", "@Override\n\tpublic List<T> findByName(String name) {\n\t\treturn baseDaoImpl.findByName(name);\n\t}", "@Transactional\n\t@Override\n\tpublic List<Employee> getByName(String name) {\n\t\treturn entityManager.createQuery(\"Select e from Employee e where e.name like ?0\", Employee.class)\n\t\t\t\t.setParameter(0, \"%\"+name+\"%\").getResultList();\n\t\t\n\t\t\n\t}", "@Override\n public List<Person> findAllChildrenOf(String name) {\n return relations.stream()\n .filter(x -> x.getValue0().name.equals(\"John\")\n && x.getValue1() == Relationship.PARENT)\n .map(Triplet::getValue2)\n .collect(Collectors.toList());\n }", "List<Engine> selectByExample(EngineExample example);", "@Query(\"spouse.name = ?\")\n List<PersonDocument> findBySpouseName(String name);", "Iterable<Entry<K, V>> find(LegacyFindByCondition find);", "public <T extends DbObject> List<T> findBySomethingNamedPartial(Class<T> tClass, String column, String columnSomething, String name, EntityManager em, int startindex, int nbElements, boolean strictClass, EntityGraph<T> graph, boolean closeConnection) throws Exception\n\t{\n\t\tTypedQuery<T> query = em.createQuery(\"SELECT entity from \"+ tClass.getName() + \" as entity JOIN entity.\"+ column +\" as ent2 WHERE ent2.\"+ columnSomething +\"=:name \"+ ((strictClass) ? (\"AND TYPE(entity) = \"+ tClass.getName()) : \"\"), tClass);\n\t\tquery.setParameter(\"name\", name);\n\t\t\n\t\tif(graph!=null)\n\t\t\tquery.setHint(\"javax.persistence.loadgraph\", graph);\t\t\t\t//for loading sub class (class attribut using class).\t\t// methode 5 : https://thoughts-on-java.org/5-ways-to-initialize-lazy-relations-and-when-to-use-them/\n\t\t\n\t\tList<T> result = query.setFirstResult(startindex).setMaxResults(startindex + nbElements).getResultList();\n\t\t\n\t\tif(closeConnection)\n\t\t\tem.close();\n\t\n\t\treturn result;\n\t}", "<T extends ModelEntity> T findActualEntity( Class<T> entityClass, String name );", "public List<Resource> findByNameContaining(String nameFragment) {\n\t\tMap<String, Object> nameFilter = new HashMap<>();\n\t\tnameFilter.put(\"name\", new ValueParameter(\"%\" + nameFragment + \"%\"));\n\t\treturn this.filter(nameFilter);\n\t}", "public Service consultName(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",name));\r\n \treturn (Service)criteria.list().get(0);\r\n }", "@Query(\"name = ? and age = ?\")\n List<PersonDocument> findByNameAndAge(String name, Integer age);", "List<Employee> findAllByName(String name);", "Page<ActorModel> findByNameContaining(String name, Pageable pageable);", "List<TransportEntity> getAllEntityOfQuery();", "public List<MmathFighter> searchByName(String name) {\n String searchQuery = \"%\" + name + \"%\";\n\n String[] nameSplit = name.split(\" \");\n ExecutorService exec = Executors.newFixedThreadPool(nameSplit.length + 2);\n\n List<Future<List<MmathFighter>>> futures = new ArrayList<>();\n\n futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NAME.like(searchQuery))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)));\n\n futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NICKNAME.like(searchQuery))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)));\n\n if (nameSplit.length > 1) {\n futures.addAll(\n Stream.of(nameSplit)\n .map(s -> exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NAME.like(s))\n .or(FIGHTERS.NICKNAME.like(s))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)\n )).collect(Collectors.toList())\n );\n }\n return futures.stream()\n .flatMap(f -> {\n try {\n return f.get().stream();\n } catch (InterruptedException | ExecutionException e) {\n return null;\n }\n })\n .filter(s -> s != null)\n .filter(distinctByKey(MmathFighter::getSherdogUrl)).limit(10).collect(Collectors.toList());\n }", "public List<Entity> getEntitySearchResults(String type, String name, int limit) {\n\t\t//Type parameter will be one of -> {'Artist', 'Band', 'Label', 'Album', 'Track'}\n\t\tString URL = \"http://localhost:8081\" + type;\n\t\tSystem.out.println(\"Request made to: \" + URL);\n\t\tUriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(URL)\n\t\t\t\t.queryParam(\"name\", name)\n\t\t\t\t.queryParam(\"limit\", limit);\n\t\tUriComponents components = builder.build(false);\n\t\tURI uri = components.toUri();\n\t\tList<Entity> entities = restTemplate.getForObject(uri, List.class);\n\t\treturn entities;\n\t}", "public List<VictimEntity> findByFirstName(String name);", "Person findPerson(String name);", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "public Entity getEntity(String name) {\r\n\r\n for (int i = 0; i < entities.size(); i++) {\r\n if (name.equals(entities.get(i).nume)) {\r\n\r\n return entities.get(i);\r\n }\r\n }\r\n return null;\r\n }", "public void fetchByName(String name) {\n\t\trefgservice.fetchNodesByName(name, new SearchByNameCallback());\n\t\t\n\t}", "public <T extends DbObject, R extends DbObject> List<T> findNamedBySomething(Class<T> tClass, String column, String name, String columnR, R something, EntityManager em, boolean strictClass, EntityGraph<T> graph, boolean closeConnection) throws Exception\n\t\t{\n\t\t\tTypedQuery<T> query = em.createQuery(\"SELECT entity from \"+ tClass.getName() + \" as entity JOIN entity.\"+ columnR +\" as ent2 WHERE entity.\"+ column +\"=:name AND ent2=:something \"+ ((strictClass) ? (\"AND TYPE(entity) = \"+ tClass.getName()) : \"\"), tClass);\n\t\t\tquery.setParameter(\"name\", name);\n\t\t\tquery.setParameter(\"something\", something);\n\t\t\t\n\t\t\tif(graph!=null)\n\t\t\t\tquery.setHint(\"javax.persistence.loadgraph\", graph);\t\t\t\t//for loading sub class (class attribut using class).\t\t// methode 5 : https://thoughts-on-java.org/5-ways-to-initialize-lazy-relations-and-when-to-use-them/\n\t\t\t\n\t\t\tList<T> result = query.getResultList();\n\t\t\t\n\t\t\tif(closeConnection)\n\t\t\t\tem.close();\n\t\t\n\t\t\treturn result;\n\t\t}", "@Override\r\n\tpublic T findEntity(String hql, List<Object> params) throws Exception {\n\t\tList<T> list = this.find(hql, params);\r\n\t\tif (list != null && list.size() > 0) {\r\n\t\t\treturn list.get(0);\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "ArrayList<String> findLinkedEntity(String node) throws SQLException;", "public List<Service> list(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",\"%\"+name+\"%\"));\r\n \treturn criteria.list();\r\n }", "public static void main(String[] args) {\n\r\n\t\tEntityManager em = PersistanceManager.INSTANCE.getEntityManager();\r\n\t\tSystem.out.println(\"Print ALL\");\r\n\t\tQuery query = em.createQuery(\"FROM Employee e\");\r\n\t\tArrayList<Employee> result = (ArrayList<Employee>) query.getResultList();\r\n\t\tfor (Employee current : result)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print id = 3\");\r\n\t\tQuery query1 = em.createQuery(\"FROM Employee e where e.id=3\");\r\n\t\tArrayList<Employee> result1 = (ArrayList<Employee>) query1.getResultList();\r\n\t\tfor (Employee current : result1)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print Named Query \");\r\n\t\tArrayList<Employee> result2 = (ArrayList<Employee>) em.createNamedQuery(\"Employee.searchAll\").setParameter(\"empName\", \"D%\")\r\n\t\t\t\t.getResultList();\r\n\t\tfor (Employee current : result2)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t}", "public Tipo[] findByName(String nombre) throws TipoDaoException;", "List<E> queryAll(String namedQuery);", "List<Map<String, Object>> searchIngredient(String name);", "public List findByNamedQuery(String queryName);", "public FoodEntity getFoodByRatingAndprice(int rating , int price);", "public List<Product> findByName(String name, int index) {\r\n return em.createQuery(\"SELECT p FROM Product p \"\r\n + \"WHERE p.name IS NOT NULL AND p.name \"\r\n + \"LIKE :name ORDER BY p.price\")\r\n .setParameter(\"name\", \"%\" + name + \"%\")\r\n .setFirstResult(index)\r\n .setMaxResults(3)\r\n .getResultList();\r\n }", "public Perfil findByName(PerfilName perfilName);", "public List<Record> executeNativeFinder(String queryName, Object context);", "Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "PersonFinder whereNameContains(String fragment);", "public List<Usuario> findWhere(Map<String, String> params){\n try {\n QueryBuilder<Usuario, Integer> queryBuilder = dao.queryBuilder();\n Where<Usuario, Integer> where = queryBuilder.where();\n\n for(Map.Entry<String, String> param: params.entrySet()) {\n where.eq(param.getKey(), param.getValue());\n }\n\n where.and(params.size());\n PreparedQuery<Usuario> preparedQuery = queryBuilder.prepare();\n return dao.query(preparedQuery);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%'))\")\n public Page<VwBancos> findVwBancosSpecificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, Pageable pageable);", "public PageBean<Match> find(String name) {\n\t\tif(name==null||\"\".equals(name.trim())){\r\n\t\t\treturn matchDao.find(\"from Match\");\r\n\t\t}else{\r\n\t\t\treturn matchDao.find(\"from Match where nickname like ? or userName like ?\",\r\n\t\t\t\t\tnew Object[]{\"%\"+name+\"%\",\"%\"+name+\"%\"});\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic Set<Person> getfindByName(String name) {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\n public List<CharacterDto> getCharacters(Map< String, Object> filterBy) {\n List<CharacterModel> characterBD;\n characterBD = new ArrayList();\n\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery criteriaQuery = criteriaBuilder.createQuery();\n Root<CharacterModel> character = criteriaQuery.from(CharacterModel.class);\n\n //Constructing list of parameters\n List<Predicate> predicates;\n predicates = new ArrayList();\n\n if (filterBy.containsKey(\"idcharacter\")) {\n criteriaQuery.select(character)\n .where(criteriaBuilder.equal(character.get(\"idCharacter\"), filterBy.get(\"idcharacter\")));\n\n characterBD.add((CharacterModel) entityManager.createQuery(criteriaQuery).getSingleResult());\n\n List<CharacterDto> characterDto;\n characterDto = new ArrayList();\n\n characterBD.forEach(characterEnt -> {\n characterDto.add(CharacterDto.getImagenNombre(characterEnt));\n });\n\n return characterDto;\n } else {\n if (filterBy.containsKey(\"nombreCharacter\")) {\n predicates.add(criteriaBuilder.equal(character.get(\"nombre\"), filterBy.get(\"nombreCharacter\")));\n\n }\n\n if (filterBy.containsKey(\"age\")) {\n predicates.add(criteriaBuilder.equal(character.get(\"edad\"), filterBy.get(\"age\")));\n }\n\n System.out.println(\"PREDICATES\" + predicates);\n\n criteriaQuery.select(character)\n .where(predicates.toArray(new Predicate[]{}));\n\n characterBD = entityManager.createQuery(criteriaQuery).getResultList();\n\n List<CharacterDto> characterDto = new ArrayList();\n\n characterBD.forEach(characterEnt -> {\n characterDto.add(CharacterDto.getImagenNombre(characterEnt));\n });\n\n return characterDto;\n }\n }", "List<WebCrawlerData> retrieveAllEntity();", "@Override\r\n\tpublic List<T> find(String hql, Object[] param) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (param != null && param.length > 0) {\r\n\t\t\tfor (int i = 0; i < param.length; i++) {\r\n\t\t\t\tq.setParameter(i, param[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "List<T> findAll(ListParams params);", "@Override\r\n\tpublic List<T> find(String hql, List<Object> params) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (params != null && params.size() > 0) {\r\n\t\t\tfor (int i = 0; i < params.size(); i++) {\r\n\t\t\t\tq.setParameter(i, params.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}", "public ArrayList<EntityAisle> getByName(String nameWanted ){\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n ArrayList<EntityAisle> AisleList = new ArrayList<>();\n\n Cursor cursor = null;\n try {\n\n cursor = sqLiteDatabase.query(ConfigDAO.TABLE_AISLE,\n null, ConfigDAO.COLUMN_RAYON_NAME+\" LIKE '\" + nameWanted+\"'\" ,\n null, null, null, null, null);\n\n /**\n // If you want to execute raw query then uncomment below 2 lines. And comment out above line.\n\n String SELECT_QUERY = String.format(\"SELECT %s, %s, %s, %s, %s FROM %s\", Config.COLUMN_Employee_ID, Config.COLUMN_Employee_NAME, Config.COLUMN_Employee_REGISTRATION, Config.COLUMN_Employee_EMAIL, Config.COLUMN_Employee_PHONE, Config.TABLE_Employee);\n cursor = sqLiteDatabase.rawQuery(SELECT_QUERY, null);\n */\n\n if(cursor!=null)\n if(cursor.moveToFirst()){\n\n do {\n int id = cursor.getInt(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_ID));\n String name = cursor.getString(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_NAME));\n\n\n AisleList.add(new EntityAisle(id, name));\n } while (cursor.moveToNext());\n\n return AisleList;\n }\n } catch (Exception e){\n Log.i(TAG, \"getAllAisle: \"+e.getMessage());\n Toast.makeText(this.mExecutionContext, \"Operation failed\", Toast.LENGTH_SHORT).show();\n } finally {\n if(cursor!=null)\n cursor.close();\n sqLiteDatabase.close();\n }\n\n return AisleList;\n }", "ArrayList<E> getWhere(String parameterName, String parameterValue, E dummyObject) throws DatabaseNotAccessibleException, DatabaseObjectNotFoundException, NoSuchFieldException;", "@Override\r\n\tpublic PageData<Foodf> queryFoodss(int page, int pageSize, String keyWords,int bossId) {\n\t\tString sql=\"select food.id,food.foodName,food.price,food.discount,food.num,food.salNum,food.des,food.logo,businesses.busiName,businesses.address,food.state from food,businesses where food.busId=businesses.id and businesses.bossId = ? and foodName like ?\";\r\n\t\tPageData<Foodf> pd= BaseDao.getPage(sql, page, pageSize,Foodf.class,bossId,\"%\"+keyWords+\"%\");\r\n\t\treturn pd;\r\n\t}", "@Override\n\tpublic List<T> find(String hql, Map<String, Object> params, int page, int rows) {\n\t\tQuery q = hibernateTemplate.getSessionFactory().getCurrentSession().createQuery(hql);\n\t\tif (params != null && !params.isEmpty()) {\n\t\t\tfor (String key : params.keySet()) {\n\t\t\t\tq.setParameter(key, params.get(key));\n\t\t\t}\n\t\t}\n\t\treturn q.setFirstResult((page - 1) * rows).setMaxResults(rows).list();\n\t}", "Getter<ENTITY, FK> finder();", "@GET\n @JWTTokenNeeded\n @Produces({MediaType.APPLICATION_JSON})\n public List<EscenarioDTO> find(\n @QueryParam(\"offset\") int offset,\n @QueryParam(\"limit\") int limit,\n @QueryParam(\"orderby\") String orderby,\n @QueryParam(\"name\") String name) {\n logger.log(Level.INFO, \"offset:{0}limit:{1}orderby:{2}\", new Object[]{offset, limit, orderby});\n \n List<Escenario> lst = null;\n if(name == null) {\n \tlst = managerDAO.findRange(new int[]{offset, limit});\n }else {\n \tlst = managerDAO.findByName(name);\n }\n \n List<PadreDTO> lstDTO = lst.stream().map(item -> item.toDTO()).distinct().sorted(comparing(EscenarioDTO::getId)).collect(toList());\n\n lstDTO = UtilListas.ordenarLista(lstDTO, orderby);\n List<EscenarioDTO> lstFinal = (List<EscenarioDTO>) (List<?>) lstDTO;\n return lstFinal;\n }", "ArrayList<E> getWhere(String parameterName, int parameterValue, E dummyObject) throws DatabaseNotAccessibleException, DatabaseObjectNotFoundException, NoSuchFieldException;", "@Override\n // String land, String[] kommune, String[] postnr, String[] lokalitet, String[] vej\n public Collection<KommuneEntity> search(SearchParameters parameters) {\n StringList hql = new StringList();\n StringList join = new StringList();\n ConditionList conditions = new ConditionList(ConditionList.Operator.AND);\n\n hql.append(\"select distinct \"+KommuneEntity.databaseKey+\" from KommuneEntity as \"+KommuneEntity.databaseKey);\n join.setPrefix(\"join \");\n\n conditions.addCondition(KommuneEntity.landCondition(parameters));\n\n conditions.addCondition(KommuneEntity.kommuneCondition(parameters));\n if (parameters.has(Key.LOKALITET)) {\n join.append(KommuneEntity.joinLokalitet());\n conditions.addCondition(LokalitetEntity.lokalitetCondition(parameters));\n }\n if (parameters.has(Key.POST)) {\n Pair<String[],Condition> post = KommuneEntity.joinPost();\n join.append(post.getLeft());\n conditions.addCondition(post.getRight());\n conditions.addCondition(PostNummerEntity.postCondition(parameters));\n }\n if (parameters.has(Key.VEJ)) {\n join.append(KommuneEntity.joinVej());\n conditions.addCondition(VejstykkeEntity.vejCondition(parameters));\n }\n if (parameters.hasGlobalCondition()) {\n // Add any further restrictions from the global condition\n conditions.addCondition(parameters.getGlobalCondition().whereField(\"kommune\"));\n }\n\n // our conditions list should now be complete\n\n if (conditions.hasRequiredJoin()) {\n join.append(conditions.getRequiredJoin());\n }\n\n // our join list should now be complete\n\n if (join.size()>0) {\n hql.append(join.join(\" \"));\n }\n if (conditions.size() > 0) {\n hql.append(\"where\");\n hql.append(conditions.getWhere());\n }\n // Append order clause\n hql.append(\"order by \"+KommuneEntity.databaseKey+\".kode\");\n\n return this.query(hql, conditions, parameters.getGlobalCondition());\n }", "public <T extends DbObject> List<T> findNamed(Class<T> tClass, String column, String name, EntityManager em, boolean strictClass, EntityGraph<T> graph, boolean closeConnection) throws Exception\n\t{\n\t\tTypedQuery<T> query = em.createQuery(\"SELECT entity from \"+ tClass.getName() + \" as entity WHERE \"+ column +\"=:name \"+ ((strictClass) ? (\"AND TYPE(entity) = \"+ tClass.getName()) : \"\"), tClass);\n\t\tquery.setParameter(\"name\", name);\n\t\t\n\t\tif(graph!=null)\n\t\t\tquery.setHint(\"javax.persistence.loadgraph\", graph);\t\t\t\t//for loading sub class (class attribut using class).\t\t// methode 5 : https://thoughts-on-java.org/5-ways-to-initialize-lazy-relations-and-when-to-use-them/\n\t\t\n\t\tList<T> result = query.getResultList();\n\t\t\n\t\tif(closeConnection)\n\t\t\tem.close();\n\t\n\t\treturn result;\n\t}", "@RequestMapping(\"/search\")\n public Collection<Employee> findByName(@RequestParam(\"name\") String name){\n return employeeService.findByName(name);\n }", "List<Label> findAllByKey(String key);", "public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }", "public List<T> findByNamedQuery(final String queryName, Object... params) {\n\t\tjavax.persistence.Query query = em.createNamedQuery(queryName);\n\n\t\tfor (int i = 0; i < params.length; i++) {\n\t\t\tquery.setParameter(i + 1, params[i]);\n\t\t}\n\t\t\n\t\tfinal List<T> result = (List<T>) query.getResultList();\n\t\treturn result;\n\t}", "Car findByName(String name);", "public List findByNamedQuery(String queryName, String[] paramNames, Object[] paramValues);", "List<Whisky> findWhiskiesByAgeAndDistilleryNamed(String name, int age);", "public static List<Book> searchEBookByName(String name) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByName\").setString(\"name\", name);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "public List findByExample(Object example);", "public List<ElementSet> findByEngine(Engine engine);", "List<Employee> findByNameContaining(String keyword, Sort sort);" ]
[ "0.62145114", "0.6072731", "0.5972218", "0.59604514", "0.59448075", "0.59387434", "0.58872294", "0.5885037", "0.5844014", "0.58421385", "0.5800824", "0.5785897", "0.57756364", "0.57592374", "0.57538503", "0.57458246", "0.5740147", "0.57377756", "0.57375836", "0.57329834", "0.5728144", "0.5723198", "0.5720068", "0.5717338", "0.5685008", "0.5677604", "0.5672074", "0.5668745", "0.56471014", "0.56469345", "0.56385624", "0.56323516", "0.5631274", "0.5614786", "0.5610089", "0.55948234", "0.5593082", "0.55898404", "0.5582777", "0.5578504", "0.5565527", "0.5549268", "0.55338705", "0.5529813", "0.55268604", "0.55206895", "0.55183095", "0.5513342", "0.5509729", "0.55035883", "0.5473004", "0.5464311", "0.54547465", "0.54541236", "0.5447658", "0.5443891", "0.5438435", "0.54219836", "0.54218435", "0.5414387", "0.5407476", "0.54044825", "0.5403049", "0.5399671", "0.5397477", "0.53957796", "0.5391761", "0.5388827", "0.53861845", "0.53798527", "0.5375302", "0.53750396", "0.53715855", "0.5362607", "0.53582674", "0.534656", "0.5337456", "0.5336269", "0.53291374", "0.5327063", "0.53247917", "0.531896", "0.5315242", "0.53152263", "0.5311935", "0.5308159", "0.5301498", "0.5299292", "0.52974945", "0.529118", "0.5284867", "0.5278617", "0.52783024", "0.52770317", "0.52735853", "0.52726287", "0.52720517", "0.5271531", "0.52626604", "0.5260706" ]
0.5477845
50