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 when the activity is starting. Restores the activity state.
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Crashlytics.start(this); if (savedInstanceState != null) { mIsInResolution = savedInstanceState.getBoolean(KEY_IN_RESOLUTION, false); } setContentView(R.layout.activity_main); getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, BirdsFragment.newInstance(), BirdsFragment.TAG).commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override()\n protected void onCreate(final Bundle state)\n {\n logEnter(LOG_TAG, \"onCreate\", state);\n\n super.onCreate(state);\n\n final Intent i = getIntent();\n final Bundle extras = i.getExtras();\n restoreState(extras);\n }", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\t// super.onRestoreInstanceState(outState);\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"++ ON START ++\");\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n activeActivity();\n this.finish();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (savedInstanceState != null) {\n // Restore Instance State here\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t// Override how this activity is animated into view\n // The new activity is pulled in from the left and the current activity is kept still\n // This has to be called before onCreate\n overridePendingTransition(R.anim.pull_in_from_left, R.anim.hold);\n\t}", "@Override public void onCreate() {\n \tLog.v(TAG, \"onCreate\");\n \tmState = State.UNINITIALIZED;\n }", "@Override\n\tprotected void onResume() {\n\n\t\tsuper.onResume();\n\t\tApplicationStatus.activityResumed();\n\t}", "@Override\n protected void onCreate(Bundle pSavedInstanceState) {\n\n if (activitiesLaunched.incrementAndGet() > 1) { finish(); }\n\n super.onCreate(pSavedInstanceState);\n\n serviceIntent = new Intent(this, TallyDeviceService.class);\n\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.d(TAG, \"onStart() - ThreeActivity - Activity становиться видимым\");\n\t}", "private void setupActivityState()\n {\n SyncDataService.startActionFetchAll(getApplicationContext());\n\n hideFAB();\n this.tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n public void onTabReselected(TabLayout.Tab paramTab) {\n }\n\n public void onTabSelected(TabLayout.Tab paramTab) {\n viewPager.setCurrentItem(paramTab.getPosition());\n switch (paramTab.getPosition()) {\n default:\n return;\n case 0:\n hideFAB();\n return;\n case 1:\n setFloatingActionButtonForClients();\n return;\n case 2:\n setFloatingActionButtonForProducts();\n return;\n }\n\n }\n\n public void onTabUnselected(TabLayout.Tab paramTab) {\n }\n });\n }", "public void onStart() {\n\t\tsuper.onStart();\n\t\tXMLManager.verifyXMLIntegrity(this);\n\t\trefreshActivityContents();\n\t}", "@Override\n public void onResume() {\n super.onResume();\n model.setActivityID(0);\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(TAG, \"onCreate\");\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tStateAddress.currentActivity = this;\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\ttActivityDisplay.setText(\"on Start called\");\n\t}", "@Override\n public void onActivityStarted(@NonNull final Activity activity) {\n sActivity.set(activity);\n\n if (isAccessToLocationAllowed() && mStartStopCounter.incrementAndGet() == 1)\n\n addTask(ActivityLifecycle.STARTED, new Runnable() {\n @Override\n public void run() {\n final LocationClient locationClient = getLocationClient();\n if (locationClient != null && mStartStopCounter.get() == 1) {\n\n CoreLogger.log(\"LocationClient.onStart()\");\n locationClient.onStart(activity);\n }\n }\n });\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tStoreActivity.getInstance().addActivity(this);\n\t}", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tm_Activity = this;\n\t\tm_Handler = new Handler();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\thandleIntent(getIntent());\r\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) \n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tm_Activity = this;\n\t\tm_Handler = new Handler();\n\t}", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n setRetainInstance(true);\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(TAG, \"onStart() called\");\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n protected void onStart() {\n super.onStart();\n\n Log.d(TAG, \"now running: onStart\");\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "private void initializeActivity() {\n initializeActionbar();\n initializeActionDrawerToggle();\n setUpNavigationDrawer();\n setStartFragment();\n setFloatingButtonListener();\n setUpShareAppListener();\n hideWindowSoftKeyboard();\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onResume\");\r\n\r\n\t}", "@Override\n\tpublic void onActivated() {\n\t\tinit();\n\t}", "protected void onResume ()\n\t{\n\t\tsuper.onResume ();\n\t}", "@Override\n\tprotected void onResume() {\n\t\t\n\t\tinit();\n\t\tsuper.onResume();\n\n\t}", "private void initiateActivity() {\r\n\t\tif (application == null) {\r\n\t\t\tthis.application = SmartApplication.REF_SMART_APPLICATION;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tif (application.attachedCrashHandler)\r\n\t\t\t\tCrashReportHandler.attach(this);\r\n\t\t} catch (Throwable e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tfinish();\r\n\t\t}\r\n\r\n\t\tif (setLayoutView() != null) {\r\n\t\t\tsetContentView(setLayoutView());\r\n\t\t} else {\r\n\t\t\tsetContentView(setLayoutId());\r\n\t\t}\r\n\r\n\t}", "@Override\n protected void onResume() {\n Log.i(\"G53MDP\", \"Main onResume\");\n super.onResume();\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "public void onResume() {\n super.onResume();\n }", "public void onResume() {\n super.onResume();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tcontext = this;\n\t\tmLocalBcMgr = LocalBroadcastManager.getInstance(this);\n\t\tTruMobiTimerClass.userInteractedTrigger();\n\t\tnew SharedPreferences(this).edit()\n\t\t\t\t.putBoolean(\"appinBG\", false).commit(); // PIN_SCREEN_ISSUE\n\t}", "protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n init();\n decideScreen();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(tag, \"The onStart() event\");\n }", "public void onStart() {\n super.onStart();\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.e(TAG, \"onStart\");\n }", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tmStart = false;\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash_screen);\n Intent intent = new Intent(getApplicationContext(),InitialSetupActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n protected void onStart() {\n super.onStart();\n xHelper.log(\"goapp\",\"BoardActivity onStart\");\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\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 void onStart() {\n super.onStart();\n checkUserStatus();\n if (isLoggedIn()) {\n Intent intent = new Intent(this, HomeActivity.class);\n intent.addFlags(65536);\n startActivity(intent);\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.d(TAG, \"onResume() called\");\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "@Override\r\n protected void onResume() {\r\n Log.i(TAG, \"onResume()\");\r\n \r\n super.onResume();\r\n }", "@Override\r\n public void onStart ()\r\n {\r\n \tLog.d(TAG,\"onStart start\");\r\n\t \tsuper.onStart (); \r\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.d(TAG, \"onResume() - ThreeActivity - Activity получает фокус (состояние Resumed)\");\n\t}", "@Override\r\n public void onStart() {\n super.onStart();\r\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\n public void onResume() {\n super.onResume();\n setUpScreen();\n }", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(LOG_TAG,\"onStart\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n SharedPreferences prefs = getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);\n boolean previouslyStarted= prefs.getBoolean(SETSUMMER,false);\n if(!previouslyStarted){\n startActivity(new Intent(HomeScreen.this,FirstLaunch.class));\n }\n Log.i(LOGTAG,\"And we are off and running\");\n\n setContentView(R.layout.home_screen);\n Button addPlant = (Button)findViewById(R.id.addPlantbtn);\n if (addPlant != null)\n addPlant.setOnClickListener(this);\n\n if (savedInstanceState == null) {\n getFragmentManager().beginTransaction()\n .replace(R.id.plantListView, new PlantListFragment())\n .commit();\n }\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n\n super.onResume();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n // makes the status bar transparent\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n initUI();\n\n // checks if user has already opened the app\n if (!SharedPreferenceUtil.getIsOpen(getApplicationContext())) {\n beginAnimationOnFirstLaunch();\n\n } else {\n tvQuote.setVisibility(View.INVISIBLE);\n tvBeginButton.setVisibility(View.INVISIBLE);\n\n // delays proceeding to NavActivity by DELAY_MILLIS milliseconds\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n goToNavActivity();\n }\n }, DELAY_MILLIS);\n\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onStart\");\r\n\t}", "public void onResume() {\n super.onResume();\n LogAgentHelper.onActive();\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}" ]
[ "0.7342364", "0.7311034", "0.70562875", "0.70133734", "0.6958199", "0.6958199", "0.6958199", "0.6958199", "0.6833111", "0.6824633", "0.6812315", "0.6796826", "0.6717847", "0.67139095", "0.67059225", "0.66739357", "0.6660357", "0.66552657", "0.6651366", "0.66337085", "0.6629898", "0.6606908", "0.6587475", "0.65762067", "0.65665174", "0.6533185", "0.6533185", "0.6533185", "0.6533185", "0.6533185", "0.6533185", "0.6529296", "0.65025985", "0.6499685", "0.64968026", "0.64923775", "0.64923775", "0.6487338", "0.6471096", "0.6470796", "0.6466766", "0.64329135", "0.64329135", "0.6431008", "0.6425565", "0.64175713", "0.64154756", "0.6412039", "0.63985467", "0.6395382", "0.6395382", "0.63924754", "0.63924754", "0.638421", "0.63813084", "0.6373433", "0.6372442", "0.6372442", "0.6367277", "0.6366555", "0.63633126", "0.6353157", "0.63416505", "0.63355345", "0.63345", "0.6331812", "0.6328361", "0.6318476", "0.6318399", "0.6318399", "0.6313647", "0.63098645", "0.63069737", "0.63019913", "0.63007206", "0.63007206", "0.63007206", "0.63007206", "0.63007206", "0.63007206", "0.63007206", "0.63007206", "0.63007206", "0.63007206", "0.62981385", "0.6296002", "0.62848866", "0.62846106", "0.62816715", "0.6279791", "0.6279791", "0.6277874", "0.6277874", "0.6277874", "0.6277874", "0.6276188", "0.6274168", "0.6271729", "0.6269517", "0.62658596", "0.62641805" ]
0.0
-1
Called when activity gets invisible. Connection to Play Services needs to be disconnected as soon as an activity is invisible.
@Override protected void onStop() { if (mGoogleApiClient != null) { mGoogleApiClient.disconnect(); } if( mLocationClient != null ) mLocationClient.disconnect(); super.onStop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onInvisible() {\n\n\t}", "@Override\n public void disconnect() {\n getMvpView().showLoading();\n getDataManager().setSetupStatus(false);\n getDataManager().setIpAddress(\"\");\n getMvpView().setIpDetails(\"\", \"Disconnected\");\n\n new Handler().postDelayed(() -> {\n getMvpView().hideLoading();\n getMvpView().toSetupActivity();\n }, 1000);\n }", "@Override\n\tprotected void onPause() {\n\n\t\tactivityVisible = false;\n\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\tLocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(testHarnessUIController);\n\t\t}\n\t\tsuper.onPause();\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\tToast.makeText(context, \"Disconnected. Please re-connect.\",Toast.LENGTH_SHORT).show();\n\t}", "public void onDisconnected() {\r\n // Display the connection status\r\n Toast.makeText(this, \"Disconnected. Please re-connect.\",\r\n Toast.LENGTH_SHORT).show();\r\n }", "public void onPause() {\n super.onPause();\n nfcAdapter.disableForegroundDispatch(this);\n }", "@Override\n protected void onPause() {\n super.onPause();\n if (nfcAdapter != null) {\n nfcAdapter.disableForegroundDispatch(this);\n }\n }", "public void onDisconnected() {\n\n }", "public void onDisconnected() {\n\n }", "void onDisconnected();", "public void onStop() {\n super.onStop();\n ApplicationStateMonitor.getInstance().activityStopped();\n }", "public void onDisconnected() {\n\t\t\r\n\t}", "@Override\n\tpublic void hide() {\n\t\tGdx.app.log(\"GameScreen\", \"Hidden\");\n\n\t}", "public void onServiceDisconnected(ComponentName className) {\n \tmServiceMessenger = null;\r\n setIsBound(false);\r\n }", "@Override\n protected void onPause() {\n handler.removeCallbacks(runnable); //stop handler when activity not visible\n super.onPause();\n }", "public void onServiceDisconnected(ComponentName className) {\n\t mBoundAutopilotService = null;\n\t //mCallbackText.setText(\"Disconnected.\");\n\t }", "@Override\n public void onPause() {\n Utility.stopForegroundDispatch(this);\n Utility.stopConnectivityCheck();\n super.onPause();\n }", "public void onCustomViewHidden() {\n mTimer.cancel();\n mTimer = null;\n if (mVideoView.isPlaying()) {\n mVideoView.stopPlayback();\n }\n if (isVideoSelfEnded)\n mCurrentProxy.dispatchOnEnded();\n else\n mCurrentProxy.dispatchOnPaused();\n\n // Re enable plugin views.\n mCurrentProxy.getWebView().getViewManager().showAll();\n\n isVideoSelfEnded = false;\n mCurrentProxy = null;\n mLayout.removeView(mVideoView);\n mVideoView = null;\n if (mProgressView != null) {\n mLayout.removeView(mProgressView);\n mProgressView = null;\n }\n mLayout = null;\n }", "public void onServiceDisconnected(ComponentName className) {\n \timService = null;\r\n \r\n }", "@Override\r\n protected void onPause() {\n if (connectivityRegistered) {\r\n // If it has, unregister the listener\r\n unregisterConnectivityListener();\r\n }\r\n super.onPause();\r\n }", "@Override\n public void gattDisconnected() {\n mConnected = false;\n updateConnectionState(R.string.disconnected);\n mDataField.setText(R.string.no_data);\n getActivity().invalidateOptionsMenu();\n sCapSwitch.setChecked(false);\n sCapSwitch.setEnabled(false);\n }", "@Override public void onDisconnected() {\n }", "private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }", "@Override\n\tpublic void onDisconnected() {\n\t\t// Display the connection status\n\t\tToast.makeText(this, \"Disconnected. Please re-connect.\", Toast.LENGTH_SHORT).show();\n\t}", "@Override\n protected void onWindowVisibilityChanged(int visibility) {\n super.onWindowVisibilityChanged(visibility);\n switch (visibility) {\n case View.GONE:\n break;\n case View.INVISIBLE:\n break;\n case View.VISIBLE:\n break;\n }\n }", "@Override\n protected void onPause() {\n super.onPause();\n active = false;\n }", "@Override\n protected void onPause() {\n super.onPause();\n active = false;\n }", "@Override\n\tpublic void hide() {\n\t\tGdx.app.log(\"GameScreen\", \"hide called\"); \n\t}", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tmBoundService = null;\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service disconnected.\", Toast.LENGTH_SHORT).show();\r\n\t\t}", "@Override\n\t\t\tpublic void onShow(DialogInterface dialog) {\n\t\t\t\tsetActivityInvisible();\n\t\t\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n mBound = false;\n }", "public void onServiceDisconnected(ComponentName className) {\n mBoundService = null;\n Log.i(TAG,\"Service DISconnected\");\n }", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "public void onWindowVisibilityChanged(int visibility) {\n super.onWindowVisibilityChanged(visibility);\n if (!isInEditMode() && this.f66a.mo7172i().f609g.mo7347a().mo7233b() && visibility != 0 && this.f66a.mo7172i().f614l.mo7348a() != null && this.f66a.mo7172i().f607e.mo7347a() != null) {\n if (!AdActivity.isShowing() || AdActivity.leftApplication()) {\n f65b.mo7098a(this.f66a.mo7172i().f607e.mo7347a(), \"onleaveapp\", (String) null);\n } else {\n f65b.mo7098a(this.f66a.mo7172i().f607e.mo7347a(), \"onopeninapp\", (String) null);\n }\n }\n }", "private void hide() {\n if (inflatedView != null && activityWeakReference != null && activityWeakReference.get() != null) {\n inflatedView.startAnimation(hideAnimation);\n inflatedView = null;\n } else {\n Timber.e(\"Trying to call hide() on a null view InternetIndicatorOverlay.\");\n }\n }", "@Override\n public void onServiceDisconnected(ComponentName className) {\n Log.d(TAG, className.toString() + \" service is unbound\");\n }", "@Override\n public void onDisconnected() {\n }", "public void onDashboardDisappear() \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"On Dashboard dissapear\");\n\t\t\tdashboardDidDisappear();\n\t\t}", "public void onDashboardDisappear() \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"On Dashboard dissapear\");\n\t\t\tdashboardDidDisappear();\n\t\t}", "@Override\n public void onDisconnected() {\n }", "void connectionLost() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.VISIBLE);\n }", "protected void onServiceDisconnectedExtended(ComponentName className) {\n mAllowedToBind = false;\n\n }", "public void onInactive() {\n super.onInactive();\n this.f5335l.unregisterOnSharedPreferenceChangeListener(this);\n }", "@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }", "public void onActivityDestroy() {\n if (currentScreen != null) {\n currentScreen.onActivityDestroy();\n }\n }", "public void onActivityPause() {\n if (currentScreen != null) {\n currentScreen.onActivityPause();\n }\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tLog.i(LOG_TAG, \"onService connected......method\");\n\t\t\tmBoundService = null;\n\t\t\t// Toast.makeText(ChatActivity.this, \"Disconnected to service\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t}", "private void screenOffBroadcast() {\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n mDoScreenOff = true;\n }\n // prize add v8.0 by zhaojian 20171102 end\n\n Intent intent = new Intent(\"prize.set.keyguard.state\");\n intent.putExtra(\"hide\",false);\n intent.putExtra(\"sleep\",true);\n getContext().sendBroadcast(intent);\n flags = false;\n // prize add v8.0 by zhaojian 20171102 start\n beforeIsLock = false;\n // prize add v8.0 by zhaojian 20171102 end\n\n handler.removeMessages(1);\n\n // prize add v8.0 by zhaojian 2017912 start\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n mIsAutoEnterReceiveUi = false;\n }\n // prize add v8.0 by zhaojian 2017912 end\n Log.d(TAG,\"screen off\");\n }", "protected void noActiveActivity() {\n\t\tLog.i(STARTUP, \"no active activity\");\n\t\tcancelNotification();\n\t\tcreateNotification();\n\t\tstartMainService();\t\t\n\t}", "public void onStop() {\n this.mIsShowing.set(false);\n RefreshTask refreshTask = this.mRefreshTask;\n if (refreshTask != null) {\n refreshTask.cancel(true);\n this.mRefreshTask = null;\n }\n NetworkDiagnosticsActivity.super.onStop();\n }", "public void onStop() {\n connectivityMonitor.unregister();\n requestTracker.pauseRequests();\n }", "@Override\n\tpublic void onHide (ScreenState mode) {\n\n\t}", "@Override\n\tpublic void onHide (ScreenState mode) {\n\n\t}", "abstract void onHidden();", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t// Log.i(this.getClass().getSimpleName(), \"onServiceDisconnected\"\n\t\t// + className.toShortString());\n\t\tbtService = null;\n\t\tToast.makeText(BaseAct.this, R.string.btservice_disconnected,\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t}", "@Override\n\tpublic void onDisconnected() {\n\n\t}", "public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }", "@Override\n public void hide() {\n if (!unit.player.isPlayerDead) {\n MyPreference.setIsNewGame(false);\n saves.Save();\n }\n GameController.allFalse();\n dispose();\n }", "@Override\n protected void onPause() {\n Log.d(TAG, \"onPause: Unregistering for broadcasts\");\n placesBroadcastReceiver.unregister();\n super.onPause();\n AppEventsLogger.deactivateApp(this);\n }", "public void onDeactivation() { }", "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\tActivityOn = false;\n\t}", "public void onIceDisconnected();", "public void onServiceDisconnected(ComponentName className) {\n \t\t\tmService = null;\n \t\t}", "public void onPause() {\n super.onPause();\n overridePendingTransition(0, 0);\n ChatActivityEnterView chatActivityEnterView2 = this.chatActivityEnterView;\n if (chatActivityEnterView2 != null) {\n chatActivityEnterView2.hidePopup(false);\n this.chatActivityEnterView.setFieldFocused(false);\n }\n int i = this.lastResumedAccount;\n if (i >= 0) {\n ConnectionsManager.getInstance(i).setAppPaused(true, false);\n }\n }", "@Override\n public void onServiceDisconnected(ComponentName componentName) {\n //Log.e(\"SERVICE_DISCONNECTED\", \"Disconnecting service\");\n boundNewsService = null;\n }", "public void handleDisconnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Failed to connect to \" + tallyDeviceName);\n\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n messengerService = null;\n messengerServiceBound = false;\n }", "public void onDeviceDisconnected() {\n btButton.setText(\"Disconnnected\");\n }", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public void onPause(Activity activity)\n {\n client.eventbus().unregister(this);\n\n try\n {\n miniClientView.setOnTouchListener(null);\n miniClientView.setOnKeyListener(null);\n }\n catch (Throwable t)\n {\n }\n\n log.debug(\"MiniClient UI onPause() called\");\n try\n {\n // pause video if we are leaving the app\n if (client.getCurrentConnection() != null && client.getCurrentConnection().getMediaCmd() != null)\n {\n if (client.getCurrentConnection().getMediaCmd().getPlaya() != null)\n {\n log.info(\"We are leaving the App, Make sure Video is stopped.\");\n client.getCurrentConnection().getMediaCmd().getPlaya().pause();\n EventRouter.postCommand(client, SageCommand.STOP);\n }\n }\n }\n catch (Throwable t)\n {\n log.debug(\"Failed why attempting to pause media player\");\n }\n try\n {\n if (client.properties().getBoolean(Keys.app_destroy_on_pause, true))\n {\n try\n {\n client.closeConnection();\n }\n catch (Throwable t)\n {\n }\n finish();\n }\n else\n {\n // TODO: Try to free up memory, clear caches, etc\n }\n }\n catch (Throwable t)\n {\n log.debug(\"Failed to close client connection\");\n }\n }", "@Override\n public void onServiceDisconnected(ComponentName name)\n {\n mEngagementService = null;\n\n /*\n * Simulate disconnected intent targeting the current package name since the engagement\n * process has been killed.\n */\n Intent disconnectedIntent = new Intent(\n \"com.microsoft.azure.engagement.intent.action.DISCONNECTED\");\n disconnectedIntent.setPackage(mContext.getPackageName());\n mContext.sendBroadcast(disconnectedIntent);\n\n /* Mark we are auto re-binding to it */\n mBindingService = true;\n }", "protected void onBSPause() {\n // checkBSActivityRunning();\n if (mDrawer != null) {\n mDrawer.removeBSParentView();\n }\n isResumed = false;\n mCalled = true;\n }", "void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tUiUpdater.unregisterClient(handler);\r\n\t\tunregisterReceiver(wifiReceiver);\r\n\t}", "public void onServiceDisconnected(ComponentName className) {\n Log.e(\"Activity\", \"Service has unexpectedly disconnected\");\n wsService = null;\n }", "protected void onPause()\n {\n super.onPause();\n\n if (mGlView != null)\n {\n mGlView.setVisibility(View.INVISIBLE);\n mGlView.onPause();\n }\n\n if (mEstadoActualAPP == EstadoAPP.CAMERA_RUNNING)\n {\n actualizarEstadoAplicacion(EstadoAPP.CAMERA_STOPPED);\n }\n\n if (mFlash)\n {\n mFlash = false;\n setFlash(mFlash);\n }\n\n QCAR.onPause();\n }", "@Override\n protected void onStop() {\n if (null != googleClient && googleClient.isConnected()) {\n googleClient.disconnect();\n }\n super.onStop();\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onDestroy();\n\t\tunReceiver();\n\t\tAppContext.getInstance().setSMSShow(false);\n\t}", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\n\t\t/*\n\t\t * remove the listener object from the telephony manager as otherwise\n\t\t * several listeners will appear on some Android implementations once\n\t\t * the application is resumed.\n\t\t */\n\t\tTel.listen(MyListener, PhoneStateListener.LISTEN_NONE);\n\t\tisListenerActive = false;\n\n\t\t/* let the device activate the screen lock again */\n\t\twl.release();\n\t}", "public void onServiceDisconnected(ComponentName className) {\n serverMessenger = null;\n ToastUtil.toast(\"Remote service disconnected\");\n\n IDGenerator.reset();\n\n //通知上层连接变化\n try {\n mafContext.networkChange(NetChannelStatus.Disconnected);\n } catch (RuntimeException e) {\n LogUtil.e(TAG, e);\n }\n\n GlobalTimerTasks.getInstance().removeAllTask();\n bind();\n }", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n this.mHasAttatched = false;\n this.mAdapter = null;\n }", "@Override\n protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n Object host = (Object) getContext();\n if (host instanceof Activity) {\n if (((Activity)host).isFinishing()) {\n AppyAdService.getInstance().unRegisterManager(true);\n AppyAdService.getInstance().debugOut(TAG, TAG + \" is detached, stopping Ad service thread.\");\n }\n else {\n AppyAdService.getInstance().unRegisterManager(false);\n AppyAdService.getInstance().debugOut(TAG, TAG + \" is detached, removing from stack, but not stopping Ad service thread.\");\n\n }\n }\n }", "@Override\n protected void onPause() {\n super.onPause();\n unregisterReceiver(mReceiver);\n mManager.clearLocalServices(mChannel, null);\n }", "public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n if (this.mAttached) {\n this.mBroadcastDispatcher.unregisterReceiver(this.mIntentReceiver);\n this.mAttached = false;\n ((TunerService) Dependency.get(TunerService.class)).removeTunable(this);\n this.mCommandQueue.removeCallback((CommandQueue.Callbacks) this);\n if (this.mShowDark) {\n ((DarkIconDispatcher) Dependency.get(DarkIconDispatcher.class)).removeDarkReceiver(this);\n }\n this.mCurrentUserTracker.stopTracking();\n }\n }", "@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\tCanPopWind.sIsAirActivityShow = false;\n\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n serviceBound = false; // Indicates that the service is no longer bound.\n }", "@Override protected void onPause() {\n super.onPause();\n locationClient.disconnect();\n overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n }", "@Override\n public void onChannelDisconnected() {\n ConnectionManager.getInstance().setDisconnectNow(true);\n ((P2PListener)activity).onAfterDisconnect();\n }", "@Override\n\tprotected void onDetachedFromWindow() {\n\t\tsuper.onDetachedFromWindow();\n\n\t\tthis.getContext().unregisterReceiver(mBatteryInfoReceiver);\n\t}", "void connectionFound() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.GONE);\n }", "@Override\n public void onPause() {\n mBricksView.setRunning(false);\n super.onPause();\n }", "public void hideScreen() {\n\t}", "@Override\r\n protected void onStop() {\n super.onStop();\r\n if (mGoogleApiClient.isConnected()) {\r\n mGoogleApiClient.disconnect();\r\n }\r\n }", "@Override\n protected void onPause() {\n isRunning = false;\n super.onPause();\n }", "@Override\n protected void onStop() {\n super.onStop();\n if (googleApiClient != null) {\n Log.i(TAG, \"In onStop() - disConnecting...\");\n googleApiClient.disconnect();\n }\n }", "public void onServiceDisconnected();" ]
[ "0.67360085", "0.64511716", "0.64360845", "0.6254479", "0.6253969", "0.6228845", "0.62204146", "0.6213152", "0.6213152", "0.62067395", "0.6192358", "0.61844885", "0.6151039", "0.6148576", "0.61443543", "0.61434925", "0.6130456", "0.6122255", "0.6103545", "0.607868", "0.60746837", "0.60739464", "0.6068228", "0.60474557", "0.6035", "0.6028773", "0.6028773", "0.60262334", "0.6025915", "0.6013905", "0.6009873", "0.60088295", "0.60027146", "0.60027146", "0.6001361", "0.59935623", "0.5991127", "0.5985012", "0.5982216", "0.5982216", "0.5975785", "0.5970916", "0.595498", "0.5952822", "0.5932217", "0.59284073", "0.58993083", "0.5888058", "0.5875806", "0.5870139", "0.58481413", "0.58451873", "0.583203", "0.583203", "0.5828619", "0.5826911", "0.5826911", "0.5826911", "0.5826192", "0.5823111", "0.5822887", "0.5817844", "0.58095443", "0.5807403", "0.5803702", "0.58001626", "0.5793786", "0.57800424", "0.5778798", "0.5769756", "0.576878", "0.57622236", "0.576063", "0.5758404", "0.57454365", "0.57364154", "0.5733824", "0.5731597", "0.5728351", "0.5725719", "0.5721025", "0.5713616", "0.57120764", "0.571043", "0.5696087", "0.56952816", "0.56913424", "0.568961", "0.5689439", "0.5688405", "0.5688342", "0.5680984", "0.5678262", "0.5676024", "0.56739444", "0.56726456", "0.5667882", "0.5664396", "0.56635386", "0.5659546", "0.56594205" ]
0.0
-1
Saves the resolution state.
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putBoolean(KEY_IN_RESOLUTION, mIsInResolution); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveState() {\n\t\tsuper.saveState();\n\t}", "@Override\r\n protected void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n outState.putBoolean(KEY_IN_RESOLUTION, mIsInResolution);\r\n }", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }", "public void save() {\n\t\tthis.setState(Constants.CWorld.STATE_SAVING);\n\t\tthis.getWorld().saveAll();\n\t\tthis.setState(Constants.CWorld.STATE_ONLINE);\n\t}", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public void save() {\t\n\t\n\t\n\t}", "public void saveGame(){\n \tsaveOriginator.writeMap(this.map, this.getObjectives(), this.gameState);\n \tsaveGame.saveGame(saveOriginator);\n }", "@Override\n\tpublic void saveSettings() {\n\n\t}", "public void save() {\n\t\tpreferences().flush();\n\t}", "public void saveState() { }", "public static void save()\n\t{\n writeMap();\n\t}", "private void save() {\n var boolGrid = editor.getBoolGrid();\n //Generate a track grid from the bool frid\n var grid = Track.createFromBoolGrid(boolGrid);\n var valid = Track.isValidTrack(grid);\n if (!valid) {\n //fire an error event\n MessageBus.fire(new ErrorEvent(\"Invalid track\", \"\", 2));\n } else {\n //Save the track and pop back\n var generator = new TrackFromGridGenerator(grid);\n var track = generator.generateTrack();\n (new TrackStorageManager()).saveTrack(track);\n menu.navigationPop();\n menu.showError(new ErrorEvent(\"Saved track!\", \"\", 2, Colour.GREEN));\n }\n }", "public void save() {\r\n try {\r\n FileOutputStream fos = new FileOutputStream(REPO_STATE_FILE_NAME);\r\n fos.write(CodecUtils.toJson(this).getBytes());\r\n fos.close();\r\n } catch (Exception e) {\r\n Logging.logError(e);\r\n }\r\n }", "public void save() {\n savePrefs();\n }", "private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }", "public void saveState() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFile savefile = new File(getServletContext().getRealPath(\"/WEB-INF/\"), SAVED_RECEPTOR_FILE_NAME);\n\t\t\tfos = new FileOutputStream(savefile);\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(pgtMap);\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"IO Exception saving proxyTicket cache\");\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception e) { //don't think this is possible, but I'm seeing some goofy behavior, so...\n\t\t\tSystem.err.println(\"Non-IO Exception saving proxyTicket cache\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void saveLocation()\n {\n willLocationBeSaved = !willLocationBeSaved;\n }", "private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}", "void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }", "public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }", "private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n saveBtn.setEnabled(true);\n }", "protected abstract void saveGraphicsState();", "void save();", "void save();", "void save();", "public void saveCurrentUserState(){\n\t\tCurrentUserState currState = new CurrentUserState();\n\t\tcurrState.setBatchOutput(batchState.getBatchOutput());\n\t\tcurrState.setCurrFields(batchState.getFields());\n\t\tcurrState.setCurrProject(batchState.getProject());\n\t\tcurrState.setCurrScale(display.getScale());\n\t\tcurrState.setCurrSelectedCell(batchState.getSelectedCell());\n\t\tcurrState.setErrorCells(batchState.getErrors());\n\t\t\n\t\tcurrState.setHighlight(display.isToggleOn());\n\t\tcurrState.setInverted(display.isInverted());\n\t\t\n\t\tcurrState.setCurrWindowPos(getLocationOnScreen());\n\t\tcurrState.setCurrWindowSize(getSize());\n\t\t\n\t\tcurrState.setHorizontalDiv(bottomPanel.getDividerLocation());\n\t\tcurrState.setVertivalDiv(centerPanel.getDividerLocation());\n\t\t\n\t\tcurrState.setOriginX(display.getW_originX());\n\t\tcurrState.setOriginY(display.getW_originY());\n\t\t\n\t\tcurrState.setValues(batchState.getValues());\n\t\t\n\t\t//put to xstream\n\t\tXStream xstream = new XStream(new DomDriver());\n\t\ttry {\n\t\t\n\t\t\txstream.toXML(currState, new FileOutputStream(new File(info.getUsername() + \".xml\")));\n\t\t\tSystem.out.println(\"current state is saved!\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"file not found/ couldn't go to xml\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save(){\r\n\t\ttry {\r\n\t\t\tgame.suspendLoop();\r\n\t\t\tGameStockage.getInstance().save(game);\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (GameNotSaveException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t}\r\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 boolean save() {\n\t\treturn save(_file);\n\t}", "private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }", "@Override\n public void save() {\n graphicsEnvironmentImpl.save(canvas);\n }", "public void save() {\n SharedPreferences settings = activity.getSharedPreferences(\"Preferences\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putLong(\"bestDistance\", values.bestDistance);\n\n // Commit the edits!\n editor.commit();\n\n }", "public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }", "public void saveGame() {\n\t\tmanager.saveGame();\n\t}", "private void saveSettings() {\n SettingsModel settingsModel = new SettingsModel();\n settingsModel.saveState(NJNPStartActivity.this);\n\n File NJNPSettingsDirectory = new File(NJNPConstants.DIRECTORY_PATH + NJNPConstants.SETTINGS_FOLDER);\n NJNPSettingsDirectory.mkdirs();\n\n File file = new File(NJNPSettingsDirectory.getPath(), NJNPConstants.SETTINGS_FILE_NAME);\n\n FileOutputStream fos = null;\n ObjectOutputStream os = null;\n try {\n fos = new FileOutputStream(file);\n os = new ObjectOutputStream(fos);\n os.writeObject(settingsModel);\n os.close();\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"File not found exception when saving settings: \" + e.getMessage());\n } catch (IOException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"IO Exception when saving settings: \" + e.getMessage());\n }\n\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void savePreferences() {\n\t\ttry\t{\n\t\t\tFile temp = new File(\"dropbox.ini\");\n\t\t\tif (temp.exists()) {\n\t\t\t\tdboxini.load(\"dropbox.ini\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception in loading dropbox.ini\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Save window size.\n\t\tPoint sl = getLocationOnScreen();\n\t\tDimension sz = getSize();\n\t\tConfigSection wp = new ConfigSection(\"WindowState\");\n\t\twp.setIntProperty(\"xLoc\",sl.x);\n\t\twp.setIntProperty(\"yLoc\",sl.y);\n\t\twp.setIntProperty(\"width\",sz.width);\n\t\twp.setIntProperty(\"height\",sz.height);\n\t\tdboxini.removeSection(wp.getName());\n\t\tdboxini.addSection(wp);\n\n\t\t// Save ini file to disk.\n\t\ttry {\n\t\t\tdboxini.store(\"dropbox.ini\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to save preferences as dropbox.ini\");\n\t\t}\n\t}", "public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }", "public static void viewSaveLandRegistryToBackUp() {\n\t\tboolean save_reg = getRegControl().saveToFile(getRegControl().listOfRegistrants(), REGISTRANTS_FILE);\r\n\t\tboolean save_prop = getRegControl().saveToFile(getRegControl().listOfAllProperties(), PROPERTIES_FILE);\r\n\t\t// check if one of them failed or not\r\n\t\tif (save_prop == false || save_reg == false) {\r\n\t\t\tSystem.out.println(\"Unable to save land registry.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Land Registry has been backed up to file.\");\r\n\t\t}\r\n\t}", "@Override\n public void saveState(Bundle outBundle) {\n }", "public static void save(){\n\t\tif(GUIReferences.currentFile != null) {\n\t\t\txml.XMLSaver.saveSensorList(GUIReferences.currentFile);\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t} else {\n\t\t\tsaveAs();\n\t\t}\n\t}", "void savePreferences() throws OntimizeJEERuntimeException;", "@Override\n\t protected void onSaveInstanceState(Bundle outState) {\n\t super.onSaveInstanceState(outState);\n\t // save the current data, for instance when changing screen orientation\n\t outState.putSerializable(\"dataset\", mDataset);\n\t outState.putSerializable(\"renderer\", mRenderer);\n\t outState.putSerializable(\"current_series\", mCurrentSeries);\n\t outState.putSerializable(\"current_renderer\", mCurrentRenderer);\n\t }", "private void save() {\n Saver.saveTeam(team);\n }", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "private void saveCurrentState(Bundle outState){\n outState.putInt(PLAYER_COUNT_STATE_KEY,playerScore);\n outState.putSerializable(VIEW_MAP_STATE_KEY,globalViewMap);\n outState.putSerializable(CHILD_TEXT_CONTAINER_STATE_KEY,globalChildTextContainer);\n outState.putSerializable(PRIME_RECORD_MAP_KEY,primeRecorderMap);\n outState.putSerializable(CURRENT_SCREEN_GAME_STATE_KEY,currentScreenGameState);\n outState.putLong(GAME_TIME_LEFT_STATE_KEY,gameTimeLeftYet);\n }", "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public boolean save() {\n boolean any = false;\n synchronized (PROPS) {\n for (SettingsGroup group : PROPS) {\n any |= group.save();\n }\n }\n \n if (any) {\n fireSettingsHandlerEvent(EventType.SAVE, null);\n }\n \n return any;\n }", "private void saveValues() {\r\n this.pl_expert.setParam(\"displayNodeDegree\", (String) this.nodeDegreeSpinner.getValue());\r\n this.pl_expert.setParam(\"displayEdges\", (String) this.displayEdgesSpinner.getValue());\r\n this.pl_expert.setParam(\"scale\", (String) this.scaleSpinner.getValue());\r\n this.pl_expert.setParam(\"minWeight\", (String) this.minweightSpinner.getValue());\r\n this.pl_expert.setParam(\"iterations\", (String) this.iterationsSpinner.getValue());\r\n this.pl_expert.setParam(\"mutationParameter\", this.mutationParameter.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"Update_param\", this.Update_param.getSelection().getActionCommand());\r\n this.pl_expert.setParam(\"vote_value\", (String) this.vote_value.getValue());\r\n this.pl_expert.setParam(\"keep_value\", (String) this.keep_value.getValue());\r\n this.pl_expert.setParam(\"mut_value\", (String) this.mut_value.getValue());\r\n this.pl_expert.setParam(\"only_sub\", new Boolean(this.only_sub.isSelected()).toString());\r\n\r\n this.is_alg_started = false;\r\n }", "public void saveGame(){\n updateProperties();\n try {\n output = new FileOutputStream(fileName);\n properties.store(output, null); //saving properties to file\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO SAVE GAME ---\");\n e.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n System.out.println(\"--- GAME SAVED ---\");\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE OUTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "private void saveState() throws IOException {\n speakerManager.saveState();\n roomManager.saveState();\n organizerManager.saveState();\n eventManager.saveState();\n chatManager.saveState();\n attendeeManager.saveState();\n\n }", "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 }", "public final void save(final ByteBuffer buffer) {\r\n buffer.putInt(respawnRate);\r\n buffer.putShort((short) getId());\r\n buffer.putInt(getCount());\r\n buffer.putShort((short) (getLocation().getX() & 0xFFFF)).putShort((short) (getLocation().getY() & 0xFFFF))\r\n .put((byte) getLocation().getZ());\r\n }", "@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}", "public void saveGameSession() {\n\t\tlastSaved = ProjectZero.calendar.getTime().toString();\n\t\tAssetHandler.saveGameSession();\n\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putBoolean(STATE_RESOLVING_ERROR, mResolvingError);\n }", "public void saving() {\n\t\tSystem.out.println(\"7\");\n\n\t}", "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}", "@Override\n public void Save() {\n\t \n }", "@Override\n public void save() {\n \n }", "public void save() {\n if(persistenceType == PropertyPersistenceType.Persistent) {\n if (!isSetToDefault()) {\n permanentStore.setBoolean(key, get());\n } else {\n permanentStore.remove(key);\n }\n }\n }", "public void save() {\n RegionOwn.saveRegionOwner(this);\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public boolean save();", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\n public void save()\n {\n \n }", "public boolean saveSettings() {\r\n\t\treturn settings.save();\r\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "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}", "@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tif (outState != null) {\r\n\t\t\toutState.putString(\"sCameraFilename\", sCameraFilename);\r\n\t\t\toutState.putSerializable(\"fCurrentFile\", fCurrentFile);\r\n\t\t\tPalmchatLogUtils.println(\"--cfd onSaveInstanceState sCameraFilename =\" + sCameraFilename);\r\n\t\t}\r\n\t\t\r\n\t\tsuper.onSaveInstanceState(outState);\r\n\t}", "@Override\n public void saveValues() {\n \n }", "private void save() {\n // Get the current measurement\n final LiveData<Measurement> ldm = mViewModel.getMeasurementById(mMeasurementId);\n ldm.observe(getViewLifecycleOwner(), new Observer<Measurement>() {\n @Override\n public void onChanged(final Measurement measurement) {\n ldm.removeObserver(this);\n updateMeasurement(measurement);\n snackBar(\"Measurement updated!\");\n }\n });\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\toutState.putStringArrayList(SELFIE_KEY, selfiesURI);\n\t\tif (pathToSaveSelfie != null) {\n\t\t\toutState.putString(SELFIE_PATH, pathToSaveSelfie.toString());\n\t\t}\t\n\t}", "void saveCurrentStation();", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "public static void saveGameType() {\r\n\t\tclearGameType();\r\n\t\t\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tMain.isThreeHanded = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tMain.isFourHandedSingle = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tMain.isFourHandedTeams = true;\r\n\t\t}\r\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 saveState(ObjectOutput out) throws IOException {\n\t\t// save deikto values\n\t\tdk.saveState(out);\n\t\t// save interpreter values\n\t\tout.writeFloat(interpreter.globalActorBox);\n\t\tout.writeFloat(interpreter.globalPropBox);\n\t\tout.writeFloat(interpreter.globalStageBox);\n\t\tout.writeFloat(interpreter.globalEventBox);\n\t\tout.writeFloat(interpreter.globalVerbBox);\n\t\tout.writeFloat(interpreter.globalBNumberBox);\n\n\t\t// save ticks\n\t\tout.writeInt(cMoments);\n\t\t// save inactivity counter\n\t\tout.writeInt(cInactivity);\n\t\t// save player inactivity\n\t\tout.writeInt(playerInactivity);\n\t\t// save storyIsOver\n\t\tout.writeBoolean(storyIsOver);\n\t\tout.writeBoolean(isEpilogueNow);\n\t\tout.writeBoolean(isHappilyDone);\n\t\tout.writeBoolean(isPenultimateDone);\n\n\t\t// save historyBook\n\t\tout.writeInt(historyBook.size());\n\t\tfor(Sentence s:historyBook)\n\t\t\tout.writeObject(s);\n\t\t// save random seeds\n\t\tout.writeObject(random);\n\t\tout.writeLong(interpreter.scriptRandom.getSeed());\n\t\t// save alarms\n\t\tout.writeInt(alarms.size());\n\t\tfor(Alarm a:alarms)\n\t\t\tout.writeObject(a);\n\t\tout.writeInt(storybook.size());\n\t\tfor(String s:storybook)\n\t\t\tout.writeUTF(s);\n\t}", "public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n currentStateSaveToSharedPref();\n }", "public void SaveCurrentGame(){\n if(gameStarted == false){ return; }\n recordGame.write(board, timeRuunableThread, level);\n timeRuunableThread.setDrawNumber(false);\n canLoadGame = true;\n // update infoCanvas\n CleanInfoCanvas();\n }", "@Override\r\n protected void onSaveInstanceState(Bundle outState) {\n outState.putString(\"picker_path\", pickerPath);\r\n super.onSaveInstanceState(outState);\r\n }", "private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition());\n editor.putInt(\"dessertIndex\", spDessert.getSelectedItemPosition());\n\n editor.apply();\n }", "private void saveState(final Bundle state)\n {\n logEnter(LOG_TAG, \"saveState\", state);\n\n state.putSerializable(BUNDLE_FIELD_INSTANCE, instance);\n state.putSerializable(BUNDLE_FIELD_ENTRIES, entries);\n }", "public void save() {\n }", "private void saveTestResult(boolean success)\n {\n String resolution = width + \"x\" + height + \"-\";\n Editor editor = preferences.edit();\n\n editor.putBoolean(PREF_PREFIX + resolution + \"success\", success);\n\n if (success)\n {\n editor.putInt(PREF_PREFIX + resolution + \"lastSdk\", Build.VERSION.SDK_INT);\n editor.putInt(PREF_PREFIX + resolution + \"lastVersion\", VERSION);\n editor.putInt(PREF_PREFIX + resolution + \"sliceHeight\", nv21Convertor.getSliceHeigth());\n editor.putInt(PREF_PREFIX + resolution + \"stride\", nv21Convertor.getStride());\n editor.putInt(PREF_PREFIX + resolution + \"padding\", nv21Convertor.getYPadding());\n editor.putBoolean(PREF_PREFIX + resolution + \"planar\", nv21Convertor.getPlanar());\n editor.putBoolean(PREF_PREFIX + resolution + \"reversed\", nv21Convertor.getUVPanesReversed());\n editor.putString(PREF_PREFIX + resolution + \"encoderName\", encoderName);\n editor.putInt(PREF_PREFIX + resolution + \"colorFormat\", encoderColorFormat);\n editor.putString(PREF_PREFIX + resolution + \"encoderName\", encoderName);\n editor.putString(PREF_PREFIX + resolution + \"pps\", base64PPS);\n editor.putString(PREF_PREFIX + resolution + \"sps\", base64SPS);\n }\n\n editor.apply();\n }", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }" ]
[ "0.6882792", "0.68590087", "0.67599595", "0.6721297", "0.6653567", "0.66318846", "0.6623868", "0.660058", "0.65894175", "0.65705794", "0.6536322", "0.65036136", "0.6404952", "0.6346725", "0.6340696", "0.6325729", "0.6319193", "0.6312291", "0.6283956", "0.62778366", "0.6212583", "0.62119454", "0.61756897", "0.61687875", "0.6152876", "0.6152876", "0.6152876", "0.61385787", "0.6131528", "0.6129574", "0.61238235", "0.6113253", "0.6107344", "0.6082842", "0.6076067", "0.60745865", "0.60693043", "0.6060558", "0.6060129", "0.6056793", "0.6056793", "0.6053093", "0.6046269", "0.60182697", "0.60170496", "0.60094887", "0.60025436", "0.6002133", "0.600144", "0.5999409", "0.5996742", "0.59863216", "0.59816694", "0.5961585", "0.59596074", "0.59535664", "0.59509677", "0.5945024", "0.5940649", "0.59397036", "0.59371835", "0.5931423", "0.59305185", "0.592983", "0.59197134", "0.59131217", "0.5910712", "0.5885992", "0.5883489", "0.5882915", "0.58756846", "0.5855968", "0.58543503", "0.58543503", "0.5851996", "0.5845241", "0.58409345", "0.58409345", "0.58409345", "0.58409345", "0.5840425", "0.58341223", "0.58318466", "0.583021", "0.5827138", "0.5824832", "0.5818441", "0.58181435", "0.58094937", "0.5798316", "0.57919884", "0.5789202", "0.5784329", "0.578362", "0.5782098", "0.577533", "0.5773531", "0.57661015", "0.5763263", "0.57626635" ]
0.68486506
2
Handles Google Play Services resolution callbacks.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case REQUEST_CODE_RESOLUTION: retryConnecting(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n Log.d(Util.TAG_GOOGLE, \"\" + connectionStatusCode);\n // showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\r\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\r\n }\r\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void checkGooglePlayServices() {\n\t\tint status = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(getApplicationContext());\n\t\tif (D) {\n\t\t\tif (status == ConnectionResult.SUCCESS) {\n\t\t\t\t// Success! Do what you want\n\t\t\t\tLog.i(TAG, \"Google Play Services all good\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_MISSING) {\n\t\t\t\tLog.e(TAG, \"Google Play Services not in place\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED) {\n\t\t\t\tLog.e(TAG, \"Google Play Serivices outdated\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_DISABLED) {\n\t\t\t\tLog.e(TAG, \"Google Plauy Services disabled\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_INVALID) {\n\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\"Google Play Serivices invalid but wtf does that mean?\");\n\t\t\t} else {\n\t\t\t\tLog.e(TAG, \"No way this is gonna happen\");\n\t\t\t}\n\t\t}\n\t}", "private void checkGooglePlayServiceSDK() {\n //To change body of created methods use File | Settings | File Templates.\n final int googlePlayServicesAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n Log.i(TAG, \"googlePlayServicesAvailable:\" + googlePlayServicesAvailable);\n\n switch (googlePlayServicesAvailable) {\n case ConnectionResult.SERVICE_MISSING:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n break;\n case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_SERVICE_UPDATE_REQUIRED);\n break;\n case ConnectionResult.SERVICE_DISABLED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_DISABLED);\n break;\n case ConnectionResult.SERVICE_INVALID:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_INVALID);\n break;\n }\n }", "@Override\n protected void onStart() {\n super.onStart();\n\n\n GoogleApiAvailability GMS_Availability = GoogleApiAvailability.getInstance();\n int GMS_CheckResult = GMS_Availability.isGooglePlayServicesAvailable(this);\n\n if (GMS_CheckResult != ConnectionResult.SUCCESS) {\n\n // Would show a dialog to suggest user download GMS through Google Play\n GMS_Availability.getErrorDialog(this, GMS_CheckResult, 1).show();\n }else{\n mGoogleApiClient.connect();\n }\n }", "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\n\t\tint resCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());\n\t\tif (resCode != ConnectionResult.SUCCESS)\n\t\t{\n\t\t\tGooglePlayServicesUtil.getErrorDialog(resCode, this, 1);\n\t\t}\n\t}", "private boolean isGooglePlayServicesAvailable() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\r\n // If Google Play services is available\r\n if (ConnectionResult.SUCCESS == resultCode) {\r\n // In debug mode, log the status\r\n Log.d(\"Location Updates\", \"Google Play services is available.\");\r\n return true;\r\n } else {\r\n // Get the error dialog from Google Play services\r\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog( resultCode,\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n\r\n // If Google Play services can provide an error dialog\r\n if (errorDialog != null) {\r\n // Create a new DialogFragment for the error dialog\r\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\r\n errorFragment.setDialog(errorDialog);\r\n errorFragment.show(getFragmentManager(), \"Location Updates\");\r\n }\r\n\r\n return false;\r\n }\r\n }", "private boolean servicesOK() {\n GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();\n int result = googleAPI.isGooglePlayServicesAvailable(this);\n if (result != ConnectionResult.SUCCESS) {\n if (googleAPI.isUserResolvableError(result)) {\n }\n return false;\n }\n return true;\n }", "@Override\n protected void onStart() {\n super.onStart();\n idsession = MyModel.getInstance().getIdsession();\n\n //Check if GooglePlayServices are available\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if(status == ConnectionResult.SUCCESS) {\n Log.d(\"GeoPost Location\", \"GooglePlayServices available\");\n } else {\n Log.d(\"GeoPost Location\", \"GooglePlayServices UNAVAILABLE\");\n if(googleApiAvailability.isUserResolvableError(status)) {\n Log.d(\"GeoPost Location\", \"Ask the user to fix the problem\");\n //If the user accepts to install the google play services,\n //a new app will open. When the user gets back to this activity,\n //the onStart method is invoked again.\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n } else {\n Log.d(\"GeoPost Location\", \"The problem cannot be fixed\");\n }\n }\n\n // Instantiate and connect GoogleAPIClient.\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n mGoogleApiClient.connect();\n }", "public void initializeResolveListener() {\n mResolveListener = new NsdManager.ResolveListener() {\n\n @Override\n public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {\n Log.e(TAG, \"Resolve failed\" + errorCode);\n }\n\n @Override\n public void onServiceResolved(NsdServiceInfo serviceInfo) {\n Log.e(TAG, \"Resolve Succeeded. \" + serviceInfo);\n\n if (serviceInfo.getServiceName().equals(mServiceName)) {\n Log.d(TAG, \"Same IP.\");\n return;\n }\n mService = serviceInfo;\n receivedServices = serviceInfo.toString();\n\n }\n };\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects. If the error\n\t\t * has a resolution, try sending an Intent to start a Google Play\n\t\t * services activity that can resolve error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this,\n\t\t\t\t\t\tCONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "private boolean servicesConnected(Activity activity) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n // Google Play services was not available for some reason.\n // resultCode holds the error code.\n } else {\n // Get the error dialog from Google Play services\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(resultCode, activity, LocationFailureHandler.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n // If Google Play services can provide an error dialog\n if (errorDialog != null) {\n \terrorDialog.show();\n } else {\n }\n return false;\n }\n }", "private boolean checkPlayServices()\n {\n\tint resultCode=-5000;\n\ttry {\n\t\tresultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\tif (resultCode != ConnectionResult.SUCCESS)\n\t{\n\t if (GooglePlayServicesUtil.isUserRecoverableError(resultCode))\n\t {\n\t \tLog.i(Globals.TAG, \"dialog gorunecek\");\n\t \tGooglePlayServicesUtil.getErrorDialog(resultCode, this, PLAY_SERVICES_RESOLUTION_REQUEST).show();\n\t \tLog.i(Globals.TAG, \"dialog kapandi\");\n\t }\n\t else\n\t {\n\t\t\tLog.i(Globals.TAG, \"This device is not supported.\");\n\t\t\tint RQS_GooglePlayServices = 1;\n\t\t\t GooglePlayServicesUtil.getErrorDialog(resultCode, this, RQS_GooglePlayServices);\n\t\t\tfinish();\n\t }\n\t return false;\n\t}\n\treturn true;\n }", "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(\"Location Updates\",\n \"Google Play services is available.\");\n // Continue\n return true;\n // Google Play services was not available for some reason.\n // resultCode holds the error code.\n } else {\n return false;\n }\n }", "private boolean isGooglePlayServicesAvailable() {\n\t\tint resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(\"Location Updates\", \"Google Play services is available.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Get the error dialog from Google Play services\n\t\t\tDialog errorDialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n\t\t\t\t\tCONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t// If Google Play services can provide an error dialog\n\t\t\tif (errorDialog != null) {\n\t\t\t\t// Create a new DialogFragment for the error dialog\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(errorDialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), \"Location Updates\");\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t}", "public interface ResponseListener {\n void onResponce(GoogleResponse response);\n}", "protected void SetupGoogleServices()\n {\n if (mGoogleApiClient == null)\n {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n }", "public void onConnectionFailed(ConnectionResult connectionResult) {\r\n /*\r\n * Google Play services can resolve some errors it detects.\r\n * If the error has a resolution, try sending an Intent to\r\n * start a Google Play services activity that can resolve\r\n * error.\r\n */\r\n if (connectionResult.hasResolution()) {\r\n try {\r\n // Start an Activity that tries to resolve the error\r\n connectionResult.startResolutionForResult(\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n /*\r\n * Thrown if Google Play services canceled the original\r\n * PendingIntent\r\n */\r\n } catch (IntentSender.SendIntentException e) {\r\n // Log the error\r\n e.printStackTrace();\r\n }\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed\");\n if (!result.hasResolution()) {\n GooglePlayServicesUtil.getErrorDialog(result.getErrorCode(), this, 0).show();\n return;\n }\n try {\n Log.i(TAG, \"trying to resolve the Connection failed error...\");\n result.startResolutionForResult(this, REQUEST_CODE);\n } catch (IntentSender.SendIntentException e) {\n Log.e(TAG, \"Exception while starting resolution activity\", e);\n }\n }", "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n\n // In debug mode, log the status\n Log.d(GeofenceUtils.APPTAG, getString(R.string.play_services_available));\n\n // Continue\n return true;\n\n // Google Play services was not available for some reason\n } else {\n\n // Display an error dialog\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), GeofenceUtils.APPTAG);\n }\n return false;\n }\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"MainActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n synchronized public void onTaskCompletionResult() {\n if (DataContainer.getInstance().pullValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, context) && DataContainer.getInstance().pullValueBoolean(DataKeys.GOOGLE_AAID_FETCHED, context)) {\n deviceInformationUtils.prepareInformations();\n deviceInformationUtils.debugData();\n long lastLaunch = pullValueLong(ITrackingConstants.CONF_LAST_LAUNCH_INTERNAL, context);\n trackLaunchHandler(lastLaunch);\n }\n }", "@Override\n protected void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case REQUEST_GOOGLE_PLAY_SERVICES:\n if (resultCode != RESULT_OK) {\n Toast.makeText(getApplicationContext(), R.string.str_gplay_svcs_install, Toast.LENGTH_LONG).show();\n finish();\n } else {\n getResultsFromApi(this);\n }\n break;\n case REQUEST_ACCOUNT_PICKER:\n if (resultCode == RESULT_OK && data != null &&\n data.getExtras() != null) {\n String accountName =\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\n if (accountName != null) {\n SharedPreferences settings =\n getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_ACCOUNT_NAME, accountName);\n editor.apply();\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi(this);\n }\n }\n break;\n case REQUEST_AUTHORIZATION:\n if (resultCode == RESULT_OK) {\n getResultsFromApi(this);\n }\n break;\n }\n }", "@Override\r\n public void onActivityResult(\r\n int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n switch (requestCode) {\r\n case REQUEST_GOOGLE_PLAY_SERVICES:\r\n if (resultCode != RESULT_OK) {\r\n Log.i(TAG,\"This app requires Google Play Services. Please install \" +\r\n \"Google Play Services on your device and relaunch this app.\");\r\n Toast.makeText(getActivity(),\r\n \"This app requires Google Play Services. Please install \" +\r\n \"Google Play Services on your device and relaunch this app.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n getResultsFromApi();\r\n }\r\n break;\r\n case REQUEST_ACCOUNT_PICKER:\r\n if (resultCode == RESULT_OK && data != null &&\r\n data.getExtras() != null) {\r\n String accountName =\r\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\r\n if (accountName != null) {\r\n SharedPreferences settings =\r\n getActivity().getPreferences(Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = settings.edit();\r\n editor.putString(PREF_ACCOUNT_NAME, accountName);\r\n editor.apply();\r\n mCredential.setSelectedAccountName(accountName);\r\n getResultsFromApi();\r\n }\r\n }\r\n break;\r\n case REQUEST_AUTHORIZATION:\r\n if (resultCode == RESULT_OK) {\r\n getResultsFromApi();\r\n }\r\n break;\r\n }\r\n }", "private boolean servicesConnected() {\n\t\tint resultCode =\n\t\t\t\tGooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.play_services_available));\n\n\t\t\t// Continue\n\t\t\treturn true;\n\t\t\t// Google Play services was not available for some reason\n\t\t} else {\n\t\t\t// Display an error dialog\n\t\t\tDialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n\t\t\tif (dialog != null) {\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(dialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), LocationUtils.APPTAG);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isGooglePlayServicesAvailable() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n return connectionStatusCode == ConnectionResult.SUCCESS;\r\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n\n return connectionStatusCode == ConnectionResult.SUCCESS;\n\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "private boolean servicesConnected() {\n\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n // In debug mode, log the status\n Log.d(ClientSideUtils.APPTAG, getString(R.string.play_services_available));\n return true;\n \n } else {\n // Display an error dialog\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), ClientSideUtils.APPTAG);\n }\n return false;\n }\n }", "private boolean checkGooglePlayServices() {\n int code = GooglePlayServicesUtil.isGooglePlayServicesAvailable(mActivity);\n if (code != ConnectionResult.SUCCESS) {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(code, mActivity, Constants.RequestCode.HANDLE_GMS,\n new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialogInterface) {\n mActivity.finish();\n }\n });\n if (dialog != null) {\n dialog.show();\n }\n\n return false;\n }\n\n return true;\n }", "int isPlayServicesAvailable() {\n if (mGoogleApiAvailability_class != null) {\n String errorMsg;\n Throwable throwable;\n try {\n Method getInstance_method = mGoogleApiAvailability_class.getDeclaredMethod(\"getInstance\");\n Object googleApiAvailabilityInstance = getInstance_method.invoke(null);\n\n Method isPlayServicesAvailable_method = mGoogleApiAvailability_class.getDeclaredMethod(\n \"isGooglePlayServicesAvailable\", Context.class);\n Integer result = (Integer) isPlayServicesAvailable_method.invoke(googleApiAvailabilityInstance, mContext);\n Log.d(TAG, \"isPlayServicesAvailable(): isGooglePlayServicesAvailable returned: \" + result);\n switch (result) {\n case 0:\n //success\n return PLAY_SERVICES_AVAILABLE;\n case 2:\n //version update required\n return PLAY_SERVICES_SERVICE_VERSION_UPDATE_REQUIRED;\n default:\n //everything else\n return PLAY_SERVICES_UNAVAILABLE;\n }\n } catch (NoSuchMethodException e) {\n // in this case,\n errorMsg = \"isPlayServicesAvailable(): Unable to find method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (InvocationTargetException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to invoke method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (IllegalAccessException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to access method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (Exception e) {\n errorMsg = \"isPlayServicesAvailable(): Unknown error occurred.\";\n throwable = e;\n }\n Log.e(TAG, errorMsg, throwable);\n return PLAY_SERVICES_MAGNET_VERSION_INCOMPATIBILITY;\n } else {\n return PLAY_SERVICES_UNAVAILABLE;\n }\n }", "@Override\n protected void notifyUserOnPlayServicesUnavailable() {\n final View rootView = findViewById(R.id.root_layout);\n if (rootView == null) return;\n Snackbar.make(rootView, R.string.google_play_services_error, Snackbar.LENGTH_LONG)\n .show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n Log.i(TAG, \"checkPlayServices \" + resultCode);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n return connectionStatusCode == ConnectionResult.SUCCESS;\n }", "@Override\n public void onStart() {\n super.onStart();\n googleApiClient.connect();\n }", "private boolean servicesAvailable() {\n int resultCode = GooglePlayServicesUtil.\n isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == resultCode) {\n log(\"Google Play services is available\");\n return true;\n } else {\n log(\"Google Play services is not available\");\n showErrorDialog(resultCode);\n return false;\n }\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this, 9000);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n\t\t\tLog.i(\"LOCATION\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n\t\t}\n\t}", "public boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(context);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(context, resultCode,\n PLAY_SERVICES_REQUEST).show();\n PrintLog.e(TAG, \"checkPlayServices yes hai\");\n } else {\n PrintLog.e(TAG, \"checkPlayServices No hai\");\n Toast.makeText(context, \"This device is not supported.\", Toast.LENGTH_LONG).show();\n }\n return false;\n }\n return true;\n }", "private boolean servicesConnected() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n }\n else {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), Constants.APPTAG);\n }\n return false;\n }\n }", "public boolean servicesConnected() {\n\t\t// Check that Google Play services is available\n\t\tint resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.play_services_available));\n\t\t\t// Continue\n\t\t\treturn true;\n\t\t\t// Google Play services was not available for some reason\n\t\t} else {\n\t\t\t// Display an error dialog\n\t\t\tDialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n\t\t\tif (dialog != null) {\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(dialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), LocationUtils.APPTAG);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"GoogleApiClient connection failed: \" + result.toString());\n\n if (!result.hasResolution()) {\n\n // show the localized error dialog.\n GoogleApiAvailability.getInstance().getErrorDialog(this, result.getErrorCode(), 0).show();\n return;\n }\n\n /**\n * The failure has a resolution. Resolve it.\n * Called typically when the app is not yet authorized, and an authorization\n * dialog is displayed to the user.\n */\n\n try {\n\n result.startResolutionForResult(this, REQUEST_CODE_RESOLUTION);\n\n } catch (IntentSender.SendIntentException e) {\n\n Log.e(TAG, \"Exception while starting resolution activity\", e);\n }\n }", "@Override\n public void onCreate() {\n super.onCreate();\n\n Integer response = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (response != ConnectionResult.SUCCESS) {\n Log.d(\"LocationUpdateService\", \"Google Play services unavailable\");\n stopSelf();\n return;\n }\n\n locationClient = new LocationClient(this, this, this);\n }", "@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects.\n\t\t * If the error has a resolution, try sending an Intent to\n\t\t * start a Google Play services activity that can resolve\n\t\t * error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n\t\t\t// If no resolution is available, display a dialog to the user with the error.\n\t\t\tshowErrorDialog(connectionResult.getErrorCode());\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch (requestCode) {\n case Constants.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n switch (resultCode) {\n // If Google Play services resolved the problem\n case Activity.RESULT_OK:\n mInProgress = false;\n beginAddGeofences(mGeoIds);\n break;\n }\n }\n }", "private boolean isGooglePlayServicesAvailable() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (ConnectionResult.SUCCESS == status) {\n return true;\n } else {\n GooglePlayServicesUtil.getErrorDialog(status, this, 0).show();\n return false;\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n /*\n * Google Play services can resolve some errors it detects.\n * If the error has a resolution, try sending an Intent to\n * start a Google Play services activity that can resolve\n * error.\n */\n if (connectionResult.hasResolution()) {\n\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(activity,\n \t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n\n /*\n * If no resolution is available, put the error code in\n * an error Intent and broadcast it back to the main Activity.\n * The Activity then displays an error dialog.\n * is out of date.\n */\n } else {\n\n Intent errorBroadcastIntent = new Intent(LocationUtils.ACTION_CONNECTION_ERROR);\n errorBroadcastIntent.addCategory(LocationUtils.CATEGORY_LOCATION_SERVICES)\n .putExtra(LocationUtils.EXTRA_CONNECTION_ERROR_CODE,\n connectionResult.getErrorCode());\n LocalBroadcastManager.getInstance(activity).sendBroadcast(errorBroadcastIntent);\n }\n }", "public boolean isGooglePlayServicesAvailable() {\n final int connectionStatusCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n if (GooglePlayServicesUtil.isUserRecoverableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n return false;\n } else if (connectionStatusCode != ConnectionResult.SUCCESS ) {\n return false;\n }\n return true;\n }", "@Override\n public void onCreate(){\n super.onCreate();\n createGoogleAPIClient();\n Log.i(TAG, \"On Create\");\n }", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(getActivity(), resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Toast.makeText(getActivity(), \"This device is not supported by Google Play Services.\", Toast.LENGTH_SHORT).show();\n getActivity().finish();\n }\n return false;\n }\n return true;\n }", "private boolean servicesConnected() {\n int resultCode =\n GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n // Google Play services was not available for some reason\n } else {\n return false;\n }\n }", "private boolean supportsGooglePlayServices() {\n return GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) ==\n ConnectionResult.SUCCESS;\n }", "private boolean supportsGooglePlayServices() {\n return GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) ==\n ConnectionResult.SUCCESS;\n }", "private boolean checkPlayServices() {\r\n\t\tGoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n\t\tint resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\r\n\t\tif (resultCode != ConnectionResult.SUCCESS) {\r\n\t\t\tif (apiAvailability.isUserResolvableError(resultCode)) {\r\n\t\t\t\tapiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\r\n\t\t\t\t\t\t.show();\r\n\t\t\t} else {\r\n\t\t\t\tLog.i(TAG, \"This device is not supported.\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n // Thrown if Google Play services canceled the original PendingIntent\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /* If no resolution is available, display a dialog to the\n * user with the error. */\n Log.i(LOG_TAG, \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.i(TAG, \"In onStart() - connecting...\");\n googleApiClient.connect();\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\t// Connect the client.\n\t\tif (isGooglePlayServicesAvailable()) {\n\t\t\tmLocationClient.connect();\n\t\t}\n\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(\n this,\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n //Do nothing, no location available so use default default in server spinner\n }\n }", "public void checkGplayServices(){\n Log.d(TAG, \"checkGplayServices: To check for token!\");\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n Toast.makeText(getApplicationContext(), \"Google Play Service is not install/enabled in this device!\", Toast.LENGTH_LONG).show();\n GooglePlayServicesUtil.showErrorNotification(resultCode, getApplicationContext());\n\n } else {\n Toast.makeText(getApplicationContext(), \"This device does not support for Google Play Service!\", Toast.LENGTH_LONG).show();\n }\n } else {\n Intent intent1;\n if(SharedPreferencesManage.getInstance().getToken()==null) {\n intent1 = new Intent(this, GCMRegistrationIntentService.class);\n startService(intent1);\n Log.d(TAG, \"user to be registered start service\");\n }else\n Log.d(TAG, \"already registered user with token: \"+SharedPreferencesManage.getInstance().getToken());\n\n }\n }", "@Override\n\tpublic void serviceResolved(ServiceEvent arg0) {\n\n\t}", "public boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(context);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(map_actvity,resultCode,\n PLAY_SERVICES_REQUEST).show();\n } else {\n showToast(\"This device is not supported.\");\n }\n return false;\n }\n return true;\n }", "public boolean checkPlayServices(Activity a) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(a);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, a,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n }\n return false;\n }\n return true;\n }", "@Override public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\",\n \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tl_back.setBackground(d2);\n\t\tl_handle.setBackground(d2);\n\t\tl_logo.setBackground(d2);\n\t\tl_nav_search.setBackground(d2);\n\t\tl_menu.setBackground(d2);\n\t\t// if (bedMenuItem != null) {\n\t\t// if (task.getString(\"user_id\", null) != null) {\n\t\t// bedMenuItem.setTitle(\"Logout\");\n\t\t// } else {\n\t\t// bedMenuItem.setTitle(\"Login/Register\");\n\t\t// }\n\t\t// }\n\n\t\tint resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());\n\n\t\tif (resultCode == ConnectionResult.SUCCESS) {\n\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t// \"isGooglePlayServicesAvailable SUCCESS\",\n\t\t\t// Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tGooglePlayServicesUtil.getErrorDialog(resultCode, this, RQS_GooglePlayServices);\n\t\t}\n\n\t}", "private boolean CheckGooglePlayServices() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int available = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (available != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(available)) {\n googleApiAvailability.getErrorDialog(this, available,0).show();\n }\n return false;\n }\n return true;\n }", "public boolean checkGooglePlayServices() {\r\n // Retrieve an instance of the GoogleApiAvailability object\r\n GoogleApiAvailability api = GoogleApiAvailability.getInstance();\r\n\r\n // Check whether the device includes GooglePlayServices\r\n int resultCode = api.isGooglePlayServicesAvailable(this);\r\n if (resultCode == ConnectionResult.SUCCESS) {\r\n // If it does, return true\r\n return true;\r\n } else if (api.isUserResolvableError(resultCode)) {\r\n // If Google Play Services are available to download to the user, show the error Dialog\r\n api.showErrorDialogFragment(this, resultCode, 9000);\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "public interface GGeocodeAdvancedResultListener\r\n{\r\n\t/**\r\n\t * Called when the geocode operation is successful, returns a set of \"matching\" results\r\n\t * @param result\r\n\t */\r\n\tpublic void onSuccess(GGeocodeResult result);\r\n\t\r\n\t/**\r\n\t * Called when the geocode operation fails\r\n\t *\r\n\t */\r\n\tpublic void onFail(int statusCode, String address);\r\n}", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }", "@Override\r\n protected void onStart() {\n super.onStart();\r\n mGoogleApiClient.connect();\r\n }", "private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(\"LoginActivity\", \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "@Override\n public void onStart() {\n mGoogleApiClient.connect();\n super.onStart();\n }", "public static void openGooglePlayServicesInGooglePlay(final Context context) {\n\t Uri uri = Uri.parse(\"market://details?id=com.google.android.gms\");\n\t Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);\n\t try {\n\t \tcontext.startActivity(myAppLinkToMarket);\n\t } catch (ActivityNotFoundException e) {\n\t Toast.makeText(context, \"Unable to find app in Google Play\", Toast.LENGTH_SHORT).show();\n\t }\n\t}", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n // An unresolvable error has occurred and a connection to Google APIs\n // could not be established. Display an error message, or handle\n // the failure silently\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getApplicationContext(), \"This device is not supported.\", Toast.LENGTH_LONG).show();\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"LoginActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(getContext());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, getActivity(),\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n getActivity().finish();\n }\n return false;\n }\n return true;\n }", "public boolean isGooglePlayAvailable() {\n GoogleApiAvailability api= GoogleApiAvailability.getInstance();\n int isAvailable= api.isGooglePlayServicesAvailable(this);\n\n if (isAvailable == ConnectionResult.SUCCESS) {\n return true;\n }else if (api.isUserResolvableError(isAvailable)){\n Dialog dialog= api.getErrorDialog(this, isAvailable, 0);\n dialog.show();\n }else {\n Toast.makeText(this,\"Can't connect to Play Services\",Toast.LENGTH_LONG).show();\n }\n return false;\n }", "@Override\n protected void onResume() {\n Log.d(TAG, \"MyTracks.onResume\");\n serviceConnection.bindIfRunning();\n super.onResume();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n // Decide what to do based on the original request code\n switch (requestCode) {\n case CONNECTION_FAILURE_RESOLUTION_REQUEST:\n // If the result code is OK, try to connect again\n log(\"Resolution result code is: \" + resultCode);\n switch (resultCode) {\n case Activity.RESULT_OK:\n // Try to connect again here\n mGoogleApiClient.connect();\n break;\n }\n break;\n }\n }", "public boolean googleServicesAvailable() {\n GoogleApiAvailability api = GoogleApiAvailability.getInstance();\n int isAvailable = api.isGooglePlayServicesAvailable(this);\n\n if (isAvailable == ConnectionResult.SUCCESS) {\n return true;\n } else if (api.isUserResolvableError(isAvailable)) {\n Dialog dialog = api.getErrorDialog(this, isAvailable, 0);\n dialog.show();\n } else {\n Toast.makeText(this, \"Can't connect to play services\", Toast.LENGTH_LONG).show();\n }\n return false;\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n\n }", "public boolean isGooglePlayServicesAvailable() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int status = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (status != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(status)) {\n googleApiAvailability.getErrorDialog(this, status, 2404).show();\n }\n return false;\n }\n return true;\n }", "public void showGoogleErrorDialog(ConnectionResult connectionResult) {\n try {\n // Create a fragment for the error dialog\n connectionResult.startResolutionForResult(this, GoogleAPIConnectionConstants.REQUEST_RESOLVE_ERROR);\n }\n catch (IntentSender.SendIntentException e) {\n Log.e(MainActivity.TAG,\"SendIntentException occurred.\");\n checkGoogleApiAvailability();\n }\n }" ]
[ "0.68970877", "0.6864345", "0.6864345", "0.6864345", "0.6862086", "0.6818521", "0.6386026", "0.63405037", "0.6249903", "0.6084009", "0.59022385", "0.58945215", "0.5889601", "0.5824917", "0.5824464", "0.57920486", "0.5789564", "0.57702065", "0.576941", "0.57514757", "0.5744219", "0.57418025", "0.57268673", "0.57174385", "0.5715545", "0.5687089", "0.56796646", "0.56721", "0.56648207", "0.56544554", "0.56502575", "0.5628223", "0.5628223", "0.56216985", "0.5609115", "0.5606525", "0.5603394", "0.56018174", "0.5597831", "0.5597831", "0.5597831", "0.5597831", "0.5597831", "0.5597831", "0.5597831", "0.55909306", "0.5585023", "0.5583321", "0.5573505", "0.5570494", "0.55591774", "0.5546459", "0.55382985", "0.553801", "0.55330265", "0.5521775", "0.55133873", "0.55098796", "0.5505874", "0.55036277", "0.5487575", "0.5479305", "0.5476463", "0.5475925", "0.5475214", "0.5475214", "0.54595727", "0.5456308", "0.5446385", "0.5441883", "0.54351294", "0.5433402", "0.54327756", "0.54314893", "0.5431046", "0.54196227", "0.5414073", "0.54132533", "0.5410841", "0.54077226", "0.539193", "0.5383138", "0.5383138", "0.5383115", "0.5374358", "0.537427", "0.5365215", "0.5364439", "0.53552693", "0.53548115", "0.53548115", "0.5341437", "0.5339672", "0.5314596", "0.5309759", "0.5300151", "0.5290215", "0.52883863", "0.52879363", "0.5274913", "0.52643377" ]
0.0
-1
The userID of the current user
public CommandToRetrieveFriendList(int userID) { this.userID = userID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public long getUserID() {\r\n\t\treturn userID;\r\n\t}", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public String getUserID() {\r\n return userID;\r\n }", "public String getUserID() {\n return userID;\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public java.lang.String getUserID() {\n return userID;\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "protected long getUserID() {\n return userID;\n }", "private String getCurrentUserId()\n {\n FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();\n if (currentUser != null)\n {\n return currentUser.getUid();\n }\n return null;\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}", "public String getUserid() {\n\t\treturn userid;\n\t}", "public int getUserID()\n {\n return this.userID;\n }", "public static int getCurrentUserId() {\n return session.get().getUserId();\n }", "public static Number getCurrentUserID() {\n User currentUser = getCurrentUser();\n if (currentUser != null)\n return currentUser.id;\n return null;\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public java.lang.String getUserid() {\n return userid;\n }", "public java.lang.String getUserID() {\r\n return localUserID;\r\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public int getUserID()\n {\n return userID;\n }", "public long getUserId() {\n return instance.getUserId();\n }", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "public Integer getUserid() {\n\t\treturn this.userid;\n\t}", "public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }", "public static String getUserId() {\n return FirebaseAuth.getInstance().getUid();\n }", "public long getUserId() {\n return userId_;\n }", "public long getUserId() {\n return userId_;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "String getUserId();", "String getUserId();", "public int getUserId() {\n return instance.getUserId();\n }", "public java.lang.String getUserId() {\n return instance.getUserId();\n }", "long getUserId();", "long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUser_id() {\n\t\treturn _forumUser.getUser_id();\n\t}", "public long getUserId() {\n return userId_;\n }", "public String getUserId()\n\t{\n\t\treturn userId;\n\t}", "@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}", "@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}", "@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}" ]
[ "0.8581326", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.84605926", "0.8459733", "0.8459733", "0.8449043", "0.84256047", "0.84256047", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.8425004", "0.83073324", "0.82763284", "0.8270866", "0.8262751", "0.82168937", "0.8209148", "0.8209148", "0.8209148", "0.8189435", "0.8180548", "0.81691515", "0.8087957", "0.8085738", "0.8036579", "0.8031285", "0.80297613", "0.80283296", "0.8021326", "0.8018685", "0.80041546", "0.7994304", "0.7992164", "0.7992164", "0.7940789", "0.7926931", "0.7913009", "0.7913009", "0.7913009", "0.78934586", "0.7888028", "0.78866255", "0.78866255", "0.78866255", "0.78861916", "0.7869811", "0.78644013", "0.78644013", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.78621924", "0.7860687", "0.7860687", "0.7848248", "0.783814", "0.78285587", "0.78285587", "0.78260344", "0.78260344", "0.78260344", "0.78260344", "0.7821981", "0.78219366", "0.78092664", "0.7801703", "0.7801703", "0.7801703" ]
0.0
-1
A list of the friends associated with the given user
@Override public String getResult() { String ret = ""; for (Friend x : Session.getInstance().getPerson().getFriends()) { if (!ret.equals("")) { ret = ret + ","; } ret = ret + x.getDisplayName(); } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserFriendsEntry getUserFriendsList(Integer user_id);", "public User[] getFriends(int user) {\n\t\treturn users.get(user).friends.toArray(new User[0]);\n\t}", "UserFriendsFriendsEntry getFriendsFriends(Integer user_id);", "List<UserInfo> getFriendsOfMine(Integer user_id);", "public List<Friend> Get_All_Friends(String username) {\n\t\treturn this.Get_Friends_By_Query(username, \"\");\r\n\t}", "public static FriendsList getFriendsList(String username)\r\n\t{\r\n\t\tFriendsList friends = friendsLists.get(username);\r\n\t\treturn friends;\r\n\t}", "public void getFriendsList(User user, AsyncHttpResponseHandler handler) {\n if (user == null) {\n return;\n }\n\n String apiUrl = getApiUrl(\"friends/ids.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"user_id\", String.valueOf(user.getUid()));\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "@Transactional\n public static Result friends(String userAuthToken)\n {\n try\n {\n User user = UserDao.getUserByAuthToken(userAuthToken);\n if (user != null)\n {\n UserFriendsResponse userFriendsResponse = new UserFriendsResponse(true, null);\n userFriendsResponse.friends = new ArrayList<UserFriendsResponse.Friend>();\n for (User userOfFriend: user.getFriends())\n {\n UserFriendsResponse.Friend responseFriend = new UserFriendsResponse.Friend();\n responseFriend.userId = userOfFriend.getIdHash();\n responseFriend.name = userOfFriend.facebookUser.name;\n responseFriend.gender = userOfFriend.facebookUser.gender;\n responseFriend.pictureUrl = userOfFriend.facebookUser.pictureUrl;\n userFriendsResponse.friends.add(responseFriend);\n }\n return ok(toJson(userFriendsResponse));\n }\n else\n {\n UserFriendsResponse userFriendsResponse =\n new UserFriendsResponse(false, \"Could not find auth token and/or user. Try logging in again.\");\n return badRequest(toJson(userFriendsResponse));\n }\n }\n catch (Exception e)\n {\n Logger.error(\"Error pulling user friend info from DB\", e);\n UserFriendsResponse userFriendsResponse = new UserFriendsResponse(false, \"Unexpected error\");\n return internalServerError(toJson(userFriendsResponse));\n }\n }", "public static Task<QuerySnapshot> getFriendsList(String userId) {\n // get a list of the friends ids of a user\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_FRIENDS_COLLECTION)\n .get();\n }", "@Override\n\tpublic ArrayList<UserProfile> viewAllFriends(String userId) {\n\t\tArrayList<UserProfile> arrUserProfile = new ArrayList<UserProfile>();\n\t\tUserProfile profile;\n\t\tUserProfileService userProfileService = new UserProfileService();\n\t\t\n\t\tconn = ConnectionFactory.getConnection();\n\n\t\ttry {\n\t\t\tString sql = \"select user_id_2 from friendship where user_id_1=? and status='Y'\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, userId);\n\n\t\t\tset = pstmt.executeQuery();\n\n\t\t\twhile(set.next()){\n\t\t\t\t//Retrieve by column name\n\t\t\t\tprofile = userProfileService.viewUserProfile(set.getString(\"user_id_2\"));\n\t\t\t\t\n\t\t\t\tarrUserProfile.add(profile);\n\t\t\t}\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\n\t\treturn arrUserProfile;\n\t}", "public static FriendsList getFriendsList() {\r\n\t\treturn friendsList;\r\n\t}", "@Transactional\n\tpublic ArrayList<Friend> getAllFriendRequestsByUser( int user_id) {\n\t\t\n\n\t\tSession session = sessionFactory.openSession();\n\t\tArrayList<Friend> myfriends=(ArrayList<Friend>)session.createQuery(\"from Friend where friendid=\"+user_id+\" and status='P'\").list();\n\t\tsession.close();\n\t\treturn myfriends;\n\t}", "public List<User> formFollowingList(User user) throws UserException, FollowerException {\n\t\tList<User> following = new ArrayList<User>();\n\t\tList<BigInteger> listfo = followerDao.getFollowersbyUser(user);\n\t\tif(listfo!=null) {\n\t\tfor(BigInteger i: listfo)\n\t {\n\t for(User u:userDao.getAllUser()) {\n\t if(u.getPersonID()==i.longValue()) {\n\t following.add(u);\n\t }\n\t }\n\t }\n\t\t}\n\t\treturn following;\n\t\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/friendship/{userId}\")\n public ResponseEntity<ArrayList<Person>> getFriends(@PathVariable(value = \"userId\") Long userId) {\n // handle invalid Id values\n if (!isValidIdValue(userId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n ArrayList<Person> friends = friendshipService.getFriends(userId);\n return new ResponseEntity(friends, null, HttpStatus.OK);\n\n }", "public Roster getListofFriends(){\n\n\t\treturn friendsList;\n\t}", "public void friends( int user1, int user2 ) {\n\n\t//Get each user from list of all users\n FacebookUser A = users.get(user1);\n FacebookUser B = users.get(user2);\n\n //Every time a new friendship is added, circles change\n this.circlesUpToDate = false;\n\n //Add userA to userB's friends list and vice versa\n A.friendsList.add(B);\n B.friendsList.add(A);\n }", "java.util.List<com.vine.vinemars.net.pb.SocialMessage.FriendObj> \n getFriendListList();", "public PagedList<String> getFriendListIds(String userId) {\n return facebook.friendOperations().getFriendIds(userId);\n }", "List<User> getFollowersForUser(User user);", "@Transactional\n public static Result friendsToInvite(String userAuthToken)\n {\n try\n {\n User user = UserDao.getUserByAuthToken(userAuthToken);\n if (user != null)\n {\n UserFriendsToInviteResponse userFriendsToInviteResponse = new UserFriendsToInviteResponse(true, null);\n userFriendsToInviteResponse.friends = new ArrayList<UserFriendsToInviteResponse.Friend>();\n for (FacebookUser facebookUserOfFriend: user.facebookUser.getFriendFacebookUsers())\n {\n if (facebookUserOfFriend.user == null)\n {\n UserFriendsToInviteResponse.Friend responseFriend = new UserFriendsToInviteResponse.Friend();\n responseFriend.idFacebook = facebookUserOfFriend.idFacebook;\n responseFriend.name = facebookUserOfFriend.name;\n responseFriend.gender = facebookUserOfFriend.gender;\n responseFriend.pictureUrl = facebookUserOfFriend.pictureUrl;\n userFriendsToInviteResponse.friends.add(responseFriend);\n }\n }\n return ok(toJson(userFriendsToInviteResponse));\n }\n else\n {\n UserFriendsToInviteResponse userFriendsToInviteResponse =\n new UserFriendsToInviteResponse(false,\n \"Could not find auth token and/or user. Try logging in again.\");\n return badRequest(toJson(userFriendsToInviteResponse));\n }\n }\n catch (Exception e)\n {\n Logger.error(\"Error pulling user FB invite friend info from DB\", e);\n UserFriendsToInviteResponse userFriendsToInviteResponse =\n new UserFriendsToInviteResponse(false, \"Unexpected error\");\n return internalServerError(toJson(userFriendsToInviteResponse));\n }\n }", "@RequestMapping(value = {\"/my/online/friends/{id}\"}, method = RequestMethod.GET)\n\t\tpublic ResponseEntity<List<User>> fetchOnlineFriends(@PathVariable (\"id\") int userId) {\n\t\t\tSystem.out.println(\"Fetching online friends\");\n\t\t\t\n\t\t\tList<User> users = userDAO.fetchOnlineFriends(userId);\n\t\t\tList<User> onlineFriends = new ArrayList<>();\n\t\t\tfor(User user1 : users) {\n\t\t\t\tif(user1.getId() != userId) {\n\t\t\t\t\tonlineFriends.add(user1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn new ResponseEntity<List<User>>(onlineFriends, HttpStatus.OK);\n\t\t}", "List<User> getFollowingForUser(User user);", "private void populateFriendsListView(List<ParseUser> userFriends) {\n\t\tfriendsList.clear();\n\t\tfacebookIdFirstNameMap.clear();\n\t\tfor(ParseUser friend : userFriends){\n\t\t\tString imageUrl = String.format(StealTheCheeseApplication.FRIEND_CHEESE_COUNT_PIC_URL, friend.getString(\"facebookId\"));\n\t\t\tfriendsList.add(new PlayerViewModel(friend.getString(\"facebookId\"), \n\t\t\t\t\t\t\t\t\t\t\t\timageUrl,\n\t\t\t\t\t\t\t\t\t\t\t\tlocalCountMap.get(friend.getString(\"facebookId\")), \n\t\t\t\t\t\t\t\t\t\t\t\tlocalShowMeMap.get(friend.getString(\"facebookId\")),\n\t\t\t\t\t\t\t\t\t\t\t\tfalse));\n\t\t\t\n\t\t\tfacebookIdFirstNameMap.put(friend.getString(\"facebookId\"), friend.getString(\"firstName\"));\n\t\t}\n\t\t\n\t\tCollections.sort(friendsList, chain);\n\t\tfriendsListAdapter.notifyDataSetChanged(); \n\t}", "private void getUsersFavorites(String user) throws TwitterException {\n System.out.println(\"##########Getting \".concat(user).concat(\" Likes##########\"));\n List<Status> tweets = twitter.getFavorites(user);\n List<User> topics = new LinkedList<>();\n for (Status status : tweets) {\n\n User userLike = status.getUser();\n if (!user.equals(userLike.getScreenName()))\n topics.add(status.getUser());\n\n }\n addEdgesToGraph(user, topics);\n }", "public java.util.List<com.vine.vinemars.net.pb.SocialMessage.FriendObj> getFriendListList() {\n return friendList_;\n }", "private void getFriends() {\n final String url = HomeView.HOST_URL + \"/match/friend/\";\n RequestQueue que = Volley.newRequestQueue(this);\n user.setFriendMatches(new ArrayList<UserAccount>());\n JsonObjectRequest jsonReq = new JsonObjectRequest(Request.Method.GET,\n url + user.getId(), null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONArray friends = (JSONArray) response.get(\"friends\");\n MatchView.parseEdges(friends, user.getFriendMatches());\n initMessageBoard();\n } catch (JSONException e) {\n Log.d(TAG, \"failed to parse friend json\");\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.getMessage());\n error.printStackTrace();\n }\n });\n que.add(jsonReq);\n }", "public static void addFriendsList(String username, FriendsList friends)\r\n\t{\r\n\t\tfriendsLists.put(username, friends);\r\n\t}", "public ArrayList<User> getFollowing(int userID, SQLiteDatabase db){\n if(db == null) db = this.getWritableDatabase();\n UserDAO userDAO = new UserDAO(context);\n\n ArrayList<User> followingList = new ArrayList<>();\n\n try {\n String getQuery = String.format(\n \"SELECT * FROM User_has_Friends uhf \" +\n \"WHERE uhf.userID == '%s' AND uhf.pending == 0\", userID);\n\n Cursor cursor = db.rawQuery(getQuery, null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n //Check if not pending\n if (cursor.getInt(2) == 0){\n followingList.add( userDAO.get(cursor.getInt(1 ), db) );\n }\n cursor.moveToNext();\n }\n }\n return followingList;\n } catch (Exception e) {\n Log.d(\"SQL\", e.getMessage());\n return null;\n }\n }", "public FriendList getFriendListByName(String name);", "public java.util.List<protocol.Data.Friend.FriendItem> getFriendList() {\n return friend_;\n }", "java.util.List<People>\n getFriendListList();", "public java.util.List<protocol.Data.Friend.FriendItem> getFriendList() {\n if (friendBuilder_ == null) {\n return java.util.Collections.unmodifiableList(friend_);\n } else {\n return friendBuilder_.getMessageList();\n }\n }", "public User usersUserIdFriendsGet (String userId) throws TimeoutException, ExecutionException, InterruptedException, ApiException {\n Object postBody = null;\n // verify the required parameter 'userId' is set\n if (userId == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'userId' when calling usersUserIdFriendsGet\",\n new ApiException(400, \"Missing the required parameter 'userId' when calling usersUserIdFriendsGet\"));\n }\n\n // create path and map variables\n String path = \"/users/{userId}/friends\".replaceAll(\"\\\\{\" + \"userId\" + \"\\\\}\", apiInvoker.escapeString(userId.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n String[] contentTypes = {\n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { \"Authorization\" };\n\n try {\n String localVarResponse = apiInvoker.invokeAPI (basePath, path, \"GET\", queryParams, postBody, headerParams, formParams, contentType, authNames);\n if (localVarResponse != null) {\n return (User) ApiInvoker.deserialize(localVarResponse, \"\", User.class);\n } else {\n return null;\n }\n } catch (ApiException ex) {\n throw ex;\n } catch (InterruptedException ex) {\n throw ex;\n } catch (ExecutionException ex) {\n if (ex.getCause() instanceof VolleyError) {\n VolleyError volleyError = (VolleyError)ex.getCause();\n if (volleyError.networkResponse != null) {\n throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage());\n }\n }\n throw ex;\n } catch (TimeoutException ex) {\n throw ex;\n }\n }", "public java.util.List<People> getFriendListList() {\n return friendList_;\n }", "public com.vine.vinemars.net.pb.SocialMessage.FriendObjOrBuilder getFriendListOrBuilder(\n int index) {\n return friendList_.get(index);\n }", "public List<User> getPotFriends() {\n //friends;\n compareMajor();\n compareClasses();\n compareLanguage();\n Collections.sort(friends);\n return friends;\n }", "public static ArrayList<Friend> getFriends(String accessToken) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n try {\n JsonObject friendsJson = getWebService(params, FRIENDS_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"FRIENDS RESULT: \" + friendsJson.toString());\n if (friendsJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<Friend> friendList = gson.fromJson(\n friendsJson.get(\"friends\"),\n new TypeToken<ArrayList<Friend>>() {\n }.getType());\n return friendList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when getting friends - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when getting friends\", e);\n return null;\n } // end try-catch\n }", "public User[] getCommonFriends(int user1, int user2) {\n\t\tHashSet<User> set=new HashSet<User>();\n\t\tset.addAll(users.get(user1).friends);\n\t\tset.retainAll(users.get(user2).friends);\n\t\treturn set.toArray(new User[0]);\n\t\t\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/friendship/{userId}/suggestions\")\n public ResponseEntity<ArrayList<Person>> getFriendSuggestions(@PathVariable(value = \"userId\") Long userId) {\n if (!isValidIdValue(userId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n ArrayList<Person> friendSuggestions =(ArrayList<Person>) friendshipService.getFriendSuggestions(userId);\n return new ResponseEntity(friendSuggestions, null, HttpStatus.OK);\n\n }", "@GET\n\t@Path(\"/getallfriends\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List getAllFriends() {\n\t\tList allfrnds = fcs.getAllFriends();\n\n\t\t// for (int i = 0; i < allfrnds.size(); i++) {\n\t\t// Friend f=(Friend)allfrnds.get(i);\n\t\t// System.out.println(f.id+\"===>\"+f.name);\n\t\t// }\n\n\t\treturn allfrnds;\n\t}", "public static void addFriendToList(String username, String friend)\r\n\t{\r\n\t\tFriendsList friends = friendsLists.get(username);\r\n\t\tif(friends == null)\r\n\t\t{\r\n\t\t\t// make sure we don't have a null friends list\r\n\t\t\tfriends = new FriendsList();\r\n\t\t}\r\n\t\t\r\n\t\t// add the friend to the list\r\n\t\tfriends.add(friend);\r\n\t\t\r\n\t\t// put the friends list back into the HashMap\r\n\t\taddFriendsList(username, friends);\r\n\t}", "public FriendList[] getFriendsLists();", "@Override\n public Set<User> usersThatFollow(String usernname) {\n return userDataMapper.getUsersThatFollow(getUser(usernname).getId());\n }", "protected void getfriendlist(){\n\n String myfacebookid = DataUtils.getPreference(Const.FACEBOOKID,\"\");\n\n new GraphRequest(\n token,\n //\"/\" + myfacebookid + \"/taggable_friends\", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends\n \"/me/friends\",\n null,\n HttpMethod.GET,\n new GraphRequest.Callback() {\n public void onCompleted(GraphResponse response) {\n /* handle the result */////////////////////////////////////////////////////////////////////\n if (response.getError() != null) {\n // get personal information\n }else {\n try {\n JSONArray rawPhotosData = response.getJSONObject().getJSONArray(\"data\");\n JSONArray useappfriend = new JSONArray();\n for (int j = 0; j < rawPhotosData.length(); j++) {\n //save whatever data you want from the result\n JSONObject photo = new JSONObject();\n photo.put(\"id\", ((JSONObject) rawPhotosData.get(j)).get(\"id\"));\n photo.put(\"name\", ((JSONObject) rawPhotosData.get(j)).get(\"name\"));\n useappfriend.put(photo);\n\n }\n\n String struseappfriend = useappfriend.toString().trim();\n DataUtils.savePreference(Const.USE_APP_FRIENDS, struseappfriend);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n isfriend = 1;\n if(istagglefriend == 1 && islogin == 1){\n gotoReadyPage();\n }\n\n// ////////////////////////////////////////////////////////////////////////////////////////////\n//\n//\n// GraphResponse rep = response;\n// new GraphRequest(\n// token,\n// //\"/\" + myfacebookid + \"/taggable_friends\", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends\n// \"/me/friendlists\",\n// null,\n// HttpMethod.GET,\n// new GraphRequest.Callback() {\n// public void onCompleted(GraphResponse response) {\n// /* handle the result */\n// GraphResponse rep = response;\n//\n// ////////////////////////////////////////////////////////////\n// ////////////////// all facebook users///////////////////////\n//\n// try {\n// JSONObject json = response.getJSONObject();\n//\n// if(json.has(\"data\")){\n// JSONArray rawPhotosData =json.getJSONArray(\"data\");\n// JSONArray facebookfriend = new JSONArray();\n// for(int j=0; j<rawPhotosData.length();j++){\n// //save whatever data you want from the result\n// JSONObject photo = new JSONObject();\n// photo.put(\"id\", ((JSONObject)rawPhotosData.get(j)).get(\"id\"));\n// photo.put(\"name\",((JSONObject)rawPhotosData.get(j)).get(\"name\"));\n// photo.put(\"icon\", ((JSONObject)rawPhotosData.get(j)).get(\"picture\"));\n// facebookfriend.put(photo);\n// }\n// String strfacebookfriend = facebookfriend.toString().trim();\n// DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend);\n//\n// }else{\n//\n// }\n// } catch (JSONException e) {\n// Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show();\n// e.printStackTrace();\n// }\n//\n// // goto setting scrreen.\n// Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n// startActivity(intent);\n// overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n// //\n// finish();\n// ////////////////////////////////////////////////////////////\n// }\n// }\n// ).executeAsync();\n }\n }\n\n ).executeAsync();\n }", "com.vine.vinemars.net.pb.SocialMessage.FriendObj getFriendList(int index);", "public java.util.List<? extends com.vine.vinemars.net.pb.SocialMessage.FriendObjOrBuilder> \n getFriendListOrBuilderList() {\n return friendList_;\n }", "@Override\r\n\tpublic String getUserFriends(Context _in_context, String _in_data) {\n\t\treturn\"\";\r\n\t}", "@Override\r\n\tpublic String getUserFriends(Context _in_context, String _in_data) {\n\t\treturn\"\";\r\n\t}", "@RequestMapping(value=\"/getListOfMyFriends\", method=RequestMethod.GET)\r\n\tpublic ResponseEntity<List<Friend>> getListOfMyFriends()\r\n\t{\r\n\t\tlogger.debug(\"->->->->-> Inside getListOfMyFriends method ->->->->->\");\r\n\t\tString loggedInUserName = (String) httpSession.getAttribute(\"loggedInUserName\");\r\n\t\tlogger.debug(\"UserName :\"+loggedInUserName);\r\n\t\tList<Friend> myFriends = new ArrayList<Friend>();\r\n\t\t\r\n\t\t// To check if the User is Logged In or not\r\n\t\tif(loggedInUserName==null){\r\n\t\t\tfriend.setErrCode(\"404\");\r\n\t\t\tfriend.setErrMessage(\"Please login to know who all are your friends!\");\r\n\t\t\tmyFriends.add(friend);\r\n\t\t\treturn new ResponseEntity<List<Friend>>(myFriends,HttpStatus.OK);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.debug(\"getting friends of : \" + loggedInUserName);\r\n\t\tmyFriends = friendDAO.getListOfMyFriends(loggedInUserName);\r\n\t\t\r\n\t\t// To check if the User has friends or not\r\n\t\tif (myFriends.isEmpty()) {\r\n\t\t\tlogger.debug(\"Friends does not exsit for the user : \" + loggedInUserName);\r\n\t\t\tfriend.setErrCode(\"404\");\r\n\t\t\tfriend.setErrMessage(\"You does not have any friends\");\r\n\t\t\tmyFriends.add(friend);\r\n\t\t}\r\n\t\t\r\n\t\treturn new ResponseEntity<List<Friend>>(myFriends,HttpStatus.OK);\r\n\t}", "public Set<String> getFriends(String nickname) throws NoSuchElementException {\n // Not using containsKey for concurrency safety,\n // really not needed in this particular case but as a good practice.\n if (nickname == null) throw new NoSuchElementException(\"The user must be a valid one\");\n User user = this.onlineUsers.get(nickname);\n if (user != null) {\n return user.getFriends();\n }\n throw new NoSuchElementException(\"The user is not currently online\");\n }", "public void followOrFriendUser(Author user) {\n\n switch (mSearchType) {\n case FOLLOW:\n mUser.addUserToList(Author.AuthorLists.FOLLOWING, user.firebaseId);\n user.addUserToList(Author.AuthorLists.FOLLOWERS, mUser.firebaseId);\n\n break;\n\n case FRIEND:\n mUser.addUserToList(Author.AuthorLists.SENT_REQUESTS, user.firebaseId);\n user.addUserToList(Author.AuthorLists.RECEIVED_REQUESTS, mUser.firebaseId);\n\n break;\n }\n }", "public Webpage[] getFathers(String user) {\n\t\tArrayList<Webpage> pages = new ArrayList<Webpage>();\n\t\tWebpage[] fathers = getFathers();\n\t\tfor (int i = 0; i < fathers.length; i++) {\n\t\t\tif(fathers[i].getVisitorByName(user) != null) {\n\t\t\t\tpages.add(fathers[i]);\n\t\t\t}\n\t\t}\n\t\tWebpage[] result = new Webpage[pages.size()];\n\t\treturn pages.toArray(result);\n\t}", "public List<Friend> Get_Friends_By_Query(String username,String queryName) {\n\t\tString sql_where = \"userid in (select userid from user where name='\"+username+\"')\";\r\n\t\tif(queryName!=null&&queryName.length()>0)\r\n\t\t\tsql_where = sql_where+\" and name like '%\"+queryName+\"%'\";\r\n\t\tList<Friend> result = new LinkedList();\r\n\t\tList<Object> friends = DB.ObjectFactory.getFriendDao().GetBy(sql_where);\r\n\t\tfor(Object o:friends){\r\n\t\t\tFriend frd = (Friend)o;\r\n\t\t\tresult.add(frd);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public com.vine.vinemars.net.pb.SocialMessage.FriendObj getFriendList(int index) {\n return friendList_.get(index);\n }", "@Override\n public Set<User> followersOfUser(String usernname) {\n return userDataMapper.getFollowersOfUser(getUser(usernname).getId());\n }", "public static ArrayList<Restaurant> getFav(Long idUser) {\n\t\tArrayList<Favourite> allFav=loadFavourite();\n\t\tArrayList<Restaurant> allRes=RestaurantDao.loadRestaurants();\n\t\tArrayList<Restaurant> returnFavRes=new ArrayList<>();\n\t\tfor(Favourite f:allFav) {\n\t\t\tif(f.getUserId().equals(idUser)) {\n\t\t\t\tfor(Restaurant r:allRes) {\n\t\t\t\t\tif(f.getIdRes().equals(r.getId())) {\n\t\t\t\t\t\treturnFavRes.add(r);\n\t\t\t\t\t\tSystem.out.println(\"restoran\"+r.getName() +\"\" +r.getAddress());\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn returnFavRes;\n\t}", "public com.vine.vinemars.net.pb.SocialMessage.FriendObj getFriendList(int index) {\n return friendList_.get(index);\n }", "public java.util.List<com.vine.vinemars.net.pb.SocialMessage.FriendObj> getFriendListList() {\n return java.util.Collections.unmodifiableList(friendList_);\n }", "POGOProtos.Rpc.GetFriendsListOutProto.Result getResult();", "public java.util.List<? extends protocol.Data.Friend.FriendItemOrBuilder> \n getFriendOrBuilderList() {\n if (friendBuilder_ != null) {\n return friendBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(friend_);\n }\n }", "public PagedList<User> getFriendListProfiles(String userId) {\n return this.getFriendListProfiles(userId, null);\n }", "public ArrayList<Profile> getFriends()\n {\n\n return friendslist;\n }", "public java.util.List<? extends PeopleOrBuilder>\n getFriendListOrBuilderList() {\n return friendList_;\n }", "public PagedList<User> getFriendListProfiles() {\n return this.getFriendListProfiles(\"me\", null);\n }", "java.util.List<POGOProtos.Rpc.GetFriendsListOutProto.FriendProto> \n getFriendList();", "public Builder addFriendList(com.vine.vinemars.net.pb.SocialMessage.FriendObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n\n return this;\n }", "public java.util.List<? extends protocol.Data.Friend.FriendItemOrBuilder> \n getFriendOrBuilderList() {\n return friend_;\n }", "@Override\n\tpublic String show(String userName) {\n\t\tShowFriendData data = new ShowFriendData();\n\t\tArrayList<String> doList = data.finds(\"F\"+data.find(userName)) ;\n\t\tString list = \"\" ;\n\t\tfor(String temp : doList){\n\t\t\tlist = list+temp+\";\";\n\t\t}\n\t\treturn list;\n\t}", "java.util.List<protocol.Data.Friend.FriendItem> \n getFriendList();", "public List<FollowItem> queryFollowsByUserId(Integer userId)\r\n {\r\n String sql=\"select * from Follows where userid =\"+ userId + \";\";\r\n return query(sql);\r\n }", "@GetMapping(\"/{id}/allfriends\")\n\tpublic String allFriend(HttpSession session, @ModelAttribute(\"friend\")Friend friend, Model viewModel, @PathVariable(\"id\")Long uid) {\n\t\tLong userId = (Long)session.getAttribute(\"userId\");\n\t\tUser user = this.uServ.findUserById(userId);\n\t\tviewModel.addAttribute(\"user\", user);\n\t\t\n\t\tList<Friend> allFrnd = user.getFriend();\n\t\tviewModel.addAttribute(\"allFrnd\", allFrnd);\n\t\t\n\t\tList<Friend> top8 = this.mServ.findTopEightOfOwner(user);\n\t\tviewModel.addAttribute(\"top8\", top8);\n\t\treturn \"AllFriend.jsp\";\n\t}", "public FriendList createFriendList();", "@SuppressWarnings(\"unchecked\")\n\t\tpublic String getFriends(String name){\n\t\t\tIterator<JSONObject> iterator = allFriends.iterator();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tJSONObject u=iterator.next();\n\t\t\t\tString nameOfUser = (String) u.get(\"nick\");\n\t\t\t\t//quando trovo l'utente stampo\n\t\t\t\tif(nameOfUser.equals(name)){\n\t\t\t\t\tString f = (String) u.get(\"friends\");\n\n\t\t\t\t\treturn f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn \"\";\n\t\t}", "private void displayFriends(Iterator<String> friends) {\n\t\tdouble x = getWidth() / 2;\n\t\tdouble y = nameY + IMAGE_MARGIN;\n\t\tGLabel profileFriends = new GLabel(\"Friends:\");\n\t\tprofileFriends.setFont(PROFILE_FRIEND_LABEL_FONT);\n\t\tadd(profileFriends, x, y);\n\t\tIterator<String> it = friends;\n\t\tdouble listX = getWidth() / 2;\n\t\tdouble listY = y;\n\t\twhile (it.hasNext()) {\n\t\t\tString friendName = it.next();\n\t\t\tGLabel friendList = new GLabel(friendName);\n\t\t\tfriendList.setFont(PROFILE_FRIEND_FONT);\n\t\t\tlistY = listY + friendList.getAscent();\n\t\t\tadd(friendList, listX, listY);\n\t\t}\n\n\t}", "People getFriendList(int index);", "@GetMapping(\"/{id}/allfriends\")\n\tpublic String allFriend(HttpSession session, @ModelAttribute(\"friend\")Friend friend, Model viewModel, @PathVariable(\"id\")Long uid) {\n\t\t\n\t\tUser user = this.uServ.findUserById(uid);\n\t\tviewModel.addAttribute(\"user\", user);\n\t\t\n\t\tList<Friend> allFrnd = user.getFriend();\n\t\tviewModel.addAttribute(\"allFrnd\", allFrnd);\n\t\t\n\t\tTop8 top8 = this.mServ.findTopEightOfOwner(user);\n\t\tviewModel.addAttribute(\"top8\", top8);\n\t\treturn \"AllFriend.jsp\";\n\t}", "public FriendsBuilder friends() {\n return new FriendsBuilder(this);\n }", "@Override\n\tpublic List<User> getAllFans(String uid) {\n\t\tList<User> res = new ArrayList<User>();\n\t\tfor (int i = 0; i < MaxPage; i++) {\n\t\t\ttry {\n\t\t\t\tUserWapper uw = fm.getFollowersById(uid, MaxFan, MaxFan * i);\n\t\t\t\tif (uw == null || uw.getUsers() == null\n\t\t\t\t\t\t|| uw.getUsers().size() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tList<User> userSegment = tranferUser(uw.getUsers());\n\t\t\t\tres.addAll(userSegment);\n\t\t\t} catch (WeiboException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tlog.error(WeiboExceptionHandle.getErrorString(e, \"获取全部用户\" + uid\n\t\t\t\t\t\t+ \"粉丝出错\"));\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public ArrayList<String> getFriends(){\n return friends;\n }", "@Override\n\tpublic List<FacebookUser> friendProfileService(FacebookUser fu) {\n\t\t\n\t\treturn id.friendProfileDAO(fu);\n\t}", "@GET(\"/users/{user}/following\")\n Call<List<UserFollowing>> getUserFollowing(@Path(\"user\") String user);", "public static synchronized void loadFriendsList() {\r\n\t\t\t\r\n\t\t\t// TODO Controllare che esista il file CONTACTS.xml\r\n\t\t\t// TODO Se esiste, caricare i contatti dal file altrimenti richiedere al sip\r\n\t\t\tArrayList<Contact> contactList = ContactListManager.getContactList(); \r\n\t\t\t\r\n\t\t\tFriendsList fl = new FriendsList(); \r\n\t\t\t\r\n\t\t\tfor(Contact contact : contactList) {\r\n\t\t\t\tfl.addFriend(contact.getFriend()); \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetFriendsList(fl); \r\n\t\t}", "public java.util.List<? extends PeopleOrBuilder>\n getUserOrBuilderList() {\n return user_;\n }", "@Override\r\n\tpublic List<Book> getWishList(User user) {\n\t\tTypedQuery<Book> query = sessionFactory.getCurrentSession().createNativeQuery(\"select USER_ID, BOOK_ID from WISH_USER_BOOK where USER_ID = \" + user.getId());\r\n\t\treturn query.getResultList();\r\n\t}", "public PeopleOrBuilder getFriendListOrBuilder(\n int index) {\n return friendList_.get(index);\n }", "private boolean friendAlreadyAdded(User user, Object requestedUser) {\n List<UserContact> friendList = null;\n User friendToBe = null;\n try {\n DAO dao = new Query();\n friendList = user.getFriends(dao);\n dao.open();\n if (requestedUser instanceof String) {\n friendToBe = (User) dao.get(User.class, (String) requestedUser);\n } else if (requestedUser instanceof Request) {\n Request request = (Request) requestedUser;\n friendToBe = (User) dao.get(User.class, request.getFromId());\n }\n dao.close();\n } catch (Exception e) {\n //e.printStackTrace();\n }\n if (friendList != null && friendToBe != null) {\n if (friendList.contains(friendToBe.asContact())) {\n return true;\n }\n }\n return false;\n }", "public List<Fans> selectByUid(String user_id) {\nConnection conn = this.connectionManager.openConnection();\n\t\t\n\t\tString strSQL = \"select * from fans where user_id=?\";\n\t\tObject[] params = new Object[] { user_id};\n\t\tList<Fans> lstFans=new ArrayList<Fans>();\n\t\t\n\t\tResultSet resultSet = this.dbUtils.execQuery(conn, strSQL, params);\n\t\n\t\ttry {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tFans fans=new Fans();\n\t\t\t\tfans.setFans_id(resultSet.getInt(1));\n\t\t\t\tfans.setUser_id(resultSet.getString(2));\n\t\t\t\tfans.setUse_userid(resultSet.getString(3));\n\t\t\t lstFans.add(fans);\n\t\n\t\t\t}\n\t\t\treturn lstFans;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tthis.connectionManager.closeConnection(conn);\n\t\t}\n\t\t\n\t}", "public static Result friends(){\n return null;\n }", "public java.util.List<People> getUserList() {\n return user_;\n }", "public void facebookFriends()\n\t{\n\t\tPreferences preferences = new Preferences(getActivity());\n\t\tString accessToken = preferences.getFacebookAccessToken();\n\t\tlong expiration = preferences.getFacebookAccessExpiration();\n\n\t\tif(accessToken != null) mFacebook.setAccessToken(accessToken);\n\t\tif(expiration != 0) mFacebook.setAccessExpires(expiration);\n\t\t\n\t\tif(mFacebook.isSessionValid())\n\t\t{\n\t\t\t// show progress in action bar\n\t\t\tshowActionBarProgress(true);\n\t\t\t\n\t\t\t// parameters\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putString(\"fields\", \"id,name,gender\");\n\t\t\t\n\t\t\tmAsyncFacebookRunner.request(\"me/friends\", bundle, new RequestListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\t\t\t\t\t// TODO: run callbacks in TaskFragment.runTaskCallback()\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onComplete(): \" + response);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\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@Override\n\t\t\t\tpublic void onFacebookError(final FacebookError e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onFacebookError(): \" + e.getErrorType() + \" / \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onIOException(IOException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onIOException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFileNotFoundException(FileNotFoundException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onFileNotFoundException()\");\n\t\t\t\t\t\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onMalformedURLException(MalformedURLException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onMalformedURLException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\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\telse\n\t\t{\n\t\t\tToast.makeText(getActivity(), \"You are logged out.\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "private static void printFriends( Node startNode )\n {\n System.out.println( startNode.getProperty( \"name\" ) + \"'s friends:\" );\n Traverser traverser = startNode.traverse( Order.BREADTH_FIRST, \n StopEvaluator.END_OF_GRAPH,\n ReturnableEvaluator.ALL_BUT_START_NODE, \n MatrixRelationshipTypes.KNOWS, Direction.BOTH );\n for ( Node friend : traverser )\n {\n TraversalPosition position = traverser.currentPosition();\n System.out.println( \"At depth \" + position.depth() + \n \" => \" + friend.getProperty( \"name\" ) );\n }\n }", "java.util.List<? extends POGOProtos.Rpc.GetFriendsListOutProto.FriendProtoOrBuilder> \n getFriendOrBuilderList();", "com.google.ads.googleads.v6.resources.UserList getUserList();", "public ArrayList<User> getPending(User main){\n SQLiteDatabase db = getWritableDatabase();\n db.beginTransaction();\n\n ArrayList<User> userList = new ArrayList<>();\n\n try {\n String getQuery = String.format(\n \"SELECT * FROM User u \" +\n \"WHERE u.userID != '%s' AND u.userID IN \" +\n \" (SELECT userID FROM User_has_Friends uhf WHERE uhf.frienduserID == '%s' AND uhf.pending == 1)\"\n , main.getId(), main.getId());\n\n Cursor cursor = db.rawQuery(getQuery, null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n User user = new User(cursor.getInt(0), cursor.getString(4), cursor.getString(3), cursor.getString(5));\n user.lastname = cursor.getString(2);\n user.firstname = cursor.getString(1);\n user.address = cursor.getString(6);\n user.color = cursor.getString(7);\n user.shoeSize = cursor.getInt(8);\n user.trouserSize = cursor.getString(9);\n user.tshirtSize = cursor.getString(10);\n user.privacy = cursor.getInt(11);\n\n userList.add(user);\n cursor.moveToNext();\n }\n }\n db.setTransactionSuccessful();\n return userList;\n } catch (Exception e) {\n Log.d(\"SQL\", e.getMessage());\n return null;\n } finally {\n db.endTransaction();\n }\n }", "public static List<UserFollowRegistration> findByFOLLOWER_USER_ID(\n\t\tlong FOLLOWER_USER_ID) {\n\t\treturn getPersistence().findByFOLLOWER_USER_ID(FOLLOWER_USER_ID);\n\t}", "public ArrayList<Users> getFollowing() {\n\t\tif (hbm.getFollowing(username) != null) {\n\t\t\tString[] usernames = hbm.getFollowing(username).split(\",\");\n\n\t\t\t// init arraylist of user object\n\t\t\tArrayList<Users> users = new ArrayList<Users>();\n\n\t\t\t// loop through all the username we are following and get their\n\t\t\t// object and add it to our list to return\n\t\t\tfor (String uname : usernames)\n\t\t\t\tusers.add(hbm.getUserObject(uname));\n\t\t\treturn users;\n\t\t}\n\t\treturn null;\n\t}", "POGOProtos.Rpc.GetFriendsListOutProto.FriendProtoOrBuilder getFriendOrBuilder(\n int index);", "public static ArrayList<String> Searching_OnPeople_who_AddMe() {\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\t\tArrayList<String> requests= new ArrayList<String>();\n\t\tQuery gaeQuery = new Query(\"friends\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t\n\t\t\tif (entity.getProperty(\"friendEmail\").toString().equals(User.getCurrentActiveUser().getEmail().toString())&&\n\t\t\t\t\t!entity.getProperty(\"status\").toString().equals(\"accept\")) {\n\t\t\t\t\n\t\t\t\trequests.add(entity.getProperty(\"myEmail\").toString());\n\t\t\t\t\n\t\t\t }\nelse{\n\t\t\t\t }\n\t\t}\n\t\treturn requests;\n\t\n\t}", "public static List<User> getUsersFollowing(Long userId, int first, int limit) {\n User user = DAO.getUserById(userId);\n return DAO.getAllUsersFromQuery(\"select distinct us.following from User us where us = ?\", first, limit, user);\n }", "public PagedList<User> getFriendListProfiles(String userId, Integer limit, Integer offset, Long since, Long until) {\n return facebook.friendOperations().getFriendProfiles(userId, new PagingParameters(limit, offset, since, until));\n }", "public void getFollowersList(User user, AsyncHttpResponseHandler handler) {\n if (user == null) {\n return;\n }\n\n String apiUrl = getApiUrl(\"followers/ids.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"user_id\", String.valueOf(user.getUid()));\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }" ]
[ "0.7755835", "0.752421", "0.7503292", "0.73185503", "0.6800538", "0.68001336", "0.6765672", "0.66300845", "0.6617618", "0.65900207", "0.6581585", "0.6501942", "0.64206564", "0.63927937", "0.6356412", "0.635206", "0.6300024", "0.6292229", "0.62615657", "0.62611365", "0.62356293", "0.6229165", "0.6149199", "0.60976434", "0.5999547", "0.5980309", "0.59720683", "0.5962549", "0.5953778", "0.5943657", "0.5931208", "0.5915101", "0.5909431", "0.5873181", "0.5873106", "0.5859972", "0.58554757", "0.58470535", "0.5838904", "0.5809794", "0.5799102", "0.57888055", "0.5786475", "0.5785351", "0.5784421", "0.5782156", "0.57764506", "0.57764506", "0.57722497", "0.5771823", "0.57445824", "0.57434976", "0.57393044", "0.57389", "0.57321775", "0.57317847", "0.5727655", "0.5721259", "0.5707264", "0.57030576", "0.57004845", "0.5684707", "0.5666989", "0.56590533", "0.56586766", "0.56440467", "0.56408197", "0.5633172", "0.5632463", "0.5619493", "0.5592021", "0.559067", "0.55890274", "0.55879015", "0.55722755", "0.5567335", "0.5563369", "0.55621475", "0.55554557", "0.55261403", "0.55256534", "0.55195487", "0.55189663", "0.5515356", "0.5507508", "0.55046165", "0.54792845", "0.54711103", "0.5458456", "0.5447807", "0.5445201", "0.5434669", "0.5425543", "0.54224896", "0.54099786", "0.54061866", "0.5405636", "0.5396515", "0.5387127", "0.5386856", "0.538414" ]
0.0
-1
Created by farhad on 8/27/14.
public interface IStationDA extends IGenericDA<StationEntity, Long> { public List<StationEntity> getStationsByUsername( UserEntity userEntity ); public StationEntity getStationByName( StationEntity stationEntity ); public StationEntity getStationByStationNameAndUsername( StationEntity stationEntity, UserEntity userEntity ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "public void method_4270() {}", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public abstract void mo70713b();", "public void gored() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@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 static void cajas() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "private void m50367F() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void jugar() {\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}", "public void skystonePos4() {\n }", "private void strin() {\n\n\t}", "public void m23075a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo21877s() {\n }", "public void mo4359a() {\n }", "public abstract void mo27385c();", "public final void mo91715d() {\n }", "public abstract void mo6549b();", "public void mo21779D() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "protected boolean func_70041_e_() { return false; }", "private void level7() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "public void skystonePos6() {\n }", "@Override\n public void init() {\n\n }", "public void mo21878t() {\n }", "static void feladat9() {\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "static void feladat4() {\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public abstract Object mo26777y();", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n }", "public void mo23813b() {\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 mo21825b() {\n }", "protected void mo6255a() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo21787L() {\n }", "public abstract String mo13682d();", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo21793R() {\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}", "public void mo12930a() {\n }", "public abstract void mo35054b();", "public void mo21782G() {\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}" ]
[ "0.5726631", "0.56735885", "0.56149524", "0.55774224", "0.55614305", "0.554685", "0.5539604", "0.5501137", "0.5472312", "0.5458235", "0.5443707", "0.54129463", "0.5411841", "0.5378774", "0.537088", "0.53705895", "0.5346912", "0.5346912", "0.53427386", "0.5328182", "0.5327671", "0.53124255", "0.5305959", "0.5291392", "0.5286258", "0.52856576", "0.52709854", "0.52657026", "0.5265679", "0.52492285", "0.52492285", "0.52492285", "0.52492285", "0.52492285", "0.52451557", "0.52333534", "0.5228464", "0.5200828", "0.5200674", "0.5196484", "0.51947886", "0.5194754", "0.51919514", "0.51852834", "0.51808125", "0.5180587", "0.51786774", "0.51728004", "0.5171476", "0.51674795", "0.51664704", "0.5163473", "0.5160418", "0.5152849", "0.51438254", "0.51438254", "0.5143366", "0.5136764", "0.51323706", "0.513005", "0.5107811", "0.51054794", "0.51011896", "0.50991344", "0.5093097", "0.50910807", "0.50899106", "0.5088821", "0.5088756", "0.50809205", "0.508039", "0.5079896", "0.5072599", "0.50646585", "0.5064632", "0.5062726", "0.5062726", "0.5062726", "0.5062726", "0.5062726", "0.5062726", "0.5062726", "0.5059589", "0.50571465", "0.50562716", "0.50557554", "0.5054936", "0.5053321", "0.5051061", "0.5050674", "0.50357693", "0.50357693", "0.50357693", "0.5034629", "0.50339526", "0.50318223", "0.5030862", "0.5030862", "0.5030862", "0.5030056", "0.5030056" ]
0.0
-1
TODO Autogenerated method stub
@Override public void gstudentAdd(Gstudent gstudent) { GstudentMapper.gstudentAdd(gstudent); }
{ "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
Compares two numbers with allowance for errors.
public static int comp( double a, double b ) { return equal( a, b, REL_TOL, ABS_TOL ) ? 0 : (a < b ? -1 : 1 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean almostEqual(double a, double b);", "@Override\r\n public int compare(AlgebraicInteger numberA, AlgebraicInteger numberB) {\r\n return Long.compare(numberA.norm(), numberB.norm());\r\n }", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "private static int numCompare(Number value1, Number value2) {\n\t\tif (value1 instanceof Double || value2 instanceof Double) {\n\t\t\treturn Double.compare(\n\t\t\t\t\t(value1).doubleValue(),\n\t\t\t\t\t(value2).doubleValue()\n\t\t\t);\n\t\t}\n\t\treturn Integer.compare(\n\t\t\t\t(Integer)value1,\n\t\t\t\t(Integer)value2\n\t\t);\n\t}", "@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fail occurs\r\n\t}", "private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }", "public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }", "public static int comp( float a, float b ) {\n return equal( a, b, FREL_TOL, FABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public static boolean almostEqualsNumber(double value1, double value2, double acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static int comp( double a, double b, double relTol, double absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public static int comp( float a, float b, float relTol, float absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public static boolean almost_equals(double a, double b, long maxUlps) {\n if (a == b) { // if two numbers are equal, then the are almost_equal\n return true;\n }\n\n // special case of comparing to zero.\n if (a == 0.0 || b == 0.0) {\n double comp = 1.0e-13; // should correspond to PRECISION_DEFAULT;\n if (maxUlps == PRECISION5) comp = 1.0e-5;\n if (maxUlps == PRECISION7) comp = 1.0e-7;\n if (maxUlps == PRECISION9) comp = 1.0e-9;\n if (maxUlps == PRECISION13) comp = 1.0e-13;\n if (Math.abs(a) < comp && Math.abs(b) < comp) {\n return true;\n }\n }\n\n //if (Double.isNaN(a) || Double.isNaN(b)) { // this operation is slooooooow\n // return false;\n // }\n if (!(a < b || b < a)) { // idiom to filter out NaN's\n return false;\n }\n if (Double.isInfinite(a) || Double.isInfinite(b)) {\n return false;\n }\n\n\n long aInt = Double.doubleToLongBits(a);\n\n // Make aInt lexicographically ordered as a twos-complement long\n if (aInt < 0)\n aInt = 0x8000000000000000l - aInt;\n\n // Make bInt lexicographically ordered as a twos-complement long\n long bInt = Double.doubleToLongBits(b);\n\n if (bInt < 0)\n bInt = 0x8000000000000000l - bInt;\n\n long intDiff = Math.abs(aInt - bInt); // This is valid because IEEE-754\n // doubles are required to be\n // lexically ordered\n\n if (intDiff <= maxUlps) {\n return true;\n }\n\n return false;\n }", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "protected int compareNumbers(Number n1, Number n2) {\n BigDecimal bd1 = new BigDecimal(n1.toString());\n BigDecimal bd2 = new BigDecimal(n2.toString());\n return bd1.compareTo(bd2);\n }", "public static void main(String[] args) {\n\t\tString FirstNumber = 15 + \"\" ;\n\t\tString SecondNumber = 15 + \"\";\n\t\t\n\t\tif(FirstNumber . compareTo(SecondNumber)==0)\n\t\t\n\t\t\tSystem.out.println(\"Numbers are equal\");\n\t\t\n\t\telse\n\t\t\t\n\t\t\tSystem.out.println(\"Numbers are not equal\");\n\t}", "@Test\r\n\tpublic void testNums() {\n\t\tint num1=10;int num2=10;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertTrue(ClientMain.compareNums(num1, num2));\r\n\t}", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "@Test\n\tpublic void testMinimumNumber() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble tmpResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue( (tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue((tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) \n\t\t\t|| (-0.123456789 == ac.minimumNumber(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.min(zero, zero);\n\t\t\t//System.out.println(inpResult + \" ############\");\n\t\t\tassertTrue( (inpResult == ac.minimumNumber(zero, zero)) );\n\t\t}\n\t\t\n\t}", "public void testCompare() throws Exception {\n\n Object testData[][] = {\n { \"aaa\", \"bbb\", -1 },\n { \"aaa\", \"aaa\", 0 },\n { \"bbb\", \"aaa\", 1 },\n { \"aaa\", \"aaa_L1_bbb.lsm\", -1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L1_bbb.lsm\", 0 },\n { \"aaa_L1_bbb.lsm\", \"aaa\", 1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 },\n { \"aaa_L10_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_La_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_L2_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 }\n };\n\n LNumberComparator comparator = new LNumberComparator();\n\n for (Object[] testRow : testData) {\n String name1 = (String) testRow[0];\n String name2 = (String) testRow[1];\n File file1 = new File(name1);\n File file2 = new File(name2);\n int expectedResult = (Integer) testRow[2];\n int actualResult = comparator.compare(new FileTarget(file1),\n new FileTarget(file2));\n\n boolean isValid = ((expectedResult > 0) && (actualResult > 0)) ||\n ((expectedResult < 0) && (actualResult < 0)) ||\n ((expectedResult == 0) && (actualResult == 0));\n\n assertTrue(name1 + \" compared to \" + name2 +\n \" returned invalid result of \" + actualResult +\n \" (should have same sign as \" + expectedResult + \")\",\n isValid);\n }\n\n }", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "public static boolean almost_less(double a, double b) {\n if (almost_equals(a, b)) {\n return false;\n }\n return a < b;\n }", "public static int compareTo (int []n1, int[]n2) {\n\t\tint off1 = 0;\n\t\tint off2 = 0;\n\t\t\n\t\tboolean z1 = isZero(n1);\n\t\tboolean z2 = isZero(n2);\n\t\tif (z1 && z2) { return 0; } // both zero.\n\t\tif (z1) { return -1; } // second number is not zero.\n\t\tif (z2) { return +1; } // first number is not zero.\n\t\t\n\t\twhile (n1[off1] == 0) { off1++; } // compute leading zeros.\n\t\twhile (n2[off2] == 0) { off2++; }\n\n\t\tint sz1 = n1.length-off1;\n\t\tint sz2 = n2.length-off2;\n\t\t\n\t\tif (sz1 < sz2) { return -1; } // first number has less digits (after removing leading zeros)\n\t\tif (sz2 < sz1) { return +1; } // second number has less digits (after removing leading zeros)\n\t\t\n\t\t// same number of digits, compare 1-by-1\n\t\t\n\t\tfor (int i = 0; i < sz1; i++) {\n\t\t\tif (n1[off1+i] == n2[off2+i]) { \n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Must be able to report by now...\n\t\t\tif (n2[off2+i] > n1[off1+i]) {\n\t\t\t\treturn -1;\n\t\t\t} else {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// must be the same!\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}", "public static boolean userEquals(int number1, int number2) throws NegativeNumberException {\n if (number1 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number1);\n }\n if (number2 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number2);\n }\n return mainMethod(number1, number2);\n }", "private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }", "public Comparison compare(double left, double right) {\n return checkResult(Double.compare(left, right));\n }", "public static int close10(int a, int b){\n\n int aDiff = Math.abs(a - 10);\n int bDiff = Math.abs(b - 10);\n\n if (aDiff < bDiff) {\n return a;\n }\n if (bDiff < aDiff) {\n return b;\n }\n return 0; // aDiff == bDiff\n }", "public static boolean comp(int[] a, int[]b) {\n\t\tif((a == null) || (b == null)) return false;\n\n\t\t//Arrays.sort(a1);\n\t\tArrays.sort(a);\n\t\tfor(int x=0; x<a.length; ++x) {\n\t\t\tif(a[x]<0) a[x] *= -1; \n\t\t}\n\t\tArrays.sort(a);\n\t\tArrays.sort(b);\n\n\t\t//This works for non-negative int arrays\n\t\t//Arrays.sort(a);\n\t\t//Arrays.sort(b);\n\n\t\tif(a.length == b.length) {\n\t\t\tfor(int i=0; i<a.length; ++i) {\n\t\t\t\tif((a[i]*a[i]) != b[i]) return false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t\t\n\t\t//System.out.println(a[0] + \" \" + b[0]);\n\t\t//return null;\n\t}", "private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}", "public int compareVersion(String version1, String version2) {\n int[] v1 = parse(version1);\n int[] v2 = parse(version2);\n int result = -1;\n if (v1.length > v2.length) {\n result = 1;\n int[] temp = v1;\n v1 = v2;\n v2 = temp;\n }\n for (int i = 0; i < v2.length; ++ i) {\n if (i < v1.length)\n v2[i] -= v1[i];\n }\n\n for (int i = 0; i < v2.length; ++ i) {\n if (v2[i] != 0)\n return v2[i] > 0 ? result : -result;\n }\n return 0;\n }", "public void ejercicio03() {\r\n\t\tcabecera(\"03\", \"Comparar numeros\");\r\n\r\n // Inicio modificacion\r\n\t\t\r\n NumeroEntero n1 = new NumeroEntero(10);\r\n NumeroEntero n2 = new NumeroEntero(10);\r\n\r\n if (n1.comapreTo(n2) == -1){\r\n \t System.out.println(\"N1-> \"+n1);\r\n System.out.println(\"N1 es mayor que N2\");\r\n }\r\n else if (n1.comapreTo(n2) ==1) {\r\n System.out.println(\"N1 -> \"+n1);\r\n System.out.println(\"N1 es menor que N2\");\r\n }\r\n else{\r\n System.out.println(\"N1 y N2 son iguales -> N1 ->\"+n1+\" N2 -> \"+n2);\r\n }\r\n\r\n\t\t// Fin modificacion\r\n\t\t\r\n\t}", "public static int compare(double v1, double v2) {\n return ( v1 - v2 ) > 0 ? 1 : ( ( v1 - v2 ) == 0 ? 0 : -1 );\n }", "public static boolean AreEqual(double a, double b)\n {\n return Math.abs(a - b) < EPSILON;\n }", "static int ifEquals(int x, int y, int a, int b) { \n //return x==y?a:b; \n return onEqu1(x, y, a, b, ((x-y)-1)>>31);\n }", "boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}", "static boolean bigint_gt(bigint a, bigint b)\n {\n if (a.bigint_sign && !b.bigint_sign)\n return true;\n else if (!a.bigint_sign && b.bigint_sign)\n return false;\n else\n {\n if (a.bigint_len > b.bigint_len)\n return a.bigint_sign;\n else if (a.bigint_len < b.bigint_len)\n return !a.bigint_sign;\n else\n for (int i = 0; i < a.bigint_len; i++)\n {\n int j = a.bigint_len - 1 - i;\n if (a.bigint_chiffres[j] > b.bigint_chiffres[j])\n return a.bigint_sign;\n else if (a.bigint_chiffres[j] < b.bigint_chiffres[j])\n return !a.bigint_sign;\n }\n return true;\n }\n }", "public static boolean almost_equals(double a, double b) {\n return almost_equals(a, b, PRECISION_DEFAULT);\n }", "public int compare(Tensor newCost, Tensor oldCost) {\n if (oldCost.length() != newCost.length() || oldCost.length() != slack.length())\n throw TensorRuntimeException.of(oldCost, newCost, slack);\n int cmp = 0;\n for (int index = 0; index < oldCost.length() && cmp == 0; ++index) {\n Scalar min = oldCost.Get(index);\n if (Scalars.isZero(min))\n cmp = Scalars.compare(newCost.Get(index), min);\n else {\n Scalar diffRatio = newCost.Get(index).subtract(min).divide(min);\n cmp = Scalars.lessEquals(diffRatio.abs(), slack.Get(index)) //\n ? 0\n : Sign.of(diffRatio).number().intValue();\n }\n }\n return cmp;\n }", "public static boolean roughlyEqual(double a, double b) {\n if (Double.isNaN(a)) {\n return Double.isNaN(b);\n }\n\n if (Double.isNaN(b)) {\n return false;\n }\n\n return Math.abs(a - b) < 0.01;\n }", "void validateLessThanOrEqualTo(Number x, Number y, String failureMessage, String successMessage) throws ValidationException, IllegalArgumentException;", "@Test\n public void testMinMaxNumber() {\n NumberValue minNumber = factory.getMinNumber();\n NumberValue maxNumber = factory.getMaxNumber();\n MatcherAssert.assertThat(minNumber + \" < \" + maxNumber, minNumber.compareTo(maxNumber), lessThan(0));\n }", "static boolean bigint_eq(bigint a, bigint b)\n {\n if (a.bigint_sign != b.bigint_sign)\n return false;\n else if (a.bigint_len != b.bigint_len)\n return false;\n else\n {\n for (int i = 0; i < a.bigint_len; i++)\n if (a.bigint_chiffres[i] != b.bigint_chiffres[i])\n return false;\n return true;\n }\n }", "@Test\n public void errCase() {\n MaximumSwap s = new MaximumSwap();\n int ans = s.maximumSwap(98368);\n assertEquals(98863, ans);\n }", "public Comparison compare(float left, float right) {\n return checkResult(Float.compare(left, right));\n }", "public static int getVeryLongCompare(String a, String b) {\r\n\t\tif(a.equals(b))\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\tint result = 0;\r\n\t\t\tboolean minus = false;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) != 45) return -1;\r\n\t\t\tif(a.charAt(0) != 45 && b.charAt(0) == 45) return 1;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) == 45) { \r\n\t\t\t\tminus = true;\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\t}\r\n\t\t\tif (a.charAt(0) == 46) a = \"0\" + a;\r\n\t\t\tif (b.charAt(0) == 46) b = \"0\" + b;\r\n\t\t\twhile(a.charAt(0) == 48 && a.charAt(1) != 46)\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\twhile(b.charAt(0) == 48 && b.charAt(1) != 46)\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\tboolean done = false;\r\n\t\t\tint aPointPos = a.indexOf(\".\");\r\n\t\t\tint bPointPos = b.indexOf(\".\");\r\n\t\t\tint aLength = a.length();\r\n\t\t\tint bLength = b.length();\r\n\t\t\tint aIntegerPart = aLength; \r\n\t\t\tint bIntegerPart = bLength;\r\n\t\t\tint aCurDigit = 0;\r\n\t\t\tint bCurDigit = 0;\r\n\t\t\tif (aPointPos > -1) {\r\n\t\t\t\taIntegerPart = aPointPos;\r\n\t\t\t}\r\n\t\t\tif (bPointPos > -1) {\r\n\t\t\t\tbIntegerPart = bPointPos;\r\n\t\t\t}\r\n\t\t\tif (aIntegerPart != bIntegerPart) {\r\n\t\t\t\tdone = true;\r\n\t\t\t\tif(aIntegerPart > bIntegerPart)\tresult = 1;\r\n\t\t\t\telse result = -1;\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < aIntegerPart; i++) {\r\n\t\t\t\t\taCurDigit = a.charAt(i) - 48;\r\n\t\t\t\t\tbCurDigit = b.charAt(i) - 48;\r\n\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint maxFloatPart = Math.max(aLength - aIntegerPart - 1, bLength - bIntegerPart - 1);\r\n\t\t\t\tif(!done) {\r\n\t\t\t\t\tfor (int i = 0; i < maxFloatPart; i++) {\r\n\t\t\t\t\t\tif(aLength < aIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\taCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taCurDigit = a.charAt(aIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(bLength < bIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\tbCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbCurDigit = b.charAt(bIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\t\telse { result = -1; }\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\tif(minus) result = 0 - result;\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "public static Object le(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) <= 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) <= 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in le\");\n\t}", "public static Result min(Result a, Result b) {\n\t\treturn a == Result.INCORRECT || b == Result.INCORRECT ? Result.INCORRECT\n\t\t\t\t: a == Result.WARNING || b == Result.WARNING ? Result.WARNING\n\t\t\t\t\t\t: Result.CORRECT;\n\t}", "public static boolean almostEqualsNumber(double value1, double value2) {\n return almostEqualsNumber(value1, value2, DOUBLE_EPSILON);\n }", "public static boolean almostEqualsNumber(float value1, float value2, float acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static void main(String [] args){\n double a= 5+(4*5)/5;\n double b= (6*4%2)+15;\n System.out.println(\"a = \"+a);\n System.out.println(\"b = \"+b); \n \n //Ejemplo de operadores relacionales.\n boolean resultado1= a > b;\n boolean resultado2= a !=b; \n System.out.println(\"R1= \"+resultado1);\n System.out.println(\"R2= \"+resultado2); \n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public static String numberComparison(int num1, int num2){\n\n if(num1 > num2) {\n return num1 + \" is greater than \" + num2;\n } else if (num2 > num1) {\n return num2 + \" is greater than \" + num1;\n } else if(num1 == num2) {\n return num1 + num2 + \" are equal \";\n }\n return \"Nothing to compare\";\n }", "public static boolean compareNumerics(Parser parser, ResultValue resOp1, ResultValue resOp2, String operator)\r\n {\r\n \tdouble val1 = Numeric.getDoubleValue(resOp1.value);\r\n \tdouble val2 = Numeric.getDoubleValue(resOp2.value);\r\n \t\r\n \t\r\n \t\r\n \tswitch(operator)\r\n \t{\r\n \t\tcase \">=\" :\r\n \t\t\tif(val1 >= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse \r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \">\" :\r\n \t\t\tif(val1 > val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<=\" :\r\n \t\t\tif(val1 <= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<\" :\r\n \t\t\tif(val1 < val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"!=\" :\r\n \t\t\tif(val1 != val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"==\" :\r\n \t\t\tif(val1 == val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tdefault :\r\n \t\t\tSystem.out.println(\"Error in compare Numerics, \" + operator + \" is not valid\");\r\n \t\t\treturn false;\r\n \t\t\r\n \t\t\t\r\n \t\t\r\n \t}\r\n }", "@Test\n\tpublic void Given13And20GetNegative1() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(13, 20);\n\t\tassertEquals(-1, result);\n\t}", "@Test\n public void testCompareTo() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n Money moneyCad2 = new Money(magnitude3, cad);\n\n try {\n moneyUsd.compareTo(moneyCad);\n fail(\"Comparisons between Money objects with different currencies should fail\");\n } catch(CurrencyMismatchRuntimeException cmm) {\n }\n \n assertTrue(\"Less than\", moneyUsd.compareTo(moneyUsd2) < 0);\n assertTrue(\"Greater than\", moneyUsd2.compareTo(moneyUsd) > 0);\n assertTrue(\"Equal\", 0 == moneyCad.compareTo(moneyCad2));\n\n assertTrue(\"Less than 2\", moneyUsd.lessThan(moneyUsd2));\n assertTrue(\"Greater than 2\", moneyUsd2.greaterThan(moneyUsd));\n assertTrue(\"Equal 2\", moneyCad.equals(moneyCad2));\n\n \n }", "private static int almostEqual(GroundTerm a, GroundTerm b) {\r\n\t\treturn StringUtils.getLevenshteinDistance(a.toString(), b.toString());\r\n\t}", "boolean isMismatch(double score);", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "private boolean comps(int a, int b){\n\t\tthis.comparisons.add(new Integer[]{a, b});\n\t\treturn true;\n\t}", "public boolean verify(JTextField initialMileTF, JTextField retMileTF)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint initialMile = new Integer(Integer.parseInt(initialMileTF.getText().trim()));\r\n\t\t\tint retMile = new Integer(Integer.parseInt(retMileTF.getText().trim()));\r\n\r\n\t\t\tif(retMile >= initialMile)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Return mileage is less than initial mileage\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NumberFormatException nfe)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"NumberFormatException in verify\");\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Try an actual number like (2)\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }", "private Comparison checkResult(final int result) {\n return (result < 0) ? LESS_COMPARISON : (result > 0) ? GREATER_COMPARISON : getInstance();\n }", "static String kangaroo(int x1, int v1, int x2, int v2) {\n int x=x1-x2;\n int v=v2-v1;\n if(v!=0){\n if(x%v==0 && x/v>0){\n return \"YES\";\n }else {return \"NO\";}\n\n }else {return \"NO\";}\n\n }", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "public static void main(String[] args) {\n\t\t\n\t\tInteger num1 = -128;\n\t\tInteger num2= -128;\n\t\t\n\t\tif(num1 == num2) {\n\t\t\tSystem.out.println(\"Both are equal\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Both are not equal\");\n\t\t}\n\t}", "public int compare(RomanNumeralFactors first, RomanNumeralFactors second) {\n return second.factor - first.factor;\n }", "public boolean compareAverages(Average<? extends Number> other){\n\t\tif(this.computeAverage().compareTo(other.computeAverage()) == 0){ //Double.compareTo() returns 0 if two Doubles have the same v\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "@Test\n public void testAbsEqual() { \n assertTrue(!Double.isNaN(sLog.fromReal(Double.POSITIVE_INFINITY)));\n assertTrue(Double.isNaN(sLog.fromReal(Double.NEGATIVE_INFINITY)));\n {\n double v1 = sLog.fromReal(3);\n double v2 = sLog.fromReal(-3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(0l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertFalse(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n {\n double v1 = sLog.fromReal(-3);\n double v2 = sLog.fromReal(3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(1l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertTrue(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n }", "public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }", "@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "public int verify() {\n\t\tString[] expressions = strEquation.split(\"=\");\n\t\tif (expressions.length == 2) {\n\t\t\tint left = evaluateExpression(expressions[0]);\n\t\t\tint right = evaluateExpression(expressions[1]);\n\t\t\tif (left == right && left != Integer.MAX_VALUE) return left;\n\t\t}\n\t\treturn Integer.MAX_VALUE;\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }" ]
[ "0.6236868", "0.6220094", "0.6169544", "0.60887414", "0.60753226", "0.60008645", "0.59178334", "0.58821446", "0.5879215", "0.5869409", "0.5854037", "0.57507724", "0.57466054", "0.5742835", "0.57196075", "0.5719199", "0.57140476", "0.57066715", "0.5705983", "0.56930524", "0.56841004", "0.5679261", "0.5652563", "0.5634982", "0.5583555", "0.557887", "0.5575168", "0.55604684", "0.5555823", "0.55373114", "0.55355465", "0.55294657", "0.5500021", "0.5499672", "0.5495783", "0.5489542", "0.54881835", "0.54853594", "0.5483797", "0.5483664", "0.5479205", "0.54722184", "0.54720545", "0.5465544", "0.545608", "0.545086", "0.5448331", "0.54364824", "0.5415116", "0.54100406", "0.53985924", "0.5377771", "0.53763324", "0.53715706", "0.5369767", "0.53626955", "0.5359828", "0.53523797", "0.53498256", "0.5346255", "0.53443253", "0.5337925", "0.5331514", "0.53300554", "0.53115886", "0.5307952", "0.53026116", "0.5302394", "0.53013", "0.5295422", "0.5293367", "0.52887833", "0.5284737", "0.5282736", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52820265", "0.52811825", "0.52811825" ]
0.62221485
1
Compares two numbers with allowance for errors.
public static int comp( double a, double b, double relTol, double absTol ) { return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean almostEqual(double a, double b);", "public static int comp( double a, double b ) {\n return equal( a, b, REL_TOL, ABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }", "@Override\r\n public int compare(AlgebraicInteger numberA, AlgebraicInteger numberB) {\r\n return Long.compare(numberA.norm(), numberB.norm());\r\n }", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "private static int numCompare(Number value1, Number value2) {\n\t\tif (value1 instanceof Double || value2 instanceof Double) {\n\t\t\treturn Double.compare(\n\t\t\t\t\t(value1).doubleValue(),\n\t\t\t\t\t(value2).doubleValue()\n\t\t\t);\n\t\t}\n\t\treturn Integer.compare(\n\t\t\t\t(Integer)value1,\n\t\t\t\t(Integer)value2\n\t\t);\n\t}", "@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fail occurs\r\n\t}", "private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }", "public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }", "public static int comp( float a, float b ) {\n return equal( a, b, FREL_TOL, FABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public static boolean almostEqualsNumber(double value1, double value2, double acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static int comp( float a, float b, float relTol, float absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public static boolean almost_equals(double a, double b, long maxUlps) {\n if (a == b) { // if two numbers are equal, then the are almost_equal\n return true;\n }\n\n // special case of comparing to zero.\n if (a == 0.0 || b == 0.0) {\n double comp = 1.0e-13; // should correspond to PRECISION_DEFAULT;\n if (maxUlps == PRECISION5) comp = 1.0e-5;\n if (maxUlps == PRECISION7) comp = 1.0e-7;\n if (maxUlps == PRECISION9) comp = 1.0e-9;\n if (maxUlps == PRECISION13) comp = 1.0e-13;\n if (Math.abs(a) < comp && Math.abs(b) < comp) {\n return true;\n }\n }\n\n //if (Double.isNaN(a) || Double.isNaN(b)) { // this operation is slooooooow\n // return false;\n // }\n if (!(a < b || b < a)) { // idiom to filter out NaN's\n return false;\n }\n if (Double.isInfinite(a) || Double.isInfinite(b)) {\n return false;\n }\n\n\n long aInt = Double.doubleToLongBits(a);\n\n // Make aInt lexicographically ordered as a twos-complement long\n if (aInt < 0)\n aInt = 0x8000000000000000l - aInt;\n\n // Make bInt lexicographically ordered as a twos-complement long\n long bInt = Double.doubleToLongBits(b);\n\n if (bInt < 0)\n bInt = 0x8000000000000000l - bInt;\n\n long intDiff = Math.abs(aInt - bInt); // This is valid because IEEE-754\n // doubles are required to be\n // lexically ordered\n\n if (intDiff <= maxUlps) {\n return true;\n }\n\n return false;\n }", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "protected int compareNumbers(Number n1, Number n2) {\n BigDecimal bd1 = new BigDecimal(n1.toString());\n BigDecimal bd2 = new BigDecimal(n2.toString());\n return bd1.compareTo(bd2);\n }", "public static void main(String[] args) {\n\t\tString FirstNumber = 15 + \"\" ;\n\t\tString SecondNumber = 15 + \"\";\n\t\t\n\t\tif(FirstNumber . compareTo(SecondNumber)==0)\n\t\t\n\t\t\tSystem.out.println(\"Numbers are equal\");\n\t\t\n\t\telse\n\t\t\t\n\t\t\tSystem.out.println(\"Numbers are not equal\");\n\t}", "@Test\r\n\tpublic void testNums() {\n\t\tint num1=10;int num2=10;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertTrue(ClientMain.compareNums(num1, num2));\r\n\t}", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "@Test\n\tpublic void testMinimumNumber() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble tmpResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue( (tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue((tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) \n\t\t\t|| (-0.123456789 == ac.minimumNumber(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.min(zero, zero);\n\t\t\t//System.out.println(inpResult + \" ############\");\n\t\t\tassertTrue( (inpResult == ac.minimumNumber(zero, zero)) );\n\t\t}\n\t\t\n\t}", "public void testCompare() throws Exception {\n\n Object testData[][] = {\n { \"aaa\", \"bbb\", -1 },\n { \"aaa\", \"aaa\", 0 },\n { \"bbb\", \"aaa\", 1 },\n { \"aaa\", \"aaa_L1_bbb.lsm\", -1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L1_bbb.lsm\", 0 },\n { \"aaa_L1_bbb.lsm\", \"aaa\", 1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 },\n { \"aaa_L10_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_La_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_L2_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 }\n };\n\n LNumberComparator comparator = new LNumberComparator();\n\n for (Object[] testRow : testData) {\n String name1 = (String) testRow[0];\n String name2 = (String) testRow[1];\n File file1 = new File(name1);\n File file2 = new File(name2);\n int expectedResult = (Integer) testRow[2];\n int actualResult = comparator.compare(new FileTarget(file1),\n new FileTarget(file2));\n\n boolean isValid = ((expectedResult > 0) && (actualResult > 0)) ||\n ((expectedResult < 0) && (actualResult < 0)) ||\n ((expectedResult == 0) && (actualResult == 0));\n\n assertTrue(name1 + \" compared to \" + name2 +\n \" returned invalid result of \" + actualResult +\n \" (should have same sign as \" + expectedResult + \")\",\n isValid);\n }\n\n }", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "public static boolean almost_less(double a, double b) {\n if (almost_equals(a, b)) {\n return false;\n }\n return a < b;\n }", "public static int compareTo (int []n1, int[]n2) {\n\t\tint off1 = 0;\n\t\tint off2 = 0;\n\t\t\n\t\tboolean z1 = isZero(n1);\n\t\tboolean z2 = isZero(n2);\n\t\tif (z1 && z2) { return 0; } // both zero.\n\t\tif (z1) { return -1; } // second number is not zero.\n\t\tif (z2) { return +1; } // first number is not zero.\n\t\t\n\t\twhile (n1[off1] == 0) { off1++; } // compute leading zeros.\n\t\twhile (n2[off2] == 0) { off2++; }\n\n\t\tint sz1 = n1.length-off1;\n\t\tint sz2 = n2.length-off2;\n\t\t\n\t\tif (sz1 < sz2) { return -1; } // first number has less digits (after removing leading zeros)\n\t\tif (sz2 < sz1) { return +1; } // second number has less digits (after removing leading zeros)\n\t\t\n\t\t// same number of digits, compare 1-by-1\n\t\t\n\t\tfor (int i = 0; i < sz1; i++) {\n\t\t\tif (n1[off1+i] == n2[off2+i]) { \n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Must be able to report by now...\n\t\t\tif (n2[off2+i] > n1[off1+i]) {\n\t\t\t\treturn -1;\n\t\t\t} else {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// must be the same!\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}", "public static boolean userEquals(int number1, int number2) throws NegativeNumberException {\n if (number1 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number1);\n }\n if (number2 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number2);\n }\n return mainMethod(number1, number2);\n }", "private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }", "public Comparison compare(double left, double right) {\n return checkResult(Double.compare(left, right));\n }", "public static int close10(int a, int b){\n\n int aDiff = Math.abs(a - 10);\n int bDiff = Math.abs(b - 10);\n\n if (aDiff < bDiff) {\n return a;\n }\n if (bDiff < aDiff) {\n return b;\n }\n return 0; // aDiff == bDiff\n }", "public static boolean comp(int[] a, int[]b) {\n\t\tif((a == null) || (b == null)) return false;\n\n\t\t//Arrays.sort(a1);\n\t\tArrays.sort(a);\n\t\tfor(int x=0; x<a.length; ++x) {\n\t\t\tif(a[x]<0) a[x] *= -1; \n\t\t}\n\t\tArrays.sort(a);\n\t\tArrays.sort(b);\n\n\t\t//This works for non-negative int arrays\n\t\t//Arrays.sort(a);\n\t\t//Arrays.sort(b);\n\n\t\tif(a.length == b.length) {\n\t\t\tfor(int i=0; i<a.length; ++i) {\n\t\t\t\tif((a[i]*a[i]) != b[i]) return false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t\t\n\t\t//System.out.println(a[0] + \" \" + b[0]);\n\t\t//return null;\n\t}", "private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}", "public int compareVersion(String version1, String version2) {\n int[] v1 = parse(version1);\n int[] v2 = parse(version2);\n int result = -1;\n if (v1.length > v2.length) {\n result = 1;\n int[] temp = v1;\n v1 = v2;\n v2 = temp;\n }\n for (int i = 0; i < v2.length; ++ i) {\n if (i < v1.length)\n v2[i] -= v1[i];\n }\n\n for (int i = 0; i < v2.length; ++ i) {\n if (v2[i] != 0)\n return v2[i] > 0 ? result : -result;\n }\n return 0;\n }", "public static int compare(double v1, double v2) {\n return ( v1 - v2 ) > 0 ? 1 : ( ( v1 - v2 ) == 0 ? 0 : -1 );\n }", "public void ejercicio03() {\r\n\t\tcabecera(\"03\", \"Comparar numeros\");\r\n\r\n // Inicio modificacion\r\n\t\t\r\n NumeroEntero n1 = new NumeroEntero(10);\r\n NumeroEntero n2 = new NumeroEntero(10);\r\n\r\n if (n1.comapreTo(n2) == -1){\r\n \t System.out.println(\"N1-> \"+n1);\r\n System.out.println(\"N1 es mayor que N2\");\r\n }\r\n else if (n1.comapreTo(n2) ==1) {\r\n System.out.println(\"N1 -> \"+n1);\r\n System.out.println(\"N1 es menor que N2\");\r\n }\r\n else{\r\n System.out.println(\"N1 y N2 son iguales -> N1 ->\"+n1+\" N2 -> \"+n2);\r\n }\r\n\r\n\t\t// Fin modificacion\r\n\t\t\r\n\t}", "public static boolean AreEqual(double a, double b)\n {\n return Math.abs(a - b) < EPSILON;\n }", "static int ifEquals(int x, int y, int a, int b) { \n //return x==y?a:b; \n return onEqu1(x, y, a, b, ((x-y)-1)>>31);\n }", "boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}", "static boolean bigint_gt(bigint a, bigint b)\n {\n if (a.bigint_sign && !b.bigint_sign)\n return true;\n else if (!a.bigint_sign && b.bigint_sign)\n return false;\n else\n {\n if (a.bigint_len > b.bigint_len)\n return a.bigint_sign;\n else if (a.bigint_len < b.bigint_len)\n return !a.bigint_sign;\n else\n for (int i = 0; i < a.bigint_len; i++)\n {\n int j = a.bigint_len - 1 - i;\n if (a.bigint_chiffres[j] > b.bigint_chiffres[j])\n return a.bigint_sign;\n else if (a.bigint_chiffres[j] < b.bigint_chiffres[j])\n return !a.bigint_sign;\n }\n return true;\n }\n }", "public int compare(Tensor newCost, Tensor oldCost) {\n if (oldCost.length() != newCost.length() || oldCost.length() != slack.length())\n throw TensorRuntimeException.of(oldCost, newCost, slack);\n int cmp = 0;\n for (int index = 0; index < oldCost.length() && cmp == 0; ++index) {\n Scalar min = oldCost.Get(index);\n if (Scalars.isZero(min))\n cmp = Scalars.compare(newCost.Get(index), min);\n else {\n Scalar diffRatio = newCost.Get(index).subtract(min).divide(min);\n cmp = Scalars.lessEquals(diffRatio.abs(), slack.Get(index)) //\n ? 0\n : Sign.of(diffRatio).number().intValue();\n }\n }\n return cmp;\n }", "public static boolean almost_equals(double a, double b) {\n return almost_equals(a, b, PRECISION_DEFAULT);\n }", "public static boolean roughlyEqual(double a, double b) {\n if (Double.isNaN(a)) {\n return Double.isNaN(b);\n }\n\n if (Double.isNaN(b)) {\n return false;\n }\n\n return Math.abs(a - b) < 0.01;\n }", "@Test\n public void testMinMaxNumber() {\n NumberValue minNumber = factory.getMinNumber();\n NumberValue maxNumber = factory.getMaxNumber();\n MatcherAssert.assertThat(minNumber + \" < \" + maxNumber, minNumber.compareTo(maxNumber), lessThan(0));\n }", "void validateLessThanOrEqualTo(Number x, Number y, String failureMessage, String successMessage) throws ValidationException, IllegalArgumentException;", "static boolean bigint_eq(bigint a, bigint b)\n {\n if (a.bigint_sign != b.bigint_sign)\n return false;\n else if (a.bigint_len != b.bigint_len)\n return false;\n else\n {\n for (int i = 0; i < a.bigint_len; i++)\n if (a.bigint_chiffres[i] != b.bigint_chiffres[i])\n return false;\n return true;\n }\n }", "@Test\n public void errCase() {\n MaximumSwap s = new MaximumSwap();\n int ans = s.maximumSwap(98368);\n assertEquals(98863, ans);\n }", "public Comparison compare(float left, float right) {\n return checkResult(Float.compare(left, right));\n }", "public static int getVeryLongCompare(String a, String b) {\r\n\t\tif(a.equals(b))\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\tint result = 0;\r\n\t\t\tboolean minus = false;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) != 45) return -1;\r\n\t\t\tif(a.charAt(0) != 45 && b.charAt(0) == 45) return 1;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) == 45) { \r\n\t\t\t\tminus = true;\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\t}\r\n\t\t\tif (a.charAt(0) == 46) a = \"0\" + a;\r\n\t\t\tif (b.charAt(0) == 46) b = \"0\" + b;\r\n\t\t\twhile(a.charAt(0) == 48 && a.charAt(1) != 46)\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\twhile(b.charAt(0) == 48 && b.charAt(1) != 46)\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\tboolean done = false;\r\n\t\t\tint aPointPos = a.indexOf(\".\");\r\n\t\t\tint bPointPos = b.indexOf(\".\");\r\n\t\t\tint aLength = a.length();\r\n\t\t\tint bLength = b.length();\r\n\t\t\tint aIntegerPart = aLength; \r\n\t\t\tint bIntegerPart = bLength;\r\n\t\t\tint aCurDigit = 0;\r\n\t\t\tint bCurDigit = 0;\r\n\t\t\tif (aPointPos > -1) {\r\n\t\t\t\taIntegerPart = aPointPos;\r\n\t\t\t}\r\n\t\t\tif (bPointPos > -1) {\r\n\t\t\t\tbIntegerPart = bPointPos;\r\n\t\t\t}\r\n\t\t\tif (aIntegerPart != bIntegerPart) {\r\n\t\t\t\tdone = true;\r\n\t\t\t\tif(aIntegerPart > bIntegerPart)\tresult = 1;\r\n\t\t\t\telse result = -1;\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < aIntegerPart; i++) {\r\n\t\t\t\t\taCurDigit = a.charAt(i) - 48;\r\n\t\t\t\t\tbCurDigit = b.charAt(i) - 48;\r\n\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint maxFloatPart = Math.max(aLength - aIntegerPart - 1, bLength - bIntegerPart - 1);\r\n\t\t\t\tif(!done) {\r\n\t\t\t\t\tfor (int i = 0; i < maxFloatPart; i++) {\r\n\t\t\t\t\t\tif(aLength < aIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\taCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taCurDigit = a.charAt(aIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(bLength < bIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\tbCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbCurDigit = b.charAt(bIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\t\telse { result = -1; }\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\tif(minus) result = 0 - result;\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "public static Object le(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) <= 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) <= 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in le\");\n\t}", "public static Result min(Result a, Result b) {\n\t\treturn a == Result.INCORRECT || b == Result.INCORRECT ? Result.INCORRECT\n\t\t\t\t: a == Result.WARNING || b == Result.WARNING ? Result.WARNING\n\t\t\t\t\t\t: Result.CORRECT;\n\t}", "public static boolean almostEqualsNumber(double value1, double value2) {\n return almostEqualsNumber(value1, value2, DOUBLE_EPSILON);\n }", "public static boolean almostEqualsNumber(float value1, float value2, float acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static void main(String [] args){\n double a= 5+(4*5)/5;\n double b= (6*4%2)+15;\n System.out.println(\"a = \"+a);\n System.out.println(\"b = \"+b); \n \n //Ejemplo de operadores relacionales.\n boolean resultado1= a > b;\n boolean resultado2= a !=b; \n System.out.println(\"R1= \"+resultado1);\n System.out.println(\"R2= \"+resultado2); \n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public static String numberComparison(int num1, int num2){\n\n if(num1 > num2) {\n return num1 + \" is greater than \" + num2;\n } else if (num2 > num1) {\n return num2 + \" is greater than \" + num1;\n } else if(num1 == num2) {\n return num1 + num2 + \" are equal \";\n }\n return \"Nothing to compare\";\n }", "public static boolean compareNumerics(Parser parser, ResultValue resOp1, ResultValue resOp2, String operator)\r\n {\r\n \tdouble val1 = Numeric.getDoubleValue(resOp1.value);\r\n \tdouble val2 = Numeric.getDoubleValue(resOp2.value);\r\n \t\r\n \t\r\n \t\r\n \tswitch(operator)\r\n \t{\r\n \t\tcase \">=\" :\r\n \t\t\tif(val1 >= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse \r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \">\" :\r\n \t\t\tif(val1 > val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<=\" :\r\n \t\t\tif(val1 <= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<\" :\r\n \t\t\tif(val1 < val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"!=\" :\r\n \t\t\tif(val1 != val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"==\" :\r\n \t\t\tif(val1 == val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tdefault :\r\n \t\t\tSystem.out.println(\"Error in compare Numerics, \" + operator + \" is not valid\");\r\n \t\t\treturn false;\r\n \t\t\r\n \t\t\t\r\n \t\t\r\n \t}\r\n }", "@Test\n\tpublic void Given13And20GetNegative1() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(13, 20);\n\t\tassertEquals(-1, result);\n\t}", "@Test\n public void testCompareTo() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n Money moneyCad2 = new Money(magnitude3, cad);\n\n try {\n moneyUsd.compareTo(moneyCad);\n fail(\"Comparisons between Money objects with different currencies should fail\");\n } catch(CurrencyMismatchRuntimeException cmm) {\n }\n \n assertTrue(\"Less than\", moneyUsd.compareTo(moneyUsd2) < 0);\n assertTrue(\"Greater than\", moneyUsd2.compareTo(moneyUsd) > 0);\n assertTrue(\"Equal\", 0 == moneyCad.compareTo(moneyCad2));\n\n assertTrue(\"Less than 2\", moneyUsd.lessThan(moneyUsd2));\n assertTrue(\"Greater than 2\", moneyUsd2.greaterThan(moneyUsd));\n assertTrue(\"Equal 2\", moneyCad.equals(moneyCad2));\n\n \n }", "private static int almostEqual(GroundTerm a, GroundTerm b) {\r\n\t\treturn StringUtils.getLevenshteinDistance(a.toString(), b.toString());\r\n\t}", "boolean isMismatch(double score);", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "private boolean comps(int a, int b){\n\t\tthis.comparisons.add(new Integer[]{a, b});\n\t\treturn true;\n\t}", "public boolean verify(JTextField initialMileTF, JTextField retMileTF)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint initialMile = new Integer(Integer.parseInt(initialMileTF.getText().trim()));\r\n\t\t\tint retMile = new Integer(Integer.parseInt(retMileTF.getText().trim()));\r\n\r\n\t\t\tif(retMile >= initialMile)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Return mileage is less than initial mileage\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NumberFormatException nfe)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"NumberFormatException in verify\");\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Try an actual number like (2)\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }", "private Comparison checkResult(final int result) {\n return (result < 0) ? LESS_COMPARISON : (result > 0) ? GREATER_COMPARISON : getInstance();\n }", "static String kangaroo(int x1, int v1, int x2, int v2) {\n int x=x1-x2;\n int v=v2-v1;\n if(v!=0){\n if(x%v==0 && x/v>0){\n return \"YES\";\n }else {return \"NO\";}\n\n }else {return \"NO\";}\n\n }", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "public int compare(RomanNumeralFactors first, RomanNumeralFactors second) {\n return second.factor - first.factor;\n }", "public static void main(String[] args) {\n\t\t\n\t\tInteger num1 = -128;\n\t\tInteger num2= -128;\n\t\t\n\t\tif(num1 == num2) {\n\t\t\tSystem.out.println(\"Both are equal\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Both are not equal\");\n\t\t}\n\t}", "public boolean compareAverages(Average<? extends Number> other){\n\t\tif(this.computeAverage().compareTo(other.computeAverage()) == 0){ //Double.compareTo() returns 0 if two Doubles have the same v\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "@Test\n public void testAbsEqual() { \n assertTrue(!Double.isNaN(sLog.fromReal(Double.POSITIVE_INFINITY)));\n assertTrue(Double.isNaN(sLog.fromReal(Double.NEGATIVE_INFINITY)));\n {\n double v1 = sLog.fromReal(3);\n double v2 = sLog.fromReal(-3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(0l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertFalse(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n {\n double v1 = sLog.fromReal(-3);\n double v2 = sLog.fromReal(3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(1l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertTrue(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n }", "public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }", "@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "public int verify() {\n\t\tString[] expressions = strEquation.split(\"=\");\n\t\tif (expressions.length == 2) {\n\t\t\tint left = evaluateExpression(expressions[0]);\n\t\t\tint right = evaluateExpression(expressions[1]);\n\t\t\tif (left == right && left != Integer.MAX_VALUE) return left;\n\t\t}\n\t\treturn Integer.MAX_VALUE;\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }" ]
[ "0.6235593", "0.62216365", "0.6220518", "0.61674947", "0.6089924", "0.60751784", "0.5999768", "0.5917133", "0.58809114", "0.5879588", "0.58696276", "0.585326", "0.5746884", "0.57416797", "0.57199013", "0.57183063", "0.57110536", "0.5706076", "0.5703672", "0.5695104", "0.5682179", "0.5679485", "0.56521297", "0.5633829", "0.55835855", "0.55770254", "0.5573131", "0.5557706", "0.5556195", "0.5535149", "0.553369", "0.5528963", "0.54991925", "0.5498137", "0.54927224", "0.5487399", "0.5485973", "0.54857343", "0.5483317", "0.54820055", "0.5477187", "0.5473141", "0.5472468", "0.5463965", "0.54573166", "0.5448664", "0.5448293", "0.5435024", "0.54148865", "0.54092044", "0.53979546", "0.53766525", "0.5376426", "0.5370283", "0.53672445", "0.53625345", "0.5357479", "0.5351065", "0.535067", "0.5344631", "0.5342361", "0.5338079", "0.53308314", "0.5330425", "0.5311692", "0.5308086", "0.530132", "0.5300259", "0.53000045", "0.52958995", "0.52933776", "0.52901936", "0.528406", "0.5283266", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52796936", "0.52796936" ]
0.5750483
12
Compares two numbers with allowance for errors.
public static int comp( float a, float b ) { return equal( a, b, FREL_TOL, FABS_TOL ) ? 0 : (a < b ? -1 : 1 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean almostEqual(double a, double b);", "public static int comp( double a, double b ) {\n return equal( a, b, REL_TOL, ABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }", "@Override\r\n public int compare(AlgebraicInteger numberA, AlgebraicInteger numberB) {\r\n return Long.compare(numberA.norm(), numberB.norm());\r\n }", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "private static int numCompare(Number value1, Number value2) {\n\t\tif (value1 instanceof Double || value2 instanceof Double) {\n\t\t\treturn Double.compare(\n\t\t\t\t\t(value1).doubleValue(),\n\t\t\t\t\t(value2).doubleValue()\n\t\t\t);\n\t\t}\n\t\treturn Integer.compare(\n\t\t\t\t(Integer)value1,\n\t\t\t\t(Integer)value2\n\t\t);\n\t}", "@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fail occurs\r\n\t}", "private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }", "public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public static boolean almostEqualsNumber(double value1, double value2, double acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static int comp( double a, double b, double relTol, double absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public static int comp( float a, float b, float relTol, float absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public static boolean almost_equals(double a, double b, long maxUlps) {\n if (a == b) { // if two numbers are equal, then the are almost_equal\n return true;\n }\n\n // special case of comparing to zero.\n if (a == 0.0 || b == 0.0) {\n double comp = 1.0e-13; // should correspond to PRECISION_DEFAULT;\n if (maxUlps == PRECISION5) comp = 1.0e-5;\n if (maxUlps == PRECISION7) comp = 1.0e-7;\n if (maxUlps == PRECISION9) comp = 1.0e-9;\n if (maxUlps == PRECISION13) comp = 1.0e-13;\n if (Math.abs(a) < comp && Math.abs(b) < comp) {\n return true;\n }\n }\n\n //if (Double.isNaN(a) || Double.isNaN(b)) { // this operation is slooooooow\n // return false;\n // }\n if (!(a < b || b < a)) { // idiom to filter out NaN's\n return false;\n }\n if (Double.isInfinite(a) || Double.isInfinite(b)) {\n return false;\n }\n\n\n long aInt = Double.doubleToLongBits(a);\n\n // Make aInt lexicographically ordered as a twos-complement long\n if (aInt < 0)\n aInt = 0x8000000000000000l - aInt;\n\n // Make bInt lexicographically ordered as a twos-complement long\n long bInt = Double.doubleToLongBits(b);\n\n if (bInt < 0)\n bInt = 0x8000000000000000l - bInt;\n\n long intDiff = Math.abs(aInt - bInt); // This is valid because IEEE-754\n // doubles are required to be\n // lexically ordered\n\n if (intDiff <= maxUlps) {\n return true;\n }\n\n return false;\n }", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "protected int compareNumbers(Number n1, Number n2) {\n BigDecimal bd1 = new BigDecimal(n1.toString());\n BigDecimal bd2 = new BigDecimal(n2.toString());\n return bd1.compareTo(bd2);\n }", "public static void main(String[] args) {\n\t\tString FirstNumber = 15 + \"\" ;\n\t\tString SecondNumber = 15 + \"\";\n\t\t\n\t\tif(FirstNumber . compareTo(SecondNumber)==0)\n\t\t\n\t\t\tSystem.out.println(\"Numbers are equal\");\n\t\t\n\t\telse\n\t\t\t\n\t\t\tSystem.out.println(\"Numbers are not equal\");\n\t}", "@Test\r\n\tpublic void testNums() {\n\t\tint num1=10;int num2=10;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertTrue(ClientMain.compareNums(num1, num2));\r\n\t}", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "@Test\n\tpublic void testMinimumNumber() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble tmpResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue( (tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue((tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) \n\t\t\t|| (-0.123456789 == ac.minimumNumber(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.min(zero, zero);\n\t\t\t//System.out.println(inpResult + \" ############\");\n\t\t\tassertTrue( (inpResult == ac.minimumNumber(zero, zero)) );\n\t\t}\n\t\t\n\t}", "public void testCompare() throws Exception {\n\n Object testData[][] = {\n { \"aaa\", \"bbb\", -1 },\n { \"aaa\", \"aaa\", 0 },\n { \"bbb\", \"aaa\", 1 },\n { \"aaa\", \"aaa_L1_bbb.lsm\", -1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L1_bbb.lsm\", 0 },\n { \"aaa_L1_bbb.lsm\", \"aaa\", 1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 },\n { \"aaa_L10_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_La_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_L2_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 }\n };\n\n LNumberComparator comparator = new LNumberComparator();\n\n for (Object[] testRow : testData) {\n String name1 = (String) testRow[0];\n String name2 = (String) testRow[1];\n File file1 = new File(name1);\n File file2 = new File(name2);\n int expectedResult = (Integer) testRow[2];\n int actualResult = comparator.compare(new FileTarget(file1),\n new FileTarget(file2));\n\n boolean isValid = ((expectedResult > 0) && (actualResult > 0)) ||\n ((expectedResult < 0) && (actualResult < 0)) ||\n ((expectedResult == 0) && (actualResult == 0));\n\n assertTrue(name1 + \" compared to \" + name2 +\n \" returned invalid result of \" + actualResult +\n \" (should have same sign as \" + expectedResult + \")\",\n isValid);\n }\n\n }", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "public static boolean almost_less(double a, double b) {\n if (almost_equals(a, b)) {\n return false;\n }\n return a < b;\n }", "public static int compareTo (int []n1, int[]n2) {\n\t\tint off1 = 0;\n\t\tint off2 = 0;\n\t\t\n\t\tboolean z1 = isZero(n1);\n\t\tboolean z2 = isZero(n2);\n\t\tif (z1 && z2) { return 0; } // both zero.\n\t\tif (z1) { return -1; } // second number is not zero.\n\t\tif (z2) { return +1; } // first number is not zero.\n\t\t\n\t\twhile (n1[off1] == 0) { off1++; } // compute leading zeros.\n\t\twhile (n2[off2] == 0) { off2++; }\n\n\t\tint sz1 = n1.length-off1;\n\t\tint sz2 = n2.length-off2;\n\t\t\n\t\tif (sz1 < sz2) { return -1; } // first number has less digits (after removing leading zeros)\n\t\tif (sz2 < sz1) { return +1; } // second number has less digits (after removing leading zeros)\n\t\t\n\t\t// same number of digits, compare 1-by-1\n\t\t\n\t\tfor (int i = 0; i < sz1; i++) {\n\t\t\tif (n1[off1+i] == n2[off2+i]) { \n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Must be able to report by now...\n\t\t\tif (n2[off2+i] > n1[off1+i]) {\n\t\t\t\treturn -1;\n\t\t\t} else {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// must be the same!\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}", "public static boolean userEquals(int number1, int number2) throws NegativeNumberException {\n if (number1 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number1);\n }\n if (number2 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number2);\n }\n return mainMethod(number1, number2);\n }", "private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }", "public Comparison compare(double left, double right) {\n return checkResult(Double.compare(left, right));\n }", "public static int close10(int a, int b){\n\n int aDiff = Math.abs(a - 10);\n int bDiff = Math.abs(b - 10);\n\n if (aDiff < bDiff) {\n return a;\n }\n if (bDiff < aDiff) {\n return b;\n }\n return 0; // aDiff == bDiff\n }", "public static boolean comp(int[] a, int[]b) {\n\t\tif((a == null) || (b == null)) return false;\n\n\t\t//Arrays.sort(a1);\n\t\tArrays.sort(a);\n\t\tfor(int x=0; x<a.length; ++x) {\n\t\t\tif(a[x]<0) a[x] *= -1; \n\t\t}\n\t\tArrays.sort(a);\n\t\tArrays.sort(b);\n\n\t\t//This works for non-negative int arrays\n\t\t//Arrays.sort(a);\n\t\t//Arrays.sort(b);\n\n\t\tif(a.length == b.length) {\n\t\t\tfor(int i=0; i<a.length; ++i) {\n\t\t\t\tif((a[i]*a[i]) != b[i]) return false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t\t\n\t\t//System.out.println(a[0] + \" \" + b[0]);\n\t\t//return null;\n\t}", "private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}", "public int compareVersion(String version1, String version2) {\n int[] v1 = parse(version1);\n int[] v2 = parse(version2);\n int result = -1;\n if (v1.length > v2.length) {\n result = 1;\n int[] temp = v1;\n v1 = v2;\n v2 = temp;\n }\n for (int i = 0; i < v2.length; ++ i) {\n if (i < v1.length)\n v2[i] -= v1[i];\n }\n\n for (int i = 0; i < v2.length; ++ i) {\n if (v2[i] != 0)\n return v2[i] > 0 ? result : -result;\n }\n return 0;\n }", "public static int compare(double v1, double v2) {\n return ( v1 - v2 ) > 0 ? 1 : ( ( v1 - v2 ) == 0 ? 0 : -1 );\n }", "public void ejercicio03() {\r\n\t\tcabecera(\"03\", \"Comparar numeros\");\r\n\r\n // Inicio modificacion\r\n\t\t\r\n NumeroEntero n1 = new NumeroEntero(10);\r\n NumeroEntero n2 = new NumeroEntero(10);\r\n\r\n if (n1.comapreTo(n2) == -1){\r\n \t System.out.println(\"N1-> \"+n1);\r\n System.out.println(\"N1 es mayor que N2\");\r\n }\r\n else if (n1.comapreTo(n2) ==1) {\r\n System.out.println(\"N1 -> \"+n1);\r\n System.out.println(\"N1 es menor que N2\");\r\n }\r\n else{\r\n System.out.println(\"N1 y N2 son iguales -> N1 ->\"+n1+\" N2 -> \"+n2);\r\n }\r\n\r\n\t\t// Fin modificacion\r\n\t\t\r\n\t}", "public static boolean AreEqual(double a, double b)\n {\n return Math.abs(a - b) < EPSILON;\n }", "static int ifEquals(int x, int y, int a, int b) { \n //return x==y?a:b; \n return onEqu1(x, y, a, b, ((x-y)-1)>>31);\n }", "boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}", "static boolean bigint_gt(bigint a, bigint b)\n {\n if (a.bigint_sign && !b.bigint_sign)\n return true;\n else if (!a.bigint_sign && b.bigint_sign)\n return false;\n else\n {\n if (a.bigint_len > b.bigint_len)\n return a.bigint_sign;\n else if (a.bigint_len < b.bigint_len)\n return !a.bigint_sign;\n else\n for (int i = 0; i < a.bigint_len; i++)\n {\n int j = a.bigint_len - 1 - i;\n if (a.bigint_chiffres[j] > b.bigint_chiffres[j])\n return a.bigint_sign;\n else if (a.bigint_chiffres[j] < b.bigint_chiffres[j])\n return !a.bigint_sign;\n }\n return true;\n }\n }", "public int compare(Tensor newCost, Tensor oldCost) {\n if (oldCost.length() != newCost.length() || oldCost.length() != slack.length())\n throw TensorRuntimeException.of(oldCost, newCost, slack);\n int cmp = 0;\n for (int index = 0; index < oldCost.length() && cmp == 0; ++index) {\n Scalar min = oldCost.Get(index);\n if (Scalars.isZero(min))\n cmp = Scalars.compare(newCost.Get(index), min);\n else {\n Scalar diffRatio = newCost.Get(index).subtract(min).divide(min);\n cmp = Scalars.lessEquals(diffRatio.abs(), slack.Get(index)) //\n ? 0\n : Sign.of(diffRatio).number().intValue();\n }\n }\n return cmp;\n }", "public static boolean almost_equals(double a, double b) {\n return almost_equals(a, b, PRECISION_DEFAULT);\n }", "public static boolean roughlyEqual(double a, double b) {\n if (Double.isNaN(a)) {\n return Double.isNaN(b);\n }\n\n if (Double.isNaN(b)) {\n return false;\n }\n\n return Math.abs(a - b) < 0.01;\n }", "@Test\n public void testMinMaxNumber() {\n NumberValue minNumber = factory.getMinNumber();\n NumberValue maxNumber = factory.getMaxNumber();\n MatcherAssert.assertThat(minNumber + \" < \" + maxNumber, minNumber.compareTo(maxNumber), lessThan(0));\n }", "void validateLessThanOrEqualTo(Number x, Number y, String failureMessage, String successMessage) throws ValidationException, IllegalArgumentException;", "static boolean bigint_eq(bigint a, bigint b)\n {\n if (a.bigint_sign != b.bigint_sign)\n return false;\n else if (a.bigint_len != b.bigint_len)\n return false;\n else\n {\n for (int i = 0; i < a.bigint_len; i++)\n if (a.bigint_chiffres[i] != b.bigint_chiffres[i])\n return false;\n return true;\n }\n }", "@Test\n public void errCase() {\n MaximumSwap s = new MaximumSwap();\n int ans = s.maximumSwap(98368);\n assertEquals(98863, ans);\n }", "public Comparison compare(float left, float right) {\n return checkResult(Float.compare(left, right));\n }", "public static int getVeryLongCompare(String a, String b) {\r\n\t\tif(a.equals(b))\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\tint result = 0;\r\n\t\t\tboolean minus = false;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) != 45) return -1;\r\n\t\t\tif(a.charAt(0) != 45 && b.charAt(0) == 45) return 1;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) == 45) { \r\n\t\t\t\tminus = true;\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\t}\r\n\t\t\tif (a.charAt(0) == 46) a = \"0\" + a;\r\n\t\t\tif (b.charAt(0) == 46) b = \"0\" + b;\r\n\t\t\twhile(a.charAt(0) == 48 && a.charAt(1) != 46)\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\twhile(b.charAt(0) == 48 && b.charAt(1) != 46)\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\tboolean done = false;\r\n\t\t\tint aPointPos = a.indexOf(\".\");\r\n\t\t\tint bPointPos = b.indexOf(\".\");\r\n\t\t\tint aLength = a.length();\r\n\t\t\tint bLength = b.length();\r\n\t\t\tint aIntegerPart = aLength; \r\n\t\t\tint bIntegerPart = bLength;\r\n\t\t\tint aCurDigit = 0;\r\n\t\t\tint bCurDigit = 0;\r\n\t\t\tif (aPointPos > -1) {\r\n\t\t\t\taIntegerPart = aPointPos;\r\n\t\t\t}\r\n\t\t\tif (bPointPos > -1) {\r\n\t\t\t\tbIntegerPart = bPointPos;\r\n\t\t\t}\r\n\t\t\tif (aIntegerPart != bIntegerPart) {\r\n\t\t\t\tdone = true;\r\n\t\t\t\tif(aIntegerPart > bIntegerPart)\tresult = 1;\r\n\t\t\t\telse result = -1;\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < aIntegerPart; i++) {\r\n\t\t\t\t\taCurDigit = a.charAt(i) - 48;\r\n\t\t\t\t\tbCurDigit = b.charAt(i) - 48;\r\n\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint maxFloatPart = Math.max(aLength - aIntegerPart - 1, bLength - bIntegerPart - 1);\r\n\t\t\t\tif(!done) {\r\n\t\t\t\t\tfor (int i = 0; i < maxFloatPart; i++) {\r\n\t\t\t\t\t\tif(aLength < aIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\taCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taCurDigit = a.charAt(aIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(bLength < bIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\tbCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbCurDigit = b.charAt(bIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\t\telse { result = -1; }\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\tif(minus) result = 0 - result;\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "public static Object le(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) <= 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) <= 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in le\");\n\t}", "public static Result min(Result a, Result b) {\n\t\treturn a == Result.INCORRECT || b == Result.INCORRECT ? Result.INCORRECT\n\t\t\t\t: a == Result.WARNING || b == Result.WARNING ? Result.WARNING\n\t\t\t\t\t\t: Result.CORRECT;\n\t}", "public static boolean almostEqualsNumber(double value1, double value2) {\n return almostEqualsNumber(value1, value2, DOUBLE_EPSILON);\n }", "public static boolean almostEqualsNumber(float value1, float value2, float acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static void main(String [] args){\n double a= 5+(4*5)/5;\n double b= (6*4%2)+15;\n System.out.println(\"a = \"+a);\n System.out.println(\"b = \"+b); \n \n //Ejemplo de operadores relacionales.\n boolean resultado1= a > b;\n boolean resultado2= a !=b; \n System.out.println(\"R1= \"+resultado1);\n System.out.println(\"R2= \"+resultado2); \n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public static String numberComparison(int num1, int num2){\n\n if(num1 > num2) {\n return num1 + \" is greater than \" + num2;\n } else if (num2 > num1) {\n return num2 + \" is greater than \" + num1;\n } else if(num1 == num2) {\n return num1 + num2 + \" are equal \";\n }\n return \"Nothing to compare\";\n }", "public static boolean compareNumerics(Parser parser, ResultValue resOp1, ResultValue resOp2, String operator)\r\n {\r\n \tdouble val1 = Numeric.getDoubleValue(resOp1.value);\r\n \tdouble val2 = Numeric.getDoubleValue(resOp2.value);\r\n \t\r\n \t\r\n \t\r\n \tswitch(operator)\r\n \t{\r\n \t\tcase \">=\" :\r\n \t\t\tif(val1 >= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse \r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \">\" :\r\n \t\t\tif(val1 > val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<=\" :\r\n \t\t\tif(val1 <= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<\" :\r\n \t\t\tif(val1 < val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"!=\" :\r\n \t\t\tif(val1 != val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"==\" :\r\n \t\t\tif(val1 == val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tdefault :\r\n \t\t\tSystem.out.println(\"Error in compare Numerics, \" + operator + \" is not valid\");\r\n \t\t\treturn false;\r\n \t\t\r\n \t\t\t\r\n \t\t\r\n \t}\r\n }", "@Test\n\tpublic void Given13And20GetNegative1() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(13, 20);\n\t\tassertEquals(-1, result);\n\t}", "@Test\n public void testCompareTo() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n Money moneyCad2 = new Money(magnitude3, cad);\n\n try {\n moneyUsd.compareTo(moneyCad);\n fail(\"Comparisons between Money objects with different currencies should fail\");\n } catch(CurrencyMismatchRuntimeException cmm) {\n }\n \n assertTrue(\"Less than\", moneyUsd.compareTo(moneyUsd2) < 0);\n assertTrue(\"Greater than\", moneyUsd2.compareTo(moneyUsd) > 0);\n assertTrue(\"Equal\", 0 == moneyCad.compareTo(moneyCad2));\n\n assertTrue(\"Less than 2\", moneyUsd.lessThan(moneyUsd2));\n assertTrue(\"Greater than 2\", moneyUsd2.greaterThan(moneyUsd));\n assertTrue(\"Equal 2\", moneyCad.equals(moneyCad2));\n\n \n }", "private static int almostEqual(GroundTerm a, GroundTerm b) {\r\n\t\treturn StringUtils.getLevenshteinDistance(a.toString(), b.toString());\r\n\t}", "boolean isMismatch(double score);", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "private boolean comps(int a, int b){\n\t\tthis.comparisons.add(new Integer[]{a, b});\n\t\treturn true;\n\t}", "public boolean verify(JTextField initialMileTF, JTextField retMileTF)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint initialMile = new Integer(Integer.parseInt(initialMileTF.getText().trim()));\r\n\t\t\tint retMile = new Integer(Integer.parseInt(retMileTF.getText().trim()));\r\n\r\n\t\t\tif(retMile >= initialMile)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Return mileage is less than initial mileage\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NumberFormatException nfe)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"NumberFormatException in verify\");\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Try an actual number like (2)\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }", "private Comparison checkResult(final int result) {\n return (result < 0) ? LESS_COMPARISON : (result > 0) ? GREATER_COMPARISON : getInstance();\n }", "static String kangaroo(int x1, int v1, int x2, int v2) {\n int x=x1-x2;\n int v=v2-v1;\n if(v!=0){\n if(x%v==0 && x/v>0){\n return \"YES\";\n }else {return \"NO\";}\n\n }else {return \"NO\";}\n\n }", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "public int compare(RomanNumeralFactors first, RomanNumeralFactors second) {\n return second.factor - first.factor;\n }", "public static void main(String[] args) {\n\t\t\n\t\tInteger num1 = -128;\n\t\tInteger num2= -128;\n\t\t\n\t\tif(num1 == num2) {\n\t\t\tSystem.out.println(\"Both are equal\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Both are not equal\");\n\t\t}\n\t}", "public boolean compareAverages(Average<? extends Number> other){\n\t\tif(this.computeAverage().compareTo(other.computeAverage()) == 0){ //Double.compareTo() returns 0 if two Doubles have the same v\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "@Test\n public void testAbsEqual() { \n assertTrue(!Double.isNaN(sLog.fromReal(Double.POSITIVE_INFINITY)));\n assertTrue(Double.isNaN(sLog.fromReal(Double.NEGATIVE_INFINITY)));\n {\n double v1 = sLog.fromReal(3);\n double v2 = sLog.fromReal(-3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(0l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertFalse(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n {\n double v1 = sLog.fromReal(-3);\n double v2 = sLog.fromReal(3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(1l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertTrue(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n }", "public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }", "@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "public int verify() {\n\t\tString[] expressions = strEquation.split(\"=\");\n\t\tif (expressions.length == 2) {\n\t\t\tint left = evaluateExpression(expressions[0]);\n\t\t\tint right = evaluateExpression(expressions[1]);\n\t\t\tif (left == right && left != Integer.MAX_VALUE) return left;\n\t\t}\n\t\treturn Integer.MAX_VALUE;\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }" ]
[ "0.6235593", "0.62216365", "0.6220518", "0.61674947", "0.6089924", "0.60751784", "0.5999768", "0.5917133", "0.58809114", "0.58696276", "0.585326", "0.5750483", "0.5746884", "0.57416797", "0.57199013", "0.57183063", "0.57110536", "0.5706076", "0.5703672", "0.5695104", "0.5682179", "0.5679485", "0.56521297", "0.5633829", "0.55835855", "0.55770254", "0.5573131", "0.5557706", "0.5556195", "0.5535149", "0.553369", "0.5528963", "0.54991925", "0.5498137", "0.54927224", "0.5487399", "0.5485973", "0.54857343", "0.5483317", "0.54820055", "0.5477187", "0.5473141", "0.5472468", "0.5463965", "0.54573166", "0.5448664", "0.5448293", "0.5435024", "0.54148865", "0.54092044", "0.53979546", "0.53766525", "0.5376426", "0.5370283", "0.53672445", "0.53625345", "0.5357479", "0.5351065", "0.535067", "0.5344631", "0.5342361", "0.5338079", "0.53308314", "0.5330425", "0.5311692", "0.5308086", "0.530132", "0.5300259", "0.53000045", "0.52958995", "0.52933776", "0.52901936", "0.528406", "0.5283266", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52805376", "0.52796936", "0.52796936" ]
0.5879588
9
Compares two numbers with allowance for errors.
public static int comp( float a, float b, float relTol, float absTol ) { return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean almostEqual(double a, double b);", "public static int comp( double a, double b ) {\n return equal( a, b, REL_TOL, ABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }", "@Override\r\n public int compare(AlgebraicInteger numberA, AlgebraicInteger numberB) {\r\n return Long.compare(numberA.norm(), numberB.norm());\r\n }", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "private static int numCompare(Number value1, Number value2) {\n\t\tif (value1 instanceof Double || value2 instanceof Double) {\n\t\t\treturn Double.compare(\n\t\t\t\t\t(value1).doubleValue(),\n\t\t\t\t\t(value2).doubleValue()\n\t\t\t);\n\t\t}\n\t\treturn Integer.compare(\n\t\t\t\t(Integer)value1,\n\t\t\t\t(Integer)value2\n\t\t);\n\t}", "@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fail occurs\r\n\t}", "private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }", "public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }", "public static int comp( float a, float b ) {\n return equal( a, b, FREL_TOL, FABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public static boolean almostEqualsNumber(double value1, double value2, double acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static int comp( double a, double b, double relTol, double absTol ) {\n return equal( a, b, relTol, absTol ) ? 0 : ( a < b ? -1 : 1 );\n }", "public static boolean almost_equals(double a, double b, long maxUlps) {\n if (a == b) { // if two numbers are equal, then the are almost_equal\n return true;\n }\n\n // special case of comparing to zero.\n if (a == 0.0 || b == 0.0) {\n double comp = 1.0e-13; // should correspond to PRECISION_DEFAULT;\n if (maxUlps == PRECISION5) comp = 1.0e-5;\n if (maxUlps == PRECISION7) comp = 1.0e-7;\n if (maxUlps == PRECISION9) comp = 1.0e-9;\n if (maxUlps == PRECISION13) comp = 1.0e-13;\n if (Math.abs(a) < comp && Math.abs(b) < comp) {\n return true;\n }\n }\n\n //if (Double.isNaN(a) || Double.isNaN(b)) { // this operation is slooooooow\n // return false;\n // }\n if (!(a < b || b < a)) { // idiom to filter out NaN's\n return false;\n }\n if (Double.isInfinite(a) || Double.isInfinite(b)) {\n return false;\n }\n\n\n long aInt = Double.doubleToLongBits(a);\n\n // Make aInt lexicographically ordered as a twos-complement long\n if (aInt < 0)\n aInt = 0x8000000000000000l - aInt;\n\n // Make bInt lexicographically ordered as a twos-complement long\n long bInt = Double.doubleToLongBits(b);\n\n if (bInt < 0)\n bInt = 0x8000000000000000l - bInt;\n\n long intDiff = Math.abs(aInt - bInt); // This is valid because IEEE-754\n // doubles are required to be\n // lexically ordered\n\n if (intDiff <= maxUlps) {\n return true;\n }\n\n return false;\n }", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "protected int compareNumbers(Number n1, Number n2) {\n BigDecimal bd1 = new BigDecimal(n1.toString());\n BigDecimal bd2 = new BigDecimal(n2.toString());\n return bd1.compareTo(bd2);\n }", "public static void main(String[] args) {\n\t\tString FirstNumber = 15 + \"\" ;\n\t\tString SecondNumber = 15 + \"\";\n\t\t\n\t\tif(FirstNumber . compareTo(SecondNumber)==0)\n\t\t\n\t\t\tSystem.out.println(\"Numbers are equal\");\n\t\t\n\t\telse\n\t\t\t\n\t\t\tSystem.out.println(\"Numbers are not equal\");\n\t}", "@Test\r\n\tpublic void testNums() {\n\t\tint num1=10;int num2=10;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertTrue(ClientMain.compareNums(num1, num2));\r\n\t}", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "@Test\n\tpublic void testMinimumNumber() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble tmpResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue( (tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue((tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) \n\t\t\t|| (-0.123456789 == ac.minimumNumber(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.min(zero, zero);\n\t\t\t//System.out.println(inpResult + \" ############\");\n\t\t\tassertTrue( (inpResult == ac.minimumNumber(zero, zero)) );\n\t\t}\n\t\t\n\t}", "public void testCompare() throws Exception {\n\n Object testData[][] = {\n { \"aaa\", \"bbb\", -1 },\n { \"aaa\", \"aaa\", 0 },\n { \"bbb\", \"aaa\", 1 },\n { \"aaa\", \"aaa_L1_bbb.lsm\", -1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L1_bbb.lsm\", 0 },\n { \"aaa_L1_bbb.lsm\", \"aaa\", 1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 },\n { \"aaa_L10_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_La_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_L2_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 }\n };\n\n LNumberComparator comparator = new LNumberComparator();\n\n for (Object[] testRow : testData) {\n String name1 = (String) testRow[0];\n String name2 = (String) testRow[1];\n File file1 = new File(name1);\n File file2 = new File(name2);\n int expectedResult = (Integer) testRow[2];\n int actualResult = comparator.compare(new FileTarget(file1),\n new FileTarget(file2));\n\n boolean isValid = ((expectedResult > 0) && (actualResult > 0)) ||\n ((expectedResult < 0) && (actualResult < 0)) ||\n ((expectedResult == 0) && (actualResult == 0));\n\n assertTrue(name1 + \" compared to \" + name2 +\n \" returned invalid result of \" + actualResult +\n \" (should have same sign as \" + expectedResult + \")\",\n isValid);\n }\n\n }", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "public static boolean almost_less(double a, double b) {\n if (almost_equals(a, b)) {\n return false;\n }\n return a < b;\n }", "public static int compareTo (int []n1, int[]n2) {\n\t\tint off1 = 0;\n\t\tint off2 = 0;\n\t\t\n\t\tboolean z1 = isZero(n1);\n\t\tboolean z2 = isZero(n2);\n\t\tif (z1 && z2) { return 0; } // both zero.\n\t\tif (z1) { return -1; } // second number is not zero.\n\t\tif (z2) { return +1; } // first number is not zero.\n\t\t\n\t\twhile (n1[off1] == 0) { off1++; } // compute leading zeros.\n\t\twhile (n2[off2] == 0) { off2++; }\n\n\t\tint sz1 = n1.length-off1;\n\t\tint sz2 = n2.length-off2;\n\t\t\n\t\tif (sz1 < sz2) { return -1; } // first number has less digits (after removing leading zeros)\n\t\tif (sz2 < sz1) { return +1; } // second number has less digits (after removing leading zeros)\n\t\t\n\t\t// same number of digits, compare 1-by-1\n\t\t\n\t\tfor (int i = 0; i < sz1; i++) {\n\t\t\tif (n1[off1+i] == n2[off2+i]) { \n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Must be able to report by now...\n\t\t\tif (n2[off2+i] > n1[off1+i]) {\n\t\t\t\treturn -1;\n\t\t\t} else {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// must be the same!\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}", "public static boolean userEquals(int number1, int number2) throws NegativeNumberException {\n if (number1 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number1);\n }\n if (number2 < 0){\n throw new NegativeNumberException(\"Exception! Trying to work with negative number: \", number2);\n }\n return mainMethod(number1, number2);\n }", "private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }", "public Comparison compare(double left, double right) {\n return checkResult(Double.compare(left, right));\n }", "public static int close10(int a, int b){\n\n int aDiff = Math.abs(a - 10);\n int bDiff = Math.abs(b - 10);\n\n if (aDiff < bDiff) {\n return a;\n }\n if (bDiff < aDiff) {\n return b;\n }\n return 0; // aDiff == bDiff\n }", "public static boolean comp(int[] a, int[]b) {\n\t\tif((a == null) || (b == null)) return false;\n\n\t\t//Arrays.sort(a1);\n\t\tArrays.sort(a);\n\t\tfor(int x=0; x<a.length; ++x) {\n\t\t\tif(a[x]<0) a[x] *= -1; \n\t\t}\n\t\tArrays.sort(a);\n\t\tArrays.sort(b);\n\n\t\t//This works for non-negative int arrays\n\t\t//Arrays.sort(a);\n\t\t//Arrays.sort(b);\n\n\t\tif(a.length == b.length) {\n\t\t\tfor(int i=0; i<a.length; ++i) {\n\t\t\t\tif((a[i]*a[i]) != b[i]) return false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t\t\n\t\t//System.out.println(a[0] + \" \" + b[0]);\n\t\t//return null;\n\t}", "private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}", "public int compareVersion(String version1, String version2) {\n int[] v1 = parse(version1);\n int[] v2 = parse(version2);\n int result = -1;\n if (v1.length > v2.length) {\n result = 1;\n int[] temp = v1;\n v1 = v2;\n v2 = temp;\n }\n for (int i = 0; i < v2.length; ++ i) {\n if (i < v1.length)\n v2[i] -= v1[i];\n }\n\n for (int i = 0; i < v2.length; ++ i) {\n if (v2[i] != 0)\n return v2[i] > 0 ? result : -result;\n }\n return 0;\n }", "public static int compare(double v1, double v2) {\n return ( v1 - v2 ) > 0 ? 1 : ( ( v1 - v2 ) == 0 ? 0 : -1 );\n }", "public void ejercicio03() {\r\n\t\tcabecera(\"03\", \"Comparar numeros\");\r\n\r\n // Inicio modificacion\r\n\t\t\r\n NumeroEntero n1 = new NumeroEntero(10);\r\n NumeroEntero n2 = new NumeroEntero(10);\r\n\r\n if (n1.comapreTo(n2) == -1){\r\n \t System.out.println(\"N1-> \"+n1);\r\n System.out.println(\"N1 es mayor que N2\");\r\n }\r\n else if (n1.comapreTo(n2) ==1) {\r\n System.out.println(\"N1 -> \"+n1);\r\n System.out.println(\"N1 es menor que N2\");\r\n }\r\n else{\r\n System.out.println(\"N1 y N2 son iguales -> N1 ->\"+n1+\" N2 -> \"+n2);\r\n }\r\n\r\n\t\t// Fin modificacion\r\n\t\t\r\n\t}", "public static boolean AreEqual(double a, double b)\n {\n return Math.abs(a - b) < EPSILON;\n }", "static int ifEquals(int x, int y, int a, int b) { \n //return x==y?a:b; \n return onEqu1(x, y, a, b, ((x-y)-1)>>31);\n }", "boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}", "static boolean bigint_gt(bigint a, bigint b)\n {\n if (a.bigint_sign && !b.bigint_sign)\n return true;\n else if (!a.bigint_sign && b.bigint_sign)\n return false;\n else\n {\n if (a.bigint_len > b.bigint_len)\n return a.bigint_sign;\n else if (a.bigint_len < b.bigint_len)\n return !a.bigint_sign;\n else\n for (int i = 0; i < a.bigint_len; i++)\n {\n int j = a.bigint_len - 1 - i;\n if (a.bigint_chiffres[j] > b.bigint_chiffres[j])\n return a.bigint_sign;\n else if (a.bigint_chiffres[j] < b.bigint_chiffres[j])\n return !a.bigint_sign;\n }\n return true;\n }\n }", "public static boolean almost_equals(double a, double b) {\n return almost_equals(a, b, PRECISION_DEFAULT);\n }", "public int compare(Tensor newCost, Tensor oldCost) {\n if (oldCost.length() != newCost.length() || oldCost.length() != slack.length())\n throw TensorRuntimeException.of(oldCost, newCost, slack);\n int cmp = 0;\n for (int index = 0; index < oldCost.length() && cmp == 0; ++index) {\n Scalar min = oldCost.Get(index);\n if (Scalars.isZero(min))\n cmp = Scalars.compare(newCost.Get(index), min);\n else {\n Scalar diffRatio = newCost.Get(index).subtract(min).divide(min);\n cmp = Scalars.lessEquals(diffRatio.abs(), slack.Get(index)) //\n ? 0\n : Sign.of(diffRatio).number().intValue();\n }\n }\n return cmp;\n }", "public static boolean roughlyEqual(double a, double b) {\n if (Double.isNaN(a)) {\n return Double.isNaN(b);\n }\n\n if (Double.isNaN(b)) {\n return false;\n }\n\n return Math.abs(a - b) < 0.01;\n }", "@Test\n public void testMinMaxNumber() {\n NumberValue minNumber = factory.getMinNumber();\n NumberValue maxNumber = factory.getMaxNumber();\n MatcherAssert.assertThat(minNumber + \" < \" + maxNumber, minNumber.compareTo(maxNumber), lessThan(0));\n }", "void validateLessThanOrEqualTo(Number x, Number y, String failureMessage, String successMessage) throws ValidationException, IllegalArgumentException;", "static boolean bigint_eq(bigint a, bigint b)\n {\n if (a.bigint_sign != b.bigint_sign)\n return false;\n else if (a.bigint_len != b.bigint_len)\n return false;\n else\n {\n for (int i = 0; i < a.bigint_len; i++)\n if (a.bigint_chiffres[i] != b.bigint_chiffres[i])\n return false;\n return true;\n }\n }", "@Test\n public void errCase() {\n MaximumSwap s = new MaximumSwap();\n int ans = s.maximumSwap(98368);\n assertEquals(98863, ans);\n }", "public Comparison compare(float left, float right) {\n return checkResult(Float.compare(left, right));\n }", "public static int getVeryLongCompare(String a, String b) {\r\n\t\tif(a.equals(b))\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\tint result = 0;\r\n\t\t\tboolean minus = false;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) != 45) return -1;\r\n\t\t\tif(a.charAt(0) != 45 && b.charAt(0) == 45) return 1;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) == 45) { \r\n\t\t\t\tminus = true;\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\t}\r\n\t\t\tif (a.charAt(0) == 46) a = \"0\" + a;\r\n\t\t\tif (b.charAt(0) == 46) b = \"0\" + b;\r\n\t\t\twhile(a.charAt(0) == 48 && a.charAt(1) != 46)\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\twhile(b.charAt(0) == 48 && b.charAt(1) != 46)\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\tboolean done = false;\r\n\t\t\tint aPointPos = a.indexOf(\".\");\r\n\t\t\tint bPointPos = b.indexOf(\".\");\r\n\t\t\tint aLength = a.length();\r\n\t\t\tint bLength = b.length();\r\n\t\t\tint aIntegerPart = aLength; \r\n\t\t\tint bIntegerPart = bLength;\r\n\t\t\tint aCurDigit = 0;\r\n\t\t\tint bCurDigit = 0;\r\n\t\t\tif (aPointPos > -1) {\r\n\t\t\t\taIntegerPart = aPointPos;\r\n\t\t\t}\r\n\t\t\tif (bPointPos > -1) {\r\n\t\t\t\tbIntegerPart = bPointPos;\r\n\t\t\t}\r\n\t\t\tif (aIntegerPart != bIntegerPart) {\r\n\t\t\t\tdone = true;\r\n\t\t\t\tif(aIntegerPart > bIntegerPart)\tresult = 1;\r\n\t\t\t\telse result = -1;\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < aIntegerPart; i++) {\r\n\t\t\t\t\taCurDigit = a.charAt(i) - 48;\r\n\t\t\t\t\tbCurDigit = b.charAt(i) - 48;\r\n\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint maxFloatPart = Math.max(aLength - aIntegerPart - 1, bLength - bIntegerPart - 1);\r\n\t\t\t\tif(!done) {\r\n\t\t\t\t\tfor (int i = 0; i < maxFloatPart; i++) {\r\n\t\t\t\t\t\tif(aLength < aIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\taCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taCurDigit = a.charAt(aIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(bLength < bIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\tbCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbCurDigit = b.charAt(bIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\t\telse { result = -1; }\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\tif(minus) result = 0 - result;\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "public static Object le(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) <= 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) <= 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in le\");\n\t}", "public static Result min(Result a, Result b) {\n\t\treturn a == Result.INCORRECT || b == Result.INCORRECT ? Result.INCORRECT\n\t\t\t\t: a == Result.WARNING || b == Result.WARNING ? Result.WARNING\n\t\t\t\t\t\t: Result.CORRECT;\n\t}", "public static boolean almostEqualsNumber(double value1, double value2) {\n return almostEqualsNumber(value1, value2, DOUBLE_EPSILON);\n }", "public static boolean almostEqualsNumber(float value1, float value2, float acceptableDifference) {\n return Math.abs(value1 - value2) <= acceptableDifference;\n }", "public static void main(String [] args){\n double a= 5+(4*5)/5;\n double b= (6*4%2)+15;\n System.out.println(\"a = \"+a);\n System.out.println(\"b = \"+b); \n \n //Ejemplo de operadores relacionales.\n boolean resultado1= a > b;\n boolean resultado2= a !=b; \n System.out.println(\"R1= \"+resultado1);\n System.out.println(\"R2= \"+resultado2); \n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public static String numberComparison(int num1, int num2){\n\n if(num1 > num2) {\n return num1 + \" is greater than \" + num2;\n } else if (num2 > num1) {\n return num2 + \" is greater than \" + num1;\n } else if(num1 == num2) {\n return num1 + num2 + \" are equal \";\n }\n return \"Nothing to compare\";\n }", "public static boolean compareNumerics(Parser parser, ResultValue resOp1, ResultValue resOp2, String operator)\r\n {\r\n \tdouble val1 = Numeric.getDoubleValue(resOp1.value);\r\n \tdouble val2 = Numeric.getDoubleValue(resOp2.value);\r\n \t\r\n \t\r\n \t\r\n \tswitch(operator)\r\n \t{\r\n \t\tcase \">=\" :\r\n \t\t\tif(val1 >= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse \r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \">\" :\r\n \t\t\tif(val1 > val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<=\" :\r\n \t\t\tif(val1 <= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<\" :\r\n \t\t\tif(val1 < val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"!=\" :\r\n \t\t\tif(val1 != val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"==\" :\r\n \t\t\tif(val1 == val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tdefault :\r\n \t\t\tSystem.out.println(\"Error in compare Numerics, \" + operator + \" is not valid\");\r\n \t\t\treturn false;\r\n \t\t\r\n \t\t\t\r\n \t\t\r\n \t}\r\n }", "@Test\n\tpublic void Given13And20GetNegative1() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(13, 20);\n\t\tassertEquals(-1, result);\n\t}", "@Test\n public void testCompareTo() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n Money moneyCad2 = new Money(magnitude3, cad);\n\n try {\n moneyUsd.compareTo(moneyCad);\n fail(\"Comparisons between Money objects with different currencies should fail\");\n } catch(CurrencyMismatchRuntimeException cmm) {\n }\n \n assertTrue(\"Less than\", moneyUsd.compareTo(moneyUsd2) < 0);\n assertTrue(\"Greater than\", moneyUsd2.compareTo(moneyUsd) > 0);\n assertTrue(\"Equal\", 0 == moneyCad.compareTo(moneyCad2));\n\n assertTrue(\"Less than 2\", moneyUsd.lessThan(moneyUsd2));\n assertTrue(\"Greater than 2\", moneyUsd2.greaterThan(moneyUsd));\n assertTrue(\"Equal 2\", moneyCad.equals(moneyCad2));\n\n \n }", "private static int almostEqual(GroundTerm a, GroundTerm b) {\r\n\t\treturn StringUtils.getLevenshteinDistance(a.toString(), b.toString());\r\n\t}", "boolean isMismatch(double score);", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "private boolean comps(int a, int b){\n\t\tthis.comparisons.add(new Integer[]{a, b});\n\t\treturn true;\n\t}", "public boolean verify(JTextField initialMileTF, JTextField retMileTF)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint initialMile = new Integer(Integer.parseInt(initialMileTF.getText().trim()));\r\n\t\t\tint retMile = new Integer(Integer.parseInt(retMileTF.getText().trim()));\r\n\r\n\t\t\tif(retMile >= initialMile)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Return mileage is less than initial mileage\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NumberFormatException nfe)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"NumberFormatException in verify\");\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Try an actual number like (2)\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }", "private Comparison checkResult(final int result) {\n return (result < 0) ? LESS_COMPARISON : (result > 0) ? GREATER_COMPARISON : getInstance();\n }", "static String kangaroo(int x1, int v1, int x2, int v2) {\n int x=x1-x2;\n int v=v2-v1;\n if(v!=0){\n if(x%v==0 && x/v>0){\n return \"YES\";\n }else {return \"NO\";}\n\n }else {return \"NO\";}\n\n }", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "public int compare(RomanNumeralFactors first, RomanNumeralFactors second) {\n return second.factor - first.factor;\n }", "public static void main(String[] args) {\n\t\t\n\t\tInteger num1 = -128;\n\t\tInteger num2= -128;\n\t\t\n\t\tif(num1 == num2) {\n\t\t\tSystem.out.println(\"Both are equal\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Both are not equal\");\n\t\t}\n\t}", "public boolean compareAverages(Average<? extends Number> other){\n\t\tif(this.computeAverage().compareTo(other.computeAverage()) == 0){ //Double.compareTo() returns 0 if two Doubles have the same v\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "@Test\n public void testAbsEqual() { \n assertTrue(!Double.isNaN(sLog.fromReal(Double.POSITIVE_INFINITY)));\n assertTrue(Double.isNaN(sLog.fromReal(Double.NEGATIVE_INFINITY)));\n {\n double v1 = sLog.fromReal(3);\n double v2 = sLog.fromReal(-3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(0l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertFalse(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n {\n double v1 = sLog.fromReal(-3);\n double v2 = sLog.fromReal(3);\n double sum = sLog.plus(v1, v2);\n System.out.printf(\"%0#16x\\n\", Double.doubleToRawLongBits(sum));\n assertEquals(1l | Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), Double.doubleToRawLongBits(sum));\n assertTrue(Double.isNaN(sum));\n assertFalse(Double.isNaN(sLog.toReal(sum)));\n }\n }", "public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }", "@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public int verify() {\n\t\tString[] expressions = strEquation.split(\"=\");\n\t\tif (expressions.length == 2) {\n\t\t\tint left = evaluateExpression(expressions[0]);\n\t\t\tint right = evaluateExpression(expressions[1]);\n\t\t\tif (left == right && left != Integer.MAX_VALUE) return left;\n\t\t}\n\t\treturn Integer.MAX_VALUE;\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }" ]
[ "0.6237446", "0.622236", "0.62209153", "0.6170097", "0.6089691", "0.60757995", "0.60008454", "0.5917225", "0.58818096", "0.5879732", "0.5871602", "0.5854552", "0.57515424", "0.57437027", "0.5721309", "0.571911", "0.57136893", "0.57074106", "0.57063836", "0.5693459", "0.5683124", "0.5681118", "0.56538826", "0.56354403", "0.5584241", "0.5578439", "0.55756897", "0.5559687", "0.5558412", "0.5537322", "0.5535847", "0.5530426", "0.5499536", "0.5499207", "0.5495723", "0.54902375", "0.54875827", "0.54871917", "0.5484683", "0.5484046", "0.5479422", "0.547194", "0.54714334", "0.5467021", "0.54569435", "0.54500943", "0.5449323", "0.54360145", "0.5415067", "0.54107255", "0.5398927", "0.53789806", "0.5378091", "0.5371179", "0.5370372", "0.5362041", "0.5358916", "0.5353549", "0.53500026", "0.53471655", "0.5344386", "0.53378856", "0.5331813", "0.53299016", "0.53116083", "0.53079116", "0.5303747", "0.53030336", "0.5301506", "0.5295728", "0.5294859", "0.5289865", "0.52847534", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282977", "0.5282948", "0.5282133", "0.5282133" ]
0.57474506
13
TODO Autogenerated method stub
@Override public boolean accept(File fich) { return extension(fich); }
{ "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 String getDescription() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ Member Functions Constructs a UDP input channel bound the the specified endpoint.
public UdpOutputChannel(final UdpEndpoint endpoint) { this.endpoint = endpoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InputPort createInputPort();", "EndPoint createEndPoint();", "public NioDatagramChannel() {\n/* 116 */ this(newSocket(DEFAULT_SELECTOR_PROVIDER));\n/* */ }", "private UDPSender(final URI serverURI) {\n\t\tsuper(serverURI);\n\t\t\n\t\t\t\t\n\t\t//InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());\n\t\tchannelStateListener.addChannelStateAware(this);\n\t\tloggingHandler = new LoggingHandler(InternalLogLevel.ERROR, true);\t\t\n\t\tchannelFactory = new NioDatagramChannelFactory(workerPool);\n\t\tbstrap = new ConnectionlessBootstrap(channelFactory);\n\t\tbstrap.setPipelineFactory(this);\n\t\tbstrap.setOption(\"broadcast\", true);\n\t\tbstrap.setOption(\"localAddress\", new InetSocketAddress(0));\n\t\tbstrap.setOption(\"remoteAddress\", new InetSocketAddress(serverURI.getHost(), serverURI.getPort()));\n\t\tbstrap.setOption(\"receiveBufferSizePredictorFactory\", new FixedReceiveBufferSizePredictorFactory(2048));\n\t\t\n\t\tlisteningSocketAddress = new InetSocketAddress(\"0.0.0.0\", 0);\n\t\t//listeningSocketAddress = new InetSocketAddress(\"127.0.0.1\", 0);\n\t\t\t\n\t\t//senderChannel = (NioDatagramChannel) channelFactory.newChannel(getPipeline());\n\t\tsenderChannel = bstrap.bind();\n\t\tcloseGroup.add(senderChannel);\n\t\tlog(\"Listening on [\" + senderChannel.getLocalAddress()+ \"]\");\t\t\t\t\t\n\t\t\n\t\t\n//\t\tsenderChannel.bind().addListener(new ChannelFutureListener() {\n//\t\t\tpublic void operationComplete(ChannelFuture f) throws Exception {\n//\t\t\t\tif(f.isSuccess()) {\n//\t\t\t\t\tlog(\"Listening on [\" + f.getChannel().getLocalAddress()+ \"]\");\t\t\t\t\t\n//\t\t\t\t} else {\n//\t\t\t\t\tlog(\"Failed to start listener. Stack trace follows\");\n//\t\t\t\t\tf.getCause().printStackTrace(System.err);\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\tsenderChannel.getConfig().setBufferFactory(new DirectChannelBufferFactory());\n//\t\tsenderChannel.connect(socketAddress).addListener(new ChannelFutureListener() {\n//\t\t\t@Override\n//\t\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n//\t\t\t\tconnected.set(true);\t\n//\t\t\t\tsentryState.setState(SentryState.CALLBACK);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\t//socketAddress = new InetSocketAddress(\"239.192.74.66\", 25826);\n\t\tsendHello();\n\t}", "public NioDatagramChannel(InternetProtocolFamily ipFamily) {\n/* 132 */ this(newSocket(DEFAULT_SELECTOR_PROVIDER, ipFamily));\n/* */ }", "public UdpEndpoint( UdpKernel kernel, long id, SocketAddress address, DatagramSocket socket )\n {\n this.id = id;\n this.address = address;\n this.socket = socket;\n this.kernel = kernel;\n }", "public void bind(LocalSocketAddress endpoint) throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n bindLocal(fd, endpoint.getName(), endpoint.getNamespace().getId());\n }", "public NioDatagramChannel(SelectorProvider provider, InternetProtocolFamily ipFamily) {\n/* 141 */ this(newSocket(provider, ipFamily));\n/* */ }", "private static DatagramChannel newSocket(SelectorProvider provider) {\n/* */ try {\n/* 86 */ return provider.openDatagramChannel();\n/* 87 */ } catch (IOException e) {\n/* 88 */ throw new ChannelException(\"Failed to open a socket.\", e);\n/* */ } \n/* */ }", "public UDPLayer() \n\t\tthrows SocketException\n\t{\n\t\tthis(0, true); // use any available port on the local host machine\n\t\t// TODO use -1 instead of 0?\n\t}", "public NioDatagramChannel(DatagramChannel socket) {\n/* 148 */ super(null, socket, 1);\n/* 149 */ this.config = (DatagramChannelConfig)new NioDatagramChannelConfig(this, socket);\n/* */ }", "public NioDatagramChannel(SelectorProvider provider) {\n/* 124 */ this(newSocket(provider));\n/* */ }", "protected UDPMessageChannel(\n InetAddress targetAddr,\n int port,\n SIPMessageStack sipStack,\n UDPMessageProcessor messageProcessor) {\n peerAddress = targetAddr;\n peerPort = port;\n peerProtocol = \"UDP\";\n super.messageProcessor = messageProcessor;\n this.myAddress = sipStack.getHostAddress();\n this.myPort = messageProcessor.getPort();\n this.stack = sipStack;\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Creating message channel \"\n + targetAddr.getHostAddress()\n + \"/\"\n + port);\n }\n }", "protected UDPMessageChannel(InetAddress targetAddr, int port,\n SIPTransactionStack sipStack, UDPMessageProcessor messageProcessor) {\n peerAddress = targetAddr;\n peerPort = port;\n peerProtocol = \"UDP\";\n super.messageProcessor = messageProcessor;\n this.myAddress = messageProcessor.getIpAddress().getHostAddress();\n this.myPort = messageProcessor.getPort();\n this.sipStack = sipStack;\n // jeand : Create a new string message parser to parse the list of\n // messages.\n myParser = sipStack.getMessageParserFactory().createMessageParser(\n sipStack);\n\n if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {\n logger.logDebug(\n \"Creating message channel \" + targetAddr.getHostAddress()\n + \"/\" + port);\n }\n }", "UDPInstance() {\n this(null, null, null, null);\n }", "public abstract Endpoint createEndpoint(String bindingId, Object implementor);", "public Builder setEndpoint(String endpoint) {\n this.endpoint = Preconditions.checkNotNull(endpoint, \"Endpoint is null.\");\n return this;\n }", "private static int generateLocalUdpPort(int portBase) {\r\n \tint resp = -1;\r\n\t\tint port = portBase;\r\n\t\twhile((resp == -1) && (port < Integer.MAX_VALUE)) {\r\n\t\t\tif (isLocalUdpPortFree(port)) {\r\n\t\t\t\t// Free UDP port found\r\n\t\t\t\tresp = port;\r\n\t\t\t} else {\n // +2 needed for RTCP port\n port += 2;\n\t\t\t}\r\n\t\t}\r\n \treturn resp;\r\n }", "public UdpTransport(final FrameHandler frameHandler,\n final InetSocketAddress local,\n final NioSelector nioSelector,\n final EventLogger logger) throws Exception\n {\n this.logger = logger;\n this.readBuffer = new AtomicBuffer(this.readByteBuffer);\n wrapHeadersOnReadBuffer();\n\n this.frameHandler = frameHandler;\n this.nioSelector = nioSelector;\n\n channel.bind(local);\n channel.configureBlocking(false);\n registeredKey = nioSelector.registerForRead(channel, this);\n\n multicast = false;\n }", "public InputEndpoint withPublicPort(Integer publicPort) {\n this.publicPort = publicPort;\n return this;\n }", "public InputEndpoint withPrivatePort(Integer privatePort) {\n this.privatePort = privatePort;\n return this;\n }", "public IEndPointData getLocalEndPoint();", "public void connect (SocketAddress endpoint)\n throws IOException {\n if (state >= CONNECTED)\n throw new IOException (\"socket already connected\");\n if (state != BOUND)\n throw new IOException(\"socket has not been bound\");\n if (endpoint == null)\n throw new IllegalArgumentException();\n if (! (endpoint instanceof InetSocketAddress) )\n throw new IllegalStateException (\"\");\n InetSocketAddress remote = (InetSocketAddress) endpoint;\n remoteAddr = remote.getAddress();\n remotePort = remote.getPort();\n remoteHost = remote.getHostName();\n state = CONNECTED;\n }", "public DnRawType buildEndpointType(@SuppressWarnings(\"unused\") DnCxt cxt, DnRawType epInputType)\n throws DnException {\n var inModel = epInputType.model;\n var namespace = epInputType.namespace;\n String inputTypeRef = DnTypeUtils.applyNamespace(namespace, getReqStr(inModel, EP_INPUT_TYPE_REF));\n String outputTypeRef = DnTypeUtils.applyNamespace(namespace, getReqStr(inModel, EP_OUTPUT_TYPE_REF));\n\n DnRawField inputField = DnRawField.mkField(EPF_INPUT_TYPE,\n \"Endpoint Input Type\", \"The definition of the validation and transformation to \" +\n \"be applied to input data for the endpoint.\");\n DnRawField outputField = DnRawField.mkField(EPF_OUTPUT_TYPE, \"Endpoint Output Type\",\n \"The specification of the allowable output for this endpoint.\");\n DnRawField requestUri = DnRawField.mkReqField(EPR_REQUEST_URI, \"Request URI\",\n \"The request URI that make this request.\");\n DnRawField duration = DnRawField.mkReqField(EPR_DURATION, \"Duration in Milliseconds\",\n \"The time taken to perform the request in milliseconds.\").setTypeRef(DNT_FLOAT);\n\n if (getBoolWithDefault(inModel, EP_IS_LIST_RESPONSE, false)) {\n int defaultLimit = 100;\n // More complex result.\n var inputType = DnRawType.mkSubType(inputTypeRef);\n var limitType = DnRawType.mkSubType(DNT_COUNT).setAttribute(DN_MAX, 20000);\n if (!getBoolWithDefault(inModel, EP_NO_LIMIT_PARAMETER, false)) {\n DnRawField limit = DnRawField.mkField(EPF_LIMIT, \"Limit On Results\",\n \"The maximum number of items that can be returned.\")\n .setTypeDef(limitType)\n .setAttribute(DN_DEFAULT_VALUE, defaultLimit);\n inputType.addField(limit);\n }\n\n inputField.setTypeDef(inputType);\n\n DnRawField numItems = DnRawField.mkReqField(EPR_NUM_ITEMS, \"Number of Items\",\n \"Number of items returned.\").setTypeRef(DNT_COUNT);\n DnRawField items = DnRawField.mkReqField(EPR_ITEMS, \"Items\",\n \"Items returned by endpoint.\")\n .setTypeRef(outputTypeRef).setAttribute(DN_IS_LIST, true);\n List<DnRawField> fieldList = mList(numItems, requestUri, duration);\n if (getBoolWithDefault(inModel, EP_HAS_MORE_PAGING, false)) {\n DnRawField hasMore = DnRawField.mkReqBoolField(EPR_HAS_MORE, \"Has More\",\n \"Whether there are more items that could be returned.\");\n fieldList.add(hasMore);\n }\n if (getBoolWithDefault(inModel, EP_HAS_NUM_AVAILABLE, false)) {\n DnRawField totalSize = DnRawField.mkReqField(EPR_NUM_AVAILABLE, \"Total Size\",\n \"The total number of items available to be returned.\").setTypeRef(DNT_COUNT);\n fieldList.add(totalSize);\n }\n fieldList.add(items);\n var outputType = DnRawType.mkType(fieldList);\n outputField.setTypeDef(outputType);\n } else {\n // Endpoints always use inline (unregistered) types at their core.\n inputField.setTypeDef(DnRawType.mkSubType(inputTypeRef));\n var outputType = DnRawType.mkSubType(outputTypeRef);\n outputType.addFields(mList(requestUri, duration));\n outputField.setTypeDef(outputType);\n }\n\n DnRawType endpointType = DnRawType.mkType(epInputType.name, null);\n endpointType.model.putAll(epInputType.model);\n endpointType.addFields(mList(inputField, outputField));\n endpointType.setAttribute(DN_IS_ENDPOINT, true);\n return endpointType;\n }", "protected UDPMessageChannel(\n SIPMessageStack stack,\n UDPMessageProcessor messageProcessor,\n DatagramPacket packet) {\n \n this.incomingPacket = packet;\n super.messageProcessor = messageProcessor;\n this.stack = stack;\n this.myAddress = stack.getHostAddress();\n this.myPort = messageProcessor.getPort();\n Thread mythread = new Thread(this);\n\tmythread.setDaemon(true);\n mythread.start();\n \n }", "@Override\n default UserpostPrx ice_datagram()\n {\n return (UserpostPrx)_ice_datagram();\n }", "public void startUDP() {\n try {\n DatagramSocket socket = new DatagramSocket(port);\n byte[] buf = new byte[256];\n while (running) {\n DatagramPacket packet = new DatagramPacket((sbyte[])(object) buf, buf.length);\n socket.receive(packet);\n upd_count++;\n packet = new DatagramPacket(buf, buf.length, packet.getAddress(), packet.getPort());\n String received = new String(packet.getData(), 0, packet.getLength());\n process(received.substring(0, received.indexOf('\\0')));\n buf = new byte[256];\n }\n socket.close();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }", "public RgwAdminBuilder endpoint(String endpoint) {\n this.endpoint = endpoint;\n return this;\n }", "public interface DatagramSocketFactory\n{\n /**\n * Creates an unbound DatagramSocket:\n * - i.e <tt>return new DatagramSocket((SocketAddress) null)</tt>.\n *\n * @return An unbound DatagramSocket.\n *\n * @throws SocketException if the socket could not be opened.\n */\n public DatagramSocket createUnboundDatagramSocket()\n throws SocketException;\n}", "private void createThreadUdp(){\n System.out.println(\"dirport: \"+serverDirPort);\n System.out.println(\"udpPort: \"+myUdpPort);\n System.out.println(\"tcpPort: \"+myTcpPort);\n threadHeartbeat=new ThSendHeartBeat(myAddress,serverDirPort,myHeartServer);\n threadHeartbeat.start();\n\n }", "@Option int getLocalPortForUdpLinkLayer();", "protected UDPMessageChannel(\n SIPMessageStack stack,\n UDPMessageProcessor messageProcessor) {\n super.messageProcessor = messageProcessor;\n this.stack = stack;\n Thread mythread = new Thread(this);\n\n this.myAddress = stack.getHostAddress();\n this.myPort = messageProcessor.getPort();\n\n mythread.setName(\"UDPMessageChannelThread\");\n\tmythread.setDaemon(true);\n mythread.start();\n \n }", "public PortRange() {\n }", "synchronized MutableSpan setEndpoint(Endpoint endpoint) {\n for (int i = 0; i < annotations.size(); i++) {\n V1Annotation a = annotations.get(i);\n if (a.endpoint().equals(Endpoints.UNKNOWN)) {\n annotations.set(i, V1Annotation.create(a.timestamp(), a.value(), endpoint));\n }\n }\n this.endpoint = endpoint;\n return this;\n }", "Port createPort();", "Port createPort();", "public void createSocket() \n { \n try \n { \n socket = new DatagramSocket(); \n } \n catch (Exception ex) \n { \n System.out.println(\"UDPPinger Exception: \" + ex); \n } \n }", "public static ReadableByteChannel newChannel(final InputStream in) {\n\treturn new ReadableByteChannel() {\n\t private boolean open = true;\n\n // must be synchronized as per ReadableByteChannel contract\n @Override\n\t public synchronized int read(ByteBuffer dst) throws IOException {\n\t\tassert dst.hasArray();\n\t\tbyte[] array = dst.array();\n\t\tint arrayOffset = dst.arrayOffset();\n\n\t\tint totalRead = 0;\n\t\tint bytesRead = 0;\n\t\tint bytesToRead;\n\t\twhile ((bytesToRead = dst.remaining()) > 0) {\n\t\t if ((totalRead > 0) && !(in.available() > 0)) {\n\t\t\tbreak; // block at most once\n\t\t }\n\t\t int pos = dst.position();\n\t\t bytesRead = in.read(array, arrayOffset + pos, bytesToRead);\n\t\t if (bytesRead < 0) {\n\t\t\tbreak;\n\t\t } else {\n ((Buffer)dst).position(pos + bytesRead);\n\t\t\ttotalRead += bytesRead;\n\t\t }\n\t\t}\n\t\tif ((bytesRead < 0) && (totalRead == 0)) {\n\t\t return -1;\n\t\t}\n\n\t\treturn totalRead;\n\t }\n \n @Override\n\t public synchronized boolean isOpen() {\n\t\treturn open;\n\t }\n \n // Blocking as per Channel contract\n @Override\n\t public synchronized void close() throws IOException {\n\t\tin.close();\n\t\topen = false;\n\t }\n\t};\n }", "public ByteBuffer buildPacket(int encap, short destUdp, short srcUdp) {\n ByteBuffer result = ByteBuffer.allocate(MAX_LENGTH);\n fillInPacket(encap, INADDR_BROADCAST, INADDR_ANY, destUdp,\n srcUdp, result, DHCP_BOOTREQUEST, mBroadcast);\n result.flip();\n return result;\n }", "public UdpPacketSender() {\r\n\t\ttry {\r\n\t\t\tthis.socket = new DatagramSocket();\r\n\t\t} catch (final SocketException e) {\r\n\t\t\tlog.log(Level.SEVERE, e.getMessage(), e);\r\n\t\t}\r\n\t}", "UMOImmutableEndpoint createInboundEndpoint(UMOEndpointBuilder builder, UMOManagementContext managementContext) throws UMOException;", "public Builder clearInPort() {\n copyOnWrite();\n instance.clearInPort();\n return this;\n }", "public Builder clearInPort() {\n copyOnWrite();\n instance.clearInPort();\n return this;\n }", "public ChannelFuture createUDP(final SocketAddress recipient, final boolean broadcast,\n final Map<String, ChannelHandler> channelHandlers) {\n readUDP.lock();\n try {\n if (shutdownUDP) {\n return null;\n }\n if (!semaphoreUPD.tryAcquire()) {\n LOG.error(\"Tried to acquire more resources (UDP) than announced!\");\n throw new RuntimeException(\"Tried to acquire more resources (UDP) than announced!\");\n }\n final Bootstrap b = new Bootstrap();\n b.group(workerGroup);\n b.channel(NioDatagramChannel.class);\n b.option(ChannelOption.RCVBUF_ALLOCATOR, new FixedRecvByteBufAllocator(ConnectionBean.UDP_LIMIT));\n if (broadcast) {\n b.option(ChannelOption.SO_BROADCAST, true);\n }\n channelClientConfiguration.pipelineFilter().filter(channelHandlers, false, true);\n addHandlers(b, channelHandlers);\n // Here we need to bind, as opposed to the TCP, were we connect if we do a connect, we cannot receive\n // broadcast messages\n final ChannelFuture channelFuture;\n if (broadcast) {\n channelFuture = b.bind(new InetSocketAddress(0));\n } else {\n channelFuture = b.connect(recipient);\n }\n\n setupCloseListener(channelFuture, semaphoreUPD);\n CREATED_UDP_CONNECTIONS.incrementAndGet();\n return channelFuture;\n } finally {\n readUDP.unlock();\n }\n }", "public static JChannel getNewChannel(String ipAddress,int port) throws UnknownHostException, Exception {\n\t // The following code taken from an example on programmatic creation from JGroups documentation. \n\t // Therefore refer to http://www.jgroups.org/manual-3.x/html/user-channel.html#CreatingAChannel page\n\t // for documentation and explanation of the following code fragment. \n\t \n\t JChannel ch = new JChannel(false);\n\t ProtocolStack stack = new ProtocolStack();\n\t ch.setProtocolStack(stack);\n\t \n\t UDP udp = new UDP();\n\t udp.setBindAddress(InetAddress.getByName(ipAddress));\n\t udp.setMulticastPort(port);\n\t \n\t stack.addProtocol(udp)\n\t .addProtocol(new PING())\n\t .addProtocol(new MERGE2())\n\t .addProtocol(new FD_SOCK())\n\t .addProtocol(new FD_ALL()\n\t .setValue(\"timeout\", 12000)\n\t .setValue(\"interval\", 3000))\n\t .addProtocol(new VERIFY_SUSPECT())\n\t .addProtocol(new BARRIER())\n\t .addProtocol(new NAKACK())\n\t .addProtocol(new UNICAST2())\n\t .addProtocol(new STABLE())\n\t .addProtocol(new GMS())\n\t .addProtocol(new UFC())\n\t .addProtocol(new MFC())\n\t .addProtocol(new FRAG2())\n\t .addProtocol(new STATE_TRANSFER());\n\t \n\t stack.init();\n\t return ch;\n\t }", "public interface MyInputChannel {\n\n String INPUT = \"source\";\n @Input(INPUT)\n SubscribableChannel source();\n}", "public UDPclient()\n\t{\n\t}", "public PortFD(Point p, String side) {\r\n\t\tthis.portLocation = p;\r\n\t\tthis.side = side;\r\n\t}", "public StateSenderUDP(String ipAddressString, int port) throws UnknownHostException {\n\t\tthis.ipAddress = InetAddress.getByName(ipAddressString);\n\t\tthis.port = port;\n\t}", "UMOImmutableEndpoint createOutboundEndpoint(UMOEndpointBuilder builder, UMOManagementContext managementContext) throws UMOException;", "@Override\n public Endpoint build() throws ConstraintViolationException {\n VocabUtil.getInstance().validate(endpointImpl);\n return endpointImpl;\n }", "public int getUdpStartingPort() {\n\t\tfinal String key = ConfigNames.UDP_PORT.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}", "protected UDPMessageChannel(SIPTransactionStack stack,\n UDPMessageProcessor messageProcessor) {\n super.messageProcessor = messageProcessor;\n this.sipStack = stack;\n\n // jeand : Create a new string message parser to parse the list of\n // messages.\n myParser = sipStack.getMessageParserFactory().createMessageParser(\n sipStack);\n\n this.myAddress = messageProcessor.getIpAddress().getHostAddress();\n this.myPort = messageProcessor.getPort();\n }", "public DatagramSocket createUnboundDatagramSocket()\n throws SocketException;", "public Communicator(int localPort) throws java.net.SocketException\r\n {\r\n datagramSocket = new DatagramSocket(localPort);\r\n }", "public interface PortForwardingBuilder extends Builder<PortForwardingBuilder, PortForwarding> {\n\n /**\n * @see PortForwarding#getProtocol()\n */\n PortForwardingBuilder protocol(String protocol);\n\n /**\n * @see PortForwarding#getInternalIpAddress()\n */\n PortForwardingBuilder internalIpAddress(String internalIpAddress);\n\n /**\n * @see PortForwarding#getInternalPort()\n */\n PortForwardingBuilder internalPort(int internalPort);\n\n /**\n * @see PortForwarding#getInternalPortId()\n */\n PortForwardingBuilder internalPortId(String internalPortId);\n\n /**\n * @see PortForwarding#getExternalPort()\n */\n PortForwardingBuilder externalPort(int externalPort);\n\n /**\n * @see PortForwarding#getDescription()\n */\n PortForwardingBuilder description(String description);\n}", "public interface BoundChannel extends CloseableChannel {\n /**\n * Get the local address that this channel is bound to.\n *\n * @return the local address\n */\n SocketAddress getLocalAddress();\n\n /**\n * Get the local address of a given type, or {@code null} if the address is not of that\n * type.\n *\n * @param type the address type class\n * @param <A> the address type\n * @return the local address, or {@code null} if unknown\n */\n <A extends SocketAddress> A getLocalAddress(Class<A> type);\n\n /** {@inheritDoc} */\n ChannelListener.Setter<? extends BoundChannel> getCloseSetter();\n}", "@Override\n public TTransportWrapper getTransport(HostAndPort endpoint) throws Exception {\n return new TTransportWrapper(connectToServer(new InetSocketAddress(endpoint.getHostText(),\n endpoint.getPort())),\n endpoint);\n }", "public ChannelDescriptor(InputStream baseInputStream, ModeFlags originalModes) {\n // The reason why we need the stream is to be able to invoke available() on it.\n // STDIN in Java is non-interruptible, non-selectable, and attempt to read\n // on such stream might lead to thread being blocked without *any* way to unblock it.\n // That's where available() comes it, so at least we could check whether\n // anything is available to be read without blocking.\n this(Channels.newChannel(baseInputStream), getNewFileno(), originalModes, new FileDescriptor(), new AtomicInteger(1), true);\n this.baseInputStream = baseInputStream;\n }", "public interface MessageInputChannel extends\r\n Channel<MessageInput, MessageInputChannelAPI>, OneDimensional, MessageCallback {\r\n\r\n}", "private Endpoint(Element endpoint)\n\t\t{\n\t\t\tthis.endpointElement = endpoint;\n\t\t\tNodeList mediaNodeList = endpoint.getElementsByTagName(MEDIA_ELEMENT_NAME);\n\t\t\tfor (int i = 0; i < mediaNodeList.getLength(); i++) {\n\t\t\t\tMedia media = new Media((Element) mediaNodeList.item(i));\n\t\t\t\tmediasList.add(media);\n\t\t\t}\n\t\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder> \n getEndpointFieldBuilder() {\n if (endpointBuilder_ == null) {\n endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder, io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpointOrBuilder>(\n getEndpoint(),\n getParentForChildren(),\n isClean());\n endpoint_ = null;\n }\n return endpointBuilder_;\n }", "@Override\n public void init(Address receiveAddress) {\n secretGenerator = new Random();\n this.receiveAddress = receiveAddress;\n // Create thread group and handler\n group = new NioEventLoopGroup();\n handler = new UDPConnectionHandler();\n // Initialize listening channel\n try {\n channel = new Bootstrap()\n .group(group)\n .channel(NioDatagramChannel.class)\n .option(ChannelOption.SO_BROADCAST, true)\n .handler(handler)\n .bind(receiveAddress.getPort()).syncUninterruptibly()\n .channel();\n } catch (Exception exception) {\n group.shutdownGracefully();\n throw new RuntimeException(\"Failed to create channel at \" + receiveAddress, exception);\n }\n System.out.println(\"Listening at \" + receiveAddress.toString());\n }", "void configureEndpoint(Endpoint endpoint);", "public UDPLayer(int port, boolean daemon)\n\t\tthrows SocketException\n\t{\n\t\t// initialize members\n\t\tthis.socket = new DatagramSocket(port);\n\t\tthis.receiverThread = new ReceiverThread();\n\n\t\t// decide if receiver thread terminates with main thread\n\t\treceiverThread.setDaemon(daemon);\n\t\t\n\t\t// start listening right from the beginning\n\t\tthis.receiverThread.start();\n\t\t\n\t}", "protected UDPMessageChannel(SIPTransactionStack stack,\n UDPMessageProcessor messageProcessor, DatagramPacket packet) {\n\n this.incomingPacket = packet;\n super.messageProcessor = messageProcessor;\n this.sipStack = stack;\n\n // jeand : Create a new string message parser to parse the list of\n // messages.\n myParser = sipStack.getMessageParserFactory().createMessageParser(\n sipStack);\n\n this.myAddress = messageProcessor.getIpAddress().getHostAddress();\n this.myPort = messageProcessor.getPort();\n }", "public InputEndpoint withEndpointName(String endpointName) {\n this.endpointName = endpointName;\n return this;\n }", "public CameraPiSocket(int port_arg){\n\t\tport = port_arg;\n\t}", "public ClientHandler(Socket _incoming, DatagramSocket _incomingUDP) {\n\t\t\tthis.incoming = _incoming;\n\t\t\tthis.incomingUDP = _incomingUDP;\n\n\t\t}", "public DNSUDPConnector() {\r\n\t\t\treset();\r\n\t\t}", "private FlowSpeakerData buildFlowIngressCommand(Switch sw, FlowEndpoint ingressEndpoint) {\n List<Action> actions = new ArrayList<>(buildTransformActions(\n ingressEndpoint.getInnerVlanId(), sw.getFeatures()));\n actions.add(new PortOutAction(getOutPort(flowPath, flow)));\n\n FlowSpeakerDataBuilder<?, ?> builder = FlowSpeakerData.builder()\n .switchId(ingressEndpoint.getSwitchId())\n .ofVersion(OfVersion.of(sw.getOfVersion()))\n .cookie(flowPath.getCookie())\n .table(OfTable.INGRESS)\n .priority(getPriority(ingressEndpoint))\n .match(buildIngressMatch(ingressEndpoint, sw.getFeatures()))\n .instructions(buildInstructions(sw, actions));\n\n if (sw.getFeatures().contains(SwitchFeature.RESET_COUNTS_FLAG)) {\n builder.flags(Sets.newHashSet(OfFlowFlag.RESET_COUNTERS));\n }\n return builder.build();\n }", "Builder port(int port);", "EventChannel create();", "@Override\r\n\tpublic void run() {\r\n\t\t//Tries to initialise a connection\r\n\t\ttry {\r\n\t\t\t//Runs as long as the channel is open\r\n\t\t\twhile(channel.isOpen()) {\r\n\t\t\t\t//Creates a new byte buffer to create the input\r\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(PACKET_SIZE);\r\n\t\t\t\t//Stores the result, -1 by default to assume that the channel couldn't be read\r\n\t\t\t\t//Checks which type of supported channel the channel is (DatagramChannel or SocketChannel - UDP vs TCP)\r\n\t\t\t\t//Uses this to determine where to read the result\r\n\t\t\t\t//Creates a string from the buffer and passes the string into the connector's function\r\n\t\t\t\t//Only passes the data if there's info to read (if the result isn't -1)\r\n\t\t\t\tif(channel.isOpen() && channel.read(buffer) != -1) {\r\n\t\t\t\t\t//Creates the packet from the received data and id\r\n\t\t\t\t\tString packet = new String(buffer.array()).trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//If the packet is a ping, returns a pong back\r\n\t\t\t\t\tif(packet.contains(\"!ping%EOP%\")) {\r\n\t\t\t\t\t\tsend(\"!pong\");\r\n\t\t\t\t\t} else if(packet.contains(\"!pong%EOP%\")) { //If the packet is a pong, calculates the ping\r\n\t\t\t\t\t\t//Calculates the ping from the current time and the time since the ping was sent\r\n\t\t\t\t\t\tping = System.currentTimeMillis() - timeSincePing;\r\n\t\t\t\t\t\t//System.out.println(\"Pong!\\nPING: \" + ping + \"ms\");\r\n\t\t\t\t\t} else if(!packet.trim().isEmpty()) { //Checks if the packet's data isn't just a blank string or whitespace\r\n\t\t\t\t\t\t//Sends the packet to the listener\r\n\t\t\t\t\t\t//Finds all the packets received by the listener by looping through as long as the packet contains an end-of-packet footer\r\n\t\t\t\t\t\twhile(packet.contains(\"%EOP%\")) {\r\n\t\t\t\t\t\t\t//Passes in the portion before the end-of-packet footer\r\n\t\t\t\t\t\t\tlistener.onReceive(new Packet(id, packet.substring(0, packet.indexOf(\"%EOP%\"))));\r\n\t\t\t\t\t\t\t//Removes that portion from the packet string\r\n\t\t\t\t\t\t\tpacket = packet.substring(packet.indexOf(\"%EOP%\") + \"%EOP%\".length());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Closes the connection\r\n\t\t\tclose();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Error receiving data over TCP!\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "int getInPort();", "int getInPort();", "public Builder url(URI endpoint) {\n return server(endpoint);\n }", "public Builder setInPort(int value) {\n copyOnWrite();\n instance.setInPort(value);\n return this;\n }", "public Builder setInPort(int value) {\n copyOnWrite();\n instance.setInPort(value);\n return this;\n }", "public DNSUDPTransport() {\r\n\t\tlistHostPort = new ArrayList();\r\n\t\tconnTimeout = 0;\r\n\t}", "public interface DsViaListenInterface extends DsListenInterface {\n\n /** @return port to be used as the source port of outgoing requests */\n public int getSourcePort();\n\n /** @return the interface to be used as the source port of outgoing requests */\n public InetAddress getSourceAddress();\n}", "protected synchronized Socket getSocket(ImmutableEndpoint endpoint) throws TlcException {\r\n\t\tSocket socket = null;\r\n\t\ttry {\r\n\t\t\tTcpSocketKey socketKey = new TcpSocketKey(endpoint);\r\n\t\t\tif (logger.isDebugEnabled()) {\r\n\t\t\t\tlogger.debug(\"borrowing socket for \" + socketKey + \"/\"\r\n\t\t\t\t\t\t+ socketKey.hashCode());\r\n\t\t\t\tif (null != lastSocketKey) {\r\n\t\t\t\t\tlogger.debug(\"same as \" + lastSocketKey.hashCode() + \"? \"\r\n\t\t\t\t\t\t\t+ lastSocketKey.equals(socketKey));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tsocket = (Socket) socketsPool.borrowObject(socketKey);\r\n\r\n\t\t\tif (logger.isDebugEnabled()) {\r\n\t\t\t\tlogger.debug(\"borrowed socket, \"\r\n\t\t\t\t\t\t+ (socket.isClosed() ? \"closed\" : \"open\") + \"; debt \"\r\n\t\t\t\t\t\t+ socketsPool.getNumActive());\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tlogger.error(\"Connection Refused\");\r\n\r\n\t\t}\r\n\t\treturn socket;\r\n\t}", "private DnsEndpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "PortDefinition createPortDefinition();", "public ILAdvertisementSocket(String ipAddress, int readPort, int writePort) \n\t\tthrows IOException, SocketException\n\t{\t\t\t\n\t\tthis.buffer = ByteBuffer.allocate(ILPacket.MAX_PACKET_SIZE);\n\t\tthis.buffer.order(ByteOrder.BIG_ENDIAN);\n\t\t\n\t\tthis.group = InetAddress.getByName(ipAddress);\n\t\t\n\t\tif (!this.group.isMulticastAddress()) {\n\t\t\tthrow new SocketException(\"Invalid multicast address\");\n\t\t}\n\t\t\n\t\tthis.outSocket = new MulticastSocket();\n\t\tthis.inSocket = new MulticastSocket(readPort);\n\t\tthis.inSocket.joinGroup(group);\n\t\t\n\t\tthis.readPort = readPort;\n\t\tthis.writePort = writePort;\n\t\tthis.inSocket.setSoTimeout(ILSocket.TIME_OUT);\n\t}", "public FlowUnit getInputUnit(FlowUnit u, String arg) throws Exception\n\t\t{\n\t\tfor(FlowConn c:conns)\n\t\t\tif(c.toUnit==u && c.toArg.equals(arg))\n\t\t\t\treturn c.fromUnit;\n\t\treturn null;\n//\t\tthrow new Exception(\"Input not connected - \"+arg);\n\t\t}", "public abstract ManagedChannelBuilder<?> builderForAddress(String str, int i);", "public LocalChannel() {\n\t\t}", "public ChannelDescriptor(InputStream baseInputStream, ModeFlags originalModes, FileDescriptor fileDescriptor) {\n // The reason why we need the stream is to be able to invoke available() on it.\n // STDIN in Java is non-interruptible, non-selectable, and attempt to read\n // on such stream might lead to thread being blocked without *any* way to unblock it.\n // That's where available() comes it, so at least we could check whether\n // anything is available to be read without blocking.\n this(Channels.newChannel(baseInputStream), getNewFileno(), originalModes, fileDescriptor, new AtomicInteger(1), true);\n this.baseInputStream = baseInputStream;\n }", "public void createChannel(String ipAddress, int port) throws IOException {\n while (true) {\n SocketChannel socketChannel = null;\n try {\n socketChannel = SocketChannel.open();\n// socketChannel.configureBlocking(false);\n SocketAddress socketAddress = new InetSocketAddress(ipAddress, port);\n System.out.println(port);\n socketChannel.connect(socketAddress);\n if (socketChannel.isConnected()){\n port++;\n }\n System.out.println(\"Connected.\");\n sendFile(socketChannel);\n socketChannel.close();\n socketChannel.finishConnect();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "void addPeerEndpoint(PeerEndpoint peer);", "private WfdDevice createWFDDevice(String iface, WfdEnums.WFDDeviceType type) {\n WfdDevice wfdDevice = new WfdDevice();\n wfdDevice.deviceType = type.getCode();\n wfdDevice.macAddress = null;\n wfdDevice.isAvailableForSession = false;//since init is to be called\n wfdDevice.addressOfAP = null;\n wfdDevice.coupledSinkStatus = 0;\n wfdDevice.preferredConnectivity = 0;\n if (type == WfdEnums.WFDDeviceType.SOURCE) {\n wfdDevice.deviceName = \"Source_device\";\n if (iface != null) {\n int index = iface.indexOf(':', 0);\n if (index > 0) {\n wfdDevice.ipAddress = iface.substring(0, index);\n wfdDevice.rtspPort =\n Integer.parseInt(iface.substring(index + 1, iface.length()));\n if (wfdDevice.ipAddress == null ||\n wfdDevice.rtspPort < 1 ||\n wfdDevice.rtspPort > 65535) {\n Log.e(TAG, \"Invalid RTSP port received or no valid IP\");\n return null;\n }\n }\n }\n } else if (type == WfdEnums.WFDDeviceType.PRIMARY_SINK) {\n wfdDevice.deviceName = \"Sink_device\";\n wfdDevice.rtspPort = 0;\n wfdDevice.ipAddress = null;\n } else {\n wfdDevice.deviceName = \"WFD_device\";\n wfdDevice.rtspPort = 0;\n wfdDevice.ipAddress = null;\n }\n return wfdDevice;\n }", "private ReceiveEthernetStrategy() {\n }", "public interface UdpCallback {\n public void onReceive(int port, byte[] data, int length);\n}", "public SubscribingThread(String endpoint, String topic){\n\t\t\tcontext = ZMQ.context(1);\n\t\t\tsubscribeSocket = context.socket(ZMQ.SUB);\n\t\t\tsubscribeSocket.setReceiveTimeOut(2500);//times out after 2.5 seconds of no activity\n\t\t\tif(endpoint.contains(\"*\")){\n\t\t\t\tsubscribeSocket.bind(endpoint);\n\t\t\t}else{\n\t\t\t\tsubscribeSocket.connect(endpoint);\t\n\t\t\t}\n\t\t\tsubscribeSocket.subscribe(topic.getBytes(ZMQ.CHARSET));//subscribe to everything\n\t\t}", "Input createInput();", "public void run() {\n \n while (true) {\n // Create a new string message parser to parse the list of messages.\n // This is a huge performance hit -- need to optimize by pre-create\n // parser when one is needed....\n if (myParser == null) {\n myParser = new StringMsgParser();\n myParser.setParseExceptionListener(this);\n }\n // messages that we write out to him.\n DatagramPacket packet;\n \n if (stack.threadPoolSize != -1) {\n synchronized (\n ((UDPMessageProcessor) messageProcessor).messageQueue) {\n while (((UDPMessageProcessor) messageProcessor)\n .messageQueue\n .isEmpty()) {\n // Check to see if we need to exit.\n if (!((UDPMessageProcessor) messageProcessor)\n .isRunning)\n return;\n try {\n ((UDPMessageProcessor) messageProcessor).messageQueue.wait();\n } catch (InterruptedException ex) {\n if (!((UDPMessageProcessor) messageProcessor)\n .isRunning)\n return;\n }\n }\n packet =\n (DatagramPacket)\n ((UDPMessageProcessor) messageProcessor)\n .messageQueue\n .removeFirst();\n \n }\n this.incomingPacket = packet;\n } else {\n packet = this.incomingPacket;\n }\n \n this.peerAddress = packet.getAddress();\n // PC 2.0 Added setting the port value\n this.peerPort = packet.getPort();\n int packetLength = packet.getLength();\n // Read bytes and put it in a eueue.\n byte[] bytes = packet.getData();\n byte[] msgBytes = new byte[packetLength];\n System.arraycopy(bytes, 0, msgBytes, 0, packetLength);\n \n // Do debug logging.\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"UDPMessageChannel: peerAddress = \"\n + peerAddress.getHostAddress()\n + \"/\"\n + packet.getPort());\n this.stack.logWriter.logMessage(\"Length = \" + packetLength);\n String msgString = new String(msgBytes, 0, packetLength);\n this.stack.logWriter.logMessage(msgString);\n }\n \n // PC 2.0 add logging statement for all SIP messages received on the s\n\t\t\t// socket\n int seq = stack.logWriter.getSequencer();\n this.stack.logWriter.logInfo(\">>>>> RX:\\tLength = \" + packetLength \n \t\t+ \"\\nReceived on IP|Port=\" + myAddress + \"|\" + myPort \n \t\t+ \"\\nFrom IP|Port=\" + peerAddress + \"|\" + peerPort\n \t\t+ \"\\nSequencer=\" + seq\n \t\t+ \"\\nTransport=\" + peerProtocol\n \t\t+ \"\\n[\" + new String(msgBytes, 0, packetLength) + \"]\");\n \n// SIPMessage[] sipMessages = null;\n SIPMessage sipMessage = null;\n try {\n \n this.receptionTime = System.currentTimeMillis();\n sipMessage = myParser.parseSIPMessage(msgBytes);\n myParser = null;\n if (sipMessage != null)\n \tsipMessage.setSequencer(seq);\n } catch (ParseException ex) {\n myParser = null; // let go of the parser reference.\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Rejecting message ! \" + new String(msgBytes));\n this.stack.logWriter.logMessage(\n \"error message \" + ex.getMessage());\n this.stack.logWriter.logException(ex);\n }\n stack.logBadMessage(new String(msgBytes));\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n // No parse exception but null message - reject it and\n // march on (or return). Bug report from Peter Parnes.\n // exit this message processor if the message did not parse.\n \n if (sipMessage == null) {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Rejecting message ! \" + new String(msgBytes));\n this.stack.logWriter.logMessage(\"Null message parsed.\");\n }\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n ViaList viaList = sipMessage.getViaHeaders();\n // Check for the required headers.\n if (sipMessage.getFrom() == null\n || //sipMessage.getFrom().getTag() == null ||\n sipMessage.getTo()\n == null\n || sipMessage.getCallId() == null\n || sipMessage.getCSeq() == null\n || sipMessage.getViaHeaders() == null) {\n String badmsg = new String(msgBytes);\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\"bad message \" + badmsg);\n this.stack.logWriter.logMessage(\n \">>> Dropped Bad Msg \"\n + \"From = \"\n + sipMessage.getFrom()\n + \"To = \"\n + sipMessage.getTo()\n + \"CallId = \"\n + sipMessage.getCallId()\n + \"CSeq = \"\n + sipMessage.getCSeq()\n + \"Via = \"\n + sipMessage.getViaHeaders());\n }\n \n stack.logBadMessage(badmsg);\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n // For a request first via header tells where the message\n // is coming from.\n // For response, just get the port from the packet.\n if (sipMessage instanceof SIPRequest) {\n Via v = (Via) viaList.first();\n// PC 2.0 don't replace the peerPort with the via header information\n// if (v.hasPort()) {\n// if (sipMessage instanceof SIPRequest) {\n// this.peerPort = v.getPort();\n// }\n// } else\n// this.peerPort = SIPMessageStack.DEFAULT_PORT;\n this.peerProtocol = v.getTransport();\n\n this.peerPacketSourceAddress = packet.getAddress();\n this.peerPacketSourcePort = packet.getPort();\n// PC 2.0 try {\n this.peerAddress = packet.getAddress();\n // Check to see if the received parameter matches\n // the peer address and tag it appropriately.\n // Bug fix by [email protected]\n// PC 2.0 Remove the automatic setting of the rport parameter since the platform will\n// be validating what was received from the device.\n// if (!v\n// .getSentBy()\n// .getInetAddress()\n// .equals(this.peerAddress)) {\n// v.setParameter(\n// Via.RECEIVED,\n// this.peerAddress.getHostName());\n\t\t\t//@@@hagai\n\n// v.setParameter(\n// Via.RPORT,\n// new Integer(this.peerPacketSourcePort).toString());\n//\t\t }\n// \n// // this.peerAddress = v.getSentBy().getInetAddress();\n// } catch (java.net.UnknownHostException ex) {\n// // Could not resolve the sender address.\n//// PC 2.0 change if statement for new log processing\n// \t//if (stack.serverLog.needsLogging(ServerLog.TRACE_MESSAGES)) {\n// \tif (stack.serverLog.needsLogging()) {\n// \t\tthis.stack.serverLog.logMessage(\n// sipMessage,\n// this.getViaHost() + \":\" + this.getViaPort(),\n// stack.getHostAddress()\n// + \":\"\n// + stack.getPort(this.getTransport()),\n// \"Dropped -- \"\n// + \"Could not resolve VIA header address!\",\n// false);\n// }\n// if (LogWriter.needsLogging) {\n// this.stack.logWriter.logMessage(\n// \"Rejecting message -- \"\n// + \"could not resolve Via Address\");\n// }\n// \n// continue;\n// } catch (java.text.ParseException ex1) {\n// InternalErrorHandler.handleException(ex1);\n// }\n \n }\n \n if (sipMessage instanceof SIPRequest) {\n SIPRequest sipRequest = (SIPRequest) sipMessage;\n \n // This is a request - process it.\n ServerRequestInterface sipServerRequest =\n stack.newSIPServerRequest(sipRequest, this);\n // Drop it if there is no request returned\n if (sipServerRequest == null) {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Null request interface returned\");\n }\n continue;\n }\n if (LogWriter.needsLogging)\n this.stack.logWriter.logMessage(\n \"About to process \"\n + sipRequest.getFirstLine()\n + \"/\"\n + sipServerRequest);\n sipServerRequest.processRequest(sipRequest, this);\n if (LogWriter.needsLogging)\n this.stack.logWriter.logMessage(\n \"Done processing \"\n + sipRequest.getFirstLine()\n + \"/\"\n + sipServerRequest);\n \n // So far so good -- we will commit this message if\n // all processing is OK.\n// PC 2.0 change if statement for new log processing\n //if (stack.serverLog.needsLogging(ServerLog.TRACE_MESSAGES)) {\n if (stack.serverLog.needsLogging()) {\n \tif (sipServerRequest.getProcessingInfo() == null) {\n this.stack.serverLog.logMessage(\n sipMessage,\n sipRequest.getViaHost()\n + \":\"\n + sipRequest.getViaPort(),\n stack.getHostAddress()\n + \":\"\n + this.myPort,\n false,\n new Long(receptionTime).toString());\n } else {\n this.stack.serverLog.logMessage(\n sipMessage,\n sipRequest.getViaHost()\n + \":\"\n + sipRequest.getViaPort(),\n stack.getHostAddress()\n + \":\"\n + this.myPort, //stack.getPort(this.getTransport()),\n sipServerRequest.getProcessingInfo(),\n false,\n new Long(receptionTime).toString());\n }\n }\n } else {\n // Handle a SIP Reply message.\n SIPResponse sipResponse = (SIPResponse) sipMessage;\n ServerResponseInterface sipServerResponse =\n stack.newSIPServerResponse(sipResponse, this);\n if (sipServerResponse != null) {\n sipServerResponse.processResponse(sipResponse, this);\n // Normal processing of message.\n } else {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"null sipServerResponse!\");\n }\n }\n \n }\n //((UDPMessageProcessor) messageProcessor).useCount--;\n if (stack.threadPoolSize == -1) {\n return;\n }\n }\n }", "public final EObject entryRuleEndpoint() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEndpoint = null;\n\n\n try {\n // InternalMappingDsl.g:3450:49: (iv_ruleEndpoint= ruleEndpoint EOF )\n // InternalMappingDsl.g:3451:2: iv_ruleEndpoint= ruleEndpoint EOF\n {\n newCompositeNode(grammarAccess.getEndpointRule()); \n pushFollow(FOLLOW_1);\n iv_ruleEndpoint=ruleEndpoint();\n\n state._fsp--;\n\n current =iv_ruleEndpoint; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void fill(EndPoint endpoint, int offset, int size) throws IOException, Pausable {\n int total = offset + size;\n int currentPos = buffer.position();\n if (total > buffer.position()) {\n buffer = endpoint.fill(buffer, (total - currentPos));\n }\n }", "public static DatagramConnection createDatagramConnection() {\n\t\treturn new AndroidDatagramConnection();\n\t}" ]
[ "0.5753819", "0.5492999", "0.5487557", "0.541872", "0.54051965", "0.5373405", "0.536665", "0.5273861", "0.5233033", "0.51882815", "0.517363", "0.51278645", "0.51190263", "0.5103248", "0.50867623", "0.50662166", "0.5038428", "0.4994187", "0.49619132", "0.49245372", "0.48963562", "0.48933536", "0.48638332", "0.48390335", "0.47712708", "0.47581658", "0.4752663", "0.47373217", "0.4707244", "0.46930915", "0.4678953", "0.46401945", "0.46267125", "0.46128967", "0.4609427", "0.4609427", "0.46086943", "0.45977023", "0.45967147", "0.45889387", "0.45866582", "0.45761743", "0.45761743", "0.45442298", "0.45354998", "0.4532291", "0.4520788", "0.45170325", "0.45145452", "0.4503709", "0.4501082", "0.44972268", "0.44815552", "0.44794875", "0.4472698", "0.44656095", "0.44530115", "0.44507158", "0.4449436", "0.4448359", "0.44327688", "0.4430735", "0.44266206", "0.44182485", "0.441789", "0.44160673", "0.4402336", "0.4401319", "0.4401098", "0.43954697", "0.43936586", "0.43902406", "0.43668392", "0.43526608", "0.43484303", "0.43484303", "0.43411663", "0.43364507", "0.43364507", "0.4329638", "0.43292803", "0.43235692", "0.43168917", "0.43166724", "0.43154606", "0.43089807", "0.42942184", "0.42876118", "0.4281388", "0.4274079", "0.4272255", "0.42713252", "0.42676333", "0.4263257", "0.42611745", "0.42610317", "0.42610088", "0.42567727", "0.42564917", "0.4251872" ]
0.6209633
0
/ Send server port of the client
@Override protected void requesting(ExtendedDataOutputStream out) throws Exception { out.writeObject(this.clientServerPort); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int serverPort ();", "public ChatRoomServer(int portNumber){\n this.ClientPort = portNumber;\n }", "public int getPort();", "public int getPort();", "public int getPort();", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "void port(int port);", "void port(int port);", "public int getPort() {\n return serverSocket.getLocalPort();\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getServerPort(){\n\t\treturn serverPort; \n\t}", "public int getPort() { return port; }", "java.lang.String getPort();", "java.lang.String getPort();", "public void setPort(int port);", "public void setPort(int port);", "public int start() throws IOException{\n\t\tClientThread listenerThread = new ClientThread(this);\n\t\tlistenerSock = listenerThread.initSocket();\n\t\tint newPort = listenerSock.getLocalPort();\n\t\tclientPort = newPort;\n\t\tt = new Thread(listenerThread);\n\t\tt.start();\n\t\tsock = new Socket(serverIP, port);\n\t\treturn newPort;\n\t}", "String getPort();", "public String getServerPort() {\r\n\t\treturn this.serverPort;\r\n\t}", "@Override\n\tpublic int getPort() {\n\t\treturn socket.getPort();\n\t}", "public static int getServerPort(){\n return thisServer.getPort();\n }", "public int getClientPort() {\n int clientPort = CLIENTSOCKET.getPort();\n return clientPort;\n }", "int localPort();", "public void setClientport(Integer clientport) {\n this.clientport = clientport;\n }", "void connectToServer(String serverName, int serverPort){\n try{\n this.socket = new Socket(serverName, serverPort);\n } catch(IOException e){\n e.printStackTrace();\n }\n \n }", "public int getServerPortNumber(){\n return this.serverPortNumber;\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "Integer listeningPort();", "public int getSenderPort() {\n return senderPort;\n }", "int getUdpServerPort();", "public int getTcpServerPort()\n \t{\n \t\treturn tcpServerPort;\n \t}", "public String getServerPort() {\n\t\treturn mServerPort;\n\t}", "default int getPort() {\n return getServer().getPort();\n }", "public int getServerPort() {\n\t\treturn serverPort;\n\t}", "@Override\n public int getServerBroadcastPort() {\n return 10081;\n }", "public TCPServer(int port) throws IOException {\n\tthis.socket = new ServerSocket(port);\n\tthis.clients = new ArrayList();\n\n\tSystem.out.println(\"SERVER: Started\");\n }", "public static void echo_server_single( int portno ) \nthrows IOException\n {\n ServerSocket acc = new ServerSocket( portno );\n print_my_host_port( portno );\n while( true )\n {\n stdout.printf(\"accepting incoming connections (hash== %s) ...\\n\", \n acc.hashCode());\n Socket com = acc.accept();\n tcp_peeraddr_print( com );\n EchoServerWorker esw = new EchoServerWorker(com);\n esw.run();\n } // while\n}", "private void connectToServer() {\n\t\ttry {\n\t\t\tsocket = new Socket(InetAddress.getLocalHost(), Server.SERVER_PORT);\n\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\tsocket.getInputStream()));\n\t\t\tout = new PrintWriter(socket.getOutputStream());\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot connect to server\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public Integer getClientport() {\n return clientport;\n }", "public int getServerPort() {\n return serverPort;\n }", "public int getPort()\n {\n return port;\n }", "private void cmdNet() {\n int port = 1777;\n try {\n Log.verbose(\"waiting for connection on port \" + port + \"...\");\n ServerSocket socket = new ServerSocket(port);\n Socket client = socket.accept();\n InetAddress clientAddr = client.getInetAddress();\n Log.verbose(\"connected to \" + clientAddr.getHostName() + \"/\"\n + client.getPort());\n Readline readline = new SocketReadline(client, true, \"net>\");\n fReadlineStack.push(readline);\n } catch (IOException ex) {\n Log.error(\"Can't bind or listen on port \" + port + \".\");\n }\n }", "public final void setRemoteSocketPort(int port){\r\n remoteSocketPort = port;\r\n }", "public void join(String host, int port);", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public static int getServerPort() {\n return serverPort;\n }", "public int getPort() {\n/* 122 */ return ((TCPEndpoint)this.ep).getPort();\n/* */ }", "public UnsignedShort getServerPort() {\n return this.serverPort;\n }", "public int getLocalPort () {\n return schan.socket().getLocalPort ();\n }", "public Server(int port) throws IOException{\n\t\tsuper();\n\t\tthis.serversocket= new java.net.ServerSocket(port);\n\t\t\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}", "public int getPort(){\n\treturn port;\n }", "@Override\n public int getClientBroadcastPort() {\n return 10082;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort()\n {\n return this.connectedPort;\n }", "public static void serverConnection(String port) throws IOException{\n\t\t\n\t\t//Extract the port number\n\t\tint port_num;\n\t\tif (port.length() != 0) {\n\t\t\tport_num = Integer.parseInt(port); \n\t\t}\n\t\telse {\n\t\t\tport_num = 4444; \n\t\t}\n\t\t\n\t\t\n\t\t//Create server socket\n\t\tServerSocket serverSocket = null; \n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port_num);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Could not listen to port: \" + port); \n\t\t}\n\t\t\n\t\t//Accept client socket\n\t\tSocket clientSocket = null; \n\t\tboolean open = true;\n\t\twhile(open) {\n\t\t\ttry {\n\t\t\t\tclientSocket = serverSocket.accept(); \n\n\t\t\t}catch(IOException e) {\n\t\t\t\tif (!open) {\n\t\t\t\t\tSystem.err.println(\"Server not running\");\n\t\t\t}\t\n\t\t }\t\n\t\t}\t\t\n\t}", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public void setServerPort(int serverPort) {\n this.serverPort = serverPort;\n }", "public void start(int port);", "public static void print_my_host_port( int portno )\nthrows UnknownHostException\n{\n InetAddress ia = java.net.InetAddress.getLocalHost();\n String hostname = ia.getHostName();\n stdout.printf(\"run telnet %s %d\\n\", hostname, portno );\n}", "int getPort()\n {\n return port;\n }", "public int getPort(){\n return port;\n }", "public int getPort()\n {\n return port;\n }", "public int getViaPort() {\n return this.myPort;\n }", "public int getViaPort() {\n return this.myPort;\n }", "public void startNetwork(int port);", "public Integer getServerport() {\n return serverport;\n }", "private void connectToServer() throws IOException {\n\t\tna.message(\"Connecting to \" + serverAddress.getHostAddress()\n\t\t\t\t+ \" at port#: \" + portNumber);\n\t\tclientSocket = new Socket(serverAddress, portNumber);\n\t}", "int getPort() {\n return port;\n }", "public abstract void stream(int port);", "public int getPort () {\n return port;\n }", "public DefaultTCPServer(int port) throws Exception {\r\n\t\tserverSocket = new ServerSocket(port);\t}", "public int getPort ()\n {\n return thisPort;\n }", "Client(String destination, int sendPort, int myPort, String myIP) {\n\t\tthis.destination = destination;\n\t\tthis.sendPort = sendPort;\n\t\tthis.myPort = myPort;\n\t\tthis.myIP = myIP;\n\t}", "public ServeurGestion(int portClient){\r\n try {\r\n ecoute=new ServerSocket(portClient);\r\n appels=new Vector<>();\r\n } catch (IOException ex) {\r\n Logger.getLogger(ServeurGestion.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public static int getServerPort() {\n return _serverPort;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "void startServer(int port) throws Exception;" ]
[ "0.7109134", "0.68416274", "0.6756319", "0.6756319", "0.6756319", "0.67535764", "0.6701573", "0.6701573", "0.66878456", "0.66849893", "0.66849893", "0.66642535", "0.6643653", "0.66433936", "0.66433936", "0.66295516", "0.66295516", "0.66021985", "0.660117", "0.659694", "0.65843165", "0.65830755", "0.6577995", "0.6557688", "0.65462935", "0.6546225", "0.653658", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535848", "0.6535057", "0.65185994", "0.65126705", "0.6493607", "0.64704156", "0.64543664", "0.6449388", "0.6440586", "0.64380515", "0.6435415", "0.6427783", "0.6420127", "0.6403679", "0.6400314", "0.6383812", "0.6369742", "0.6366971", "0.63642114", "0.63642114", "0.63642114", "0.6360442", "0.6355873", "0.6352259", "0.63517725", "0.6348565", "0.6340956", "0.632896", "0.6326578", "0.6326578", "0.6326578", "0.6326578", "0.6326578", "0.6325874", "0.6325382", "0.6312747", "0.6312747", "0.6312747", "0.6312747", "0.6308297", "0.63045955", "0.6303795", "0.6303005", "0.6300452", "0.6298468", "0.6297453", "0.6297453", "0.62963545", "0.62916934", "0.62858075", "0.62841105", "0.62839687", "0.6278074", "0.6271124", "0.6268199", "0.62579256", "0.6257801", "0.62492925", "0.6244934", "0.62447107", "0.62413436" ]
0.6877074
1
This method returns all values of object as string
@Override public String toString() { return "Visitor{" + "period=" + period + '}'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn (getValue().toString());\r\n\t}", "public String toString()\n\t{\n\t\tField[] fields = this.getClass().getDeclaredFields();\n\t\tint i, max = fields.length;\n\t\tString fieldName = \"\";\n\t\tString fieldType = \"\";\n\t\tString ret = \"\";\n\t\tString value = \"\";\n\t\tboolean skip = false;\n\t\tint j = 0;\n\t\tfor(i = 0; i < max; i++)\n\t\t{\n\t\t\tfieldName = fields[i].getName().toString();\n\t\t\tfieldType = fields[i].getType().toString();\n\t\t\tif(i == 0)\n\t\t\t{\n\t\t\t\tret += \"{\";\n\t\t\t}\n\t\t\tif(fieldType.equals(\"int\") || fieldType.equals(\"long\") || fieldType.equals(\"float\") || fieldType.equals(\"double\") || fieldType.equals(\"boolean\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = fields[i].get(this).toString();\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"0\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse if(fieldType.contains(\"String\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+Utility.escapeJSON((String) fields[i].get(this))+\"\\\"\";\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\tskip = true;\n\t\t\t}\n\t\t\tif(!skip)\n\t\t\t{\n\t\t\t\tif(j > 0)\n\t\t\t\t{\n\t\t\t\t\tret += \",\";\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tret += \"\\r\\n\\t\\\"\"+fieldName+\"\\\":\"+value;\n\t\t\t}\n\t\t\tif(i == max-1)\n\t\t\t{\n\t\t\t\tret += \"\\r\\n}\";\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public String toString(){\n\t\treturn getValue();\n\t}", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}", "public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}", "@Override\n public String toString() {\n return value();\n }", "public static String getAll(){\n\t\tEntityType[] values = values();\n\t\tString readableString = \"\";\n\t\t\n\t\tfor (int i=0; i<values.length; i++){\n\t\t\treadableString += values[i].toString();\n\t\t\tif (i < values.length) {\n\t\t\t\treadableString += \", \";\n\t\t\t} else {\n\t\t\t\treadableString += \".\";\n\t\t\t}\n\t\t}\n\t\treturn readableString;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}", "private String getObjectString()\n {\n String returnString = \"Objects:\\n\\t\";\n Set<String> keys = items.keySet();\n if(items.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String item : keys) {\n returnString += \" [\" + item + \"]\";\n }\n return returnString;\n }", "@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }", "public String toString() {\n\t\treturn data.toString();\n }", "public String toString() { return stringify(this, true); }", "public String toString() {\n/* 46 */ return ModelUtil.toCommaSeparatedList((Object[])getValue());\n/* */ }", "public String toString() {\n\t String outPut = \"byteValue(): \" + byteValue()\n\t \t\t+ \"\\nshortValue(): \" + shortValue()\n\t \t\t+ \"\\nintValue(): \" + intValue()\n\t \t\t+ \"\\nlongValue(): \" + longValue()\n\t \t\t+ \"\\nfloatValue(): \" + floatValue()\n\t \t\t+ \"\\ndoubleValue(): \" + doubleValue();\n\t \n\t return outPut;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer();\n\t\tboolean first = true;\n\t\tfor (Map.Entry<String, Object> entry : entrySet())\n\t\t{\n\t\t\tif (first == false)\n\t\t\t{\n\t\t\t\tbuffer.append(' ');\n\t\t\t}\n\t\t\tfirst = false;\n\n\t\t\tbuffer.append(entry.getKey());\n\t\t\tbuffer.append(\" = \\\"\");\n\t\t\tfinal Object value = entry.getValue();\n\t\t\tif (value == null)\n\t\t\t{\n\t\t\t\tbuffer.append(\"null\");\n\t\t\t}\n\t\t\telse if (value.getClass().isArray())\n\t\t\t{\n\t\t\t\tbuffer.append(Arrays.asList((Object[])value));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.append(value);\n\t\t\t}\n\n\t\t\tbuffer.append('\\\"');\n\t\t}\n\t\treturn buffer.toString();\n\t}", "public String toString() {\n\t\treturn toString(true);\n\t}", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < numObjects && key[i] != null; i++){\n\t\t\tresult += key[i].toString() + \" \";\n\t\t}\n\t\treturn result;\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n return value;\r\n }", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn value;\n\t}", "public String toStr() {\r\n return value.toString();\r\n }", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "public String toString(Object o) { return Objects.toString(o,null); }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "@Override\n public String toString(){\n return this.getValue();\n }", "public String toString() {\n return value;\n }", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "public String toString() {\n return \"\" +getNombre() + \",\" + getPuntos();\n }", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }", "public String toString() ;", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String objectToString() {\n \n StringBuilder s = new StringBuilder(new String(\"\"));\n if(aggressor instanceof Town) {\n s.append(((Town) aggressor).getName()).append(\" \");\n } else {\n s.append(((Nation) aggressor).getName()).append(\" \");\n }\n if(defender instanceof Town) {\n s.append(((Town) defender).getName()).append(\" \");\n } else {\n s.append(((Nation) defender).getName()).append(\" \");\n }\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }", "public String getValues() {\n\t\tString[] valStrArr = values.toArray(new String[values.size()]);\n\t\tlogInfo(String.join(\", \", valStrArr));\n\t\treturn \"\"+String.join(\", \", valStrArr);\n\t}", "@Override\n public String toString() {\n return String.valueOf(value());\n }", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "public String toString() {\n return \"\" + data;\n }", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "@Override\n public String toString() {\n return this.toList().toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn val.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}", "public String toString() {\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < numfields; i += 1) {\n String item = \"\" + types[i];\n if (attrNames == null || attrNames[i] == null) {\n sb.append(item).append(\"()\");\n } else {\n sb.append(item).append(\"(\").append(attrNames[i]).append(\")\");\n }\n if (i < numfields-1) {\n sb.append(\",\");\n }\n }\n return sb.toString();\n }", "public String toString() {\n\t\tString str = \"(\";\n\t\tif (this.title != null)\n\t\t\tstr += this.title;\n\t\telse if (this.varName != null)\n\t\t\tstr += this.varName;\n\t\tif (this.minVal != null)\n\t\t\tstr += \",\" + this.minVal;\n\t\tif (this.curVal != null)\n\t\t\tstr += \",\" + this.curVal;\n\t\tif (this.maxVal != null)\n\t\t\tstr += \",\" + this.maxVal;\n\t\tstr += \")\";\n\t\treturn str;\n\t}", "public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }", "public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}", "public String toString() {\r\n String modelString =\r\n \"value=\"\r\n + getValue()\r\n + \", \"\r\n + \"extent=\"\r\n + getExtent()\r\n + \", \"\r\n + \"min=\"\r\n + getMinimum()\r\n + \", \"\r\n + \"max=\"\r\n + getMaximum()\r\n + \", \"\r\n + \"adj=\"\r\n + getValueIsAdjusting();\r\n\r\n return getClass().getName() + \"[\" + modelString + \"]\";\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn result;\r\n\t}", "public String toString() {\r\n\treturn data;\r\n }", "public String toString()\r\n {\r\n String str = this.getClass().getName() + \"[\";\r\n String separator = \"\";\r\n\r\n Field[] fields = this.getClass().getDeclaredFields();\r\n\r\n for ( Field field : fields )\r\n {\r\n try\r\n {\r\n if ( field.getType().getName().equals( \"Brokerage\" ) )\r\n str += separator + field.getType().getName() + \" \"\r\n + field.getName();\r\n else\r\n str += separator + field.getType().getName() + \" \"\r\n + field.getName() + \":\" + field.get( this );\r\n }\r\n catch ( IllegalAccessException ex )\r\n {\r\n System.out.println( ex );\r\n }\r\n\r\n separator = \", \";\r\n }\r\n\r\n return str + \"]\";\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn getValor();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "public String toString() {\n String output = this.name + \"(\";\n for (int i = 0; i < attributes.size(); i++) {\n output = output + attributes.get(i) + \":\" + domains.get(i);\n // Don't add a comma on the last key, value pair\n if (i < attributes.size() - 1)\n output = output + \",\";\n }\n return output + \")\";\n }", "@Override\n public String toString() {\n StringBuilder buffer = new StringBuilder();\n if (actualProperties != null) {\n synchronized (propertySyncObject) {\n Enumeration<Object> keys = actualProperties.keys();\n while (keys.hasMoreElements()) {\n String key = (String) keys.nextElement();\n String value = actualProperties.getProperty(key);\n buffer.append(key).append(\": \").append(value).append(\"\\n\");\n }\n }\n }\n return buffer.toString();\n }", "public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}", "@Override\n public String toString() {\n return getClass().getSimpleName() + \"[\" + value + \"]\";\n }", "private static String getString(Object obj) {\n\t\tif (obj.getClass().isArray()) {\n\t\t\treturn array(obj);\n\t\t} else if (obj instanceof Map) {\n\t\t\treturn map(obj);\n\t\t} else if (obj instanceof Collection) {\n\t\t\treturn collection(obj);\n\t\t} else {\n\t\t\t// return obj.toString();\n\t\t\treturn obj(obj);\n\t\t}\n\t}", "@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }", "public String toString() {\n\t\treturn toString(this);\n\t}", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "private String toString(Object value) {\n if (value == null) return \"null\";\n // TODO: handle arrays in a nicer way.\n return value.toString();\n }", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();" ]
[ "0.7471383", "0.7399556", "0.72472066", "0.7200458", "0.71856445", "0.71695507", "0.715112", "0.7125453", "0.7085232", "0.70841163", "0.70838624", "0.7070477", "0.7061714", "0.7049987", "0.7033909", "0.70316476", "0.7025796", "0.70225996", "0.70225996", "0.7018906", "0.7014181", "0.7014181", "0.70140874", "0.70130557", "0.7009712", "0.6947423", "0.6937164", "0.6934599", "0.6932906", "0.6920559", "0.69198674", "0.691698", "0.69112796", "0.69036037", "0.6886875", "0.6884935", "0.6880797", "0.6875938", "0.6873446", "0.68679017", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.686439", "0.6864071", "0.6861966", "0.6854683", "0.6854555", "0.68519074", "0.6839039", "0.68344784", "0.6823572", "0.6819451", "0.68076503", "0.6804449", "0.6803569", "0.68019897", "0.6797577", "0.6790172", "0.67858195", "0.67850786", "0.6777445", "0.67744195", "0.67689544", "0.675807", "0.6753429", "0.675256", "0.67419755", "0.672767", "0.67261076", "0.6721511", "0.6714227", "0.6712899", "0.6712061", "0.6707834", "0.6706182", "0.67059237", "0.67032504", "0.67032504", "0.67032504", "0.67032504", "0.67032504", "0.67032504" ]
0.0
-1
steekt alle gegevens in de textfields
@Override public void update(Observable o, Object arg) { if (arg != null) { if (arg.equals("maakAllesLeegNaWijziging")) { grid.setVisible(false); lblTitelDetail.setVisible(false); btnFoto.setVisible(false); btnAnnuleer.setVisible(false); btnVerwijderen.setVisible(false); btnToevoegenAnnuleren.setVisible(false); btnWijzigen.setVisible(false); btnLeegmaken.setVisible(false); btnVoegProductToe.setVisible(false); lblOnbeschikbaar.setVisible(false); txtOnbeschikbaar.setVisible(false); } if (!arg.equals("maakAllesLeegNaWijziging")) { boolean isToevoeging = false; if (dc.getHuidigProduct() == null && (!txtAantal.getText().equalsIgnoreCase("") || !txtArtikelnummer.getText().equalsIgnoreCase("") || !txtEmailFirma.getText().equalsIgnoreCase("") || !txtFirma.getText().equalsIgnoreCase("") || !txtNaam.getText().equalsIgnoreCase("") || !txtOmschrijving.getText().equalsIgnoreCase("") || !txtPlaats.getText().equalsIgnoreCase("") || !txtPrijs.getText().equalsIgnoreCase(""))) { isToevoeging = true; } else { grid.setVisible(true); lblTitelDetail.setVisible(true); btnFoto.setVisible(true); btnAnnuleer.setVisible(true); btnVerwijderen.setVisible(true); btnToevoegenAnnuleren.setVisible(false); btnWijzigen.setVisible(true); btnLeegmaken.setVisible(false); btnVoegProductToe.setVisible(false); lblOnbeschikbaar.setVisible(true); txtOnbeschikbaar.setVisible(true); } //binnenkomend product dc.setCancelled(false); try { if (this.wijziging) { resetWaardenprivate(); btnWijzigen.setDisable(true); btnVerwijderen.setDisable(true); btnVoegProductToe.setVisible(false); btnToevoegenAnnuleren.setVisible(false); lblOnbeschikbaar.setVisible(true); txtOnbeschikbaar.setVisible(true); dc.setNieuwHuidigProduct(null); } else { //binnenkomend product dc.setCancelled(false); Product product = (Product) arg; // we gaan in deze klasse een huidigProduct moeten maken //eerst controleren of deze null is, zo ja dan wordt het product dat binnen komt het huidigProduct //als deze niet nul is (we hebben dus al een product geselecteerd en klikken nu op een ander) // dan controleren we of de attributen (alles wat in de tekstvelden staat) van ons huidigproduct anders zijn //dan de attributen van dat product die opgeslaan zijn in de database if (dc.getHuidigProduct() != null || isToevoeging) { if (dc.getHuidigProduct() != null) { oudProduct = dc.getProductById(dc.getHuidigProduct().getId()); } if (dc.getHuidigProduct() == null || (!String.format("%s", oudProduct.getAantal()).equals(txtAantal.getText()) || !String.format("%s", oudProduct.getArtikelnummer()).equals(txtArtikelnummer.getText()) //|| opgeslagenProduct.getDoelgroepen()!= opgeslagenProduct.getDoelgroepen() || !oudProduct.getFirma().getNaam().equalsIgnoreCase(txtFirma.getText()) //|| opgeslagenProduct.getFoto() != foto //|| opgeslagenProduct.getLeergebieden()!= huidigProduct.getLeergebieden() || !oudProduct.getNaam().equalsIgnoreCase(txtNaam.getText()) || !oudProduct.getOmschrijving().equalsIgnoreCase(txtOmschrijving.getText()) || !oudProduct.getPlaats().equalsIgnoreCase(txtPlaats.getText()) || !String.format("%s", oudProduct.getAantalOnbeschikbaar()).equals(txtOnbeschikbaar.getText()) || !String.format("%.2f", oudProduct.getPrijs()).replace(",", ".").equals(txtPrijs.getText()))) { Stage stage = new Stage(); Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setTitle("Confirmatie"); alert.setHeaderText("Niet opgeslagen wijzigingen gevonden"); alert.setContentText("OK om ze te verwerpen, Cancel om ze aan te passen"); Optional<ButtonType> result = alert.showAndWait(); if (result.get() == ButtonType.OK) { // OK wijzigingen verwerpen dc.setCancelled(false); dc.setNieuwHuidigProduct(product); grid.setVisible(true); lblTitelDetail.setVisible(true); btnFoto.setVisible(true); btnAnnuleer.setVisible(true); btnVerwijderen.setVisible(true); btnToevoegenAnnuleren.setVisible(false); btnWijzigen.setVisible(true); btnLeegmaken.setVisible(false); btnVoegProductToe.setVisible(false); lblOnbeschikbaar.setVisible(true); txtOnbeschikbaar.setVisible(true); // stage.close(); } else { // Niet OK dc.setCancelled(true); // dc.setNieuwHuidigProduct(oudProduct); throw new IllegalArgumentException("Gelieve uw wijzigingen te bevestigen of te annuleren"); } stage.close(); } } //} if (!dc.getCancelled() || dc.getHuidigProduct() == null) { dc.setNieuwHuidigProduct(product); lblError.setText(""); maakLabelsTerugNormaal(); // Product product = (Product) arg; txtAantal.setText(Integer.toString(product.getAantal())); txtArtikelnummer.setText(Integer.toString(product.getArtikelnummer())); txtFirma.setText(product.getFirma().getNaam()); txtEmailFirma.setText(product.getFirma().getEmailContactPersoon()); txtOnbeschikbaar.setText(Integer.toString(product.getAantalOnbeschikbaar())); //String format = String.format("%.2f", product.getPrijs()); txtPrijs.setText(String.format("%.2f", product.getPrijs()).replace(",", ".")); txtNaam.setText(product.getNaam()); txtOmschrijving.setText(product.getOmschrijving()); txtPlaats.setText(product.getPlaats()); listLeergebieden.setItems(dc.getVoorlopigeLeergebieden()); listDoelgroepen.setItems(dc.getVoorlopigeDoelgroepen()); //alles terug enablen als er iets geselcteerd wordt btnVerwijderen.setDisable(false); btnAnnuleer.setDisable(false); btnWijzigen.setDisable(false); btnLeegmaken.setVisible(false); if (product.getFoto() != null) { try { BufferedImage img = ImageIO.read(product.getFoto()); Image image = SwingFXUtils.toFXImage(img, null); imgViewFoto.setImage(image); } catch (IOException ex) { Logger.getLogger(ProductDetailController.class.getName()).log(Level.SEVERE, null, ex); } } else { imgViewFoto.setImage(null); } btnSelecteerDoelgroep.setDisable(false); listDoelgroepen.setDisable(false); /*} else { ongewijzigdProductBevestiging(); }*/ } } dc.setCancelled(false); this.wijziging = false; } catch (IllegalArgumentException e) { lblError.setText(e.getMessage()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BestellingAfleveradres() {\n initComponents();\n txtGemeente.setText(gemeente);\n txtGemeente.setEnabled(false);\n txtPostcode.setText(postcode2);\n txtPostcode.setEnabled(false);\n }", "public void praticien_zone(){\n\n JLabel lbl_Praticien = new JLabel(\"Praticien :\");\n lbl_Praticien.setBounds(40, 50, 119, 16);\n add(lbl_Praticien);\n\n\n\n JTextField praticien = new JTextField();\n praticien.setBounds(200, 50, 200, 22);\n praticien.setEditable(false);\n try {\n praticien.setText((DAO_Praticien.nomPraticien(rapport_visite.elementAt(DAO_Rapport.indice)[1])));\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n add(praticien);\n\n }", "private void popularTextFields(Promocao promocaoAntigo2) {\n\t\ttextFieldNome.setText(promocaoAntigo2.getNome());\n\t\ttextFieldDescricao.setText(promocaoAntigo2.getDescricao());\n\n\t}", "private void naolopkhachhangtrvaotextfield() {\n\t\t\n\t\tint row=table.getSelectedRow();\n\t\ttry {\n\t\t\ttxtmakhhm.setText(table.getValueAt(row, 0).toString());\n\t\t\tjava.util.Date date=new SimpleDateFormat(\"yyyy-MM-dd\").parse((String) table.getValueAt(row, 5).toString());\n\t\t\tjdcNgaytra.setDate(date);\n\t\t\t\n\t\t\ttxtTinhtrang.setText(table.getValueAt(row, 6).toString());\n\t\t\tif(txtTinhtrang.getText().equalsIgnoreCase(\"\"))\n\t\t\t\ttxtTinhtrang.setText(\"\");\n\t\t\t\n\t\t\ttxtGhichu.setText(table.getValueAt(row, 7).toString());\n\t\t\tif(txtGhichu.getText().equalsIgnoreCase(\"\"))\n\t\t\t\ttxtGhichu.setText(\"\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t//JOptionPane.showMessageDialog(this,\"bạn cần chọn dòng cần sửa !\");\n\t\t\treturn ;\n\t\t}\n\t}", "public void report_number_zone(){\n\n JLabel lbl_num = new JLabel(\"Num\\u00E9ro du Rapport :\");\n lbl_num.setBounds(40, 10, 129, 16);\n add(lbl_num);\n\n num_content = new JTextField();\n num_content.setHorizontalAlignment(SwingConstants.RIGHT);\n num_content.setEditable(false);\n num_content.setBounds(200, 7, 116, 22);\n num_content.setColumns(10);\n num_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[0]);\n add(num_content);\n\n\n\n\n }", "private void updateText() {\n updateDateText();\n\n TextView weightText = findViewById(R.id.tvWeight);\n TextView lowerBPText = findViewById(R.id.tvLowerBP);\n TextView upperBPText = findViewById(R.id.tvUpperBP);\n\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n\n double weight = mUser.weight.getWeightByDate(mDate.getTime());\n int upperBP = mUser.bloodPressure.getUpperBPByDate(mDate.getTime());\n int lowerBP = mUser.bloodPressure.getLowerBPByDate(mDate.getTime());\n\n weightText.setText(String.format(Locale.getDefault(), \"Paino\\n%.1f\", weight));\n lowerBPText.setText(String.format(Locale.getDefault(), \"AlaP\\n%d\", lowerBP));\n upperBPText.setText(String.format(Locale.getDefault(), \"YläP\\n%d\", upperBP));\n\n ((EditText)findViewById(R.id.etWeight)).setText(\"\");\n ((EditText)findViewById(R.id.etLowerBP)).setText(\"\");\n ((EditText)findViewById(R.id.etUpperBP)).setText(\"\");\n }", "public void limpaTextFields() {\n tfMatricula.setText(\"\");\n tfNome.setText(\"\");\n tfDataNascimento.setText(\"\");\n tfTelefone.setText(\"\");\n tfSalario.setText(\"\");\n }", "public void motif_zone(){\n\n JLabel lbl_Motif = new JLabel(\"Motif du Rapport :\");\n lbl_Motif.setBounds(40, 130, 119, 16);\n add(lbl_Motif);\n\n motif_content = new JTextField();\n motif_content.setBounds(200, 130, 200, 22);\n motif_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[4]);\n motif_content.setEditable(false);\n add(motif_content);\n\n\n\n }", "private void initFields(){\r\n \tintDocumentFilter = new IntegerDocumentFilter();\r\n \tJLabel label;\r\n \r\n \tlabel=new JLabel(\"Gen Chain Length\");\r\n \r\n \tgenChainLengthField = new JTextField(5);\r\n \tdoc = (PlainDocument)genChainLengthField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(genChainLengthField);\r\n \r\n \tlabel=new JLabel(\"Gen Chain Length Flux\");\r\n \r\n \tgenChainLengthFluxField = new JTextField(5);\r\n \tdoc = (PlainDocument)genChainLengthFluxField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(genChainLengthFluxField);\r\n \r\n \tlabel=new JLabel(\"Step Gen Distance\");\r\n \r\n \tstepGenDistanceField = new JTextField(5);\r\n \tdoc = (PlainDocument)stepGenDistanceField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(stepGenDistanceField);\r\n \r\n \tlabel=new JLabel(\"Rows\");\r\n \r\n \trowsField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Number of total rows in maze\");\r\n \tdoc = (PlainDocument)rowsField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(rowsField);\r\n \r\n \tlabel=new JLabel(\"Columns\");\r\n \r\n \tcolsField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Number of total columns in maze.\");\r\n \tdoc = (PlainDocument)colsField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(colsField);\r\n \r\n \tlabel=new JLabel(\"Start Row\");\r\n \r\n \tstartRowField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Row of starting position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)startRowField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(startRowField);\r\n \r\n \tlabel=new JLabel(\"Start Column\");\r\n \r\n \tstartColField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Column of starting position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)startColField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(startColField);\r\n \r\n \tlabel=new JLabel(\"End Row\");\r\n \r\n \tendRowField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Row of ending (goal) position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)endRowField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(endRowField);\r\n \r\n \tlabel=new JLabel(\"End Column\");\r\n \r\n \tendColField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Column of ending (goal) position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)endColField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(endColField);\r\n \r\n \tlabel=new JLabel(\"Cell Width\");\r\n \r\n \tcellWidthField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Width of a single cell in pixels\");\r\n \tdoc = (PlainDocument)cellWidthField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(cellWidthField);\r\n \r\n \tlabel=new JLabel(\"Progressive Reveal Radius\");\r\n \r\n \tprogRevealRadiusField = new JTextField(5);\r\n \tdoc = (PlainDocument)progRevealRadiusField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(progRevealRadiusField);\r\n \r\n \tlabel=new JLabel(\"Progressive Draw\");\r\n \r\n \tprogDrawCB = new JCheckBox();\r\n \tlabel.setToolTipText(\"Whether maze should be drawn progressively or not (immediately)\");\r\n \tthis.add(label);\r\n \tthis.add(progDrawCB);\r\n \r\n \tlabel=new JLabel(\"Progressive Draw Speed\");\r\n \r\n \tprogDrawSpeedField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Size of chunks in which maze should be drawn progressively (larger is faster)\");\r\n \tdoc = (PlainDocument)progDrawSpeedField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(progDrawSpeedField);\r\n \r\n \r\n \r\n \r\n \tokButton = new JButton(\"OK\");\r\n \tokButton.addActionListener(new ActionListener(){\r\n \t\tpublic void actionPerformed(ActionEvent e){\r\n \t\t writeback();\r\n \t\t JDialog parentDialog = (JDialog)(getRootPane().getParent());\r\n \t\t parentDialog.setVisible(false);\r\n \t\t}\r\n \t });\r\n \tthis.add(okButton);\r\n \r\n \tcancelButton = new JButton(\"Cancel\");\r\n \tcancelButton.addActionListener(new ActionListener(){\r\n \t\tpublic void actionPerformed(ActionEvent e){\r\n \t\t JDialog parentDialog = (JDialog)(getRootPane().getParent());\r\n \t\t parentDialog.setVisible(false);\r\n \t\t}\r\n \t });\r\n \tthis.add(cancelButton);\r\n }", "private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }", "public void setupTextFields(View v) {\n other = (EditText) v.findViewById(R.id.eText_Notes);\n totalTotes = (EditText) v.findViewById(R.id.eText_NumStacked);\n\n other.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n ((ScoutFormActivity) getActivity()).getScoutForm().setENOTES_COLUMN(other.getText().toString());\n }\n });\n\n totalTotes.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n ((ScoutFormActivity) getActivity()).getScoutForm().setEBONUSTOTAL_COLUMN(totalTotes.getText().toString());\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n TextFa = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n TextFx = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n Button1 = new javax.swing.JButton();\n TextFb = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n Amount = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n Date = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Конвертер валют\");\n\n jTextField1.setEditable(false);\n jTextField1.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField1.setText(\"Конвертер валют\");\n\n jTextField3.setEditable(false);\n jTextField3.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jTextField3.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n jTextField3.setText(\"Введите буквенный код валюты 1:\");\n jTextField3.setToolTipText(\"\");\n\n TextFa.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n\n jTextField5.setEditable(false);\n jTextField5.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jTextField5.setText(\"Введите буквенный код валюты 2:\");\n jTextField5.setToolTipText(\"\");\n\n TextFx.setEditable(false);\n TextFx.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n\n jTextField8.setEditable(false);\n jTextField8.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jTextField8.setText(\"Результат конвертации:\");\n jTextField8.setToolTipText(\"\");\n\n Button1.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n Button1.setText(\"Перевести\");\n Button1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button1ActionPerformed(evt);\n }\n });\n\n TextFb.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n\n jTextField6.setEditable(false);\n jTextField6.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jTextField6.setText(\"Введите дату:\");\n jTextField6.setToolTipText(\"\");\n\n Amount.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n\n jTextField10.setEditable(false);\n jTextField10.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jTextField10.setText(\"Введите сумму:\");\n jTextField10.setToolTipText(\"\");\n\n Date.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextField5, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField3, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField10)\n .addComponent(jTextField6, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TextFx)\n .addComponent(TextFb)\n .addComponent(Amount)\n .addComponent(Date)\n .addGroup(layout.createSequentialGroup()\n .addComponent(TextFa, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(212, 212, 212)\n .addComponent(Button1, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(36, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextFa, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextFb, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Amount, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Date, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(Button1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 44, Short.MAX_VALUE)\n .addComponent(TextFx))\n .addGap(32, 32, 32))\n );\n\n pack();\n }", "public String ordaindu() {\r\n\t\treturn textField_1.getText();\r\n\t}", "private void setAddrInputFields(){\n \ttextFieldCurrents.put(jTextFieldStart, jTextFieldStart.getText());\n\t\ttextFieldCurrents.put(jTextFieldEnd, jTextFieldEnd.getText());\n\t\tselectedFormat = jComboBoxFormat.getSelectedIndex();\n\t\tquickSearch = jCheckBoxQuickSearch.isSelected();\n }", "public void saveTextBoxs(){\n dni[indice] = Long.parseLong(txtDni.getText());\n nombre[indice] = txtNombre.getText();\n apellido[indice] = txtApellido.getText();\n direccion[indice] = txtDireccion.getText();\n telefono[indice] = txtTelefono.getText();\n fNacimiento[indice] = txtFechaNacimiento.getText();\n loadTextBoxs();\n }", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void event(KeyEvent e ,JTextField textField) {\n\t\tchar n = e.getKeyChar();\r\n\t\tif (!Character.isDigit(n) && n != 8 && n != 46)\r\n\t\t{\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели не числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(false);\r\n\t\t}else {\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(true);\r\n\t\t}\r\n\t}", "private void Screentocharge() {\r\n\r\n\t\t\t\t\r\n\t\tJTextField nombre = new JTextField();\r\n\t\tJTextField edad = new JTextField();\r\n\t\tJTextField raza = new JTextField();\r\n\t\tJTextField cuento = new JTextField();\r\n\t\tChoice tipo = new Choice();\r\n\t\t\t\t\t\t\r\n\t\ttipo.add(\"Perro\");\r\n\t\ttipo.add(\"Gato\");\r\n\t\ttipo.add(\"Conejo\");\r\n\t\t\r\n\t\tedad.addKeyListener(new KeyAdapter()\r\n\t\t{\r\n\t\t public void keyTyped(KeyEvent e)\r\n\t\t {\r\n\t\t char caracter = e.getKeyChar();\r\n\t\t if(((caracter<'0')||(caracter>'9'))&&(caracter!='\\b'))\r\n\t\t {\r\n\t\t e.consume(); \r\n\t\t }\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\tObject[] message = { \"Tipo:\", tipo, \"Nombre:\", nombre, \"Edad\", edad, \"Raza\", raza, \"Causa\", cuento };\r\n\r\n\t\tUIManager.put(\"OptionPane.minimumSize\",new Dimension(500,400));\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"Ingreso de Pasiente\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\tif (option == JOptionPane.OK_OPTION) {\t\r\n\t\t\tif (edad.getText().equals(\"\")) {\r\n\t\t\t\tedad.setText(\"0\");\r\n\t\t\t\treturnAnimal(tipo.getSelectedItem(), nombre.getText(), raza.getText(), \r\n\t\t\t\t\t\tInteger.valueOf(edad.getText()), cuento.getText());\r\n\t\t\t}\r\n\t\t\t returnAnimal(tipo.getSelectedItem(), nombre.getText(), raza.getText(), \r\n\t\t\t\t\t\t\tInteger.valueOf(edad.getText()), cuento.getText());\r\n\t\t}\r\n\t\t\r\n\t\tnombre = null;\r\n\t\tedad =null;\r\n\t\traza = null;\r\n\t\tcuento = null;\r\n\t\ttipo =null;\r\n\t\t\r\n\t}", "public void fantasmaText(JTextField txt, String smj) {\n rTextFantasma = new R_PlaceHolder(smj.toUpperCase(), txt);\n txt.grabFocus();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 473, 710);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(Color.GRAY);\r\n\t\tpanel.setBounds(0, 0, 468, 710);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\ttfTc = new JTextField();\r\n\t\ttfTc.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvoid regexKontrol() {\r\n\t\t\t\tString kimlik = tfTc.getText();\r\n\t\t\t\tif (kimlik.matches(\"[0-9]{11}\")==true) {\r\n\t\t\t\t\tbkimlik = true;\r\n\t\t\t\t\ttfTc.setBorder(BorderFactory.createLineBorder(Color.green,3));\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\tbkimlik = false;\r\n\t\t\t\t\ttfTc.setBorder(BorderFactory.createLineBorder(Color.red,3));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\ttfTc.setBounds(150, 150, 236, 39);\r\n\t\tpanel.add(tfTc);\r\n\t\ttfTc.setColumns(10);\r\n\t\t\r\n\t\ttfAdi = new JTextField();\r\n\t\ttfAdi.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvoid regexKontrol() {\r\n\t\t\t\tString isim = tfAdi.getText();\r\n\t\t\t\tif (isim.matches(\"[a-zA-Z ]{3,20}\")==true) {\r\n\t\t\t\t\ttfAdi.setBorder(BorderFactory.createLineBorder(Color.green,3));\r\n\t\t\t\t\tbadi = true;\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\tbadi = false;\r\n\t\t\t\t\ttfAdi.setBorder(BorderFactory.createLineBorder(Color.red,3));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfAdi.setColumns(10);\r\n\t\ttfAdi.setBounds(150, 203, 236, 39);\r\n\t\tpanel.add(tfAdi);\r\n\t\t\r\n\t\ttfSoyadi = new JTextField();\r\n\t\ttfSoyadi.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvoid regexKontrol() {\r\n\t\t\t\tString soyisim = tfSoyadi.getText();\r\n\t\t\t\tif (soyisim.matches(\"[a-zA-Z ]{3,20}\")==true) {\r\n\t\t\t\t\ttfSoyadi.setBorder(BorderFactory.createLineBorder(Color.green,3));\r\n\t\t\t\t\tbsoyadi = true;\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\ttfSoyadi.setBorder(BorderFactory.createLineBorder(Color.red,3));\r\n\t\t\t\t\tbsoyadi = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfSoyadi.setColumns(10);\r\n\t\ttfSoyadi.setBounds(150, 254, 236, 39);\r\n\t\tpanel.add(tfSoyadi);\r\n\t\t\r\n\t\ttfMail = new JTextField();\r\n\t\ttfMail.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvoid regexKontrol() {\r\n\t\t\t\tString mail = tfMail.getText();\r\n\t\t\t\tif (mail.matches(\"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\"\r\n\t\t\t\t\t\t+ \"\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.\"\r\n\t\t\t\t\t\t+ \")+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9]\"\r\n\t\t\t\t\t\t+ \"[0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\"\r\n\t\t\t\t\t\t+ \"\\\\x0e-\\\\x7f])+)\\\\])\")==true) {\r\n\t\t\t\t\ttfMail.setBorder(BorderFactory.createLineBorder(Color.green,3));\r\n\t\t\t\t\tbmail = true;\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\ttfMail.setBorder(BorderFactory.createLineBorder(Color.red,3));\r\n\t\t\t\t\tbmail = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfMail.setColumns(10);\r\n\t\ttfMail.setBounds(150, 306, 236, 39);\r\n\t\tpanel.add(tfMail);\r\n\t\t\r\n\t\tJButton btnTamamla = new JButton(\"Tamamla\");\r\n\t\tbtnTamamla.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t JOptionPane.showMessageDialog(new JFrame(), \"Kayıt başarıyla oluşturuldu.\", \"Bilgi\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnTamamla.setBackground(Color.YELLOW);\r\n\t\tbtnTamamla.setBorder(null);\r\n\t\tbtnTamamla.setBounds(150, 454, 180, 55);\r\n\t\tpanel.add(btnTamamla);\r\n\t\t\r\n\t\tJLabel lblTc = new JLabel(\"TC Kimlik:\");\r\n\t\tlblTc.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tlblTc.setFont(new Font(\"Tahoma\", Font.PLAIN, 19));\r\n\t\tlblTc.setBounds(46, 153, 90, 33);\r\n\t\tpanel.add(lblTc);\r\n\t\t\r\n\t\tJLabel lblAdi = new JLabel(\"\\u0130sim:\");\r\n\t\tlblAdi.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tlblAdi.setFont(new Font(\"Tahoma\", Font.PLAIN, 19));\r\n\t\tlblAdi.setBounds(46, 206, 90, 33);\r\n\t\tpanel.add(lblAdi);\r\n\t\t\r\n\t\tlblSoyadi = new JLabel(\"Soyisim:\");\r\n\t\tlblSoyadi.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tlblSoyadi.setFont(new Font(\"Tahoma\", Font.PLAIN, 19));\r\n\t\tlblSoyadi.setBounds(46, 257, 90, 33);\r\n\t\tpanel.add(lblSoyadi);\r\n\t\t\r\n\t\tlblEposta = new JLabel(\"E-Posta:\");\r\n\t\tlblEposta.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tlblEposta.setFont(new Font(\"Tahoma\", Font.PLAIN, 19));\r\n\t\tlblEposta.setBounds(46, 309, 90, 33);\r\n\t\tpanel.add(lblEposta);\r\n\t\t\r\n\t\tlblTelefon = new JLabel(\"Cep Tel. :\");\r\n\t\tlblTelefon.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tlblTelefon.setFont(new Font(\"Tahoma\", Font.PLAIN, 19));\r\n\t\tlblTelefon.setBounds(46, 359, 90, 33);\r\n\t\tpanel.add(lblTelefon);\r\n\t\t\r\n\t\tJFormattedTextField tfTelefon = new JFormattedTextField();\r\n\t\ttfTelefon.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tregexKontrol();\r\n\t\t\t}\r\n\t\t\tvoid regexKontrol() {\r\n\t\t\t\tString telefon = tfTelefon.getText();\r\n\t\t\t\tif (telefon.matches(\"[0-9]{10}\")==true) {\r\n\t\t\t\t\ttfTelefon.setBorder(BorderFactory.createLineBorder(Color.green,3));\r\n\t\t\t\t\tbtelefon = true;\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\ttfTelefon.setBorder(BorderFactory.createLineBorder(Color.red,3));\r\n\t\t\t\t\tbtelefon = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttfTelefon.setDisabledTextColor(Color.RED);\r\n\t\ttfTelefon.setBounds(150, 353, 236, 39);\r\n\t\t\r\n\t\tpanel.add(tfTelefon);\r\n\t\t\r\n\t\tJLabel lblBackground = new JLabel(\"\");\r\n\t\tlblBackground.setBorder(null);\r\n\t\tlblBackground.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\r\n\t\tlblBackground.setIcon(new ImageIcon(Gui.class.getResource(\"/simpleregister/automataregex.png\")));\r\n\t\tlblBackground.setBackground(Color.LIGHT_GRAY);\r\n\t\tlblBackground.setBounds(36, 28, 416, 575);\r\n\t\tpanel.add(lblBackground);\r\n\t\t\r\n\t\tThread thread = new Thread() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile(true) {\r\n\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"Thread içindeyim:\"+bkimlik+\" \"+badi+\" \"+bsoyadi+\" \"+bmail+\" \"+btelefon);//SORULACAK!!! bu satırı kapatınca buton aktif olmuyor!\r\n\t\t\t\t\tif (bkimlik == true && badi==true && bsoyadi == true && bmail == true && btelefon ==true ) {\r\n\t\t\t\t\t\tbtnTamamla.setEnabled(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tbtnTamamla.setEnabled(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t};\r\n\t\t\tthread.start();\r\n\t\t\r\n\t}", "private void monitorTextChange() {\n List<TextInputEditText> textInputEditTextList = new ArrayList<>();\n textInputEditTextList.add(tin_perLitrePrice); // first line is selected automatically\n textInputEditTextList.add(tin_fuelQuantityLitres);\n textInputEditTextList.add(tin_totalFuelPrice);\n textInputEditTextList.add(tin_currentKm);\n textInputEditTextList.add(tin_startingKm);\n textInputEditTextList.add(tin_distanceCovered);\n\n for (TextInputEditText item : textInputEditTextList) {\n\n\n item.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\n @Override\n public void afterTextChanged(Editable s) {\n Log.d(TAG, \"afterTextChanged: \");\n fabSaveFuelData.hide(); // hide save button\n tv_calculatedAverage_addEdit.setText(\"--km/l\");\n }\n });\n }\n\n // tv_input_fuel_date is a TextView so we need to add this separately\n tv_input_fuel_date.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 }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n }", "private void berechneNeuenWert () {\r\n try {\r\n double ergebnis = 0d;\r\n for (JTextComponent wert : this.wertOperator.keySet()) {\r\n if (this.ignoriereWhitespaceEingabefelder && wert.getText().trim().length() == 0) {\r\n continue;\r\n }\r\n final char operator = this.wertOperator.get(wert);\r\n final double operand = Double.parseDouble(wert.getDocument().getText(0, wert.getDocument().getLength()).trim());\r\n switch (operator) {\r\n case '*':\r\n ergebnis *= operand;\r\n break;\r\n case '/':\r\n ergebnis /= operand;\r\n break;\r\n case '-':\r\n ergebnis -= operand;\r\n break;\r\n case '+':\r\n ergebnis += operand;\r\n break;\r\n case '=':\r\n ergebnis = operand;\r\n break;\r\n }\r\n }\r\n String text = Double.toString(ergebnis);\r\n if (this.anzahlDerNachkommastellen <= 0 && text.indexOf('.') != -1) {\r\n text = text.substring(0,text.indexOf('.'));\r\n }\r\n else {\r\n // Kommastellen hinzufügen\r\n if (text.indexOf('.') == -1) {\r\n text += '.';\r\n }\r\n // ggf. mit Nullen hinten auffüllen\r\n while (text.indexOf('.') + anzahlDerNachkommastellen > text.length() -1) {\r\n text += '0';\r\n }\r\n // Abschneiden zuviel vorhandener Stellen\r\n if (text.length() - 1 > text.indexOf('.') +anzahlDerNachkommastellen) {\r\n text = text.substring(0,text.indexOf('.')+anzahlDerNachkommastellen+1);\r\n }\r\n }\r\n this.setText(text);\r\n }\r\n catch (final Exception berechnungsProblem) {\r\n this.setText(this.zeigeFehlerAn ? \"#WERT!\" : \"\");\r\n }\r\n }", "public trangchinhban() {\n\t\tsetBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\tsetBackground(Color.WHITE);\n\t\tsetLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"QU\\u1EA2N L\\u00DD B\\u00C0N\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Apps-Google-Drive-Fusion-Tables-icon.png\"));\n\t\tlblNewLabel_1.setBounds(117, 35, 211, 57);\n\t\tlblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\n\t\tadd(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Tên Bàn :\");\n\t\tlblNewLabel_1_1.setBounds(27, 121, 80, 36);\n\t\tlblNewLabel_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1_1 = new JLabel(\"Ghi Ch\\u00FA :\");\n\t\tlblNewLabel_1_1_1.setBounds(27, 228, 80, 36);\n\t\tlblNewLabel_1_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1_1);\n\t\t\n\t\ttxtTenban = new JTextField();\n\t\ttxtTenban.setBackground(new Color(255, 255, 255));\n\t\ttxtTenban.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTenban.setCaretColor(new Color(0, 153, 153));\n\t\ttxtTenban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\ttxtTenban.setBounds(117, 126, 246, 29);\n\t\tadd(txtTenban);\n\t\t\n\t\ttxtGhichu = new JTextField();\n\t\ttxtGhichu.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(255, 102, 0)));\n\t\ttxtGhichu.setBounds(117, 233, 246, 29);\n\t\ttxtGhichu.setColumns(10);\n\t\tadd(txtGhichu);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tscrollPane.setBorder(new MatteBorder(2, 2, 2, 2, (Color) new Color(0, 153, 153)));\n\t\tscrollPane.setBackground(new Color(0, 153, 153));\n\t\tscrollPane.addAncestorListener(new AncestorListener() {\n\t\t\tpublic void ancestorAdded(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorRemoved(AncestorEvent event) {\n\t\t\t}\n\t\t});\n\t\tscrollPane.setBounds(411, 35, 612, 227);\n\t\tadd(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setGridColor(new Color(255, 255, 255));\n\t\ttable.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\ttable.setForeground(new Color(255, 255, 255));\n\t\ttable.setBackground(new Color(255, 102, 51));\n\t\ttable.setFont(new Font(\"Times New Roman\", Font.BOLD, 12));\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmyindex = table.getSelectedRow();\n\t\t\t\ttxtTenban.setText(table.getValueAt(myindex, 1).toString());\n\t\t\t\ttxtTrangthai.setSelectedItem(table.getValueAt(myindex, 2).toString());\n\t\t\t\ttxtGhichu.setText(table.getValueAt(myindex, 3).toString());\n\t\t\t}\n\t\t});\n\t\ttable.setModel(new DefaultTableModel(\n\t\t\tnew Object[][] {\n\t\t\t},\n\t\t\tnew String[] {\n\t\t\t\t\"STT\", \"Tên bàn\", \"Trạng thái\", \"Ghi chú\"\n\t\t\t}\n\t\t) {\n\t\t\tClass[] columnTypes = new Class[] {\n\t\t\t\tString.class, String.class, String.class, String.class\n\t\t\t};\n\t\t\tpublic Class getColumnClass(int columnIndex) {\n\t\t\t\treturn columnTypes[columnIndex];\n\t\t\t}\n\t\t\tboolean[] columnEditables = new boolean[] {\n\t\t\t\tfalse, true, true, true\n\t\t\t};\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn columnEditables[column];\n\t\t\t}\n\t\t});\n\t\tscrollPane.setViewportView(table);\n\t\t\n\t\tJButton themban = new JButton(\" Th\\u00EAm b\\u00E0n\");\n\t\tthemban.setBorder(new MatteBorder(2, 8, 2, 8, (Color) new Color(51, 204, 102)));\n\t\tthemban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\n\t\t\t\tTable ban = new Table(tenban,trangthai,ghichu);\n\t\t\t\t\n\t\t\t\tTableThaoTac.insert(ban);\n\t\t\t\t\n\t\t\t\tShowTable();\n\t\t\t}\n\t\t});\n\t\tthemban.setBackground(new Color(255, 255, 255));\n\t\tthemban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\add-1-icon.png\"));\n\t\tthemban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tthemban.setBounds(64, 295, 127, 45);\n\t\tadd(themban);\n\t\t\n\t\tJButton xoaban = new JButton(\" X\\u00F3a b\\u00E0n\");\n\t\txoaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 51, 0)));\n\t\txoaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint selectedIndex = table.getSelectedRow();\n\t\t\t\tif(selectedIndex >=0) {\n\t\t\t\t\tTable stt = listTable.get(selectedIndex);\n\t\t\t\t\tint option = JOptionPane.showConfirmDialog(getRootPane(), \"Bạn có muốn xóa không ?\");\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tTableThaoTac.delete(stt.getSttban());\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\txoaban.setBackground(new Color(255, 255, 255));\n\t\txoaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Actions-button-cancel-icon.png\"));\n\t\txoaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\txoaban.setBounds(231, 362, 127, 45);\n\t\tadd(xoaban);\n\t\t\n\t\tJLabel lblNewLabel_1_1_2 = new JLabel(\"Trạng thái :\");\n\t\tlblNewLabel_1_1_2.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tlblNewLabel_1_1_2.setBounds(27, 172, 80, 36);\n\t\tadd(lblNewLabel_1_1_2);\n\t\ttxtTrangthai.setDebugGraphicsOptions(DebugGraphics.NONE_OPTION);\n\t\ttxtTrangthai.setEditable(true);\n\t\ttxtTrangthai.setFocusCycleRoot(true);\n\t\ttxtTrangthai.setForeground(new Color(0, 0, 0));\n\t\ttxtTrangthai.setBackground(new Color(255, 255, 255));\n\t\ttxtTrangthai.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTrangthai.setModel(new DefaultComboBoxModel(new String[] {\"Còn trống\", \"Hết chỗ\", \"Đã đặt\"}));\n\t\ttxtTrangthai.setBounds(117, 177, 246, 29);\n\t\tadd(txtTrangthai);\n\t\t\n\t\tJButton suaban = new JButton(\"Sửa bàn\");\n\t\tsuaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 204, 0)));\n\t\tsuaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\document-edit-icon.png\"));\n\t\tsuaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (txtTenban.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Lỗi\");\n\t\t\t\t} else {\n\t\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\tTable ban = new Table(myindex +1,tenban,trangthai,ghichu);\n\t\t\t\t\tTableThaoTac.update(ban);\n\t\t\t\t\t;\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsuaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tsuaban.setBackground(new Color(255, 255, 255));\n\t\tsuaban.setBounds(64, 362, 127, 45);\n\t\tadd(suaban);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe.png\"));\n\t\tlblNewLabel.setBounds(459, 272, 255, 220);\n\t\tadd(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"\");\n\t\tlblNewLabel_2.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe hh.png\"));\n\t\tlblNewLabel_2.setBounds(754, 297, 211, 160);\n\t\tadd(lblNewLabel_2);\n\t\t\n\t\tJButton lammoi = new JButton(\"Làm mới\");\n\t\tlammoi.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 102, 0)));\n\t\tlammoi.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtTenban.setText(\"\");\n\t\t\t\ttxtTrangthai.setSelectedIndex(0);\n\t\t\t\ttxtGhichu.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tlammoi.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\system-software-update-icon (1).png\"));\n\t\tlammoi.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tlammoi.setBackground(new Color(255, 255, 255));\n\t\tlammoi.setBounds(231, 295, 127, 45);\n\t\tadd(lammoi);\n\t\t\n\t\tdfModel = (DefaultTableModel) table.getModel();\n\t\tShowTable();\n\t\t\n\t}", "TextField getTextFieldRootRecherche();", "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}", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t \r\n\t\t int pos = textField_6.getCaretPosition();\r\n\t\t convertiraMayusculasEnJtextfield(textField_6, pos);\r\n\t\t\t}", "private void txtNomApodCaretUpdate(javax.swing.event.CaretEvent evt) {\n this.ValidarIngreso();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel26 = new javax.swing.JPanel();\n jLabel132 = new javax.swing.JLabel();\n jTextField132 = new javax.swing.JTextField();\n jLabel133 = new javax.swing.JLabel();\n jTextField133 = new javax.swing.JTextField();\n jLabel134 = new javax.swing.JLabel();\n jTextField134 = new javax.swing.JTextField();\n jLabel135 = new javax.swing.JLabel();\n jTextField135 = new javax.swing.JTextField();\n jLabel136 = new javax.swing.JLabel();\n jTextField136 = new javax.swing.JTextField();\n jLabel137 = new javax.swing.JLabel();\n jTextField137 = new javax.swing.JTextField();\n jLabel138 = new javax.swing.JLabel();\n jTextField138 = new javax.swing.JTextField();\n jLabel139 = new javax.swing.JLabel();\n jTextField139 = new javax.swing.JTextField();\n jLabel140 = new javax.swing.JLabel();\n jTextField140 = new javax.swing.JTextField();\n jLabel141 = new javax.swing.JLabel();\n jTextField141 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel26.setBackground(new java.awt.Color(255, 204, 204));\n\n jLabel132.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel132.setText(\"WAGES:\");\n\n jTextField132.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField132.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField132ActionPerformed(evt);\n }\n });\n\n jLabel133.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel133.setText(\"RENT:\");\n\n jTextField133.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField133.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField133ActionPerformed(evt);\n }\n });\n\n jLabel134.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel134.setText(\"GAS/OIL:\");\n\n jTextField134.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField134.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField134ActionPerformed(evt);\n }\n });\n\n jLabel135.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel135.setText(\"WATER:\");\n\n jTextField135.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField135.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField135ActionPerformed(evt);\n }\n });\n\n jLabel136.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel136.setText(\"PHONE:\");\n\n jTextField136.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField136.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField136ActionPerformed(evt);\n }\n });\n\n jLabel137.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel137.setText(\"INTERNET:\");\n\n jTextField137.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField137.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField137ActionPerformed(evt);\n }\n });\n\n jLabel138.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel138.setText(\"MAINTENANCE:\");\n\n jTextField138.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField138.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField138ActionPerformed(evt);\n }\n });\n\n jLabel139.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel139.setText(\"TOTAL EXPENSE:\");\n\n jTextField139.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField139.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField139ActionPerformed(evt);\n }\n });\n\n jLabel140.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel140.setText(\"SAVINGS:\");\n\n jTextField140.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField140.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField140ActionPerformed(evt);\n }\n });\n\n jLabel141.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel141.setText(\"EXCEED:\");\n\n jTextField141.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jTextField141.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField141ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);\n jPanel26.setLayout(jPanel26Layout);\n jPanel26Layout.setHorizontalGroup(\n jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addGap(91, 91, 91)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel139, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField139, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel138)\n .addGap(25, 25, 25)\n .addComponent(jTextField138, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel137, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField137, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel136, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField136, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel135, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField135, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel134, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField134, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel133, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField133, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel132, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField132, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel140, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField140, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createSequentialGroup()\n .addComponent(jLabel141, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(61, 61, 61)\n .addComponent(jTextField141, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(133, 133, 133))))\n );\n jPanel26Layout.setVerticalGroup(\n jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel140, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField140, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel132, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField132, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(40, 40, 40)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel141, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField141, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel133, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField133, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(34, 34, 34)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel134, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField134, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel135, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField135, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel136, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField136, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel137, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField137, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel138, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField138, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel139, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField139, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(66, 66, 66))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void displayBedrijf(){\n if (this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jTextFieldBedrijfsnaam.setText(this.geselecteerdeStageplaats.getBedrijfID().getNaam());\n this.jTextFieldContactpersoon.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactNaam());\n this.jTextFieldEmail.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactEmail());\n this.jTextAreaActiviteiten.setText(this.geselecteerdeStageplaats.getBedrijfID().getActiviteiten());\n this.jTextAreaAanwervend.setText(this.geselecteerdeStageplaats.getBedrijfID().getAanwervend());\n \n this.jTextFieldStraat.setText(this.geselecteerdeStageplaats.getBedrijfID().getStraat());\n this.jTextFieldNummer.setText(this.geselecteerdeStageplaats.getBedrijfID().getNummer());\n this.jTextFieldPostcode.setText(this.geselecteerdeStageplaats.getBedrijfID().getPostcode());\n this.jTextFieldStad.setText(this.geselecteerdeStageplaats.getBedrijfID().getStad());\n this.jTextFieldLand.setText(this.geselecteerdeStageplaats.getBedrijfID().getLand());\n }\n }", "@Override\r\n public void afterTextChanged(Editable s) {\n int astart = value4.getSelectionStart();\r\n int aend = value4.getSelectionEnd();\r\n\r\n String FieldValue = s.toString().toUpperCase();\r\n\r\n if (Helper.checkDataHexa(FieldValue) == false) {\r\n value4.setTextKeepState(Helper.checkAndChangeDataHexa(FieldValue));\r\n value4.setSelection(astart - 1, aend - 1);\r\n } else\r\n value4.setSelection(astart, aend);\r\n\r\n if (value4.getText().length() > 0 && value4.getText().length() < 2) {\r\n value4.setTextColor(0xffff0000); //RED color\r\n buttonPresentPassword.setClickable(false);\r\n buttonWritePassword.setClickable(false);\r\n Value4Enable = false;\r\n } else {\r\n value4.setTextColor(0xff000000); //BLACK color\r\n Value4Enable = true;\r\n if (Value1Enable == true &&\r\n Value2Enable == true &&\r\n Value3Enable == true &&\r\n Value4Enable == true) {\r\n buttonPresentPassword.setClickable(true);\r\n buttonWritePassword.setClickable(true);\r\n }\r\n }\r\n\r\n }", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "void resetTextFields();", "public void letras() {\n caracteres = 32 - txtMensaje.getText().length(); //Indica la catidad de carcteres\n //disponibles. En el LCD solo se permite imprimir 32 caracteres.\n\n if (caracteres <= 0) { //Si la cantidad de caracteres se ha agotado... \n lbCaracteres.setText(\"Caracteres disponibles: 0\"); //Se imprime que la cantidad de \n //caracteres disponibles es 0\n String cadena = \"\"; //Se declara la variable que guardará el mensaje a enviar\n cadena = txtMensaje.getText(); //Se asigna el texto del TextField a la variable cadena\n cadena = cadena.substring(0, 32); //Se evita que por alguna razón la variable contenga\n //más de 32 caracteres, utilizando el substring que crea un string a partir de uno mayor.\n txtMensaje.setText(cadena); //se regresa la cadena con 32 caracteres al TextField\n } else {\n //Si la cantidad de caracteres disponibles es ayor a 0 solamente se imprimirá la cantidad\n //de caracteres disponibles\n lbCaracteres.setText(\"Caracteres disponibles: \" + (caracteres));\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n TxtGastos = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n TxtIngreso = new javax.swing.JTextField();\n LblSubTotal = new javax.swing.JLabel();\n LblEfectivo = new javax.swing.JLabel();\n LblParesVendidos = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n LblCambiosRealizados = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n TxtSobrante = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n TxtInventario = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n BtnCorteCaja = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n LblApartados = new javax.swing.JLabel();\n LblNumApartados = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n TxtGastos.setText(\"0\");\n TxtGastos.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n TxtGastosCaretUpdate(evt);\n }\n });\n TxtGastos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TxtGastosActionPerformed(evt);\n }\n });\n TxtGastos.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TxtGastosKeyTyped(evt);\n }\n });\n\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel7.setText(\"Sobrante:\");\n\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel9.setText(\"Ingreso:\");\n\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel8.setText(\"Inventario:\");\n\n TxtIngreso.setText(\"0\");\n TxtIngreso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TxtIngresoActionPerformed(evt);\n }\n });\n TxtIngreso.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n TxtIngresoKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TxtIngresoKeyTyped(evt);\n }\n });\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Ventas:\");\n\n jLabel2.setText(\"CORTE DE CAJA\");\n\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"Gastos:\");\n\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"Efectivo:\");\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Files/cancelar.png\"))); // NOI18N\n jButton1.setText(\"Cancelar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"Ventas Realizadas:\");\n\n BtnCorteCaja.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Files/recepcion.png\"))); // NOI18N\n BtnCorteCaja.setText(\"Imprimir Corte de Caja\");\n BtnCorteCaja.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnCorteCajaActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Cambios Realizados:\");\n\n jLabel12.setText(\"Apartados:\");\n\n jLabel13.setText(\"Numero Apartados:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(163, 163, 163)\n .addComponent(jLabel2))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 3, Short.MAX_VALUE)))\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel13)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TxtInventario, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(LblNumApartados, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(LblSubTotal, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TxtIngreso, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE)\n .addComponent(TxtGastos, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LblEfectivo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(LblParesVendidos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(LblCambiosRealizados, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TxtSobrante, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LblApartados, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(BtnCorteCaja)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(LblSubTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TxtIngreso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(TxtGastos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(LblApartados, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LblEfectivo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LblNumApartados, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(LblParesVendidos, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6))\n .addComponent(LblCambiosRealizados, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(TxtSobrante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(TxtInventario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(BtnCorteCaja))\n .addContainerGap())\n );\n\n pack();\n }", "private void vereenvoudigAction() {\n foutLabel.setText(\"\");\n int teller = Integer.parseInt(tellerVeld.getText());\n int noemer = Integer.parseInt(noemerVeld.getText());\n if (noemer <= 0) {\n foutLabel.setText(\"Noemer moet positief zijn\");\n }\n else if (teller < 0) {\n foutLabel.setText(\"Teller mag niet negatief zijn\");\n }\n else {\n Breuk breuk = new Breuk(teller, noemer); \n if (breuk != null) {\n breuk.vereenvoudig();\n tellerVeld.setText(breuk.getTeller() + \"\");\n noemerVeld.setText(breuk.getNoemer() + \"\");\n }\n }\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 }", "@Override\n public void afterTextChanged(Editable s) {\n int liczba = 0;\n try {\n liczba = Integer.parseInt(liczbaOcen.getText().toString());\n } catch (Exception e) {\n czyLiczby = false;\n }\n if (liczba >= 5 && liczba <= 15)\n czyLiczby = true;\n else\n czyLiczby = false;\n pokazOblicz();\n\n }", "@Override\r\n public void afterTextChanged(Editable s) {\n int astart = value1.getSelectionStart();\r\n int aend = value1.getSelectionEnd();\r\n\r\n String FieldValue = s.toString().toUpperCase();\r\n\r\n if (Helper.checkDataHexa(FieldValue) == false) {\r\n value1.setTextKeepState(Helper.checkAndChangeDataHexa(FieldValue));\r\n value1.setSelection(astart - 1, aend - 1);\r\n } else\r\n value1.setSelection(astart, aend);\r\n\r\n if (value1.getText().length() > 0 && value1.getText().length() < 2) {\r\n value1.setTextColor(0xffff0000); //RED color\r\n buttonPresentPassword.setClickable(false);\r\n buttonWritePassword.setClickable(false);\r\n Value1Enable = false;\r\n } else {\r\n value1.setTextColor(0xff000000); //BLACK color\r\n Value1Enable = true;\r\n if (Value1Enable == true &&\r\n Value2Enable == true &&\r\n Value3Enable == true &&\r\n Value4Enable == true) {\r\n buttonPresentPassword.setClickable(true);\r\n buttonWritePassword.setClickable(true);\r\n }\r\n\r\n }\r\n\r\n }", "public void limparCampos() {\n\t\tcodigoField.setText(\"\");\n\t\tdescricaoField.setText(\"\");\n\t\tcodigoField.setEditable(true);\n\t\tBorder border = BorderFactory.createLineBorder(Color.RED);\n\t\tcodigoField.setBorder(border);\n\t\tcodigoField.requestFocus();\n\t\tBorder border1 = BorderFactory.createLineBorder(Color.BLACK);\n\t\tdescricaoField.setBorder(border1);\n\t\t\n\t\t\n\t}", "private void makeFormattedTextField(){\n textField = new JTextField(\"\"+ShapeFactory.getRoundness(), 3);\n //add listener that happens after each type and make the field accept only numbers between 0 to 100\n textField.addKeyListener(new KeyAdapter() {\n @Override\n public void keyTyped(KeyEvent e) {\n super.keyTyped(e);\n typeEvent(e);\n }\n });\n }", "public void emptyTextField(){\n spelerIDField.setText(\"\");\n typeField.setText(\"\");\n codeField.setText(\"\");\n heeftBetaaldField.setText(\"\");\n }", "private void moikhoatextfield(boolean b) {\n\t\ttxtmakhhm.setEditable(b);\n\t\ttxtGhichu.setEditable(b);\n\t\ttxtTinhtrang.setEditable(b);\n\t\tjdcNgaytra.setEnabled(b);\n\t\tckTra.setEnabled(b);\n\t}", "private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTitle = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtMaSV = new javax.swing.JTextField();\n txtTenSV = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtNgaySinh = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n txtKhoa = new javax.swing.JTextField();\n txtLop = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n txtQuocTich = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtDanToc = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n txtSoCCCD = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n txtEmail = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n txtNoiThuongTru = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n txtNoiTamTru = new javax.swing.JTextField();\n txtTonGiao = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n txtHoTenCha = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n txtSoTaiKhoan = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n txtTenNganHang = new javax.swing.JTextField();\n txtNamSinhCha = new javax.swing.JTextField();\n jLabel20 = new javax.swing.JLabel();\n txtNgheNghiepCha = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n txtDiaChiCha = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n txtSDTCha = new javax.swing.JTextField();\n jLabel23 = new javax.swing.JLabel();\n txtHoTenMe = new javax.swing.JTextField();\n txtNamSinhMe = new javax.swing.JTextField();\n txtNgheNghiepMe = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel26 = new javax.swing.JLabel();\n txtDiaChiMe = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n txtSDTMe = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n lableTK = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n txtMatKhau = new javax.swing.JTextField();\n jSeparator3 = new javax.swing.JSeparator();\n btnThem = new javax.swing.JButton();\n btnQuayLai = new javax.swing.JButton();\n txtHoTenChuHo = new javax.swing.JTextField();\n jLabel33 = new javax.swing.JLabel();\n txtSoDienThoai = new javax.swing.JTextField();\n jLabel34 = new javax.swing.JLabel();\n txtMaBHYT = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblBangDuLieu = new javax.swing.JTable();\n jLabel35 = new javax.swing.JLabel();\n btnChonFile = new javax.swing.JButton();\n lblDuongDan = new javax.swing.JLabel();\n txtTenTaiKhoan = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n lblTitle.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n lblTitle.setText(\"THÊM THÔNG TIN SINH VIÊN\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Thông tin cơ bản\");\n\n jLabel3.setText(\"Mã sinh viên:\");\n\n txtMaSV.addCaretListener(new javax.swing.event.CaretListener() {\n public void caretUpdate(javax.swing.event.CaretEvent evt) {\n txtMaSVCaretUpdate(evt);\n }\n });\n\n jLabel4.setText(\"Tên sinh viên:\");\n\n jLabel5.setText(\"Ngày sinh:\");\n\n jLabel6.setText(\"Khoa:\");\n\n jLabel7.setText(\"Lớp:\");\n\n jLabel8.setText(\"Quốc tịch:\");\n\n jLabel9.setText(\"Dân tộc:\");\n\n jLabel10.setText(\"Số CCCD:\");\n\n jLabel11.setText(\"Email:\");\n\n jLabel12.setText(\"Nơi thường trú:\");\n\n jLabel13.setText(\"Nơi tạm trú:\");\n\n jLabel14.setText(\"Tôn giáo:\");\n\n jLabel15.setText(\"Tên ngân hàng:\");\n\n jLabel16.setText(\"Số tài khoản:\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel17.setText(\"Thông tin gia đình\");\n\n jLabel18.setText(\"Họ tên cha:\");\n\n jLabel19.setText(\"Năm sinh:\");\n\n jLabel20.setText(\"Nghề nghiệp:\");\n\n jLabel21.setText(\"Địa chỉ:\");\n\n jLabel22.setText(\"Số điện thoại:\");\n\n jLabel23.setText(\"Họ tên mẹ:\");\n\n jLabel24.setText(\"Năm sinh:\");\n\n jLabel25.setText(\"Nghề nghiệp:\");\n\n jLabel26.setText(\"Địa chỉ:\");\n\n jLabel27.setText(\"Số điện thoại:\");\n\n jLabel28.setText(\"Họ tên chủ hộ:\");\n\n jLabel29.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel29.setText(\"Tài khoản\");\n\n lableTK.setText(\"Tên tài khoản:\");\n\n jLabel31.setText(\"Mật khẩu:\");\n\n btnThem.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnThem.setText(\"Thêm\");\n btnThem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnThemActionPerformed(evt);\n }\n });\n\n btnQuayLai.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnQuayLai.setText(\"Quay lại\");\n btnQuayLai.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnQuayLaiActionPerformed(evt);\n }\n });\n\n jLabel33.setText(\"Số điện thoại:\");\n\n jLabel34.setText(\"Mã BHYT:\");\n\n tblBangDuLieu.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"STT\", \"Mã sinh viên\", \"Họ tên\", \"Khoa\", \"Lớp\"\n }\n ));\n jScrollPane1.setViewportView(tblBangDuLieu);\n if (tblBangDuLieu.getColumnModel().getColumnCount() > 0) {\n tblBangDuLieu.getColumnModel().getColumn(0).setMinWidth(50);\n tblBangDuLieu.getColumnModel().getColumn(0).setMaxWidth(50);\n tblBangDuLieu.getColumnModel().getColumn(1).setMinWidth(150);\n tblBangDuLieu.getColumnModel().getColumn(1).setMaxWidth(150);\n }\n\n jLabel35.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel35.setText(\"Nhập theo danh sách:\");\n\n btnChonFile.setText(\"Chọn file\");\n btnChonFile.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnChonFileActionPerformed(evt);\n }\n });\n\n lblDuongDan.setText(\"Vui lòng chọn file\");\n\n txtTenTaiKhoan.setEnabled(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 357, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(257, 257, 257))\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lableTK)\n .addGap(28, 28, 28)\n .addComponent(txtTenTaiKhoan, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel17)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21)\n .addComponent(jLabel26))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(265, 265, 265)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22)\n .addComponent(jLabel19)\n .addComponent(jLabel24)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtSDTMe, javax.swing.GroupLayout.DEFAULT_SIZE, 198, Short.MAX_VALUE)\n .addComponent(txtNamSinhCha)\n .addComponent(txtSDTCha)\n .addComponent(txtNamSinhMe))\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel20)\n .addComponent(jLabel25))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNgheNghiepCha, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNgheNghiepMe, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(267, 267, 267)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel31)\n .addGap(35, 35, 35)\n .addComponent(txtMatKhau, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblDuongDan)))))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtDiaChiMe, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDiaChiCha, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addGap(40, 40, 40)\n .addComponent(txtHoTenCha, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel23)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHoTenMe, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel28)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHoTenChuHo, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel35)\n .addGap(18, 18, 18)\n .addComponent(btnChonFile))\n .addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel29, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator2)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8))\n .addComponent(jLabel10)\n .addComponent(jLabel12)\n .addComponent(jLabel15))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtMaSV, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtKhoa, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtQuocTich, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtSoCCCD, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNoiThuongTru, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTenNganHang, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel7)\n .addComponent(jLabel9)\n .addComponent(jLabel11)\n .addComponent(jLabel13)\n .addComponent(jLabel16))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtSoTaiKhoan, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtLop, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtEmail, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtTenSV, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtDanToc, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(txtNoiTamTru, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel34)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtMaBHYT, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel14))\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtTonGiao, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNgaySinh, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel33)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtSoDienThoai)))))))\n .addGap(0, 30, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(267, 267, 267)\n .addComponent(btnThem, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(269, 269, 269)\n .addComponent(btnQuayLai)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblTitle)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtMaSV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTenSV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(txtNgaySinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtKhoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(txtLop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtQuocTich, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(txtDanToc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(txtTonGiao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtSoCCCD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jLabel11)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel33)\n .addComponent(txtSoDienThoai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNoiThuongTru, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(jLabel13)\n .addComponent(txtNoiTamTru, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel34)\n .addComponent(txtMaBHYT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtTenNganHang, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(txtSoTaiKhoan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtHoTenCha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18)\n .addComponent(txtNamSinhCha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19)\n .addComponent(jLabel20)\n .addComponent(txtNgheNghiepCha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtDiaChiCha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22)\n .addComponent(txtSDTCha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtHoTenMe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel23)\n .addComponent(jLabel24)\n .addComponent(txtNamSinhMe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25)\n .addComponent(txtNgheNghiepMe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtSDTMe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel27)\n .addComponent(jLabel26)\n .addComponent(txtDiaChiMe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtHoTenChuHo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel29)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtTenTaiKhoan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lableTK)\n .addComponent(jLabel31)\n .addComponent(txtMatKhau, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel35)\n .addComponent(btnChonFile)\n .addComponent(lblDuongDan))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnThem)\n .addComponent(btnQuayLai))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public JTextField getTfaktual() {\n return tfaktual;\n }", "@Override\r\n public void afterTextChanged(Editable s) {\n int astart = value3.getSelectionStart();\r\n int aend = value3.getSelectionEnd();\r\n\r\n String FieldValue = s.toString().toUpperCase();\r\n\r\n if (Helper.checkDataHexa(FieldValue) == false) {\r\n value3.setTextKeepState(Helper.checkAndChangeDataHexa(FieldValue));\r\n value3.setSelection(astart - 1, aend - 1);\r\n } else\r\n value3.setSelection(astart, aend);\r\n\r\n if (value3.getText().length() > 0 && value3.getText().length() < 2) {\r\n value3.setTextColor(0xffff0000); //RED color\r\n buttonPresentPassword.setClickable(false);\r\n buttonWritePassword.setClickable(false);\r\n Value3Enable = false;\r\n } else {\r\n value3.setTextColor(0xff000000); //BLACK color\r\n Value3Enable = true;\r\n if (Value1Enable == true &&\r\n Value2Enable == true &&\r\n Value3Enable == true &&\r\n Value4Enable == true) {\r\n buttonPresentPassword.setClickable(true);\r\n buttonWritePassword.setClickable(true);\r\n }\r\n }\r\n\r\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tCostoGastoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.costogastoimpor,new Object(),this.costogastoimporParameterGeneral,this.costogastoimporReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tCostoGastoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.costogastoimpor,new Object(),this.costogastoimporParameterGeneral,this.costogastoimporReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CostoGastoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPlantillaFacturaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.plantillafactura,new Object(),this.plantillafacturaParameterGeneral,this.plantillafacturaReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tPlantillaFacturaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.plantillafactura,new Object(),this.plantillafacturaParameterGeneral,this.plantillafacturaReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PlantillaFacturaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n\n jLabel1.setText(\"jLabel1\");\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Key Released\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setText(\"Key Released\");\n\n jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextField1KeyReleased(evt);\n }\n });\n\n jLabel3.setText(\"Masukan Kata 1 : \");\n\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextField2KeyReleased(evt);\n }\n });\n\n jLabel4.setText(\"Masukan Kata 2 :\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(50, 50, 50)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1)\n .addComponent(jLabel2)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE))\n .addContainerGap(140, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(36, 36, 36)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addContainerGap(151, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField4 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n nametf = new javax.swing.JTextField();\n gendertf = new javax.swing.JTextField();\n uidtf = new javax.swing.JTextField();\n lmtf = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n addresstf = new javax.swing.JTextArea();\n vtctf = new javax.swing.JTextField();\n disttf = new javax.swing.JTextField();\n statetf = new javax.swing.JTextField();\n pincodetf = new javax.swing.JTextField();\n yobtf = new javax.swing.JTextField();\n\n jTextField4.setText(\"jTextField1\");\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"UID\");\n\n jLabel2.setBackground(new java.awt.Color(255, 255, 255));\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"NAME\");\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"GENDER\");\n\n jLabel4.setBackground(new java.awt.Color(255, 255, 255));\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"YOB\");\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 255));\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"LAND MARK\");\n\n jLabel6.setBackground(new java.awt.Color(255, 255, 255));\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"ADDRESS\");\n\n jLabel7.setBackground(new java.awt.Color(255, 255, 255));\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel7.setText(\"VTC\");\n\n jLabel8.setBackground(new java.awt.Color(255, 255, 255));\n jLabel8.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel8.setText(\"DIST\");\n\n jLabel9.setBackground(new java.awt.Color(255, 255, 255));\n jLabel9.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel9.setText(\"STATE\");\n\n jLabel10.setBackground(new java.awt.Color(255, 255, 255));\n jLabel10.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel10.setText(\"PINCODE\");\n\n uidtf.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n uidtfActionPerformed(evt);\n }\n });\n\n addresstf.setColumns(20);\n addresstf.setRows(5);\n jScrollPane1.setViewportView(addresstf);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(nametf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(gendertf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(yobtf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lmtf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(vtctf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(disttf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(statetf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(pincodetf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(uidtf, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uidtf, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(nametf, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(gendertf, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(yobtf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lmtf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(vtctf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(disttf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(statetf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pincodetf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n }", "public void effacerSaisie()\n\t{\n\t\ttfCltNew.setText(\"\");\n\t\ttfNumero.setText(\"\");\n\t\ttfNom.setText(\"\");\n\t\ttfPrenom.setText(\"\");\n\t\tselectDefaultValue();\n\t}", "@Override\r\n public void afterTextChanged(Editable s) {\n int astart = value2.getSelectionStart();\r\n int aend = value2.getSelectionEnd();\r\n\r\n String FieldValue = s.toString().toUpperCase();\r\n\r\n if (Helper.checkDataHexa(FieldValue) == false) {\r\n value2.setTextKeepState(Helper.checkAndChangeDataHexa(FieldValue));\r\n value2.setSelection(astart - 1, aend - 1);\r\n } else\r\n value2.setSelection(astart, aend);\r\n\r\n if (value2.getText().length() > 0 && value2.getText().length() < 2) {\r\n value2.setTextColor(0xffff0000); //RED color\r\n buttonPresentPassword.setClickable(false);\r\n buttonWritePassword.setClickable(false);\r\n Value2Enable = false;\r\n } else {\r\n value2.setTextColor(0xff000000); //BLACK color\r\n Value2Enable = true;\r\n if (Value1Enable == true &&\r\n Value2Enable == true &&\r\n Value3Enable == true &&\r\n Value4Enable == true) {\r\n buttonPresentPassword.setClickable(true);\r\n buttonWritePassword.setClickable(true);\r\n }\r\n }\r\n\r\n }", "private void setTextboxesToContainedData()\n {\n updateWeightTextFieldToStored(\"failure loading default\");\n updateSpriteTextFieldToStored(\"failure loading default\");\n }", "public void updateTextViews() {\n // Set the inputs according to the initial input from the entry.\n //TextView dateTextView = (TextView) findViewById(R.id.date_textview);\n //dateTextView.setText(DateUtils.formatDateTime(getApplicationContext(), mEntry.getStart(), DateUtils.FORMAT_SHOW_DATE));\n\n EditText dateEdit = (EditText) findViewById(R.id.date_text_edit);\n dateEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_NUMERIC_DATE | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_ABBREV_ALL));\n\n EditText startTimeEdit = (EditText) findViewById(R.id.start_time_text_edit);\n startTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_SHOW_TIME));\n\n EditText endTimeEdit = (EditText) findViewById(R.id.end_time_text_edit);\n endTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getEnd(), DateUtils.FORMAT_SHOW_TIME));\n\n\n TextView descriptionView = (TextView) findViewById(R.id.description);\n descriptionView.setText(mEntry.getDescription());\n\n\n enableSendButtonIfPossible();\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tCierreCajaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.cierrecaja,new Object(),this.cierrecajaParameterGeneral,this.cierrecajaReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tCierreCajaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.cierrecaja,new Object(),this.cierrecajaParameterGeneral,this.cierrecajaReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CierreCajaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tEvaluacionProveedorBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.evaluacionproveedor,new Object(),this.evaluacionproveedorParameterGeneral,this.evaluacionproveedorReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tEvaluacionProveedorBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.evaluacionproveedor,new Object(),this.evaluacionproveedorParameterGeneral,this.evaluacionproveedorReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,EvaluacionProveedorConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tString get=textField.getText();\r\n\t\t\t\t\t\ttextField_1.setText(get);\r\n\t\t\t\t\t}", "public void sukurkLanga() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n e.printStackTrace();\n }\n setTitle(\"Prisijungimas\");\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setSize(320, 360);\n setLocationRelativeTo(null);\n contentPane = new JPanel();\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n setContentPane(contentPane);\n contentPane.setLayout(null);\n\n txtVardas = new JTextField();\n txtVardas.addKeyListener(new KeyAdapter() {\n public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n Prisijungimas();\n }\n }\n });\n txtVardas.setBackground(new Color(255, 255, 255));\n txtVardas.setBounds(78, 77, 111, 30);\n contentPane.add(txtVardas);\n txtVardas.setColumns(10);\n\n lblVardas = new JLabel(\"Vardas\");\n lblVardas.setBounds(105, 43, 47, 30);\n contentPane.add(lblVardas);\n\n btnPrisijungti = new JButton(\"Prisijungti\");\n btnPrisijungti.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Prisijungimas();\n }\n });\n btnPrisijungti.setBounds(88, 191, 89, 23);\n contentPane.add(btnPrisijungti);\n\n pswdLaukelis = new JPasswordField();\n pswdLaukelis.addKeyListener(new KeyAdapter() {\n public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n Prisijungimas();\n }\n }\n });\n pswdLaukelis.setBounds(78, 152, 111, 28);\n contentPane.add(pswdLaukelis);\n\n JLabel lblSlaptaodis = new JLabel(\"Slaptažodis\");\n lblSlaptaodis.setBounds(99, 118, 64, 23);\n contentPane.add(lblSlaptaodis);\n\n progressBar = new JProgressBar(0, 100);\n progressBar.setBounds(0, 308, 304, 14);\n progressBar.setVisible(false);\n contentPane.add(progressBar);\n\n Krovimosi_tekstas = new JLabel(\"Siunčiama serveriui..\");\n Krovimosi_tekstas.setHorizontalAlignment(SwingConstants.CENTER);\n Krovimosi_tekstas.setBounds(35, 283, 219, 14);\n Krovimosi_tekstas.setVisible(false);\n contentPane.add(Krovimosi_tekstas);\n }", "private void GetAllInfo() {\n\t\tjetztStunde = Integer.parseInt(jetztStdTxt.getText().toString());\n\t\tjetztMinute = Integer.parseInt(jetztMinTxt.getText().toString());\n\n\t\tschlafStunde = Integer.parseInt(schlafStdTxt.getText().toString());\n\t\tschlafMinute = Integer.parseInt(schlafMinTxt.getText().toString());\n\n\t}", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTipoDireccionBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tipodireccion,new Object(),this.tipodireccionParameterGeneral,this.tipodireccionReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tTipoDireccionBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tipodireccion,new Object(),this.tipodireccionParameterGeneral,this.tipodireccionReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDireccionConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPagosAutorizadosBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.pagosautorizados,new Object(),this.pagosautorizadosParameterGeneral,this.pagosautorizadosReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tPagosAutorizadosBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.pagosautorizados,new Object(),this.pagosautorizadosParameterGeneral,this.pagosautorizadosReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PagosAutorizadosConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void addTextFieldsAndLabels(){\n this.add(this.firstLabel);\n this.add(firstNameField);\n this.add(this.secondLabel);\n this.add(lastNameField);\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n String texto = tf.getText();\r\n //lo seteo como texto en el Label\r\n lab.setText(texto);\r\n //refresco los componentes de la ventana\r\n validate();\r\n //combierto a mayuscula el texto del textfield\r\n tf.setText(texto.toUpperCase());\r\n //lo selecciono todo\r\n tf.selectAll();\r\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLibroContableBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.librocontable,new Object(),this.librocontableParameterGeneral,this.librocontableReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tLibroContableBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.librocontable,new Object(),this.librocontableParameterGeneral,this.librocontableReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LibroContableConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public FrmTelefone() {\n initComponents();\n // preencherTabela(\"\\\"select * from telefone order by id_telefone\\\")\");\n try {\n MaskFormatter form = new MaskFormatter(\"(##)####-####\");\n jFormattedTextFieldNum.setFormatterFactory(new DefaultFormatterFactory(form));\n \n \n \n } catch (ParseException ex) {\n JOptionPane.showMessageDialog(null, \"erros ao mostrar dados\" + ex); \n \n }\n }", "public void setwoorden()\n {\n String[] woorden = taInput.getText().split(\" |\\n\");\n \n for (int i = 0; i < woorden.length; i++) {\n if(!woorden[i].isEmpty())\n {\n AllText.add(woorden[i]); \n }\n } \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n nameHomelbl = new javax.swing.JLabel();\n cittaHomelbl = new javax.swing.JLabel();\n logoHomelbl = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n nameGuestlbl = new javax.swing.JLabel();\n cittaGuestlbl = new javax.swing.JLabel();\n logoGuestlbl = new javax.swing.JLabel();\n pointsHometxt = new javax.swing.JTextField();\n pointsGuesttxt = new javax.swing.JTextField();\n updatebtn = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Squadra casa: \");\n\n jLabel2.setText(\"Città: \");\n\n jLabel3.setText(\"Logo: \");\n\n jLabel4.setText(\"Punti Casa: \");\n\n jLabel8.setText(\"Squadra Ospite:\");\n\n jLabel9.setText(\"Città: \");\n\n jLabel10.setText(\"Logo:\");\n\n jLabel11.setText(\"Punti Ospite: \");\n\n updatebtn.setText(\"Modifica\");\n updatebtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n updatebtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cittaHomelbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nameHomelbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(logoHomelbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n .addGap(20, 20, 20)\n .addComponent(pointsHometxt, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(110, 110, 110)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(pointsGuesttxt, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(logoGuestlbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cittaGuestlbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nameGuestlbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(updatebtn, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(256, 256, 256))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nameGuestlbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nameHomelbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cittaGuestlbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)\n .addComponent(cittaHomelbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(logoHomelbl, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(logoGuestlbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)\n .addComponent(pointsHometxt, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pointsGuesttxt, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(updatebtn, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n );\n\n pack();\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLiquidacionImpuestoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.liquidacionimpuestoimpor,new Object(),this.liquidacionimpuestoimporParameterGeneral,this.liquidacionimpuestoimporReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tLiquidacionImpuestoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.liquidacionimpuestoimpor,new Object(),this.liquidacionimpuestoimporParameterGeneral,this.liquidacionimpuestoimporReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LiquidacionImpuestoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tUtilidadTipoPrecioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.utilidadtipoprecio,new Object(),this.utilidadtipoprecioParameterGeneral,this.utilidadtipoprecioReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tUtilidadTipoPrecioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.utilidadtipoprecio,new Object(),this.utilidadtipoprecioParameterGeneral,this.utilidadtipoprecioReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,UtilidadTipoPrecioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "private void modificarFuente(){\n\n if(campoDeTexto.getText().toString().length()>5){\n Editable txtEditable = campoDeTexto.getText();\n\n //modifica el tipo de fuente\n txtEditable.setSpan(new TypefaceSpan(\"sans-serif-condensed\"),0, txtEditable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n //modifica el color de la fuente\n txtEditable.setSpan(new ForegroundColorSpan(Color.YELLOW),0, txtEditable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n //modifica el estilo de fuente\n txtEditable.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), 0, txtEditable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n //modifica el tamaño de la fuente. El valor boleano es para indicar la independencia del tamaño agregado\n //con respecto a la densida depixeles del dispositivo\n txtEditable.setSpan(new AbsoluteSizeSpan(30, true), 0, txtEditable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }", "public void flagg() {\n if (trykketPaa) {\n return;\n }\n // Setter ruten som flagget, dersom den ikke var flagget fra foer\n if (!getText().equals(\"#\")) {\n setText(\"#\");\n flagget = true;\n bombeTeller.oppdaterAntBomber(-1); // Minsker antall bomber\n }\n // Fjerner flaggingen, dersom ruten var flagget fra foer\n else {\n flagget = false;\n setText(\" \");\n bombeTeller.oppdaterAntBomber(+1); // Oeker ant bomber\n }\n }", "String getTextin_adresse() {\n return in_adresse.getText() ; //To change body of generated methods, choose Tools | Templates.\n }", "@FXML\r\n private void deduPointsEn() {\r\n int f1 = Integer.parseInt(engineering.getText());\r\n if (f1 > 0) {\r\n int f2 = f1 - 1;\r\n engineering.setText(String.valueOf(f2));\r\n diffPoint++;\r\n point.setText(\"You have \" + diffPoint + \" points\");\r\n }\r\n }", "@Override\r\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\r\n }", "private void raze_it_to_the_ground() {\n \tinitialNumberField.replace(0, initialNumberField.toString().length(), \"0\");\n\t\tnumbersField.setText(initialNumberField.toString());\n \t}", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFacturaPuntoVentaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.facturapuntoventa,new Object(),this.facturapuntoventaParameterGeneral,this.facturapuntoventaReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tFacturaPuntoVentaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.facturapuntoventa,new Object(),this.facturapuntoventaParameterGeneral,this.facturapuntoventaReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,FacturaPuntoVentaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "private void srediFormu() {\n NumberFormatter formatter = new NumberFormatter(NumberFormat.getInstance());\n\n formatter.setMinimum(1);\n formatter.setMaximum(10000000);\n formatter.setAllowsInvalid(false);\n\n jftxtMinVrednost.setFormatterFactory(new DefaultFormatterFactory(formatter));\n jftfMaksVrednost.setFormatterFactory(new DefaultFormatterFactory(formatter));\n\n List<PoslovniPartner> lpp = new ArrayList<>();\n try {\n lpp = Kontroler.vratiInstancu().vratiPoslovnePartnere();\n } catch (Exception ex) {\n ex.printStackTrace();\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"Greška\", JOptionPane.ERROR_MESSAGE);\n }\n jcbPartner.setModel(new DefaultComboBoxModel(lpp.toArray()));\n jcbPartner.addItem(\"Svi partneri\");\n jcbPartner.setSelectedItem(\"Svi partneri\");\n\n List<Faktura> lf = new ArrayList<>();\n try {\n lf = Kontroler.vratiInstancu().vratiFakture();\n } catch (Exception ex) {\n ex.printStackTrace();\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"Greška\", JOptionPane.ERROR_MESSAGE);\n }\n jtblFakture.setModel(new FakturaTableModel(lf));\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTablaAmortiDetalleBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tablaamortidetalle,new Object(),this.tablaamortidetalleParameterGeneral,this.tablaamortidetalleReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tTablaAmortiDetalleBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tablaamortidetalle,new Object(),this.tablaamortidetalleParameterGeneral,this.tablaamortidetalleReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TablaAmortiDetalleConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "@Override\n public void afterTextChanged(Editable s) {\n //s.toString();\n if (!s.toString().isEmpty()) {\n czyNazwisko = true;\n } else\n czyNazwisko = false;\n pokazOblicz();\n }", "private void setzeBeschriftungen(){ \t\t\t\n\t\tif (jRBtnLinie.isSelected()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn linie gewählt ist: ..\n\t\t\tjLPositionX1.setText(\"Startpunkt x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. verschiedene labels für die textfelder anpassen für parameter-werte (x1,y1,x2,y2) [y1 bleibt immer gleich]\n\t\t\tjLPositionX2.setText(\"Endpunkt x:\");\n\t\t\tjLPositionY2.setText(\" y:\");\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn rechteck, oval, kreis:..\n\t\t\tjLPositionX1.setText(\"Position x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ... labels anpassen auf parameter-werte (x1, y1, breite, höhe) [y1 bleibt immer gleich]\t\t\t\t\n\t\t\tjLPositionX2.setText(\"Breite:\");\n\t\t\tjLPositionY2.setText(\"Höhe:\");\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField3 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n sisi = new javax.swing.JTextField();\n tinggi = new javax.swing.JTextField();\n hasil = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n luas = new javax.swing.JTextField();\n keliling = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n ta = new javax.swing.JTextArea();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n sisiKanan = new javax.swing.JTextField();\n sisiKiri = new javax.swing.JTextField();\n sisiAtas = new javax.swing.JTextField();\n\n jTextField3.setText(\"jTextField3\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel1.setText(\"Jajar Genjang\");\n\n jLabel2.setText(\"Masukkan Sisi Alas \");\n\n jLabel3.setText(\"Masukkan Tinggi \");\n\n sisi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sisiActionPerformed(evt);\n }\n });\n sisi.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n sisiKeyTyped(evt);\n }\n });\n\n tinggi.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tinggiKeyTyped(evt);\n }\n });\n\n hasil.setText(\"Hasil\");\n hasil.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hasilActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Keliling\");\n\n jLabel5.setText(\"Luas\");\n\n luas.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n luasActionPerformed(evt);\n }\n });\n\n keliling.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n kelilingActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Penjelasan\");\n\n ta.setColumns(20);\n ta.setRows(5);\n jScrollPane1.setViewportView(ta);\n\n jLabel7.setText(\"Masukkan Sisi Kanan \");\n\n jLabel8.setText(\"Masukkan Sisi Kiri \");\n\n jLabel9.setText(\"Masukkan Sisi Atas \");\n\n sisiKanan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sisiKananActionPerformed(evt);\n }\n });\n sisiKanan.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n sisiKananKeyTyped(evt);\n }\n });\n\n sisiKiri.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n sisiKiriKeyTyped(evt);\n }\n });\n\n sisiAtas.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sisiAtasActionPerformed(evt);\n }\n });\n sisiAtas.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n sisiAtasKeyTyped(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(68, 68, 68)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(sisiKiri)\n .addComponent(tinggi, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n .addComponent(keliling, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n .addComponent(luas, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n .addComponent(sisi, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n .addComponent(hasil, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sisiKanan)\n .addComponent(sisiAtas)))\n .addGroup(layout.createSequentialGroup()\n .addGap(210, 210, 210)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel6))))\n .addGap(0, 71, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel8)\n .addComponent(jLabel9))\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(sisi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(sisiKanan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(sisiKiri, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(sisiAtas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(tinggi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addComponent(hasil)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(keliling, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(luas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }", "private void setupEditTexts() {\n EditText paino = findViewById(R.id.etWeight);\n EditText alaPaine = findViewById(R.id.etLowerBP);\n EditText ylaPaine = findViewById(R.id.etUpperBP);\n\n //Set the input filters\n paino.setFilters(new InputFilter[] { new InputFilterMinMax(0f, 999f)});\n alaPaine.setFilters(new InputFilter[] { new InputFilterMinMax(1, 999)});\n ylaPaine.setFilters(new InputFilter[] { new InputFilterMinMax(1, 999)});\n\n //Set listeners for the edit texts on when the user clicks something else on the screen while typing\n //When clicked outside, the keyboard closes\n paino.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n alaPaine.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n ylaPaine.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTipoDetalleMovimientoInventarioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tipodetallemovimientoinventario,new Object(),this.tipodetallemovimientoinventarioParameterGeneral,this.tipodetallemovimientoinventarioReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tTipoDetalleMovimientoInventarioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tipodetallemovimientoinventario,new Object(),this.tipodetallemovimientoinventarioParameterGeneral,this.tipodetallemovimientoinventarioReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void loadTextBoxs(){\n txtIndice.setText(String.valueOf(indice));\n txtDni.setText(String.valueOf(dni[indice]));\n txtNombre.setText(nombre[indice]);\n txtApellido.setText(apellido[indice]);\n txtDireccion.setText(direccion[indice]);\n txtTelefono.setText(telefono[indice]);\n txtFechaNacimiento.setText(fNacimiento[indice]);\n }", "int getContents(JTextField tf) {\r\n\t\tString contents = tf.getText();\r\n\t\tif (contents == null || contents.isEmpty()) {\r\n\t\t\t\r\n\t\t\tif (!tf.hasFocus()) {\r\n\t\t\t\ttf.setText(\"00\");\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn Integer.parseInt(contents);\r\n\t}", "protected void updateForm() {\n //Set the number of contacts\n Long numContacts = myContactList.rowCount();\n this.textContactWorld.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Africa\");\n this.textContactAfrica.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Americas\");\n this.textContactAmericas.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Asia\");\n this.textContactAsia.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Australasia\");\n this.textContactAustralasia.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Europe\");\n this.textContactEurope.setText(String.valueOf(numContacts));\n\n }", "@Override\n public void afterTextChanged(Editable s) {\n checkDatos();\n }", "@Override\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n btnGoedkeuren = new javax.swing.JButton();\n btnAfkeuren = new javax.swing.JButton();\n txtTotaalBedragIncl = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtTotaalBedragExcl = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n txtKortingsbedrag = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n formMouseMoved(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Betaling\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setText(\"Het totale bedrag van uw order bedraagt (incl. korting):\");\n\n btnGoedkeuren.setBackground(new java.awt.Color(0, 0, 0));\n btnGoedkeuren.setForeground(new java.awt.Color(255, 255, 255));\n btnGoedkeuren.setText(\"Goedkeuren\");\n btnGoedkeuren.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGoedkeurenActionPerformed(evt);\n }\n });\n\n btnAfkeuren.setBackground(new java.awt.Color(0, 0, 0));\n btnAfkeuren.setForeground(new java.awt.Color(255, 255, 255));\n btnAfkeuren.setText(\"Afkeuren\");\n btnAfkeuren.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAfkeurenActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setText(\"Het totale bedrag van uw order bedraagt (excl. korting):\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setText(\"Totale toegekende korting:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAfkeuren, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnGoedkeuren, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(102, 102, 102)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtTotaalBedragIncl, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)\n .addComponent(txtTotaalBedragExcl)\n .addComponent(txtKortingsbedrag))))\n .addContainerGap(52, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtTotaalBedragExcl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(13, 13, 13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtKortingsbedrag, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtTotaalBedragIncl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnGoedkeuren, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAfkeuren, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20))\n );\n\n pack();\n }", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TablaAmortiDetalleConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "@Override //the numbers should only be set when the text field is focused\n public void handle(ActionEvent event) {\n String extractfrombutton = \"7\";\n if (inidep1.isFocused()) {\n inidep1.setText(inidep1.getText()+ extractfrombutton);\n }\n else if (intrate1.isFocused()) {\n intrate1.setText(intrate1.getText() + extractfrombutton);\n }\n else if (time1.isFocused()) {\n time1.setText(time1.getText() + extractfrombutton);\n }\n else if (futval1.isFocused()) {\n futval1.setText(futval1.getText() + extractfrombutton);\n }\n else if (inidep2.isFocused()) {\n inidep2.setText(inidep2.getText() + extractfrombutton);\n }\n else if (intrate2.isFocused()) {\n intrate2.setText(intrate2.getText() + extractfrombutton);\n }\n else if (time2.isFocused()) {\n time2.setText(time2.getText() + extractfrombutton);\n }\n else if (moncon.isFocused()) {\n moncon.setText(moncon.getText() + extractfrombutton);\n }\n else if (futval2.isFocused()) {\n futval2.setText(futval2.getText() + extractfrombutton);\n }\n else if (loanamt.isFocused()) {\n loanamt.setText(loanamt.getText() + extractfrombutton);\n }\n else if (intrate3.isFocused()) {\n intrate3.setText(intrate3.getText() + extractfrombutton);\n }\n else if (time3.isFocused()) {\n time3.setText(time3.getText() + extractfrombutton);\n }\n else if (monpay.isFocused()) {\n monpay.setText(monpay.getText() + extractfrombutton);\n }\n else if (noofpay.isFocused()) {\n noofpay.setText(noofpay.getText() + extractfrombutton);\n }\n else if (assetprice.isFocused()) {\n assetprice.setText(assetprice.getText() + extractfrombutton);\n }\n else if (loanterm.isFocused()) {\n loanterm.setText(loanterm.getText() + extractfrombutton);\n }\n else if (intrate4.isFocused()) {\n intrate4.setText(intrate4.getText() + extractfrombutton);\n }\n else if (monpay2.isFocused()) {\n monpay2.setText(monpay2.getText() + extractfrombutton);\n }\n }", "@Override\n\t\tpublic void afterTextChanged(Editable arg0) {\n\t\t\tdata.get(position).setJiage(viewHolder.et_jiage.getText().toString());\n\t\t\tsavemodel.SaveMod(data);\n\t\t}", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CostoGastoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void nastav() {\n\t\ttabulkaZiak.setMaxWidth(velkostPolickaX * 3 + 2);\n\t\ttabulkaZiak.setPlaceholder(new Label(\"Žiadne známky.\"));\n\n\t}", "public void jTextFieldChangedUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"UPDATE\");\r\n\t\t\t\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t//JTextField jTextField=null;\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tAnalisisTransaClienteBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.analisistransacliente,new Object(),this.analisistransaclienteParameterGeneral,this.analisistransaclienteReturnGeneral);\r\n\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\t//jTextField=(JTextField)evt.getSource();\r\n\t\t\t\r\n\t\t\tcontainerParent=jTextField.getParent();\r\n\t\t\t\t\t\r\n\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\r\n\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t) {\t\t\t\t\t\r\n\t\t\t\tesControlTabla=true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tAnalisisTransaClienteBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.TEXTBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.analisistransacliente,new Object(),this.analisistransaclienteParameterGeneral,this.analisistransaclienteReturnGeneral);\r\n\t\t\t*/\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,AnalisisTransaClienteConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public CARGOS_REGISTRO() {\n initComponents();\n InputMap map2 = txtNombre.getInputMap(JTextField.WHEN_FOCUSED); \n map2.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap maps = TxtSue.getInputMap(JTextField.WHEN_FOCUSED); \n maps.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap map3 = txtFun.getInputMap(JTextField.WHEN_FOCUSED); \n map3.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n this.setLocationRelativeTo(null);\n this.txtFun.setLineWrap(true);\n this.lblId.setText(Funciones.extraerIdMax());\n\t\tsexo.addItem(\"Administrativo\");\n\t\tsexo.addItem(\"Operativo\");\n sexo.addItem(\"Tecnico\");\n sexo.addItem(\"Servicios\");\n \n }", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,EvaluacionProveedorConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "@Override\n\t\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t\teqChanged=true;\n\t\t\t\t}", "public void jTextFieldInsertUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"INSERT\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,UtilidadTipoPrecioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }", "public void bindTextFields() {\n // bind character stats with TestFields\n healthTxt.textProperty().bind(world.getCharacterHealth());\n goldTxt.textProperty().bindBidirectional(world.getCharacterGold(), new NumberStringConverter() {\n });\n expTxt.textProperty().bindBidirectional(world.getCharacterExp(), new NumberStringConverter() {\n });\n }" ]
[ "0.66655546", "0.6488147", "0.6432672", "0.63280755", "0.62172365", "0.62144643", "0.6198421", "0.6160009", "0.6118574", "0.610062", "0.60167384", "0.5977671", "0.5925937", "0.5852689", "0.5834302", "0.58105975", "0.57949346", "0.5793086", "0.57926655", "0.5786431", "0.5785994", "0.5780328", "0.577474", "0.5768994", "0.57686263", "0.5762235", "0.5761256", "0.57568234", "0.5754579", "0.5751558", "0.57454354", "0.5745315", "0.57446134", "0.57381755", "0.57379365", "0.57361823", "0.5735611", "0.57324183", "0.5730742", "0.572283", "0.57213664", "0.572118", "0.57180655", "0.5717567", "0.57150817", "0.5690311", "0.5685607", "0.5678062", "0.5671472", "0.5667621", "0.5667004", "0.56617224", "0.56575215", "0.56411177", "0.5632622", "0.5621807", "0.5620222", "0.56197184", "0.5619313", "0.56135345", "0.5611705", "0.56110567", "0.56018203", "0.56008136", "0.5596617", "0.5593427", "0.55931544", "0.5588182", "0.5585799", "0.5584568", "0.5581864", "0.55770177", "0.55740976", "0.5563108", "0.5562387", "0.55622053", "0.5555639", "0.5545409", "0.5544438", "0.55439717", "0.5541275", "0.55371475", "0.55338943", "0.5532484", "0.5529608", "0.552768", "0.55143064", "0.5512765", "0.55069077", "0.5505824", "0.5502316", "0.5499066", "0.5496593", "0.5496163", "0.54958904", "0.5489", "0.5482576", "0.5481223", "0.5479598", "0.54795593", "0.5477921" ]
0.0
-1
Constructor, take a model in parameter
public MonteCarloGUI(MonteCarlo monteCarlo) throws IOException { super(); // Model this.monteCarlo = monteCarlo; // View String title; if (monteCarlo.getClass().equals(MonteCarloSingleThread.class)) title = "Monte Carlo Single Thread"; else title = "Monte Carlo Multi Thread"; this.setTitle(title); this.setBoxes((String) select.getSelectedItem()); this.setSize(600, 400); this.setResizable(false); // Center window Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize(); int x = (int) ((dimension.getWidth() - this.getWidth()) / 2); int y = (int) ((dimension.getHeight() - this.getHeight()) / 2); this.setLocation(x, y); this.setDefaultCloseOperation(EXIT_ON_CLOSE); this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Model(){}", "public Model() {\n\t}", "public Model() {\n\t}", "public Model() {\n }", "public Model() {\n }", "public Model() {\n }", "public Model() {\n\n }", "public Controller(Model model) {\n this.model = model; // Initializing the Model\n }", "public ViewModel(IModel model) {\n this.model = model;\n }", "public Logic(Model m){\r\n model = m;\r\n }", "public Carmodel() {\n this(\"CarModel\", null);\n }", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public ModelBolting(){}", "public AbstractJMFXModel(M model) {\n\t\tthis.model = model;\n\t}", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public UserModel()\r\n\t{\r\n\t}", "InstanceModel createInstanceOfInstanceModel();", "Build_Model() {\n\n }", "public OntologyMapper(Model model) {\n\tthis.model = model;\n }", "public UserModel() {\n }", "CsticModel createInstanceOfCsticModel();", "public Finder(BookModel model) {\n this(model, 0);\n }", "public Model(DataHandler data){\n //assign the data parameter to the instance\n //level variable data. The scope of the parameter\n //is within the method and that is where the JVM \n //looks first for a variable or parameter so we \n //need to specify that the instance level variable \n //is to be used by using the keyword 'this' followed \n //by the '.' operator.\n this.data = data;\n }", "public Model(Controller controller)\r\n {\r\n // initialise instance variables\r\n setFiles(new ArrayList<>());\r\n setController(controller);\r\n }", "public Tabel(SearchModel model) {\n\t\tsuper(model.getData(), model.getHeader());\n\t\tdataModel = model;\n\t}", "public InvoiceModel() {\n \n }", "void setModel(Model model);", "public VersionModel() {\n }", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "public ModelResource() {\n }", "public UserModel()\n\t{}", "public void initializeModel(SongModel songmodel)\n {\n this.sm = songmodel;\n }", "public Model(int id) {\n\t\tthis.id = id;\n\t}", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "void setModel(Model m);", "public personnelMedicalModel(){\n\n }", "public TaskBoardModel() {\n\n }", "public ChatModel() {\n\t}", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "public ModelValidator (Model model, String className, \n\t\tClassLoader classLoader, ResourceBundle bundle)\n\t{\n\t\t_model = model;\n\t\t_className = className;\n\t\t_classLoader = classLoader;\n\t\t_messages = bundle;\n\t}", "public Finder(BookModel model, int chapter) {\n //initialize instance variable\n this.testament = model.getTestament();\n this.chapter = chapter;\n this.bmodel = model;\n }", "public TableDefinition(Class<T> model){\n this.singleton = this;\n this.model = model;\n try {\n OBJECT = Class.forName(model.getName());\n createTableDefinition();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Generated\n public NewsModel() {\n }", "Model() {\r\n this.observers = new ArrayList<Observer>();\r\n\r\n init();\r\n }", "void create(Model model) throws Exception;", "private void initializeModel() {\n\t\t\n\t}", "protected abstract IModel<T> createModel(T object);", "public FareModel() {\n }", "PriceModel createInstanceOfPriceModel();", "CubeModel(CubeModel cube) {\n initialize(cube);\n\n }", "@Override\r\n\tpublic void initModel(Model model) {\n\t\tsuper.initModel(model);\r\n Filter filter = null;\r\n // ZAP: Added type argument.\r\n List<Filter> filters = filterFactory.getAllFilter();\r\n\t\tfor (int i=0; i<filters.size(); i++) {\r\n // ZAP: Removed unnecessary cast.\r\n filter = filters.get(i);\r\n try {\r\n filter.init(model);\r\n } catch (Exception ignore) {\r\n \tlog.warn(\"Error initializing filter. Continuing.\", ignore);\r\n }\r\n }\r\n\t}", "DataGenModel()\n {\n }", "@Override\r\n public void setModel(String model) {\n }", "public void _setModel(T model) {\n _model = model;\n }", "public ModelManagerImpl() {\n this( null );\n }", "public LoginModel() {\n }", "public OpenGLModel() {\n\n\n\t}", "public View(Model m) {\r\n\t\tsuper();\r\n\t\tsetBackground(Color.black); // Setting background color.\r\n\t\tthis.model = m;\r\n\t}", "public Model(Name alias) {\n this(alias, MODEL);\n }", "public WorldModel(){\t\n\t}", "public Model(ThingNode thing, ThingNode world)\n {\n this.thing = thing;\n this.world = world;\n }", "public static Model newOf(Model model) {\n\t\tModel newModel = Model.newOf();\n\t\tnewModel.setTitle(model.getTitle());\n\t\tnewModel.setTableCode(model.getTableCode());\n\t\tnewModel.setDescription(model.getDescription());\n\t\treturn newModel;\n\t}", "UserModel()\n {/*Used for Gson*/}", "public ObstacleController(ObstacleModel model){\n this.model = model;\n }", "public LeaveModel() {\n }", "void set(Model model);", "public void setModel(Model m){\r\n model = m;\r\n }", "public AnnualLease(AnnualLeaseModel model)\t\t{ super(model);\t\t}", "public UserModel(){\n ID = 0; // The user's ID, largely used in conjuction with a database\n firstName = \"fname\"; //User's first name\n lastName = \"lname\"; // User's last name\n password= \"pass\"; ///User password\n username = \"testuser\"; //Valid email for user\n role = 0; //Whether the user is a typical user or administrator\n status = 0; //Whether the user is active or disabled\n }", "public void setModel(Model model) {\n this.model = model;\n }", "public void setModel(Model model) {\n this.model = model;\n }", "public void setModel(Model model) {\n this.model = model;\n }", "public MySqlModelBean() {\r\n \r\n }", "public TargetGeneratorModel()\n {\n }", "public M create(P model);", "public VancarrierModel() {\r\n\t\tthis(null, \"VCModel\", true, true);\r\n\t}", "public UnitTableModel(IMsoModelIf model)\r\n\t{\r\n\t\t// forward\r\n\t\tsuper(IUnitIf.class,NAMES,CAPTIONS,false);\r\n\r\n\t\t// install model\r\n\t\tconnect(model,IUnitIf.ALL_SELECTOR,IUnitIf.TYPE_AND_NUMBER_COMPARATOR);\r\n\r\n\t\t// load units from model\r\n\t\tload(model.getMsoManager().getCmdPost().getUnitList());\r\n\r\n\t}", "public void setModel(Model model) {\n petal_model = model;\n }", "public void setModel(String model)\n {\n this.model = model;\n }", "public WeightingModel(){}", "public void initialize(Model model){\r\n\t\tArrayList<String> elements = new ArrayList<String>();\r\n\t\tfor(int i = 0; i < model.getElements().size(); i++){\r\n\t\t\telements.add(model.getElements().get(i).getId());\r\n\t\t}\r\n\t\t\r\n\t\tFeature base = new Feature(\"base\", \"mandatory\", \"root\", elements);\r\n\t\tthis.mandatoryFeatures.add(base);\r\n\t\tFeatureGroup variants = new FeatureGroup(\"variants\", \"alternative\", \"root\");\r\n\t\tthis.alternativeFeatureGroup.add(variants);\r\n\t\t\r\n\t\t//New 02/12/201/\r\n\t\tFeature newVariant = new Feature(model.getId()+\"_Variant\", \"variant\", this.alternativeFeatureGroup.get(0).getId());\r\n\t\tthis.addVariant(newVariant);\r\n\t\t//-New 02/12/201/\r\n\t}", "public <T extends BaseSlingModel> void setModel(final T model) {\n this.model = model;\n }", "public void setModel(String model) {\r\n this.model = model;\r\n }", "PriceSummaryModel createInstanceOfPriceSummaryModel();", "private CardExchangeModel() {\n\t}", "public ModelSourceFile() {\n\t\t\n\t}", "public Linearmodel() {\n this(DSL.name(\"LinearModel\"), null);\n }", "@Override\n\t\tpublic void setModel(int model) {\n\t\t\t\n\t\t}", "public HttpBuilder<E,T> setModel (E model)\n\t{\n\t\tthis.model = model;\n\t\treturn this;\n\t}", "public void setModel(String model) {\n this.model = model;\n }", "public void setModel(String model) {\r\n this.model = Objects.requireNonNull(model);\r\n }", "public UseCaseItem() {\n delegate = new MyModel.Builder().build();\n }", "public Carmodel(String alias) {\n this(alias, CARMODEL);\n }", "public Model() {\r\n\t\t\tsuper();\r\n\t\t\tdao=new SerieADAO();\r\n\t\t\tthis.mapSeason=new HashMap<>();\r\n\t\t\tthis.mapTeam=new HashMap<>();\r\n\t\t\tthis.mapTeamBySeason=new HashMap<>();\r\n\t\t\tthis.mapMatch=new HashMap<>();\r\n\t\t\tthis.mapMatchBySeason=new HashMap<>();\r\n\r\n\t\r\n\t\t}", "public MusicModel() {\n this(90000);\n }" ]
[ "0.7780094", "0.74697536", "0.74697536", "0.74601877", "0.74601877", "0.74601877", "0.7405371", "0.7378059", "0.72711504", "0.7225472", "0.71706635", "0.7137861", "0.69676495", "0.6927845", "0.6875502", "0.6875502", "0.6875502", "0.6875502", "0.6875502", "0.6875502", "0.6875502", "0.6839401", "0.6814872", "0.68146616", "0.67836785", "0.6768934", "0.67686313", "0.66789645", "0.66762567", "0.66686916", "0.6665879", "0.6622529", "0.6544119", "0.65350085", "0.65293443", "0.6526854", "0.6525877", "0.6454769", "0.6421363", "0.6417655", "0.63920814", "0.6388526", "0.6381729", "0.6376563", "0.6363322", "0.6362803", "0.63607514", "0.63602364", "0.634114", "0.6340936", "0.6335728", "0.63350993", "0.63341534", "0.63285744", "0.6325173", "0.6313687", "0.63127005", "0.6309497", "0.6302433", "0.6295972", "0.6292422", "0.6288468", "0.6266232", "0.62616634", "0.62597686", "0.6244352", "0.62422824", "0.62342674", "0.62270445", "0.62095594", "0.619229", "0.6184357", "0.6175744", "0.61741716", "0.61628973", "0.6161405", "0.6161405", "0.6161405", "0.61594534", "0.6152704", "0.6151531", "0.6150805", "0.613948", "0.61184376", "0.61183107", "0.6115998", "0.6105196", "0.60902", "0.60859764", "0.60778564", "0.6075481", "0.607302", "0.60574067", "0.60559404", "0.60552394", "0.6049379", "0.60492426", "0.60471064", "0.6034814", "0.602296", "0.6022153" ]
0.0
-1
Listener, used as a controller
public void actionPerformed(ActionEvent event) { if (event.getActionCommand().equals("comboBoxChanged")) { this.setBoxes((String) select.getSelectedItem()); } else if (event.getActionCommand().equals("Start")) { t = new Thread(this); t.start(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tpublic void getListener(){\n\t}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "public ASListener(){\n \t\treload();\n \t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\n\tpublic void setListener() {\n\n\t}", "private void setListener() {\n\t}", "@Override\r\n public void AddListener(IController controller) {\r\n this.controller = controller;\r\n }", "@Override\n\tprotected void initListener() {\n\n\t}", "@Override\n\tpublic void staticByViewListener() {\n\t\t\n\t}", "public interface Listener {}", "protected abstract void startListener();", "@Override\r\n\tpublic void initListener() {\n\r\n\t}", "private void initListener() {\n }", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "void pharmacyListener(){\n \n }", "@Override\r\n\tprotected void initListener() {\n\t\tsuper.initListener();\r\n\t}", "@Override\r\n public void notifyEvent(ControllerEvent event) {\n \r\n }", "interface ViewListener extends OnToolBarNavigationListener {\n\n /**\n * On build queue\n *\n * @param isPersonal - Is personal flag\n * @param queueToTheTop - Queue to the top\n * @param cleanAllFiles - Clean all files in the checkout directory\n */\n void onBuildQueue(boolean isPersonal,\n boolean queueToTheTop,\n boolean cleanAllFiles);\n\n /**\n * On agent selected in the dialog list\n *\n * @param agentPosition - item position which was selected\n */\n void onAgentSelected(int agentPosition);\n\n /**\n * On add parameter button click\n */\n void onAddParameterButtonClick();\n\n /**\n * On clear all parameters button click\n */\n void onClearAllParametersButtonClick();\n\n /**\n * On parameter added\n *\n * @param name - parameter name\n * @param value - parameter value\n */\n void onParameterAdded(String name, String value);\n }", "protected Listener(){super();}", "protected void inputListener(){\n }", "public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}", "public void initListener() {\n }", "public void ajaxListener() {\n System.out.println(\"!ttttt \" );\n }", "@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "@Override\r\n\tpublic void onAyuda() {\n\t\t\r\n\t}", "public void consulterEvent() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}", "public interface IEvenListener {\n}", "public FluoriteListener() {\r\n\t\tidleTimer = new IdleTimer();\r\n\t\tEHEventRecorder eventRecorder = EHEventRecorder.getInstance();\r\n//\t\tEventRecorder eventRecorder = EventRecorder.getInstance();\r\n\r\n//\t\teventRecorder.addCommandExecutionListener(this);\r\n//\t\teventRecorder.addDocumentChangeListener(this);\r\n//\t\teventRecorder.addRecorderListener(this);\r\n\t\teventRecorder.addEclipseEventListener(this);\r\n\t}", "@Override\n\tpublic void OnRequest() {\n\t\t\n\t}", "public void run()\n {\n CallerContextManager ccm = (CallerContextManager) ManagerManager.getInstance(CallerContextManager.class);\n CallerContext cc = ccm.getCurrentContext();\n CCData data = getCCData(cc);\n if ((data != null) && (data.listeners != null)) data.listeners.notifyChange(event);\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public interface Listener {\n}", "public interface Listener {\n}", "public interface theListener {\n public void itemToSend(String s);\n }", "@Override\n\tpublic void onUpdate() {\n\t\tlistener.onUpdate();\n\t}", "protected void registerListener() {\r\n\t\t// do nothing\r\n\t}", "void mo9949a(StatusListener eVar);", "public interface EnqueteListListener {\n}", "@Override\r\n\tprotected void attachListeners() {\n\t\t\r\n\t}", "private SecurityListener(){\n Bukkit.getPluginManager().registerEvents(this, SteveSus.getInstance());\n }", "public void onFrame(Controller controller) {\n\r\n\t}", "void enablButtonListener();", "private void setListeners() {\n\n }", "public ClickListener(){\n System.out.println(\"I've been attached\");\n }", "private void eventhandler() {\n\r\n\t}", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "@Override\n\tprotected void setListenerAndAdapter() {\n\t\t\n\t}", "void setListener(Listener listener);", "public interface ModelListener {\n\n /**\n * actualise le listener\n * @param src l'Object a actualiser\n */\n public void update(Object src);\n\n}", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }", "@Override\r\n public void setListener() {\n input.setInputListener(this);\r\n\r\n //bind load more listener, it will track scroll up\r\n messagesAdapter.setLoadMoreListener(this);\r\n\r\n //bind on message long click\r\n messagesAdapter.setOnMessageLongClickListener(this);\r\n\r\n //get called when a incoming message come..\r\n socketManager.getSocket().on(\"updateChat\", new Emitter.Listener() {\r\n @Override\r\n public void call(Object... args) {\r\n String messageData = (String) args[0];\r\n Gson gson = new Gson();\r\n _Message message = gson.fromJson(messageData, _Message.class);\r\n\r\n //double check for valid room\r\n if (me.isValidRoomForUser(message.getRoomName())) {\r\n\r\n //sometime nodejs can broadcast own message so check and message should be view immediately\r\n\r\n if(!message.getUser().getId().equals(me.getId())) {\r\n //save new incoming message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //check and save validity of room incoming user\r\n runOnUiThread(() -> {\r\n\r\n messagesAdapter.addToStart(message, true);\r\n });\r\n }\r\n\r\n }\r\n }\r\n });\r\n }", "public void addListener(ActionListener controller){\n\t\tbtnTests.addActionListener(controller);\n\t\tbtnTests.setActionCommand(\"con1\");\n\t\tbtnCEffects.addActionListener(controller);\t//need instance of controller before can add it as a listener \n\t\tbtnCEffects.setActionCommand(\"con2\");\n\t\n\t\tbtnRepport.setActionCommand(\"con00\");\n\t\tbtnRepport.addActionListener(controller);\t//need instance of controller before can add it as a listener \n\n\t\tbtnLogOut.setActionCommand(\"con00\");\n\t\tbtnLogOut.addActionListener(controller);\t//need instance of controller before can add it as a listener \n\n\t\tbtnProfile.setActionCommand(\"con00\");\n\t\tbtnProfile.addActionListener(controller);\t//need instance of controller before can add it as a listener \n\n\n\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "void onListenerChanged(ListenerUpdate update);", "public interface SettingsSelectedListener\t{\n\t}", "public interface GetMovieListener\n{\n void movieGet(Movie movie);\n}", "Event () {\n // Nothing to do here.\n }", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "void controlador(ActionListener ctr);", "@Override\r\n public void run() {\r\n if (event.getEventType().equals(DrivingEventType.OVERSPEED)) {\r\n overspeedStartTimestamp = System.currentTimeMillis();\r\n LocationController.addListenerToContainer(this);\r\n } else {\r\n AccelerometerValuesController.addListenerToContainer(this);\r\n }\r\n }", "private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public interface IServerResponseListener {\n\n\t/**\n\t * Receive requested \n\t * \n\t * @param requestId the same id number as the request* method that caused\n\t * \tthis request returned\n\t * @param data raw data, allways a List<RequestedModelType>\n\t */\n\tpublic void onServerResponse(int requestId, Object data);\n\t\n}", "Move listen(IListener ll);", "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "private void newListener() {\n (new Thread(this)).start();\n }", "@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }", "public MyListener() {\r\n }", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "private void announcementBtnListener() {\n announcementBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new AnnouncementsScreen(game));\n }\n });\n }", "public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }", "public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }", "public void callback() {\n }", "public interface ManagerListener extends EventListener {\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager has joined the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerAdded(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's active model has been modified\r\n\t * to reflect a new design task.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerModelModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's output has been modified to \r\n\t * reflect a new set of inputs from designers.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerOutputModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manger has left the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerRemoved(ManagerEvent e);\r\n}", "@FXML\n\tpublic void observe (ActionEvent e) {\n\t\twriteToAttendant.println(ClientAttendant.OBSERVER);\n\t\tString nickname;\n\t\ttry {\n\t\t\tnickname = readFromAttendant.readLine();\n\t\t\tint portGameHoster=Integer.parseInt(readFromAttendant.readLine());\n\t\t\tStreamingController sc=new StreamingController();\n\t\t\tsc.openObserverPane();\n\t\t\treadFromAttendant.close();\n\t\t\twriteToAttendant.close();\n\t\t\tsocketToLoginSystem.close();\n\t\t\tsc.startStreaming(portGameHoster,nickname);\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tAlert al = new Alert(AlertType.ERROR);\n\t\t\tal.setTitle(\"Error en la conexión\");\n\t\t\tal.setHeaderText(\"Problemas con el servidor\");\n\t\t\tal.setContentText(\"No se ha podido establecer conexión con el servidor de logueo.\");\n\t\t\tal.showAndWait();\n\t\t}\n\t}", "protected void onBegin() {}", "public void registerListener(GuestController controller) {\n\t\tbtnEnterGuest.addActionListener(controller);\t\n\t\tbtnMP.addActionListener(controller);//Month plus button\n\t\tbtnMM.addActionListener(controller);//month minus button\n\t\tbtnDP.addActionListener(controller);//Day plus button\n\t\tbtnDM.addActionListener(controller);//Day minus button\n\t\tbtnYP.addActionListener(controller);//Year plus button\n\t\tbtnYM.addActionListener(controller);//Year minus button \n\t\tbtnHP.addActionListener(controller);//hour plus button \n\t\tbtnHM.addActionListener(controller);//hour minus button\n\t\tbtnMinM.addActionListener(controller);//minute minus button\n\t\tbtnMinP.addActionListener(controller);//minute plus button\n\t}", "void onListeningStarted();", "public interface SingleDocumentListener {\n\t/**\n\t * Called when Modify flag of model is changed\n\t * @param model observed\n\t */\n\tvoid documentModifyStatusUpdated(SingleDocumentModel model);\n\n\t/**\n\t * Called when File path of model is changed\n\t * @param model observed\n\t */\n\tvoid documentFilePathUpdated(SingleDocumentModel model);\n}", "@Override\n\t\t\t\t\tpublic void onStart(int what, Object[] params) {\n\n\t\t\t\t\t}", "public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}", "public interface Listener {\n void onBackSettingsClicked();\n void viewStorageInfo();\n void viewBackupOptions();\n }", "void registerListeners();", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n public void onStatusChange(int status) {\n }", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "public interface Listener\n extends AbstractPasswdSafeFileDataFragment.Listener\n {\n /** Update the view */\n void updateViewPrefLicenses();\n }", "public interface KResultControllerListener {\n\n public void onSelectVisualizationMethod(String visualizationMethodName);\n\n}", "void configureButtonListener();", "private void initController() {\n frame.addWindowListener( new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n model.closeConnection();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }\n });\n }", "@Override\n protected void hookUpActionListeners() {\n }", "public void startListening(){\n\t\t// viewerFilter =\n\t\t// cv.getConfigurer().getControlFieldProvider().createFilter();\n\t\tcv.getConfigurer().getControlFieldProvider().addChangeListener(this);\n\t}" ]
[ "0.7214379", "0.7214379", "0.7133926", "0.7102954", "0.7060132", "0.7003851", "0.7003851", "0.69760585", "0.6937615", "0.67647296", "0.67424875", "0.656652", "0.64963883", "0.64713246", "0.64691424", "0.6456632", "0.64231986", "0.6389185", "0.6384882", "0.6370196", "0.6343716", "0.6310762", "0.6300389", "0.628423", "0.6235318", "0.6211419", "0.62000054", "0.61969596", "0.6130223", "0.6124885", "0.6114228", "0.6111593", "0.6108823", "0.6099092", "0.6096761", "0.6093249", "0.60882825", "0.60882825", "0.60840183", "0.6080483", "0.6080237", "0.60566485", "0.60478485", "0.60468286", "0.6044874", "0.60172707", "0.6016126", "0.6010143", "0.59902227", "0.5988595", "0.59761965", "0.59706163", "0.5969005", "0.59454346", "0.5943679", "0.59419054", "0.59418124", "0.59129447", "0.59092", "0.58994925", "0.5898947", "0.5894474", "0.5889863", "0.58891624", "0.58826226", "0.58826226", "0.58811396", "0.58715856", "0.5870693", "0.58566797", "0.5854507", "0.58541423", "0.585137", "0.5849651", "0.58462226", "0.58458644", "0.58413434", "0.5840486", "0.5840486", "0.58323485", "0.58116245", "0.58104193", "0.58094335", "0.5808819", "0.5801302", "0.58006394", "0.57962483", "0.579531", "0.5795254", "0.5793425", "0.5791512", "0.57880366", "0.57880366", "0.5780906", "0.5778211", "0.5774067", "0.5772263", "0.57716227", "0.5768617", "0.5767017", "0.5766088" ]
0.0
-1
Run the Monte Carlo algorithm in a parallel thread
@Override public void run() { startButton.setEnabled(false); try { long start = System.nanoTime(); double premium = monteCarlo.runMonteCarlo(callPutFlagField.getText(), Double.parseDouble(sField.getText()), Double.parseDouble(xField.getText()), Double.parseDouble(tField.getText()), Double.parseDouble(rField.getText()), Double.parseDouble(bField.getText()), Double.parseDouble(vField.getText()), Integer.parseInt(nStepsField.getText()), Integer.parseInt(nSimulationsField.getText())); long end = System.nanoTime(); resultArea.append("Price = " + premium + "\n"); resultArea.append("calculated in " + (end - start)/1.0e9 + " seconds\n\n"); } catch (NumberFormatException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } catch (ExecutionException e) { e.printStackTrace(); } startButton.setEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "@Override\n\tpublic void run() {\n\t\tMPMergeSortTest.MPParallelRandomGen(start, end, r, data);\n\n\t}", "public void run() {\n // solve();\n faster();\n }", "public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }", "@Override\n public void run() {\n for (int i = start; i < end; i++) {\n Node node = nodes.get(i);\n //Filter out nearby crime\n List<Crime> relatedCrimes = crimes.parallelStream()\n .filter((crime) -> Math.abs(crime.getLongitude() - node.getLongitude()) < 0.04) //1.72 miles in coordinate representation\n .filter((crime -> Math.abs(crime.getLatitude() - node.getLatitude()) < 0.04))\n .collect(Collectors.toList());\n for (Crime crime : relatedCrimes) {\n GKDE.gaussianKDEAccumulate(crime, node);\n }\n GKDE.gaussianKDEResult(node, 10);\n }\n //release the latch\n latch.countDown();\n }", "public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\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\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}", "private static void run() throws InterruptedException {\r\n\t\tif (runAllAlgorithms) {\r\n\t\t\trunAll();\r\n\t\t}\r\n\t\telse {\r\n\t\t\trunIndividual(algorithmCode, algorithmParameters);\r\n\t\t}\r\n\t}", "public void runParallel() {\n Thread[] threads = new Thread[parallelCount];\n for (int i = 1; i < parallelCount; i++) {\n final int finalI = i;\n Runnable runnable = new Runnable() {\n public void run() {\n runRepeat(finalI);\n }\n };\n threads[i] = new Thread(runnable, \"JAM-\" + i);\n System.out.println(\"Starting thread: \" + threads[i].getName());\n threads[i].start();\n }\n runRepeat(0);\n }", "public void run() {\n // Print runner description\n System.out.println(this.description);\n \n // Create a list of integers\n List <Integer> myList = makeList(30000);\n \n // Record starting time, for benchmarking\n long startTime = System.currentTimeMillis();\n \n // Execute 1000 solve syscles, to accumlate some time\n int result = 0;\n for (int i = 1; i <= 1000; i++) {\n result = runOnce(myList);\n }\n // Record ending time \n long endTime = System.currentTimeMillis();\n \n // Show the result and the execution time \n System.out.format(\"The result is %d.\\n\", result);\n System.out.println(\"Total execution time: \" + \n (endTime-startTime) + \"ms\\n\");\n }", "@Override\r\n public void run() {\r\n while(true){\r\n // para cada peça necessária para um agente montar um produto faça\r\n for(Peca peca: pecasNecessarias){\r\n System.out.println(\"\\nRetirar Peça: \"+peca.getNome());\r\n // retira peça do estoque\r\n int pecasEmEstoque = estoque.retirarPecas(peca, peca.getQuantidadeEmEstoque());\r\n // se não há peças em estoque atraza a produção e ela para\r\n if(pecasEmEstoque <= 0) {\r\n System.exit(0);\r\n }\r\n if(ConfigAgents.TEMPO_MONGAGEM > 0) { // desativa simulação se valor 0 ou negativo\r\n try {\r\n // simulação do agente montando o produto com a peça\r\n sleep(ConfigAgents.TEMPO_MONGAGEM);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(AgenteLinhaDeProducao.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n }\r\n }", "private void evaluate(ArrayList<Individual> children){\n for(Individual i: children){\n RunExperiment runExperiment = new RunExperiment(i, number_cycle + 1);\n runExperiment.run();\n// Thread myThread = new Thread(runExperiment);\n// myThread.start();\n// threads.add(myThread);\n }\n// for(Thread t: threads){\n// try{\n// t.join();\n// }\n// catch(InterruptedException e){\n// System.out.println(\"Could not join: \"+e.getMessage());\n// }\n// }\n }", "public void doRun(int numIterations, int numWorkers) throws InterruptedException, ExecutionException \n {\n List<Callable<Long>> tasks = new ArrayList<Callable<Long>>();\n for (int i = 0; i < numWorkers; ++i) \n {\n tasks.add(new WorkerWithThreads(numIterations));\n }\n \n // Run them and receive a collection of Futures\n ExecutorService exec = Executors.newFixedThreadPool(numWorkers);\n \n long start = System.currentTimeMillis();\n List<Future<Long>> results = exec.invokeAll(tasks);\n long total = 0;\n \n // Assemble the results.\n for (Future<Long> f : results)\n {\n // Call to get() is an implicit barrier. This will block\n // until result from corresponding worker is ready.\n total += f.get();\n }\n double pi = 4.0 * total / numIterations / numWorkers;\n\n long elapsed = System.currentTimeMillis() - start;\n\n System.out.println(\"Pi : \" + pi);\n System.out.println(elapsed);\n exec.shutdown();\n }", "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}", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public static void main(String[] args) {\n\t\tint[] longArr = new int[1000];\n\t\tlong startTime = System.currentTimeMillis();\n\t\tparallelAssignValues(longArr);\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"parallel method time is: \" + (endTime - startTime));\n\n\t\t// for (int i = 0; i < longArr.length; i++) {\n\t\t// System.out.print(longArr[i]);\n\t\t// }\n\n\t\tRandom random = new Random();\n\t\tint[] lista = new int[1000];\n\t\tlong startTimes = System.currentTimeMillis();\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tlista[i] = random.nextInt(500);\n\t\t}\n\t\tlong endTimes = System.currentTimeMillis();\n\t\tSystem.out.println(\"serial method time is: \" + (endTimes - startTimes));\n\n\t}", "@Override\n public void run() {\n int everyBlock = limit / THREADS;\n int end = everyBlock * threadId + 2;\n for(int i = end - everyBlock; i < end; i++){\n if(isPrime(i)){\n synchronized (primeNumbers){\n primeNumbers.add(i);\n }\n }\n }\n }", "public static void main(String[] args) throws Exception \n {\n int numIterations = numSamples / numThreads;\n new Master().doRun(numIterations, numThreads);\n }", "@Override\n\tpublic void run() {\n\t\tfor(int x = 0; x< 10; x++){\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\" -> \"+(int)(Math.random()*10));\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n List<Thread> node_threads = new ArrayList();\r\n\r\n //Add the threads that will start the nodes\r\n node_threads.add(0, new Thread() {\r\n public void run() {\r\n new Node_A();\r\n return;\r\n }\r\n });\r\n\r\n node_threads.add(1, new Thread() {\r\n public void run() {\r\n new Node_B();\r\n return;\r\n }\r\n });\r\n\r\n node_threads.add(2, new Thread() {\r\n public void run() {\r\n new Node_C();\r\n return;\r\n }\r\n });\r\n\r\n //Shuffle the collection for random start\r\n Collections.shuffle(node_threads);\r\n\r\n //Start the shuffled threads\r\n for(int i = 0; i < node_threads.size(); i++){\r\n node_threads.get(i).start();\r\n\r\n }\r\n }", "@Override\n public void run() {\n while(true){\n// double a = Math.random()*Math.random();//占用 CPU\n// System.out.println(a);\n }\n }", "public static void main(String[] args)\n\t{\n\t\tint coreCount = Runtime.getRuntime().availableProcessors();\n\t\t//Create the pool\n\t\tExecutorService ec = Executors.newCachedThreadPool(); //Executors.newFixedThreadPool(coreCount);\n\t\tfor(int i=0;i<100;i++) \n\t\t{\n\t\t\t//Thread t = new Thread(new Task());\n\t\t\t//t.start();\n\t\t\tec.execute(new Task());\n\t\t\tSystem.out.println(\"Thread Name under main method:-->\"+Thread.currentThread().getName());\n\t\t}\n\t\t\n\t\t//for scheduling tasks\n\t\tScheduledExecutorService service = Executors.newScheduledThreadPool(10);\n\t\tservice.schedule(new Task(), 10, TimeUnit.SECONDS);\n\t\t\n\t\t//task to run repetatively 10 seconds after previous taks completes\n\t\tservice.scheduleWithFixedDelay(new Task(), 15, 10, TimeUnit.SECONDS);\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tint result;\n\t\tRandom random=new Random(Thread.currentThread().getId());\n\t\twhile (true) {\n\t\t\tresult=1000/(int)(random.nextDouble()*1000000000);\n\t\t\tif (Thread.currentThread().isInterrupted()) {\n\t\t\t\tSystem.out.printf(\"%d : interrupted\\n\",Thread.currentThread().getId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args){\n\t\tint tamPool=Integer.parseInt(args[0]);\r\n\t\tSystem.out.println(\"Cuantos numero quiere lanzar?\");\r\n\t\tn=Integer.parseInt(args[1]);\r\n\t\tlong time_start, time_end;\r\n\t\tint numeros=n/tamPool;\r\n\t\tThread []hilos= new Thread[tamPool];\r\n\t\ttime_start = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Numeros: \"+numeros);\r\n\t\tint grueso=numeros;\r\n\t\t\t//ExecutorService exec = Executors.newCachedThreadPool();\r\n\t\t\tfor(int i=0;i<tamPool;++i){\r\n\t\t\t\thilos[i]= new Thread(new piParalelo(numeros));\r\n\t\t\t\thilos[i].start();\r\n\t\t\t//System.out.println(i+\" : \"+grueso);\r\n\t\t\t//exec.execute(new piParalelo(numeros));\r\n\t\t\tif((grueso+numeros)>=n)numeros=n-grueso;\r\n\t\t\telse grueso+=numeros;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\tfor(int i=0;i<tamPool;++i){\r\n\t\t\t\ttry{\r\n\t\t\t\thilos[i].join();\r\n\t\t\t\t}catch(Exception e){}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t/**try{\r\n\t\t\texec.shutdown();\r\n\t\t\texec.awaitTermination(1, TimeUnit.DAYS);\r\n\t\t\t}catch(Exception e){}*/\r\n\t\tPI=4*((double)atomico.get()/(double)n);\r\n\t\tSystem.out.println(\"La aproximacion del numero PI por montecarlo es: \"+PI);\r\n\t\ttime_end = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"the task has taken \"+ ( time_end - time_start ) +\" milliseconds\");\r\n\t\t\t\t\t\t\t}", "@Override\r\n\tprotected void compute() {\n\t\tint length = end - start + 1;\r\n\r\n\t\tif (length < 4 || length <= result.length / 4) {\r\n\r\n\t\t\trand();\r\n\r\n\t\t} else {\r\n\r\n\t\t\tint mid = (start + end + 1) >>> 1;\r\n\t\t\tMatrixRandomInit left = new MatrixRandomInit(result,ratio,start, mid - 1);\r\n\t\t\tMatrixRandomInit right = new MatrixRandomInit(result,ratio,mid, end);\r\n\r\n\t\t\tForkJoinTask<Void> leftTask = left.fork();\r\n\t\t\tForkJoinTask<Void> rightTask = right.fork();\r\n\r\n\t\t\tleftTask.join();\r\n\t\t\trightTask.join();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tForkJoinPool fjp = new ForkJoinPool(); \r\n\t\t \r\n double[] nums = new double[5000]; \r\n for (int i = 0; i < nums.length; i++) { \r\n nums[i] = (double)(((i % 2) == 0) ? i : -1); \r\n } \r\n Sum task = new Sum(nums, 0, nums.length); \r\n double summation = fjp.invoke(task); \r\n System.out.println(\"Summation \" + summation);\r\n \r\n\r\n\t}", "public static void main(String[] args) {\n long N = 10000;\n long start = System.nanoTime();\n /* == begin task == */\n Pair<Double,Double> results = computePI(N, 1001L);\n /* == end task == */\n System.out.println(\"pi: \" + results);\n long end = System.nanoTime();\n long timeNano = end - start;\n long duration = timeNano / 1000_000;\n System.out.println(\"=======================================\");\n System.out.println(\"Duration (milli-sec): \"+ Format.longToString(duration));\n\n\n// ThreadGroup tg = new ThreadGroup(\"main\");\n// System.out.println(Runtime.getRuntime().availableProcessors());\n }", "public static void main(String[] args) {\n\t\tfinal int SIZE=10000000;\n\t\tdouble[] numbers=new double[SIZE];\n\t\tfor(int i=0;i<SIZE;i++)\n\t\t\tnumbers[i]=Math.random();\n\t\tCounter counter=new Counter(numbers,0,numbers.length,new Filter(){\n\t\t\tpublic boolean accept(double x){\n\t\t\t\treturn x>0.5;\n\t\t\t}\n\t\t});\n\t\t\n\t\tForkJoinPool pool=new ForkJoinPool();\n\t\tpool.invoke(counter);\n\t\tSystem.out.println(counter.join());\n\t}", "public static void main(String[] args) {\n ExecutorService service = Executors.newCachedThreadPool();\n for (int i = 0; i < 100; i++) {\n service.submit(new Task());\n }\n System.out.println(\"Running Main\" + Thread.currentThread().getName());\n }", "@Override\n public void run() {\n if (experiment.randomSeed != -1) {\n ThreadLocalRandom.current().setSeed(experiment.randomSeed);\n }\n\n // Initialise the environment and agents\n environment.initialise();\n for (Agent agent : agents) {\n agent.initialise();\n }\n\n // Add the agents to the environment\n for (Agent agent : agents) {\n environment.add(agent);\n }\n\n // Run the experiment\n for (int update = 1, episode = 1; update <= experiment.totalUpdates; episode++) {\n // Restart the environment at the beginning of an episode\n environment.restart();\n\n // Play out an episode\n for (int turn = 1; !environment.isTerminal() && (environment.maxTurns() == 0 || turn <= environment.maxTurns()) && update <= experiment.totalUpdates; turn++, update++) {\n // Perform the next turn\n environment.performTurn();\n\n // Increment the task\n task.increment();\n\n // If evaluation point\n if (update % experiment.observationFrequency == 0) {\n evaluate(run, update, episode);\n }\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\tif(algoRuning==1){\n\t\t\tspDist.runAlgDist();\n\t\t}else{\n\t\t\tspTime.runAlgTime();\n\t\t}\n\t}", "public static void main(String... args) {\n ReentrantLock lock = new ManagedReentrantLock();\n Condition condition = lock.newCondition();\n int upto = Runtime.getRuntime().availableProcessors() * 10;\n IntStream.range(0, upto).parallel().forEach(\n i -> {\n lock.lock();\n try {\n System.out.println(i + \": Got lock, now waiting - \" +\n Thread.currentThread().getName());\n condition.awaitUninterruptibly();\n } finally {\n lock.unlock();\n }\n }\n );\n }", "public static void main(String[] args) \n\t{\n\t\tForkJoinPool fjp = ForkJoinPool.commonPool();\n\t\t//ForkJoinPool fjp = new ForkJoinPool(2);\n\t\t\n\t\tSystem.out.println(fjp.getParallelism() + \" cores executing\");\n\t\tfjp.invoke(new MyAction());\n\t\tFuture<Integer> x = fjp.submit(new MyTask());\n\t\tfjp.invoke(new MyTask());\n\t\t\n\t\tList<Callable<Integer>> tasks = new ArrayList<>();\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 1 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 2 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 3 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 4 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 5 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\tint sum = 0;\n\t\tList<Future<Integer>> futureSums = fjp.invokeAll(tasks);\n\t\tfor(Future<Integer> num: futureSums)\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tsum += num.get();\n\t\t\t} catch (InterruptedException | ExecutionException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sum is \" + sum);\n\t\t\n\t\tfjp.shutdown();\n\t\ttry {\n\t\t\tfjp.awaitTermination(30,TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void run() {\n //Create the store object\n Store store = new Store();\n\n //Populate the array of people\n for (int i = 0; i < 20; i++) {\n people.add(new Viewer(store));\n if (i < 6) { //Add buyers\n people.add(new Buyer(store));\n }\n }\n\n //Make a thread pool according to the size of people\n this.threadPoolExecutor =\n (ThreadPoolExecutor) Executors.newFixedThreadPool(people.size());\n\n //Start the life of every person\n for (Person person : this.people) {\n threadPoolExecutor.execute(person);\n }\n }", "@Override\n public void runSimulation() throws Exception {\n // Call a method that initializes the barrier\n // synchronizers and assigns them to the Beings.\n // TODO -- you fill in here.\n \n\n // Call a method that uses the common fork-join pool to run a\n // pool of threads that represent the Beings in this\n // simulation.\n // TODO -- you fill in here.\n \n }", "public void run() {\n\t\tfor(int i = 0; i < 100; i++) {\n\t\t\t// E step\n\t\t\tsigma = calculateNewSigma();\n\t\t\t// M step\n\t\t\tu = calculateNewU();\n\t\t\t//System.out.println(\"u= \"+u+\"; sigma= \"+sigma);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"u= \"+u+\"; sigma= \"+sigma);\n\t}", "public void run() {\n for (int i = start; i <= end; i++) {\n //reset output variable\n output = 1;\n array[i] = computeFactorial(array[i]);\n }\n }", "public void main(String[] args) throws Exception\r\n\t{\r\n\t\tint V; // number of vertices for the current iteration\r\n\r\n\t\tif(args.length != 6)\r\n\t\t{\r\n\t\t\tusage();\r\n\t\t}\r\n\t\t\r\n\t\tseed = Long.parseLong(args[0]);\r\n\t\tlowerV = Integer.parseInt(args[1]);\r\n\t\tupperV = Integer.parseInt(args[2]);\r\n\t\tp = Double.parseDouble(args[3]);\r\n\t\tT = Long.parseLong(args[4]);\r\n\t\tincrement = Integer.parseInt(args[5]);\r\n\r\n\t\t// print the command line used to run this code\r\n\t\tSystem.out.print(\"$ java pj2 MonteCarloPSeq\");\r\n\t\tfor(String arg : args)\r\n\t\t{\r\n\t\t\tSystem.out.print(\" \" + arg);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tSystem.out.println(\"V\\t\\tAvg d\");\r\n\r\n\t\tfor(int v1 = lowerV; v1 <= upperV; v1 += increment)\t\t\r\n\t\t{\r\n\t\t\tfinal DoubleVbl.Sum sumVbl = new DoubleVbl.Sum();\r\n\r\n\t\t\tint vHold = v1;\r\n\t\t\tdouble avg;\r\n\r\n\t\t\t// do T trials in parallel\r\n\t\t\tparallelFor(0, T - 1).exec(new LongLoop()\r\n\t\t\t{\r\n\t\t\t\t// Per-thread variables\r\n\t\t\t\tArrayList<Vertex> vertices;\r\n\t\t\t\tRandom rand;\r\n\t\t\t\tGraph graph;\r\n\t\t\t\tDoubleVbl.Sum thrSum;\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * initialize per-thread variables\r\n\t\t\t\t */\r\n\t\t\t\tpublic void start()\r\n\t\t\t\t{\r\n\t\t\t\t\trand = new Random(seed + rank());\r\n\t\t\t\t\tgraph = new Graph(rand);\r\n\t\t\t\t\tthrSum = threadLocal(sumVbl);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Loop body\r\n\t\t\t\t */\r\n\t\t\t\tpublic void run(long t)\r\n\t\t\t\t{\r\n\t\t\t\t\tvertices = graph.generateGraph(vHold, p);\r\n\t\t\t\t\t// thrSum.reduce(new DoubleVbl((double)graph.diameter(vHold, vertices)));\r\n\t\t\t\t\tthrSum.item += (double)graph.diameter(vHold, vertices);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tavg = sumVbl.item / T;\r\n\t\t\tSystem.out.println(vHold + \"\\t\\t\" + avg);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Void call() throws Exception {\n\t\tList<Integer> list=new ArrayList<>(THRESHOLD);\n\t\tfor(int i=0;i<iterations;i++) {\n\t\t\tlist.add(ThreadLocalRandom.current().nextInt());\n\t\t\tif(list.size() == THRESHOLD) {\n\t\t\t\t//To avoid contention at queue level sending data in chunks.\n\t\t\t\tqueue.put(list);\n\t\t\t\tlist = new ArrayList<>(THRESHOLD);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void runExperiments()\n {\n for (int i = 0; i < count; i++)\n {\n Percolation experiment = new Percolation(size);\n int openCount = 0;\n StdRandom.setSeed(System.currentTimeMillis());\n while (!experiment.percolates())\n {\n int x = StdRandom.uniform(1, size+1);\n int y = StdRandom.uniform(1, size+1);\n if (!experiment.isOpen(x, y))\n {\n experiment.open(x, y);\n openCount++;\n }\n } \n open[i] = (double) openCount / (size * size);\n }\n }", "public void Execute()\n\t{\n\t\tString decryptedText=\"\";\n\t\tString key = KeyGenerator.GenerateKey();\n\t\tPlayfairCypher cypher=new PlayfairCypher(key);\n\t\tint temp = 11;\n\t\t\n\t\t//this.digraph=cypher.getDigraph();\n\t\t\n\t\n\t\tdecryptedText=cypher.Decrypt(txt);\n\t\tdouble score=Score(decryptedText);\n\n\t\t//PlayfairCypher aux;\n\t\tThread t1;\n\t\tThread t2;\n\t\tfor (; temp >0 ; temp--) \n\t\t{\n\t\t\tSystem.out.println(\"TEMP \"+temp);\n\t\t\t//Runnable r = new AneallingRunnable(key,score,temp,keyT1,scoreT1,txt);\n\t\t\tRunnable r = new AneallingRunnable(key,score,temp,txt,1);\n\t\t\tRunnable r2 = new AneallingRunnable(key,score,temp,txt,2);\n\t\t\tt1 = new Thread(r);\n\t\t\tt2=new Thread(r2);\n\t\t\tt1.start();\n\t\t\tt2.start();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tt1.join();\n\t\t\t\tt2.join();\n\t\t\t}catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\tif(SharedDataBetweenThreads.scoreT1>SharedDataBetweenThreads.scoreT2)\n\t\t\t\t{\n\t\t\t\t\tscore=SharedDataBetweenThreads.scoreT1;\n\t\t\t\t\tkey=SharedDataBetweenThreads.keyT1;\n\t\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tscore=SharedDataBetweenThreads.scoreT2;\n\t\t\t\tkey=SharedDataBetweenThreads.keyT2;\n\t\t\t}\n\t\t\tSystem.out.println(\"TEMP: \"+temp+\" Score: \"+score+\"\\n\");\n\t\t\tSharedDataBetweenThreads.scoreT1=0;\n\t\t\tSharedDataBetweenThreads.scoreT2=0;\n\t\t\t\n\t\t\tif(score>180) temp=-1;\n\n\t\t}\n\t\t\n\t\tcypher=new PlayfairCypher(key);\n\t\tSystem.out.println(cypher.toString());\n\t\tSystem.out.println(cypher.Decrypt(txt));\n\t\t\n\t\tlong stopTime = System.currentTimeMillis();\n\t long elapsedTime = stopTime - startTime;\n\t System.out.println(\"\\nTime taken: \"+elapsedTime/10);\n\t}", "public void compute(){\n long start = System.nanoTime();\n for(int i = 0; i < n_threads; i++){\n primeThreads[i].start();\n }\n try{\n for (int i = 0; i<n_threads; i++){\n primeThreads[i].join();\n }\n }catch (Exception e){\n System.out.println(e);\n }\n long end = System.nanoTime();\n totalRunningTime = (end-start)/1000000000.0;\n //Joining the total amount of primes\n for(int i = 0; i < n_threads; i++){\n totalPrimes += primeThreads[i].getN_primes();\n totalThreadTime += primeThreads[i].getRunningTime();\n }\n }", "@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\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 runCalculation() throws InterruptedException {\n\tnew CalculationStarted(this).provide();\n\tcalculate();\n\tnew CalculationFinished(this).provide();\n }", "public static void main(String[] args) throws InterruptedException{\n\t\tint arraySize = 300;\n\t\t\t\t//Integer.parseInt(args[0]);\n\t\tint numberOfThreads = 25;\n\t\t\t\t//Integer.parseInt(args[1]);\n\t\t\n\t\t//Create IntList and sets the capacity to the first arguement\n\t\tIntList il = new IntList(arraySize);\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\t//Adds however many numbers specified to the IntList\n\t\tfor(int i = 0; i < arraySize - 1; i++){\n\t\t\til.add(r.nextInt(200));\n\t\t}\n\t\t\n\t\t//Creates number of threads specified and starts them all\n\t\tThread[] threads = new Thread[numberOfThreads];\n\t\tfor(int i = 0; i < threads.length; i++){\n\t\t\tthreads[i] = new Thread(new primeThread(il));\n\t\t\tthreads[i].start();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n Calculations calc = new Calculations(16, 1000);\n Keeper keeper = new Keeper(\"data.txt\");\n keeper.writeToFile(calc);\n //Read saved data as String value and turn it into 2D array\n calc.setCopiedArray(keeper.readFromFile());\n\n //Printing for testing purposes.\n// System.out.println(\"RandomArray\");\n// calc.printTarget2DArr(calc.getRandomArray());\n// System.out.println();\n//\n// System.out.println(\"Copied Array\");\n// calc.printTarget2DArr(calc.getCopiedArray());\n// System.out.println();\n\n\n //Sorting \"without\" threads\n System.out.println(\"\\nNO Threads:)\");\n long start = System.nanoTime();\n Contestant contestant = new Contestant(calc);\n contestant.run(calc);\n// calc.printTarget2DArr(contestant.getSorted2DArray());\n long finish = System.nanoTime();\n long timeElapsed = finish - start;\n\n System.out.println(\"Time of execution of Contestant 0 (no threads) is \" + timeElapsed / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 0 (no threads) is \" + timeElapsed + \" Nano sec\");\n\n //Thread 1\n System.out.println(\"\\n1 Threads\");\n Contestant1 contestant1 = new Contestant1(calc);\n Thread thread1 = new Thread(contestant1);\n long start1 = System.nanoTime();\n\n thread1.start();\n try {\n thread1.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n// calc.printTarget2DArr(contestant1.getSorted2DArray());\n long finish1 = System.nanoTime();\n long timeElapsed1 = finish1 - start1;\n System.out.println(\"Time of execution of Contestant 1 (\" + thread1.getName() + \") is \" + timeElapsed1 / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 1 (\" + thread1.getName() + \") is \" + timeElapsed1 + \" Nano sec\");\n\n\n //2 Threads\n System.out.println(\"\\n2 Threads\");\n Contestant2 contestant2 = new Contestant2(calc);\n Thread thread2 = new Thread(contestant2);\n long start2 = System.nanoTime();\n thread2.start();\n try {\n thread2.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n long finish2 = System.nanoTime();\n long timeElapsed2 = finish2 - start2;\n\n Thread thread21 = new Thread(new Contestant2(calc).mergeSortParallel2());\n long start21 = System.nanoTime();\n thread21.start();\n try {\n thread21.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n long finish21 = System.nanoTime();\n long timeElapsed21 = finish21 - start21;\n// calc.printTarget2DArr(contestant2.getSorted2DArray());\n System.out.println(\"Time of execution of Contestant 2 (\" + thread2.getName() + \") is \" + (timeElapsed2 + timeElapsed21) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 2 (\" + thread2.getName() + \") is \" + (timeElapsed2 + timeElapsed21) + \" Nano sec\");\n\n\n //Thread 4\n System.out.println(\"\\n4 Threads\");\n Contestant4 contestant4 = new Contestant4(calc);\n long totalExecutionTimeFor4Threads = 0;\n Thread[] threads = new Thread[4];\n long start4 = System.nanoTime();\n for (int i = 0; i < threads.length; i++) {\n threads[i] = new Thread(contestant4, \"thread [\" + i + \"]\");\n threads[i].start();\n long finish4 = System.nanoTime();\n long timeElapsed4 = finish4 - start4;\n System.out.println(\"Time of execution of Contestant 4 (\" + threads[i].getName() + \") is \" + (timeElapsed4) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 4 (\" + threads[i].getName() + \") is \" + (timeElapsed4) + \" Nano sec\");\n totalExecutionTimeFor4Threads += timeElapsed4;\n\n }\n System.out.println(\"Total time for 4 threads is \" + totalExecutionTimeFor4Threads / 1000000000 + \" sec\");\n System.out.println(\"Total time for 4 threads is \" + totalExecutionTimeFor4Threads + \" Nano sec\");\n// calc.printTarget2DArr(contestant4.getSorted2DArray());\n\n\n //Thread 8\n System.out.println(\"\\n8 Threads\");\n Contestant8 contestant8 = new Contestant8(calc);\n long totalExecutionTimeFor8Threads = 0;\n Thread[] threads8 = new Thread[8];\n long start8 = System.nanoTime();\n for (int i = 0; i < threads8.length; i++) {\n threads8[i] = new Thread(contestant8, \"thread [\" + i + \"]\");\n threads8[i].start();\n long finish8 = System.nanoTime();\n long timeElapsed8 = finish8 - start8;\n System.out.println(\"Time of execution of Contestant 8 (\" + threads8[i].getName() + \") is \" + (timeElapsed8) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 8 (\" + threads8[i].getName() + \") is \" + (timeElapsed8) + \" Nano sec\");\n totalExecutionTimeFor8Threads += timeElapsed8;\n }\n System.out.println(\"Total time for 8 threads is \" + totalExecutionTimeFor8Threads / 1000000000 + \" sec\");\n System.out.println(\"Total time for 8 threads is \" + totalExecutionTimeFor8Threads + \" Nano sec\");\n// calc.printTarget2DArr(contestant8.getSorted2DArray());\n\n\n //Thread 16\n System.out.println(\"\\n16 Threads\");\n Contestant16 contestant16 = new Contestant16(calc);\n long totalExecutionTimeFor16Threads = 0;\n Thread[] threads16 = new Thread[16];\n long start16 = System.nanoTime();\n for (int i = 0; i < threads16.length; i++) {\n threads16[i] = new Thread(contestant16, \"thread [\" + i + \"]\");\n threads16[i].start();\n long finish16 = System.nanoTime();\n long timeElapsed16 = finish16 - start16;\n System.out.println(\"Time of execution of Contestant 16 (\" + threads16[i].getName() + \") is \" + (timeElapsed16) / 1000000000 + \" sec\");\n System.out.println(\"Time of execution of Contestant 16 (\" + threads16[i].getName() + \") is \" + (timeElapsed16) + \" Nano sec\");\n totalExecutionTimeFor16Threads += timeElapsed16;\n }\n System.out.println(\"Total time for 16 threads is \" + totalExecutionTimeFor16Threads / 1000000000 + \" sec\");\n System.out.println(\"Total time for 16 threads is \" + totalExecutionTimeFor16Threads + \" Nano sec\");\n// calc.printTarget2DArr(contestant16.getSorted2DArray());\n }", "public static void main(String[] args) {\n\n testWithNElementsParallel(1000);\n testWithNElementsParallel(10000);\n testWithNElementsParallel(100000);\n testWithNElementsParallel(1000000);\n testWithNElementsParallel(5000000);\n testWithNElementsParallel(10000000);\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }", "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 if (crtStep == Main.N) {\n printQueens();\n tpe.shutdownNow();\n }\n \n for (int i = 0; i < Main.N; ++i) {\n int[] newPositions = positions.clone();\n newPositions[crtStep] = i;\n\n if (correctPlacement(newPositions)) {\n tpe.submit(new MyRunnable(tpe, newPositions, crtStep + 1));\n }\n }\n \n }", "public static void main(String[] args) throws InterruptedException {\n\t\tThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(3);\n\t\tint numPaletes = 5, ti, te, numMaons = 10;\n\t\t\n\t\t//instanciem els paletes\n\t\tPaletaP[] P = new PaletaP[numPaletes];\n\t\t\t\t\t\t\n\t\t//comencem a contar el temps\n\t\tti = (int) System.currentTimeMillis();\n\t\t//Donem nom als paletes i els posem a fer fer la paret\n\t\tfor (int i=0;i<numPaletes;i++) {\n\t\t\tP[i] = new PaletaP(\"Paleta-\"+i,numMaons);\n\t\t\texecutor.execute(P[i]);\n\t\t}\n\n\t\texecutor.shutdown();\n\t\texecutor.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);\n\t\t/*while (!executor.isTerminated()) {\n\t\t}*/\n\n\t\t//Han acabat i agafem el temps final\n\t\tte = (int) System.currentTimeMillis();\n\t\t\t\t\n\t\tSystem.out.println(\"Han trigat: \" + (te - ti)/1000 + \" segons\");\n\t\t\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}", "public void execute() {\r\n\t\tgraph = new Graph();\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\taddNeighbours(i, j);// adds neighbours/connections for each node\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t\t\r\n\t\trunning = true;// sets the simulation to running\r\n\t}", "private void calculate() throws InterruptedException {\n\tfor (int i = 1; i <= 100; i++) {\n\t Thread.sleep(100);\n\t update(i);\n\t}\n }", "public void startCompute();", "public void run() {\n\t\tSystem.out.println(\"fuseMul\");\n\t\tMultiplyConcurrent1 multiplier = new MultiplyConcurrent1();\n\t\tValidateFusion validator = new ValidateFusion();\n\t\tint mul = multiplier.multiplyConcurrent1(sortedSnapshot);\t\t\t \n\t\tvalidator.validate(mul, 1);\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}", "public static void main(String[] args) {\n\n ConcurrentHashMap h = new ConcurrentHashMap();\n\n for (int i = 0; i < 100; i++) {\n new MTest(h).start();\n }\n }", "public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }", "private static void test() {\n\t\tVector<Object> list = new Vector<Object>();\n\t\tint threadNum = 1000;\n\t\tCountDownLatch countDownLatch = new CountDownLatch(threadNum);\n\t\t\n\t\t//启动threadNum个子线程\n\t\tfor(int i=0;i<threadNum;i++){\n\t\t\tThread thread = new Thread(new MyThread(list,countDownLatch));\n\t\t\tthread.start();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\t//主线程等待所有子线程执行完成,再向下执行\n\t\t\tcountDownLatch.await();;\n\t\t}catch(InterruptedException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(list.size());\n\t}", "@Override\n\tpublic void run() {\n\t\tfor(int i = 0;i < 100;i++){\n\t\t\tif(i % 20 == 0){\n\t\t\t\tThread.yield();\n\t\t\t}\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\"---->\"+i);\n\t\t}\n\t}", "protected void execute() {\n\n\t\ttry {\n\t\t\tmatrixC = new Integer[matrixA.length][matrixA.length];\n\t\t\tWorkerThread2[] threads = new WorkerThread2[matrixA.length]; // Criando as threads\n\n\t\t\tfor (int i = 0; i < matrixA.length; i++) {\n\t\t\t\tthreads[i] = new WorkerThread2(i, matrixA, matrixB, matrixC);\n\t\t\t\tthreads[i].start();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < matrixA.length; i++) {\n\t\t\t\tthreads[i].join();\n\t\t\t}\n\t\t}catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t}", "public void run(){\n this.p_absoluteTemperature = 0.001;\n //this.p_temperatureFactor = 7.5;\n this.p_temperatureFactor = 10;\n \n // Set original and current temperature\n this.temperatureInitial = 100;\n this.temperature = 100;\n \n runAlgorithm();\n }", "public static void main(String[] args) {\n SequenceGenerator generator = new SequenceGenerator();\r\n // init generator consumers\r\n MyThread thread1 = new MyThread(\"th1\", generator);\r\n MyThread thread2 = new MyThread(\"th2\", generator);\r\n MyThread thread3 = new MyThread(\"th3\", generator);\r\n // Start a race for ints from generator\r\n thread1.start();\r\n thread2.start();\r\n thread3.start();\r\n // At last the generated number must be stable\r\n // 3 * MyThread.SEQ_SIZE = 30000\r\n\r\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tArrayList<Integer> list = createRandomList(2500000);\n\t\t\n\t\t//heap array\n\t\tArrayList<Integer> subList1 = new ArrayList<>(list.subList(0, 999999));\n\t\tArrayList<Integer> subList2 = new ArrayList<>(list.subList(1000000, 1499999));\n\t\tArrayList<Integer> subList3 = new ArrayList<>(list.subList(1500000, 2500000));\n\n\n\n\t\tMythread mt1 = new Mythread(subList1, \"Thread 1\");\n\t\tMythread mt2 = new Mythread(subList2, \"Thread 2\");\n\t\tMythread mt3 = new Mythread(subList3, \"Thread 3\");\n\t\t\n\t\tmt1.getThrd().start();\n\t\tmt2.getThrd().start();\n\t\tmt3.getThrd().start();\t\n\t\t\n\t\tmt1.getThrd().join();\n\t\tmt2.getThrd().join();\n\t\tmt3.getThrd().join();\n\t\t\n\t\tArrayList<Integer> sumList = new ArrayList<>();\n\t\tsumList.addAll(subList1);\n\t\tsumList.addAll(subList2);\n\t\tsumList.addAll(subList3);\n\t\t\n\t\twriteFile(sumList, \"output.txt\");\n\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Starting \"+Thread.currentThread().getName());\n\t\tfor(int i=1;i<=10;i++)\n\t\t{\n\t\t\tSystem.out.println(multiple +\" * \"+\" : \"+multiple*i);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tThread.sleep(1000);\n\t\t\t}catch(InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Stopping \"+Thread.currentThread().getName());\n\t\t\n\t}", "public void run(){\r\n //print out what thread is running\r\n System.out.println(\"Thread: \" + k);\r\n //while the ant in the current thread hasnt seen all the nubmers\r\n while (SCPParallel.colony.get(k + SCPParallel.adjust).seenAll == false\r\n && SCPParallel.colony.get(k + SCPParallel.adjust).seenAllNumbers(SCPParallel.universe, SCPParallel.sets) == false){\r\n //get the ants next step\r\n SCPParallel.colony.get(k + SCPParallel.adjust).addToPath(SCPParallel.colony.get(k + SCPParallel.adjust).getNextStep(SCPParallel.sets, SCPParallel.pheremones));\r\n }\r\n //counts down the latch when the ant has seen all the numbers\r\n SCPParallel.latch.countDown();\r\n }", "@Override\n protected void run() {\n for (long number : numbers){\n addTask(new FindFactorsTask(new FindFactorsTask.SearchOptions(number)));\n }\n executeTasks();\n\n //Find common factors\n final Set<Long> set = new HashSet<>(((FindFactorsTask) getTasks().get(0)).getFactors());\n for (int i = 1; i < getTasks().size(); ++i){\n set.retainAll(((FindFactorsTask) getTasks().get(i)).getFactors());\n }\n\n //Find largest factor\n gcf = Collections.max(set);\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tlk.lock();\n\t\t\tfor(int j=0; j<100;j++) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep(10);\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\tSystem.out.println(Thread.currentThread().getName()+\":\"+ i++);\n\t\t\t}\n\t\t}finally {\n\t\t\tlk.unlock();\n\t\t}\n\t}", "@Override\n public void run() {\n // Don't start the threads immediately.\n Utils.pauseThread(500);\n\n // Define local variables.\n int i = 0;\n\n // Gaze at a palantir the designated number of times.\n for (;\n i < Options.instance().gazingIterations();\n ++i) {\n if (!gazeIntoPalantir(getBeingId(),\n Thread.currentThread().getName()))\n break;\n }\n\n Log.d(TAG,\n \"Being \"\n + getBeingId()\n + \" has finished \"\n + i \n + \" of its \"\n + Options.instance().gazingIterations()\n + \" gazing iterations\");\n }", "public void run() throws Exception {\r\n long start_time;\r\n // Make sure everything is ready\r\n checkIfReady();\r\n\r\n while (CurrentIteration < MaxIteration) {\r\n System.out.println(\"\\tWorking on iteration \" + (CurrentIteration + 1)\r\n + \" out of \" + MaxIteration);\r\n\r\n // Check to see whether we need to add more candidates\r\n if (Candidates.size() <= CurrentIteration) {\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nGenerating list of new candidates...\");\r\n }\r\n // If needed, train the optimization algorithm\r\n if (ObjectiveFunction instanceof MultiObjectiveEntryRanker) {\r\n MultiObjectiveEntryRanker Ptr = (MultiObjectiveEntryRanker) ObjectiveFunction;\r\n Ptr.train((MultiPropertyDataset) getFullDataset(CurrentIteration));\r\n }\r\n \r\n Dataset new_entries = getNewCandidates();\r\n if (Candidates.size() != currentIteration()) {\r\n throw new Exception(\"Candidates array incorrect size. Ensure getNewCandidates did not edit it.\");\r\n }\r\n Candidates.add(new_entries);\r\n Oracle.importDataset(new_entries);\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n }\r\n\r\n // Evaluate all the new candidates using the oracle\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nEvaluating new candidates...\");\r\n }\r\n Oracle.evaluateEntries();\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n\r\n // If all entries have been calculated, add them to Candidates and continue\r\n if (Oracle.isComplete()) {\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle has finished calculating.\");\r\n }\r\n Dataset new_entries = Oracle.extractDataset();\r\n Candidates.set(CurrentIteration, new_entries);\r\n CurrentIteration++;\r\n } else {\r\n // If not, return\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle did not finish calculating. Check back later.\");\r\n }\r\n return;\r\n }\r\n }\r\n }", "public static void main (String[] args){\r\n\t\tint num_threads = 100;\r\n\t\tpid_manager pid_test = new pid_manager();\r\n\t\tSystem.out.println(\"Ready \\n\");\r\n\t\tpid_test.allocate_map();\r\n\t\tfor(int i = 0; i < num_threads; i++){\r\n\t\t\tThread rc = new Thread(new mthread(pid_test));\r\n\t\t\trc.start();\r\n\t}\r\n}", "public void randomBoard(int Row, int Col){\n board.makeBoard(Row,Col);\n int length = board.getRow();\n int splited = length/numWorkers;\n for (int i = 1; i <splitedBoard.length ; i++) {\n splitedBoard[i-1] = splited * i;\n }\n splitedBoard[splitedBoard.length-1] = board.getRow();\n \n for (int i = 0; i < numWorkers; i++) {\n int start;\n int stop;\n if (i == 0){\n start = 0;\n stop = splitedBoard[i];\n }else{\n start = splitedBoard[i-1];\n stop = splitedBoard[i];\n }\n\n workers[i] = new Thread(RandomRun(start,stop ));\n\n }\n for (Thread worker : workers) {\n worker.start();\n }\n\n try {\n for (Thread worker : workers) {\n worker.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }", "private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }", "public static void main(java.lang.String[] args) {\r\n\t\tdouble TotalWaitTimeHistogram = 0;\r\n\t\tint k = 0;\r\n\t\twhile (k < 20) {\r\n\t\t\t// make a new experiment\r\n\t\t\t// Use as experiment name a OS filename compatible string!!\r\n\t\t\t// Otherwise your simulation will crash!!\r\n\t\t\r\n\t\t\tExperiment experiment = new Experiment(\"Vancarrier Model\");\r\n\r\n\t\t\t// make a new model\r\n\t\t\t// null as first parameter because it is the main model and has no\r\n\t\t\t// mastermodel\r\n\t\t\tVancarrierModel vc_1st_p_Model = new VancarrierModel(null, \"Vancarrier Model\", true, false);\r\n\r\n\t\t\t// connect Experiment and Model\r\n\t\t\tvc_1st_p_Model.connectToExperiment(experiment);\r\n\r\n\t\t\t// set trace\r\n\t\t\texperiment.tracePeriod(new TimeInstant(0), new TimeInstant(100));\r\n\r\n\t\t\t// now set the time this simulation should stop at\r\n\t\t\t// let him work 1500 Minutes\r\n\t\t\t//experiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.setShowProgressBar(false);\r\n\r\n\t\t\t// start the Experiment with start time 0.0\r\n\t\t\texperiment.start();\r\n\r\n\t\t\t// --> now the simulation is running until it reaches its ending\r\n\t\t\t// criteria\r\n\t\t\t// ...\r\n\t\t\t// ...\r\n\t\t\t// <-- after reaching ending criteria, the main thread returns here\r\n\r\n\t\t\t// print the report about the already existing reporters into the\r\n\t\t\t// report file\r\n\t\t\texperiment.report();\r\n\r\n\t\t\t// stop all threads still alive and close all output files\r\n\t\t\texperiment.finish();\r\n\r\n\t\t\tTotalWaitTimeHistogram += vc_1st_p_Model.waitTimeHistogram.getMean();\r\n\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Truck Wait Times Mean of \" + k + \" iterations: \" + (TotalWaitTimeHistogram / k));\r\n\t}", "public void run() {\n\t\tboolean flag = true;\n\t\t\n\t\t//Testing if all the threads are initialized with some random value.\n\t\twhile(flag) {\n\t\t\tflag = false;\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tif(GlobalInfo.inputs[i]==-1)\n\t\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] snapshot = new int[10];\n\t\tint[] sortedSnapshot;\n\t\t\t\t\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\t//Checking if queue is empty or not\n\t\t\tif(GlobalInfo.pipeLine.peek() != null)\n\t\t\t{\n\t\t\t\tsnapshot = GlobalInfo.pipeLine.poll();\n\t\t\t\t\n\t\t\t\t//printing snapshot\n\t\t\t\tSystem.out.format(\"The snapshot is: \");\n\t\t\t\tfor (int i = 0; i < snapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", snapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsortedSnapshot = Arrays.copyOf(snapshot, snapshot.length);\n\t\t\t\t\n\t\t\t\tSortHelper.sortForkAndJoin(sortedSnapshot);\n\t\t\t\t\n\t\t\t\t//printing sorted snapshot\n\t\t\t\tSystem.out.format(\"The sorted snapshot is: \");\n\t\t\t\tfor (int i = 0; i < sortedSnapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", sortedSnapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tGlobalInfo.completeThreads=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Performing fusion of data and validating results\n\t\t\t\tfuseAdd1 adder = new fuseAdd1(sortedSnapshot);\n\t\t\t\tThread adderThread = new Thread(adder);\n\t\t\t\tadderThread.start();\n\t\t\t\t\n\t\t\t\tfuseMultiply1 multiplier = new fuseMultiply1(sortedSnapshot);\n\t\t\t\tThread multiplierThread = new Thread(multiplier);\n\t\t\t\tmultiplierThread.start();\n\t\t\t\t\n\t\t\t\tfuseAverage1 averager = new fuseAverage1(sortedSnapshot);\n\t\t\t\tThread averagerThread = new Thread(averager);\n\t\t\t\taveragerThread.start();\n\t\t\t\t\n\t\t\t\twhile(GlobalInfo.completeThreads < 3){\n\t\t\t\t\t//wait for all three fusions to take place.\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void run() {\n while (true) {\n Producto[] ps;\n int n;\n n = random.nextInt(maxProd) + 1;\n ps = Fabrica.producir(n);\n ConcIO.printfnl(\"inicio almacenamiento de \" + n + \" productos...\");\n multiAlmacenCompartido.almacenar(ps);\n ConcIO.printfnl(\"fin almacenamiento de \" + n + \" productos...\");\n }\n }", "@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }", "public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}", "private static void Run() {\n\t\tfor (int i = 0; i < Width; i++) {\n\t\t\tfor (int j = 0; j < Height; j++) {\n\t\t\t\tUpdate(CountNeighbors(i, j), i, j);\n\t\t\t}\n\t\t}\n\t}", "private void run() {\n List<Planet> list = new ArrayList<>();\n \n fillLargeList(list);\n \n // Get an element\n getFromList(list);\n }", "public static void main(String[] args) {\n MPI.Init(args);\n CollectiveMultiplication(args, false, 2500);\n MPI.Finalize();\n// int[] matrixSizes = {200, 400, 600, 800, 1000};\n// double[] serialResults = new double[matrixSizes.length];\n// for (int i=0; i<matrixSizes.length; i++){\n// ArrayList<Double> results = new ArrayList<>();\n// for (int j=0; j<4; j++){\n// results.add(serial(matrixSizes[i]));\n// }\n// serialResults[i] = results.stream().mapToDouble(a -> a).sum() / results.size();\n// } \n// for (double result: serialResults)\n// System.out.println(result);\n }", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void runGeneration(){\r\n adjust = generationSize*generation;\r\n //Send out the ants to their start points\r\n for (int i = generationSize -1; i>0; i--) {\r\n colony.get(i + adjust).startPositions(sets);\r\n }\r\n //initialises the latch with a counter for each ant in a generation\r\n latch = new CountDownLatch(generationSize);\r\n //move the ants out until they have found a valid solution or seen all nodes\r\n //create a new thread for each ant in the generation\r\n for (int i = 0; i<generationSize;i++) {\r\n Generation temp = new Generation(i);\r\n //starts the new thread\r\n temp.start();\r\n }\r\n try {\r\n //wait until all the ants in a generation have completed their paths\r\n latch.await();\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(\"error in latch.await\");\r\n }\r\n\r\n //Create the pheremone trail\r\n for (int i = 0; i<generationSize;i++) {\r\n Ant a = colony.get(i + adjust);\r\n for (Integer k: a.Path) {\r\n pheremones.set(k, pheremones.get(k) + 1);\r\n visited.set(k, visited.get(k) + 1);\r\n }\r\n }\r\n\r\n generation++;\r\n //degrade the pheremone trail\r\n if(generation > 1){\r\n for (int i = 0; i < pheremones.size(); i++){\r\n pheremones.set(i, pheremones.get(i) - degrade);\r\n if (pheremones.get(i) < 0) pheremones.set(i, 0);\r\n }\r\n }\r\n\r\n }", "public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }", "@Override\n public void run()\n {\n calculate();\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "public static void gameOfLife() throws Exception {\n for(int i = 0; i < N; i++) {\n for(int j = 0; j < N; j++) {\n state [i] [j] = Math.random() > 0.5 ? 1 : 0;\n }\n }\n\n display.repaint();\n pause();\n\n ParallelConwaysGameOfLife [] threads = new ParallelConwaysGameOfLife[P];\n\n for (int me = 0; me < P; me++) {\n threads[me] = new ParallelConwaysGameOfLife(me);\n threads[me].start();\n }\n\n for (int me = 0; me < P; me++) {\n threads[me].join();\n }\n\n }", "public static void main(String[] args)\r\n\t{\n\t\tint n = Integer.parseInt(JOptionPane.showInputDialog(\"Please Enter Size Of Array:\"));\r\n\t\tint m = Integer.parseInt(JOptionPane.showInputDialog(\"Please Enter Number Of Threads:\"));\r\n\r\n\t\tint threadIndex = 0;\r\n\r\n\t\t//array of random numbers from 1-100\r\n\t\tint[] arr = new int[n];\r\n\r\n\t\t//ArrayList storage represent the storage of the elements from the array arr\r\n\t\tArrayList<Integer> storage = new ArrayList<>();\r\n\r\n\t\t//initialize object Controller that control and handling all threads methods\r\n\t\tController c = new Controller();\r\n\r\n\t\t//initialize random numbers into array arr with size of n\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t{\r\n\t\t\tarr[i] = 1 + (int) (Math.random() * 100);\r\n\t\t\t//uncomment line below to print numbers in array\r\n\t\t\t//System.out.println(arr[i]);\r\n\t\t}\r\n\r\n\t\t//adding elements from original array to storage\r\n\t\tfor (int i = 0; i < arr.length; i++)\r\n\t\t{\r\n\t\t\tstorage.add(arr[i]);\r\n\t\t}\r\n\r\n\t\t//creating m threads and start them (calling run() method)\r\n\t\twhile(storage.size()>1 && threadIndex < m) {\r\n\t\t\t(new ThreadSum(storage, c)).start();\r\n\t\t} \r\n\r\n\t\t//wait for all threads to finish their work\r\n\t\tc.waitForAll(); \r\n\r\n\t\t//print last element in storage which is the sum\r\n\t\tSystem.out.println(\"Sum is: \" + storage.get(0));\r\n\r\n\t}", "public void run() {\n System.out.println(name + \" , go!!!\" );\n\n //start running\n while (getCheckpoint() != 20){\n //delay running\n int randNumber = (int) Math.round(LetsGO.getRandomNumber()*weight);\n try {\n Thread.sleep(randNumber);\n }\n catch (InterruptedException e){\n System.out.println(name+\"interrupted.\");\n }\n System.out.println(name + \" has passed checkpoint\" + checkpoint);\n checkpoint++;\n }\n //finished running\n System.out.println(name + \"has finished!\");\n }", "public void run()\n\t{\n\t\tthis.partition();\n\t}", "@Override\n public void run() {\n BinaryOperator<Integer> avg = (Integer a, Integer b) -> (a + b) / 2;\n int replacement;\n\n System.out.println(\"++\" + Thread.currentThread().getName() + \" has arrived.\");\n\n replacement = avg.apply(oldArray[index - 1], oldArray[index + 1]);\n\n // All threads must wait for all numThreads threads to catch up\n // Phaser acting like a barrier\n ph.arriveAndAwaitAdvance();\n\n System.out.println(\"--\" + Thread.currentThread().getName() + \" has left.\");\n oldArray[index] = replacement;\n\n }", "public static void main(String[] args) {\r\n\r\n ExecutorService es = Executors.newFixedThreadPool(100);\r\n for (int i = 0; i < 10; i++) {\r\n es.execute(new Runnable() {\r\n @Override\r\n public void run() {\r\n // l++;\r\n // l--;\r\n l.incrementAndGet();\r\n l.decrementAndGet();\r\n }\r\n });\r\n }\r\n // for (int i = 0; i < 10; i++) {\r\n // es.execute(new Runnable() {\r\n // @Override\r\n // public void run() {\r\n // synchronized (l) {\r\n // l--;\r\n // }\r\n // // l.decrementAndGet();\r\n // }\r\n // });\r\n // }\r\n System.out.println(l);\r\n }", "@Override\r\n public void run() {\n System.out.println(\"Running in Java (regular algorithm)\");\r\n }", "public void runAlgorithm()\n\t{\n\t\tboolean done = false;\n while (!done)\n {\n switch (step)\n {\n case 1:\n step=stepOne(step);\n break;\n case 2:\n step=stepTwo(step);\n break;\n case 3:\n step=stepThree(step);\n break;\n case 4:\n step=stepFour(step);\n break;\n case 5:\n step=stepFive(step);\n break;\n case 6:\n step=stepSix(step);\n break;\n case 7:\n stepSeven(step);\n done = true;\n break;\n }\n }\n\t}", "public void run() {\n\t\t// Child threads start here to begin testing-- tests are below\n\t\n\t\t// We suggest writing a series of zero-sum tests,\n\t\t// i.e. lists should be empty between tests. \n\t\t// The interimBarr enforces this.\n\t\ttry {\n\t\t\tcontainsOnEmptyListTest();\n\t\t\tinterimBarr.await();\n\t\t\tsentinelsInEmptyListTest();\n\t\t\tprintResBarr.await();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}", "public void runExploration() {\n List<Queue<String>> smallSkierQueues = partitionQueue(skierQueue);\n List<Queue<String>> smallLiftQueues = partitionQueue(liftQueue);\n List<Queue<String>> smallhourQueues = partitionQueue(hourQueue);\n\n // run threads here\n long startTime = System.nanoTime();\n for(int i = 0; i < 8; i++) {\n SmallSkierThread runSmallSkier = new SmallSkierThread(smallSkierQueues.get(i));\n SmallLiftThread runSmallLift = new SmallLiftThread(smallLiftQueues.get(i));\n SmallHourThread runSmallHour = new SmallHourThread(smallhourQueues.get(i));\n runSmallSkier.start();\n runSmallHour.start();\n runSmallLift.start();\n }\n // -> Aggregate results here\n // ...\n // ...\n // ...\n // <- End aggregation\n long endTime = System.nanoTime();\n long duration = endTime - startTime;\n System.out.println(\"Concurrent Solution Runtime: \" + duration/1000f + \" microseconds\");\n }", "public void GE() {\n for (int pivot = 0; pivot < rowSize; pivot++) {\n if (matrix.get(pivot).get(pivot) < EPSILON) {\n for (int i = pivot + 1; i < rowSize; i++) {\n if (matrix.get(i).get(pivot) < EPSILON) {\n swapRow(pivot, i);\n break;\n }\n }\n }\n Vector<Double> row = matrix.get(pivot);\n int cores = Runtime.getRuntime().availableProcessors();\n ExecutorService threadPool = Executors.newFixedThreadPool(cores);\n Vector<TargetCell> cells = new Vector<>();\n int cellAmount = (rowSize - pivot - 1) * (colSize - pivot) / cores + 1;\n row = multiplyRow(row, 1 / row.get(pivot));\n for (int r = pivot + 1; r < rowSize; r++) {\n Double value = -1 * matrix.get(r).get(pivot) / row.get(pivot);\n for (int c = pivot; c < colSize; c++) {\n if (cells.size() >= cellAmount) {\n threadPool.submit(new GEThread(matrix, copy(cells)));\n cells.clear();\n }\n cells.add(new TargetCell(r, c, value));\n }\n }\n threadPool.shutdown();\n /*\n System.out.println();\n matrix.forEach((n) -> System.out.println(n));*/\n }\n }", "public static void main(String[] args) {\n\t\tfinal Lazy lazy = new LazyImpl();\n\t\t\n List<Callable<Long>> tasks = new ArrayList<Callable<Long>>(10);\n // make a runnable that walks the whole jdk model\n Callable<Long> runnable = new Callable<Long>(){\n @Override\n public Long call() throws Exception {\n System.out.println(\"Starting work from thread \" + Thread.currentThread().getName());\n Long l = doWork(lazy);\n System.out.println(\"Done work from thread \" + Thread.currentThread().getName());\n return l;\n }\n };\n // make ten tasks with the same runnable\n for(int i=0;i<10;i++){\n tasks.add(runnable);\n }\n // create an executor\n ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 10, 1, TimeUnit.MINUTES, new ArrayBlockingQueue<Runnable>(10));\n try {\n System.out.println(\"Launching all threads\");\n // run them all\n List<Future<Long>> futures = executor.invokeAll(tasks);\n // and wait for them all to be done\n long total = 0;\n for(Future<Long> f : futures){\n total += f.get();\n }\n executor.shutdown();\n System.out.println(\"Done: \"+lazy.getCount()+\", \"+lazy.getResult()+\" in \"+total/1000000+\"ms\");\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n } catch (ExecutionException e) {\n throw new RuntimeException(e);\n }\n\t}" ]
[ "0.6754301", "0.66581774", "0.65957785", "0.6455044", "0.63567084", "0.6320028", "0.6232371", "0.6231668", "0.6221254", "0.62054193", "0.61795634", "0.6165935", "0.61319554", "0.6034244", "0.60225105", "0.6008521", "0.59986115", "0.59985375", "0.5979351", "0.59500796", "0.59408134", "0.5936418", "0.5936338", "0.5933062", "0.59112716", "0.590371", "0.58984166", "0.5897304", "0.5895007", "0.5880465", "0.58693725", "0.586334", "0.5859222", "0.58513093", "0.5844029", "0.5832757", "0.58320475", "0.5826144", "0.5822529", "0.58182687", "0.58117545", "0.57977676", "0.5784775", "0.57792294", "0.57780176", "0.57721394", "0.5766626", "0.5765558", "0.57627827", "0.5759899", "0.57583654", "0.5756299", "0.57471836", "0.5744616", "0.5739165", "0.5739007", "0.5736874", "0.57253295", "0.5719877", "0.57103604", "0.5707985", "0.5704495", "0.5701613", "0.5699825", "0.5697334", "0.5680508", "0.56764907", "0.5675687", "0.5670169", "0.56543267", "0.56388825", "0.5637521", "0.5637119", "0.56311804", "0.5616597", "0.56155264", "0.5610824", "0.56018996", "0.559356", "0.55866516", "0.55845004", "0.55742276", "0.55729806", "0.55707955", "0.55701274", "0.5567503", "0.5560632", "0.55604964", "0.5559458", "0.55549645", "0.55320126", "0.5525012", "0.5523985", "0.5521733", "0.55183166", "0.55140465", "0.5513702", "0.551079", "0.5506186", "0.5505274" ]
0.5657887
69
Read from values.txt to have parameters to run the Monte Carlo
public ArrayList<String> readFromFile(String fileName) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(fileName)); ArrayList<String> retour = new ArrayList<String>(); String line = null; while((line = reader.readLine()) != null) retour.add(line); reader.close(); return retour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateParameterValues()\n\t{\n\t\t/*\n\t\t * Initialize variables for storage of the actual parameter data and prepare the histogram bins aggregating them. \n\t\t */\n\t\t\n\t\t// Init storage.\n\t\tparameterValues.clear();\n\t\tparameterValues.put(\"alpha\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"eta\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"kappa\", new ArrayList<Double>(numberOfDivisions));\n\t\t\n\t\t// Init bins.\n\t\tfinal int numberOfBins \t\t\t\t\t= 50;\n\t\tMap<String, int[]> parameterBinLists\t= new HashMap<String, int[]>();\n\t\tparameterBinLists.put(\"alpha\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"eta\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"kappa\", new int[numberOfBins]);\n\t\t\n\t\t// Init random number generator.\n\t\tRandom randomGenerator\t= new Random();\n\t\t\n\t\t/*\n\t\t * Generate numberOfDivisions values for each parameter.\n\t\t */\n\t\t\n\t\tswitch (sampling_combobox.getValue())\n\t\t{\n\t\t\tcase \"Random\":\n\t\t\t\t// Generated values are allowed to be up to rangeSlider.getHighValue() and as low as rangeSlider.getLowValue().\n\t\t\t\tdouble intervalAlpha \t= rangeSliders.get(\"alpha\").getHighValue() - rangeSliders.get(\"alpha\").getLowValue();\n\t\t\t\tdouble intervalEta\t\t= rangeSliders.get(\"eta\").getHighValue() - rangeSliders.get(\"eta\").getLowValue();\n\t\t\t\tdouble intervalKappa\t= rangeSliders.get(\"kappa\").getHighValue() - rangeSliders.get(\"kappa\").getLowValue();\n\t\t\t\t\n\t\t\t\t// Generate random parameter values.\t\t\n\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\tparameterValues.get(\"alpha\").add(rangeSliders.get(\"alpha\").getLowValue() + randomGenerator.nextFloat() * intervalAlpha);\n\t\t\t\t\tparameterValues.get(\"eta\").add(rangeSliders.get(\"eta\").getLowValue() + randomGenerator.nextFloat() * intervalEta);\n\t\t\t\t\tparameterValues.get(\"kappa\").add(rangeSliders.get(\"kappa\").getLowValue() + randomGenerator.nextFloat() * intervalKappa);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Cartesian\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\tfinal double interval = (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\tparameterValues.get(param).add(rangeSliders.get(param).getLowValue() + interval * i + interval / 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Latin Hypercube\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\t// Calcualte bin interval.\n\t\t\t\t\tfinal double interval \t\t= (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\t// Minimal value allowed for current bin.\n\t\t\t\t\t\tfinal double currentBinMin = rangeSliders.get(param).getLowValue() + interval * i;\n\t\t\t\t\t\t// Generate value for this bin.\n\t\t\t\t\t\tparameterValues.get(param).add(currentBinMin + randomGenerator.nextFloat() * interval);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t//\t\t\t\t\tto do:\n\t//\t\t\t\t\t\t- test: check generate.txt.\n\t//\t\t\t\t\t\t- after that: START WRITING PAPER (SATURDAY!).\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Bin data for use in histograms/scented widgets.\n\t\t */\n\t\t\n\t\t// Bin data.\n\t\tfor (Map.Entry<String, ArrayList<Double>> entry : parameterValues.entrySet()) {\n\t\t\tdouble binInterval = (rangeSliders.get(entry.getKey()).getMax() - rangeSliders.get(entry.getKey()).getMin()) / numberOfBins;\n\t\t\t\n\t\t\t// Check every value and assign it to the correct bin.\n\t\t\tfor (double value : entry.getValue()) {\n\t\t\t\tint index_key = (int) ( (value - rangeSliders.get(entry.getKey()).getMin()) / binInterval);\n\t\t\t\t// Check if element is highest allowed entry.\n\t\t\t\tindex_key = index_key < numberOfBins ? index_key : numberOfBins - 1;\n\t\t\t\t\n\t\t\t\t// Increment content of corresponding bin.\n\t\t\t\tparameterBinLists.get(entry.getKey())[index_key]++;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Transfer data to scented widgets.\n\t\t */\n\t\t\n\t\t// Clear old data.\n\t\talpha_barchart.getData().clear();\n\t\teta_barchart.getData().clear();\n\t\tkappa_barchart.getData().clear();\n\n\t\t// Add data series to barcharts.\n\t\talpha_barchart.getData().add(generateParameterHistogramDataSeries(\"alpha\", parameterBinLists, numberOfBins));\n\t\teta_barchart.getData().add(generateParameterHistogramDataSeries(\"eta\", parameterBinLists, numberOfBins));\n\t\tkappa_barchart.getData().add(generateParameterHistogramDataSeries(\"kappa\", parameterBinLists, numberOfBins));\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n final Scanner in = new Scanner(new FileInputStream(\"C:\\\\Projects\\\\Solutions\\\\src\\\\tests.txt\"));\r\n\r\n final int Q = in.nextInt();\r\n for (int q = 0; q < Q; q++) {\r\n final long a = in.nextLong();\r\n final long b = in.nextLong();\r\n final long k = in.nextLong();\r\n final int m = in.nextInt();\r\n\r\n final Complex result = exponentiate(new Complex(a, b), k, m);\r\n\r\n System.out.println(result.real + \" \" + result.imaginary);\r\n }\r\n }", "private double[] getSettings() {\n\t\t\n\t\tdouble[] params;\n\t\tString inLine, fileName = \"settings.txt\";\n\t\tString[] tokens;\n\t\t\n\t\tint numParams = 8;\n\t\tparams = new double[numParams];\n\t\t\n\t\t// Perform the read in a catch block in case of exceptions\n\t\ttry {\n\t\t\n\t\t\t// Create a new buffered reader\n\t\t\tFile inFile = new File(fileName);\n\t\t\tFileInputStream fis = new FileInputStream(inFile);\n\t\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF8\");\n\t\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\n\t\t\t// Loop over the lines, reading the parameters into the array\n\t\t\tfor(int i = 0; i < numParams; i++) {\n\t\t\t\tinLine = br.readLine();\n\t\t\t\ttokens = inLine.split(\"=\");\n\t\t\t\tparams[i] = Double.parseDouble(tokens[1].replaceAll(\" \", \"\"));\n\t\t\t}\n\t\t\t\n\t\t\t// Close the reader\n\t\t\tbr.close();\n\t\t}\n\n\t\t// Catch errors\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error reading from settings file.\");\n\t\t\tSystem.exit(0);\n\t\t}\t\n\t\treturn params;\n\t}", "public static void readCVS(String filename){\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n while((line=reader.readLine())!=null){\n String item[] = line.split(\",\");\n String name = item[0];\n String value = item[1];\n switch (name){\n case \"useMaxTick\":{\n if(value.toLowerCase().equals(\"true\")){\n Params.useMaxTick = true;\n }else{\n Params.useMaxTick = false;\n }\n break;\n }\n case \"maxTick\":{\n Params.maxTick = Integer.parseInt(value);\n break;\n }\n case \"startPctWhites\":{\n Params.startPctWhites = Float.parseFloat(value);\n break;\n }\n case \"startPctBlacks\":{\n Params.startPctBlacks = Float.parseFloat(value);\n break;\n }\n case \"startPctGreys\":{\n Params.startPctGreys = Float.parseFloat(value);\n break;\n }\n case \"albedoOfWhites\":{\n Params.albedoOfWhites = Float.parseFloat(value);\n break;\n }\n case \"albedoOfBlacks\":{\n Params.albedoOfBlacks = Float.parseFloat(value);\n break;\n }\n case \"albedoOfGreys\":{\n Params.albedoOfGreys = Float.parseFloat(value);\n break;\n }\n case \"solarLuminosity\":{\n Params.solarLuminosity = Float.parseFloat(value);\n break;\n }\n case \"albedoOfSurface\":{\n Params.albedoOfSurface = Float.parseFloat(value);\n break;\n }\n case \"diffusePct\":{\n Params.diffusePct = Float.parseFloat(value);\n break;\n }\n case \"maxAge\":{\n Params.maxAge = Integer.parseInt(value);\n break;\n }\n case \"scenario\":{\n switch (Integer.parseInt(value)){\n case 0: {\n Params.scenario = Scenario.RAMP;\n break;\n }\n case 1: {\n Params.scenario = Scenario.LOW;\n break;\n }\n case 2: {\n Params.scenario = Scenario.OUR;\n break;\n }\n case 3: {\n Params.scenario = Scenario.HIGH;\n break;\n }\n case 4: {\n Params.scenario = Scenario.MAINTAIN;\n break;\n }\n default:\n break;\n }\n }\n default:\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n Path file = pf.dataFolder.resolve(\n pf.resource.getString(\"data.file\"));\n List<Double> parameters = parseParameters(loadParameters(file));\n List<Double> results = new ArrayList<>();\n Scanner s = new Scanner(System.in);\n System.out.print(\"How many runs would you like to conduct? \");\n int runs = Integer.parseInt(s.nextLine());\n for (int i = 0; i < runs; i++) {\n double result = Volumetrics.oilInPlaceMCCast(parameters);\n results.add(result);\n System.out.printf(\"%,.2f%n\", result);\n }\n Collections.sort(results);\n System.out.print(\"P50 value of results: \");\n System.out.printf(\"%,.2f%n\",results.get(results.size() / 2));\n }", "public static void main(String[] args) {\n double time=100000;\n lambda=0.012;\n m0=40;\n m1=43;\n m2=85;\n t1=32;\n p1=0.35;\n t2=40;\n p2=0.4;\n t3=65;\n p3=0.25;\n K=10;\n p01=0.8;\n p02=0.2;\n pout=0.5;\n p31=0.3;\n p32=0.2;\n \n simulate(time);\n }", "public void run(double[] parameters, String fileNameIn)\n\t{\n\t\ttry\n\t\t{\n\t\t\tnoAnimals = 2;\n\n\t\t\tdiffCo = new double[2][2];\n\t\t\tdiffusionRate = new double[2];\n\n\t\t\tdiffCo[0][0] = parameters[0];\n\t\t\tdiffCo[0][1] = parameters[1];\n\t\t\tdiffusionRate[0] = parameters[4];\n\t\t\tdiffCo[1][0] = parameters[2];\n\t\t\tdiffCo[1][1] = parameters[3];\n\t\t\tdiffusionRate[1] = parameters[5];\n\t\t\tstep = parameters[6];\n\t\t\tT = (int) parameters[7];\n\t\t\tfileName = fileNameIn;\n\t\t\tsetIo(new MapReader(fileName));\n\t\t\tcreateAnimals();\n\t\t\tcreateGrid();\n\t\t\tcreateOutput();\n\t\t\n\t\t\tgetOutput().cleanDirectory(\"./outputs/\");\n\t\t\t\n\t\t\tgetOutput().calcLandArea(getIo().getNeighbours());\n\t\t\n\t\t\tSystem.out.print(\"Simulating populations...\");\n\n\t\t\tint stepnum = 0;\n\n\t\t\tfor (double i = 0; i < t; i += getStep()) {\n\t\t\t\n\t\t\t\t\tif ((stepnum % T == 0) || (stepnum == 0)) \n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int k = 0; k < animals.length; k++) \n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tgetOutput().printMeanDensity(\n\t\t\t\t\t\t\t\t\t\"./outputs/Mean\" + animals[k].getName()\n\t\t\t\t\t\t\t\t\t\t\t+ \"Densities\", animals[k].getDensities(), i);\n\t\t\t\t\t\t\tgetOutput().printPpm(\"./outputs/\" + animals[k].getName()\n\t\t\t\t\t\t\t+ stepnum + \".ppm\", animals[k].getDensities(),getIo().getNeighbours());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print('.');\n\n\t\t\t\t\t}\n\n\t\t\t\tgetGrid().syncUpdate();\n\t\t\t\tstepnum += 1;\n\n\t\t\t}\n\n\t\t\tif(animals[0].bigChange)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\n*** Warning:\\nVery large changes in local density occurred over single iterations, suggest you use a smaller timestep\\n***\\n\");\n\t\t\t}\n\t\t\tSystem.out.println(\"...done\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something's gone wrong\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "public void run() {\n\t\tparams.set(\"Status\", \"Configuring\");\n\t\tJob.animate();\n\t\t\n\t\tint tsim = params.iget(\"Sim Time\");\n\t\tReadInUtil riu = new ReadInUtil(params.sget(\"Parameter File\"));\n\t\tp2 = riu.getOFCparams();\n\t\tdouble[] av = new double[]{0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};\n\t\triu = null;\n\t\t\n\t\twhile(true){\n\t\t\tfor(double alpha : av){\n\t\t\t\tparams.set(\"Status\", \"Intializing\");\n\t\t\t\tparams.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tp2.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tJob.animate();\n\t\t\t\tmodel = new ofc2Dfast(p2);\n\t\t\t\tmodel.setClength(tsim);\n\t\t\t\t// read in stress from file\n\t\t\t\triu = new ReadInUtil(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\");\n\t\t\t\tmodel.setStress(riu.getData(0));\t\t\t\t\n\t\t\t\t\n\t\t\t\t// simulate <i>tsim</i> time steps\n\t\t\t\tfor(int tt = 0 ; tt < tsim ; tt++){\n\t\t\t\t\tmodel.evolve(tt, false);\n\t\t\t\t\tif(tt%1000 == 0){\n\t\t\t\t\t\tparams.set(\"Status\",tt);\n\t\t\t\t\t\tJob.animate();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// append data to data file\n\t\t\t\tmodel.appendCdata(model.getOutdir()+File.separator+model.getBname()+\"_Catalogue_\"+(int)(100*alpha)+\".txt\",tsim);\n\t\t\n\t\t\t\t// replace old stress file with new stress file\n\t\t\t\tPrintUtil.overwriteFile(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\",model.getStress());\n\t\t\t\t\n\t\t\t\t// print summary of events in log file\n\t\t\t\teditLogFile(tsim, alpha);\n\t\t\t\t\n\t\t\t\t// update seed\n\t\t\t\tp2.set(\"Random Seed\", p2.iget(\"Random Seed\")+1);\n\t\t\t}\n\t\t}\n\t}", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "public static void read_paramenters() {\n\t\ttry {\n\t\t // TODO CA: check that this work on Windows!\n String home = System.getProperty(\"user.home\");\n File parametersFile = new File(home + \"/\" + parametersFilename);\n\t\t\tScanner sc = new Scanner(parametersFile);\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinitialize_parameters(sc.nextLine());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error: File \" + parametersFilename + \" not found!\");\n\t\t\tSystem.out.println(\"Make sure that file \" + parametersFilename + \" is in the correct format!\");\n\t\t\tSystem.out.println(\"The format of the file is:\");\n\t\t\tSystem.out.println(\"host ap-dev.cs.ucy.ac.cy\");\n\t\t\tSystem.out.println(\"port 43\");\n\t\t\tSystem.out.println(\"cache res/\");\n\t\t\tSystem.out.println(\"access_token <api_key> \" +\n \"[The API key has be generated based on your google account through the anyplace architect]\");\n\t\t\t// TODO CA: when this error is shown, prompt, with Y or N to initialize that file with defaults\n // if yes, then read parameters again\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public void execute(String[] args) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tString formula = args[0];\n\t\t\tString C12_File = args[1];\n\t\t\tString C13_File = args[2];\n\t\t\tString N15_File = args[3];\n\t\t\tString sampled_element = args[4];\n\t\t\tint charge = new Integer(args[5]);\n\t\t\tdouble ppm = new Double(args[6]);\n\t\t\tboolean single_check = false;\n\t\t\tdouble ppm_val = ppm;\n\t\t\t//for (double ppm_val = 10; ppm_val <= 100; ppm_val = ppm_val + 10) {\n\t\t\t_ppm = ppm_val;\n\t\t\t\n\t\t\t\n\t\t\tString H2_OutFile = \"C:\\\\Users\\\\tshaw\\\\Desktop\\\\METABOLOMICS\\\\MISSILE\\\\Drew_MISSILE_Exp1_DataFitting\\\\Supplementary\\\\\" + formula + \"\\\\\" + formula + \"_Sampling_H2.txt\";\n\t\t\tString C12_OutFile = \"C:\\\\Users\\\\tshaw\\\\Desktop\\\\METABOLOMICS\\\\MISSILE\\\\Drew_MISSILE_Exp1_DataFitting\\\\Supplementary\\\\\" + formula + \"\\\\\" + formula + \"_Sampling_C12.txt\";\n\t\t\tString C13_OutFile = \"C:\\\\Users\\\\tshaw\\\\Desktop\\\\METABOLOMICS\\\\MISSILE\\\\Drew_MISSILE_Exp1_DataFitting\\\\Supplementary\\\\\" + formula + \"\\\\\" + formula + \"_Sampling_C13.txt\";\n\t\t\tString N15_OutFile = \"C:\\\\Users\\\\tshaw\\\\Desktop\\\\METABOLOMICS\\\\MISSILE\\\\Drew_MISSILE_Exp1_DataFitting\\\\Supplementary\\\\\" + formula + \"\\\\\" + formula + \"_Sampling_N15.txt\";\n\t\t\t\n\t\t\tdouble big_step = 0.05;\n\t\t\t\n\t\t\tint _charge = charge;\n\t\t\t\n\t\t\t//String formula = \"C100N29O36H147\"; // this looks the best\n\n\t\t\t//String formula = \"C100N29O28H274\";\n\t\t\t//String formula = \"C100N29O26S1H274\";\n\t\t\t//String formula = \"C100N29O24S2H274\"; // pretty close too\n\t\t\t//String formula = \"C100N29O34SH147\"; //\n\t\t\t//String formula = \"O9H290C100S9N29\"; // another candidate\n\t\t\t//String formula = \"C100N29O33S5H36\"; //\n\t\t\t//String formula = \"C100N29O21S7H163\";\n\t\t\t\n\t\t\t//\n\n\t\t\t//printTime();\n\t\t\t//IsotopePattern reference_pattern = getPeakInfo(\"C:\\\\Users\\\\tshaw\\\\Desktop\\\\METABOLOMICS\\\\MISSILE\\\\DataFitting\\\\C24H49NO7P_C12.peak\");\n\t\t\t//IsotopePattern reference_pattern = getPeakInfo(\"C:\\\\Users\\\\tshaw\\\\Desktop\\\\METABOLOMICS\\\\MISSILE\\\\DataFitting\\\\unknown_C12.peak\");\n\t\t\tIsotopePattern reference_pattern = getPeakInfo(C12_File);\n\t\t\t\n\t\t\treference_pattern = IsotopePatternManipulator.normalize(reference_pattern);\n\t\t\t\n\t\t\tdouble C12 = 0.9893;\n\t\t\tdouble N14 = 0.99632;\n\t\t\tdouble H1 = 0.999885;\n\t\t\t\n\t\t\tdouble simulated_C12 = -1;\n\t\t\tdouble simulated_N15 = -1;\n\t\t\tdouble simulated_C13 = -1;\n\t\t\tdouble simulated_H2 = -1;\n\t\t\tIsotopePattern query_pattern = null;\n\t\t\t\n\t\t\tif (single_check) {\n\t\t\t\tquery_pattern = calculate_pattern(formula, C12, N14, H1, _charge);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < query_pattern.getNumberOfIsotopes(); i++) {\n\t\t\t\t\tIsotopeContainer container = query_pattern.getIsotope(i);\n\t\t\t\t\tSystem.out.println(container.getMass() + \"\\t\" + container.getIntensity());\n\t\t\t\t}\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\n\t\t\tboolean check_C12 = false;\n\t\t\tboolean check_C13 = false;\n\t\t\tboolean check_H2 = false;\n\t\t\tboolean check_N15 = false;\n\t\t\tif (sampled_element.equals(\"C12\")) {\n\t\t\t\tcheck_C12 = true;\n\t\t\t}\n\t\t\tif (sampled_element.equals(\"C13\")) {\n\t\t\t\tcheck_C13 = true;\n\t\t\t}\n\t\t\tif (sampled_element.equals(\"N15\")) {\n\t\t\t\tcheck_N15 = true;\n\t\t\t}\n\t\t\tdouble step = 0.001;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tif (check_H2) {\n\t\t\t\t\t\n\t\t\t\tboolean doOnce = true;\n\t\t\t\tdouble smallest = 0;\n\t\t\t\tdouble largest = 1;\n\t\t\t\tdouble prevIndex = 0;\n\t\t\t\tfor (double H1_sample = 0; H1_sample <= 1; H1_sample += big_step) {\n\t\t\t\t\t\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12, N14, H1_sample, _charge);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Number of isotopes: \" + query_pattern.getNumberOfIsotopes());\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (similarity_score > 0) {\n\t\t\t\t\t\tif (doOnce) {\n\t\t\t\t\t\t\tsmallest = prevIndex;\n\t\t\t\t\t\t\tdoOnce = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlargest = H1_sample;\n\t\t\t\t\t}\n\t\t\t\t\tprevIndex = H1_sample;\n\t\t\t\t}\n\t\t\t\tlargest = largest + big_step;\n\t\t\t\tif (largest <= (1 - big_step)) {\n\t\t\t\t\tlargest += big_step;\n\t\t\t\t\tif (largest >= 1) {\n\t\t\t\t\t\tlargest = 1.0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble max_score = 0;\n\t\t\t\tfor (double H1_sample = 0; H1_sample < smallest; H1_sample += step) {\n\t\t\t\t\tSystem.out.println(H1_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t\tfor (double H1_sample = smallest; H1_sample <= largest; H1_sample += step) {\n\t\t\t\t\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12, N14, H1_sample, _charge);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Number of isotopes: \" + query_pattern.getNumberOfIsotopes());\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (max_score < similarity_score) {\n\t\t\t\t\t\tmax_score = similarity_score;\n\t\t\t\t\t\tsimulated_H2 = H1_sample;\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(similarity_score);\n\t\t\t\t\tSystem.out.println(H1_sample + \"\\t\" + similarity_score);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (double H1_sample = largest + step; H1_sample <= 1.0; H1_sample += step) {\n\t\t\t\t\tSystem.out.println(H1_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (check_C13) {\n\t\t\t\treference_pattern = getPeakInfo(C13_File);\n\t\t\t\treference_pattern = IsotopePatternManipulator.normalize(reference_pattern);\n\t\t\t\t\n\t\t\t\tboolean doOnce = true;\n\t\t\t\tdouble smallest = 0;\n\t\t\t\tdouble largest = 1;\n\t\t\t\tdouble prevIndex = 0;\n\t\t\t\tfor (double C12_sample = 0; C12_sample <= 1; C12_sample += big_step) {\n\t\t\t\t\t\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12_sample, N14, H1, _charge);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Number of isotopes: \" + query_pattern.getNumberOfIsotopes());\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (similarity_score > 0) {\n\t\t\t\t\t\tif (doOnce) {\n\t\t\t\t\t\t\tsmallest = prevIndex;\n\t\t\t\t\t\t\tdoOnce = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlargest = C12_sample;\n\t\t\t\t\t}\n\t\t\t\t\tprevIndex = C12_sample;\n\t\t\t\t}\n\t\t\t\tlargest = largest + big_step;\n\t\t\t\tif (largest <= 1 - big_step) {\n\t\t\t\t\tlargest += big_step;\n\t\t\t\t\tif (largest >= 1) {\n\t\t\t\t\t\tlargest = 1.0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble max_score = 0;\n\t\t\t\tfor (double C12_sample = 0; C12_sample < smallest; C12_sample += step) {\n\t\t\t\t\tSystem.out.println(C12_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t\tfor (double C12_sample = smallest; C12_sample <= largest; C12_sample += step) {\n\t\t\t\t\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12_sample, N14, H1, _charge);\n\t\t\t\t\t\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (max_score < similarity_score) {\n\t\t\t\t\t\tmax_score = similarity_score;\n\t\t\t\t\t\tsimulated_C13 = C12_sample;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println((1 - C12_sample) + \"\\t\" + similarity_score);\n\t\t\t\t}\n\t\t\t\tfor (double C12_sample = largest + step; C12_sample <= 1.0; C12_sample += step) {\n\t\t\t\t\tSystem.out.println(C12_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (check_N15) {\n\t\t\t\treference_pattern = getPeakInfo(N15_File);\n\t\t\t\treference_pattern = IsotopePatternManipulator.normalize(reference_pattern);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean doOnce = true;\n\t\t\t\tdouble smallest = 0;\n\t\t\t\tdouble largest = 1;\n\t\t\t\tdouble prevIndex = 0;\n\t\t\t\tfor (double N14_sample = 0; N14_sample < smallest; N14_sample += step) {\n\t\t\t\t\tSystem.out.println(N14_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t\tfor (double N14_sample = 0; N14_sample <= 1; N14_sample += big_step) {\n\t\t\t\t\t\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12, N14_sample, H1, _charge);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Number of isotopes: \" + query_pattern.getNumberOfIsotopes());\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (similarity_score > 0) {\n\t\t\t\t\t\tif (doOnce) {\n\t\t\t\t\t\t\tsmallest = prevIndex;\n\t\t\t\t\t\t\tdoOnce = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlargest = N14_sample;\n\t\t\t\t\t}\n\t\t\t\t\tprevIndex = N14_sample;\n\t\t\t\t}\n\t\t\t\tlargest = largest + big_step;\n\t\t\t\tif (largest <= 1 - big_step) {\n\t\t\t\t\tlargest += big_step;\n\t\t\t\t\tif (largest >= 1) {\n\t\t\t\t\t\tlargest = 1.0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble max_score = 0;\n\t\t\t\tfor (double N14_sample = smallest; N14_sample <= largest; N14_sample += step) {\n\t\t\t\t//double N14_sample = 0.01;\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12, N14_sample, H1, _charge);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Number of isotopes: \" + query_pattern.getNumberOfIsotopes());\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (max_score < similarity_score) {\n\t\t\t\t\t\tmax_score = similarity_score;\n\t\t\t\t\t\tsimulated_N15 = N14_sample;\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(similarity_score);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(N14_sample + \"\\t\" + similarity_score);\n\t\t\t\t}\n\t\t\t\tfor (double N14_sample = largest + step; N14_sample <= 1.0; N14_sample += step) {\n\t\t\t\t\tSystem.out.println(N14_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (check_C12) {\n\t\t\t\treference_pattern = getPeakInfo(C12_File);\n\t\t\t\treference_pattern = IsotopePatternManipulator.normalize(reference_pattern);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean doOnce = true;\n\t\t\t\tdouble smallest = 0;\n\t\t\t\tdouble largest = 1;\n\t\t\t\tdouble prevIndex = 0;\n\t\t\t\tfor (double C12_sample = 0; C12_sample <= 1; C12_sample += big_step) {\n\t\t\t\t\t\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12_sample, N14, H1, _charge);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Number of isotopes: \" + query_pattern.getNumberOfIsotopes());\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (similarity_score > 0) {\n\t\t\t\t\t\tif (doOnce) {\n\t\t\t\t\t\t\tsmallest = prevIndex;\n\t\t\t\t\t\t\tdoOnce = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlargest = C12_sample;\n\t\t\t\t\t}\n\t\t\t\t\tprevIndex = C12_sample;\n\t\t\t\t}\n\t\t\t\tlargest = largest + big_step;\n\t\t\t\tif (largest <= 1 - big_step) {\n\t\t\t\t\tlargest += big_step;\n\t\t\t\t\tif (largest >= 1) {\n\t\t\t\t\t\tlargest = 1.0;\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\tdouble max_score = 0;\n\t\t\t\tfor (double C12_sample = 0; C12_sample < smallest; C12_sample += step) {\n\t\t\t\t\tSystem.out.println(C12_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t\tfor (double C12_sample = smallest; C12_sample <= largest; C12_sample += step) {\n\t\t\t\t\n\t\t\t\t\tquery_pattern = calculate_pattern(formula, C12_sample, N14, H1, _charge);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Number of isotopes: \" + query_pattern.getNumberOfIsotopes());\n\t\t\t\t\tIsotopePatternSimilarity similarity = new IsotopePatternSimilarity();\n\t\t\t\t\tdouble similarity_score = similarity.compare(reference_pattern, query_pattern);\n\t\t\t\t\tif (max_score < similarity_score) {\n\t\t\t\t\t\tmax_score = similarity_score;\n\t\t\t\t\t\tsimulated_C12 = C12_sample;\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(similarity_score);\n\t\t\t\t\t//out.write(C12_sample + \"\\t\" + similarity_score + \"\\n\");\n\t\t\t\t\tSystem.out.println(C12_sample + \"\\t\" + similarity_score);\n\t\t\t\t}\n\t\t\t\tfor (double C12_sample = largest + step; C12_sample <= 1.0; C12_sample += step) {\n\t\t\t\t\tSystem.out.println(C12_sample + \"\\t\" + 0.0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sampled_element.equals(\"C12\")) {\n\t\t\t\tSystem.out.println(\"Simulated Result: \" + formula + \"\\tcharge:\" + _charge + \"\\tC12:\" + simulated_C12);\n\t\t\t} else if (sampled_element.equals(\"C13\")) {\n\t\t\t\tdouble result = (1 - simulated_C13);\n\t\t\t\tif (result < 0) {\n\t\t\t\t\tresult = 0;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Simulated Result: \" + formula + \"\\tcharge:\" + _charge + \"\\tC13:\" + result);\n\t\t\t} else if (sampled_element.equals(\"N15\")) {\n\t\t\t\tdouble result = (1 - simulated_N15);\n\t\t\t\tif (result < 0) {\n\t\t\t\t\tresult = 0;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Simulated Result: \" + formula + \"\\tcharge:\" + _charge + \"\\tN15:\" + result);\n\t\t\t}\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Property(String configFileName) {\r\n\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\r\n\t\tif (configFileName == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tScanner in = null;\r\n\t\tScanner scan = null;\r\n\t\ttry {\r\n\t\t\tFile conf = new File(configFileName);\r\n\t\t\tin = new Scanner(conf);\r\n\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\tString line = in.nextLine().replace('=', ',');\r\n\t\t\t\tscan = new Scanner(line);\r\n\t\t\t\tscan.useDelimiter(\",\");\r\n\t\t\t\tString firstWord = scan.next();\r\n\t\t\t\tif (firstWord.equals(\"positive\")) {\r\n\t\t\t\t\tpositive = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"negative\")) {\r\n\t\t\t\t\tnegative = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"stop\")) {\r\n\t\t\t\t\tstop = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"scoringmethod\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tscoringmethod = Integer.parseInt(next);\r\n\t\t\t\t} else if (firstWord.equals(\"mindistance\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tmindistance = Double.parseDouble(next);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} finally{\r\n\t\t\tif(scan != null)\r\n\t\t\t\tscan.close();\r\n\t\t}\r\n\t}", "public void robotInit() {\r\n try {\r\n FileConnection fc;\r\n InputStreamReader reader;\r\n char[] word = new char[100000];\r\n char check = 0;\r\n int count = 0;\r\n int length;\r\n int k;\r\n int decimal;\r\n double[] constants = new double[50];\r\n\r\n fc = (FileConnection) Connector.open(\"file:///\" + \"Constants.txt\", Connector.READ);\r\n reader = new InputStreamReader(fc.openInputStream());\r\n reader.read(word);\r\n k = 0;\r\n while (check != '*') {\r\n while (check != '=') {\r\n check = word[count];\r\n count++;\r\n }\r\n length = word[count];\r\n\r\n count += 2;\r\n\r\n decimal = 0;\r\n \r\n for (int i = 1; i <= length; i++) {\r\n if(word[count] == '.'){\r\n decimal = length - i;\r\n constants[k] /= 10;\r\n }\r\n constants[k] += tenPower(length - i) * (double)(word[count++]);\r\n }\r\n constants[k] /= tenPower(decimal);\r\n k++;\r\n check = word[++count];\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "private void generateConfig() \n {\n Random randomSpin = new Random();\n //System.out.println(\"Generated lattice looks like this:\");\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < m; j++) {\n if (randomSpin.nextDouble() < 0.5) {\n lattice[i][j] = -1; \n } else {\n lattice[i][j] = 1;\n }\n // System.out.printf(\"%d \", lattice[i][j]);\n }\n // System.out.println();\n\n }\n }", "void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n System.setProperty(\"current.date\", dateFormat.format(new Date()));\n // set path\n if (args.length > 1) path = args[1];\n // лучше называть каталог с результатами осмысленно :)\n File cfgFile = new File(args[0]);\n PropertyConfigurator.configure(cfgFile.getAbsolutePath());\n \n File[] files = getFilesInDir(path);\n for (File file : files) {\n // среднее считать - за сколько поколений в среднем достигается максимальнй фитнес - проще в расчетах писать и пихать в файл\n try {\n read(file.getAbsolutePath());\n System.out.println(\"Stats: \" + stats.size());\n }catch (IOException ex) { log.info(ex); }\n }\n \n System.out.println(\"bestFitness: \" + bestFitness);\n System.out.println(\"bestFile : \" + bestFile);\n System.out.println(\"bestUrgent : \" + bestUrgent);\n \n for (Integer id : stats.keySet()) {\n Stat stat = stats.get(id);\n //System.out.println(stat);\n //System.out.println(id + \". SumFit: \" + stat.sumFit() + \". SumUrg: \" + stat.sumUrgent());\n //System.out.println(id + \". AvgFit: \" + stat.avgFit() + \". avgUrg: \" + stat.avgUrgent());\n log.info(stat.avgFit() + \" \" + stat.avgUrgent() + \" \" + stat.id());\n }\n }", "public void simulate() {\n\n\n\n //read file into stream, try-with-resources\n try (Stream<String> stream = Files.lines(Paths.get(ClassLoader.getSystemResource(fileName).toURI()))) {\n\n stream.forEach(c -> { logger.info(\"Processing raw command :\" + c );\n String[] robotCmdArgs = c.split(DELIM_REG_EX);\n processSingleCmd(robotCmdArgs);\n\n }\n );\n\n } catch (IOException e) {\n e.printStackTrace();\n logger.info(\"IOException processing commands :\" );\n }\n catch (URISyntaxException e) {\n e.printStackTrace();\n logger.info(\"URISyntaxException processing commands :\" );\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tint numSets = 10000;//10000;//500\r\n\t\tint numElements = 1000;//1000; //50\r\n\t\t\r\n//\t\tint[] betas = {2, 4, 8, 16, 32};\r\n//\t\tString[] probfiles = {\"scpnrg1.txt\", \"scpnrg2.txt\", \"scpnrg5.txt\"};\r\n//\t\tString[] probfiles = {\"scpnrh1.txt\", \"scpnrh3.txt\", \"scpnrh5.txt\"};\r\n\t\tint[] betas = {5};\r\n\t\tString[] probfiles = {\"scpnrg1.txt\", \"scpnrg5.txt\"};\r\n\t\tint numTimesRun = 1;\r\n\t\tint runningTime = 10;\r\n\t\tPrintWriter printWriter = new PrintWriter(new File(\"tuning_testIII.csv\"));\r\n\t\tfor(String dataset: probfiles){\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tfor(int beta: betas){\r\n\t\t\t\tfor(int i =0 ; i<numTimesRun; i++){\r\n\t\t\t\tDataObject data = new DataObject((\"src/\" + dataset), numSets);\r\n\t\t\t\tGRASP1 grasp = new GRASP1(numElements, numSets, data.getSets());\r\n\t\t\t\tint solution = grasp.run(runningTime, beta);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstringBuilder.append(\"Profiles: \" + \";\" + dataset + \";\");\r\n\t\t\t\tstringBuilder.append(\"The beta value: \" + \";\" + beta + \";\");\r\n\t\t\t\tstringBuilder.append(\"ItrationCount\" + \";\" + grasp.itrationCount + \";\");\r\n\t\t\t\tstringBuilder.append(\"Solution value: \" + \";\" + solution + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprintWriter.write(stringBuilder.toString());\r\n\t\t}\r\n\t\tprintWriter.close();\r\n\t\tSystem.out.println(\"done!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tScanner inputStream = null;\n\t\ttry {\n\t\t\tinputStream = new Scanner( new FileInputStream(\"/Users/mr.a/Desktop/eclipse/Codechef/src/stuff.txt\"));\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File stuff .txt was not found\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tint t = inputStream.nextInt();\n\t\tinputStream.nextLine();\n\t\tfor(int i =0 ; i<t;i++) \n\t\t{\n\t\t\tString g = inputStream.nextLine();\n\t\t\tString number[] = g.split(\" \");\n\t\t\tint arr[] = new int[number.length];\n\t\t\tfor(int j =0 ; j < number.length ; j++ )\n\t\t\t{\n\t\t\t\tarr[j] = Integer.parseInt(number[j]);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(MaxValue(arr));\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void getParameters() {\r\n\t\ttry {\r\n\t\t\tp_encoding = \"ISO-8859-1\";\r\n\t\t\tp_page_encoding = \"utf-8\";\r\n\t\t\tp_labels_data_file = \"resources/units/labels.txt\";\r\n\t\t\tp_multiplier_data_file = \"resources/units/muldata.txt\";\r\n\t\t\tp_category_data_file = \"resources/units/catdata.txt\";\r\n\t\t\tp_unit_data_file = \"resources/units/unitdata.txt\";\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treadDataFile(0, p_multiplier_data_file); //read data from external text file\r\n\t\treadDataFile(1, p_category_data_file); //read data from external text file\r\n\t\treadDataFile(2, p_unit_data_file); //read data from external text file\r\n\t\treadDataFile(3, p_labels_data_file); //read data from external text file\r\n\t}", "private static ArrayList<String> loadParameters() throws IOException {\r\n BufferedReader br = new BufferedReader(new FileReader(new File(\"conf.data\")));\r\n\r\n ArrayList<String> params = new ArrayList<>();\r\n\r\n String param;\r\n while ((param = br.readLine()) != null ){\r\n params.add(param);\r\n }\r\n\r\n return params;\r\n }", "public static void main(String[] args)\r\n {\r\n //GammaDistribution gam = new GammaDistribution(10.0, 20.0);\r\n //double gamR = gam.sample();\r\n //System.out.println(gamR);\r\n \r\n for(String s : args)\r\n {\r\n System.out.println(s);\r\n }\r\n //if we run the code without any arguments then use default, else overwrite\r\n int lnth = args.length; \r\n if (lnth != 0 ) {\r\n int diff = 0;\r\n try {\r\n //totalT = Integer.valueOf(args[0+diff]);\r\n //totalY = Integer.valueOf(args[1+diff]);\r\n //totalYears = Integer.valueOf(args[2+diff]);\r\n dataSet = args[0+diff];\r\n yrs = Integer.valueOf(args[1+diff]);\r\n spreadYrs = Integer.valueOf(args[2+diff]);\r\n maxDepth = Integer.valueOf(args[3+diff]);\r\n popSize = Integer.valueOf(args[4+diff]);\r\n tournamentSize = (popSize / 100) - 1;\r\n mutProb = Double.valueOf(args[5+diff]);\r\n xoverProb = Double.valueOf(args[6+diff]); \r\n elitismPercentage = Double.valueOf(args[7+diff]);\r\n primProb = Double.valueOf(args[8+diff]);\r\n terminalNodeCrossBias = Double.valueOf(args[9+diff]);\r\n nGens = Integer.valueOf(args[10+diff]);\r\n lowerLowBound = Double.valueOf(args[11+diff]);\r\n lowerUpBound = Double.valueOf(args[12+diff]);\r\n upperLowBound = Double.valueOf(args[13+diff]);\r\n upperUpBound = Double.valueOf(args[14+diff]);\r\n movingAverage = Integer.valueOf(args[15+diff]);\r\n totalNumParams = 0;\r\n additionalParameters = 0;\r\n parameterIndex.add(0);\r\n for (int i = 16; i < args.length -1 + diff; i++) { // minus 1 as the last parameter is whether to use bound \r\n if (Integer.valueOf(args[i]) == 1) { \r\n totalNumParams++;\r\n parameterIndex.add(i-15); //parameterIndex starts from 1, becuase my pred value is in column 0\r\n if (i >= args.length -9 + diff) {//minus 1 to compensate for last value and minus 8 for the 9 parameters\r\n additionalParameters++;\r\n }\r\n } \r\n }\r\n lowerBound = Integer.valueOf(args[args.length - 1]); //last value is whether to use a lower bound\r\n } catch (ArrayIndexOutOfBoundsException t) {\r\n System.out.println(\"args not enough, please check\");\r\n }\r\n } else {\r\n for (int i = 0; i < totalNumParams; i++) {\r\n parameterIndex.add(i);\r\n }\r\n }\r\n FReader read = new FReader();\r\n header = read.readHeader(\"Data/header.txt\");\r\n parametersLength = header.length - 9; //take away the 9 parameters that will be calculated within GP\r\n \r\n Expr[] evolvedMethodParameters = new Expr[totalNumParams-1];\r\n eval = new PredictionEvaluatorTrue2(nRuns, contractLength, parameterIndex, parametersLength, additionalParameters);\r\n \r\n Function evolvedMethod = new Function(Double.TYPE, new Class[0]);\r\n TreeManager.evolvedMethod = evolvedMethod;\r\n \r\n \r\n for (int i=0; i<totalNumParams-1; i++) {\r\n \r\n evolvedMethodParameters[i] = new Parameter(i);\r\n } \r\n TreeManager.evolvedMethodParameters = evolvedMethodParameters;\r\n \r\n ArrayList methodSet = new ArrayList();\r\n methodSet.add(ADD);\r\n methodSet.add(SUB);\r\n methodSet.add(MUL);\r\n methodSet.add(DIV);\r\n methodSet.add(LOG);\r\n methodSet.add(SQRT);\r\n methodSet.add(POW);\r\n methodSet.add(MOD);\r\n //methodSet.add(SIN);\r\n //methodSet.add(COS);\r\n methodSet.add(EXP);\r\n\r\n\r\n Random r = new Random();\r\n ArrayList terminalSet = new ArrayList();\r\n// for (int i = 0; i < terminals; i++)\r\n// {\r\n// double rc = r.nextDouble();\r\n// terminalSet.add(new Constant(new Double(rc * 100.0D), Double.TYPE)); //Building in a function representing random numbers minimum and maximum, consider avearge\r\n// }\r\n// \r\n// //Add in numbers between 0 and 2 in blocks of 0.05 for the purpose of weights\r\n// \r\n// for (int i = 0; i < weights; i++)\r\n// {\r\n// double rc = (1 + i) * 0.05;\r\n// terminalSet.add(new Constant(new Double(rc), Double.TYPE));\r\n// }\r\n \r\n //terminalSet.add(new Constant(new Double(0.0D), Double.TYPE));\r\n //terminalSet.add(new Constant(new Double(3.141592653589793D), Double.TYPE));\r\n \r\n //For old data\r\n //Dynamically adds the number of parameters to be estimated, need to refer to data to input correct values\r\n //for (int i = 0; i < totalT; i++) {\r\n // terminalSet.add(new Parameter(i, Double.TYPE, Boolean.valueOf(true), \"Rain_t-\"+(i+1)));\r\n //}\r\n //for (int i = 0; i < totalY; i++) {\r\n // terminalSet.add(new Parameter(i+totalT, Double.TYPE, Boolean.valueOf(true), \"Year_t-\"+(i+1)));\r\n //}\r\n \r\n //For new data have headers read in and name accordingly.\r\n \r\n for (int i = 0; i < totalNumParams-1; i++) {\r\n terminalSet.add(new Parameter(i, Double.TYPE, Boolean.valueOf(true), header[parameterIndex.get(i)]));\r\n }\r\n \r\n \r\n //consider 3 ERC's one big range, 2 smaller ranges between -1 and 1\r\n terminalSet.add(new Constant(\"ERC\", Double.TYPE));\r\n terminalSet.add(new Constant(\"ERC2\", Double.TYPE));\r\n terminalSet.add(new Constant(\"ERC3\", Double.TYPE));\r\n \r\n double primProb = 0.6D;\r\n double terminalNodeCrossBias = 0.1D;\r\n TreeManager tm = new TreeManager(methodSet, terminalSet, primProb, maxInitialDepth, maxDepth, terminalNodeCrossBias);\r\n \r\n\r\n\r\n\r\n System.out.println(\"============= Experimental parameters =============\");\r\n System.out.println(\"Maximum initial depth: \" + maxInitialDepth);\r\n System.out.println(\"Maximum depth: \" + maxDepth);\r\n System.out.println(\"Primitive probability in Grow method: \" + primProb);\r\n System.out.println(\"Terminal node crossover bias: \" + terminalNodeCrossBias);\r\n System.out.println(\"No of generations: \" + nGens);\r\n System.out.println(\"Population size: \" + popSize);\r\n System.out.println(\"Tournament size: \" + tournamentSize);\r\n System.out.println(\"Crossover probability: \" + xoverProb);\r\n System.out.println(\"Reproduction probability: \" + (1.0D - xoverProb));\r\n System.out.println(\"Mutation probalitity: \" + mutProb);\r\n System.out.println(\"Elitism percentage: \" + elitismPercentage);\r\n System.out.println(\"===================================================\");\r\n \r\n \r\n \r\n \r\n \r\n StatisticalSummary.logExperimentSetup(methodSet, terminalSet, maxInitialDepth, maxDepth, primProb, terminalNodeCrossBias, nGens, popSize, tournamentSize, mutProb, xoverProb); \r\n \r\n StatisticalSummary stat = null;\r\n filenameS = \"Results/Results_\"+yrs+\"_\"+spreadYrs+\"_MA\"+movingAverage+\"_\"+contractLength;\r\n for (int i = 0; i < nRuns; i++)\r\n {\r\n System.out.println(\"========================== Experiment \" + i + \" ==================================\");\r\n File experiment = new File(filenameS + \"/Experiment \"+i);\r\n experiment.mkdirs();\r\n stat = new StatisticalSummary(nGens, popSize, i);\r\n alg = new GA(tm, eval, popSize, tournamentSize, stat, mutProb, elitismPercentage, xoverProb, nRuns);\r\n alg.evolve(nGens, i);\r\n System.out.println(\"===============================================================================\");\r\n }\r\n}", "private void loadParameters() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new BufferedInputStream(Files.newInputStream(path))));\n\n\t\tdo {\n\t\t\tString line = reader.readLine();\n\t\t\tif (line == null || line.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (line.startsWith(\"--\") || line.startsWith(\" \")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString[] tokens = line.trim().split(\"\\\\s+\");\n\t\t\tparameters.put(Parameter.valueOf(tokens[0]), tokens[1]);\n\t\t} while (true);\n\n\t}", "@Override\n protected void loadConfig(String fileName){\n fileName = PSO_PATH + fileName;\n File file = new File(fileName);\n try {\n Scanner sc = new Scanner(file); \n String line = sc.nextLine();\n List<List<String>> list = Arrays.asList(line.split(\",\"))\n .stream()\n .map(s -> Arrays.asList(s.split(\":\"))\n .stream()\n .map(n -> n.replaceAll(\"[^a-zA-Z0-9_.]\", \"\"))\n .collect(Collectors.toList())\n )\n .collect(Collectors.toList());\n\n this.initialTemperature = Double.parseDouble(list.get(0).get(1));\n this.coolingRate = Double.parseDouble(list.get(2).get(1));\n sc.close();\n } \n catch(IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n }", "public void run(double[] parameters, String fileNameIn, double[] parRange, int indicator) \n\t{\n\t\t\tnoAnimals = 2;\n\n\t\t\tdiffCo = new double[2][2];\n\t\t\tdiffusionRate = new double[2];\n\n\t\t\n\t\t\tcreateOutput();\n\t\t\t\n\t\t\tint stepnum = 0;\n\t\t\t\t\t\t\n\t\t\tfor (int l=0; l<parRange.length; l++)\n\t\t\t{\n\t\t\t\tgetOutput().cleanDirectory(\"./outputs\"+(l+1)+\"/\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"Simulating populations...\");\n\t\t\n\t\t\t\n\t\t\tfor (int l=0; l<parRange.length; l++)\n\t\t\t{\n\t\t\t\tdiffCo[0][0] = parameters[0];\n\t\t\t\tdiffCo[0][1] = parameters[1];\n\t\t\t\tdiffusionRate[0] = parameters[4];\n\t\t\t\tdiffCo[1][0] = parameters[2];\n\t\t\t\tdiffCo[1][1] = parameters[3];\n\t\t\t\tdiffusionRate[1] = parameters[5];\n\t\t\t\tstep = parameters[6];\n\t\t\t\tT = (int) parameters[7];\n\t\t\t\tparameters[indicator] = parRange[l];\n\t\t\t\tfileName = fileNameIn;\n\t\t\t\tsetIo(new MapReader(fileName));\n\t\t\t\tcreateAnimals();\n\t\t\t\tcreateGrid();\n\t\t\t\t\n\t\t\t\tgetOutput().calcLandArea(getIo().getNeighbours());\n\t\n\t\t\t\tfor (double i = 0; i < t; i += getStep()) {\n\t\t\t\t\n\t\t\t\t\t\tif ((stepnum % T == 0) || (stepnum == 0)) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor (int k = 0; k < animals.length; k++) \n\t\t\t\t\t\t\t{\n\t\n\t\t\t\t\t\t\t\tgetOutput().printMeanDensity(\n\t\t\t\t\t\t\t\t\t\t\"./outputs\"+(l+1)+\"/Mean\" + animals[k].getName()\n\t\t\t\t\t\t\t\t\t\t\t\t+ \"Densities\", animals[k].getDensities(), i);\n\t\t\t\t\t\t\t\tgetOutput().printPpm(\"./outputs\"+(l+1)+\"/\" + animals[k].getName()\n\t\t\t\t\t\t\t\t+ stepnum + \".ppm\", animals[k].getDensities(),getIo().getNeighbours());\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\t\t\t\t\t\t\t\tSystem.out.print('.');\n\t\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\tgetGrid().syncUpdate();\n\t\t\t\t\tstepnum += 1;\n\t\n\t\t\t\t}\n\t\n\t\t\t\tif(animals[0].bigChange)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\n*** Warning:\\nVery large changes in local density occurred over single iterations, suggest you use a smaller timestep\\n***\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"...done\");\n\t}", "public static void main(String[] args) {\n FileReader fileReader = new FileReader(\"input_roomSize_price.txt\");\n\n GradientDescent gradientDescent = new GradientDescent();\n\n gradientDescent.setTrainingData(fileReader.getData());\n\n gradientDescent.initializeParameters();\n gradientDescent.setLearningRate(0.01);\n\n gradientDescent.train();\n\n double[] parameters = gradientDescent.getParameters();\n for (int i=0; i<parameters.length; i++) {\n System.out.println(\"Parameter \" + i + \": \" + parameters[i]);\n }\n\n System.out.println(\"PREDICTION: \" + gradientDescent.predict(new double[]{1650}));\n\n\n // for multiple feature gradient descent test\n fileReader = new FileReader(\"trainingData.txt\");\n\n gradientDescent = new GradientDescent();\n\n gradientDescent.setTrainingData(fileReader.getData());\n\n gradientDescent.initializeParameters();\n gradientDescent.setLearningRate(0.01);\n\n gradientDescent.train();\n\n parameters = gradientDescent.getParameters();\n for (int i=0; i<parameters.length; i++) {\n System.out.println(\"Parameter \" + i + \": \" + parameters[i]);\n }\n\n System.out.println(\"PREDICTION: \" + gradientDescent.predict(new double[]{1350, 4}));\n }", "private void checkConfigFile(String filename) {\n Scanner input;\n try {\n input = new Scanner(this.getClass().getClassLoader().getResourceAsStream(filename));\n } catch (NullPointerException e){\n throw new IllegalArgumentException(filename + \" cannot be found\", e);\n }\n input.useDelimiter(\"\\\\n\");\n var sim = input.next();\n var policy = input.next();\n String[] policies = policy.split(\",\");\n if(policies.length != policiesLength) {\n throw new IllegalArgumentException(\"Policies Length is not correct\");\n }\n var numStates = input.next();\n int num = 0;\n try {\n num = Integer.parseInt(numStates);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Num States is not formatted correctly\", e);\n }\n for(int i = 0; i < num; i++) {\n var state = input.next();\n String[] stateObjects = state.split(\",\");\n if(stateObjects.length != stateObjectsLength) {\n throw new IllegalArgumentException(\"State Objects length is not correct\");\n }\n try {\n int intVal = Integer.parseInt(stateObjects[1]);\n if(intVal != i) {\n throw new IllegalArgumentException(\"State value must be sequentially assigned\");\n }\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"State value is not int correctly\", e);\n }\n try {\n Color color = Color.valueOf(stateObjects[2]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"State color is not formatted correctly\", e);\n }\n try {\n double doubleVal = Double.parseDouble(stateObjects[4]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Probability is not formatted correctly as a double\", e);\n }\n try {\n int intVal = Integer.parseInt(stateObjects[5]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Total Sum is not formatted correctly as an int\", e);\n }\n }\n var colRows = input.next();\n String[] numColRows = colRows.split(\",\");\n if(numColRows.length != 2) {\n throw new IllegalArgumentException(\"Number of values for col/row must be 2\");\n }\n try {\n num = Integer.parseInt(numColRows[0]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Row is not formatted correctly as an int\", e);\n }\n try {\n num = Integer.parseInt(numColRows[1]);\n } catch(IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Col is not formatted correctly as an int\", e);\n }\n }", "void controlParameters(Tesseract instance) throws Exception {\n File configvarsFilePath = new File(datapath, CONFIG_PATH + CONFIGVARS_FILE);\n if (!configvarsFilePath.exists()) {\n return;\n }\n\n String str = Utils.readTextFile(configvarsFilePath);\n\n for (String line : str.split(\"\\n\")) {\n if (!line.trim().startsWith(\"#\")) {\n try {\n String[] keyValuePair = line.trim().split(\"\\\\s+\");\n instance.setVariable(keyValuePair[0], keyValuePair[1]);\n } catch (Exception e) {\n //ignore and continue on\n }\n }\n }\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "protected void config_read(String fileParam) {\r\n\t\tFile inputFile = new File(fileParam);\r\n\r\n\t\tif (inputFile == null || !inputFile.exists()) {\r\n\t\t\tSystem.out.println(\"parameter \" + fileParam\r\n\t\t\t\t\t+ \" file doesn't exists!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t\t// begin the configuration read from file\r\n\t\ttry {\r\n\t\t\tFileReader file_reader = new FileReader(inputFile);\r\n\t\t\tBufferedReader buf_reader = new BufferedReader(file_reader);\r\n\t\t\t// FileWriter file_write = new FileWriter(outputFile);\r\n\r\n\t\t\tString line;\r\n\r\n\t\t\tdo {\r\n\t\t\t\tline = buf_reader.readLine();\r\n\t\t\t} while (line.length() == 0); // avoid empty lines for processing ->\r\n\t\t\t\t\t\t\t\t\t\t\t// produce exec failure\r\n\t\t\tString out[] = line.split(\"algorithm = \");\r\n\t\t\t// alg_name = new String(out[1]); //catch the algorithm name\r\n\t\t\t// input & output filenames\r\n\t\t\tdo {\r\n\t\t\t\tline = buf_reader.readLine();\r\n\t\t\t} while (line.length() == 0);\r\n\t\t\tout = line.split(\"inputData = \");\r\n\t\t\tout = out[1].split(\"\\\\s\\\"\");\r\n\t\t\tinput_train_name = new String(out[0].substring(1,\r\n\t\t\t\t\tout[0].length() - 1));\r\n\t\t\tinput_test_name = new String(out[1].substring(0,\r\n\t\t\t\t\tout[1].length() - 1));\r\n\t\t\tif (input_test_name.charAt(input_test_name.length() - 1) == '\"')\r\n\t\t\t\tinput_test_name = input_test_name.substring(0,\r\n\t\t\t\t\t\tinput_test_name.length() - 1);\r\n\r\n\t\t\tdo {\r\n\t\t\t\tline = buf_reader.readLine();\r\n\t\t\t} while (line.length() == 0);\r\n\t\t\tout = line.split(\"outputData = \");\r\n\t\t\tout = out[1].split(\"\\\\s\\\"\");\r\n\t\t\toutput_train_name = new String(out[0].substring(1,\r\n\t\t\t\t\tout[0].length() - 1));\r\n\t\t\toutput_test_name = new String(out[1].substring(0,\r\n\t\t\t\t\tout[1].length() - 1));\r\n\t\t\tif (output_test_name.charAt(output_test_name.length() - 1) == '\"')\r\n\t\t\t\toutput_test_name = output_test_name.substring(0,\r\n\t\t\t\t\t\toutput_test_name.length() - 1);\r\n\r\n\t\t\t// parameters\r\n\t\t\tdo {\r\n\t\t\t\tline = buf_reader.readLine();\r\n\t\t\t} while (line.length() == 0);\r\n\t\t\tout = line.split(\"k = \");\r\n\t\t\tnneigh = (new Integer(out[1])).intValue(); // parse the string into\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// a double\r\n\r\n\t\t\tdo {\r\n\t\t\t\tline = buf_reader.readLine();\r\n\t\t\t} while (line.length() == 0);\r\n\t\t\tout = line.split(\"enn = \");\r\n\t\t\tennNeighbors = (new Integer(out[1])).intValue(); // parse the string\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// into a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// integer\r\n\r\n\t\t\tdo {\r\n\t\t\t\tline = buf_reader.readLine();\r\n\t\t\t} while (line.length() == 0);\r\n\t\t\tout = line.split(\"eta = \");\r\n\t\t\tcleanThreshold = (new Double(out[1])).doubleValue(); // parse the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// string\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// into a\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// double\r\n\r\n\t\t\tfile_reader.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"IO exception = \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "public static void main(String[] argv) {\n\t\t\n\t\tif (argv.length !=7){\n\t\t\tSystem.out.println(\"USAGE: executable <input_filename> <num_points_in_file> <dimension> <distribution[1..100]> <num_unique_query> <num_query> <slot>\\n\");\n\t\t\treturn ;\n\t\t}\n\t\t\nint type,num_mbr, extra,dim,DIMENSION,distribution,num_unique_query,POINTS;\nString filenm;\n\nint q,r,times,slot;\n\n\nfilenm = argv[0];\n\nPOINTS = Integer.parseInt(argv[1]);\nDIMENSION = Integer.parseInt(argv[2]);\n\ndistribution = Integer.parseInt(argv[3]);\n\nnum_unique_query = Integer.parseInt(argv[4]);\nq= Integer.parseInt(argv[5]);\nslot= Integer.parseInt(argv[6]);\n\ndouble[][][] pt =new double[POINTS+10][2][10];\t\t\n\t\t\n\t\t\t\t\t\n\t\t\t try {\n\t\t\t\t BufferedReader in = new BufferedReader(new FileReader(filenm));\n\t\t\t\t String str;\n//\t\t\t\t str = in.readLine();\n\t\t\t\t int i=0;\n\t\t\t\t while ((str = in.readLine()) != null && i != POINTS) {\n\t\t\t\t //System.out.println(str);\n\t\t\t\t str = in.readLine();\n\t\t\t\t String[] arr = str.split(\"\\t\");\t\t\t\t \n\t\t\t\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\t\t\t\tpt[i][0][j] = Double.parseDouble(arr[j]);\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t str = in.readLine();\n\t\t\t\t arr = str.split(\"\\t\");\t\t\t\t \n\t\t\t\t \n\t\t\t\t\t\tfor(int j=0;j<10;j++){\n\t\t\t\t\t\t\tpt[i][1][j] = Double.parseDouble(arr[j]);\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t i++;\n\t\t\t\t }\n\t\t\t\t in.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t System.out.println(\"File Read Error Resource.in\");\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\tRandom rand = new Random();\n\t\t\tfor(int i2=0;i2 < slot; i2++){\n\t\t\t\tint rr= rand.nextInt(17);\n\t\t\t\tfor(int i1=0;i1 < q;){\n\n\t\t\t//while(q>0){\n\t\t\t\tif(rand.nextInt(100) < distribution){\n\t\t\t\t\t // Initialize random number generator.\n\t\n\t\t\t\t\t\tr = rand.nextInt(num_unique_query)* (int)((POINTS-10000)/(num_unique_query + rr));\n\t\t\t\t\t//cout <<\"random value \"<< r<< endl;\n\t\t\t\t\t// srand(pow(q,r));\n\t\t\t\t\t// srand(pow(q,r));\n\t\t\t\t\t//\ttimes=1;\n\t\t\t\t\t\ttimes =rand.nextInt(29) + 5 ;\n\n\t\t\t\t\t//\t\tfile>>dim;\t\n\t\t\t\t\t//\t\tfile>>num_mbr;\t\n\n\n\n\t\t\t\t\t\tfor(int k =0; k<times; k++){\n\t\t\t\t\t\tSystem.out.println(\"2\");\n\t\t\t\t\t\ti1++;\n\t\t\t\t\t\tdouble r_1= 0.005 + (double)rand.nextInt(500)/10000.0;\n\t\t\t\t\t\tSystem.out.println(r_1);\n\n\t\t\t\t\t\tfor(int j=0;j<DIMENSION;j++){\n\t\t\t\t\t//\t\t\tcout<< pt[0][j];\n\t\t\t\t\t\t\tSystem.out.print(pt[r][0][j] + \"\\t\");\t\t\t\n\n\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t\t}\n\n\n\n\t\t\t\t}\n\t\t\t\telse{\t\t\t\t\t\t\t// nonpopular data \n\t\n\t\t\t\t\tfor(int idx =0 ; idx < 20 ; idx++){\n\t\n\t\t\t\t\t\t\tr = rand.nextInt(POINTS);\n\n\n\n\t\t\t\t\t\tSystem.out.println(\"2\");\n\t\t\t\t\t\ti1++;\n\t\t\t\t\t\tdouble r_1= 0.005 + (double)rand.nextInt(500)/10000.0;\n\t\t\t\t\t\tSystem.out.println(r_1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\tcout<<r<<\"\\n\";\n\t\t\t\t\t\t\t\tfor(int j=0;j<DIMENSION;j++){\n\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(pt[r][0][j] + \"\\t\");\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\n\n\t\n\t\n\t\t\t\t\t}\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"-1\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t}", "public static void main(String[] args) {\n ExecuteParams executeParams1 = new ExecuteParams();\n ExecuteParams executeParams2 = new ExecuteParams();\n ExecuteParams executeParams30 = new ExecuteParams();\n ExecuteParams executeParams31 = new ExecuteParams();\n ExecuteParams executeParams32 = new ExecuteParams();\n ExecuteParams executeParams33 = new ExecuteParams();\n ExecuteParams executeParams34 = new ExecuteParams();\n ExecuteParams executeParams41 = new ExecuteParams();\n\n //*** PARAMS\n executeParams1.DeviationPredictor_CosineMetric();\n executeParams2.DeviationPredictor_PearsonMetric();\n executeParams30.DeviationPredictor_PearsonSignifianceWeightMetric(1);\n executeParams31.DeviationPredictor_PearsonSignifianceWeightMetric(5);\n executeParams32.DeviationPredictor_PearsonSignifianceWeightMetric(50);\n executeParams33.DeviationPredictor_PearsonSignifianceWeightMetric(100);\n executeParams34.DeviationPredictor_PearsonSignifianceWeightMetric(200);\n executeParams41.DeviationPredictor_JaccardMetric();\n //***\n\n computeOne(executeParams1);\n computeOne(executeParams2);\n computeOne(executeParams30,\"N = 1\");\n computeOne(executeParams31,\"N = 5\");\n computeOne(executeParams32,\"N = 50\");\n computeOne(executeParams33,\"N = 100\");\n computeOne(executeParams34,\"N = 200\");\n computeOne(executeParams41);\n }", "private void setTEMparsFromRunner(){\n\t\t\n\t\tString fdummy=\" \";\n\t\t\n\t\tsoipar_cal sbcalpar = new soipar_cal();\n\t\tvegpar_cal vbcalpar = new vegpar_cal();\t\n\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KRB, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setKrb(Float.valueOf(fdummy));\n\t\t\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCFIB, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcfib(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCHUM, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdchum(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCMIN, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcmin(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCSLOW, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcslow(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NUP, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setNup(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetCalPar(vbcalpar, sbcalpar);\n\n\t\t//\n\t\tsoipar_bgc sbbgcpar = new soipar_bgc();\n\t\tvegpar_bgc vbbgcpar = new vegpar_bgc();\n\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m1, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM1(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m2, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM2(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m3, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM3(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m4, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM4(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsoma, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsoma(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsompr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsompr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsomcr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsomcr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_som2co2, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setSom2co2(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetBgcPar(vbbgcpar, sbbgcpar);\n\t\t\t\t\n\t}", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "public double Generate(double[] par);", "public static void main(String [] args) {\n\t\treadProperties(args[6]);//properties file - SR_props.txt - need to ensure each machine has this loaclly\n\t\t//Read in the command line args.\n\t\t//Would like to eventually remove the need for any parameter passing, and instead use\n\t\t//the batch file's config directly.\n\t\tdescription = args[0];\n\t\tc.numPieces = Integer.parseInt(args[1]);//number o layers in each model\n\t\t//System.out.println(\"Layers \"+c.numPieces);\n\t\tc.maxLength = Integer.parseInt(args[2]);//max number of layers per model - Aaron - bit of a hack\n\t\tc.numRegisters = Integer.parseInt(args[3]);//Need to find setting from Aaron\n\t\tc.runs = Integer.parseInt(args[4]);//Number of reps - 1\n\t\tc.file = args[5];//Data file inputs - coherency file\n\t\tc.aperture = Integer.parseInt(args[7]);//related to coherency file distance between points - equaltril triangle\n\t\tSystem.out.println(\"aperture distance : \"+c.aperture);\n\t\tc.bestFitsFilePath += description+\"_\"+ c.file+\"_convergence_\" + c.numPieces + \"_\" + c.initialMinLength;\n\t\tc.runLogFilePath += description+\"_\" + c.file+\"_accuracy_\" + c.numPieces + \"_\" + c.initialMinLength +\".csv\";\n\n\t\tc.bpProportionElitism = 0.3;\n\t\tc.bpTournamentSize = 5;\n\t\tc.proportionElitism = 0.1;\n\t\tc.best_n = 1000;\n\n\t\tdoSetup(null);\n\n\t\tfor(int i = 0; i < Config.getInstance().runs; i++){\n\t\t\tSystem.out.println(\"RUN: \" + i);\n\t\t\tSystem.gc();\n\t\t\trun(args);\n\t\t}\n\n\t\tLogger.logBestFits();\n\t\tprintOverallStatistics();\n\t\tpop.best.writeCurve();\n//\t\tpop.programs.get(0).writeCurve();\n//\t\tSystem.out.println(\"\\n\\n\\n\\n********\"+pop.programs.get(0).toString());\n\t\tSystem.out.println(\"8.6m @\t123.5m/s over 136.5m @ 278.7m/s\t(20m)\");\n\t}", "public static void main(String[] args) {\n\t\tint M = Integer.parseInt(args[0]);\n\t\tint P = Integer.parseInt(args[1]);\n\t\tint S = Integer.parseInt(args[2]);\n\t\tint J = Integer.parseInt(args[3]);\n\t\tint N = Integer.parseInt(args[4]);\n\t\tString algorithm = args[5];\n\t\t\n\t\t//this is to match the output\n\t\tSystem.out.println(\"The machine size is \"+M);\n\t\tSystem.out.println(\"The page size is \"+P);\n\t\tSystem.out.println(\"The process size is \"+S);\n\t\tSystem.out.println(\"The job mix number is \"+J);\n\t\tSystem.out.println(\"The number of references per process is \"+N);\n\t\tSystem.out.println(\"The replacement algorithm is \"+algorithm+\"\\n\\n\");\n\t\t\n\t\t\n\t\t//attempt to read in the RandomInts.txt file\n\t\tScanner intScanner = null; \n\t\ttry {\n\t\t\tintScanner = new Scanner(new File(\"random-ints.txt\"));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.printf(\"Error: there was a problem reading the random file\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tint quantum = 3;\n\t\t\n\t\tProcess currentProcess;\n\t\tArrayList<Process> processList = new ArrayList<Process>();\n\t\t\n\t\t//check now to see the job mix\n\t\tif(J == 1){\t\n\t\t\t//int processNumber, double a, double b, double c, int size, int numberOfReferences, int numberOfPages,Scanner randInt, String replacementAlgo\n\t\t\tcurrentProcess = new Process(1,1,0,0,S,N,S/P,intScanner,algorithm);\n\t\t\tprocessList.add(currentProcess);\n\t\t}\n\t\telse if(J ==2) {\n\t\t\t\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tcurrentProcess = new Process(i+1,1,0,0,S,N,S/P,intScanner,algorithm);\n\t\t\t\tprocessList.add(currentProcess);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\telse if (J == 3){\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tcurrentProcess = new Process(i+1,0,0,0,S,N,S/P,intScanner,algorithm);\n\t\t\t\tprocessList.add(currentProcess);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\telse {\n\t\t\t//1,2,3,4\n\t\t\tcurrentProcess = new Process(1,0.75,0.25,0,S,N,S/P,intScanner,algorithm);\n\t\t\tprocessList.add(currentProcess);\n\t\t\tcurrentProcess = new Process(2,0.75,0,0.25,S,N,S/P,intScanner,algorithm);\n\t\t\tprocessList.add(currentProcess);\n\t\t\tcurrentProcess = new Process(3,0.75,0.125,0.125,S,N,S/P,intScanner,algorithm);\n\t\t\tprocessList.add(currentProcess);\n\t\t\tcurrentProcess = new Process(4,0.5,0.125,0.125,S,N,S/P,intScanner,algorithm);\n\t\t\tprocessList.add(currentProcess);\n\t\t\t\n\t\t}\n\t\t\n\t\t//get the size of the frame table depending upon machine size and page size\n\t\t//remember we are also going to use the highest most frame as the first one\n\t\tint sizeOfFrame = M/P -1;\n\t\t\n\t\t\n\t\t//these are going to simply help us determine which frame is to be evicted if neccesary\n //linked list for LRU replacement algorithm\n LinkedList<Integer> LRUList = new LinkedList<Integer>();\n\n // we do not need a data structure for LIFO either because we will always replace the last frame\n \n //we do not need to use one for random since we do not need to keep track of which page we are getting rid of\n \n\t\t//this is going to hold the current process,page pair in each index so it will look like <1,{Process,page}>\n //having the Integer array will help us replace and update the frame easier then just maintaining if there's something in the map\n\t\tHashMap<Integer, Integer[]> frame = new HashMap<Integer, Integer[]>(); \n\t\t\n\t\tint time = 1;\n\t\t\n\t\tfor(int i=0; i < processList.size() * N; i++) {\n\t\t\t//get the current process\n\t\t\tProcess runningProcess = processList.get(i%processList.size());\n\t\t\t\n\t\t\tif(runningProcess.numberOfReferences <= 0) {\n\t\t\t\t//then the process is done running\n\t\t\t\ttime++;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t// this is simply to simulate the round robin simulation\n\t\t\tfor(int j=0; j < quantum; j++) {\n\t\t\t\t\n\t\t\t\tif(runningProcess.numberOfReferences <= 0) {\n\t\t\t\t\t//then the process is done running\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint currentRef = runningProcess.currentReference;\n\t\t\t\t\n\t\t\t\t//now get the page index then check if it is MAX_VALUE or within the frame\n\t\t\t\tint pageIndex = currentRef/P;\n\t\t\t\tint processFrameIndex = runningProcess.pages[pageIndex];\n\t\t\t\t\n\n\t\t\t\t//we know we had a miss because the page table is not in the frame\n\t\t\t\tif(processFrameIndex == Integer.MAX_VALUE) {\n\t\t\t\t\t\n\t\t\t\t\trunningProcess.pageFaults++;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//now we determine where to place the pageTable in the frame\n\t\t\t\t\t//we know that if it is less than zero then there is no room on the frame table since we start from highest index\n\t\t\t\t\tif(sizeOfFrame < 0) {\n\t\t\t\t\t\t//then we must use some sort of replacement algorithm\n\t\t\t\t\t\tif(runningProcess.replacementAlgo.equalsIgnoreCase(\"LIFO\")) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//pop the last frame and get the necessary information\n\t\t\t\t\t\t\tInteger[] removeProcessPagePair = frame.remove(0);\n\t\t\t\t\t\t\tint removeIndex = removeProcessPagePair[0];\n\t\t\t\t\t\t\tint nullifyPageIndex = removeProcessPagePair[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//get the actual process from the process list and update its values\n\t\t\t\t\t\t\tProcess updateProcess = processList.get(removeIndex);\n\t\t\t\t\t\t\tupdateProcess.pages[nullifyPageIndex] = Integer.MAX_VALUE;\n\t\t\t\t\t\t\tupdateProcess.numberOfEvictions++;\n\t\t\t\t\t\t\tupdateProcess.residencyTime += time - updateProcess.pageLoadTime[nullifyPageIndex];\n\t\t\t\t\t\t\tupdateProcess.pageLoadTime[nullifyPageIndex] = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsizeOfFrame++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//update the pages array\n\t\t\t\t\t\t\trunningProcess.pages[pageIndex] = sizeOfFrame;\n\t\t\t\t\t\t\trunningProcess.pageLoadTime[pageIndex] = time;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//we will need to know which process to update and remember that to get processNum 1 \n\t\t\t\t\t\t\t//in the array list that is at index 0. Then to update its pageTable we will also need its pageIndex\n\t\t\t\t\t\t\tInteger[] processPagePair = {runningProcess.processNumber-1,pageIndex};\n\t\t\t\t\t\t\tframe.put(sizeOfFrame, processPagePair);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsizeOfFrame--;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(runningProcess.replacementAlgo.equalsIgnoreCase(\"LRU\")) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove the top of the LRULinked List and get the index of the frame\n\t\t\t\t\t\t\tint indexRemoveFrame = LRUList.remove();\n\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//pop the index of the frame and get the necessary information\n\t\t\t\t\t\t\tInteger[] removeProcessPagePair = frame.remove(indexRemoveFrame);\n\t\t\t\t\t\t\tint removeIndex = removeProcessPagePair[0];\n\t\t\t\t\t\t\tint nullifyPageIndex = removeProcessPagePair[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//get the actual process from the process list and update its values\n\t\t\t\t\t\t\tProcess updateProcess = processList.get(removeIndex);\n\t\t\t\t\t\t\tupdateProcess.pages[nullifyPageIndex] = Integer.MAX_VALUE;\n\t\t\t\t\t\t\tupdateProcess.numberOfEvictions++;\n\t\t\t\t\t\t\tupdateProcess.residencyTime += time - updateProcess.pageLoadTime[nullifyPageIndex];\n\t\t\t\t\t\t\tupdateProcess.pageLoadTime[nullifyPageIndex] = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//now add to the back of the linked list the most newly updated indexFrame\n\t\t\t\t\t\t\tLRUList.add(indexRemoveFrame);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//update the running process\n\t\t\t\t\t\t\trunningProcess.pages[pageIndex] = indexRemoveFrame;\n\t\t\t\t\t\t\trunningProcess.pageLoadTime[pageIndex] = time;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//we will need to know which process to update and remember that to get processNum 1 \n\t\t\t\t\t\t\t//in the array list that is at index 0. Then to update its pageTable we will also need its pageIndex\n\t\t\t\t\t\t\tInteger[] processPagePair = {runningProcess.processNumber-1,pageIndex};\n\t\t\t\t\t\t\tframe.put(indexRemoveFrame, processPagePair);\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//this indicates it is random replacement algorithm\n\t\t\t\t\t\telse if(runningProcess.replacementAlgo.equalsIgnoreCase(\"RANDOM\")) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//get the random int and then find out which random frame you are taking out\n\t\t\t\t\t\t\tint randomInt = intScanner.nextInt();\n\t\t\t\t\t\t\t//since it is probably some big number we have to accommodate it for our frame size\n\t\t\t\t\t\t\tint randomIntIndex = (randomInt + M/P)%(M/P);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//and pretty much do the same as the above but with the randomIntIndex\n\t\t\t\t\t\t\t//pop the index of the frame and get the necessary information\n\t\t\t\t\t\t\tInteger[] removeProcessPagePair = frame.remove(randomIntIndex);\n\t\t\t\t\t\t\tint removeIndex = removeProcessPagePair[0];\n\t\t\t\t\t\t\tint nullifyPageIndex = removeProcessPagePair[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//get the actual process from the process list and update its values\n\t\t\t\t\t\t\tProcess updateProcess = processList.get(removeIndex);\n\t\t\t\t\t\t\tupdateProcess.pages[nullifyPageIndex] = Integer.MAX_VALUE;\n\t\t\t\t\t\t\tupdateProcess.numberOfEvictions++;\n\t\t\t\t\t\t\tupdateProcess.residencyTime += time - updateProcess.pageLoadTime[nullifyPageIndex];\n\t\t\t\t\t\t\tupdateProcess.pageLoadTime[nullifyPageIndex] = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/////DO IF CYCLE IS IN 38 DEBUGG IN HERE/////\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//update the running process\n\t\t\t\t\t\t\trunningProcess.pages[pageIndex] = randomIntIndex;\n\t\t\t\t\t\t\trunningProcess.pageLoadTime[pageIndex] = time;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//we will need to know which process to update and remember that to get processNum 1 \n\t\t\t\t\t\t\t//in the array list that is at index 0. Then to update its pageTable we will also need its pageIndex\n\t\t\t\t\t\t\tInteger[] processPagePair = {runningProcess.processNumber-1,pageIndex};\n\t\t\t\t\t\t\tframe.put(randomIntIndex, processPagePair);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t//otherwise we will now place the pageTable into the frame\n\t\t\t\t\telse {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update the pages array\n\t\t\t\t\t\trunningProcess.pages[pageIndex] = sizeOfFrame;\n\t\t\t\t\t\trunningProcess.pageLoadTime[pageIndex] = time;\n\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//we will need to know which process to update and remember that to get processNum 1 \n\t\t\t\t\t\t//in the array list that is at index 0. Then to update its pageTable we will also need its pageIndex\n\t\t\t\t\t\tInteger[] processPagePair = {runningProcess.processNumber-1,pageIndex};\n\t\t\t\t\t\tframe.put(sizeOfFrame, processPagePair);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update the LRU if the process is using the algorithm\n\t\t\t\t\t\tif(runningProcess.replacementAlgo.equalsIgnoreCase(\"LRU\")) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//sizeOfFrame is also essentially the index of the frame\n\t\t\t\t\t\t\tLRUList.add(sizeOfFrame);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//now there is one less frame available\n\t\t\t\t\t\tsizeOfFrame--;\n\n\t\t\t\t\t}\n\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//there was a page hit\n\t\t\t\telse {\n\n\t\t\t\t\t//update the most recently used page for LRU\n\t\t\t\t\tif(runningProcess.replacementAlgo.equalsIgnoreCase(\"LRU\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t //to get it back to 0 in case we are on the last frame\n\t\t\t\t\t\t\n\t\t\t\t\t\tint removeIndex = LRUList.indexOf(processFrameIndex);\n\n\t\t\t\t\t\t//put to the end of the list\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tint updatePage = LRUList.remove(removeIndex);\n\t\t\t\t\t\tLRUList.add(updatePage);\n\t\t\t\t\t\t //to indicate we have no more frames incase the next reference needs a new one\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//remember this also decrements the amount of references that the process has left \n\t\t\t\trunningProcess.getNextReference();\n\t\t\t\ttime++;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tint totalFaults = 0;\n\t\tint totalEvictions = 0;\n\t\tdouble totalResidency = 0;\n\t\t\n\t\tfor(int i=0; i<processList.size();i++) {\n\t\t\t\n\t\t\tif(processList.get(i).numberOfEvictions != 0) {\n\t\t\t\ttotalFaults += processList.get(i).pageFaults;\n\t\t\t\ttotalResidency += processList.get(i).residencyTime;\n\t\t\t\ttotalEvictions += processList.get(i).numberOfEvictions;\n\t\t\t\tSystem.out.printf(\"Process Number: %d had %d faults and an average residency of %f\",processList.get(i).processNumber,processList.get(i).pageFaults,processList.get(i).residencyTime/processList.get(i).numberOfEvictions);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttotalFaults += processList.get(i).pageFaults;\n\t\t\t\tSystem.out.printf(\"Process Number: %d had %d faults and with no evictions an average residency of undefined\",processList.get(i).processNumber,processList.get(i).pageFaults);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t\n\t\t\n\t\tif(totalEvictions != 0) {\n\t\t\tdouble avgTotalResidency = totalResidency/totalEvictions;\n\t\t\tSystem.out.printf(\"The total number of faults is %d and the overall average residency is %f\", totalFaults,avgTotalResidency);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.printf(\"The total number of faults is %d and the overall average residency is undefined\", totalFaults);\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\t\n\n\t}", "public static void main(String args[]) throws Exception\t{\n\t\tScanner sc = new Scanner(new FileInputStream(\"sample_input_dominotrilling.txt\"));\r\n\r\n\t\tint T = sc.nextInt();\r\n\t\tfor(int test_case = 0; test_case < T; test_case++) {\r\n\t\t\tN = sc.nextInt();\r\n\t\t\tM = sc.nextInt();\r\n\t\t\t\r\n\t\t\t/**********************************\r\n\t\t\t* Implement your algorithm here. *\r\n\t\t\t***********************************/\r\n\t\t\tAnswer = 0;\r\n//\t\t\tAnswer = calculateSum(N) % M;\r\n\t\t\tAnswer = calculateSum(N,M);\r\n\t\t\t// Print the answer to standard output(screen).\r\n\t\t\tSystem.out.println(Answer);\r\n\t\t}\r\n\t\t\r\n\t\tsc.close();\r\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\tscanner = new Scanner(new File(\"digit_data/test.csv\"));\n scanner.useDelimiter(\",\");\n scanner.nextLine();\n // Transforms the values on the csv from strings to ints\n\t\tnew drawnum().go();\n\t}", "public void definirValoresPrueba(String ficheroDatos) throws FileNotFoundException, IOException {\n\t\tString linea;\n\t\tdouble x = 0, y = 0;\n\t\tint i = 0;\n\t\tBufferedReader buffer = new BufferedReader(new InputStreamReader(new FileInputStream(ficheroDatos)));\n\t\twhile ((linea = buffer.readLine()) != null) {\n\t\t\tfor (String separador : linea.split(\" \")) {\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tx = Double.parseDouble(separador);\n\t\t\t\t} else {\n\t\t\t\t\ty = Double.parseDouble(separador);\n\t\t\t\t}\n\t\t\t\ti = i + 1;\n\t\t\t}\n\t\t\ti = 0;\n\t\t\tvalores.put(x, y);\n\t\t}\n\t\tbuffer.close();\n\t}", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line = sc.nextLine();\n\t\tString[] arr = line.split(\" \");\n\n\t\tint a = Integer.valueOf(sc.nextLine());\n\t\tint b = Integer.valueOf(sc.nextLine());\n\t\tint c = Integer.valueOf(sc.nextLine());\n\n\t\tSystem.out.println(getVal(arr, a));\n\t\tSystem.out.println(getVal(arr, b));\n\t\tSystem.out.println(getVal(arr, c));\n\t}", "public void testParFileReading() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n\n oManager = new GUIManager(null);\n \n //Valid file 1\n oManager.clearCurrentData();\n sFileName = writeFile1();\n oManager.inputXMLParameterFile(sFileName);\n SeedPredationBehaviors oPredBeh = oManager.getSeedPredationBehaviors();\n ArrayList<Behavior> p_oBehs = oPredBeh.getBehaviorByParameterFileTag(\"DensDepRodentSeedPredation\");\n assertEquals(1, p_oBehs.size());\n DensDepRodentSeedPredation oPred = (DensDepRodentSeedPredation) p_oBehs.get(0);\n double SMALL_VAL = 0.00001;\n \n assertEquals(oPred.m_fDensDepDensDepCoeff.getValue(), 0.07, SMALL_VAL);\n assertEquals(oPred.m_fDensDepFuncRespExpA.getValue(), 0.02, SMALL_VAL);\n\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(0)).\n floatValue(), 0.9, SMALL_VAL);\n assertEquals( ( (Float) oPred.mp_fDensDepFuncRespSlope.getValue().get(1)).\n floatValue(), 0.05, SMALL_VAL);\n\n //Test grid setup\n assertEquals(1, oPred.getNumberOfGrids());\n Grid oGrid = oManager.getGridByName(\"Rodent Lambda\");\n assertEquals(1, oGrid.getDataMembers().length);\n assertTrue(-1 < oGrid.getFloatCode(\"rodent_lambda\")); \n \n }\n catch (ModelException oErr) {\n fail(\"Seed predation validation failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "public MyPacMan optimise(List<double[]> dimensionList){\n for(int i = 0; i < POPULATION_SIZE; i++){\r\n MyPacMan individual = new MyPacMan(dimensionList);\r\n population.add(individual);\r\n \r\n } \r\n \r\n // try more than one iteration \r\n for(int iterationCount = 0; iterationCount < ITERATION_NO; iterationCount++){\r\n \r\n System.out.println(\"Iterazione n°: \" + Integer.toString(iterationCount));\r\n \r\n if(iterationCount%10 == 0 || iterationCount == ITERATION_NO-1){\r\n try {\r\n pw = new PrintWriter(new File(\"data/popoluation_\" + Integer.toString(iterationCount) +\".csv\"));\r\n } catch (FileNotFoundException ex) {\r\n \r\n } \r\n \r\n \r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n pw.write(\"v\" + Integer.toString(n));\r\n pw.write(\",\");\r\n }\r\n \r\n pw.write(\"fValue\");\r\n\r\n pw.write(\"\\n\");\r\n \r\n for (MyPacMan individual : population) {\r\n pw.write(individual.toString());\r\n pw.write(\",\");\r\n pw.write(Double.toString(fitFunction(individual)));\r\n pw.write(\"\\n\");\r\n }\r\n \r\n pw.flush();\r\n }\r\n \r\n int loop = 0;\r\n \r\n // main loop for evolution\r\n while(loop < population.size()){ \r\n\r\n MyPacMan original = null;\r\n MyPacMan candidate = null;\r\n boolean boundsHappy;\r\n\r\n do{\r\n boundsHappy = true;\r\n // pick an agent from the the population\r\n int x = loop;\r\n int a,b,c = -1;\r\n\r\n // pick three random agents from the population\r\n // make sure that they are not identical to selected agent from\r\n // the population \r\n\r\n do{\r\n a = random.nextInt(population.size());\r\n }while(x == a);\r\n do{\r\n b = random.nextInt(population.size());\r\n }while(b==x || b==a);\r\n do{\r\n c = random.nextInt(population.size());\r\n }while(c == x || c == a || c == b);\r\n\r\n // create three agent individuals\r\n MyPacMan individual1 = population.get(a);\r\n MyPacMan individual2 = population.get(b);\r\n MyPacMan individual3 = population.get(c);\r\n\r\n // create a noisy random candidate\r\n MyPacMan noisyRandomCandicate = new MyPacMan(dimensionList);\r\n\r\n // mutation process\r\n // if an element of the trial parameter vector is\r\n // found to violate the bounds after mutation and crossover, it is reset in such a way that the bounds\r\n // are respected (with the specific protocol depending on the implementation)\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n noisyRandomCandicate.dataValue[n] = (individual1.dataValue[n] + DIFFERENTIAL_WEIGHT * (individual2.dataValue[n] - individual3.dataValue[n])); \r\n } \r\n\r\n // Create a trial candicate \r\n original = population.get(x);\r\n candidate = new MyPacMan(dimensionList);\r\n\r\n // copy values from original agent to the candidate agent\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n candidate.dataValue[n] = original.dataValue[n];\r\n } \r\n\r\n // crossver process with the selected individual\r\n // pick a random dimension, which defintely takes the value from the noisy random candidate\r\n int R = random.nextInt(dimensionList.size());\r\n\r\n for(int n = 0; n < dimensionList.size(); n++){\r\n\r\n double crossoverProbability = random.nextDouble();\r\n\r\n if(crossoverProbability < CROSSOVER_PROBABILITY || n == R){\r\n candidate.dataValue[n] = noisyRandomCandicate.dataValue[n];\r\n }\r\n\r\n }\r\n\r\n // check here if the trial candiate satisfies bounds for each value\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n if(candidate.dataValue[n] < dimensionList.get(n)[0] || candidate.dataValue[n] > dimensionList.get(n)[1]){\r\n boundsHappy = false;\r\n }\r\n }\r\n\r\n }while(boundsHappy == false);\r\n\r\n //see if the candidate is better than original, if so replace it\r\n if(fitFunction(original) < fitFunction(candidate)){\r\n population.remove(original);\r\n population.add(candidate); \r\n }\r\n loop++;\r\n } \r\n }\r\n \r\n MyPacMan bestFitness = new MyPacMan(dimensionList);\r\n \r\n // selecting the final best agent from the the population\r\n for(int i = 0; i < population.size(); i++){\r\n MyPacMan individual = population.get(i);\r\n \r\n if(fitFunction(bestFitness) < fitFunction(individual)){\r\n \r\n try {\r\n bestFitness = (MyPacMan) individual.clone();\r\n } catch (CloneNotSupportedException ex) {\r\n \r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Fitness migliore: \" + fitFunction(bestFitness));\r\n return bestFitness;\r\n }", "public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(new File(\"prob15.txt\"));\n mining_project mp = new mining_project();\n String ore_type;\n int fuel;\n int weight;\n\n /* Read in beginnig fuel, return_fuel, cargo_size */\n mp.beginning_fuel = scan.nextInt();\n mp.return_fuel = scan.nextInt();\n mp.cargo_size = scan.nextInt();\n\n /*\n \t\t * Read in mine excavation data\n \t\t * We use a sentinal value to stop\n */\n while (true) {\n fuel = scan.nextInt();\n ore_type = scan.next();\n weight = scan.nextInt();\n if ((fuel == 0) && ore_type.equals(\"X\")\n && (weight == 0)) {\n break;\n }\n mp.AddExcavation(fuel, ore_type, weight);\n }\n mp.MineOre();\n }", "public void parse(){\n\t\tFile file = new File(fileLocation);\n\n\t\tlong seed = ConfigurationData.DEFAULT_SEED;\n\t\tString outputDest = ConfigurationData.DEFAULT_OUTPUT_DESTINATION;\n\t\tLong tickLength = ConfigurationData.DEFAULT_TICK_LENGTH;\n\t\tint port = ConfigurationData.DEFAULT_PORT;\n\n\t\ttry {\n\n\t\t\tScanner sc = new Scanner(file);\n\n\t\t\twhile(sc.hasNext()){\n\t\t\t\tString[] tok = sc.next().split(\"=\");\n\t\t\t\tswitch(tok[0]){\n\t\t\t\tcase \"seed\":\n\t\t\t\t\tseed = Long.parseLong(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"outputDestination\":\n\t\t\t\t\toutputDest = tok[1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"tickLength\":\n\t\t\t\t\ttickLength = Long.parseLong(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"port\":\n\t\t\t\t\tport = Integer.parseInt(tok[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsc.close();\n\n\t\t\tconfigurationData = new ConfigurationData(seed, outputDest, tickLength, port);\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(fileLocation, \"UTF-8\");\n\t\t\t\twriter.println(\"seed=\"+seed);\n\t\t\t\twriter.println(\"outputDestination=\"+outputDest);\n\t\t\t\twriter.println(\"tickLength=\"+tickLength);\n\t\t\t\twriter.println(\"port=\"+port);\n\t\t\t\twriter.close();\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tconfigurationData = ConfigurationData.makeDefault();\n\t\t\tSystem.out.println(\"Default file created\");\n\t\t}\n\t}", "public static SnakeProblem buildProblemFromFile(File file) throws IOException {\n int NUM_ONE_AI_OBLIGATORY_PARAMS = 4;\n int NUM_TWO_AI_OBLIGATORY_PARAMS = 7;\n\n java.util.Scanner f;\n try {\n f = new java.util.Scanner(file);\n } catch (FileNotFoundException e) {\n return null;\n }\n\n List<String> lines = new LinkedList<>();\n\n while (f.hasNextLine()) {\n String s = f.nextLine();\n if (!s.equals(\"\") && !s.startsWith(\"//\")) {\n lines.add(s);\n }\n }\n\n List<String> parametersValues = new LinkedList<>();\n for (String line : lines) {\n String[] tokens = line.split(\":|,\");\n for (int i = 1; i < tokens.length; i++) {\n parametersValues.add(tokens[i].trim());\n }\n }\n\n int environmentSize, maxIterations, numEnvironmentRuns;\n\n\n try {\n environmentSize = Integer.parseInt(parametersValues.get(0));\n maxIterations = Integer.parseInt(parametersValues.get(1));\n numEnvironmentRuns = Integer.parseInt(parametersValues.get(2));\n } catch (NumberFormatException e) {\n return null;\n }\n\n if (parametersValues.size() > NUM_ONE_AI_OBLIGATORY_PARAMS) {\n List<Integer> numInputs = new ArrayList<>();\n List<Integer> numHiddenUnits = new ArrayList<>();\n List<Integer> numOutputs = new ArrayList<>();\n List<ActivationFunction> activationFunctions = new ArrayList<>();\n\n try {\n numInputs.add(Integer.parseInt(parametersValues.get(3)));\n\n if (parametersValues.size() > NUM_TWO_AI_OBLIGATORY_PARAMS) {\n numInputs.add(Integer.parseInt(parametersValues.get(4)));\n numHiddenUnits.add(Integer.parseInt(parametersValues.get(5)));\n numHiddenUnits.add(Integer.parseInt(parametersValues.get(6)));\n numOutputs.add(Integer.parseInt(parametersValues.get(7)));\n numOutputs.add(Integer.parseInt(parametersValues.get(8)));\n activationFunctions.add(ActivationFunction.valueOf(parametersValues.get(9).toUpperCase()));\n activationFunctions.add(ActivationFunction.valueOf(parametersValues.get(10).toUpperCase()));\n } else {\n numHiddenUnits.add(Integer.parseInt(parametersValues.get(4)));\n numOutputs.add(Integer.parseInt(parametersValues.get(5)));\n activationFunctions.add(ActivationFunction.valueOf(parametersValues.get(6).toUpperCase()));\n }\n } catch (IllegalArgumentException e) {\n return null;\n }\n\n return new SnakeProblem(\n environmentSize,\n maxIterations,\n numEnvironmentRuns,\n numInputs,\n numHiddenUnits,\n numOutputs,\n activationFunctions);\n }\n\n return new SnakeProblem(\n environmentSize,\n maxIterations,\n numEnvironmentRuns);\n }", "public static void main(String[] args) throws FileNotFoundException\n {\n Scanner sc = new Scanner(new File(\"JudgeData/sakshi.dat\"));\n while (sc.hasNext())\n {\n double base = sc.nextDouble();\n double pow = sc.nextDouble();\n\n System.out.printf(\"%.3f\\n\", Math.pow(base, pow));\n }\n }", "private void loadInformation(){\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(\"SpaceProgramGaussDistribution.txt\");\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\tString info = \"\";\n\t\t\t\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\tinfo += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t\tString split[] = info.split(\"#\");\n\t\t\t\n\t\t\tfor(int i = 0; i < split.length; i++){\n\t\t\t\tpopulationInfo += split[i]+\"\\n\";\n\t\t\t}\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramGaussDistribution.txt\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tArrayList<Double> results = new ArrayList<Double>();\n\t\tArrayList<Double> psoResults = new ArrayList<Double>(); \n\t\tint numTermites = 20;\n\t\tint iterations = 10;\n\t\t\n\t\tdouble pStrength = 5;\n\t\tint moves = numTermites;\n\t\tdouble pImportance = 0.01;\n\t\tdouble decayRate = 0.15;\n\t\tdouble globalStrength = 0.25;\n\t\tdouble localStrength = 0.25;\n\t\tdouble randomStrength = 0.15;\n\t\tint runs = 100;\n\t\tfor (int size = 10; size<20; size+=10) {\n\t\t\tmoves = size*2;\n\t\t\ttry\n\t\t\t{\n\t\t\t FileWriter writer = new FileWriter(\"C:\\\\Users\\\\postcn\\\\Documents\\\\size_\"+moves+\".csv\");\n\t\t \n\t\t\t writer.append(\"pImportance\");\n\t\t\t writer.append(',');\n\t\t\t writer.append(\"Result\");\n\t\t\t writer.append('\\n');\n\t\t\t \n\t\t\t for (int i=0; i<runs*5-1; i++) {\n\t\t\t\t\tdouble best = 0;\n\t\t\t\t\tpImportance += 0.01;\n\t\t\t\t\tfor(int j=0; j<runs; j++) {\n\t\t\t\t\t\tGrid g = new Grid();\n\t\t\t\t\t\tg.printGrid();\n\t\t\t\t\t\tg.setSize(size, size);\n\t\t\t\t\t\t//g.setRandomValues();\n\t\t\t\t\t\tg.setGradientValues(1);\n\t\t\t\t\t\tdouble test = randomSearch(numTermites, iterations, pStrength, moves, pImportance, g, decayRate);\n\t\t\t\t\t\tif (test > best) {\n\t\t\t\t\t\t\tbest = test;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\twriter.append(pImportance+\"\");\n\t\t\t\t\twriter.append(',');\n\t\t\t\t\twriter.append(best+\"\");\n\t\t\t\t\twriter.append(\"\\n\");\n\t\t\t\t\tSystem.out.println(\"pImportance: \"+ pImportance + \" :\"+best);\n//\t\t\t\t\tresults.add();\n//\t\t\t\t\tpsoResults.add(PSOSearch(iterations,numTermites, g,globalStrength,localStrength,randomStrength));\n\t\t\t\t}\n\t\t \n\t\t\t //generate whatever data you want\n\t\t \n\t\t\t writer.flush();\n\t\t\t writer.close();\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tdouble accuracy = 0;\n\t\tfor (Double d : results) {\n\t\t\taccuracy += d;\n\t\t}\n\t\taccuracy = accuracy / (double) results.size();\n\t\tSystem.out.println(\"Termites ran an average of \" + accuracy+\"% accuracy.\");\n\t\taccuracy = 0;\n\t\tfor (Double d : psoResults) {\n\t\t\taccuracy += d;\n\t\t}\n\t\taccuracy = accuracy / (double) results.size();\n\t\tSystem.out.println(\"PSO ran an average of \" + accuracy+\"% accuracy.\");\n\t}", "public void run(int runIndex, String fullPath) throws ClassNotFoundException, IOException, JMException {\n long seed = (long) 100;//can be randomly seeded.\n RandomGenerator RG = new RandomGenerator(seed);\n\n MetricsUtilPlus utils_ = new MetricsUtilPlus();\n Properties config = new Properties();\n\n String configFile = \"HF_Config_Benchmark/RealProblemSetting.txt\";\n String algorithms[] = {\"NSGAII\", \"SPEA2\", \"IBEA\", \"mIBEA\", \"GDE3\"};\n\n try {\n config.load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(\"Failed to load configuration file!\");\n System.exit(-1);\n }\n\n int totalEval = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n int decisionPoints = Integer.parseInt(config.getProperty(\"DecisionPoints\"));//50 iterations\n\n int arcSize = Integer.parseInt(config.getProperty(\"ArchiveSize\"));\n populationSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n arcSize=100;\n populationSize=100;\n totalEval=250*100;\n totalEval=1000*100;\n \n //arcSize=30;\n //populationSize=30;\n //totalEval=30*50;\n\n //int populationSize = popSize;\n int fixedSolutionEvl = (int) (totalEval / decisionPoints);\n \n System.out.println(\"CF; decision=\"+decisionPoints+\";fixed=\"+fixedSolutionEvl+\";total=\"+totalEval);\n\n MetricsUtil util = new MetricsUtil();\n\n int maxEvals = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n\n String SolutionType = config.getProperty(\"SolutionType\");\n int popSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n popSize=100;\n //popSize=30;\n\n Problem[] problemInstances = new Problem[problemCreator.getQtdProblem()];\n int[] numberOfVar = new int[problemCreator.getQtdProblem()];\n double[] mutationProb = new double[problemCreator.getQtdProblem()];\n Operator[] mutations = new Operator[problemCreator.getQtdProblem()];\n\n //reference point for hypervolume calculation\n /*HyperVolumeMinimizationProblem hyp = new HyperVolumeMinimizationProblem();*/\n /*double[] truePFhypervolume = new double[problemCreator.getQtdProblem()];*/\n for (int problemIndex = 0; problemIndex < problemCreator.getQtdProblem(); problemIndex++) {\n\n problemInstances[problemIndex] = problemCreator.getProblemInstance(problemIndex);\n numberOfVar[problemIndex] = problemInstances[problemIndex].getNumberOfVariables();\n mutationProb[problemIndex] = (Double) 1.0 / numberOfVar[problemIndex];\n HashMap parameters = new HashMap();\n parameters.put(\"probability\", mutationProb[problemIndex]);\n double mutationDistributionIndex = Double.parseDouble(config.getProperty(\"MutationDistributionIndex\"));\n parameters.put(\"distributionIndex\", mutationDistributionIndex);\n String mutationType = config.getProperty(\"MutationType\");\n mutations[problemIndex] = new PolynomialMutation(mutationProb[problemIndex], mutationDistributionIndex);\n }\n\n LLHInterface[] algorithm = new LLHInterface[problemCreator.getQtdProblem()];\n\n System.out.println(\"Run \" + runIndex + \"....\");\n\n choiceFunction CF = new choiceFunction();\n\n for (int instanceIndex = 6; instanceIndex < problemInstances.length; instanceIndex++) {\n numberOfObj=problemInstances[instanceIndex].getNumberOfObjectives();\n reference = new double[numberOfObj];\n Arrays.fill(reference,1.0);\n minimumValues = new double[numberOfObj];\n maximumValues = new double[numberOfObj];\n\n for (int i = 0; i < numberOfObj; i++) {\n reference[i] = 1.0;\n }\n\n int remainEval = totalEval;\n List<S> inputPop = null;\n ArrayList<Integer> heuristicList = new ArrayList<Integer>();\n\n int chosenHeuristic = -1;\n\n QualityIndicators quality = new QualityIndicators();\n double[][] algorithmEffortArray = new double[algorithms.length][2];\n double[][] ROIArray = new double[algorithms.length][2];\n double[][] hyperVolumeArray = new double[algorithms.length][2];\n double[][] uniformDistributionArray = new double[algorithms.length][2];\n\n // for the purpose of computing hypervolume.\n initialiseExtremeValues();\n\n long[] elapsedTime = new long[algorithms.length];\n long[] lastInvokeTime = new long[algorithms.length];\n long[] executionTimeArray = new long[algorithms.length];\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = 0;\n }\n\n //initialise population for each instance which is used for each algorithm\n List<S> initialPopulation = ProblemCreator.generateInitialPopulation(problemInstances[instanceIndex], popSize);\n \n List[] resultSolutions = new List[algorithms.length];\n List[] inputSolutions = new List[algorithms.length];\n\n for (int i = 0; i < algorithms.length; i++) {\n inputSolutions[i] = new ArrayList(popSize);\n // at the beginning, all inputsolutions are set as the initialPopulation\n inputSolutions[i] = initialPopulation;\n resultSolutions[i] = new ArrayList(popSize);\n }\n LLHInterface eachAlgorithm = null;\n AlgorithmCreator ac = new AlgorithmCreator(problemInstances[instanceIndex]);\n System.out.println(problemInstances[instanceIndex].getName() + \" \" + problemInstances[instanceIndex].getNumberOfObjectives() + \" \" + problemInstances[instanceIndex].getNumberOfVariables());\n ac.setMaxEvaluationsAndPopulation(totalEval, populationSize);\n //Initialise the choice function matrix and get the initial algorithm\n for (int algorithmIndex = 0; algorithmIndex < algorithms.length; algorithmIndex++) {\n //initialise last invoke time (the start time of calling this algorithm) of each algorithm;\n heuristicList.add(algorithmIndex);\n lastInvokeTime[algorithmIndex] = System.currentTimeMillis();\n\n eachAlgorithm=ac.create(algorithmIndex, remainEval);\n\n long startTime = System.currentTimeMillis();\n\n try {\n resultSolutions[algorithmIndex] = eachAlgorithm.execute(/*initialPopulation*/inputSolutions[algorithmIndex], fixedSolutionEvl);\n } catch (Exception e) {\n e.printStackTrace();\n }\n //record the execution time of each algorithm\n long executionTime = System.currentTimeMillis() - startTime;\n executionTimeArray[algorithmIndex] = executionTime;\n\n remainEval -= fixedSolutionEvl;\n\n //iteration += 2;\n inputSolutions[algorithmIndex] = resultSolutions[algorithmIndex];\n //After executed the algorithm, compute the elapsed time. The end time of called this algorithm\n\n }// end algorithmIndex, executing each algorithm for initialisation the choice function matrix\n\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n // find worst points and best points for all the three populations\n for (int i = 0; i < algorithms.length; i++) {\n updateExtremeValues(resultSolutions[i]);\n }\n\n for (int i = 0; i < algorithms.length; i++) {\n algorithmEffortArray[i][0] = i;\n algorithmEffortArray[i][1] = quality.getAlgorithmEffort(executionTimeArray[i], fixedSolutionEvl);\n\n ROIArray[i][0] = i;\n ROIArray[i][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[i]);\n\n hyperVolumeArray[i][0] = i;\n\n hyperVolumeArray[i][1] = computeScaledHypervolume(resultSolutions[i]);\n //hyperVolumeArray[i][1] = quality.getHyperVolume(resultSolutions[i],realReference);\n\n uniformDistributionArray[i][0] = i;\n uniformDistributionArray[i][1] = quality.getUniformDistribution(resultSolutions[i]);\n\n }\n\n int numberOfMeasures = 4;\n int alpha = 30;//alpha =100;//if turbine number is 30\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //the result population of the chosen heuristic is served as the input population\n inputPop = resultSolutions[chosenHeuristic];\n\n while (remainEval > 0) {\n algorithm[instanceIndex]=ac.create(chosenHeuristic, remainEval);\n\n long beginTime = System.currentTimeMillis();\n //execute the chosen algorithm\n heuristicList.add(chosenHeuristic);\n if (fixedSolutionEvl > remainEval) {\n fixedSolutionEvl = remainEval;\n }\n //warranty size. necessary for small pop\n Random rsn=new SecureRandom();\n while(inputPop.size() < populationSize){\n inputPop.add(inputPop.get(rsn.nextInt(inputPop.size())));\n }\n resultSolutions[chosenHeuristic] = algorithm[instanceIndex].execute(inputPop, fixedSolutionEvl);\n inputPop = resultSolutions[chosenHeuristic];\n \n remainEval -= fixedSolutionEvl;\n\n // update executionTimeArray\n executionTimeArray[chosenHeuristic] = System.currentTimeMillis() - beginTime;\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n algorithmEffortArray[chosenHeuristic][1] = quality.getAlgorithmEffort(executionTimeArray[chosenHeuristic], fixedSolutionEvl);\n\n ROIArray[chosenHeuristic][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[chosenHeuristic]);\n\n updateExtremeValues(resultSolutions[chosenHeuristic]);\n hyperVolumeArray[chosenHeuristic][1] = computeScaledHypervolume(resultSolutions[chosenHeuristic]);\n //hyperVolumeArray[chosenHeuristic][1] = quality.getHyperVolume(resultSolutions[chosenHeuristic],realReference);\n\n uniformDistributionArray[chosenHeuristic][1] = quality.getUniformDistribution(resultSolutions[chosenHeuristic]);\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //heuristicList.add(chosenHeuristic);\t\t\n }//end while(remainEvl >0)\n \n String arrayListPath = fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"_ChosenHeuristic.txt\";\n utils_.printArrayListInteger(heuristicList, arrayListPath);\n List<S> obtainedSolutionSet = SolutionListUtils.getNondominatedSolutions(inputPop);\n new SolutionListOutput(obtainedSolutionSet)\n .setSeparator(\"\\t\")\n .setFunFileOutputContext(new DefaultFileOutputContext(fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"CF_FinalParetoFront\"\n + runIndex + \".txt\"))\n .print();\n //print out true front's hypervolume\n\n }//end each problem instance\n\n System.out.println(\"Finished\");\n\n }", "@Test\r\n public void testSystemRunning() throws IOException {\r\n Simulator.main(new String[] {\"settings.txt\"});\r\n Scanner scanner = new Scanner(new FileInputStream(\"orders1.csv\"));\r\n String currentLine = scanner.nextLine();\r\n assertEquals(\"SES, Blue\", currentLine);\r\n currentLine = scanner.nextLine();\r\n assertEquals(\"SES, Red\", currentLine);\r\n currentLine = scanner.nextLine();\r\n assertEquals(\"SE, Beige\", currentLine);\r\n scanner.close();\r\n }", "public static void main(String[] args) {\n\n\t\tBufferedReader br = null;\n\t\tFile fFile = new File(\"\");\n\t\tString cwd = fFile.getAbsolutePath();\n\n\t\tFile nodes = new File(cwd + \"\\\\cmhadd_nodes.config\");\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(nodes));\n\t\t\tint number_of_nodes = 0;\n\t\t\tString node_addr = br.readLine();\n\t\t\tArrayList<String> node_table = new ArrayList<String>();\n\n\t\t\twhile (node_addr != null) {\n\t\t\t\tnode_table.add(node_addr);\n\t\t\t\tnumber_of_nodes++;\n\t\t\t\tnode_addr = br.readLine();\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t\t// System.out.println(number_of_nodes);\n\n\t\t\tint[] siteNumber = new int[number_of_nodes];\n\t\t\tString[] ip_addr = new String[number_of_nodes];\n\t\t\tint[] port = new int[number_of_nodes];\n\n\t\t\tString[] tmpAddress = null;\n\n\t\t\tfor (int counter = 0; counter < number_of_nodes; counter++) {\n\n\t\t\t\ttmpAddress = node_table.get(counter).split(\" \");\n\t\t\t\tsiteNumber[counter] = Integer.parseInt(tmpAddress[0]);\n\t\t\t\tip_addr[counter] = tmpAddress[1];\n\t\t\t\tport[counter] = Integer.parseInt(tmpAddress[2]);\n\n\t\t\t}\n\n\t\t\t// preparing this site\n\n\t\t\tScanner scan = new Scanner(System.in);\n\n\t\t\tint thissiteNumber = 0;\n\n\t\t\tint inFlag = 0;\n\n\t\t\tdo {\n\n\t\t\t\tSystem.out.print(\"Enter site number (1-\" + number_of_nodes + \"): \");\n\t\t\t\tthissiteNumber = Integer.parseInt(scan.nextLine());\n\n\t\t\t\tif (thissiteNumber >= 1 && thissiteNumber <= number_of_nodes) {\n\t\t\t\t\tinFlag = 1;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Please enter the correct site number i.e. from 1 to \" + number_of_nodes);\n\t\t\t\t}\n\n\t\t\t} while (inFlag == 0);\n\n\t\t\t// Preparing processes\n\t\t\tFile process_site = new File(cwd + \"\\\\process.config\");\n\n\t\t\tBufferedReader br1 = new BufferedReader(new FileReader(process_site));\n\t\t\tint process_count = 0;\n\t\t\tString process = br1.readLine();\n\t\t\tArrayList<String> process_site_table = new ArrayList<String>();\n\n\t\t\twhile (process != null) {\n\t\t\t\tprocess_site_table.add(process);\n\t\t\t\tprocess_count++;\n\t\t\t\tprocess = br1.readLine();\n\n\t\t\t}\n\t\t\t// System.out.println(process_count);\n\n\t\t\t// Initializing process per site\n\n\t\t\tString[] process_site_map = null;\n\n\t\t\tString process_numbers = \"\";\n\t\t\tint site_process_count = 0;\n\n\t\t\tInteger[][] process_map = new Integer[process_count][2];\n\n\t\t\tfor (int i = 0; i < process_count; i++) {\n\n\t\t\t\tprocess_site_map = process_site_table.get(i).split(\",\");\n\n\t\t\t\tprocess_map[i][0] = Integer.parseInt(process_site_map[0]);\n\t\t\t\tprocess_map[i][1] = Integer.parseInt(process_site_map[1]);\n\n\t\t\t\tif (thissiteNumber == Integer.parseInt(process_site_map[1])) {\n\t\t\t\t\tsite_process_count++;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tprocess[] processes = new process[site_process_count];\n\n\t\t\tint j = 0;\n\n\t\t\tfor (int i = 0; i < process_count; i++) {\n\n\t\t\t\tprocess_site_map = process_site_table.get(i).split(\",\");\n\n\t\t\t\tif (thissiteNumber == Integer.parseInt(process_site_map[1])) {\n\n\t\t\t\t\tprocess_numbers += process_site_map[0] + \" \";\n\n\t\t\t\t\tprocesses[j] = new process(Integer.parseInt(process_site_map[0]),\n\t\t\t\t\t\t\tInteger.parseInt(process_site_map[1]), process_count, site_process_count);\n\t\t\t\t\tj++;\n\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(process_map[i][0]+\" \"+process_map[i][1]);\n\n\t\t\t}\n\n\t\t\t// System.out.println(\"....................................\");\n\n\t\t\t// Constructing WFG\n\n\t\t\tString[] siteProcesses = process_numbers.split(\" \");\n\n\t\t\tFile dep_wfg = new File(cwd + \"\\\\dependency.config\");\n\n\t\t\tBufferedReader br2 = new BufferedReader(new FileReader(dep_wfg));\n\n\t\t\tArrayList<String> dep_edge = new ArrayList<String>();\n\n\t\t\tString dependecy = br2.readLine();\n\n\t\t\tString[] depVertex = null;\n\n\t\t\twhile (dependecy != null) {\n\n\t\t\t\tdepVertex = dependecy.split(\",\");\n\n\t\t\t\tfor (int i = 0; i < site_process_count; i++) {\n\n\t\t\t\t\tif (depVertex[0].equalsIgnoreCase(siteProcesses[i])) {\n\t\t\t\t\t\t// System.out.println(dependecy);\n\t\t\t\t\t\tprocesses[i].addDependOn(depVertex[1], 1);\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tdependecy = br2.readLine();\n\n\t\t\t}\n\n\t\t\t// for(int i=0;i<site_process_count;i++) {\n\t\t\t// System.out.println(\"Process: \"+processes[i].getProcessNo());\n\t\t\t// processes[i].printDepGraph();\n\t\t\t// }\n\n\t\t\t// Open a socket\n\n\t\t\tlistenToBroadcast listenBcst = new listenToBroadcast(processes, port[thissiteNumber - 1], process_map,\n\t\t\t\t\tip_addr, port, siteNumber);\n\n\t\t\tlistenBcst.start();\n\n\t\t\tString input_query = \"\";\n\n\t\t\tSystem.out.println(\"This site has \" + site_process_count + \" process in total. Process numbers are: \"\n\t\t\t\t\t+ process_numbers);\n\n\t\t\twhile (!input_query.equalsIgnoreCase(\"quit\")) {\n\t\t\t\tSystem.out.print(\"\\n\\nEnter process number for intitating deadlock check (\" + process_numbers + \"): \");\n\n\t\t\t\tScanner scan_query = new Scanner(System.in);\n\t\t\t\tinput_query = scan_query.nextLine();\n\t\t\t\tint process_flag = 0;\n\t\t\t\tint process_ref = 0;\n\n\t\t\t\tfor (int i = 0; i < site_process_count; i++) {\n\n\t\t\t\t\tif (processes[i].getProcessNo() == Integer.parseInt(input_query)) {\n\t\t\t\t\t\tprocess_flag = 1;\n\t\t\t\t\t\tprocess_ref = i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (process_flag == 1) {\n\n\t\t\t\t\tchar result = processes[process_ref].checkDeadlock(processes, process_map);\n\n\t\t\t\t\tif (result == 'D') {\n\t\t\t\t\t\tSystem.out.println(\"Local deadlock detected.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (result == 'L') {\n\t\t\t\t\t\tSystem.out.println(\"The process is not dependent on any othe process, hence no deadloack .\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (result == 'N') {\n\t\t\t\t\t\tSystem.out.println(\"No Local deadlock detected.\");\n\t\t\t\t\t\tprocesses[process_ref].checkRemoteDeadlock(processes, process_map, ip_addr, port, siteNumber,\n\t\t\t\t\t\t\t\tInteger.parseInt(input_query));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"It seems this process does not belong this site. The process numbers belonging to this site (site number: \"\n\t\t\t\t\t\t\t\t\t+ thissiteNumber + \") are: \" + process_numbers);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter file name\");\n\t\tString file = sc.nextLine();\n\t\tfileRead(file);\n\t\tSystem.out.println(\"Enter required number of clusters\");\n\t\treqNoOfClusters =Integer.parseInt(sc.nextLine());\n\t\tmakeInitialDistanceMatrix();\n\t\twhile(totalCluster != reqNoOfClusters) {\n\t\t\tmergeNext();\n\t\t}\n\t\tprintClusters();\n\t\tdouble jac = getJaccard();\n\t\tSystem.out.println(\"Jaccard coefficient = \"+jac);\n//\t\tdouble rand = getRand();\n//\t\tSystem.out.println(\"rand = \"+rand);\n\t}", "private void setupParameters() {\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tboolean pass = false;\r\n\t\tint userInputInt;\r\n\t\t// read input parameters\r\n\t\t// 1\r\n\t\tSystem.out.println(\"\\t*** Get Simulation Parameters ***\\n\\n\");\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter simulation time (0 < integer <= 10000)\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 10000) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 101: Maximum simulation length allowed is 10000, enter a smaller integer.\");\r\n\t\t\t\t\tin.nextLine();\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(\"Error Code 102: Minimum simulation length allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsimulationTime = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 103: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 2\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter the number (0 < integer <= 10) of tellers\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 10) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 201: Maximum numbers of allowed tellers is 10, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 202: Minimum numbers of allowed tellers is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnumTellers = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 203: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 3\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter chances (0% < integer <= 100%) of new customer \t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 100) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 301: Maximum percentage allowed is 100, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 302: Minimum percentage allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tchancesOfArrival = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 303: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 4\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter maximum transaction time (0 < integer <= 500) of customers\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 500) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 401: Maximum transaction time allowed is 500, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(\"Error Code 402: Minimum transaction time allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmaxTransactionTime = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 403: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 5\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter customer queue size (0 < integer <= 50)\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt > 50) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 501: Maximum queue size allowed is 50, enter a smaller integer.\");\r\n\t\t\t\t} else if (userInputInt < 1) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\"Error Code 502: Minimum queue size allowed is 1, enter a larger integer.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomerQLimit = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 503: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// setup dataFile or dataRandom\r\n\t\t// 6\r\n\t\twhile (!pass) {\r\n\t\t\tSystem.out.print(\"Enter 0/1 to get data from Random/file\t\t\t\t\t\t\t: \");\r\n\t\t\tif (in.hasNextInt()) {\r\n\t\t\t\tuserInputInt = in.nextInt();\r\n\t\t\t\tif (userInputInt == 1) {\r\n\t\t\t\t\tdataSource = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t} else if (userInputInt == 0) {\r\n\t\t\t\t\tdataSource = userInputInt;\r\n\t\t\t\t\tpass = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Error Code 601: Enter either 0 or 1. \");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Error Code 603: Enter an integer.\");\r\n\t\t\t\tin.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tpass = false;\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// clean up code\r\n\t\t// 7\r\n\t\tif (dataSource == 1) {\r\n\t\t\tgetDataFile();\r\n\t\t}\r\n\t\tin.close();\r\n\t}", "private static void usage()\r\n\t{\r\n\t\tSystem.err.println(\"Usage: java pj2 MonteCarloVSmp <seed> <lowerV> <upperV> <p> <T> <increment>\\n\" +\r\n\t\t\t\t\"<seed> = Random seed\\n\" + \r\n\t\t\t\t\"<lowerV> = Lower bound of number of vertices\\n\" +\r\n\t\t\t\t\"<upperV> = Upper bound of number of vertices\\n\" +\r\n\t\t\t\t\"<p> = Edge probability\\n\" +\r\n\t\t\t\t\"<T> = Number of trials\\n\" +\r\n\t\t\t\t\"<increment> = the value by which to increment V (an integer)\");\r\n\t\tthrow new IllegalArgumentException();\r\n\t}", "public static void main(String args[]) throws NumberFormatException, ParseException, IOException{\n\t\tFile in = new File(\"c:/users/yabetaka/Desktop/dataforExp.csv\");\n\t\tgetSPs2(in,500,300);\n\t}", "public static void main(String args[]){\n System.out.println(args[0]);\n List<Double> values = loadFile(args[0]);\n KdTree tree = new KdTree();\n for(int i = 0; 2 * i < values.size(); i+=2){\n double x = values.get(i);\n double y = values.get(i+1);\n System.out.println(\"x: \" + x + \" y: \" + y);\n tree.insert(x, y);\n }\n System.out.println(\"\\n--------------Resultado--------------\\n\");\n tree.print();\n\t}", "private static void readOptimals(Instance inst) throws IOException {\n\t\tFile file = new File(\"data/results.txt\");\r\n\t\tScanner s = new Scanner(file);\r\n\t\tboolean found = false;\r\n\t\twhile(s.hasNextLine() && !found) {\r\n\t\t\tboolean isOptimal = false;\r\n\t\t\tString instName = s.next();\r\n\t\t\tint objective = s.nextInt();\r\n\t\t\t//System.out.println(instName +\", \"+objective);\r\n\t\t\tif(s.next().equals(\"Optimal\")) {\r\n\t\t\t\tisOptimal = true;\r\n\t\t\t}\r\n\t\t\tif(inst.getName().equals(instName + \".txt\")) {\r\n\t\t\t\t//System.out.println(\"Nombre:\"+instName+\" Objective:\"+objective+\" Optimal:\"+isOptimal);\r\n\t\t\t\tfound = true;\r\n\t\t\t\tif(isOptimal) {\r\n\t\t\t\t\tinst.setOptimal(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(true);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tinst.setFeasible(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\ts.close();\r\n\t}", "public void simulateRoucairolCarvalho() throws FileNotFoundException\n\t{\n\t\tHashMap<Integer, Host> nMap = constructGraph(\"config.txt\", nodeId);\n\n\t\t//System.out.println(\"[INFO]\t[\"+sTime()+\"]\tNo Of CS : \"+noOfCriticalSectionRequests+\" Mean Delay : \"+meanDelayInCriticalSection+\" Duration Of CS : \"+durationOfCriticalSection);\n\t\tstartServer();\n\t}", "public void main(String[] args) throws Exception\r\n\t{\r\n\t\tint V; // number of vertices for the current iteration\r\n\r\n\t\tif(args.length != 6)\r\n\t\t{\r\n\t\t\tusage();\r\n\t\t}\r\n\t\t\r\n\t\tseed = Long.parseLong(args[0]);\r\n\t\tlowerV = Integer.parseInt(args[1]);\r\n\t\tupperV = Integer.parseInt(args[2]);\r\n\t\tp = Double.parseDouble(args[3]);\r\n\t\tT = Long.parseLong(args[4]);\r\n\t\tincrement = Integer.parseInt(args[5]);\r\n\r\n\t\t// print the command line used to run this code\r\n\t\tSystem.out.print(\"$ java pj2 MonteCarloPSeq\");\r\n\t\tfor(String arg : args)\r\n\t\t{\r\n\t\t\tSystem.out.print(\" \" + arg);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tSystem.out.println(\"V\\t\\tAvg d\");\r\n\r\n\t\tfor(int v1 = lowerV; v1 <= upperV; v1 += increment)\t\t\r\n\t\t{\r\n\t\t\tfinal DoubleVbl.Sum sumVbl = new DoubleVbl.Sum();\r\n\r\n\t\t\tint vHold = v1;\r\n\t\t\tdouble avg;\r\n\r\n\t\t\t// do T trials in parallel\r\n\t\t\tparallelFor(0, T - 1).exec(new LongLoop()\r\n\t\t\t{\r\n\t\t\t\t// Per-thread variables\r\n\t\t\t\tArrayList<Vertex> vertices;\r\n\t\t\t\tRandom rand;\r\n\t\t\t\tGraph graph;\r\n\t\t\t\tDoubleVbl.Sum thrSum;\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * initialize per-thread variables\r\n\t\t\t\t */\r\n\t\t\t\tpublic void start()\r\n\t\t\t\t{\r\n\t\t\t\t\trand = new Random(seed + rank());\r\n\t\t\t\t\tgraph = new Graph(rand);\r\n\t\t\t\t\tthrSum = threadLocal(sumVbl);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Loop body\r\n\t\t\t\t */\r\n\t\t\t\tpublic void run(long t)\r\n\t\t\t\t{\r\n\t\t\t\t\tvertices = graph.generateGraph(vHold, p);\r\n\t\t\t\t\t// thrSum.reduce(new DoubleVbl((double)graph.diameter(vHold, vertices)));\r\n\t\t\t\t\tthrSum.item += (double)graph.diameter(vHold, vertices);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tavg = sumVbl.item / T;\r\n\t\t\tSystem.out.println(vHold + \"\\t\\t\" + avg);\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] instr = null;\n\t\tinstr = in.readLine().trim().split(\" \");\n\t\tn = Integer.parseInt(instr[0]);\n\t\tm = Integer.parseInt(instr[1]);\n\n\t\tval = new int[n + 1];\n\t\tEdge[] map = new Edge[n + 1];\n\t\tfor (int i = 0; i <= n; i++) {\n\t\t\tval[i] = 999999;\n\t\t\tmap[i] = new Edge();\n\t\t}\n\n\t\tint u, v, l;\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tinstr = in.readLine().trim().split(\" \");\n\t\t\tu = Integer.parseInt(instr[0]);\n\t\t\tv = Integer.parseInt(instr[1]);\n\t\t\tl = Integer.parseInt(instr[2]);\n\t\t\tmap[u].go.add(v);\n\t\t\tmap[u].weight.add(l);\n\t\t}\n\n\t\tval[1] = 0;\n\t\tdijkstra(map);\n\t\t// bellman_ford();\n\t\t// bellman_ford_que(map) ;\n\t\tfor (int i = 2; i < val.length; i++) {\n\t\t\tSystem.out.println(val[i]);\n\t\t}\n\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n Scanner scanner = new Scanner(new FileInputStream(\"/Users/guoziren/IdeaProjects/剑指offer for Java/src/main/java/com/ustc/leetcode/algorithmidea/dynamicprogramming/input.txt\"));\n }", "public static void main(String[] args) throws IOException {\n ArrayList<String> in = GetInput.get(\"10.txt\");\n for (String star : in) {\n Sky.addStar(new Star(\n Integer.parseInt(star.substring(10, 16).replaceAll(\" \", \"\")),\n Integer.parseInt(star.substring(18, 24).replaceAll(\" \", \"\")),\n Integer.parseInt(star.substring(36, 38).replaceAll(\" \", \"\")),\n Integer.parseInt(star.substring(40, 42).replaceAll(\" \", \"\"))\n ));\n }\n for (int i = 0; i < 20000; i++) {\n Sky.printSky(i);\n }\n\n }", "public static void main(String[] args) throws IOException {\n Mian object = new Mian();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String l = br.readLine();\n object.SetUpValues(l);\n String x = br.readLine();\n object.SetBalls(x);\n System.out.println(object.MaxWeight());\n }", "public static void main(String args[]) throws Exception\n\t\t{\n\t\t\t\n\t\t\tSystem.setIn(new FileInputStream(\"sample_input.txt\"));\n\t\t\t\n\t\t\t/*\n\t\t\t Make new scanner from standard input System.in, and read data.\n\t\t\t */\n\t\t\t\n\t\t\ttry (Scanner sc = new Scanner(System.in)){\n\t\t\t\t\n\t\t\t\ttotSampleSet = sc.nextInt();\n\t\t\t\t\n\t\t\t\ttarget = sc.nextInt();\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < totSampleSet; i++) {\n\t\t\t\t\tint arraySize = sc.nextInt();\n\t\t\t\t\tint[] numArray = new int[arraySize];\n\t\t\t\t\t\n\t\t\t\t\tfor (int j = 0; j < numArray.length; j++) {\n\t\t\t\t\t\tnumArray[j] = sc.nextInt();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tanswer = twoSums(numArray, target);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(Arrays.toString(answer));\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void writeParameters(String fileName) {\n String dirName = \"simulation_outputs\";\n File dir = new File(dirName);\n if (!dir.exists()) {\n dir.mkdir();\n }\n\n Writer writer = null;\n long steps = station.schedule.getSteps();\n LocalDateTime now = LocalDateTime.now();\n try {\n writer = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(dirName + \"/\" + fileName), \"utf-8\"));\n writer.write(\"<html><head><title>Parameters</title></head><body><p><h2>Parameter Settings</h2>\");\n writer.write(\"<h3>\" + \"Simulation runModel on \" +\n now.getDayOfWeek() + \" \" + now.getDayOfMonth() + \" \" + now.getMonth() + \" \" + now.getYear() +\n \" at \" + now.getHour() + \":\" + now.getMinute() + \":\" + now.getSecond() +\n \"</h3>\");\n writer.write(\"<p>\" + \"Person Size : \" + station.getPersonSize() + \"</p>\");\n writer.write(\"<p>\" + \"Number of People: \" + station.getNumPeople() + \"</p>\");\n writer.write(\"<p>\" + \"Number of Entrances: \" + station.getNumEntrances() + \"</p>\");\n writer.write(\"<p>\" + \"Size of Entrances: \" + station.getEntranceSize() + \"</p>\");\n writer.write(\"<p>\" + \"Number of Exits: \" + station.getNumExits() + \"</p>\");\n writer.write(\"<p>\" + \"Size of Exits: \" + station.getExitSize() + \"</p>\");\n //writer.write(\"<p>\" + \"Exit choice probability: \" + station.getExitProb() + \"</p>\");\n writer.write(\"<p>\" + \"Person Size : \" + station.getPersonSize() + \"</p>\");\n writer.write(\"<p>\" + \"Seed : \" + station.seed() + \"</p>\");\n writer.write(\"<h3>\" + \"Entrance to exit assignments\" + \"</h3>\");\n ArrayList<Entrance> entrances = station.getEntrances();\n for (int i = 0; i < entrances.size(); i++) {\n writer.write(\"<p>\" + entrances.get(i) + \" - \" + ((Entrance) entrances.get(i)).getExit() + \"</p>\");\n }\n writer.write(\"</body></html>\");\n\n\n } catch (IOException ex) {\n System.out.println(\"Error writing to file\");\n } finally {\n try {\n writer.close();\n } catch (Exception ex) {\n System.out.println(\"Error closing file\");\n }\n }\n }", "public static void main(String[] args) throws IOException {\r\n\t\tBufferedReader bf = new BufferedReader(new FileReader(\"entrada_polinomios\"));\r\n\t\t\r\n\t\ttry{\r\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t\tString aux1 = bf.readLine();\r\n\t\t\t\tint grado = Integer.parseInt(aux1);\r\n\t\t\t\tString aux2 = bf.readLine();\r\n\t\t\t\tint[] coeficientes = new int[grado + 1];\r\n\t\t\t\tString palabrasSeparadas[] = aux2.split(\" \");\r\n\t\t\t\tfor(int i = 0; i < grado + 1;i++){\r\n\t\t\t\t\tcoeficientes[i] = Integer.parseInt(palabrasSeparadas[i]);\r\n\t\t\t\t}\r\n\t\t\t\t//System.out.println(\"holiwi\");\r\n\t\t\t\tVector<Integer> v_aux = new Vector();\r\n\t\t\t\tString aux3 = bf.readLine();\r\n\t\t\t\t//System.out.println(aux3);\r\n\t\t\t\tString valores_a_evaluar[] = aux3.split(\" \");\r\n\t\t\t\tint valor = Integer.parseInt(valores_a_evaluar[0]);\r\n\t\t\t\tint i = 1;\r\n\t\t\t\twhile(valor != 0){\r\n\r\n\t\t\t\t\tv_aux.add(valor);\r\n\t\t\t\t\tvalor = Integer.parseInt(valores_a_evaluar[i]);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tint[] entrada = new int[1 + grado + 1 + v_aux.size()];\r\n\t\t\t\tentrada[0] = grado;\r\n\t\t\t\t//System.out.println(entrada.length + \",\" + coeficientes.length);\r\n\t\t\t\tfor(int j = 0; j < grado + 1; j++){\r\n\t\t\t\t\tentrada[j+1] = coeficientes[j];\r\n\t\t\t\t}\r\n\t\t\t\tfor(int j = 0; j < v_aux.size(); j++){\r\n\t\t\t\t\tentrada[1 + grado + 1 +j] = v_aux.get(j);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPolinomios a = new Polinomios();\r\n\t\t\t\ta.solve(entrada);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\r\n\t}", "public static void main(String[] args) throws IOException {\n \n // set parameter set list\n ParameterSetListMaker maker = new ParameterSetListMaker(DefaultParameterRecipes.getDEFAULT_PARAMETER_RECIPES());\n List<ParameterSet> psList = maker.getParameterSetList();\n \n //Get sequenceDNA a singleton chromsomome II currently\n Path p1 = Paths.get(ParameterSet.FA_SEQ_FILE);\n seq = new SequenceDNA(p1, new SeqInterval(ParameterSet.SEQUENCE_START, ParameterSet.SEQUENCE_END));\n \n //Get PUExpt chromosome II - a singleton\n Path p = Paths.get(ParameterSet.BIN_COUNT_FILE);\n pu = new PuExperiment(p, new SeqBin(ParameterSet.PU_BIN_SIZE,0)); //the pu experiment under study - also sets bin size for analysis\n \n //Get genbank annotation file of chromosome II - a singleton\n Path p2 = Paths.get(ParameterSet.CHROMOSOME_II_GENBANK);\n annotation = new SequenceDNAAnnotationGenbank(p2);\n \n //get transcript list - a singleton\n transcriptList = annotation.getTranscriptsByType(type-> type == Transcript.TRANSCRIPT_TYPE.MRNA || type == Transcript.TRANSCRIPT_TYPE.SNRNA ||\n type == Transcript.TRANSCRIPT_TYPE.RRNA || type == Transcript.TRANSCRIPT_TYPE.SNORNA || type == Transcript.TRANSCRIPT_TYPE.TRNA);\n \n //get Rif1 list\n Path rif1p = Paths.get(ParameterSet.RIF1_INTERVAL_FILE);\n rif1List = new Rif1Sites(rif1p).getRif1IntervalList();\n \n \n //RUN PARAMETER SETS FOR DYNAMIC SIMULATION\n \n //Iterate over all parameter sets\n for (ParameterSet paramSet : psList) { \n\n //Create probability distribution based on transcript exclusion and AT content\n probDistribution = new ProbabilityDistribution2(seq.atFunction(paramSet.getInitiatorSiteLength()), paramSet, \n annotation.getTranscriptBlocks(transcriptList));\n\n //Replicate molecules\n population = new ReplicatingMoleculePopulation(probDistribution, paramSet, rif1List);\n\n //Create new model comparator to compare pu data with predicted right fork frequency distribution from population of replicating molecules\n modelComparator = new AtModelComparator(pu, ParameterSet.SEQUENCE_START / ParameterSet.PU_BIN_SIZE, population.getPopulationAveRtForkFreqInBins());\n \n //print list of interTranscripts with probabilities\n /*System.out.println(\"index\\tstart\\tend\\tAT Content\\tRif1 index\\tprob\"); \n InterTranscriptSites sites = new InterTranscriptSites(seq, annotation.getTranscriptBlocks(transcriptList), rif1List, probDistribution);\n sites.getInterTranscriptList().forEach(System.out::println);\n System.out.println(\"\");*/\n\n switch (task) {\n case PRINT_PARAMETER_SET:\n System.out.println(paramSet); \n break;\n case PRINT_SEQUENCE:\n System.out.println(seq.intervalToString(new SeqInterval(0, seq.getLength() - 1)));\n break;\n case PRINT_CDF:\n System.out.println(paramSet); \n System.out.println(\"MIDPOINT\\tCDF\");\n probDistribution.printCDf(ParameterSet.PU_BIN_SIZE);\n break;\n case PRINT_MEAN_SQUARED_DEVIATION_RIGHT_FORK_FREQUENCY:\n System.out.println(\"MSD\\tNumPreRCs\\tExpConst\\tAttenuator\\tInitLength\\tMaxRate\\tStdDevPredicted\\tStdDevObserved\");\n System.out.println(modelComparator.getMeanSquaredDifference() + \"\\t\" + paramSet.getNumberInitiators() + \"\\t\" + paramSet.getExponentialPowerFactor() + \"\\t\" + \n paramSet.getAttenuationFactor() + \"\\t\" + paramSet.getInitiatorSiteLength() \n + \"\\t\" + paramSet.getMaxFiringProbabilityPerMin() + \"\\t\" + modelComparator.getPredictedStdDeviation() + \"\\t\" + modelComparator.getObservedStdDeviation());\n break;\n case PRINT_PREDICTED_AND_OBSERVED_RIGHT_FORK_FREQUENCIES:\n printPredictedAndObservedRtForkFrequencies(paramSet);\n break;\n case PRINT_INITIATION_FREQUENCIES:\n printInitiationFrequencies(paramSet);\n break;\n case PRINT_TERMINATION_FREQUENCIES:\n printTerminationFrequencies(paramSet);\n break;\n case PRINT_MEDIAN_REPLICATION_TIMES_FOR_BINS_IN_GENOME:\n System.out.println(paramSet);\n System.out.println(\"Position\\tMedianTime\");\n List<Double> replicationTimes = population.getPopulationMedianTimeOfReplicationInBins(ParameterSet.PU_BIN_SIZE, ParameterSet.NUMBER_BINS);\n for (int i = 0; i < replicationTimes.size(); i++) {\n System.out.println(i * ParameterSet.PU_BIN_SIZE + ParameterSet.PU_BIN_SIZE / 2 + \"\\t\" + replicationTimes.get(i));\n }\n break;\n case PRINT_SPHASE_DURATION_FOR_MOLECULES_IN_POPULATION:\n System.out.println(paramSet);\n population.getElapsedTimeList().stream().forEach(f-> System.out.println(f));\n break;\n case PRINT_FRACTION_REPLICATED_OF_BINS_AT_GIVEN_TIME:\n System.out.println(paramSet);\n System.out.println(\"ELAPSED TIME: \" + timeOfReplication + \" min\");\n System.out.println(\"Position\\tFxReplicated\");\n List<Double> fxReplicated = population.getPopulationAveFxReplicatedInBins(timeOfReplication, ParameterSet.PU_BIN_SIZE, ParameterSet.NUMBER_BINS, paramSet.getMinPerCycle());\n for (int i = 0; i < fxReplicated.size(); i++) {\n System.out.println(i * ParameterSet.PU_BIN_SIZE + ParameterSet.PU_BIN_SIZE / 2 + \"\\t\" + fxReplicated.get(i));\n }\n break;\n case PRINT_REPLICATION_TIME_OF_BIN_FOR_MOLECULES_IN_POPULATION:\n System.out.println(paramSet);\n System.out.println(\"BIN NUMBER: \" + binNumber);\n for (int i = 0; i < paramSet.getNumberCells(); i++) {\n System.out.println(population.getPopulationTimesOfReplicationOfBin(binNumber)[i]);\n }\n break;\n case PRINT_RF_DELTA_LIST:\n PrintDeltaAtContentAndNumberTranscribedPositionsOfBins();\n }\n } \n }", "protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "static void initValues()\n\t // Initializes the values array with random integers from 0 to 99.\n\t {\n\t Random rand = new Random();\n\t for (int index = 0; index < SIZE; index++)\n\t values[index] = Math.abs(rand.nextInt(100001));\n\t for (int i = 0; i < RANDSAMP; i++)\n\t \tvalues2[i] = values[Math.abs(rand.nextInt(SIZE+1))]; \n\t }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader bin = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tSantaClausRobot l = new SantaClausRobot();\n\t\tl.readData(bin);\n\t\tl.calculate();\n\t\tl.printRes();\n\t}", "public static void main(String[] args) {\n int[] params = {5, 4, 1, 2, 5, 20};\n Constants.SHIP_MAX_SPEED = params[0];\n Constants.THRUST_SPEED = params[1];\n Constants.MISSILE_COST = params[2];\n Constants.MISSILE_MAX_SPEED = params[3];\n Constants.MISSILE_COOLDOWN = params[4];\n Constants.SHIP_RADIUS = params[5];\n\n int p1 = 2; // player list in GameTest.testedControllers\n int p2 = 2;\n System.out.format(\"Playing %s versus %s\\n\\n\",\n GameTest.testedControllers[p1], GameTest.testedControllers[p2]);\n double[] x = playNAndMean(3, p1, p2);\n System.out.println(Arrays.toString(x));\n StateObservationMulti.gameLogger.printReport();\n StateObservationMulti.gameLogger.showPositionalHeatMap();\n\n }", "public static void main(String[] args){\n\t\tConfigReader.read(args[0]);\n\t\tConfigReader.printValues();\n\t}", "public static void main(String [ ] args)\n\t{\n\t\tPortfolio[] portfolioArr = new Portfolio[2];\n\t\tportfolioArr[0] = new Portfolio(\"Aggressive\", 100000, 0.094324, 0.15675);\n\t\tportfolioArr[1] = new Portfolio(\"Very Conservative\", 100000, 0.06189, 0.063438);\n\t\t\n\t\t//********data process***********//\n\t\tSystem.out.println(\"Monte Carlo Simulation\");\n\t\tSimulator mySimulator = new Simulator(portfolioArr);\n\t\tmySimulator.setPeriods(20);\n\t\tmySimulator.setSimulations(10000);\n\t\tmySimulator.simulate();\n\t\t\n\t\t//********data output***********//\n\t\tfor (Portfolio p : portfolioArr) \n\t\t{\n\t\tSystem.out.println(p);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tStringTokenizer tok = new StringTokenizer(br.readLine());\r\n\t\tN= Integer.parseInt(tok.nextToken());\r\n\t\tfor(int i=0;i<N;i++) {\r\n\t\t\t tok = new StringTokenizer(br.readLine());\r\n\t\t\t for(int j=0;j<N;j++) {\r\n\t\t\t\t map[i][j]=Integer.parseInt(tok.nextToken());\r\n\t\t\t }\r\n\t\t}\r\n\t\tsolve(N,0,0);\r\n\t\tSystem.out.println(ansWhite+\"\\n\"+ansBlue);\r\n\t}", "public static void main(String[] args) {\n something();\n sampleMetod(15, 25);\n sampleMetod(45 , -5);\n sampleMetod(20 , -45);\n sampleMetod( 37, 58);\n }", "public static void main(String[] args) {\n\t\tString filename = \"C:/Users/Myky/Documents/EDAN55/Independent Set/g30.txt\";\n\t\tint[][] adjMatrix = readFile(filename);\n\t\tCounter counter = new Counter(0);\n\t\tint MIS = run(adjMatrix);\n\t\tprint(MIS);\n\n\t}", "public static void main(String args[]) throws FileNotFoundException {\n\t\tSampling sampleCondition1 = new Sampling(\"src/tests/R2.txt\", \"src/tests/S2.txt\", 1, 1, \"4\", \"4\");\n\t\tSampling sampleCondition2 = new Sampling(\"src/tests/R2.txt\", \"src/tests/S2.txt\", 1, 1, \"4\", \"4\");\n\t\t\n\t\t\n\t\tSelectivityCalculator xo1 = new SelectivityCalculator();\n\t\tSelectivityCalculator xo2 = new SelectivityCalculator();\n\t\t\n\t\txo1.Calculator(sampleCondition1.SampleS);\n\t\txo2.Calculator(sampleCondition2.SampleS);\n\t\t\n\t\tdouble res1 = xo1.selectivityCalculator(sampleCondition1.SampleR, sampleCondition1.SampleS, 1);\n\t\tdouble res2 = xo2.selectivityCalculator(sampleCondition2.SampleR, sampleCondition2.SampleS, 2);\n\t\t\n\t\tSystem.out.println(res1);\n\t\tSystem.out.println(res2);\n//\t\tSystem.out.println(sample.SampleR.size());\n//\t\tSystem.out.println(value.size());\n//\t\tSystem.out.println(value.toString());\n\t}", "public static void main(String [ ] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\t//Parse command line arguments\n String organism = null; //The target organism for the simulation, determines the genome data that will be parsed\n if(args[0].equals(\"Hum\"))\n organism = \"Homo sapiens\";\n else if(args[0].equals(\"Mou\"))\n organism = \"Mus musculus\";\n else if(args[0].equals(\"Test\"))\n organism = \"Test test\";\n else\n printString(\"Please check and provide a valid organism name as the first input argument!\");\n \n int sex = 0;\n if(args[1].equals(\"F\"))\n sex = FEMALE;\n else if(args[1].equals(\"M\"))\n sex = MALE;\n else\n printString(\"Please check that you provided 'F' or 'M' for gender!\");\n \n final int INITIAL_POPULATION_SIZE = Integer.parseInt(args[2]);\n final int SIM_DURATION = Integer.parseInt(args[3]);\n final int TIME_INTERVAL = 24;//Integer.parseInt(args[4]);\n \n \n /******************************************************\n * Read the genome_data file to obtain data on the size \n * of each chromosome. Store this data in a String list.\n * Each line stores the integer sizes of each chromosome \n * pair, e.g for an organism of haploid# = 3;\n * chr1 133797422,133797422\n * chr2 242508799,242508799\n * XY 198450956,130786757 <==The last line will have\n * two different values for\n * males (XY instead of XX)\n *\n */\n File genome_data_file = new File (\"Genome_data.txt\");\n genome_data = importGenomeData(genome_data_file, organism, sex);\n \n //printString(Integer.toString(genome_data.size()));\n //for(Iterator<String> i = genome_data.iterator(); i.hasNext();)\n //{\n //String item = i.next();\n //System.out.println(item);\n //}\n /******************************************************/\n \n List<Cell> cell_population = initiatePopulation(INITIAL_POPULATION_SIZE); //Initialise a population to be used at the start of the simulation\n \n //Run the simulation executive, providing the duration to run the simulation for, the time intervals at which events are evaluated and the initial cell population to perform the simulation of proliferation on\n cell_population = runSimulationExecutive(SIM_DURATION, TIME_INTERVAL, cell_population);\n //printLabelDistribOfPopulation(cell_population);\n generateOutput(cell_population, genome_data);\n\n\n }\n\t\tcatch (NumberFormatException|IOException error)\n\t\t{\n\t\t\t//int missing_argument = Integer.parseInt(error.getMessage()) + 1;\n\t\t\t//print(\"Argument number \" + missing_argument + \" missing! Enter the correct number of arguments.\"); // Print error message on console if there are missing arguments\n\t\t\tprintString(\"Oops! Something is wrong with the input values you provided. Check that you have entered the correct number, and types of arguments. Error type => \" + error.getMessage());\n //Catch null pointer exceptions!!!\n\t\t}// try-catch\n\n\t\t//****************************************\n\t\t//1. Set a max time to run simulation\n\t\t//2. Set time intervals\n\t\t//3. Vars for fraction_dividing_cells, rate_cell_death, doubling_time/division_rate\n\t\t//4. Don't use a static variable for current_timepoint. Provide this value each time you deal with a cell, i.e in the for loop\n\t\t//5. cell_cycle_duration\n\t //6. cell_cycle_frequency\n\t \n\t\t\n\t\t//***Maybe store all generations in single rows/columns of a two dimensional array?\n\t\t\n\t}", "public static void main(String[] args) throws Exception { \n\t\tUtils.LIMIT_RELATIONS = true;\n\t\tUtils.WINDOW = 2;\n\t\t\n//\t\tString pid = RandomFile.getPID();\n//\t\tgenerateClass(pid, \"f\", 1, 0, 25);\n//\t\tgenerateClass(pid, \"g\", 2, 0.1, 25);\n\t\t\n\t\tif (args.length != 5) {\n\t\t\tSystem.out.print(\"Usage: numRepeat experiment \");\n\t\t\tSystem.out.print(\"\\\"mean1,mean2,...\\\" \\\"pct1,pct2,..\\\"\");\n\t\t\tSystem.out.print(\"\\\"length1,length2,...\\\"\");\n\t\t\tSystem.out.println();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tUtils.EXPERIMENTS = Integer.parseInt(args[0]);\n\t\tString experiment = args[1];\n\t\tSystem.out.println(\"Experiment: \" + experiment);\n\t\t\n\t\tList<Double> means = new ArrayList<Double>();\n\t\tString[] meanTokens = args[2].split(\"[,]\");\n\t\tfor (String tok : meanTokens)\n\t\t\tmeans.add(Double.parseDouble(tok));\n\t\t\n\t\tList<Double> pcts = new ArrayList<Double>();\n\t\tString[] pctTokens = args[3].split(\"[,]\");\n\t\tfor (String tok : pctTokens)\n\t\t\tpcts.add(Double.parseDouble(tok));\n\t\t\n\t\tList<Integer> lengths = new ArrayList<Integer>();\n\t\tString[] lengthTokens = args[4].split(\"[,]\");\n\t\tfor (String tok : lengthTokens)\n\t\t\tlengths.add(Integer.parseInt(tok));\n\t\t\n\t\tif (\"curve\".equals(experiment)) \n\t\t\tlearningCurve(lengths, means, pcts);\n\t\telse if (\"cluster\".equals(experiment))\n\t\t\tcluster(lengths, means, pcts);\n\t\telse if (\"knn\".equals(experiment))\n\t\t\tknn(lengths, means, pcts);\n\t\telse\n\t\t\texperiment(lengths, means, pcts);\n\t\t\n//\t\texpectedSequenceSizes(lengths,means);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner sc = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tsc = new Scanner( new File(\"C:\\\\Users\\\\SRT\\\\algorithms\\\\robot\\\\src\\\\frodo\\\\input2.txt\") );\r\n\t\t} catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tint test_case = sc.nextInt();\r\n\t\t\r\n\t\tint N=0;\r\n\r\n\t\tfor (int tc = 1; tc <= test_case; tc++){\r\n\t\t\t//if(tc ==1 ) {\r\n\t\t\tN = sc.nextInt();\r\n\t\t\tint grid [][] = new int [N][2];\r\n\r\n\t\t\tfor(int row = 0 ; row < grid.length ; row++) {\r\n\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t\tfor(int col=0; col< grid[0].length; col++) {\r\n\t\t\t\t\tgrid[row][col] = sc.nextInt();\r\n\t\t\t\t\tSystem.out.print(\" \"+ grid[row][col]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\t\t\t\t\t\r\n\t\t\tSystem.out.println(\"#\"+tc+\":\"+getAnswer(N,grid));\r\n\t\t\t//}\t\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tif (args.length != 1) {\n\t\t\tSystem.out.println(\"TestBedConfig test: please provide the name of a config file\\n\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tSystem.out.println(\"Testing TestBedConfig with file \" + args[0]);\n\t\tTestBedConfig tb;\n\t\ttry {\n\t\t\ttb = new TestBedConfig(args[0]);\n\t\n\t\t\tSystem.out.println(\"Read file with \" + tb.getNumberOfMotes() + \" motes\");\n\t\t\tIterator it = tb.getMotesIterator();\n\t\t\tTestBedConfigMote m;\n\t\n\t\t\tint i = 0;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tm = (TestBedConfigMote)it.next();\n\t\t\t\tSystem.out.println(\"Index \" + i + \": \" + m);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static void main(String[] args){\n\n // Create file\n File file = new File(inputfileName);\n\n try {\n BufferedReader in = new BufferedReader(new FileReader(file.getAbsoluteFile()));\n try {\n\n //Read the first 3 lines\n String string1 = in.readLine();\n String string2 = in.readLine();\n String string3 = in.readLine();\n //Ignore an empty string\n in.readLine();\n\n String[] mn = string1.split(\" \");\n String[] sc = string2.split(\" \");\n\n //Initialize m, n, lineNumber, colmn, condition\n m = Integer.parseInt(mn[0]);\n n = Integer.parseInt(mn[1]);\n lineNumber = Integer.parseInt(sc[0]);\n colmn = Integer.parseInt(sc[1]);\n condition = Integer.parseInt(string3);\n\n //Validation of basic parameters\n validation(m, n, condition, lineNumber, colmn);\n\n //----------------------We alternately read all the matrices------------------------\n for (int i = 0; i < m; i++){\n String matrixStr = \"\";\n for (int j = 0; j < n; j++){\n matrixStr += in.readLine() + \" \";\n }\n in.readLine();\n\n int[] tmpIntArray = strToIntArr(matrixStr.trim().split(\" \"));\n\n if(i == 0){\n rezult = getFirstResultString(tmpIntArray);\n continue;\n }else {\n multiplication(matrixStr);\n }\n }\n\n //The desired number\n int rezultValue = rezult[colmn - 1];\n\n //Check the result of the last multiplication\n if(rezultValue >= condition){\n write((rezultValue % condition) + \"\");\n }else {\n write(rezultValue + \"\");\n }\n //---------------------------------------------------------------------------------\n } finally {\n in.close();\n }\n } catch(IOException e) {\n throw new RuntimeException(e);\n }\n }", "public static void main(String[] args) {\n fillArrayWithValues();\n }", "public static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\r\n\t\tSystem.out.println(\"determine o Maior Valor\");\r\n\t\tEstatistica estatistica = new Estatistica(reader.nextInt());\r\n\t\tSystem.out.println(\"somatorio dos numeros entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.somatorio(estatistica.maiorValor));\r\n\t\tSystem.out.println(\"media entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.media(estatistica.maiorValor));\r\n\t\tSystem.out.println(\"variancia entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.variancia(estatistica.maiorValor));\r\n\t\testatistica.paresImpares(estatistica.maiorValor);\r\n\t}", "private void get_values(File f1){\n String line;\n Scanner read_file=null;\n try{\n read_file= new Scanner(f1);\n }catch(FileNotFoundException e){\n System.out.println(\"The specified file of the Student cannot be found.\");\n return;\n }\n line=read_file.nextLine();\n while(!(line.contains(\"OOP\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n //System.out.println(line.substring(8));\n OOP[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[2]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[3]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DE\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DE[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DSA\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DSA[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n line=read_file.nextLine();\n total_marks=Float.parseFloat(line.substring(13));\n average=total_marks/10;\n\n read_file.close();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) throws IOException {\n\t\tString networkName = args[0]; // Network1 1 1000 1 1000 false false global \r\n\t\tInteger generationNr = Integer.parseInt(args[1]);\r\n\t\tInteger maxIterations = Integer.parseInt(args[2]);\r\n\t\tInteger iterationsToAverage = Integer.parseInt(args[3]);\r\n\t\tString censusSize = args[4];\r\n\t\tInteger maxConsideredTravelTimeInSec = 6*3600;\r\n\t\tBoolean shortenTooLongLegs;\r\n\t\tif (args[5].equals(\"shorten\")) {\r\n\t\t\tshortenTooLongLegs = true;\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tshortenTooLongLegs = false;\r\n\t\t}\r\n\t\tBoolean recalculateOriginalCBP = Boolean.parseBoolean(args[6]);\t// if ref scenario cbp parameters must be recalculated as well\r\n\t\tBoolean recalculateNewCBP = Boolean.parseBoolean(args[7]);\r\n\t\tString originalValuesSelection = args[8];\t// \"global\", \"individual\" if comparisons should use every iterations individual value or just global average\t\t\t\t\r\n\t\tint iterationsToAverageGlobal = Integer.parseInt(args[9]);\r\n\t\t// String utilityFunctionSelection = args[10];\r\n\t\tDouble lifeTime = 40.0;\r\n\t\t\r\n\t\tRange yRange = null;\r\n\t\tInteger populationFactor = 0;\r\n\t\t// convert text population file to a number for the calculations\r\n\t\tif (censusSize.equals(\"1pct\")) { populationFactor = 100; yRange = null; }\t\t\t// yRange = new Range(6400.0, 7000.0);\r\n\t\telse if (censusSize.equals(\"0.4pm\")) {populationFactor = 2500;}\r\n\t\telse if (censusSize.equals(\"0.5pm\")) {populationFactor = 2000;}\r\n\t\telse if (censusSize.equals(\"0.6pm\")) {populationFactor = 1667;}\r\n\t\telse if (censusSize.equals(\"1pm\")) {populationFactor = 1000; yRange = null; } \t// yRange = new Range(7400.0, 8100.0);\r\n\t\telse if (censusSize.equals(\"3pm\")) {populationFactor = 333; yRange = null; }\r\n\t\telse if (censusSize.equals(\"6pm\")) {populationFactor = 167; yRange = null; }\r\n\t\telse {System.out.println(\"Census Size invalid! Please check. Aborting...\"); System.exit(0);};\r\n\r\n\t\t\r\n\r\n\t// ---------- INITIALIZATION ----------\r\n\t\tConfig config = ConfigUtils.createConfig();\r\n\t\tconfig.getModules().get(\"network\").addParam(\"inputNetworkFile\",\r\n\t\t\t\t\"zurich_1pm/Evolution/Population/BaseInfrastructure/GlobalNetwork.xml\");\r\n\t\tScenario scenario = ScenarioUtils.loadScenario(config);\r\n\t\tNetwork globalNetwork = scenario.getNetwork();\r\n\t\tMap<Id<Link>, CustomMetroLinkAttributes> metroLinkAttributes = new HashMap<Id<Link>, CustomMetroLinkAttributes>();\r\n\t\tmetroLinkAttributes.putAll(XMLOps.readFromFile(metroLinkAttributes.getClass(),\r\n\t\t\t\t\"zurich_1pm/Evolution/Population/BaseInfrastructure/metroLinkAttributes.xml\"));\r\n\r\n\t\t// all these parameters are to be assessed and are calculated for every iteration\r\n\t\tMap<Integer, Double> utilityByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> totalCostByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeBenefitCarByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeBenefitPtByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeBenefitOtherByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeAverageCarByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeAverageCarByIterationOriginal = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeAveragePtByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeAveragePtByIterationOriginal = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeAverageOtherByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeAverageOtherByIterationOriginal = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> carUsersByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> carUsersByIterationOriginal = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> deltaCarUsersByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> ptUsersByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> ptUsersByIterationOriginal = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> deltaPtUsersByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> otherUsersByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> otherUsersByIterationOriginal = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> deltaOtherUsersByIteration = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> totalBenefit = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeGainsPt = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeGainsCar = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeGainsOther = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> travelTimeGains = new HashMap<Integer, Double>();\r\n\t\tMap<Integer, Double> otherBenefits = new HashMap<Integer, Double>();\r\n\r\n\t\t\r\n\t// ---------- INITIALIZATION ----------\r\n\t\t// load the networks with the MRoute infrastructures to provide them to cost/benefit calculating methods (--> ops/constr cost)\r\n\t\tMNetwork mNetwork = new MNetwork(networkName);\r\n\t\tMNetworkPop latestPopulation = new MNetworkPop();\r\n\t\tlatestPopulation.addNetwork(mNetwork);\r\n\t\tlatestPopulation.modifiedNetworksInLastEvolution.add(networkName);\r\n\t\tfor (int r = 1; r <= 1000; r++) {\r\n\t\t\tFile routesFile = new File(\"zurich_1pm/Evolution/Population/HistoryLog/Generation\" + generationNr\r\n\t\t\t\t\t+ \"/MRoutes/\" + networkName + \"_Route\" + r + \"_RoutesFile.xml\");\r\n\t\t\tif (routesFile.exists()) {\r\n\t\t\t\tSystem.out.println(\"Loading route = Route\"+r);\r\n\t\t\t\tmNetwork.addNetworkRoute(XMLOps.readFromFile(MRoute.class, routesFile.toString()));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t// ---------- SCAN ITERATIONS ----------\r\n\t\t// Backup last iter from sim for totalCosts before overwriting in following loop!\r\n\t\tCBPII cbpOriginal;\r\n\t\tCBPII cbpFinalBackupForCost;\r\n\t\tif (!(new File(\"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\"+maxIterations+\"_Backup.xml\")).exists()) {\r\n\t\t\tcbpFinalBackupForCost = XMLOps.readFromFile((new CBPII()).getClass(),\r\n\t\t\t\t\t\"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\"+maxIterations+\".xml\");\r\n\t\t\tXMLOps.writeToFile(cbpFinalBackupForCost, \"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\"+maxIterations+\"_Backup.xml\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcbpFinalBackupForCost = XMLOps.readFromFile((new CBPII()).getClass(),\r\n\t\t\t\t\t\"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\"+maxIterations+\"_Backup.xml\");\r\n\t\t}\r\n\r\n\t\t\r\n\t// ---------- MAYBE CALCULATE ORIGINAL CBPs (if desired by user and not yet performed in Visualizer_CBPOriginal) ----------\r\n\t\tif (recalculateOriginalCBP) {\r\n\t\t\t// first calculate individual values\r\n\t\t\tString plansFolder = \"zurich_1pm/Zurich_1pm_SimulationOutputEnriched/ITERS\";\r\n\t\t\tfor (Integer lastIteration = 1; lastIteration <= maxIterations; lastIteration++) {\r\n\t\t\t\tString outputFile = \"zurich_1pm/cbpParametersOriginal/cbpParametersOriginal\" + lastIteration + \".xml\";\r\n\t\t\t\tif (lastIteration < iterationsToAverage) { // then use all available (=lastIteration) for averaging\r\n\t\t\t\t\tcbpOriginal = NetworkEvolutionImpl.calculateCBAStats(plansFolder, outputFile,\r\n\t\t\t\t\t\t\t(int) populationFactor, lastIteration, iterationsToAverage, shortenTooLongLegs);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcbpOriginal = NetworkEvolutionImpl.calculateCBAStats(plansFolder, outputFile,\r\n\t\t\t\t\t\t\t(int) populationFactor, lastIteration, iterationsToAverage, shortenTooLongLegs);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// then average individuals to global value\r\n\t\t\tList<CBPII> CBPs = new ArrayList<CBPII>();\r\n\t\t\tfor (Integer i = maxIterations-iterationsToAverageGlobal+1; i<=maxIterations; i++) {\r\n\t\t\t\tCBPII cbpi = XMLOps.readFromFile(CBPII.class, \"zurich_1pm/cbpParametersOriginal/cbpParametersOriginal\" + i + \".xml\");\r\n\t\t\t\tCBPs.add(cbpi);\r\n\t\t\t}\r\n\t\t\tCBPII cbpGlobal = CBPII.calculateAveragesX(CBPs);\r\n\t\t\tXMLOps.writeToFile(cbpGlobal, \"zurich_1pm/cbpParametersOriginal/cbpParametersOriginalGlobal.xml\");\r\n\t\t\t\r\n\t\t\t// --- do stdDev and 90thPercentile Procedure\r\n\t\t}\r\n\t\t\r\n\t\tVisualizerStdDev2.main(new String[] {censusSize, Integer.toString(maxIterations), args[10], args[9]});\r\n\r\n\t// ---------- GET ORIGINAL CBPs in order to compare new values to the reference case ----------\r\n\t\tfor (Integer lastIteration = 1; lastIteration <= maxIterations; lastIteration++) {\r\n\t\t\tString outputFile = \"zurich_1pm/cbpParametersOriginal/cbpParametersOriginal\" + lastIteration + \".xml\";\r\n\t\t\tif (originalValuesSelection.equals(\"individual\")){\r\n\t\t\t\tcbpOriginal = XMLOps.readFromFile(CBPII.class, outputFile);\r\n\t\t\t} else if (originalValuesSelection.equals(\"global\")){\r\n\t\t\t\tcbpOriginal = XMLOps.readFromFile(CBPII.class, \"zurich_1pm/cbpParametersOriginal/cbpParametersOriginalGlobal.xml\");\r\n\t\t\t} else {\r\n\t\t\t\tcbpOriginal = XMLOps.readFromFile(CBPII.class, \"zurich_1pm/cbpParametersOriginal/cbpParametersOriginalGlobal.xml\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// ---------- GET NEW CBPs ----------\r\n\t\t\t// calculate them or load them if calculated already\r\n\t\t\tif (!(new File(\"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\" + lastIteration + \".xml\")).exists()\r\n\t\t\t\t\t|| recalculateNewCBP.equals(true)) {\r\n\t\t\t\t// need to add routes to Network(Population) for events and plans processing - already added in outside loop\r\n\t\t\t\t// do actual processing here (calculates cbp stats here already)\r\n\t\t\t\tif (lastIteration < iterationsToAverage) { // then use all available (=lastIteration) for averaging\r\n\t\t\t\t\tNetworkEvolutionRunSim.runEventsProcessing(latestPopulation, lastIteration, lastIteration,\r\n\t\t\t\t\t\t\tglobalNetwork, \"zurich_1pm/Evolution/Population/\", populationFactor);\r\n\t\t\t\t\tNetworkEvolutionRunSim.peoplePlansProcessingM(latestPopulation, maxConsideredTravelTimeInSec,\r\n\t\t\t\t\t\t\tlastIteration, lastIteration, populationFactor, shortenTooLongLegs, \"zurich_1pm/Evolution/Population/\");\r\n\t\t\t\t} else { // enough iterations to average over all iterationsToAverage\r\n\t\t\t\t\tNetworkEvolutionRunSim.runEventsProcessing(latestPopulation, lastIteration, iterationsToAverage,\r\n\t\t\t\t\t\t\tglobalNetwork, \"zurich_1pm/Evolution/Population/\", populationFactor);\r\n\t\t\t\t\tNetworkEvolutionRunSim.peoplePlansProcessingM(latestPopulation, maxConsideredTravelTimeInSec,\r\n\t\t\t\t\t\t\tlastIteration, iterationsToAverage, populationFactor, shortenTooLongLegs, \"zurich_1pm/Evolution/Population/\");\r\n\t\t\t\t\t// calculates cbp stats here already!\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tCBPII cbpNew = XMLOps.readFromFile((new CBPII()).getClass(),\r\n\t\t\t\t\t\"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\"+lastIteration+\".xml\");\r\n\t\t\t// after extracting all the cbp data from the output plans, use it to calculate the resulting welfare benefits over the ref scenario\r\n\t\t\tcbpNew.calculateBenefits(cbpOriginal);\r\n\t\t\tXMLOps.writeToFile(cbpNew, \"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\"+lastIteration+\".xml\");\r\n\r\n\t\t// ---------- FILL IN PARAMETERS FOR PLOTS FOR EVERY ITERATION ----------\r\n\t\t\tutilityByIteration.put(lastIteration, mNetwork.overallScore);\r\n\t\t\ttotalCostByIteration.put(lastIteration, mNetwork.constructionCost+mNetwork.operationalCost);\r\n\t\t\ttravelTimeBenefitCarByIteration.put(lastIteration, mNetwork.travelTimeGainsCar);\r\n\t\t\ttravelTimeBenefitPtByIteration.put(lastIteration, mNetwork.travelTimeGainsPT);\r\n\t\t\ttravelTimeAverageCarByIteration.put(lastIteration, cbpNew.averageCartime);\r\n\t\t\ttravelTimeAverageCarByIterationOriginal.put(lastIteration, cbpOriginal.averageCartime);\r\n\t\t\ttravelTimeAveragePtByIteration.put(lastIteration, cbpNew.averagePtTime);\r\n\t\t\ttravelTimeAveragePtByIterationOriginal.put(lastIteration, cbpOriginal.averagePtTime);\r\n\t\t\ttravelTimeAverageOtherByIteration.put(lastIteration, cbpNew.customVariable1/cbpNew.otherUsers);\r\n\t\t\ttravelTimeAverageOtherByIterationOriginal.put(lastIteration, cbpOriginal.customVariable1/cbpOriginal.otherUsers);\r\n\t\t\tcarUsersByIteration.put(lastIteration, cbpNew.carUsers);\r\n\t\t\tcarUsersByIterationOriginal.put(lastIteration, cbpOriginal.carUsers);\r\n\t\t\tdeltaCarUsersByIteration.put(lastIteration, cbpNew.carUsers - cbpOriginal.carUsers);\r\n\t\t\tptUsersByIteration.put(lastIteration, cbpNew.ptUsers);\r\n\t\t\tptUsersByIterationOriginal.put(lastIteration, cbpOriginal.ptUsers);\r\n\t\t\tdeltaPtUsersByIteration.put(lastIteration, cbpNew.ptUsers - cbpOriginal.ptUsers);\r\n\t\t\totherUsersByIteration.put(lastIteration, cbpNew.otherUsers);\r\n\t\t\totherUsersByIterationOriginal.put(lastIteration, cbpOriginal.otherUsers);\r\n\t\t\tdeltaOtherUsersByIteration.put(lastIteration, cbpNew.otherUsers - cbpOriginal.otherUsers);\r\n\t\t\ttotalBenefit.put(lastIteration, cbpNew.totalAnnualBenefit);\r\n\t\t\ttravelTimeGains.put(lastIteration, cbpNew.travelTimeGains);\r\n\t\t\ttravelTimeGainsPt.put(lastIteration, cbpNew.travelTimeGainsPt);\r\n\t\t\ttravelTimeGainsCar.put(lastIteration, cbpNew.travelTimeGainsCar);\r\n\t\t\ttravelTimeGainsOther.put(lastIteration, cbpNew.customVariable2);\r\n\t\t\totherBenefits.put(lastIteration, cbpNew.extCostSavings + cbpNew.customVariable4);\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t// ---------- AVERAGE LINES CBP - (for total result & graphs) ----------\r\n\t\t// calculate cbp averages over all iterations\r\n\t\tList<CBPII> CBPs = new ArrayList<CBPII>();\r\n\t\tint minIter = (int) Math.min(20.0, 1.0*maxIterations);\r\n\t\tfor (Integer i = minIter; i<=maxIterations; i++) {\r\n\t\t\tCBPII cbpi = XMLOps.readFromFile(CBPII.class, \"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveraged\"+i+\".xml\");\r\n\t\t\tCBPs.add(cbpi);\r\n\t\t}\r\n\t\tCBPII cbpGlobal = CBPII.calculateAveragesX(CBPs);\r\n\t\tXMLOps.writeToFile(cbpGlobal, \"zurich_1pm/Evolution/Population/\" + networkName + \"/cbpParametersAveragedGlobal.xml\");\r\n\t\t\r\n\t\t\r\n\t// ---------- FOR BETTER VISUALIZATION IN PLOTS ----------\r\n\t\tList<Double> deltaPtTimeAverage = new ArrayList<Double>();\r\n\t\tList<Double> deltaCarTimeAverage = new ArrayList<Double>();\r\n\t\tfor (int iter=1; iter<=travelTimeAveragePtByIteration.size(); iter++) {\r\n\t\t\tdeltaPtTimeAverage.add(100*(travelTimeAveragePtByIteration.get(iter)-travelTimeAveragePtByIterationOriginal.get(iter))/travelTimeAveragePtByIterationOriginal.get(iter));\r\n\t\t\tdeltaCarTimeAverage.add(100*(travelTimeAverageCarByIteration.get(iter)-travelTimeAverageCarByIterationOriginal.get(iter))/travelTimeAverageCarByIterationOriginal.get(iter));\r\n\t\t}\r\n//\t\tDouble deltaPtTimeAverageStdDev = VisualizerStdDev.sampleStandardDeviation(deltaPtTimeAverage);\r\n//\t\tDouble deltaCarTimeAverageStdDev = VisualizerStdDev.sampleStandardDeviation(deltaCarTimeAverage);\r\n//\t\tDouble deltaPtTimeAverageMean = VisualizerStdDev.mean(deltaPtTimeAverage);\r\n//\t\tDouble deltaCarTimeAverageMean = VisualizerStdDev.mean(deltaCarTimeAverage);\t\r\n\t\r\n\t\t// load averaged reference parameters\r\n\t\tCBPII cbpOriginalGlobal = XMLOps.readFromFile(CBPII.class, \"zurich_1pm/cbpParametersOriginal/cbpParametersOriginalGlobal.xml\");\r\n\t\t// load percentiles for reference parameters to compare their deviations and stability to the stability of the simulation under examination\r\n\t\tString[] originals = Log.readFile(\"zurich_1pm/cbpParametersOriginal/Percentiles_90.txt\", Charset.defaultCharset()).split(\",\");\r\n\t\tDouble travelTimeAverageCarOrigConfInterval = Double.parseDouble(originals[0]);\r\n\t\tDouble travelTimeAveragePtOrigConfInterval = Double.parseDouble(originals[1]);\r\n\t\tDouble travelTimeAverageOtherOrigConfInterval = Double.parseDouble(originals[2]);\r\n\t\tDouble meanCarTime = VisualizerStdDev.meanMap(travelTimeAverageCarByIteration, Integer.parseInt(args[10]));\r\n\t\tDouble stdDevCarTime = VisualizerStdDev.getPercentileIntervalMap(travelTimeAverageCarByIteration, 90, Integer.parseInt(args[10]));\r\n\t\tDouble meanPtTime = VisualizerStdDev.meanMap(travelTimeAveragePtByIteration, Integer.parseInt(args[10]));\r\n\t\tDouble stdDevPtTime = VisualizerStdDev.getPercentileIntervalMap(travelTimeAveragePtByIteration, 90, Integer.parseInt(args[10]));\r\n\t\tDouble meanOtherTime = VisualizerStdDev.meanMap(travelTimeAverageOtherByIteration, Integer.parseInt(args[10]));\r\n\t\tDouble stdDevOtherTime = VisualizerStdDev.getPercentileIntervalMap(travelTimeAverageOtherByIteration, 90, Integer.parseInt(args[10]));\r\n\t\t\r\n\t// ---------- PLOTS ----------\r\n\t\tVisualizer.plot2D(\" Change in Modal Split (25 Metro Lines)\\r\\n \",\r\n\t\t\t\t\"\", \t// [#maxMATSimIter=\" + maxIterations + \"] \r\n\t\t\t\t\"MATSim Iteration\", \"Delta Users (Metro - Ref. Case)\",\r\n\t\t\t\tArrays.asList(deltaCarUsersByIteration, deltaPtUsersByIteration, deltaOtherUsersByIteration),\r\n\t\t\t\tArrays.asList(\"Car\", \"PT\", \"Walk/Bike\"), 0.0, 0.0, new Range(-200000.0, 300000.0),\r\n\t\t\t\t\"DeltaModeUsersByIteration_\" +censusSize + networkName + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n\t\tVisualizer.plot2D(\" Change in Modal Split (25 Metro Lines)\\r\\n \",\r\n\t\t\t\t\"\", \r\n\t\t\t\t\"MATSim Iteration\", \"#ModeUsers\",\r\n\t\t\t\tArrays.asList(carUsersByIteration, carUsersByIterationOriginal, ptUsersByIteration, ptUsersByIterationOriginal,\r\n\t\t\t\t\t\totherUsersByIteration, otherUsersByIterationOriginal),\r\n\t\t\t\tArrays.asList(\"Car - Metro Case\", \"Car - Ref Case\", \"PT - Metro Case\", \"PT - Ref Case\", \"Other - Metro Case\", \"Other - Ref Case\"),\r\n\t\t\t\t0.0, 0.0, null, \"ModeShareByIteration_\"+censusSize + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\r\n\t\t// FULL - ALL BENEFITS\r\n//\t\tVisualizer.plot2D(\" Induced Benefits (25 Metro Lines) \\r\\n [Total Cost = \"+cbpFinalBackupForCost.totalAnnualCost+\"] \",\r\n\t\tVisualizer.plot2D(\" Induced Benefits (25 Metro Lines) \\r\\n \", \"\",\r\n\t\t\t\t\"MATSim Iteration\", \"Annual Benefit [CHF p.a.]\",\r\n\t\t\t\tArrays.asList(totalBenefit, travelTimeGains, travelTimeGainsPt, travelTimeGainsCar, travelTimeGainsOther, otherBenefits),\r\n\t\t\t\tArrays.asList(\"Total Benefit\", \"Travel Gains (Time & Comfort)\", \"TravelGainsPT\", \"TravelGainsCAR\",\r\n\t\t\t\t\t\t\"TravelGainsWALK/BIKE\", \"External / Vehicle Cost Savings\"), 0.0, 0.0, new Range(-1.0E9, 2.0E9), // new Range(-1.0E8, 2.5E8)\r\n\t\t\t\t\"BenefitsByIteration_\"+censusSize + \"_maxIter\" + maxIterations + \"AllBenefits.png\"); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n//\t\tVisualizer.plot2D(\" Induced Benefits (25 Metro Lines) \\r\\n \",\r\n//\t\t\t\t\"[Total Cost = \"+cbpFinalBackupForCost.totalAnnualCost+\"] \",\r\n\t\tVisualizer.plot2D(\" Induced Benefits (25 Metro Lines) \\r\\n \", \"\",\r\n\t\t\t\t\"MATSim Iteration\", \"Annual Benefit [CHF p.a.]\",\r\n\t\t\t\tArrays.asList(totalBenefit, travelTimeGains, otherBenefits),\r\n\t\t\t\tArrays.asList(\"Total Benefit\", \"Travel Gains (Time & Comfort)\", \"External Cost & Vehicle Savings\"), 0.0, 0.0, new Range(-1.0E9, 2.0E9), // new Range(0.0E8, 4.5E8), // new Range(-1.0E8, 2.5E8)\r\n\t\t\t\t\"BenefitsByIteration_\"+censusSize + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t// new Range(-1.2E8, +1.2E8)\r\n\t\t// new Range(-0.4E8, +0.9E8)\r\n\t\t// new Range(-0.4E8, +0.9E8)\r\n\t\t// new Range(-0.3E8, +0.8E8)\r\n\t\t\r\n\t\tVisualizer.plot2DConfIntervals(\" Car Average Person Travel Time \\r\\n \",\r\n\t\t\t\t\"[No-Metro scenario average = \" +cbpOriginalGlobal.averageCartime+ \" s] \\r\\n\"\r\n\t\t\t\t+ \"[Metro scenario average = \" +meanCarTime+ \" s] \\r\\n\",\r\n\t\t\t\t\"MATSim Iteration\", \"Average Travel Time Car [s]\",\r\n\t\t\t\tArrays.asList(travelTimeAverageCarByIteration, travelTimeAverageCarByIterationOriginal),\r\n\t\t\t\tArrays.asList(\"Metro Case (25 Lines)\", \"Reference Case Without Metro\"), 0.0, 0.0, new Range(1400.0, 1600.0),\r\n\t\t\t\t\"AverageCarTravelTimeByIteration_\" + censusSize + \"_maxIter\" + maxIterations + \"CONF.png\",\r\n\t\t\t\tArrays.asList(\r\n\t\t\t\t\tArrays.asList(meanCarTime-stdDevCarTime, meanCarTime+stdDevCarTime),\r\n\t\t\t\t\tArrays.asList(cbpOriginalGlobal.averageCartime - travelTimeAverageCarOrigConfInterval,\r\n\t\t\t\t\t\t\t\t\tcbpOriginalGlobal.averageCartime + travelTimeAverageCarOrigConfInterval))); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n\t\tVisualizer.plot2DConfIntervals(\" PT Average Person Travel Time \\r\\n \",\r\n\t\t\t\t\"[No-Metro scenario average = \" +cbpOriginalGlobal.averagePtTime+ \" s] \\r\\n\"\r\n\t\t\t\t+ \"[Metro scenario average = \" +meanPtTime+ \" s] \\r\\n\",\r\n\t\t\t\t\"MATSim Iteration\", \"Average Travel Time PT [s]\",\r\n\t\t\t\tArrays.asList(travelTimeAveragePtByIteration, travelTimeAveragePtByIterationOriginal),\r\n\t\t\t\tArrays.asList(\"Metro Case (25 Lines)\", \"Reference Case Without Metro\"), 0.0, 0.0, new Range(3500.0, 10200.0),\r\n\t\t\t\t\"AveragePtTravelTimeByIteration_\" + censusSize + \"_maxIter\" + maxIterations + \"CONF.png\",\r\n\t\t\t\tArrays.asList(\r\n\t\t\t\t\tArrays.asList(meanPtTime-stdDevPtTime, meanPtTime+stdDevPtTime),\r\n\t\t\t\t\tArrays.asList(cbpOriginalGlobal.averagePtTime - travelTimeAveragePtOrigConfInterval,\r\n\t\t\t\t\t\t\t\t\tcbpOriginalGlobal.averagePtTime + travelTimeAveragePtOrigConfInterval))); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n\t\tVisualizer.plot2DConfIntervals(\" \\\"Other\\\" Average Person Travel Time \\r\\n \",\r\n\t\t\t\t\"[No-Metro scenario average = \" +cbpOriginalGlobal.customVariable1/cbpOriginalGlobal.otherUsers+ \" s] \\r\\n\"\r\n\t\t\t\t+ \"[Metro scenario average = \" +meanOtherTime+ \" s] \\r\\n\",\r\n\t\t\t\t\"MATSim Iteration\", \"Average Travel Time \\\"Other\\\" [s]\",\r\n\t\t\t\tArrays.asList(travelTimeAverageOtherByIteration, travelTimeAverageOtherByIterationOriginal),\r\n\t\t\t\tArrays.asList(\"Metro Case (25 Lines)\", \"Reference Case Without Metro\"), 0.0, 0.0, new Range(8500.0, 10500.0),\r\n\t\t\t\t\"AverageOtherTravelTimeByIteration_\" + censusSize + \"_maxIter\" + maxIterations + \"CONF.png\",\r\n\t\t\t\tArrays.asList(\r\n\t\t\t\t\tArrays.asList(meanOtherTime-stdDevOtherTime, meanOtherTime+stdDevOtherTime),\r\n\t\t\t\t\tArrays.asList(cbpOriginalGlobal.customVariable1/cbpOriginalGlobal.otherUsers - travelTimeAverageOtherOrigConfInterval,\r\n\t\t\t\t\t\t\tcbpOriginalGlobal.customVariable1/cbpOriginalGlobal.otherUsers + travelTimeAverageOtherOrigConfInterval))); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n// --- Is duplicated by CONF\r\n//\t\tVisualizer.plot2D(\" Car Average Person Travel Time \\r\\n \"\r\n//\t\t\t\t+ \"[Metro scenario average = \" +meanCarTime+ \" ], \\r\\n\"\r\n//\t\t\t\t\t\t+ \"[StdDev from ref. value = \" +stdDevCarTime+\" ]\",\r\n//\t\t\t\t\"MATSim Iteration\", \"Average Travel Time Car [s]\",\r\n//\t\t\t\tArrays.asList(travelTimeAverageCarByIteration, travelTimeAverageCarByIterationOriginal),\r\n//\t\t\t\tArrays.asList(\"Metro Case\", \"Reference Case Average Value\"), 0.0, 0.0, new Range(2200.0, 2600.0),\r\n//\t\t\t\t\"AverageCarTravelTimeByIteration_\" + censusSize + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n// --- Is duplicated by CONF\r\n//\t\tVisualizer.plot2D(\" PT Average Person Travel Time \\r\\n \"\r\n//\t\t\t\t+ \"[Metro scenario average = \" +meanPtTime+ \" ], \\r\\n\"\r\n//\t\t\t\t\t\t+ \"[StdDev from ref. value = \" +stdDevPtTime+\" ]\",\r\n//\t\t\t\t\"MATSim Iteration\", \"Average Travel Time PT [s]\",\r\n//\t\t\t\tArrays.asList(travelTimeAveragePtByIteration, travelTimeAveragePtByIterationOriginal),\r\n//\t\t\t\tArrays.asList(\"Metro Case\", \"Reference Case Average Value\"), 0.0, 0.0, new Range(6000.0, 7600.0),\r\n//\t\t\t\t\"AveragePtTravelTimeByIteration_\" + censusSize + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n// --- Is duplicated by CONF\r\n//\t\tVisualizer.plot2D(\" Walk/Bike Average Travel Time \\r\\n \"\r\n//\t\t\t\t+ \"[Metro scenario average = \" +meanOtherTime+ \" ], \\r\\n\"\r\n//\t\t\t\t\t\t+ \"[StdDev from ref. value = \" +stdDevOtherTime+\" ]\",\r\n//\t\t\t\t\"MATSim Iteration\", \"Average Travel Time Walk/Bike [s]\",\r\n//\t\t\t\tArrays.asList(travelTimeAverageOtherByIteration, travelTimeAverageOtherByIterationOriginal),\r\n//\t\t\t\tArrays.asList(\"Metro Case\", \"Ref Case\"), 0.0, 0.0, yRange,\r\n//\t\t\t\t\"AverageOtherTravelTimeByIteration_\" + censusSize + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, // 1.5E1)\r\n\t\t\r\n\t// Visualize developments\r\n\t//\t\tVisualizer.plot2D(\" Network Utility by MATSimIterationStage [#maxMATSimIter=\" + maxIterations + \"] \\r\\n \",\r\n\t//\t\t\t\t\"MATSim Iteration\", \"Annual Utility [Mio CHF]\", Arrays.asList(utilityByIteration, totalCostByIteration,\r\n\t//\t\t\t\t\t\ttravelTimeBenefitCarByIteration, travelTimeBenefitPtByIteration),\r\n\t//\t\t\t\tArrays.asList(\"Total Utility - \"+networkName, \"Total Cost\", \"TravelTimeGains-Car\", \"TravelTimeGains-Pt\"), 0.0, 0.0, null,\r\n\t//\t\t\t\t\"UtilityByIteration\" + networkName + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, 1.5E1)\r\n\t//\t\tVisualizer.plot2D(\" Travel Time Gains by MATSimIterationStage [#maxMATSimIter=\" + maxIterations + \"] \\r\\n \",\r\n\t//\t\t\t\t\"MATSim Iteration\", \"Annual Utility of Travel Time Gains [Mio CHF]\",\r\n\t//\t\t\t\tArrays.asList( travelTimeBenefitCarByIteration, travelTimeBenefitPtByIteration),\r\n\t//\t\t\t\tArrays.asList(\"TravelTimeGains-Car\", \"TravelTimeGains-Pt\"), 0.0, 0.0, null,\r\n\t//\t\t\t\t\"TravelTimeGainsByIteration\" + networkName + \"_maxIter\" + maxIterations + \".png\"); // rangeAxis.setRange(-21.0E1, 1.5E1)\r\n\t}", "public static void main(String[] args) {\n In in = new In(\"rosalind_bipartiteness.txt\");\n //First read in the number of graphs to check\n int graph_num = in.readInt();\n //For loop that calls the createGraph method once for every graph\n for (int i = 1; i <= graph_num ; i++) {\n createGraph(in);\n }\n }", "public static void main(String[] args) throws IOException {\n MandelbrotSet ms = new MandelbrotSet();\n ms.setUp();\n ms.calculate();\n ms.initializeWindow();\n System.out.println(\"Finished!\");\n }", "public static List<String> parseValues(String fileName)\n throws CLIException\n {\n BufferedReader in = null;\n List<String> values = new ArrayList<String>();\n \n try {\n in = new BufferedReader(new FileReader(fileName));\n String line = in.readLine();\n while (line != null) {\n line = line.trim();\n if (line.length() > 0) {\n values.add(line);\n }\n line = in.readLine();\n }\n } catch (IOException e) {\n throw new CLIException(e, ExitCodes.IO_EXCEPTION);\n } finally {\n if (in !=null ) {\n try {\n in.close();\n } catch (IOException e) {\n //ignore cannot close input stream\n }\n }\n }\n return values;\n }", "public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}", "public void readParameters() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n parameterParserXML.readParameterDefinition(configData.getParameterList());\r\n parameterParserXML.processParameterDependency();\r\n }\r\n\r\n Log.info(\"info.progress_control.load_parameter_description\");\r\n }", "public void populateGrid(String fname) {\n\t\t// try open file as input stream\n\t\ttry (InputStream is = Files.newInputStream(Paths.get(fname));\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is))) {\n\n\t\t\tString line = null;\n\t\t\tint row = 0;\n\n\t\t\t// read every line in the file\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tfor (int col = 0; col < line.length(); col++) {\n\t\t\t\t\t// parse number as integer\n\t\t\t\t\tint value = Integer.parseInt(line.charAt(col) + \"\");\n\t\t\t\t\tif (value == 0) {\n\t\t\t\t\t\tgrid[row][col] = new Variable(row, col, value);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgrid[row][col] = new Variable(row, col, value, \n\t\t\t\t\t\t\t\tnew ArrayList<Integer>(Arrays.asList(value)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trow++;\n\t\t\t}\n\n\t\t\t// if file can't be opened or not found\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(e);\n\t\t\tSystem.exit(0); \n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n List<String> instanceToRun = Arrays.asList(\"fnl4461-n44600\");\n //List<String> instanceToRun = Competition.INSTANCES;\n for (String instance : instanceToRun) {\n System.out.println(\"Running on \" + instance);\n String fname = String.format(\"resources/%s.txt\", instance);\n InputStream is = LOADER.getResourceAsStream(fname);\n\n TravelingThiefProblem problem = Util.readProblem(is);\n System.out.println(problem.numOfCities + \" \" + problem.numOfItems);\n problem.name = instance;\n int popSize = instance.charAt(0) == 'p' ? 10 : 100;\n int eliteSize = instance.charAt(0) == 'p' ? 3 : 20;\n int generations = instance.charAt(0) == 'p' ? 10 : 100;\n double evalProbability = problem.numOfItems > 34000 ? 10.0 / problem.numOfItems : 0.04;\n //Algorithm algorithm = new GeneticAlgorithm(popSize, eliteSize,0.02, 1, evalProbability);\n\n Algorithm algorithm = new AntColonyAlgorithm.Builder()\n .withHistoryCoefficient(0.1)\n .withHeuristicCoefficient(2.5)\n .withTotalAnts(40)\n .build();\n List<Solution> nds = algorithm.solve(problem);\n System.out.println(problem.name + \" \" + nds.size() + \" \" + Competition.numberOfSolutions(problem));\n File dir = new File(\"results\");\n Util.writeSolutions(\"results\", Competition.TEAM_NAME, problem, nds);\n }\n }", "public static void main(String[] args) throws Exception { \n \n int N = StdIn.readInt(); // lattice size\n // repeating this computation experiment T times\n int T = StdIn.readInt();\n \n PercolationStats percolationStats = new PercolationStats(N, T);\n \n StdOut.println(\"mean = \"\n + percolationStats.mean());\n StdOut.println(\"stddev = \"\n + percolationStats.stddev());\n StdOut.println(\"95% confidence interval= \"\n + percolationStats.confidenceLo()\n + \" \"\n + percolationStats.confidenceHi());\n }", "@Override\r\n \r\n public void initGrid(String filename)\r\n throws FileNotFoundException, IOException\r\n {\r\n \tFile fileToParse = new File(filename);\r\n \tScanner scanner = new Scanner(fileToParse);\r\n \tint linePositionInFile = 0;\r\n \tfinal int MAZE_SIZE_LINE_POSITION = 0;\r\n \tfinal int VALID_SYMBOLS_LINE_POSITION = 1;\r\n \tfinal int PRESET_VALUE_LINE_POSITION = 2;\r\n\t\tfinal String SYMBOL_DELIMITER = \" \";\r\n\r\n \tString[] splitString = null;\r\n \twhile(scanner.hasNextLine()){\r\n \t\t//current line to be parsed\r\n\t\t\tString parseLine = scanner.nextLine();\r\n \t\tif(linePositionInFile == MAZE_SIZE_LINE_POSITION) {\r\n \t\t\t//construct the game sizes.\r\n \t\t\t\r\n \t\t\t//System.out.println(\"DEBUG: size\" + parseLine);\r\n \t\t\tint parsedMazeSize = Integer.parseInt(parseLine);\r\n \t\t\t//set the gridSize variable\r\n \t\t\tgridSize = parsedMazeSize;\r\n \t\t\t\r\n \t\t\t//construct the game with the proper sizes.\r\n \t\t\tsymbols = new Integer[parsedMazeSize];\r\n \t\t\tgame = new Integer[parsedMazeSize][parsedMazeSize];\r\n\r\n \t\t}else if(linePositionInFile == VALID_SYMBOLS_LINE_POSITION) {\r\n \t\t\t//set valid symbols\r\n \t\t\t//System.out.println(\"DEBUG: symbols\" + parseLine);\r\n \t\t\tsplitString = parseLine.split(SYMBOL_DELIMITER);\r\n \t\t\tfor(int i = 0; i < symbols.length && i < splitString.length; ++i) {\r\n \t\t\t\tsymbols[i] = Integer.parseInt(splitString[i]);\r\n \t\t\t}\r\n \t\t}else if(linePositionInFile >= PRESET_VALUE_LINE_POSITION) {\r\n \t\t\t//System.out.println(\"DEBUG: inserting preset\" + parseLine);\r\n \t\t\t/*\r\n \t\t\t * example = 8,8 7\r\n \t\t\t * below parses and splits the string up to usable values to \r\n \t\t\t * then insert into the game, as preset value constraints.\r\n \t\t\t * \r\n \t\t\t */\r\n \t\t\t\r\n \t\t\tsplitString = parseLine.split(SYMBOL_DELIMITER);\r\n \t\t\tString[] coordinates = splitString[0].split(\",\");\r\n \t\t\tint xCoordinate = Integer.parseInt(coordinates[0]);\r\n \t\t\tint yCoordinate = Integer.parseInt(coordinates[1]);\r\n \t\t\tint presetValueToInsert = Integer.parseInt(splitString[1]);\r\n \t\t\tgame[xCoordinate][yCoordinate] = presetValueToInsert;\r\n\r\n \t\t}\r\n \t\t++linePositionInFile;\r\n \t}\r\n \tscanner.close();\r\n }", "private void loadVariablesFromConfig()\n {\n List<String> spawnNames = (List<String>) spawnConfig.getConfig().getList(\"spawns\");\n for (String spawn : spawnNames) {\n Location location = new Location(\n getServer().getWorld(spawnConfig.getConfig().getString(\"spawn.\" + spawn + \".world\")),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".x\"),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".y\"),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".z\"));\n location.setPitch(spawnConfig.getConfig().getInt(\"spawn.\" + spawn + \".pitch\"));\n location.setYaw(spawnConfig.getConfig().getInt(\"spawn.\" + spawn + \".yaw\"));\n\n spawnLocations.add(location);\n }\n\n // Spectator Spawn\n spectatorSpawn = new Location(\n getServer().getWorld(spawnConfig.getConfig().getString(\"spectatorSpawn.world\")),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.x\"),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.y\"),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.z\"));\n spectatorSpawn.setPitch(spawnConfig.getConfig().getInt(\"spectatorSpawn.pitch\"));\n spectatorSpawn.setYaw(spawnConfig.getConfig().getInt(\"spectatorSpawn.yaw\"));\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in); \r\n\t\twhile(sc.hasNext()){\r\n\t\t\tint x=sc.nextInt();\r\n\t\t\tint y=sc.nextInt();\r\n\t\t\tint result=getResult(x,y);\r\n\t\t\tSystem.out.println(result);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t Scanner in = new Scanner(new File(args[0]));\n\t int X=0,N,i;\n\t int t = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.\n\t for (int ii = 1; ii <= t; ++ii) {\n\t\t\n\t\t\t\t i=1;\n\t\t\t\tSet set = new HashSet<String>();\n\t\t\t\tN = in.nextInt();\n\t\t\t\tif(N==0){\n\t\t\t\t\tSystem.out.println(\"Case #\"+ii+\": INSOMNIA\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\twhile(set.size()!=10){\n\t\t\t\t\tX = N*i;\n\t\t\t\t\tString str = Integer.toString(X);\n\t\t\t\t\tString[] list = str.split(\"|\");\n\t\t\t\t\tfor(String j: list){\n\t\t\t\t\t\tset.add(j);\n\t\t\t\t\t}\n\t\t\t\t\t//set.addAll(list);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Case #\"+ii+\": \"+\tX);\n\t }\n\t}", "public static void main(String[] args) {\n\t\tString configFileName = args[0];\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\t// Read File\r\n\t\tRIP_v2 reader = new RIP_v2();\r\n\t\treader.readFile(configFileName);\r\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int no_cases = scanner.nextInt();\n for (int i = 0; i < no_cases; i++) {\n int n = scanner.nextInt();\n int[] input = new int[n];\n for(int j = 0; j < n; j++) {\n input[j] = scanner.nextInt();\n }\n System.out.printf(\"%.2f\\n\", getExpectedValue(input));\n }\n }" ]
[ "0.57160264", "0.5702192", "0.56443465", "0.56392187", "0.55800045", "0.55422103", "0.553469", "0.5479275", "0.54469365", "0.54208386", "0.5410188", "0.54055417", "0.54013", "0.5373623", "0.5368242", "0.5299919", "0.52867913", "0.5281791", "0.5281125", "0.5278892", "0.5257115", "0.5255791", "0.52524817", "0.5249188", "0.52450377", "0.5242411", "0.5240942", "0.52336174", "0.5224477", "0.52230644", "0.5200568", "0.51890844", "0.51787996", "0.5147918", "0.5140058", "0.5127855", "0.51212984", "0.51184875", "0.5106742", "0.5105423", "0.50983167", "0.50891954", "0.5081149", "0.5079706", "0.50737834", "0.507346", "0.5069616", "0.5068188", "0.5064471", "0.5064383", "0.50632316", "0.5059738", "0.50584143", "0.50556576", "0.5052736", "0.5034091", "0.5026747", "0.50216776", "0.5014308", "0.50133234", "0.50071245", "0.50026006", "0.49923974", "0.49817553", "0.49706078", "0.49674678", "0.49604374", "0.495218", "0.4948869", "0.49474856", "0.49449658", "0.49448046", "0.49434426", "0.49403813", "0.4939405", "0.4937224", "0.49370083", "0.49313653", "0.49296728", "0.49295157", "0.4928543", "0.49254218", "0.492224", "0.49219075", "0.49207515", "0.49201342", "0.4912514", "0.49105078", "0.49053785", "0.4900619", "0.4896916", "0.48858085", "0.4881187", "0.487551", "0.48683688", "0.4865103", "0.48618323", "0.48582017", "0.48558313", "0.48528343", "0.48524925" ]
0.0
-1
Set JTextFields from values in JComboBox (the select built by the file values.txt)
public void setBoxes(String params) { final String[] paramsArray = params.split(","); int i=0; for (Component c : this.westPanel.getComponents()) { if (c instanceof JTextField) { ((JTextField) c).setText(paramsArray[i]); i++; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }", "public void setCombobox() throws IOException {\n try {\n fileReader = new FileReader(\"data/textFiles/gameState.txt\");\n bufferedReader = new BufferedReader(fileReader);\n //remove all items and reload the existing in the file\n comboBox1.removeAllItems();\n //always add \"Trial\" as user\n comboBox1.addItem(\"Trial\");\n //read the file till the end is reached\n while ((line = bufferedReader.readLine()) != null) {\n tokens = line.split(\",\");\n //add all names from the file(names are at first position)\n comboBox1.addItem(tokens[0]);\n }\n } catch (IOException ex) {\n System.out.println(ex);\n } finally {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n }\n }", "private void setValues(ComboBox cb, Object[] values) {\n cb.getItems().clear();\n List<String> list = new ArrayList<>();\n\n for (Object value : values) {\n list.add(value.toString());\n }\n\n cb.getItems().addAll(values);\n cb.getSelectionModel().select(0);\n\n }", "private void setFieldValues(){ \n\n if(rDatabaseType.equalsIgnoreCase(\"mysql\")){\n jComboBoxDatabaseType.setSelectedIndex(1);\n }\n if(rDatabaseType.equalsIgnoreCase(\"oracle\")){\n jComboBoxDatabaseType.setSelectedIndex(0);\n }\n jTextFieldDatabaseNameIp.setText(rDatabaseServerName);\n jTextFieldDBPort.setText(rDBPort);\n jTextFieldSchemaTNSName.setText(rTnsNameOrDBName);\n jTextFieldUserName.setText(rUserName);\n jTextFieldPassword.setText(rPassword);\n jTextFieldTableName.setText(rTableName);\n jTextFieldColumnName.setText(rColumnName);\n jTextFieldSQLQuery.setText(rQuery); \n }", "private void prefil_demo_values() {\n //Dont forget to look at \"Controller.connect()\" method\n //\n MY_SQL = false;\n DATE_FORMAT = \"yy/MM/dd\";\n String quality = \"1702860-ST110\";\n jComboBoxQuality.addItem(quality);\n jComboBoxQuality.setSelectedItem(quality);\n String testCode = \"10194\";\n jComboBoxTestCode.addItem(testCode);\n jComboBoxTestCode.setSelectedItem(testCode);\n //\n String testName = \"ML\";\n jComboBoxTestName.addItem(testName);\n jComboBoxTestName.setSelectedItem(testName);\n //\n }", "public void setComboBoxValues() {\n String sql = \"select iName from item where iActive=? order by iName asc\";\n \n cbo_iniName.removeAllItems();\n try {\n pst = conn.prepareStatement(sql);\n pst.setString(1,\"Yes\");\n rs = pst.executeQuery();\n \n while (rs.next()) {\n cbo_iniName.addItem(rs.getString(1));\n }\n \n }catch(Exception e) {\n JOptionPane.showMessageDialog(null,\"Item list cannot be loaded\");\n }finally {\n try{\n rs.close();\n pst.close();\n \n }catch(Exception e) {}\n }\n }", "public void populateJComboBox(String fieldAlias, List<String> values)\n {\n Component comp = fieldMap.get(fieldAlias);\n \n if (!(comp instanceof JComboBox))\n logger.error(\"Expected component of type JComboBox, but found \"\n + comp.getClass().getName());\n \n JComboBox comboBox = (JComboBox) fieldMap.get(fieldAlias);\n DefaultComboBoxModel dcbm = new DefaultComboBoxModel();\n for (int i=0; i<values.size(); i++) dcbm.addElement(values.get(i));\n comboBox.setModel(dcbm);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jComboBox1 = new javax.swing.JComboBox<>();\n\n setToolTipText(\"\");\n setPreferredSize(new java.awt.Dimension(600, 500));\n\n jTextField1.setEditable(false);\n jTextField1.setBackground(new java.awt.Color(141, 141, 157));\n jTextField1.setFont(new java.awt.Font(\"Modern No. 20\", 0, 36)); // NOI18N\n jTextField1.setForeground(new java.awt.Color(255, 255, 255));\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField1.setText(\"Criar Professor\");\n jTextField1.setToolTipText(\"\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Nome: \");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Grau Académico:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"Idade: \");\n\n jButton1.setText(\"Criar Professor\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/undo.png\"))); // NOI18N\n jButton2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButton2.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\n jButton2.setDefaultCapable(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextField2.setName(\"Nome\"); // NOI18N\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n jTextField3.setName(\"Idade\"); // NOI18N\n\n jComboBox1.setName(\"Grau académico\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jTextField1))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(197, 197, 197)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)\n .addGap(88, 88, 88)\n .addComponent(jButton2)\n .addGap(22, 22, 22)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 76, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)\n .addComponent(jTextField3)\n .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(72, 72, 72))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(139, 139, 139)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField3)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox1))\n .addGap(113, 113, 113)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(44, 44, 44))\n );\n }", "public GI() {\n \n initComponents();\n ReadData rd = new ReadData();//Tao doi tuong\n rd.readFile();//Doc du lieu tu file notepad\n try{\n jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(rd.layTenTatCaTP()));//Lay du lieu tu notepad xuat ra jComboBox\n jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(rd.layTenTatCaTP()));//Lay du lieu tu notepad xuat ra jComboBox\n }\n catch(Exception e){\n System.out.println(\"Error Read File!!!\"); \n }\n\n this.setLocation(100, 30);\n \n }", "private void updateTxtBoxes() {\n int i = channelSelect.getSelectedIndex();\n \n if(i==-1) return; //sometimes channelSelect event is accidentally triggered\n //which calls updateTxtBoxes(),even when selected index is -1. \n //This line of code avoids index out of bounds error\n \n Channel c = channelList.get(i);\n \n ampBox.setText(\"\"+c.getAmp());\n durBox.setText(\"\"+c.getDur());\n freqBox.setText(\"\"+c.getFreq());\n owBox.setText(\"\"+c.getOnWave()); \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n istr1 = new javax.swing.JLabel();\n triggerLabel = new javax.swing.JLabel();\n procLabel = new javax.swing.JLabel();\n nomeVarLabel = new javax.swing.JLabel();\n nomeVarTextField = new javax.swing.JTextField();\n tipoVarComboBox = new javax.swing.JComboBox<>();\n tipoLabel = new javax.swing.JLabel();\n campoObbligatorio = new javax.swing.JLabel();\n addVarButton = new javax.swing.JButton();\n annullaButton = new javax.swing.JButton();\n triggerComboBox = new javax.swing.JComboBox<>();\n proceduraComboBox = new javax.swing.JComboBox<>();\n\n istr1.setFont(new java.awt.Font(\"Impact\", 0, 18)); // NOI18N\n istr1.setText(\"Di sequito verranno inseriti i dati relativi alla variabile da aggiungere ad un Trigger o Procedura \");\n\n triggerLabel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n triggerLabel.setText(\"Trigger \");\n\n procLabel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n procLabel.setText(\"Procedura\");\n\n nomeVarLabel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n nomeVarLabel.setText(\"Nome Variabile *\");\n\n nomeVarTextField.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n tipoVarComboBox.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tipoVarComboBox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"NUMBER\", \"INTEGER\", \"FLOAT\", \"DOUBLE\", \"REAL\", \"CHAR\", \"VARCHAR\", \"BIT\", \"DATE\" }));\n tipoVarComboBox.setSelectedIndex(-1);\n\n tipoLabel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n tipoLabel.setText(\"Tipo Variabile *\");\n\n campoObbligatorio.setText(\"* Campo Obbligatorio\");\n\n addVarButton.setFont(new java.awt.Font(\"Impact\", 0, 18)); // NOI18N\n addVarButton.setText(\"Aggiungi Variabile\");\n addVarButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addVarButtonActionPerformed(evt);\n }\n });\n\n annullaButton.setFont(new java.awt.Font(\"Impact\", 0, 18)); // NOI18N\n annullaButton.setText(\"Annulla\");\n annullaButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n annullaButtonActionPerformed(evt);\n }\n });\n\n triggerComboBox.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n proceduraComboBox.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(campoObbligatorio)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(istr1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(triggerLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(procLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGap(75, 75, 75))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(proceduraComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tipoLabel)\n .addComponent(nomeVarLabel))\n .addGap(85, 85, 85)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nomeVarTextField)\n .addComponent(tipoVarComboBox, 0, 200, Short.MAX_VALUE)\n .addComponent(triggerComboBox, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(335, 335, 335))))\n .addGroup(layout.createSequentialGroup()\n .addGap(179, 179, 179)\n .addComponent(addVarButton)\n .addGap(68, 68, 68)\n .addComponent(annullaButton, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(istr1)\n .addGap(47, 47, 47)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(triggerLabel)\n .addComponent(triggerComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(procLabel)\n .addComponent(proceduraComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(nomeVarLabel)\n .addGap(18, 18, 18)\n .addComponent(tipoLabel))\n .addGroup(layout.createSequentialGroup()\n .addComponent(nomeVarTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(tipoVarComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(annullaButton, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)\n .addComponent(addVarButton, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(campoObbligatorio)\n .addGap(48, 48, 48))\n );\n }", "private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname5 = jComboBox25.getSelectedItem().toString();\n\n array5.add(lacname5);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv5 = new Vector();\n\n for (int i = 0; i < array5.size(); i++) {\n String gette = array5.get(i);\n vv5.add(gette);\n jComboBox30.setModel(new DefaultComboBoxModel<>(vv5));\n }\n\n }", "private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname3 = jComboBox27.getSelectedItem().toString();\n\n array3.add(lacname3);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv3 = new Vector();\n\n for (int i = 0; i < array3.size(); i++) {\n String gette = array3.get(i);\n vv3.add(gette);\n jComboBox26.setModel(new DefaultComboBoxModel<>(vv3));\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cbplaca = new javax.swing.JComboBox<>();\n cbdia = new javax.swing.JComboBox<>();\n cbcolor = new javax.swing.JComboBox<>();\n imprimirtxt = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n revisar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n cbplaca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n cbdia.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n cbcolor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n imprimirtxt.setText(\"jTextField1\");\n\n jButton1.setText(\"jButton1\");\n\n revisar.setText(\"jButton2\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(124, 124, 124)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cbplaca, 0, 146, Short.MAX_VALUE)\n .addComponent(cbdia, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbcolor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 210, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(imprimirtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(44, 44, 44))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(106, 106, 106))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(revisar)\n .addGap(103, 103, 103))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(61, 61, 61)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbplaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(59, 59, 59)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbdia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(imprimirtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbcolor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(revisar))\n .addContainerGap(140, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n cmbColores = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n txtOpcion = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n lblValores = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n textInformacion = new javax.swing.JTextArea();\n jButton1 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Combo\"));\n\n jLabel1.setText(\"Opcion:\");\n\n jButton2.setText(\"Agregar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Remover Item\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"Limpiar todo\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n lblValores.setText(\"Label\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbColores, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4)\n .addGap(31, 31, 31))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 56, Short.MAX_VALUE)\n .addComponent(txtOpcion, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblValores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtOpcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton3)\n .addComponent(jButton4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbColores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblValores, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n textInformacion.setColumns(20);\n textInformacion.setRows(5);\n jScrollPane1.setViewportView(textInformacion);\n\n jButton1.setText(\"Obtener Informacion\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"Buscar Promedio\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jButton6.setText(\"Numero Mayor\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jButton7.setText(\"Numero Menor\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(121, 121, 121)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton5)\n .addGap(18, 18, 18)\n .addComponent(jButton6)\n .addGap(18, 18, 18)\n .addComponent(jButton7)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(16, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "public void fillTESBox(JComboBox<String> tessit) {\n\t\tfor(int i=0; i < listOfFiles.length; i++) {\n\t\t\tif ( isAcceptableFile( listOfFiles[i]) ){\n\t\t\t\ttessit.addItem( getEditedFilename(listOfFiles[i]) );\n\t\t\t\tfileMap.put( getEditedFilename(listOfFiles[i]), listOfFiles[i] );\n\t}\t}\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n campoNome = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n campoMatricula = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n campoCPF = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n campoRG = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n campoEmail = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n cursoComboBox = new javax.swing.JComboBox();\n\n setLayout(null);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 25)); // NOI18N\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/image_edit.png\"))); // NOI18N\n jLabel2.setText(\"Cadastro de aluno\");\n add(jLabel2);\n jLabel2.setBounds(280, 40, 260, 50);\n\n campoNome.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n add(campoNome);\n campoNome.setBounds(220, 130, 420, 30);\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel5.setText(\"Nome Completo\");\n add(jLabel5);\n jLabel5.setBounds(120, 130, 100, 30);\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel6.setText(\"Matrícula\");\n add(jLabel6);\n jLabel6.setBounds(150, 180, 60, 30);\n\n campoMatricula.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n campoMatricula.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoMatriculaActionPerformed(evt);\n }\n });\n add(campoMatricula);\n campoMatricula.setBounds(220, 180, 190, 30);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel4.setText(\"Curso\");\n add(jLabel4);\n jLabel4.setBounds(170, 240, 40, 30);\n\n campoCPF.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n add(campoCPF);\n campoCPF.setBounds(220, 290, 190, 30);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel3.setText(\"RG\");\n add(jLabel3);\n jLabel3.setBounds(170, 340, 30, 30);\n\n campoRG.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n campoRG.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoRGActionPerformed(evt);\n }\n });\n add(campoRG);\n campoRG.setBounds(220, 340, 190, 30);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel1.setText(\"Email\");\n add(jLabel1);\n jLabel1.setBounds(170, 390, 40, 30);\n\n campoEmail.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n campoEmail.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoEmailActionPerformed(evt);\n }\n });\n add(campoEmail);\n campoEmail.setBounds(220, 390, 410, 30);\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/accept_1.png\"))); // NOI18N\n jButton1.setText(\"Salvar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n add(jButton1);\n jButton1.setBounds(270, 470, 100, 30);\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/delete_1.png\"))); // NOI18N\n jButton2.setText(\"Sair\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n add(jButton2);\n jButton2.setBounds(430, 470, 110, 30);\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel7.setText(\"CPF\");\n add(jLabel7);\n jLabel7.setBounds(180, 290, 30, 30);\n\n add(cursoComboBox);\n cursoComboBox.setBounds(220, 240, 190, 30);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox<>();\n jComboBox2 = new javax.swing.JComboBox<>();\n jComboBox3 = new javax.swing.JComboBox<>();\n jLabel5 = new javax.swing.JLabel();\n jComboBox4 = new javax.swing.JComboBox<>();\n jTextField1 = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Name\");\n\n jLabel2.setText(\"Department\");\n\n jLabel3.setText(\"Course\");\n\n jLabel4.setText(\"Year\");\n\n jButton1.setText(\"Fill Feedback\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n jComboBox2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox2ActionPerformed(evt);\n }\n });\n\n jComboBox3.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel5.setText(\"Div\");\n\n jComboBox4.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Teacher's Name:\");\n\n jLabel7.setText(\"Subject:\");\n\n jButton2.setText(\"Next\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel8.setForeground(new java.awt.Color(0, 102, 0));\n jLabel8.setText(\"No question found!! Please visit again later...\");\n\n jButton3.setText(\"Home\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jLabel9.setForeground(new java.awt.Color(204, 0, 0));\n jLabel9.setText(\"jLabel9\");\n\n jLabel10.setText(\"Roll no\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel1))\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel5)))\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(76, 76, 76)\n .addComponent(jLabel10)\n .addGap(48, 48, 48)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton2)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(178, 178, 178)\n .addComponent(jLabel7))\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(97, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton3))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(14, 14, 14)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 190, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addContainerGap())\n );\n\n pack();\n }", "public void setCombo(Object newValue);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cmbFakture = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n cmbProizvod = new javax.swing.JComboBox();\n btnUbaci = new javax.swing.JButton();\n txtKolicina = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setText(\"Faktura: \");\n\n jLabel2.setText(\"Kolicina:\");\n\n jLabel3.setText(\"Proizvod:\");\n\n btnUbaci.setText(\"Ubaci\");\n btnUbaci.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnUbaciActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cmbProizvod, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbFakture, 0, 373, Short.MAX_VALUE)\n .addComponent(txtKolicina)))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnUbaci)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbFakture, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(102, 102, 102)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtKolicina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(82, 82, 82)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cmbProizvod, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addComponent(btnUbaci)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {\n\n String lacname4 = jComboBox28.getSelectedItem().toString();\n\n array4.add(lacname4);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv4 = new Vector();\n\n for (int i = 0; i < array4.size(); i++) {\n String gette = array4.get(i);\n vv4.add(gette);\n jComboBox29.setModel(new DefaultComboBoxModel<>(vv4));\n }\n\n }", "private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed\n // TODO add your handling code here:\n\n String lacname2 = jComboBox12.getSelectedItem().toString();\n\n array2.add(lacname2);\n // System.out.println(array);\n\n // day.addItem(array.get());\n Vector vv2 = new Vector();\n\n for (int i = 0; i < array2.size(); i++) {\n String gette = array2.get(i);\n vv2.add(gette);\n jComboBox24.setModel(new DefaultComboBoxModel<>(vv2));\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButton5 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameActivated(evt);\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jLabel1.setText(\"* Vehiculo\");\n\n jTextField1.setFont(new java.awt.Font(\"Arial\", 0, 10)); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jLabel2.setText(\"Color\");\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jButton1.setText(\" \");\n jButton1.setFocusable(false);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jLabel3.setText(\"* Serie\");\n\n jTextField2.setFont(new java.awt.Font(\"Arial\", 0, 10)); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jLabel4.setText(\"Placas\");\n\n jTextField3.setFont(new java.awt.Font(\"Arial\", 0, 10)); // NOI18N\n\n jButton2.setBackground(new java.awt.Color(255, 255, 255));\n jButton2.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jButton2.setText(\"Agregar\");\n jButton2.setFocusable(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setBackground(new java.awt.Color(255, 255, 255));\n jButton3.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jButton3.setText(\"Cancelar\");\n jButton3.setFocusable(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setBackground(new java.awt.Color(255, 255, 255));\n jButton4.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jButton4.setText(\"Actualizar\");\n jButton4.setFocusable(false);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jTextArea1.setColumns(20);\n jTextArea1.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n jTextArea1.setLineWrap(true);\n jTextArea1.setRows(5);\n jTextArea1.setWrapStyleWord(true);\n jTextArea1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Comentario\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 8))); // NOI18N\n jScrollPane1.setViewportView(jTextArea1);\n\n jButton5.setBackground(new java.awt.Color(255, 255, 255));\n jButton5.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\n jButton5.setText(\"Eliminar\");\n jButton5.setFocusable(false);\n\n jLabel5.setFont(new java.awt.Font(\"Dialog\", 1, 10)); // NOI18N\n jLabel5.setText(\"Agencia\");\n\n jComboBox1.setFont(new java.awt.Font(\"Dialog\", 1, 10)); // NOI18N\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(29, 29, 29)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(22, 22, 22)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextField1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 406, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton4)\n .addComponent(jButton3)\n .addComponent(jButton2)\n .addComponent(jButton5))\n .addContainerGap(15, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n jComboBox3 = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n jComboBox4 = new javax.swing.JComboBox<>();\n jLabel5 = new javax.swing.JLabel();\n jComboBox5 = new javax.swing.JComboBox<>();\n jTextField1 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButton1 = new javax.swing.JButton();\n\n setTitle(\"Editare eveniment\");\n\n jLabel1.setText(\"Tip\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Intalnire\", \"Onomastica\", \"Nota\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Anul\");\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"2018\", \"2019\", \"2020\", \"2021\", \"2022\", \"2023\", \"2024\", \"2025\", \"2026\", \"2027\", \"2028\" }));\n\n jLabel3.setText(\"Luna\");\n\n jComboBox3.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Ianuarie\", \"Februarie\", \"Martie\", \"Aprilie\", \"Mai\", \"Iunie\", \"Iulie\", \"August\", \"Septembrie\", \"Octombrie\", \"Noiembrie\", \"Decembrie\" }));\n\n jLabel4.setText(\"Ziua\");\n\n jComboBox4.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\", \"25\", \"26\", \"27\", \"28\", \"29\", \"30\", \"31\" }));\n\n jLabel5.setText(\"Ora\");\n\n jComboBox5.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"00:00\", \"00:30\", \"01:00\", \"01:30\", \"02:00\", \"02:30\", \"03:00\", \"03:30\", \"04:00\", \"04:30\", \"05:00\", \"05:30\", \"06:00\", \"06:30\", \"07:00\", \"07:30\", \"08:00\", \"08:30\", \"09:00\", \"09:30\", \"10:00\", \"10:30\", \"11:00\", \"11:30\", \"12:00\", \"12:30\", \"13:00\", \"13:30\", \"14:00\", \"14:30\", \"15:00\", \"15:30\", \"16:00\", \"16:30\", \"17:00\", \"17:30\", \"18:00\", \"18:30\", \"19:00\", \"19:30\", \"20:00\", \"20:30\", \"21:00\", \"21:30\", \"22:00\", \"22:30\", \"23:00\", \"23:30\" }));\n jComboBox5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox5ActionPerformed(evt);\n }\n });\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n jButton1.setText(\"Ok\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jTextField1)))\n .addGroup(layout.createSequentialGroup()\n .addGap(247, 247, 247)\n .addComponent(jButton1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n no3 = new javax.swing.JTextField();\n no1 = new javax.swing.JTextField();\n no2 = new javax.swing.JTextField();\n clg3 = new javax.swing.JTextField();\n clg1 = new javax.swing.JTextField();\n clg2 = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n eve = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n relay11 = new javax.swing.JTextField();\n relay12 = new javax.swing.JTextField();\n relay13 = new javax.swing.JTextField();\n relay41 = new javax.swing.JTextField();\n relay42 = new javax.swing.JTextField();\n relay43 = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n tym1 = new javax.swing.JTextField();\n tym2 = new javax.swing.JTextField();\n tym3 = new javax.swing.JTextField();\n time11 = new javax.swing.JTextField();\n time12 = new javax.swing.JTextField();\n time13 = new javax.swing.JTextField();\n time41 = new javax.swing.JTextField();\n time42 = new javax.swing.JTextField();\n time43 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n name1 = new javax.swing.JTextField();\n name2 = new javax.swing.JTextField();\n name3 = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n over1 = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n over2 = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n jLabel1.setText(\"SELECT THE EVENT:\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(32, 18, 118, 16);\n\n jLabel2.setText(\"1st PLACE:\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(46, 133, 62, 16);\n\n jLabel3.setText(\"2nd PLACE:\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(42, 187, 66, 16);\n\n jLabel4.setText(\"3rd PLACE:\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(44, 244, 64, 16);\n\n no3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n no3ActionPerformed(evt);\n }\n });\n getContentPane().add(no3);\n no3.setBounds(154, 241, 80, 22);\n getContentPane().add(no1);\n no1.setBounds(154, 130, 80, 22);\n getContentPane().add(no2);\n no2.setBounds(154, 184, 80, 22);\n getContentPane().add(clg3);\n clg3.setBounds(530, 241, 273, 22);\n\n clg1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n clg1ActionPerformed(evt);\n }\n });\n getContentPane().add(clg1);\n clg1.setBounds(530, 130, 273, 22);\n getContentPane().add(clg2);\n clg2.setBounds(530, 184, 273, 22);\n\n jLabel5.setText(\"CHEST NO\");\n getContentPane().add(jLabel5);\n jLabel5.setBounds(174, 87, 60, 16);\n\n jLabel6.setText(\"COLLEGE NAME\");\n getContentPane().add(jLabel6);\n jLabel6.setBounds(622, 87, 88, 16);\n\n eve.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"100 mts\", \"200 mts\", \"400 mts\", \"800 mts\", \"1500 mts\", \"5000 mts\", \"10000 mts\", \"20 km walk\", \"110 M H\", \"400 M H\", \"LONG JUMP\", \"HIGH JUMP\", \"TRIPLE JUMP\", \"POLE VAULT\", \"SHORT PUT\", \"JAVELIN THROW\", \"DISCUSS THROW\", \"HAMMER THROW\" }));\n getContentPane().add(eve);\n eve.setBounds(168, 15, 128, 22);\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 3, 14)); // NOI18N\n jButton1.setText(\"SHOW RESULT\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n getContentPane().add(jButton1);\n jButton1.setBounds(373, 13, 172, 25);\n\n jLabel7.setText(\"4X100 RELAY\");\n getContentPane().add(jLabel7);\n jLabel7.setBounds(130, 390, 76, 16);\n\n relay11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n relay11ActionPerformed(evt);\n }\n });\n getContentPane().add(relay11);\n relay11.setBounds(40, 410, 273, 22);\n getContentPane().add(relay12);\n relay12.setBounds(40, 440, 273, 22);\n getContentPane().add(relay13);\n relay13.setBounds(38, 472, 273, 22);\n\n relay41.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n relay41ActionPerformed(evt);\n }\n });\n getContentPane().add(relay41);\n relay41.setBounds(530, 410, 273, 22);\n getContentPane().add(relay42);\n relay42.setBounds(530, 440, 273, 22);\n getContentPane().add(relay43);\n relay43.setBounds(530, 472, 273, 22);\n\n jLabel8.setText(\"4X400 RELAY\");\n getContentPane().add(jLabel8);\n jLabel8.setBounds(620, 380, 76, 16);\n getContentPane().add(tym1);\n tym1.setBounds(821, 130, 93, 22);\n getContentPane().add(tym2);\n tym2.setBounds(821, 184, 93, 22);\n getContentPane().add(tym3);\n tym3.setBounds(821, 241, 93, 22);\n getContentPane().add(time11);\n time11.setBounds(370, 410, 92, 22);\n getContentPane().add(time12);\n time12.setBounds(370, 440, 96, 22);\n getContentPane().add(time13);\n time13.setBounds(372, 472, 96, 22);\n\n time41.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n time41ActionPerformed(evt);\n }\n });\n getContentPane().add(time41);\n time41.setBounds(820, 410, 79, 22);\n\n time42.setPreferredSize(new java.awt.Dimension(6, 22));\n getContentPane().add(time42);\n time42.setBounds(820, 440, 79, 22);\n\n time43.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n time43ActionPerformed(evt);\n }\n });\n getContentPane().add(time43);\n time43.setBounds(821, 472, 79, 22);\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 3, 14)); // NOI18N\n jButton2.setText(\"SHOW RELAY RESULTS\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2);\n jButton2.setBounds(388, 501, 195, 25);\n\n jLabel9.setText(\"TIME\");\n getContentPane().add(jLabel9);\n jLabel9.setBounds(835, 78, 79, 16);\n\n jLabel10.setText(\"NAME\");\n getContentPane().add(jLabel10);\n jLabel10.setBounds(352, 87, 33, 16);\n getContentPane().add(name1);\n name1.setBounds(284, 130, 201, 22);\n getContentPane().add(name2);\n name2.setBounds(284, 184, 201, 22);\n getContentPane().add(name3);\n name3.setBounds(284, 241, 201, 22);\n\n jLabel11.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\chandrag\\\\Desktop\\\\bg5.png\")); // NOI18N\n jLabel11.setText(\"jLabel11\");\n getContentPane().add(jLabel11);\n jLabel11.setBounds(0, 0, 930, 580);\n\n over1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n over1ActionPerformed(evt);\n }\n });\n getContentPane().add(over1);\n over1.setBounds(154, 317, 270, 22);\n\n jLabel12.setText(\"OVERALL FIRST:\");\n getContentPane().add(jLabel12);\n jLabel12.setBounds(50, 320, 96, 16);\n getContentPane().add(over2);\n over2.setBounds(547, 317, 220, 22);\n\n jLabel13.setText(\"OVERALL SECOND:\");\n getContentPane().add(jLabel13);\n jLabel13.setBounds(430, 320, 109, 16);\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 3, 14)); // NOI18N\n jButton3.setText(\"OVERALL\");\n getContentPane().add(jButton3);\n jButton3.setBounds(776, 316, 123, 25);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n txtUrunSeriNo = new javax.swing.JTextField();\n txtSatisFiyati = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n txtUrunModel = new javax.swing.JTextField();\n txtUrunIsmi = new javax.swing.JTextField();\n txtAlisFiyati = new javax.swing.JTextField();\n txtAdet = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n comboDepo = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Stok Ekle | Stok Otomasyonu |\");\n setFocusTraversalPolicyProvider(true);\n setLocation(new java.awt.Point(0, 0));\n setResizable(false);\n setType(java.awt.Window.Type.UTILITY);\n\n jButton1.setText(\"EKLE\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n txtSatisFiyati.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\n txtSatisFiyati.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtSatisFiyatiKeyTyped(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Ürün Seri No : \");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Ürün İsmi :\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"Ürün Model :\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel5.setText(\"Adet :\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel6.setText(\"Alış Fiyatı :\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel7.setText(\"Satış Fiyatı :\");\n\n txtAlisFiyati.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtAlisFiyatiKeyTyped(evt);\n }\n });\n\n txtAdet.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtAdetKeyTyped(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(48, 66, 105));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"# Ürün Ekle #\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel8.setText(\"Depo :\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(comboDepo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtAlisFiyati, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)\n .addComponent(txtAdet)\n .addComponent(txtUrunModel)\n .addComponent(txtUrunIsmi)\n .addComponent(txtUrunSeriNo)\n .addComponent(txtSatisFiyati, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunSeriNo, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunIsmi, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunModel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAdet, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAlisFiyati, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtSatisFiyati, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboDepo, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "public pansiyon() {\n initComponents();\n for (int i =1900; i <2025; i++) {\n \n cmbkayıtyılı.addItem(Integer.toString(i));\n \n }\n for (int i =1900; i <2025; i++) {\n \n cmbayrılısyılı.addItem(Integer.toString(i));\n \n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n nameLabel = new javax.swing.JLabel();\n performButton = new javax.swing.JButton();\n availableNames = new javax.swing.JComboBox<>();\n\n setMaximumSize(new java.awt.Dimension(435, 600));\n setMinimumSize(new java.awt.Dimension(435, 600));\n setPreferredSize(new java.awt.Dimension(435, 600));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Знайти за назвою\");\n jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n nameLabel.setText(\"Назва:\");\n\n performButton.setText(\"Виконати\");\n performButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n performButtonActionPerformed(evt);\n }\n });\n\n availableNames.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(140, 140, 140)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(availableNames, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(150, 150, 150)\n .addComponent(performButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(availableNames, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addComponent(performButton))\n );\n\n nameLabel.getAccessibleContext().setAccessibleName(\"id\");\n\n getAccessibleContext().setAccessibleParent(this);\n }", "public void loadDefaultSettings(){\r\n try{\r\n File propFile;\r\n String curLine;\r\n CodeSource codeSource = EMSimulationSettingsView.class.getProtectionDomain().getCodeSource();\r\n File jarFile = new File(codeSource.getLocation().toURI().getPath());\r\n File jarDir = jarFile.getParentFile();\r\n \r\n propFile = new File(jarDir, \"default_EMSettings.txt\");\r\n FileReader fr = new FileReader(propFile);//reads in the pdb\r\n BufferedReader br = new BufferedReader(fr);\r\n while ((curLine = br.readLine()) != null) {\r\n String[] setting = curLine.split(\"[\\t]+\");//split by whitespace into an array to read\r\n if(setting[0].toString().compareTo(\"Minim Method\")==0){\r\n jComboBox1.setSelectedIndex(Integer.parseInt(setting[1]));\r\n }\r\n\t\t\t \r\n if(setting[0].compareTo(\"Step Size\")==0){\r\n if(setting[1].compareTo(\"0.0\")!=0&&setting[1].compareTo(\"0\")!=0)jTextField1.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Numsteps\")==0){\r\n jTextField2.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Convergence\")==0){\r\n jTextField3.setText(setting[1]);\r\n }\r\n\t\t\t \r\n\t\tif(setting[0].compareTo(\"Interval\")==0){\r\n jTextField4.setText(setting[1]);\r\n }\r\n }\r\n this.setVisible(true);\r\n br.close();\r\n fr.close();\r\n }\r\n catch (Exception e){\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n }", "private void fillAllFields() {\r\n combo.setSelectedItem(moviesModule.getConfig().getOpeningSystem());\r\n fileChooser.setFilePath(moviesModule.getConfig().getFFmpegLocation());\r\n }", "private void ComboUserActionPerformed(java.awt.event.ActionEvent evt) {\n if(ComboUser.getSelectedItem().equals(\"title\")){\n \n selected=1;\n }\n else if(ComboUser.getSelectedItem().equals(\"author\"))\n {\n selected=2;\n }\n else if(ComboUser.getSelectedItem().equals(\"subject\"))\n {\n selected=3;\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jTextField7 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox();\n jTextField9 = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Ürün Adı\");\n\n jLabel2.setText(\"Ürün Kodu\");\n\n jLabel3.setText(\"Ürün Giriş Mİktarı\");\n\n jLabel4.setText(\"Ürün Çıkış Mİktarı\");\n\n jLabel5.setText(\"Ürün Fİyatı\");\n\n jLabel6.setText(\"Ürün Giriş Tarihi\");\n\n jLabel7.setText(\"Ürün Çıkış Tarihi\");\n\n jLabel8.setText(\"Depolama Türü\");\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField3ActionPerformed(evt);\n }\n });\n\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField4ActionPerformed(evt);\n }\n });\n\n jTextField5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField5ActionPerformed(evt);\n }\n });\n\n jTextField6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField6ActionPerformed(evt);\n }\n });\n\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField7ActionPerformed(evt);\n }\n });\n\n jTextField8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField8ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Sonraki\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Önceki\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Bulunan stoklar\");\n\n jButton3.setText(\"Ara\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ürün adı ara\", \"Ürün kodu ara\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel10.setText(\"adet kayıt bulundu\");\n\n jLabel11.setText(\"Stok Ara\");\n\n jTextField10.setText(\" \");\n jTextField10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField10ActionPerformed(evt);\n }\n });\n\n jTextField11.setText(\" \");\n jTextField11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField11ActionPerformed(evt);\n }\n });\n\n jTextField12.setText(\" \");\n jTextField12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField12ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9))\n .addGroup(layout.createSequentialGroup()\n .addGap(190, 190, 190)\n .addComponent(jLabel11)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(32, 32, 32))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(16, 16, 16)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n pack();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\\u5546\\u54C1ID\");\r\n\t\tlabel.setBounds(10, 27, 54, 15);\r\n\t\tframe.getContentPane().add(label);\r\n\t\t\r\n\t\tString[] IDChoose = new String[gc.getGoodsId().size()];\r\n\t\tIDChoose = gc.getGoodsId().toArray(IDChoose);\t\t\r\n\t\tfinal JComboBox comboBox_2 = new JComboBox(IDChoose);//商品ID\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"\\u4ED3\\u5E93ID\");//仓库ID\r\n\t\tlblNewLabel.setBounds(181, 27, 54, 15);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel label_1 = new JLabel(\"\\u5546\\u54C1\\u540D\\u79F0\");//名称\r\n\t\tlabel_1.setBounds(10, 62, 54, 15);\r\n\t\tframe.getContentPane().add(label_1);\r\n\t\t\r\n\t\tfinal JTextPane textPane_2 = new JTextPane();\r\n\t\ttextPane_2.setBounds(67, 58, 87, 19);\r\n\t\tframe.getContentPane().add(textPane_2);\r\n\t\t\r\n\t\tJLabel label_2 = new JLabel(\"\\u5546\\u54C1\\u7C7B\\u522B\");//类别\r\n\t\tlabel_2.setBounds(181, 62, 54, 15);\r\n\t\tframe.getContentPane().add(label_2);\r\n\t\t\r\n\t\tfinal JTextPane textPane = new JTextPane();\r\n\t\ttextPane.setBounds(250, 56, 104, 21);\r\n\t\tframe.getContentPane().add(textPane);\t\t\t\r\n\t\t\r\n\t\tJLabel label_3 = new JLabel(\"\\u5E93\\u5B58\\u4E0A\\u9650\");//上限\r\n\t\tlabel_3.setBounds(10, 97, 54, 15);\r\n\t\tframe.getContentPane().add(label_3);\r\n\t\t\r\n\t\tfinal JTextPane textPane_4 = new JTextPane();\r\n\t\ttextPane_4.setBounds(67, 91, 87, 21);\r\n\t\tframe.getContentPane().add(textPane_4);\r\n\t\t\r\n\t\tJLabel label_4 = new JLabel(\"\\u5E93\\u5B58\\u4E0B\\u9650\");//下限\r\n\t\tlabel_4.setBounds(181, 97, 54, 15);\r\n\t\tframe.getContentPane().add(label_4);\r\n\t\t\r\n\t\tfinal JTextPane textPane_5 = new JTextPane();\r\n\t\ttextPane_5.setBounds(250, 87, 104, 25);\r\n\t\tframe.getContentPane().add(textPane_5);\r\n\t\t\r\n\t\tJLabel label_5 = new JLabel(\"\\u6210\\u672C\\u4EF7\");//成本\r\n\t\tlabel_5.setBounds(10, 128, 41, 15);\r\n\t\tframe.getContentPane().add(label_5);\r\n\t\t\r\n\t\tfinal JTextPane textPane_6 = new JTextPane();\r\n\t\ttextPane_6.setBounds(67, 122, 87, 21);\r\n\t\tframe.getContentPane().add(textPane_6);\r\n\t\t\r\n\t\tJLabel label_6 = new JLabel(\"\\u9884\\u552E\\u4EF7\");//预售价\r\n\t\tlabel_6.setBounds(181, 125, 54, 15);\r\n\t\tframe.getContentPane().add(label_6);\r\n\t\t\r\n\t\tfinal JTextPane textPane_7 = new JTextPane();\r\n\t\ttextPane_7.setBounds(250, 122, 104, 21);\r\n\t\tframe.getContentPane().add(textPane_7);\r\n\t\t\r\n\t\tJLabel label_7 = new JLabel(\"\\u751F\\u4EA7\\u5382\\u5BB6\");//厂家\r\n\t\tlabel_7.setBounds(10, 152, 54, 15);\r\n\t\tframe.getContentPane().add(label_7);\r\n\t\t\r\n\t\tfinal JTextPane textPane_8 = new JTextPane();\r\n\t\ttextPane_8.setBounds(67, 153, 87, 21);\r\n\t\tframe.getContentPane().add(textPane_8);\r\n\t\t\r\n\t\tJLabel label_8 = new JLabel(\"\\u5546\\u54C1\\u578B\\u53F7\");//型号\r\n\t\tlabel_8.setBounds(181, 152, 54, 15);\r\n\t\tframe.getContentPane().add(label_8);\r\n\t\t\r\n\t\tfinal JTextPane textPane_9 = new JTextPane();\r\n\t\ttextPane_9.setBounds(250, 153, 104, 21);\r\n\t\tframe.getContentPane().add(textPane_9);\r\n\t\t\r\n\t\t//通过商品号和仓库号来显示商品信息\r\n\t\t//仓库ID下拉框\r\n\t\tString[] WIDChoose = new String[gc.getWareHouseId((String)comboBox_2.getSelectedItem()).size()];\r\n\t\tWIDChoose = gc.getWareHouseId((String)comboBox_2.getSelectedItem()).toArray(WIDChoose);\t\t\r\n\t\tfinal JComboBox comboBox = new JComboBox(WIDChoose);//仓库ID\r\n\t\tcomboBox.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\r\n\t\t\t\tgoods good = new goods();\r\n\t\t\t\tgood = gc.findByGoodsIdandWareId((String)comboBox_2.getSelectedItem(), (String)comboBox.getSelectedItem());\r\n\t\t\t\t\r\n\t\t\t\ttextPane_2.setText(good.getGoods_name());\r\n\t\t\t\ttextPane.setText(good.getGoods_category());\r\n\t\t\t\ttextPane_4.setText(String.valueOf(good.getGoods_up()));\r\n\t\t\t\ttextPane_5.setText(String.valueOf(good.getGoods_down()));\r\n\t\t\t\ttextPane_6.setText(String.valueOf(good.getGoods_cost()));\r\n\t\t\t\ttextPane_7.setText(String.valueOf(good.getGoods_prprice()));\r\n\t\t\t\ttextPane_8.setText(good.getGoods_factory());\r\n\t\t\t\ttextPane_9.setText(good.getGoods_version());\r\n\t\t\t}\r\n\t\t});\t\t\r\n\t\tcomboBox.setBounds(248, 24, 106, 21);\r\n\t\tframe.getContentPane().add(comboBox);\r\n\t\r\n\t\tgoods good = new goods();\r\n\t\tgood = gc.findByGoodsIdandWareId((String)comboBox_2.getSelectedItem(), (String)comboBox.getSelectedItem());\r\n\t\t\r\n\t\ttextPane_2.setText(good.getGoods_name());\r\n\t\ttextPane.setText(good.getGoods_category());\r\n\t\ttextPane_4.setText(String.valueOf(good.getGoods_up()));\r\n\t\ttextPane_5.setText(String.valueOf(good.getGoods_down()));\r\n\t\ttextPane_6.setText(String.valueOf(good.getGoods_cost()));\r\n\t\ttextPane_7.setText(String.valueOf(good.getGoods_prprice()));\r\n\t\ttextPane_8.setText(good.getGoods_factory());\r\n\t\ttextPane_9.setText(good.getGoods_version());\t\t\r\n\t\t\r\n\t \r\n\t\tcomboBox_2.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tgoods good = new goods();\r\n\t\t\t\tgood = gc.findByGoodsIdandWareId((String)comboBox_2.getSelectedItem(), (String)comboBox.getSelectedItem());\r\n\t\t\t\t\r\n\t\t\t\ttextPane_2.setText(good.getGoods_name());\r\n\t\t\t\ttextPane.setText(good.getGoods_category());\r\n\t\t\t\ttextPane_4.setText(String.valueOf(good.getGoods_up()));\r\n\t\t\t\ttextPane_5.setText(String.valueOf(good.getGoods_down()));\r\n\t\t\t\ttextPane_6.setText(String.valueOf(good.getGoods_cost()));\r\n\t\t\t\ttextPane_7.setText(String.valueOf(good.getGoods_prprice()));\r\n\t\t\t\ttextPane_8.setText(good.getGoods_factory());\r\n\t\t\t\ttextPane_9.setText(good.getGoods_version());\r\n\t\t\t}\r\n\t\t});\r\n\t\tcomboBox_2.setBounds(67, 24, 87, 21);\r\n\t\tframe.getContentPane().add(comboBox_2);\r\n\t\t//显示截止到此\r\n\t\r\n\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n Operador1TF = new javax.swing.JTextField();\n Operador2TF = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n ResultadoTF = new javax.swing.JTextArea();\n CalcularBT = new javax.swing.JButton();\n combo = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n jLabel1.setText(\"Operador1:\");\n\n jLabel2.setText(\"Operador2:\");\n\n jLabel3.setText(\"Operacao:\");\n\n ResultadoTF.setColumns(20);\n ResultadoTF.setRows(5);\n jScrollPane1.setViewportView(ResultadoTF);\n\n CalcularBT.setText(\"Calcular\");\n CalcularBT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CalcularBTActionPerformed(evt);\n }\n });\n\n combo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"+\", \"-\", \"/\", \"*\" }));\n combo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n comboItemStateChanged(evt);\n }\n });\n combo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Operador2TF, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Operador1TF)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(CalcularBT)\n .addGap(42, 42, 42))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(Operador1TF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(Operador2TF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(CalcularBT)))\n .addGap(0, 45, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n combo_races = new javax.swing.JComboBox<>();\n scroll_flavor = new javax.swing.JScrollPane();\n txt_pane_flavor = new javax.swing.JTextPane();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n lbl_languages = new javax.swing.JLabel();\n lbl_attribute_bonuses = new javax.swing.JLabel();\n\n setLayout(new java.awt.BorderLayout());\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/ico_race_deck_title.png\"))); // NOI18N\n add(jLabel1, java.awt.BorderLayout.PAGE_START);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n jPanel1.add(jPanel2, java.awt.BorderLayout.PAGE_START);\n\n jPanel3.setLayout(null);\n\n combo_races.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"None\" }));\n combo_races.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n combo_racesItemStateChanged(evt);\n }\n });\n jPanel3.add(combo_races);\n combo_races.setBounds(20, 40, 250, 20);\n\n txt_pane_flavor.setEditable(false);\n scroll_flavor.setViewportView(txt_pane_flavor);\n\n jPanel3.add(scroll_flavor);\n scroll_flavor.setBounds(20, 72, 250, 380);\n\n jLabel2.setText(\"Select your Race here...\");\n jPanel3.add(jLabel2);\n jLabel2.setBounds(20, 10, 250, 14);\n\n jLabel3.setText(\"Attributes:\");\n jPanel3.add(jLabel3);\n jLabel3.setBounds(20, 460, 60, 14);\n\n jLabel4.setText(\"Languages: \");\n jPanel3.add(jLabel4);\n jLabel4.setBounds(20, 480, 70, 14);\n\n lbl_languages.setText(\"None\");\n jPanel3.add(lbl_languages);\n lbl_languages.setBounds(90, 480, 200, 14);\n\n lbl_attribute_bonuses.setText(\"None\");\n jPanel3.add(lbl_attribute_bonuses);\n lbl_attribute_bonuses.setBounds(90, 460, 200, 14);\n\n jPanel1.add(jPanel3, java.awt.BorderLayout.CENTER);\n\n add(jPanel1, java.awt.BorderLayout.CENTER);\n }", "private void fillInputCombo(){\n//\t\tmyInput.actionPerformed(null);\n//\t\tmyInput.setAction(null);\n\t\tfillingCombo = true;\n\t\tmyInput.removeAllItems();\n\t\tfor(int i=0;i<distinctRules.length;i++){\n\t\t\tif(distinctRules[i][0].equals(currentRule)){\n\t\t\t\tString allValue[] = distinctRules[i][1].split(\",\");\n\t\t\t\tfor(int j=0;j<allValue.length;j++){\n//\t\t\t\t\tmyInput.actionPerformed(null);\n\t\t\t\t\tmyInput.addItem(allValue[j].toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfillingCombo = false;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel5 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jComboBox3 = new javax.swing.JComboBox<>();\n jComboBox4 = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel5 = new javax.swing.JLabel();\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 2, 36)); // NOI18N\n jLabel3.setText(\"Select Locations: \");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(260, 260, 260))\n );\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel1.setText(\"From:\");\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel2.setText(\"To:\");\n\n jComboBox3.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Error File\" }));\n jComboBox3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox3ActionPerformed(evt);\n }\n });\n\n jComboBox4.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Error File\" }));\n\n jButton1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jButton1.setText(\"Go\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel4.setText(\"KM: \");\n\n jTextField1.setEditable(false);\n jTextField1.setBackground(new java.awt.Color(255, 255, 255));\n jTextField1.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(51, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE))\n .addContainerGap(25, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 2, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(100, 100, 100)\n .addComponent(jLabel2)\n .addGap(118, 118, 118))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(jButton1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(34, Short.MAX_VALUE))\n );\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 3, 14)); // NOI18N\n jLabel5.setText(\"Log:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(103, 103, 103))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 473, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel5)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(32, 32, 32))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 24, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void SetDefautValueCombo(Item item) \n {\n this.defautValueCombo=item;\n ;\n }", "private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jComboBox4 = new javax.swing.JComboBox();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaMyarea = new javax.swing.JTextArea();\n jButton1valGuar = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jComboBoxBasic = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n jComboBoxFormating = new javax.swing.JComboBox();\n jLabel4 = new javax.swing.JLabel();\n jComboBoxForm = new javax.swing.JComboBox();\n jLabel5 = new javax.swing.JLabel();\n jButton1Cargar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jComboBoxc = new javax.swing.JComboBox();\n jLabel6 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jComboBoxd = new javax.swing.JComboBox();\n jLabel11 = new javax.swing.JLabel();\n jComboBoxe = new javax.swing.JComboBox();\n jLabel12 = new javax.swing.JLabel();\n jComboBoxf = new javax.swing.JComboBox();\n jLabel13 = new javax.swing.JLabel();\n jComboBoxg = new javax.swing.JComboBox();\n jLabel14 = new javax.swing.JLabel();\n jComboBoxh = new javax.swing.JComboBox();\n jLabel15 = new javax.swing.JLabel();\n jComboBoxi = new javax.swing.JComboBox();\n jLabel16 = new javax.swing.JLabel();\n jComboBoxj = new javax.swing.JComboBox();\n jLabel17 = new javax.swing.JLabel();\n jComboBoxk = new javax.swing.JComboBox();\n jButton1insertar = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jButton1ayudahtml = new javax.swing.JButton();\n\n jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jTextAreaMyarea.setColumns(20);\n jTextAreaMyarea.setRows(5);\n jTextAreaMyarea.setText(\"\\n\\n\\n<!DOCTYPE html>\\n\\n<html>\\n\\n<head>\\n\\n<title> Titulo del documento </title>\\n\\n</head>\\n\\n<body>\\n\\n</body>\\n\\n</html>\");\n jScrollPane1.setViewportView(jTextAreaMyarea);\n\n jButton1valGuar.setText(\"validar y guardar\");\n jButton1valGuar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1valGuarActionPerformed(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 153));\n\n jLabel2.setText(\"Basic:\");\n\n jComboBoxBasic.setMaximumSize(new java.awt.Dimension(35, 32));\n jComboBoxBasic.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxBasicActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Formating:\");\n\n jLabel4.setText(\"Forms:\");\n\n jLabel5.setText(\"ETIQUETAS HTML\");\n\n jButton1Cargar.setText(\"CARGAR\");\n jButton1Cargar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1CargarActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Frames:\");\n\n jComboBoxc.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel6.setText(\"Selecciones el tipo de etiqueta que desea insertar\");\n\n jLabel10.setText(\"Images\");\n\n jComboBoxd.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel11.setText(\"Audio/video\");\n\n jComboBoxe.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel12.setText(\"jLabel12\");\n\n jComboBoxf.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel13.setText(\"Tables:\");\n\n jComboBoxg.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel14.setText(\"Links:\");\n\n jComboBoxh.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel15.setText(\"jLabel15\");\n\n jComboBoxi.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel16.setText(\"jLabel16\");\n\n jComboBoxj.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel17.setText(\"jLabel17\");\n\n jComboBoxk.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jButton1insertar.setText(\"Innsertar Etiqueta\");\n jButton1insertar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1insertarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel14))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBoxForm, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(62, 62, 62)\n .addComponent(jLabel12))))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1Cargar))\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBoxd, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel16))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBoxe, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(89, 89, 89))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel17)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBoxc, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(57, 57, 57)\n .addComponent(jLabel15))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(23, 23, 23)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBoxBasic, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(107, 107, 107))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBoxFormating, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(67, 67, 67)\n .addComponent(jLabel13)))))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBoxf, 0, 161, Short.MAX_VALUE)\n .addComponent(jComboBoxg, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBoxh, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBoxi, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBoxj, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBoxk, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(32, 32, 32))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1insertar, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(179, 179, 179))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jButton1Cargar))\n .addGap(18, 18, 18)\n .addComponent(jLabel6)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jComboBoxBasic, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jComboBoxf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxFormating, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13)\n .addComponent(jComboBoxg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel14)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jComboBoxForm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jComboBoxc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15)\n .addComponent(jComboBoxi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(jComboBoxd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBoxj, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jComboBoxh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(jComboBoxk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(3, 3, 3)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(jComboBoxe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addComponent(jButton1insertar)\n .addContainerGap())\n );\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/ufps/fondoescritorioForm3.jpg\"))); // NOI18N\n\n jLabel8.setFont(new java.awt.Font(\"Tw Cen MT Condensed Extra Bold\", 1, 24)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 0, 51));\n jLabel8.setText(\"EDITOR HTML\");\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 153));\n\n jLabel1.setText(\"Si desea obtener informacion sobre una etiqueta en especifico vaya a Ayuda HTML\");\n\n jButton1ayudahtml.setText(\"AYUDA HTML\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1ayudahtml, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(187, 187, 187))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1ayudahtml)\n .addGap(16, 16, 16))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(130, 130, 130)\n .addComponent(jButton1valGuar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(45, 45, 45)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(118, 118, 118)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(1032, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel8)\n .addGap(3, 3, 3)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1valGuar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(61, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public void combo(){\r\n // Define rendering of the list of values in ComboBox drop down. \r\n cbbMedicos.setCellFactory((comboBox) -> {\r\n return new ListCell<Usuario>() {\r\n @Override\r\n protected void updateItem(Usuario item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (item == null || empty) {\r\n setText(null);\r\n } else {\r\n setText(item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico());\r\n }\r\n }\r\n };\r\n });\r\n\r\n // Define rendering of selected value shown in ComboBox.\r\n cbbMedicos.setConverter(new StringConverter<Usuario>() {\r\n @Override\r\n public String toString(Usuario item) {\r\n if (item == null) {\r\n return null;\r\n } else {\r\n return item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico();\r\n }\r\n }\r\n\r\n @Override\r\n public Usuario fromString(String string) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }\r\n });\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jComboBox1 = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jPasswordField1 = new javax.swing.JPasswordField();\n jTextField4 = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jTextField5 = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(23, 23, 23));\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(228, 228, 228)));\n\n jComboBox1.setBackground(new java.awt.Color(135, 132, 132));\n jComboBox1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jComboBox1.setForeground(new java.awt.Color(16, 14, 14));\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Staff\", \"Chef\", \"Manager\" }));\n jComboBox1.setBorder(null);\n\n jLabel1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(253, 243, 243));\n jLabel1.setText(\"Register As\");\n\n jLabel2.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(253, 243, 243));\n jLabel2.setText(\"Full Name\");\n\n jLabel3.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(253, 243, 243));\n jLabel3.setText(\"Password\");\n\n jLabel4.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(253, 243, 243));\n jLabel4.setText(\"User Name\");\n\n jLabel5.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(253, 243, 243));\n jLabel5.setText(\"Email ID\");\n\n jLabel6.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(253, 243, 243));\n jLabel6.setText(\"Phone No.\");\n\n jTextField1.setBackground(new java.awt.Color(83, 83, 83));\n jTextField1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jTextField1.setForeground(new java.awt.Color(241, 234, 234));\n jTextField1.setBorder(null);\n jTextField1.setCaretColor(new java.awt.Color(245, 235, 235));\n\n jTextField2.setBackground(new java.awt.Color(83, 83, 83));\n jTextField2.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(241, 234, 234));\n jTextField2.setBorder(null);\n jTextField2.setCaretColor(new java.awt.Color(245, 235, 235));\n\n jTextField3.setBackground(new java.awt.Color(83, 83, 83));\n jTextField3.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jTextField3.setForeground(new java.awt.Color(241, 234, 234));\n jTextField3.setBorder(null);\n jTextField3.setCaretColor(new java.awt.Color(245, 235, 235));\n\n jPasswordField1.setBackground(new java.awt.Color(83, 83, 83));\n jPasswordField1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jPasswordField1.setForeground(new java.awt.Color(246, 234, 234));\n jPasswordField1.setBorder(null);\n jPasswordField1.setCaretColor(new java.awt.Color(245, 243, 243));\n\n jTextField4.setBackground(new java.awt.Color(83, 83, 83));\n jTextField4.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jTextField4.setForeground(new java.awt.Color(241, 234, 234));\n jTextField4.setBorder(null);\n jTextField4.setCaretColor(new java.awt.Color(245, 235, 235));\n\n jLabel7.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(253, 243, 243));\n jLabel7.setText(\"Address\");\n\n jTextPane1.setBackground(new java.awt.Color(92, 90, 90));\n jTextPane1.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jTextPane1.setForeground(new java.awt.Color(241, 234, 234));\n jScrollPane1.setViewportView(jTextPane1);\n\n jLabel10.setBackground(new java.awt.Color(119, 119, 119));\n jLabel10.setFont(new java.awt.Font(\"Ubuntu\", 1, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(246, 238, 238));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Close\");\n jLabel10.setBorder(null);\n jLabel10.setOpaque(true);\n jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel10MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel10MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel10MouseExited(evt);\n }\n });\n\n jLabel11.setBackground(new java.awt.Color(119, 119, 119));\n jLabel11.setFont(new java.awt.Font(\"Ubuntu\", 1, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(246, 238, 238));\n jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel11.setText(\"Register\");\n jLabel11.setBorder(null);\n jLabel11.setOpaque(true);\n jLabel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel11MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel11MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel11MouseExited(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 18)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(250, 243, 243));\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"Add New Employee\");\n\n jLabel12.setBackground(new java.awt.Color(119, 119, 119));\n jLabel12.setFont(new java.awt.Font(\"Ubuntu\", 1, 14)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(246, 238, 238));\n jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel12.setText(\"Add Pic\");\n jLabel12.setBorder(null);\n jLabel12.setOpaque(true);\n jLabel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel12MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel12MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel12MouseExited(evt);\n }\n });\n\n jTextField5.setBackground(new java.awt.Color(83, 83, 83));\n jTextField5.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jTextField5.setForeground(new java.awt.Color(241, 234, 234));\n jTextField5.setBorder(null);\n jTextField5.setCaretColor(new java.awt.Color(245, 235, 235));\n\n jLabel9.setFont(new java.awt.Font(\"DejaVu Sans\", 1, 13)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(253, 243, 243));\n jLabel9.setText(\"Salary($)\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(61, 61, 61)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextField2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)\n .addComponent(jTextField4))\n .addContainerGap(34, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(103, 103, 103)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36))\n );\n }", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\", \"root\", \"\");\n listeConstructeur = bddManager2.select(\"SELECT * FROM constructeur;\");\n bddManager2.stop();\n for (int i = 0; i < listeConstructeur.size(); i++) {\n comboConstructeur.getItems().addAll(listeConstructeur.get(i).get(1));\n\n\n }\n\n\n\n\n\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabNom = new javax.swing.JLabel();\n jLabAp1 = new javax.swing.JLabel();\n jLabAp2 = new javax.swing.JLabel();\n jLabSex = new javax.swing.JLabel();\n jLabEdad = new javax.swing.JLabel();\n jLabNomin = new javax.swing.JLabel();\n jLabIRPF = new javax.swing.JLabel();\n jTexNom = new javax.swing.JTextField();\n jTexAp1 = new javax.swing.JTextField();\n jTexNomin = new javax.swing.JTextField();\n jTexAp2 = new javax.swing.JTextField();\n jTexEd = new javax.swing.JTextField();\n jTexIRPF = new javax.swing.JTextField();\n jBAcept = new javax.swing.JButton();\n jBAtras = new javax.swing.JButton();\n jCoBSex = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabNom.setText(\"Nombre :\");\n\n jLabAp1.setText(\"Apellido 1:\");\n\n jLabAp2.setText(\"Apellido 2:\");\n\n jLabSex.setText(\"Sexo:\");\n\n jLabEdad.setText(\"Edad:\");\n\n jLabNomin.setText(\"Nomina:\");\n\n jLabIRPF.setText(\"IRPF:\");\n\n jTexNom.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTexNomActionPerformed(evt);\n }\n });\n\n jBAcept.setText(\"Aceptar\");\n jBAcept.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAceptActionPerformed(evt);\n }\n });\n\n jBAtras.setText(\"Atrás\");\n jBAtras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAtrasActionPerformed(evt);\n }\n });\n\n jCoBSex.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"H\", \"M\", \"NB\" }));\n jCoBSex.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCoBSexActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(19, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabNomin)\n .addGap(27, 27, 27)\n .addComponent(jTexNomin, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabAp1)\n .addComponent(jLabSex))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCoBSex, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTexAp1))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jBAtras, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 143, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabAp2)\n .addComponent(jLabEdad)\n .addComponent(jLabIRPF))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTexEd, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)\n .addComponent(jTexIRPF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTexAp2)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jBAcept, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(116, 116, 116)\n .addComponent(jLabNom)\n .addGap(34, 34, 34)\n .addComponent(jTexNom, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(17, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabNom)\n .addComponent(jTexNom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabAp1)\n .addComponent(jLabAp2)\n .addComponent(jTexAp1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTexAp2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabSex)\n .addComponent(jLabEdad)\n .addComponent(jTexEd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jCoBSex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabIRPF)\n .addComponent(jLabNomin)\n .addComponent(jTexNomin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTexIRPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jBAtras)\n .addComponent(jBAcept)))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jBox = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jTextF = new javax.swing.JTextField();\n jTextL = new javax.swing.JTextField();\n jTextID = new javax.swing.JTextField();\n jTextBD = new javax.swing.JTextField();\n jTextph = new javax.swing.JTextField();\n jTextM = new javax.swing.JTextField();\n jTextCH = new javax.swing.JTextField();\n jTextGPA = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jAreaC = new javax.swing.JTextArea();\n jPanel1 = new javax.swing.JPanel();\n jTextCA = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n jAreaT = new javax.swing.JTextArea();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel13 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"Exit\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Select Type:\");\n\n jBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Student\", \"Graduate\" }));\n\n jLabel2.setText(\"FirstName:\");\n\n jLabel3.setText(\"LastName:\");\n\n jLabel4.setText(\"BannerID:\");\n\n jLabel5.setText(\"BirthDate:\");\n\n jLabel6.setText(\"PhoneNumber:\");\n\n jLabel7.setText(\"Major:\");\n\n jLabel8.setText(\"CreditHours:\");\n\n jLabel9.setText(\"GPA:\");\n\n jLabel10.setText(\"Courses:\");\n\n jAreaC.setColumns(20);\n jAreaC.setRows(5);\n jScrollPane1.setViewportView(jAreaC);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), \"Graduate Students Only\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, java.awt.Color.black));\n\n jAreaT.setColumns(20);\n jAreaT.setRows(5);\n jScrollPane2.setViewportView(jAreaT);\n\n jLabel11.setText(\"Thesis:\");\n\n jLabel12.setText(\"Concentration, Assistance type:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addGap(37, 37, 37)\n .addComponent(jTextCA, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 11, Short.MAX_VALUE)\n .addComponent(jLabel11)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 305, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextCA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23))\n );\n\n jButton2.setText(\"Add\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel13.setText(\"All dates are in MM/dd/yyyy format \");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 576, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(312, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel6)\n .addComponent(jLabel9)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextph, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)\n .addComponent(jTextF, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextID, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextGPA))\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextCH))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextL, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextBD, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE)\n .addComponent(jTextM, javax.swing.GroupLayout.Alignment.LEADING))))))\n .addComponent(jBox, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(21, 21, 21))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13)\n .addGap(103, 103, 103))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jTextL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextBD, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextph, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(jTextM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextCH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(jTextGPA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(191, 191, 191)\n .addComponent(jLabel9))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(21, 21, 21))\n );\n\n pack();\n }", "public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addItem(peopleName);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t \te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextField.setText(comboBox.getSelectedItem().toString());\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n tNombre = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n tDireccion = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n tTelefono = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n tCedula = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n tFecha = new com.toedter.calendar.JDateChooser();\n jLabel7 = new javax.swing.JLabel();\n jCTipo = new javax.swing.JComboBox<>();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jCArea = new javax.swing.JComboBox<>();\n jPanel1 = new javax.swing.JPanel();\n lbTituloAzul1 = new javax.swing.JLabel();\n jBGuardar = new javax.swing.JButton();\n jBCancelar = new javax.swing.JButton();\n jFSueldo = new javax.swing.JFormattedTextField();\n jLabel10 = new javax.swing.JLabel();\n jCPuesto = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel2.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel2.setText(\"Nombre\");\n\n tNombre.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tNombre.setForeground(new java.awt.Color(0, 51, 255));\n tNombre.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tNombre.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n\n jLabel3.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel3.setText(\"Direccion\");\n\n tDireccion.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tDireccion.setForeground(new java.awt.Color(0, 51, 255));\n tDireccion.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tDireccion.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n tDireccion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tDireccionActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel4.setText(\"Telefono\");\n\n tTelefono.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tTelefono.setForeground(new java.awt.Color(0, 51, 255));\n tTelefono.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tTelefono.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n tTelefono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tTelefonoActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel5.setText(\"Cedula\");\n\n tCedula.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tCedula.setForeground(new java.awt.Color(0, 51, 255));\n tCedula.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tCedula.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n\n jLabel6.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel6.setText(\"Sueldo\");\n\n tFecha.setDateFormatString(\"dd-MM-yyyy\");\n tFecha.setEnabled(false);\n tFecha.addContainerListener(new java.awt.event.ContainerAdapter() {\n public void componentAdded(java.awt.event.ContainerEvent evt) {\n tFechaComponentAdded(evt);\n }\n });\n tFecha.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n tFechaPropertyChange(evt);\n }\n });\n tFecha.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n tFechaKeyReleased(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel7.setText(\"Tipo \");\n\n jCTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Docente \", \"Administrativo \", \"Conserje \" }));\n\n jLabel8.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel8.setText(\"Fecha\");\n\n jLabel9.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel9.setText(\"Area \");\n\n jCArea.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Docente \", \"Administrativo \", \"Conserje \" }));\n jCArea.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCAreaActionPerformed(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(51, 204, 0));\n\n lbTituloAzul1.setFont(new java.awt.Font(\"SansSerif\", 1, 18)); // NOI18N\n lbTituloAzul1.setForeground(new java.awt.Color(255, 255, 255));\n lbTituloAzul1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbTituloAzul1.setText(\"Nuevo Empleado\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 631, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lbTituloAzul1, javax.swing.GroupLayout.PREFERRED_SIZE, 597, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(22, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 49, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(13, Short.MAX_VALUE)\n .addComponent(lbTituloAzul1)\n .addContainerGap(14, Short.MAX_VALUE)))\n );\n\n jBGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/new.png\"))); // NOI18N\n jBGuardar.setText(\"Guardar\");\n jBGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBGuardarActionPerformed(evt);\n }\n });\n\n jBCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/delete_1.png\"))); // NOI18N\n jBCancelar.setText(\"Cancelar\");\n jBCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBCancelarActionPerformed(evt);\n }\n });\n\n jFSueldo.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#,##0.##\"))));\n jFSueldo.setName(\"JFSueldo\"); // NOI18N\n\n jLabel10.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel10.setText(\"Puesto\");\n\n jCPuesto.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Docente \", \"Administrativo \", \"Conserje \" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tDireccion)\n .addComponent(tNombre)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(393, 393, 393)\n .addComponent(jBGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jBCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel9))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(281, 281, 281)\n .addComponent(jLabel10))\n .addGroup(layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jCArea, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tTelefono, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)\n .addComponent(tCedula))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jCPuesto, 0, 211, Short.MAX_VALUE)\n .addComponent(tFecha, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jFSueldo))))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)\n .addComponent(tNombre))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tTelefono, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addComponent(jLabel6)\n .addComponent(jFSueldo, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tCedula, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(tFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jCPuesto, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCArea, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jBGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jBCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jTFValorPend = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jTFValorAbono = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaObs = new javax.swing.JTextArea();\n jLabel5 = new javax.swing.JLabel();\n jCBCajaId = new javax.swing.JComboBox<>();\n jPanel3 = new javax.swing.JPanel();\n jButtonGuardar = new javax.swing.JButton();\n jButtonCerrar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 24)); // NOI18N\n jLabel1.setText(\"REGISTRAR ABONO\");\n jPanel1.add(jLabel1);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n jLabel2.setText(\"VALOR PENDIENTE:\");\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n jLabel3.setText(\"MONTO DEL ABONO:\");\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n jLabel4.setText(\"OBSERVACIÓN:\");\n\n jTextAreaObs.setColumns(20);\n jTextAreaObs.setRows(5);\n jScrollPane1.setViewportView(jTextAreaObs);\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n jLabel5.setText(\"CAJA AFECTADA:\");\n\n jCBCajaId.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"GENERAL\", \"CHANCADO\", \"SERVICIOS PROF.\" }));\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTFValorPend, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(31, 31, 31))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(58, 58, 58)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTFValorAbono, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)\n .addComponent(jCBCajaId, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap(83, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTFValorPend, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jTFValorAbono, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jCBCajaId, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(116, 116, 116))\n );\n\n getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);\n\n jPanel3.setLayout(new java.awt.GridLayout(4, 1));\n\n jButtonGuardar.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n jButtonGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/jj/gui/icons/icons8-save.png\"))); // NOI18N\n jButtonGuardar.setText(\"Guardar\");\n jButtonGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGuardarActionPerformed(evt);\n }\n });\n jPanel3.add(jButtonGuardar);\n\n jButtonCerrar.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n jButtonCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/jj/gui/icons/icons8-close_pane_filled.png\"))); // NOI18N\n jButtonCerrar.setText(\"Cerrar\");\n jButtonCerrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCerrarActionPerformed(evt);\n }\n });\n jPanel3.add(jButtonCerrar);\n\n getContentPane().add(jPanel3, java.awt.BorderLayout.EAST);\n\n pack();\n }", "public static void select(StringComboViewer viewer, Object value){\n\t\t\n\t\tCollection<String> input = viewer.getInputCollection();\n\t\tint i = 0;\n\t\tfor (String name : input){\n\t\t\tif (value.equals(name)){\n\t\t\t\tviewer.setSelection(new StructuredSelection(viewer.getElementAt(i)));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n lblNome = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n lblDiretor = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n bxClassificacao = new javax.swing.JComboBox<>();\n btnClassificar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n lblNumCapitulo = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtComentario = new javax.swing.JTextField();\n\n jLabel1.setText(\"Nome:\");\n\n lblNome.setText(\"Nome\");\n\n jLabel2.setText(\"Diretor\");\n\n lblDiretor.setText(\"Diretor\");\n\n jLabel3.setText(\"N° de Capitulos\");\n\n jLabel4.setText(\"Classificação\");\n\n bxClassificacao.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\" }));\n bxClassificacao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bxClassificacaoActionPerformed(evt);\n }\n });\n\n btnClassificar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/edu/ifnmg/todeferias/imagens/star.png\"))); // NOI18N\n btnClassificar.setText(\"Classificar\");\n btnClassificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnClassificarActionPerformed(evt);\n }\n });\n\n btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/edu/ifnmg/todeferias/imagens/iconClose.png\"))); // NOI18N\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n lblNumCapitulo.setText(\"N de Capitulo\");\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel5.setText(\"Tela de Classificação de Novelas\");\n\n jLabel6.setText(\"Adicionar comentário\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(lblNome, javax.swing.GroupLayout.PREFERRED_SIZE, 264, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(lblDiretor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bxClassificacao, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblNumCapitulo))\n .addGap(0, 186, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtComentario))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(94, 94, 94)\n .addComponent(jLabel5)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnClassificar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnCancelar)\n .addGap(58, 58, 58))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(lblNome))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(lblDiretor))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(lblNumCapitulo))\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(bxClassificacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtComentario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnClassificar)\n .addComponent(btnCancelar))\n .addGap(27, 27, 27))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n tCalle = new javax.swing.JTextField();\n tTelefono = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n bCancelar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n bAgregar = new javax.swing.JButton();\n tCP = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n cEstados = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n tNombre = new javax.swing.JTextField();\n cMunicipio = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel4.setText(\"Municipio:\");\n\n bCancelar.setText(\"Cancelar\");\n\n jLabel5.setText(\"Codigo postal:\");\n\n jLabel6.setText(\"Telefono:\");\n\n jLabel7.setText(\"Calle:\");\n\n bAgregar.setText(\"Guardar\");\n bAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bAgregarActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Estado:\");\n\n jLabel3.setText(\"Nombre:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tCP, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(tTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(jLabel2)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tCalle, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)\n .addComponent(cEstados, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cMunicipio, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(bAgregar)\n .addGap(18, 18, 18)\n .addComponent(bCancelar)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(cEstados, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(tNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(tCP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cMunicipio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(tTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(tCalle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bAgregar)\n .addComponent(bCancelar))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void Bindcombo() {\n\n MyQuery1 mq = new MyQuery1();\n HashMap<String, Integer> map = mq.populateCombo();\n for (String s : map.keySet()) {\n\n jComboBox1.addItem(s);\n\n }\n\n }", "public void fillPLComboBox(){\n\t\tmonths.add(\"Select\");\n\t\tmonths.add(\"Current Month\");\n\t\tmonths.add(\"Last Month\");\n\t\tmonths.add(\"Last 3 Months\");\n\t\tmonths.add(\"View All\");\n\t}", "public GUImokForma(Bankas bank, ZmogusKlientas klientas) {\n initComponents();\n this.klientas = klientas;\n this.bank = bank;\n jComboBox1.setModel(new DefaultComboBoxModel());\n List<Saskaita> saskaitos = klientas.getSaskaitos();\n for(Saskaita itm : saskaitos){\n jComboBox1.addItem(itm.toStringNr());\n }\n }", "private void fillChoicebox(String item, ChoiceBox cBox) {\n List<Component> test = cRegister.searchRegisterByName(item);\n ObservableList<String> temp = FXCollections.observableArrayList();\n temp.add(\"Ikke valgt\");\n for (Component i : test) {\n temp.add(i.getNavn());\n }\n\n cBox.setItems(temp);\n cBox.setValue(\"Ikke valgt\");\n }", "private void editareClient() {\n\t\tDefaultTableModel model = Serializable.generator(\"person\", \"tmp/\");\n\t\tArrayList<String> items = new ArrayList<String>();\n\t\tint rowCount = model.getRowCount();\n\t\tSystem.out.println(\"Ajung pe aici si val. este \" + rowCount +\"\\n\");\n\t\tfor(int i=0;i<rowCount;i++) {\n\t\t\tmodel.getValueAt(i, 2);\n\t\t\titems.add(model.getValueAt(i, 1) + \". Nume client: \" + model.getValueAt(i, 2));\n\t\t}\n\t\t// Urmatoarele 3 linii de cod creeaza un array de string-uri\n\t\tString[] itemsArr = new String[items.size()];\n\t\titemsArr = items.toArray(itemsArr);\n JComboBox<String> combo = new JComboBox<String>(itemsArr);\n \n JTextField field1 = new JTextField(\"\");\n JTextField field2 = new JTextField(\"\");\n JTextField field3 = new JTextField(\"\");\n\n JPanel panel = new JPanel(new GridLayout(0, 1));\n panel.setPreferredSize(new Dimension(400, 200));\n panel.add(new JLabel(\"Alege client\"));\n panel.add(combo);\n panel.add(new JLabel(\"Nume:\"));\n panel.add(field1);\n panel.add(new JLabel(\"Email:\"));\n panel.add(field2);\n panel.add(new JLabel(\"Telefon:\"));\n panel.add(field3);\n int result = JOptionPane.showConfirmDialog(null, panel, \"Editeaza un client\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n if (result == JOptionPane.OK_OPTION) {\n \tArrayList<String> data = new ArrayList<String>();\n \tString buffer = combo.getSelectedItem().toString();\n \tString temp[] = buffer.split(\"\\\\.\");\n \tif(!temp[0].isEmpty()) {\n \t\tdata.add(field1.getText());\n \tdata.add(field2.getText());\n \tdata.add(field3.getText());\n \tint id = Integer.parseInt(temp[0]);\n \t/* Serializarea reprezinta doar crearea unui nou obiect si salvarea acestuia\n \t * cu numele actualului fisier. In felul acesta se suprascriu si gata.*/\n \tPerson nouClient = new Person(data, id);\n System.out.println(\"Clientul a fost editat. \\n\");\n \t}\n } else {\n System.out.println(\"Cancelled\");\n }\n\t}", "public FrmEjemploCombo() {\n initComponents();\n \n cargarAutos();\n }", "private void fillComboBox() {\n List<String> times = this.resultSimulation.getTimes();\n this.timesComboBox.getItems().addAll(times);\n this.timesComboBox.getSelectionModel().select(0);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel4 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n localCopiesTextField = new javax.swing.JTextField();\n changed = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(39, 46, 48));\n setPreferredSize(new java.awt.Dimension(300, 450));\n\n jLabel1.setFont(new java.awt.Font(\"Calibri Light\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(71, 170, 221));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"General settings\");\n\n jLabel2.setFont(new java.awt.Font(\"Calibri Light\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(161, 167, 171));\n jLabel2.setText(\"Font:\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Calibri Light\", \"Tahoma\", \"Arial\" }));\n\n jLabel4.setFont(new java.awt.Font(\"Calibri Light\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(161, 167, 171));\n jLabel4.setText(\"Welcome page:\");\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Welcome\", \"Library\", \"Recently added\", \"Advanced search\" }));\n\n jLabel3.setFont(new java.awt.Font(\"Calibri Light\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(161, 167, 171));\n jLabel3.setText(\"Save local copies to:\");\n\n localCopiesTextField.setForeground(new java.awt.Color(51, 51, 51));\n localCopiesTextField.setText(\"C:\\\\Users\\\\Simen\");\n localCopiesTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n localCopiesTextFieldKeyPressed(evt);\n }\n });\n\n changed.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nrkprosjekt/graphics/sucess2.png\"))); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(localCopiesTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(changed)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jLabel1)\n .addGap(31, 31, 31)\n .addComponent(jLabel2)\n .addGap(3, 3, 3)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(localCopiesTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(changed, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(204, Short.MAX_VALUE))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txt_diagnostico = new javax.swing.JTextField();\n txt_tratamento = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txt_cpf = new javax.swing.JFormattedTextField();\n jLabel3 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txt_obs = new javax.swing.JTextArea();\n jLabel4 = new javax.swing.JLabel();\n cmb_nome_animal = new javax.swing.JComboBox<>();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txt_nome_cliente = new javax.swing.JTextField();\n btn_registrar = new javax.swing.JButton();\n\n txt_diagnostico.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_diagnosticoActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Diagnóstico:\");\n\n jLabel2.setText(\"Tratamento indicado:\");\n\n try {\n txt_cpf.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###.###.###-##\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n txt_cpf.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txt_cpfFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txt_cpfFocusLost(evt);\n }\n });\n\n jLabel3.setText(\"CPF do cliente:\");\n\n txt_obs.setColumns(20);\n txt_obs.setRows(5);\n jScrollPane1.setViewportView(txt_obs);\n\n jLabel4.setText(\"Evolução/Observações:\");\n\n jLabel5.setText(\"Nome do Animal:\");\n\n jLabel6.setText(\"Nome do cliente:\");\n\n txt_nome_cliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_nome_clienteActionPerformed(evt);\n }\n });\n\n btn_registrar.setText(\"Registrar Tratamento\");\n btn_registrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_registrarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(btn_registrar)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txt_tratamento, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_diagnostico, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txt_cpf, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(cmb_nome_animal, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txt_nome_cliente, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(16, 16, 16)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txt_cpf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(cmb_nome_animal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txt_nome_cliente, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txt_diagnostico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txt_tratamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(7, 7, 7)\n .addComponent(btn_registrar)\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n harganya = new javax.swing.JTextField();\n judulnya = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jamnya = new javax.swing.JTextField();\n idm = new javax.swing.JTextField();\n stdnya = new javax.swing.JComboBox<>();\n gennya = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(600, 500));\n setPreferredSize(new java.awt.Dimension(600, 500));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel3.setText(\"Studio :\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 130, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel7.setText(\"Harga :\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 210, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel5.setText(\"Genre :\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, -1, -1));\n getContentPane().add(harganya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 210, 406, -1));\n\n judulnya.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n judulnyaActionPerformed(evt);\n }\n });\n getContentPane().add(judulnya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 50, 406, -1));\n\n jLabel8.setText(\"ID Movie :\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n getContentPane().add(jamnya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 90, 406, -1));\n\n idm.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n idmActionPerformed(evt);\n }\n });\n getContentPane().add(idm, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 20, 406, -1));\n\n stdnya.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n stdnya.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"\", \"1\", \"2\", \"3\", \"4\" }));\n getContentPane().add(stdnya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 130, 406, -1));\n getContentPane().add(gennya, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 170, 406, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel1.setText(\"Judul :\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 72, 20));\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel2.setText(\"Jam Tayang :\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 90, -1, -1));\n\n jButton1.setText(\"Kembali\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 310, 90, 30));\n\n jButton2.setText(\"Simpan\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, 78, 32));\n\n jButton3.setText(\"Batal\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, 70, 30));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/pbogui/3.jpg\"))); // NOI18N\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 600, 500));\n\n pack();\n }", "void hienThi() {\n LoaiVT.Open();\n ArrayList<LoaiVT> DSSP = LoaiVT.DSLOAIVT;\n VatTu PX = VatTu.getPX();\n \n try {\n txtMaVT.setText(PX.getMaVT());\n txtTenVT.setText(PX.getTenVT());\n txtDonVi.setText(PX.getDVT());\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n for(LoaiVT SP: DSSP){ \n cb.addElement(SP.getMaLoai());\n if(SP.getMaLoai().equals(PX.getMaLoai())){\n cb.setSelectedItem(SP.getMaLoai());\n }\n }\n cbMaloai.setModel(cb);\n } catch (Exception ex) {\n txtMaVT.setText(\"\");\n txtTenVT.setText(\"\");\n txtDonVi.setText(\"\");\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n cb.setSelectedItem(\"\");\n cbMaloai.setModel(cb);\n }\n \n \n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jComboBox2 = new javax.swing.JComboBox<>();\r\n jComboBox1 = new javax.swing.JComboBox<>();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n txtBuscar = new javax.swing.JTextField();\r\n field3 = new javax.swing.JTextField();\r\n field1 = new javax.swing.JTextField();\r\n field2 = new javax.swing.JTextField();\r\n jPanel1 = new javax.swing.JPanel();\r\n jButton1 = new javax.swing.JButton();\r\n Cedula = new javax.swing.JLabel();\r\n jButton2 = new javax.swing.JButton();\r\n jLabel4 = new javax.swing.JLabel();\r\n jTextField1 = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jDateChooser1 = new com.toedter.calendar.JDateChooser();\r\n jLabel5 = new javax.swing.JLabel();\r\n comboFecha = new javax.swing.JComboBox<>();\r\n\r\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \":00\", \":15\", \":30\", \":45\" }));\r\n\r\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\" }));\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jLabel1.setText(\"Telefono:\");\r\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 80, -1, -1));\r\n\r\n jLabel2.setText(\"Correo Electronico:\");\r\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, -1, -1));\r\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 50, 50));\r\n getContentPane().add(txtBuscar, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 50, 120, -1));\r\n\r\n field3.setEditable(false);\r\n getContentPane().add(field3, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 110, 180, -1));\r\n\r\n field1.setEditable(false);\r\n getContentPane().add(field1, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 50, 230, -1));\r\n\r\n field2.setEditable(false);\r\n getContentPane().add(field2, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 80, 230, -1));\r\n\r\n jPanel1.setBackground(new java.awt.Color(246, 245, 244));\r\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jButton1.setText(\"Guardar\");\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 190, 100, -1));\r\n\r\n Cedula.setText(\"Cedula:\");\r\n jPanel1.add(Cedula, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 50, -1, -1));\r\n\r\n jButton2.setText(\"Buscar\");\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 80, 80, -1));\r\n\r\n jLabel4.setText(\"Codigo Cita:\");\r\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, -1, -1));\r\n\r\n jTextField1.setEditable(false);\r\n jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 150, 180, -1));\r\n\r\n jLabel7.setText(\"Nombre: \");\r\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 50, -1, -1));\r\n\r\n jLabel6.setText(\"Registrar Cita\");\r\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 0, 240, 50));\r\n\r\n jDateChooser1.setDateFormatString(\"yyyy/MM/dd \");\r\n jPanel1.add(jDateChooser1, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 190, 180, -1));\r\n\r\n jLabel5.setText(\"Fecha y hora:\");\r\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 190, -1, -1));\r\n\r\n comboFecha.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"09:00\", \"09:30\", \"10:00\", \"10:30\", \"11:00\", \"11:30\", \"12:00\", \"12:30\", \"13:00\", \"13:30\", \"14:00\" }));\r\n comboFecha.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n comboFechaActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(comboFecha, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 190, -1, -1));\r\n\r\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 670, 250));\r\n\r\n pack();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnProcesar = new javax.swing.JButton();\n lblTipo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtSalida = new javax.swing.JTextArea();\n cboTipo = new javax.swing.JComboBox<>();\n txtcantidad = new javax.swing.JTextField();\n lblCA = new javax.swing.JLabel();\n txtF = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n btnProcesar.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n btnProcesar.setText(\"Procesar\");\n btnProcesar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnProcesarActionPerformed(evt);\n }\n });\n getContentPane().add(btnProcesar, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 30, 150, 60));\n\n lblTipo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lblTipo.setText(\"Tipo de cambio :\");\n lblTipo.setToolTipText(\"\");\n getContentPane().add(lblTipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, -1, 40));\n\n txtSalida.setColumns(20);\n txtSalida.setRows(5);\n jScrollPane1.setViewportView(txtSalida);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 115, 740, 240));\n\n cboTipo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n cboTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione\", \"Dolar\", \"Euro\", \"Peso\" }));\n getContentPane().add(cboTipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 40, 120, 40));\n getContentPane().add(txtcantidad, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 40, 140, 40));\n\n lblCA.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lblCA.setText(\"Cantidad de Soles:\");\n lblCA.setToolTipText(\"\");\n getContentPane().add(lblCA, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 40, -1, 40));\n\n txtF.setEditable(false);\n txtF.setBackground(new java.awt.Color(0, 204, 204));\n getContentPane().add(txtF, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 740, 120));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jComboBox1 = new javax.swing.JComboBox();\n jComboBox2 = new javax.swing.JComboBox();\n jComboBox3 = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jComboBox6 = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jSpinner1 = new javax.swing.JSpinner();\n jSpinner2 = new javax.swing.JSpinner();\n jButton5 = new javax.swing.JButton();\n jTextField5 = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jButton6 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowFocusListener(new java.awt.event.WindowFocusListener() {\n public void windowGainedFocus(java.awt.event.WindowEvent evt) {\n formWindowGainedFocus(evt);\n }\n public void windowLostFocus(java.awt.event.WindowEvent evt) {\n }\n });\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel1.setText(\"Artist\");\n\n jLabel2.setText(\"Album\");\n\n jLabel3.setText(\"Genre\");\n\n jLabel4.setText(\"NAME OF SONG\");\n\n jTextField1.setText(\"song name\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"YEAR OF RELEASE\");\n\n jTextField2.setText(\"2009\");\n\n jLabel6.setText(\"LENGTH OF SONG\");\n\n jLabel7.setText(\"VALUE\");\n\n jTextField3.setText(\"5\");\n\n jLabel8.setText(\"COST\");\n\n jTextField4.setText(\"10\");\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField4ActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"LANGUAGE\");\n\n jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jButton1.setText(\"NEW ARTIST\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"NEW ALBUM\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"NEW GENRE\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"ADD SONG\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"Cancel\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jTextField5.setText(\"jTextField5\");\n\n jLabel10.setText(\"ADDRESS\");\n\n jButton6.setText(\"Browse\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(73, 73, 73)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jButton4)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel10))\n .addComponent(jLabel9)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField4)\n .addComponent(jTextField2)\n .addComponent(jTextField3)\n .addComponent(jComboBox6, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton5, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(22, 22, 22))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton6))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(53, 53, 53)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3))\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jLabel1))\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(59, 59, 59)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(37, 37, 37))\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addGap(110, 110, 110)\n .addComponent(jLabel3)\n .addGap(49, 49, 49)))))\n .addGap(27, 27, 27))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jComboBox6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jButton6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton4)\n .addComponent(jButton5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1)\n .addComponent(jButton3)))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextFieldfila = new javax.swing.JTextField();\n jComboBoxmedida = new javax.swing.JComboBox();\n jTextField3 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jComboBoxmarca = new javax.swing.JComboBox();\n jTextField6 = new javax.swing.JTextField();\n jTextField7 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n jTextField14 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jComboBoxrubro = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setAlwaysOnTop(true);\n setBackground(new java.awt.Color(204, 255, 204));\n\n jPanel1.setBackground(new java.awt.Color(204, 255, 204));\n\n jLabel1.setText(\"Imagen\");\n\n jLabel2.setText(\"Codigo fila\");\n\n jLabel3.setText(\"Unidad de medidad\");\n\n jLabel4.setText(\"Codigo Producto\");\n\n jLabel5.setText(\"Nombre Producto\");\n\n jLabel6.setText(\"Modelo\");\n\n jLabel7.setText(\"Marca\");\n\n jLabel8.setText(\"Igv Determinado\");\n\n jLabel9.setText(\"Monto determinado\");\n\n jLabel10.setText(\"Costo Determinado\");\n\n jLabel11.setText(\"Costo final\");\n\n jLabel12.setText(\"Utilidad\");\n\n jLabel13.setText(\"Precio venta dolares\");\n\n jLabel14.setText(\"Precio venta soles\");\n\n jLabel15.setText(\"Rubro o categoría\");\n\n jLabel16.setText(\"Ficha técnica\");\n\n jTextField1.setToolTipText(\"\");\n\n jComboBoxmedida.setEditable(true);\n jComboBoxmedida.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---SELECCIONE---\" }));\n\n jComboBoxmarca.setEditable(true);\n jComboBoxmarca.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---SELECCIONE---\" }));\n\n jTextField7.setToolTipText(\"\");\n\n jTextField9.setToolTipText(\"\");\n\n jButton1.setText(\"Aplicar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Salir\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jComboBoxrubro.setEditable(true);\n jComboBoxrubro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---SELECCIONE---\" }));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField14))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldfila))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addGap(12, 12, 12)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField9)\n .addComponent(jTextField10)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField6))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField7)\n .addComponent(jTextField8)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField11))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField12))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxrubro, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField5))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField4))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBoxmedida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBoxmarca, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 59, Short.MAX_VALUE)))\n .addGap(172, 172, 172))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextFieldfila, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jComboBoxmedida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jComboBoxmarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel11)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(jComboBoxrubro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(36, Short.MAX_VALUE))\n );\n\n jScrollPane1.setViewportView(jPanel1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 339, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n pack();\n }", "public void initComponents() {\n greg = new javax.swing.JList();\n textPanel = new javax.swing.JPanel();\n //Istvan phase 5\n text = new javax.swing.JTextField();\n //End Istvan phase 5\n optionsPanel = new javax.swing.JPanel();\n size = new javax.swing.JComboBox();\n families = new javax.swing.JComboBox();\n bold = new javax.swing.JRadioButton();\n italics = new javax.swing.JRadioButton();\n underline = new javax.swing.JRadioButton();\n okPanel = new javax.swing.JPanel();\n Ok = new javax.swing.JButton();\n Cancel = new javax.swing.JButton();\n\n\n addWindowListener(new java.awt.event.WindowAdapter() {\n\n public void windowClosing(java.awt.event.WindowEvent evt) {\n closeDialog(evt);\n }\n });\n\n getContentPane().add(greg, java.awt.BorderLayout.NORTH);\n//Istvan phase 5\n text.setColumns(30);\n text.setMinimumSize(new java.awt.Dimension(30, 20));\n text.setMaximumSize(new java.awt.Dimension(30, 20));\n text.setPreferredSize(new java.awt.Dimension(30, 20));\n textPanel.add(text);\n//End Istvan phase 5\n getContentPane().add(textPanel, java.awt.BorderLayout.NORTH);\n\n optionsPanel.setLayout(new java.awt.GridBagLayout());\n java.awt.GridBagConstraints gridBagConstraints1;\n\n size.setMaximumRowCount(15);\n size.addActionListener(new java.awt.event.ActionListener() {\n\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sizeActionPerformed(evt);\n }\n });\n\n gridBagConstraints1 = new java.awt.GridBagConstraints();\n gridBagConstraints1.gridx = 1;\n gridBagConstraints1.gridy = 1;\n optionsPanel.add(size, gridBagConstraints1);\n\n families.setMaximumRowCount(15);\n//\t families.setSelectedIndex( letterTool.currentFont );\n families.addActionListener(new java.awt.event.ActionListener() {\n\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n\n familiesActionPerformed(evt);\n }\n });\n\n gridBagConstraints1 = new java.awt.GridBagConstraints();\n gridBagConstraints1.gridx = 0;\n gridBagConstraints1.gridy = 1;\n optionsPanel.add(families, gridBagConstraints1);\n\n bold.setText(\"bold\");\n gridBagConstraints1 = new java.awt.GridBagConstraints();\n gridBagConstraints1.gridx = 1;\n gridBagConstraints1.gridy = 0;\n optionsPanel.add(bold, gridBagConstraints1);\n\n italics.setText(\"italics\");\n gridBagConstraints1 = new java.awt.GridBagConstraints();\n optionsPanel.add(italics, gridBagConstraints1);\n\n underline.setText(\"underline\");\n gridBagConstraints1 = new java.awt.GridBagConstraints();\n gridBagConstraints1.gridx = 0;\n gridBagConstraints1.gridy = 0;\n optionsPanel.add(underline, gridBagConstraints1);\n\n getContentPane().add(optionsPanel, java.awt.BorderLayout.SOUTH);\n\n Ok.setText(\"Ok\"); /*FAULT:: Ok.setText(\"okk\"); */\n Ok.addActionListener(new java.awt.event.ActionListener() {\n\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n OkActionPerformed(evt);\n }\n });\n\n okPanel.add(Ok);\n\n Cancel.setText(\"Cancel\");\n Cancel.addActionListener(new java.awt.event.ActionListener() {\n\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n setVisible(false);\n dispose();\n }\n });\n\n okPanel.add(Cancel);\n\n\n getContentPane().add(okPanel, java.awt.BorderLayout.EAST);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtNC = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cbSemestre = new javax.swing.JComboBox<>();\n btnAgregar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Agregar un alumno\");\n\n jLabel1.setText(\"Nombre:\");\n\n jLabel2.setText(\"Numero de control:\");\n\n jLabel3.setText(\"Semestre:\");\n\n cbSemestre.setMaximumRowCount(6);\n cbSemestre.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\" }));\n cbSemestre.setToolTipText(\"\");\n\n btnAgregar.setText(\"Agregar\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNC, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbSemestre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(79, 79, 79)\n .addComponent(btnAgregar)\n .addGap(45, 45, 45)\n .addComponent(btnCancelar)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cbSemestre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAgregar)\n .addComponent(btnCancelar))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n public void changed(ObservableValue observableValue, Object oldValue, Object newValue) {\n if(verTabla.getSelectionModel().getSelectedItem() != null) { \n //System.out.println(newValue);\n String []values = newValue.toString().replace(\"[\", \"\").replace(\"]\", \"\") .split(\",\");\n editarIDProv.setText(values[0]);\n editarNombrePro.setText(values[1]);\n editarDescripcionPro.setText(values[2]);\n editarCantidadPro.setText(values[3]);\n editarIVAProv.setText(values[4]);\n editarPrecioPro.setText(values[5]);\n editarIDProvePro.setText(values[6]);\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n nama = new javax.swing.JTextField();\n jconadokt = new javax.swing.JComboBox<>();\n jLabel8 = new javax.swing.JLabel();\n alamat = new javax.swing.JTextField();\n usia = new javax.swing.JTextField();\n jk = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n goldar = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n status = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n negara = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n praktik = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n spesialis = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n jLabel1.setText(\"Pemilihan Dokter\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(170, 10, 170, 30);\n\n jLabel3.setText(\"Pilih Dokter\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(30, 50, 90, 20);\n\n jLabel4.setText(\"Identitas\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(30, 70, 80, 20);\n\n jLabel5.setText(\"Nama\");\n getContentPane().add(jLabel5);\n jLabel5.setBounds(60, 100, 80, 20);\n\n jLabel6.setText(\"Alamat\");\n getContentPane().add(jLabel6);\n jLabel6.setBounds(60, 140, 90, 20);\n\n jLabel7.setText(\"Usia\");\n getContentPane().add(jLabel7);\n jLabel7.setBounds(60, 180, 70, 14);\n\n nama.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n namaActionPerformed(evt);\n }\n });\n getContentPane().add(nama);\n nama.setBounds(220, 100, 180, 30);\n\n jconadokt.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-- Pilih Salah Satu --\", \"DR. Farras Yassar\", \"DR. Anisa Putri\", \"DR. Harun Fajar\" }));\n jconadokt.setName(\"\"); // NOI18N\n jconadokt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jconadoktActionPerformed(evt);\n }\n });\n getContentPane().add(jconadokt);\n jconadokt.setBounds(150, 50, 170, 30);\n\n jLabel8.setText(\"Jenis Kelamin\");\n getContentPane().add(jLabel8);\n jLabel8.setBounds(60, 220, 100, 20);\n getContentPane().add(alamat);\n alamat.setBounds(220, 140, 180, 30);\n getContentPane().add(usia);\n usia.setBounds(220, 180, 180, 30);\n getContentPane().add(jk);\n jk.setBounds(220, 220, 180, 30);\n\n jLabel9.setText(\"Golongan Darah\");\n getContentPane().add(jLabel9);\n jLabel9.setBounds(60, 270, 120, 14);\n getContentPane().add(goldar);\n goldar.setBounds(220, 260, 180, 30);\n\n jLabel10.setText(\"Status\");\n getContentPane().add(jLabel10);\n jLabel10.setBounds(60, 310, 120, 14);\n\n status.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n statusActionPerformed(evt);\n }\n });\n getContentPane().add(status);\n status.setBounds(220, 310, 180, 30);\n\n jLabel11.setText(\"Kewarganegaraan\");\n getContentPane().add(jLabel11);\n jLabel11.setBounds(60, 360, 120, 14);\n getContentPane().add(negara);\n negara.setBounds(220, 350, 180, 30);\n\n jLabel12.setText(\"Waktu Praktik\");\n getContentPane().add(jLabel12);\n jLabel12.setBounds(60, 400, 120, 14);\n getContentPane().add(praktik);\n praktik.setBounds(220, 390, 180, 30);\n\n jLabel2.setText(\"Dokter Spesialis\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(60, 440, 120, 14);\n getContentPane().add(spesialis);\n spesialis.setBounds(220, 440, 180, 30);\n\n setBounds(0, 0, 447, 551);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n jLabel9 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox<>();\n jLabel11 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel12 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jComboBox3 = new javax.swing.JComboBox<>();\n jLabel13 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMaximumSize(new java.awt.Dimension(350, 454));\n setMinimumSize(new java.awt.Dimension(350, 454));\n setResizable(false);\n\n jPanel2.setBackground(new java.awt.Color(102, 102, 102));\n\n jLabel1.setFont(new java.awt.Font(\"SansSerif\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Modifer la chambre\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(75, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jLabel8.setText(\"Hotel Id\");\n\n jComboBox1.setMaximumSize(new java.awt.Dimension(269, 25));\n jComboBox1.setMinimumSize(new java.awt.Dimension(269, 25));\n jComboBox1.setPreferredSize(new java.awt.Dimension(269, 25));\n\n jLabel9.setForeground(new java.awt.Color(255, 0, 0));\n jLabel9.setMaximumSize(new java.awt.Dimension(200, 14));\n jLabel9.setMinimumSize(new java.awt.Dimension(200, 14));\n jLabel9.setPreferredSize(new java.awt.Dimension(200, 14));\n\n jLabel16.setMaximumSize(new java.awt.Dimension(25, 25));\n jLabel16.setMinimumSize(new java.awt.Dimension(25, 25));\n jLabel16.setPreferredSize(new java.awt.Dimension(25, 25));\n\n jLabel10.setText(\"Type de chambre\");\n\n jComboBox2.setMaximumSize(new java.awt.Dimension(269, 25));\n jComboBox2.setMinimumSize(new java.awt.Dimension(269, 25));\n jComboBox2.setPreferredSize(new java.awt.Dimension(269, 25));\n\n jLabel11.setForeground(new java.awt.Color(255, 0, 0));\n jLabel11.setMaximumSize(new java.awt.Dimension(200, 14));\n jLabel11.setMinimumSize(new java.awt.Dimension(200, 14));\n jLabel11.setPreferredSize(new java.awt.Dimension(200, 14));\n\n jLabel17.setMaximumSize(new java.awt.Dimension(25, 25));\n jLabel17.setMinimumSize(new java.awt.Dimension(25, 25));\n jLabel17.setPreferredSize(new java.awt.Dimension(25, 25));\n\n jLabel6.setText(\"Numéro de téléphone\");\n jLabel6.setMaximumSize(new java.awt.Dimension(96, 14));\n jLabel6.setMinimumSize(new java.awt.Dimension(96, 14));\n jLabel6.setPreferredSize(new java.awt.Dimension(96, 14));\n\n jTextField1.setMaximumSize(new java.awt.Dimension(269, 25));\n jTextField1.setMinimumSize(new java.awt.Dimension(269, 25));\n jTextField1.setPreferredSize(new java.awt.Dimension(269, 25));\n\n jLabel7.setForeground(new java.awt.Color(255, 0, 0));\n jLabel7.setMaximumSize(new java.awt.Dimension(200, 14));\n jLabel7.setMinimumSize(new java.awt.Dimension(200, 14));\n jLabel7.setPreferredSize(new java.awt.Dimension(200, 14));\n\n jLabel15.setMaximumSize(new java.awt.Dimension(25, 25));\n jLabel15.setMinimumSize(new java.awt.Dimension(25, 25));\n jLabel15.setName(\"\"); // NOI18N\n jLabel15.setPreferredSize(new java.awt.Dimension(25, 25));\n\n jButton1.setText(\"Modifier\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel12.setText(\"Numéro de chambre\");\n\n jTextField2.setEditable(false);\n jTextField2.setMaximumSize(new java.awt.Dimension(269, 25));\n jTextField2.setMinimumSize(new java.awt.Dimension(269, 25));\n jTextField2.setPreferredSize(new java.awt.Dimension(269, 25));\n\n jComboBox3.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"disponible\", \"occupé\" }));\n jComboBox3.setMaximumSize(new java.awt.Dimension(169, 25));\n jComboBox3.setMinimumSize(new java.awt.Dimension(169, 25));\n jComboBox3.setPreferredSize(new java.awt.Dimension(169, 25));\n\n jLabel13.setText(\"Disponibilité\");\n jLabel13.setMaximumSize(new java.awt.Dimension(96, 14));\n jLabel13.setMinimumSize(new java.awt.Dimension(96, 14));\n jLabel13.setPreferredSize(new java.awt.Dimension(96, 14));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel12)\n .addGap(3, 3, 3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel8)\n .addGap(3, 3, 3)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(7, 7, 7)\n .addComponent(jLabel10)\n .addGap(3, 3, 3)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(58, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtIps = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtBahasa = new javax.swing.JTextField();\n txtEnglish = new javax.swing.JTextField();\n txtMtk = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n txtIpa = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n txtNama = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n comboId = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Gadugi\", 1, 24)); // NOI18N\n jLabel1.setText(\"Nilai UN\");\n\n jLabel2.setText(\"IPA\");\n\n txtIps.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtIpsActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"IPS\");\n\n jLabel4.setText(\"Bahasa\");\n\n jLabel5.setText(\"English\");\n\n txtBahasa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBahasaActionPerformed(evt);\n }\n });\n\n txtMtk.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtMtkActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Matematika\");\n\n jLabel7.setText(\"ID\");\n\n jButton1.setText(\"count average\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n txtNama.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNamaActionPerformed(evt);\n }\n });\n\n jLabel8.setText(\"Nama\");\n\n comboId.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboIdActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtIpa)\n .addComponent(txtIps, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtBahasa, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEnglish, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtMtk, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboId, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtNama, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 336, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(86, 86, 86)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNama, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtBahasa, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtIpa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtIps, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(74, 74, 74)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtEnglish, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtMtk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(17, 17, 17)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(76, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void populateChoiceBoxes() {\n subjects.setItems(FXCollections.observableArrayList(\"Select\", \"computers\", \"not-computers\", \"subjects\"));\n className.setItems(FXCollections.observableArrayList(\"Select\", \"101\", \"202\", \"303\", \"505\"));\n subjects.getSelectionModel().select(0);\n className.getSelectionModel().select(0);\n this.points.setPromptText(Integer.toString(100));\n\n }", "void fillCombo_name(){\n combo_name.setItems(FXCollections.observableArrayList(listComboN));\n }", "private void initTextFields()\n\t{\n\t\talpha_min_textfield.setText(String.valueOf(rangeSliders.get(\"alpha\").getLowValue()));\n\t\talpha_max_textfield.setText(String.valueOf(rangeSliders.get(\"alpha\").getHighValue()));\n\t\teta_min_textfield.setText(String.valueOf(rangeSliders.get(\"eta\").getLowValue()));\n\t\teta_max_textfield.setText(String.valueOf(rangeSliders.get(\"eta\").getHighValue()));\n\t\tkappa_min_textfield.setText(String.valueOf(rangeSliders.get(\"kappa\").getLowValue()));\n\t\tkappa_max_textfield.setText(String.valueOf(rangeSliders.get(\"kappa\").getHighValue()));\n\t\t\n\t\ttry {\n\t\t\t// Add listener for focus changes.\n//\t\t\tnumberOfDatasets_textfield.focusedProperty().addListener(new ChangeListener<Boolean>() {\n//\t\t\t @Override\n//\t\t\t public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldPropertyValue, Boolean newPropertyValue)\n//\t\t\t {\n//\t\t\t updateNumberOfDatasets(null);\n//\t\t\t }\n//\t\t\t});\n//\t\t\tnumberOfDivisions_textfield.focusedProperty().addListener(new ChangeListener<Boolean>() {\n//\t\t\t @Override\n//\t\t\t public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldPropertyValue, Boolean newPropertyValue)\n//\t\t\t {\n//\t\t\t updateNumberOfDivisions(null);\n//\t\t\t }\n//\t\t\t});\n\t\t\t\n\t\t\t// Set initial values.\n\t\t\tnumberOfDatasetsToGenerate\t= Integer.parseInt(numberOfDatasets_textfield.getText());\n\t\t\tnumberOfDivisions\t\t\t= Integer.parseInt(numberOfDivisions_textfield.getText());\n\t\t\t\n\t\t\t// Disable number of divisions by default (since random sampling is enabled by default).\n\t\t\tnumberOfDivisions_textfield.setDisable(true);\n\t\t}\n\t\t\n\t\tcatch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n dropBox1 = new javax.swing.JComboBox();\n dropBox2 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n dropBox3 = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n displayField = new javax.swing.JTextArea();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Dbrown_ProblemSet1\");\n\n jLabel1.setText(\"Branch\");\n\n dropBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] {\"\"}));\n dropBox1.setEnabled(false);\n dropBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dropBox1ActionPerformed(evt);\n }\n });\n\n dropBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] {\"\"}));\n dropBox2.setEnabled(false);\n dropBox2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dropBox2ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Product Brand\");\n\n dropBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] {\"\"}));\n dropBox3.setEnabled(false);\n dropBox3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dropBox3ActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Product Type\");\n\n jButton1.setText(\"Go\");\n jButton1.setEnabled(false);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n displayField.setEditable(false);\n displayField.setColumns(20);\n displayField.setRows(5);\n jScrollPane1.setViewportView(displayField);\n\n jButton2.setText(\"Connect\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(dropBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(dropBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addGroup(layout.createSequentialGroup()\n .addComponent(dropBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1))))\n .addComponent(jButton2))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(dropBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dropBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dropBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void datosCombobox() {\n listaColegios = new ColegioDaoImp().listar();\n for (Colegio colegio : listaColegios) {\n cbColegio.addItem(colegio.getNombre());\n }\n }", "private void initComponents() {\n\n displayLineNumbersOption = new javax.swing.JCheckBox();\n chooseFontButton = new javax.swing.JButton();\n fontValueLabel = new javax.swing.JLabel();\n tabSizeLabel = new javax.swing.JLabel();\n tabSizeTF = new javax.swing.JFormattedTextField();\n cursorBlinkRateLabel = new javax.swing.JLabel();\n cursorBlinkRateValues = new javax.swing.JSpinner();\n encodingLabel = new javax.swing.JLabel();\n encodingList = new javax.swing.JComboBox();\n\n displayLineNumbersOption.setSelected(true);\n displayLineNumbersOption.setText(\"Display line numbers\");\n\n chooseFontButton.setText(\"Font...\");\n chooseFontButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFontButtonActionPerformed(evt);\n }\n });\n\n fontValueLabel.setFont((Font)XPontusConfig.getValue(\"EditorPane.Font\"));\n fontValueLabel.setText(getStringFont((Font)XPontusConfig.getValue(\"EditorPane.Font\")));\n\n tabSizeLabel.setText(\"Tab size\");\n\n tabSizeTF.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#\"))));\n tabSizeTF.setValue(new Integer(4));\n\n cursorBlinkRateLabel.setText(\"Cursor blink rate\");\n\n cursorBlinkRateValues.setModel(model);\n\n encodingLabel.setText(\"Default XML encoding\");\n\n encodingList.setModel(encodingModel);\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(22, 22, 22)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(chooseFontButton)\n .add(tabSizeLabel)\n .add(cursorBlinkRateLabel)\n .add(encodingLabel))\n .add(88, 88, 88)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(encodingList, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 98, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(fontValueLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(org.jdesktop.layout.GroupLayout.LEADING, tabSizeTF)\n .add(org.jdesktop.layout.GroupLayout.LEADING, cursorBlinkRateValues, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)))))\n .add(layout.createSequentialGroup()\n .add(14, 14, 14)\n .add(displayLineNumbersOption, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 316, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(15, 15, 15))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(displayLineNumbersOption)\n .add(28, 28, 28)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(layout.createSequentialGroup()\n .add(cursorBlinkRateLabel)\n .add(20, 20, 20))\n .add(layout.createSequentialGroup()\n .add(cursorBlinkRateValues, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(tabSizeLabel)\n .add(tabSizeTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(27, 27, 27)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(chooseFontButton)\n .add(fontValueLabel))\n .add(25, 25, 25)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(encodingLabel)\n .add(encodingList, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(28, Short.MAX_VALUE))\n );\n }", "private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n field1 = new javax.swing.JTextField();\n field2 = new javax.swing.JTextField();\n dzialanie = new javax.swing.JComboBox<>();\n policz = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n area = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 2, 18)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Kalkulator \");\n\n field1.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n\n field2.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n\n dzialanie.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n dzialanie.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"+\", \"-\", \"*\", \"/\", \"^\", \"v-\" }));\n dzialanie.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dzialanieActionPerformed(evt);\n }\n });\n\n policz.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n policz.setText(\"Policz\");\n policz.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n policzActionPerformed(evt);\n }\n });\n\n area.setColumns(20);\n area.setRows(5);\n jScrollPane1.setViewportView(area);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(policz, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)\n .addComponent(field1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)\n .addComponent(dzialanie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(field2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(36, 36, 36))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(field1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(field2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dzialanie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addComponent(policz)\n .addGap(26, 26, 26)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(30, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void initComponents() {\n \tthis.setName(\"PanelValorar\");\n\n jButtonVolver = new javax.swing.JButton();\n jLabelTitulo = new javax.swing.JLabel();\n jLabelSelPelicula = new javax.swing.JLabel();\n jComboBoxPeliculas = new javax.swing.JComboBox<String>();\n jButtonConfirmar = new javax.swing.JButton();\n jLabelValoracion = new javax.swing.JLabel();\n jComboBoxValoraciones = new javax.swing.JComboBox<Integer>();\n this.jComboBoxValoraciones.addItem(1);\n this.jComboBoxValoraciones.addItem(2);\n this.jComboBoxValoraciones.addItem(3);\n this.jComboBoxValoraciones.addItem(4);\n this.jComboBoxValoraciones.addItem(5);\n\n jButtonVolver.setText(\"Volver\");\n jButtonVolver.setName(\"jButtonVolver\");\n\n jLabelTitulo.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabelTitulo.setText(\"Valorar\");\n\n jLabelSelPelicula.setText(\"Seleccione pelicula:\");\n\n jComboBoxPeliculas.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[] { \"Seleccione pelicula\" }));\n\n jButtonConfirmar.setText(\"Confirmar\");\n jButtonConfirmar.setName(\"jButtonConfirmarValorarPelicula\");\n\n jLabelValoracion.setText(\"Valoracion:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jButtonVolver)\n .addGap(161, 161, 161)\n .addComponent(jLabelTitulo))\n .addGroup(layout.createSequentialGroup()\n .addGap(229, 229, 229)\n .addComponent(jButtonConfirmar, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(138, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelValoracion)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBoxValoraciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelSelPelicula)\n .addGap(75, 75, 75)\n .addComponent(jComboBoxPeliculas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(239, 239, 239))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jButtonVolver))\n .addGroup(layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(jLabelTitulo)))\n .addGap(52, 52, 52)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxPeliculas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelSelPelicula))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelValoracion)\n .addComponent(jComboBoxValoraciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 69, Short.MAX_VALUE)\n .addComponent(jButtonConfirmar, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(89, 89, 89))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txt_name_file = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jScrollPane1 = new javax.swing.JScrollPane();\n txt_descripcion = new javax.swing.JTextPane();\n txt_costo = new javax.swing.JTextField();\n jSeparator3 = new javax.swing.JSeparator();\n txt_calificacion = new javax.swing.JTextField();\n jSeparator4 = new javax.swing.JSeparator();\n jTextField5 = new javax.swing.JTextField();\n combo_type = new javax.swing.JComboBox();\n jLabel6 = new javax.swing.JLabel();\n txt_ruta = new javax.swing.JTextField();\n jSeparator6 = new javax.swing.JSeparator();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n btn_exit = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n combo_class = new javax.swing.JComboBox();\n jLabel8 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n\n jPanel1.setBackground(new java.awt.Color(52, 152, 219));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Descripcion\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 370, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Nombre\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 80, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Formato\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 120, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Costo\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 160, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Calificacion\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, -1, -1));\n\n txt_name_file.setBackground(new java.awt.Color(52, 152, 219));\n txt_name_file.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n txt_name_file.setForeground(new java.awt.Color(255, 255, 255));\n txt_name_file.setBorder(null);\n jPanel1.add(txt_name_file, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 80, 350, -1));\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 100, 350, 10));\n\n txt_descripcion.setBorder(null);\n txt_descripcion.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jScrollPane1.setViewportView(txt_descripcion);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 400, 430, 140));\n\n txt_costo.setBackground(new java.awt.Color(52, 152, 219));\n txt_costo.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n txt_costo.setForeground(new java.awt.Color(255, 255, 255));\n txt_costo.setBorder(null);\n jPanel1.add(txt_costo, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 160, 350, -1));\n jPanel1.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 180, 350, 10));\n\n txt_calificacion.setBackground(new java.awt.Color(52, 152, 219));\n txt_calificacion.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n txt_calificacion.setForeground(new java.awt.Color(255, 255, 255));\n txt_calificacion.setBorder(null);\n jPanel1.add(txt_calificacion, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 200, 320, -1));\n jPanel1.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 220, 320, 10));\n\n jTextField5.setBackground(new java.awt.Color(52, 152, 219));\n jTextField5.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jTextField5.setForeground(new java.awt.Color(255, 255, 255));\n jTextField5.setBorder(null);\n jPanel1.add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 80, 260, -1));\n\n combo_type.setBackground(new java.awt.Color(204, 204, 204));\n combo_type.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n combo_type.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecciona\", \".docx\", \".pdf\", \".exe\", \".cpp\", \".java\", \".txt\", \".ppt\", \"otro\", \" \" }));\n combo_type.setBorder(null);\n jPanel1.add(combo_type, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 120, 350, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Century Gothic\", 0, 24)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Upload File\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 40, -1, -1));\n\n txt_ruta.setBackground(new java.awt.Color(52, 152, 219));\n txt_ruta.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n txt_ruta.setForeground(new java.awt.Color(255, 255, 255));\n txt_ruta.setBorder(null);\n jPanel1.add(txt_ruta, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 240, 320, -1));\n jPanel1.add(jSeparator6, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 262, 310, 20));\n\n jButton1.setBackground(new java.awt.Color(34, 49, 63));\n jButton1.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"Upload\");\n jButton1.setBorder(null);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 550, 70, 30));\n\n jButton2.setBackground(new java.awt.Color(34, 49, 63));\n jButton2.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setText(\"Select file\");\n jButton2.setBorder(null);\n jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 240, 100, 30));\n\n btn_exit.setBackground(new java.awt.Color(52, 152, 219));\n btn_exit.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n btn_exit.setForeground(new java.awt.Color(255, 255, 255));\n btn_exit.setText(\"X\");\n btn_exit.setBorder(null);\n btn_exit.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n btn_exitMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n btn_exitMouseExited(evt);\n }\n });\n btn_exit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_exitActionPerformed(evt);\n }\n });\n jPanel1.add(btn_exit, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 0, 50, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"Clase\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 290, -1, -1));\n\n combo_class.setBackground(new java.awt.Color(204, 204, 204));\n combo_class.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n combo_class.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecciona\" }));\n combo_class.setBorder(null);\n jPanel1.add(combo_class, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 290, 360, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Century Gothic\", 0, 11)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Nueva clase\");\n jLabel8.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 320, -1, -1));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 477, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 594, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void populateGUI(TideParameters tideParameters) {\n\n if (tideParameters.getMinPeptideLength() != null) {\n minPepLengthTxt.setText(tideParameters.getMinPeptideLength() + \"\");\n }\n if (tideParameters.getMaxPeptideLength() != null) {\n maxPepLengthTxt.setText(tideParameters.getMaxPeptideLength() + \"\");\n }\n if (tideParameters.getMinPrecursorMass() != null) {\n minPrecursorMassTxt.setText(tideParameters.getMinPrecursorMass() + \"\");\n }\n if (tideParameters.getMaxPrecursorMass() != null) {\n maxPrecursorMassTxt.setText(tideParameters.getMaxPrecursorMass() + \"\");\n }\n if (tideParameters.getMonoisotopicPrecursor() != null) {\n if (tideParameters.getMonoisotopicPrecursor()) {\n monoPrecursorCmb.setSelectedIndex(0);\n } else {\n monoPrecursorCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getClipNtermMethionine() != null) {\n if (tideParameters.getClipNtermMethionine()) {\n removeMethionineCmb.setSelectedIndex(0);\n } else {\n removeMethionineCmb.setSelectedIndex(1);\n }\n }\n// if (tideParameters.getMinVariableModificationsPerPeptide() != null) {\n// minPtmsPerPeptideTxt.setText(tideParameters.getMinVariableModificationsPerPeptide() + \"\");\n// }\n if (tideParameters.getMaxVariableModificationsPerPeptide() != null) {\n maxPtmsPerPeptideTxt.setText(tideParameters.getMaxVariableModificationsPerPeptide() + \"\");\n }\n if (tideParameters.getMaxVariableModificationsPerTypePerPeptide() != null) {\n maxVariablePtmsPerTypeTxt.setText(tideParameters.getMaxVariableModificationsPerTypePerPeptide() + \"\");\n }\n if (tideParameters.getDigestionType() != null) {\n enzymeTypeCmb.setSelectedItem(tideParameters.getDigestionType());\n }\n if (tideParameters.getPrintPeptides() != null) {\n if (tideParameters.getPrintPeptides()) {\n peptideListCmb.setSelectedIndex(0);\n } else {\n peptideListCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getDecoyFormat() != null) {\n decoyFormatCombo.setSelectedItem(tideParameters.getDecoyFormat());\n }\n if (tideParameters.getKeepTerminalAminoAcids() != null) {\n keepTerminalAaCombo.setSelectedItem(tideParameters.getKeepTerminalAminoAcids());\n }\n if (tideParameters.getDecoySeed() != null) {\n decoySeedTxt.setText(tideParameters.getDecoySeed() + \"\");\n }\n if (tideParameters.getRemoveTempFolders() != null) {\n if (tideParameters.getRemoveTempFolders()) {\n removeTempFoldersCmb.setSelectedIndex(0);\n } else {\n removeTempFoldersCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getComputeExactPValues() != null) {\n if (tideParameters.getComputeExactPValues()) {\n exactPvalueCombo.setSelectedIndex(0);\n } else {\n exactPvalueCombo.setSelectedIndex(1);\n }\n }\n if (tideParameters.getComputeSpScore() != null) {\n if (tideParameters.getComputeSpScore()) {\n spScoreCombo.setSelectedIndex(0);\n } else {\n spScoreCombo.setSelectedIndex(1);\n }\n }\n if (tideParameters.getMinSpectrumMz() != null) {\n minSpectrumMzTxt.setText(tideParameters.getMinSpectrumMz() + \"\");\n }\n if (tideParameters.getMaxSpectrumMz() != null) {\n maxSpectrumMzTxt.setText(tideParameters.getMaxSpectrumMz() + \"\");\n }\n if (tideParameters.getMinSpectrumPeaks() != null) {\n minPeaksTxt.setText(tideParameters.getMinSpectrumPeaks() + \"\");\n }\n if (tideParameters.getSpectrumCharges() != null) {\n chargesCombo.setSelectedItem(tideParameters.getSpectrumCharges());\n }\n if (tideParameters.getRemovePrecursor() != null) {\n if (tideParameters.getRemovePrecursor()) {\n removePrecursorPeakCombo.setSelectedIndex(0);\n } else {\n removePrecursorPeakCombo.setSelectedIndex(1);\n }\n }\n if (tideParameters.getRemovePrecursorTolerance() != null) {\n removePrecursorPeakToleranceTxt.setText(\"\" + tideParameters.getRemovePrecursorTolerance());\n }\n if (tideParameters.getUseFlankingPeaks() != null) {\n if (tideParameters.getUseFlankingPeaks()) {\n useFlankingCmb.setSelectedIndex(0);\n } else {\n useFlankingCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getUseNeutralLossPeaks() != null) {\n if (tideParameters.getUseNeutralLossPeaks()) {\n useNeutralLossCmb.setSelectedIndex(0);\n } else {\n useNeutralLossCmb.setSelectedIndex(1);\n }\n }\n if (tideParameters.getMzBinWidth() != null) {\n mzBinWidthTxt.setText(\"\" + tideParameters.getMzBinWidth());\n }\n if (tideParameters.getMzBinOffset() != null) {\n mzBinOffsetTxt.setText(\"\" + tideParameters.getMzBinOffset());\n }\n if (tideParameters.getNumberOfSpectrumMatches() != null) {\n numberMatchesTxt.setText(\"\" + tideParameters.getNumberOfSpectrumMatches());\n }\n if (tideParameters.getTextOutput()) {\n outputFormatCombo.setSelectedItem(\"Text\");\n } else if (tideParameters.getSqtOutput()) {\n outputFormatCombo.setSelectedItem(\"SQT\");\n } else if (tideParameters.getPepXmlOutput()) {\n outputFormatCombo.setSelectedItem(\"pepxml\");\n } else if (tideParameters.getMzidOutput()) {\n outputFormatCombo.setSelectedItem(\"mzIdentML\");\n } else if (tideParameters.getPinOutput()) {\n outputFormatCombo.setSelectedItem(\"Percolator input file\");\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n Agregar = new javax.swing.JButton();\n Limpiar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabla = new javax.swing.JTable();\n NombreP = new javax.swing.JTextField();\n PrecioP = new javax.swing.JFormattedTextField();\n Eliminar = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n TipoP = new javax.swing.JComboBox();\n\n jLabel3.setFont(new java.awt.Font(\"DialogInput\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Tipo\");\n\n Agregar.setText(\"Agregar\");\n\n Limpiar.setText(\"Limpiar\");\n Limpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n LimpiarActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"DialogInput\", 0, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Nombre\");\n\n tabla.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tabla);\n\n NombreP.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NombreP.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n NombrePActionPerformed(evt);\n }\n });\n\n PrecioP.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"###0.00#\"))));\n PrecioP.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\n Eliminar.setText(\"Eliminar\");\n Eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n EliminarActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"DialogInput\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Precio\");\n\n TipoP.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n TipoP.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Tipo\", \"Pan/Tortilla\", \"Termino\", \"Guarnicion\", \"Sabor\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(NombreP)\n .addComponent(TipoP, 0, 181, Short.MAX_VALUE)\n .addComponent(PrecioP)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Limpiar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Agregar, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(Eliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(45, 45, 45)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 727, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(90, 90, 90)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(NombreP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(PrecioP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(TipoP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(68, 68, 68)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Agregar)\n .addComponent(Eliminar))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Limpiar)\n .addGap(60, 60, 60))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n selectOrdem = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n nome = new javax.swing.JTextField();\n btnSalvar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n descErro = new javax.swing.JLabel();\n\n jLabel2.setText(\"Ordem na exibição\");\n\n selectOrdem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\" }));\n\n jLabel1.setText(\"Nome da lista\");\n\n btnSalvar.setText(\"Salvar Lista\");\n\n btnCancelar.setText(\"Cancelar\");\n\n descErro.setForeground(new java.awt.Color(255, 51, 51));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnSalvar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCancelar))\n .addComponent(nome, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n .addComponent(descErro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(selectOrdem, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectOrdem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(descErro, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalvar)\n .addComponent(btnCancelar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pnlDatos = new javax.swing.JPanel();\n lblNumero = new javax.swing.JLabel();\n txfNumero = new javax.swing.JTextField();\n lblSerie = new javax.swing.JLabel();\n txfSerie = new javax.swing.JTextField();\n lblFraccion = new javax.swing.JLabel();\n cbbFraccion = new javax.swing.JComboBox<>();\n lblFecha = new javax.swing.JLabel();\n txfFecha = new javax.swing.JTextField();\n lblPrecio = new javax.swing.JLabel();\n txfPrecio = new javax.swing.JTextField();\n pnlControles = new javax.swing.JPanel();\n btnImportar = new javax.swing.JButton();\n btnExportar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Lotería Nacional\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n pnlDatos.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Datos\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 18), java.awt.Color.blue)); // NOI18N\n\n lblNumero.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n lblNumero.setText(\"Número\");\n\n txfNumero.setFont(new java.awt.Font(\"Dialog\", 0, 36)); // NOI18N\n txfNumero.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n txfNumero.setText(\"00000\");\n txfNumero.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txfNumeroFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txfNumeroFocusLost(evt);\n }\n });\n txfNumero.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txfNumeroActionPerformed(evt);\n }\n });\n\n lblSerie.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n lblSerie.setText(\"Serie\");\n\n txfSerie.setFont(new java.awt.Font(\"Dialog\", 0, 36)); // NOI18N\n txfSerie.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n txfSerie.setText(\"0\");\n txfSerie.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txfSerieFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txfSerieFocusLost(evt);\n }\n });\n txfSerie.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txfSerieActionPerformed(evt);\n }\n });\n\n lblFraccion.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n lblFraccion.setText(\"Fracción\");\n\n cbbFraccion.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n cbbFraccion.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\" }));\n cbbFraccion.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n cbbFraccionFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n cbbFraccionFocusLost(evt);\n }\n });\n cbbFraccion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbbFraccionActionPerformed(evt);\n }\n });\n\n lblFecha.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n lblFecha.setText(\"Fecha\");\n\n txfFecha.setFont(new java.awt.Font(\"Dialog\", 0, 36)); // NOI18N\n txfFecha.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n txfFecha.setText(\"31/08/2017\");\n txfFecha.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txfFechaFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txfFechaFocusLost(evt);\n }\n });\n txfFecha.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txfFechaActionPerformed(evt);\n }\n });\n\n lblPrecio.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n lblPrecio.setText(\"Precio\");\n\n txfPrecio.setFont(new java.awt.Font(\"Dialog\", 0, 36)); // NOI18N\n txfPrecio.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n txfPrecio.setText(\"0\");\n txfPrecio.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txfPrecioFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n txfPrecioFocusLost(evt);\n }\n });\n txfPrecio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txfPrecioActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout pnlDatosLayout = new javax.swing.GroupLayout(pnlDatos);\n pnlDatos.setLayout(pnlDatosLayout);\n pnlDatosLayout.setHorizontalGroup(\n pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDatosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(pnlDatosLayout.createSequentialGroup()\n .addComponent(lblNumero, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txfNumero, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(pnlDatosLayout.createSequentialGroup()\n .addComponent(lblSerie, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txfSerie, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(pnlDatosLayout.createSequentialGroup()\n .addComponent(lblFraccion, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbbFraccion, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(pnlDatosLayout.createSequentialGroup()\n .addComponent(lblFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txfFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(pnlDatosLayout.createSequentialGroup()\n .addComponent(lblPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txfPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pnlDatosLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {txfFecha, txfNumero, txfPrecio, txfSerie});\n\n pnlDatosLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {lblFecha, lblFraccion, lblNumero, lblPrecio, lblSerie});\n\n pnlDatosLayout.setVerticalGroup(\n pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlDatosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblNumero)\n .addComponent(txfNumero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblSerie)\n .addComponent(txfSerie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblFraccion)\n .addComponent(cbbFraccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblFecha)\n .addComponent(txfFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblPrecio)\n .addComponent(txfPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pnlDatosLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {lblFecha, lblFraccion, lblNumero, lblPrecio, lblSerie, txfFecha, txfNumero, txfPrecio, txfSerie});\n\n pnlControles.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Controles\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 18), java.awt.Color.blue)); // NOI18N\n\n btnImportar.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n btnImportar.setText(\"Importar\");\n btnImportar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnImportarActionPerformed(evt);\n }\n });\n\n btnExportar.setFont(new java.awt.Font(\"Dialog\", 1, 36)); // NOI18N\n btnExportar.setText(\"Exportar\");\n btnExportar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExportarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout pnlControlesLayout = new javax.swing.GroupLayout(pnlControles);\n pnlControles.setLayout(pnlControlesLayout);\n pnlControlesLayout.setHorizontalGroup(\n pnlControlesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlControlesLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnImportar, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnExportar, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n pnlControlesLayout.setVerticalGroup(\n pnlControlesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlControlesLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(pnlControlesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnImportar)\n .addComponent(btnExportar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pnlDatos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pnlControles, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(pnlDatos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pnlControles, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cboAutos = new javax.swing.JComboBox<>();\n btnObtenerSeleccionado = new javax.swing.JButton();\n lblObtener = new javax.swing.JLabel();\n spnIndice = new javax.swing.JSpinner();\n lblSeleccionado = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n txtMarca = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtModelo = new javax.swing.JFormattedTextField();\n btnAgregar = new javax.swing.JButton();\n btnEliminar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n cboAutos.setModel(new javax.swing.DefaultComboBoxModel<>());\n cboAutos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboAutosActionPerformed(evt);\n }\n });\n\n btnObtenerSeleccionado.setText(\"Obtener\");\n btnObtenerSeleccionado.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnObtenerSeleccionadoActionPerformed(evt);\n }\n });\n\n lblObtener.setText(\"Seleccionado\");\n\n spnIndice.setModel(new javax.swing.SpinnerNumberModel(0, 0, 9, 1));\n spnIndice.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n spnIndiceStateChanged(evt);\n }\n });\n\n lblSeleccionado.setText(\"Obtener\");\n\n jLabel1.setText(\"Marca\");\n\n jLabel2.setText(\"Modelo\");\n\n try {\n txtModelo.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n btnAgregar.setMnemonic('a');\n btnAgregar.setText(\"Agregar\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n\n btnEliminar.setMnemonic('e');\n btnEliminar.setText(\"Eliminar\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(85, 85, 85)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnEliminar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboAutos, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblSeleccionado, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnObtenerSeleccionado)\n .addGap(37, 37, 37)\n .addComponent(lblObtener, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(202, 202, 202))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(spnIndice, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jLabel2)))\n .addGap(44, 44, 44)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(136, 136, 136)\n .addComponent(btnAgregar)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboAutos, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblSeleccionado)\n .addComponent(btnEliminar))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnObtenerSeleccionado)\n .addComponent(lblObtener, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addComponent(spnIndice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(txtMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnAgregar)\n .addGap(7, 7, 7)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(txtModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(128, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\r\n\tpublic void init(Map<String, Object> values) {\n\t\tsetValue(values);\r\n\t\tthis.setType(\"available\", FieldType.COMBOBOX);\r\n\t\tLinkedList<KV> avails = new LinkedList<>();\r\n\t\tKV avail=new KV().setField(\"available_avail\").setTitle(\"可用\").setValue(\"1\");\r\n\t\tKV not_avail=new KV().setField(\"available_not_avail\").setTitle(\"不可用\").setValue(\"0\");\r\n\t\tavail.setAttr(\"_default_\", values.get(\"available\").equals(\"0\")?not_avail:avail);\r\n\t\tavails.add(avail);\r\n\t\tavails.add(not_avail);\r\n\t\tSystem.out.println(values);\r\n\t\tsetValue(\"available\", avails.toArray(new KV[0]));\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cod = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n Sact = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n desc = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n Smax = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n agregar = new javax.swing.JButton();\n Smin = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n unitario = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n tipo = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Articulo Nuevo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n cod.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codActionPerformed(evt);\n }\n });\n getContentPane().add(cod, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 105, 30));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Ingrese el Codigo\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"Stock Minimo\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1));\n\n Sact.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SactActionPerformed(evt);\n }\n });\n getContentPane().add(Sact, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 260, 105, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Stock Actual\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 270, -1, -1));\n\n desc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n descActionPerformed(evt);\n }\n });\n getContentPane().add(desc, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 60, 260, 30));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Descripcion\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, -1, -1));\n\n Smax.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SmaxActionPerformed(evt);\n }\n });\n getContentPane().add(Smax, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 180, 105, 30));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setText(\"Tipo\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, -1, -1));\n\n agregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/ico_carro.png\"))); // NOI18N\n agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n agregarActionPerformed(evt);\n }\n });\n getContentPane().add(agregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 330, 80, -1));\n\n Smin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SminActionPerformed(evt);\n }\n });\n getContentPane().add(Smin, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 220, 105, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel6.setText(\"Precio Unitario\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));\n\n unitario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n unitarioActionPerformed(evt);\n }\n });\n getContentPane().add(unitario, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 100, 105, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"AGREGAR\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 350, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel8.setText(\"Stock Maximo\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, -1, -1));\n\n tipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccione el Tipo\" }));\n tipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoActionPerformed(evt);\n }\n });\n getContentPane().add(tipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 150, 190, -1));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtNombre = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtApellido = new javax.swing.JTextField();\n txtTel = new javax.swing.JFormattedTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n txtDireccion = new javax.swing.JTextArea();\n jLabel5 = new javax.swing.JLabel();\n jcbEC = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaEC = new javax.swing.JTable();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel6 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setClosable(true);\n\n txtNombre.setEnabled(false);\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel1.setText(\"Nombre\");\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel3.setText(\"Apellido\");\n\n txtApellido.setEnabled(false);\n\n try {\n txtTel.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"########\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n txtTel.setEnabled(false);\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel4.setText(\"Telefono\");\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel2.setText(\"Direccion\");\n\n txtDireccion.setColumns(20);\n txtDireccion.setRows(5);\n txtDireccion.setEnabled(false);\n jScrollPane2.setViewportView(txtDireccion);\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel5.setText(\"Elija Enfermedad Cronica\");\n\n tablaEC.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(tablaEC);\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel6.setText(\"Seleccione un Paciente\");\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/1437119419_f-check_256.png\"))); // NOI18N\n jButton1.setText(\"Aceptar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/1436251885_Save.png\"))); // NOI18N\n jButton2.setText(\"Guardar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2)\n .addComponent(txtApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTel, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jcbEC, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addComponent(jLabel6)\n .addGap(41, 41, 41)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 554, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 545, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(54, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jcbEC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtTel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 9, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addGap(13, 13, 13))\n );\n\n pack();\n }", "private void initComponents() {\n\n jPanel4 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jComboBox2 = new javax.swing.JComboBox();\n jPanel1 = new javax.swing.JPanel();\n jTextField3 = new javax.swing.JTextField();\n jComboBox5 = new javax.swing.JComboBox();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel11 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jComboBox10 = new javax.swing.JComboBox();\n jComboBox12 = new javax.swing.JComboBox();\n jComboBox4 = new javax.swing.JComboBox();\n jLabel7 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jComboBox20 = new javax.swing.JComboBox();\n jLabel10 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jComboBox3 = new javax.swing.JComboBox();\n jButton6 = new javax.swing.JButton();\n jComboBox24 = new javax.swing.JComboBox();\n jButton7 = new javax.swing.JButton();\n jComboBox25 = new javax.swing.JComboBox();\n jComboBox26 = new javax.swing.JComboBox();\n jComboBox27 = new javax.swing.JComboBox();\n jComboBox28 = new javax.swing.JComboBox();\n jButton8 = new javax.swing.JButton();\n jComboBox29 = new javax.swing.JComboBox();\n jButton9 = new javax.swing.JButton();\n jComboBox30 = new javax.swing.JComboBox();\n jTextField4 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel4.setBackground(new java.awt.Color(153, 255, 255));\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel13.setText(\" ADD SESSION\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap(345, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 313, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(342, 342, 342))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n getContentPane().add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1000, 80));\n\n jButton2.setBackground(new java.awt.Color(0, 153, 153));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jButton2.setText(\"Back\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 100, 220, 47));\n\n jButton3.setBackground(new java.awt.Color(0, 153, 153));\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jButton3.setText(\"Home\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 100, 220, 47));\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\", \"1\", \"2\" }));\n getContentPane().add(jComboBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 260, 100, 30));\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel1.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 350, 100, 30));\n\n jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\", \"1\", \"2\" }));\n jPanel1.add(jComboBox5, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 270, 100, 30));\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\", \"1\", \"2\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n jPanel1.add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(328, 134, 100, 30));\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel11.setText(\"SessionID\");\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 100, 160, 30));\n jPanel1.add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(328, 91, 100, 30));\n\n jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\", \"1\", \"2\" }));\n jComboBox10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox10ActionPerformed(evt);\n }\n });\n jPanel1.add(jComboBox10, new org.netbeans.lib.awtextra.AbsoluteConstraints(446, 134, 106, 30));\n\n jComboBox12.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\", \"1\", \"2\" }));\n jComboBox12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox12ActionPerformed(evt);\n }\n });\n jPanel1.add(jComboBox12, new org.netbeans.lib.awtextra.AbsoluteConstraints(446, 177, 106, 30));\n\n jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\", \"1\", \"2\" }));\n jPanel1.add(jComboBox4, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 230, 100, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel7.setText(\"Tag\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 230, 190, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel5.setText(\"Subject Name\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 190, 190, 30));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel4.setText(\"Lacturers Name\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 140, 190, 30));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel8.setText(\"Sub Group ID\");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 310, 150, 30));\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel12.setText(\"Group ID\");\n jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 270, 90, 30));\n\n jComboBox20.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"\", \"1\", \"2\" }));\n jPanel1.add(jComboBox20, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 310, 100, 30));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel10.setText(\"Durations\");\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 400, 160, 30));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jLabel9.setText(\"Student Count\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 360, 160, 30));\n\n jButton1.setBackground(new java.awt.Color(0, 153, 153));\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 20)); // NOI18N\n jButton1.setText(\"ADD SESSION\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 440, 200, 40));\n\n jButton4.setText(\"Lec Names\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 135, -1, 30));\n\n jPanel1.add(jComboBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 130, 90, 30));\n\n jButton6.setText(\"Sub Names\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 175, -1, 30));\n\n jPanel1.add(jComboBox24, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 170, 90, 30));\n\n jButton7.setText(\"Tags\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 230, 90, 30));\n\n jPanel1.add(jComboBox25, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 310, 100, 30));\n\n jPanel1.add(jComboBox26, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 230, 90, 30));\n\n jPanel1.add(jComboBox27, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 230, 100, 30));\n\n jPanel1.add(jComboBox28, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 270, 100, 30));\n\n jButton8.setText(\"Grp IDs\");\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton8, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 270, 90, 30));\n\n jPanel1.add(jComboBox29, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 270, 90, 30));\n\n jButton9.setText(\"SubGrp IDs\");\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton9, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 310, -1, 30));\n\n jPanel1.add(jComboBox30, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 310, 90, 30));\n jPanel1.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 400, 100, 30));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(2, 78, 990, 520));\n getContentPane().add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 450, 140, 30));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTextField1Nombre = new javax.swing.JTextField();\n jTextField1Descripcion = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jComboBox1Rubro = new javax.swing.JComboBox();\n jButton1Aceptar = new javax.swing.JButton();\n jButton2Volver = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel1.setText(\"Rubro\");\n\n jLabel2.setBackground(new java.awt.Color(153, 153, 153));\n jLabel2.setForeground(new java.awt.Color(153, 153, 153));\n jLabel2.setText(\"Nuevo Rubro\");\n\n jLabel3.setText(\"Nombre :\");\n\n jLabel4.setText(\"Descripcion :\");\n\n jLabel5.setText(\"Rubro :\");\n\n jButton1Aceptar.setText(\"Aceptar\");\n jButton1Aceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1AceptarActionPerformed(evt);\n }\n });\n\n jButton2Volver.setText(\"Volver\");\n jButton2Volver.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2VolverActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1Nombre)\n .addComponent(jTextField1Descripcion)\n .addComponent(jComboBox1Rubro, 0, 300, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(383, Short.MAX_VALUE)\n .addComponent(jButton1Aceptar)\n .addGap(18, 18, 18)\n .addComponent(jButton2Volver)\n .addGap(64, 64, 64))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1Nombre, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1Descripcion, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBox1Rubro, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 63, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1Aceptar)\n .addComponent(jButton2Volver))\n .addGap(50, 50, 50))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n jComboBox3 = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox();\n jLabel6 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n jComboBox4 = new javax.swing.JComboBox();\n jComboBox5 = new javax.swing.JComboBox();\n jComboBox6 = new javax.swing.JComboBox();\n jLabel8 = new javax.swing.JLabel();\n\n jLabel2.setText(\"jLabel2\");\n\n jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBounds(new java.awt.Rectangle(50, 50, 750, 500));\n getContentPane().setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Source:\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(40, 110, 53, 17);\n\n jComboBox1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"DELHI\", \"MUMBAI\", \"PUNE\" }));\n getContentPane().add(jComboBox1);\n jComboBox1.setBounds(240, 110, 130, 23);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Destination:\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(430, 110, 87, 23);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Singapore\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(560, 110, 80, 23);\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"Number of Passenger:\");\n getContentPane().add(jLabel5);\n jLabel5.setBounds(40, 150, 154, 20);\n\n jComboBox2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" }));\n getContentPane().add(jComboBox2);\n jComboBox2.setBounds(240, 150, 130, 23);\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel6.setText(\"Date of Departure:\");\n getContentPane().add(jLabel6);\n jLabel6.setBounds(40, 190, 129, 25);\n\n jButton2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2);\n jButton2.setBounds(411, 320, 230, 37);\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(0, 51, 51));\n jLabel7.setText(\"Air Ticket Booking System\");\n getContentPane().add(jLabel7);\n jLabel7.setBounds(190, 20, 330, 50);\n\n jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"2015\" }));\n getContentPane().add(jComboBox4);\n jComboBox4.setBounds(380, 190, 56, 20);\n\n jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\" }));\n getContentPane().add(jComboBox5);\n jComboBox5.setBounds(240, 190, 40, 20);\n\n jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"October\" }));\n getContentPane().add(jComboBox6);\n jComboBox6.setBounds(290, 190, 80, 20);\n getContentPane().add(jLabel8);\n jLabel8.setBounds(0, 0, 670, 440);\n\n pack();\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n int i=taulaModelProveidor.getSelectedRow();\n if(i!=-1){\n \n //modNomCom.setText(Inici.llistaProveidors.get(i).get2nomCom());\n modNomCom.setText(taulaModelProveidor.getModel().getValueAt(i, 0).toString());\n modDataAlta.setText(taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n modNomFis.setText(taulaModelProveidor.getModel().getValueAt(i, 2).toString());\n modCifNif.setText(taulaModelProveidor.getModel().getValueAt(i, 3).toString());\n modPais.setText(taulaModelProveidor.getModel().getValueAt(i, 4).toString());\n modPoblacio.setText(taulaModelProveidor.getModel().getValueAt(i, 5).toString());\n modDireccio.setText(taulaModelProveidor.getModel().getValueAt(i, 6).toString());\n modCp.setText((String)taulaModelProveidor.getModel().getValueAt(i, 7).toString());\n modTel.setText((String)taulaModelProveidor.getModel().getValueAt(i, 8).toString());\n modEmail.setText(taulaModelProveidor.getModel().getValueAt(i, 9).toString()); \n modWebsite.setText(taulaModelProveidor.getModel().getValueAt(i, 10).toString()); \n modCc.setText((String)taulaModelProveidor.getModel().getValueAt(i, 11).toString()); \n modDescompte.setText((String)taulaModelProveidor.getModel().getValueAt(i, 12).toString()); \n modNotes.setText(taulaModelProveidor.getModel().getValueAt(i, 13).toString());\n modEntrega.setText(taulaModelProveidor.getModel().getValueAt(i, 14).toString());\n modPorts.setText(taulaModelProveidor.getModel().getValueAt(i, 15).toString());\n modExpo.setText(taulaModelProveidor.getModel().getValueAt(i, 16).toString());\n \n \n modNomCom.setEnabled(true);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(true);\n modCifNif.setEnabled(true);\n modPais.setEnabled(true);\n modPoblacio.setEnabled(true);\n modDireccio.setEnabled(true);\n modCp.setEnabled(true);\n modTel.setEnabled(true);\n modEmail.setEnabled(true);\n modWebsite.setEnabled(true);\n modCc.setEnabled(true); \n modDescompte.setEnabled(true); \n modNotes.setEnabled(true);\n modEntrega.setEnabled(true);\n modPorts.setEnabled(true);\n modExpo.setEnabled(true);\n \n \n \n String data = (taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n indexupdate=0;\n for(int x = 0; data != (taulaModelProveidor.getModel().getValueAt(x, 1).toString()); x++){\n indexupdate++;\n }\n }\n //Si no hem seleccionat cap fila resetejem els jtextfields i els desactivem\n else{\n modNomCom.setText(\"\");\n modDataAlta.setText(\"\");\n modNomFis.setText(\"\");\n modCifNif.setText(\"\");\n modPais.setText(\"\");\n modPoblacio.setText(\"\");\n modDireccio.setText(\"\");\n modCp.setText(\"\");\n modTel.setText(\"\");\n modEmail.setText(\"\");\n modWebsite.setText(\"\");\n modCc.setText(\"\"); \n modDescompte.setText(\"\"); \n modNotes.setText(\"\");\n modEntrega.setText(\"\");\n modPorts.setText(\"\");\n modExpo.setText(\"\");\n \n \n modNomCom.setEnabled(false);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(false);\n modCifNif.setEnabled(false);\n modPais.setEnabled(false);\n modPoblacio.setEnabled(false);\n modDireccio.setEnabled(false);\n modCp.setEnabled(false);\n modTel.setEnabled(false);\n modEmail.setEnabled(false);\n modWebsite.setEnabled(false);\n modCc.setEnabled(false); \n modDescompte.setEnabled(false); \n modNotes.setEnabled(false);\n modEntrega.setEnabled(false);\n modPorts.setEnabled(false);\n modExpo.setEnabled(false);\n \n \n }\n\n //Sempre que cliquem la taula desactivem el botó d'actualitzar fins que no es canvien els valors dels jtextfields\n btn_actualitzar.setEnabled(false);\n }", "public Main() {\n initComponents();\n ap.setArchivo(new File(\"./planetas.abc\"));\n aa.setArchivo(new File(\"./astro.abc\"));\n ap.cargar();\n planetas = ap.getListaa();\n aa.cargar();\n astro = aa.getListaa();\n DefaultComboBoxModel modelo = (DefaultComboBoxModel) cb_planeta.getModel();\n for (Planetas p : planetas) {\n modelo.addElement(p);\n }\n cb_planeta.setModel(modelo);\n DefaultComboBoxModel model = (DefaultComboBoxModel) cb_crew.getModel();\n for (Astronautas a : astro) {\n model.addElement(a);\n }\n cb_crew.setModel(model);\n if (planetas.size() > 0) {\n DefaultTableModel m = (DefaultTableModel) jt_pla.getModel();\n for (Planetas p : planetas) {\n Object newrow[] = {\n p.getNombre(),\n p.getTemp(),\n p.isAnillos(),\n p.getSuperficie(),\n p.getDist()\n };\n m.addRow(newrow);\n }\n jt_pla.setModel(m);\n }\n if (astro.size() > 0) {\n DefaultTableModel a = (DefaultTableModel) jt_astro.getModel();\n for (Astronautas c : astro) {\n Object newro[] = {\n c.getNombre(),\n c.getNacionalidad(),\n c.getSueldo(),\n c.getExperiencia(),\n c.getSexo(),\n c.getPeso()\n };\n a.addRow(newro);\n }\n jt_astro.setModel(a);\n }\n }", "private void fillCombos() {\n String sql1=\"SELECT deger from birim\";\n String sql2=\"SELECT deger from unvan\";\n String sql3=\"SELECT deger from gorev\";\n String sql4=\"SELECT deger from gorevsekli\";\n String sql5=\"SELECT deger from atamasekli\";\n String sql6=\"SELECT deger from hizmetsinifi\";\ntry{ps=conn.prepareStatement(sql1);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox1.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql2);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox2.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql3);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox3.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql4);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox4.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql5);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox13.addItem(deger);\n}\n \n} catch(Exception e){\n \n} \n try{ps=conn.prepareStatement(sql6);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox5.addItem(deger);\n}\n \n} catch(Exception e){\n \n} \n \n }", "private void initComponentsMeus(){\n taulaModelProveidor.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent e) {\n // Si seleccionem un proveidor posem les seues dades als jtextfields corresponents i els activem \n int i=taulaModelProveidor.getSelectedRow();\n if(i!=-1){\n \n //modNomCom.setText(Inici.llistaProveidors.get(i).get2nomCom());\n modNomCom.setText(taulaModelProveidor.getModel().getValueAt(i, 0).toString());\n modDataAlta.setText(taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n modNomFis.setText(taulaModelProveidor.getModel().getValueAt(i, 2).toString());\n modCifNif.setText(taulaModelProveidor.getModel().getValueAt(i, 3).toString());\n modPais.setText(taulaModelProveidor.getModel().getValueAt(i, 4).toString());\n modPoblacio.setText(taulaModelProveidor.getModel().getValueAt(i, 5).toString());\n modDireccio.setText(taulaModelProveidor.getModel().getValueAt(i, 6).toString());\n modCp.setText((String)taulaModelProveidor.getModel().getValueAt(i, 7).toString());\n modTel.setText((String)taulaModelProveidor.getModel().getValueAt(i, 8).toString());\n modEmail.setText(taulaModelProveidor.getModel().getValueAt(i, 9).toString()); \n modWebsite.setText(taulaModelProveidor.getModel().getValueAt(i, 10).toString()); \n modCc.setText((String)taulaModelProveidor.getModel().getValueAt(i, 11).toString()); \n modDescompte.setText((String)taulaModelProveidor.getModel().getValueAt(i, 12).toString()); \n modNotes.setText(taulaModelProveidor.getModel().getValueAt(i, 13).toString());\n modEntrega.setText(taulaModelProveidor.getModel().getValueAt(i, 14).toString());\n modPorts.setText(taulaModelProveidor.getModel().getValueAt(i, 15).toString());\n modExpo.setText(taulaModelProveidor.getModel().getValueAt(i, 16).toString());\n \n \n modNomCom.setEnabled(true);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(true);\n modCifNif.setEnabled(true);\n modPais.setEnabled(true);\n modPoblacio.setEnabled(true);\n modDireccio.setEnabled(true);\n modCp.setEnabled(true);\n modTel.setEnabled(true);\n modEmail.setEnabled(true);\n modWebsite.setEnabled(true);\n modCc.setEnabled(true); \n modDescompte.setEnabled(true); \n modNotes.setEnabled(true);\n modEntrega.setEnabled(true);\n modPorts.setEnabled(true);\n modExpo.setEnabled(true);\n \n \n \n String data = (taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n indexupdate=0;\n for(int x = 0; data != (taulaModelProveidor.getModel().getValueAt(x, 1).toString()); x++){\n indexupdate++;\n }\n }\n //Si no hem seleccionat cap fila resetejem els jtextfields i els desactivem\n else{\n modNomCom.setText(\"\");\n modDataAlta.setText(\"\");\n modNomFis.setText(\"\");\n modCifNif.setText(\"\");\n modPais.setText(\"\");\n modPoblacio.setText(\"\");\n modDireccio.setText(\"\");\n modCp.setText(\"\");\n modTel.setText(\"\");\n modEmail.setText(\"\");\n modWebsite.setText(\"\");\n modCc.setText(\"\"); \n modDescompte.setText(\"\"); \n modNotes.setText(\"\");\n modEntrega.setText(\"\");\n modPorts.setText(\"\");\n modExpo.setText(\"\");\n \n \n modNomCom.setEnabled(false);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(false);\n modCifNif.setEnabled(false);\n modPais.setEnabled(false);\n modPoblacio.setEnabled(false);\n modDireccio.setEnabled(false);\n modCp.setEnabled(false);\n modTel.setEnabled(false);\n modEmail.setEnabled(false);\n modWebsite.setEnabled(false);\n modCc.setEnabled(false); \n modDescompte.setEnabled(false); \n modNotes.setEnabled(false);\n modEntrega.setEnabled(false);\n modPorts.setEnabled(false);\n modExpo.setEnabled(false);\n \n \n }\n\n //Sempre que cliquem la taula desactivem el botó d'actualitzar fins que no es canvien els valors dels jtextfields\n btn_actualitzar.setEnabled(false);\n }\n }); \n }", "private void initComboBox() {\n jComboBox1.removeAllItems();\n listaDeInstrutores = instrutorDao.recuperarInstrutor();\n listaDeInstrutores.forEach((ex) -> {\n jComboBox1.addItem(ex.getNome());\n });\n }" ]
[ "0.6569916", "0.6554051", "0.64710873", "0.6452854", "0.6390238", "0.63254833", "0.61870027", "0.60814685", "0.6031837", "0.59819233", "0.5942972", "0.5905306", "0.5901488", "0.5867274", "0.58567655", "0.5854388", "0.5839184", "0.5810941", "0.58058596", "0.57799613", "0.5753487", "0.5752474", "0.57499987", "0.5741491", "0.57338697", "0.5722643", "0.5687135", "0.5683535", "0.5669773", "0.56559676", "0.56385636", "0.5622253", "0.56213766", "0.5620667", "0.56126946", "0.5603218", "0.5588007", "0.55772007", "0.55758214", "0.5572505", "0.55717665", "0.5566497", "0.55592954", "0.55551", "0.55545676", "0.5532539", "0.5532262", "0.5528334", "0.5527253", "0.5525275", "0.5522763", "0.55134726", "0.5503424", "0.5500816", "0.5497202", "0.54869324", "0.54866236", "0.5483151", "0.54804975", "0.5480048", "0.54743874", "0.5472146", "0.54677737", "0.546473", "0.54630244", "0.54573303", "0.5457203", "0.54560846", "0.54558825", "0.5441219", "0.54384327", "0.5435526", "0.543246", "0.5431182", "0.54304826", "0.5429426", "0.54245603", "0.54203606", "0.5419836", "0.5419075", "0.541778", "0.541571", "0.5413849", "0.5409918", "0.54093105", "0.5408515", "0.5405895", "0.54056406", "0.5402572", "0.54011697", "0.53906465", "0.5387135", "0.53844994", "0.53826255", "0.5373451", "0.5371988", "0.53708553", "0.5368897", "0.5365733", "0.53653085" ]
0.56583035
29
Override from KeyListener Implementation, used to check each field to verify user's inputs
@Override public void keyReleased(KeyEvent e) { int i=0; for (Component c : this.westPanel.getComponents()) { if (c instanceof JTextField) { JTextField field = (JTextField) c; if (field.equals(callPutFlagField)) { // callPutFlag must be 'p' or 'c' if (!field.getText().equals("c") && !field.getText().equals("p")) { field.setBackground(Color.RED); startButton.setEnabled(false); } else { field.setBackground(Color.WHITE); startButton.setEnabled(true); } } else if (i > 0 && i < 7) { // S, X T, R, B, V must be double if (Pattern.matches(fpRegex, field.getText())) { field.setBackground(Color.WHITE); startButton.setEnabled(true); } else { field.setBackground(Color.RED); startButton.setEnabled(false); } } else { // Steps, Simulation must be Integer if (isInteger(field.getText())) { field.setBackground(Color.WHITE); startButton.setEnabled(true); } else { field.setBackground(Color.RED); startButton.setEnabled(false); } } i++; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "@Override\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\n\t\t}", "@Override\n\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "@Override\n\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "private void checkKeys() \n {\n ignite(Greenfoot.isKeyDown(\"up\"));\n\n if(Greenfoot.isKeyDown(\"left\")) {\n setRotation(getRotation() - 5);\n } \n if(Greenfoot.isKeyDown(\"right\")) {\n setRotation(getRotation() + 5);\n }\n if(Greenfoot.isKeyDown(\"space\")) {\n fire(\"GreenLaser\", getGunReloadTime());\n \n } \n }", "public void textFieldValidator(KeyEvent event) {\n TextFieldLimited source =(TextFieldLimited) event.getSource();\n if (source.equals(partId)) {\n isIntegerValid(event);\n } else if (source.equals(maximumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(partName)) {\n isCSVTextValid(event);\n } else if (source.equals(inventoryCount)) {\n isIntegerValid(event);\n } else if (source.equals(minimumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(variableTextField)) {\n if (inHouse.isSelected()) {\n isIntegerValid(event);;\n } else {\n isCSVTextValid(event);\n }\n } else if (source.equals(partPrice)) {\n isDoubleValid(event);\n } else return;\n }", "private void chkKeyPressed(KeyEvent e) {\r\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\r\n cerrarVentana(false);\r\n } else if (UtilityPtoVenta.verificaVK_F11(e)) {\r\n aceptaCantidadIngresada(\"VK_F11\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n \r\n \r\n } else if (UtilityPtoVenta.verificaVK_F12(e)) {\r\n if (vIndTieneSug) {\r\n aceptaCantidadIngresada(\"VK_F12\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n }\r\n }\r\n }", "public void keyCheck() {\n if (right) {\n ship.rotateRight();\n }\n if (left) {\n ship.rotateLeft();\n }\n if (up) {\n ship.accelerate();\n }\n if (down) {\n ship.decelerate();\n }\n if (spacebar) {\n if (one){\n fireMiniGun();\n }\n if (two){\n fireEnergyBlaster();\n }\n if (three) {\n fireGrenadeLauncher();\n }\n }\n }", "void correctKeyPress();", "protected void keyTyped(char par1, int par2) {}", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n switch (v.getId()) {\n case R.id.merchantET:\n if (_merchantET.getText().length() >= 30)\n Toast.makeText(getApplicationContext(), \"Please only input up to 30 characters.\",\n Toast.LENGTH_SHORT).show();\n return false;\n case R.id.descET:\n if (_descET.getText().length() >= 80)\n Toast.makeText(getApplicationContext(), \"Please only input up to 80 characters.\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n return false;\n }", "public abstract boolean listenerUserInput();", "private void decoySeedTxtKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_decoySeedTxtKeyReleased\n validateInput(false);\n }", "@Override\n public boolean keyTyped(char arg0) {\n return false;\n }", "@Override\n public void keyTyped(KeyEvent evt) {\n Cell cell = (Cell) evt.getSource();\n // Disregard entry if not 1-9 or text already exists\n if (!String.valueOf(evt.getKeyChar()).matches(\"^[1-9]$\") || cell.getText().length() == 1) {\n System.out.println(\"Input: \" + evt.getKeyChar() + \" was rejected.\");\n evt.consume();\n } else {\n // Check if input meets contraints\n if (!model.getPuzzle().meetsConstraints(cell, Integer.valueOf(String.valueOf(evt.getKeyChar()).trim()))) {\n System.err.println(\"VALUE \" + evt.getKeyChar() + \" AT \" + cell.getPosition() + \" DOES NOT MEET SUDOKU CONTRAINTS\");\n cell.setText(\"\");\n cell.setUserValue(0);\n evt.consume();\n } else {\n cell.setUserValue(Integer.valueOf(String.valueOf(evt.getKeyChar()).trim()));\n }\n checkGridCompletion();\n }\n }", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0)\r\n\t\t\t{\n\t\t\t\tif(arg0.getKeyCode() == KeyEvent.VK_ENTER)\r\n\t\t\t\t{\r\n\t\t\t\t\tverify(input.getText());\r\n\t\t\t\t\tinput.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}", "private void checkUserInput() {\n }", "private void chkKeyPressed(KeyEvent e) {\n \n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) \n { \n FarmaVariables.vAceptar = true;\n this.setVisible(false);\n this.dispose();\n e.consume();\n //cerrarVentana(true); \n } \n \n else if (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) \n {\n if (datosValidados()) {\n try {\n ingresarCantidad();\n FarmaUtility.aceptarTransaccion();\n cerrarVentana(false);\n } catch (SQLException sql) {\n FarmaUtility.liberarTransaccion();\n log.error(\"\",sql);\n FarmaUtility.showMessage(this, \n \"Ocurrió un error al registrar la cantidad : \\n\" +\n sql.getMessage(), txtCruce);\n cerrarVentana(false);\n }\n }\n }\n }", "protected abstract boolean checkInput();", "@Override\n public void keyTyped(KeyEvent e) {\n \n }", "@Override\n public boolean onKeyUp(int keyCode, KeyEvent event) {\n\n //if(afterCheck==false) {\n //get char pressed by user from keyboard\n char keyPressed = (char) event.getUnicodeChar();\n if(userTurn==true) {\n if (afterCheck == false) {\n //check whether character pressed is valid i.e between a to z\n if (Character.isLetter(keyPressed)) {\n currentWord = ghostT.getText().toString();\n currentWord += keyPressed;\n ghostT.setText(currentWord);\n\n status.setText(COMPUTER_TURN);\n //set Computer turn\n userTurn = false;\n // challenge.setEnabled(false);\n handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //Do something after 2seconds\n //invoke computerturn\n computerTurn();\n }\n }, 2000);\n //invoke computerturn\n //computerTurn();\n\n //check validity for user input\n /**if (dictionary.isWord(currentWord)) {\n status.setText(\"VALID WORD\");\n } else\n status.setText(\"INVALID WORD\");\n return true;\n **/\n return true;\n\n } else {\n Toast.makeText(this, \"Invalid INPUT\", Toast.LENGTH_SHORT).show();\n return super.onKeyUp(keyCode, event);\n }\n }\n }\n\n return false;\n }", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) {\n\t\t\tif (datosValidados())\n\t\t\t\tif (componentes.gs.componentes.JConfirmDialog.rptaConfirmDialog(this,\n\t\t\t\t\t\t\"Esta seguro que desea afectar la página?\")) {\n\t\t\t\t\tVariablesInventario.vNumPag = cmbPagina.getSelectedItem()\n\t\t\t\t\t\t\t.toString().trim();\n\t\t\t\t\tcerrarVentana(true);\n\t\t\t\t}\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n\t}", "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "@Override\n \t\t\tpublic void keyTyped(KeyEvent arg0) {\n \t\t\t\t\n \t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\r\n public void keyTyped(KeyEvent e) {\n \r\n }", "@Override\n public void keyTyped(KeyEvent e){\n }", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void keyTyped(KeyEvent e) {\n\n }", "@Override\n public void keyTyped(KeyEvent e) {\n\n }", "@Override\n public boolean keyUp(int arg0) {\n return false;\n }", "@Override\n public void keyTyped(KeyEvent e) {}", "@Override\n\tpublic void handleKeyInputs(Map<Integer, Boolean> keys) {\n\t\t\n\t}", "@Override\r\n public void keyTyped(KeyEvent e)\r\n { \r\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void keyTyped(KeyEvent e) {\n\n }", "@Override\n public void keyTyped(KeyEvent e) {\n\n }", "@Override\n public void keyTyped(KeyEvent e) {\n\n }", "@Override\n public void keyTyped(KeyEvent e) {\n\n }", "@Override\n\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void minPepLengthTxtKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_minPepLengthTxtKeyReleased\n validateInput(false);\n }", "private void event(KeyEvent e ,JTextField textField) {\n\t\tchar n = e.getKeyChar();\r\n\t\tif (!Character.isDigit(n) && n != 8 && n != 46)\r\n\t\t{\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели не числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(false);\r\n\t\t}else {\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(true);\r\n\t\t}\r\n\t}", "public void keyTyped(KeyEvent e) {\n\r\n }", "public void keyTyped(KeyEvent e) {\r\n \r\n }", "@Override\n\tpublic boolean keyTyped(char arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char arg0) {\n\t\treturn false;\n\t}", "@Override\n\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "public void keyTyped(KeyEvent e) {\r\n\t\t// user code begin {1}\r\n\t\tswitch (e.getKeyChar()) {\r\n\t\tcase KeyEvent.VK_ENTER:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_BACK_SPACE:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_TAB:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_SHIFT:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_CONTROL:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_ALT:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_CAPS_LOCK:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_END:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_HOME:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_LEFT:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_UP:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_RIGHT:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_DOWN:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_DELETE:\r\n\t\t\tbreak;\r\n\t\tcase KeyEvent.VK_NUM_LOCK:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tif (getAllowedKey() == TextFieldExt.AllowedKey.AK_ALFANUMERICOS) {\r\n\t\t\t\tif (getMaxLength() == 0) {\r\n\t\t\t\t\tvalidaKeyMask(e);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (getJTextField().getSelectedText() != null || getJTextField().getText().length() < getMaxLength()) {\r\n\t\t\t\t\t\tvalidaKeyMask(e);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\te.setKeyChar('\\0');\r\n\t\t\t\t\t\te.setKeyCode(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tvalidaAllowedKey(e);\r\n\t\t\t\tif (getMaxLength() == 0) {\r\n\t\t\t\t\te.setKeyChar('\\0');\r\n\t\t\t\t\te.setKeyCode(0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (getJTextField().getSelectedText() != null || getJTextField().getText().length() < getMaxLength()) {\r\n\t\t\t\t\t\tvalidaKeyMask(e);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\te.setKeyChar('\\0');\r\n\t\t\t\t\t\te.setKeyCode(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\trestorePainter();\r\n\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e){\n\t\t\tString caracter_valido = \"sinbqrcoetahyzxuvwlmnjkp.1234560789+/*-^()\";\n\t\t\tchar caracter = e.getKeyChar();\n\n\t\t\tif(caracter_valido.indexOf(caracter) == -1)\n\t\t\t\te.consume();\n\t\t}", "@Override\n\tpublic void keyTyped(KeyEvent event) {\n\t\t\n\t}", "boolean onKeyPressed(KeyEvent event);", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\tif (new String(pass.getPassword()).equals(\"\")) {\r\n\t\t\t\t\tpass.setText(name);\r\n\t\t\t\t\tpass.setEchoChar((char) 0);\r\n\t\t\t\t\tpass.setForeground(Color.LIGHT_GRAY);\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\r\n\t}", "protected void inputListener(){\n }", "@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void keyTyped(KeyEvent e) {\n }", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void keyTyped(KeyEvent event) {\n\n\t}", "private void checkKey(){\n if(Greenfoot.isKeyDown(\"z\") && getJumping() == false){\n jump();\n }\n if(getCanMove()){\n if(Greenfoot.isKeyDown(\"right\")){\n moveRight();\n facingRight = true;\n }\n if(Greenfoot.isKeyDown(\"left\")){\n moveLeft();\n facingRight = false;\n }\n }\n if(Greenfoot.isKeyDown(\"x\") && getThrowing() == false){\n throwKnife(facingRight);\n changeThrowing(true);\n }\n }", "@Override\n public void keyPressed(KeyEvent e) {\n\n\n }", "@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t}", "@Override\n public void keyPressed(KeyEvent e) {\n \n \n }", "@Override\n public void keyTyped(KeyEvent e){\n }", "@Override\r\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e)\r\n\t{\n\t}", "public void keyTyped (KeyEvent e) { }", "@Override\n\t\t\tpublic boolean onKeyTyped (char character) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\t}", "public void keyReleased(KeyEvent event)\n {\n JPasswordField source = (JPasswordField) event.getSource();\n if (currentPasswdField.equals(source))\n {\n String password = new String(currentPasswdField.getPassword());\n okButton.setEnabled(password.length() > 0);\n password = null;\n }\n }", "@Override\r\n\tpublic void keyTyped(KeyEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void keyTyped(KeyEvent arg0) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\r\n\t\t\t}", "@Override\n\tpublic void keyTyped(KeyEvent e) \n\t{\n\t\t\n\t}", "@Override\n public void keyTyped(KeyEvent e) {\n }", "@Override\n public void keyTyped(KeyEvent e) {\n }", "@Override\n public void keyTyped(KeyEvent e) {\n }", "@Override\n public void keyTyped(KeyEvent e) {\n }" ]
[ "0.67832017", "0.67832017", "0.67357033", "0.6705216", "0.6644985", "0.6644985", "0.64722896", "0.6407597", "0.6382568", "0.6354934", "0.6324659", "0.62699986", "0.6217501", "0.6210168", "0.62034816", "0.62024474", "0.6151075", "0.6148724", "0.6113636", "0.6089713", "0.6069239", "0.605143", "0.59800196", "0.5966333", "0.5965722", "0.5965722", "0.5964843", "0.59595513", "0.59595513", "0.59595513", "0.59595513", "0.59595513", "0.59595513", "0.595936", "0.5953185", "0.5952949", "0.595048", "0.595048", "0.595048", "0.595048", "0.595048", "0.595048", "0.595048", "0.59449965", "0.59449965", "0.5940847", "0.5930404", "0.5923292", "0.5922834", "0.59207207", "0.59174484", "0.59174484", "0.59174484", "0.59174484", "0.59162223", "0.5915478", "0.59124607", "0.59122753", "0.59120196", "0.5907104", "0.5907104", "0.59065557", "0.58951116", "0.5891275", "0.58843976", "0.5882733", "0.58784753", "0.58770835", "0.58770835", "0.58770835", "0.58770835", "0.58770835", "0.58770835", "0.58770835", "0.58770835", "0.5876686", "0.58758193", "0.5875259", "0.5873985", "0.5873985", "0.5873985", "0.58689874", "0.5865326", "0.5865123", "0.58632773", "0.58600223", "0.5858782", "0.58546495", "0.5854572", "0.58541244", "0.5853084", "0.58512926", "0.58499104", "0.58465326", "0.58465326", "0.5843845", "0.58438087", "0.5843151", "0.5843151", "0.5843151", "0.5843151" ]
0.0
-1
Check if a string can be parsed as an Integer for GUI JTextField
public static boolean isInteger(String s) { try { Integer.parseInt(s); } catch(NumberFormatException e) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInt(TextField input);", "public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }", "private boolean checkInteger(String str) {\n try {\n return Integer.parseInt(str) <= 30; // Check if the entered value is an Integer and <= 30;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "private boolean isInt(TextField input){\r\n input.setStyle(\"-fx-border-color: green; -fx-border-radius: 15;-fx-background-radius: 20;\");\r\n try {\r\n int number = Integer.parseInt(input.getText());\r\n System.out.println(\"Input is\" + number );\r\n return true;\r\n } catch (Exception e) {\r\n input.setStyle(\"-fx-border-color: red;\");\r\n input.setText(null);\r\n input.setPromptText(\"Only digits/numbers must be filled\");\r\n return false;\r\n }\r\n }", "public boolean isInt(String text)\r\n {\r\n try\r\n {\r\n int ans = Integer.parseInt(text);\r\n return true;\r\n }\r\n catch(NumberFormatException e)\r\n {\r\n return false;\r\n }\r\n }", "private static boolean validateInteger(String intString) {\n try {\n Integer.parseInt(intString);\n } catch (NumberFormatException e) {\n // Not a valid integer\n return false;\n }\n return true;\n }", "private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }", "private boolean isInteger(String userInput){\n if (userInput.matches(\"[0-9]+\")) {\n return true;\n }\n return false;\n }", "private boolean isInteger(String str)\r\n {\r\n try\r\n {\r\n int i = Integer.parseInt(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean isInt(String str) { \n\t try { \n\t int d = Integer.parseInt(str); \n\t } catch(NumberFormatException nfe) { \n\t return false; \n\t } \n\t return true; \n\t}", "public static boolean isInt(String val){\n\t try\n\t {\n\t Integer.parseInt(val);\n\t return true;\n\t } catch (NumberFormatException ex)\n\t {\n\t \tSystem.out.println(\"Please enter integer\");\n\t return false;\n\t }\n\t \n\t}", "private boolean isInteger(String a) {\n try \n {\n Integer.parseInt(a);\n return true;\n }\n catch(Exception e) {\n return false;\n }\n }", "private boolean isInteger(String value){\n try{\n Integer.parseInt(value);\n }catch(NumberFormatException exc)\n {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не верно указано затраченное время!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Введите целое число затраченного времени!\\nЗатраченное время не может превышать 2147483647 (245000 лет)!\");\n alert.showAndWait();\n return false;\n }\n return true;\n }", "public static boolean isIntValid (String str) {\r\n try {Integer.parseInt(str);} catch (NumberFormatException e) {return false;}\r\n return true;\r\n }", "public boolean checkInput(String str)\n {\n try\n {\n Integer.parseInt(str);\n } \n catch(NumberFormatException ex)\n {\n return false;\n } \n return true;\n }", "public boolean isAnInt(String str) {\r\n \ttry {\r\n \t\tInteger.parseInt(str);\r\n \t} catch (NumberFormatException e) {\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n }", "public static boolean isInt(String strNum) {\n try {\n int d = Integer.parseInt(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }", "private boolean isInteger(String s)\n{\n\t boolean isNumber = true;\n\ttry{\n\t\t\tint n = Integer.parseInt(s);\n\t }catch(NumberFormatException n)\n\t {\n\t\t isNumber = false;\n\t }\n\n\treturn isNumber;\n}", "private boolean tryParseInt(String str) {\n try {\n Integer.parseInt(str);\n } catch (Exception ex) {\n return false;\n }\n return true;\n }", "public boolean isInt(String value) {\n try {\n Integer.parseInt(value);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "private static boolean isInteger(String s) {\r\n try {\r\n Integer.parseInt(s);\r\n return true;\r\n } catch (Exception ex) {\r\n return false;\r\n }\r\n }", "private boolean isStringAnInt(String s) {\n // false if string is null\n if (s == null) {\n return false;\n }\n // if scanner get parse string for int then return true\n try {\n Scanner sc = new Scanner(s);\n int num = sc.nextInt();\n }\n // return false if it throws an exception\n catch (Exception e) {\n return false;\n }\n return true;\n }", "public boolean isInteger(String x){\n try{\n Integer.parseInt(x);\n \n }\n catch(NumberFormatException e){\n return false;\n }\n return true;\n }", "@Test\n\tpublic void testInt4() {\n\t\tTextField intText = new TextField(\"23abc\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "@Test\n\tpublic void testInt5() {\n\t\tTextField intText = new TextField(\"23.4\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "@Test\n\tpublic void testInt6() {\n\t\tTextField intText = new TextField(\"23.0\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "public static boolean isInteger(String s) {\n\t try { Integer.parseInt(s); }\n\t catch(NumberFormatException e) { return false; }\n\t catch(NullPointerException e) { return false; }\n\t // only gets here if the entered String is Integer:\n\t return true;\n\t}", "private boolean isInteger(String element) {\r\n try {\r\n Integer.valueOf(element);\r\n } catch (NumberFormatException e) {\r\n return false;\r\n }\r\n return true;\r\n }", "public static boolean isInteger(String str){\n try {\n int d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isParsable(String input){\n boolean parsable = true;\n try{\n Integer.parseInt(input);\n }catch(NumberFormatException e){\n parsable = false;\n }\n return parsable;\n}", "public static boolean isInteger(String value) {\n\t\ttry {\n\t\t\tInteger.parseInt(value);\n\t\t}\n\t\t \n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean isInteger();", "private boolean isInt (String s) {\n\t\ttry {\n\t\t\tif(Integer.parseInt(s) < 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean isInteger(String input){\r\n try{\r\n Integer.parseInt(input);\r\n } catch (NumberFormatException e){\r\n return false;\r\n } catch (NullPointerException e){\r\n return false;\r\n }\r\n return true;\r\n }", "public static boolean isInt(String str)\r\n\t{\r\n\t\tif (str == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint length = str.length();\r\n\t\tif (length == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint i = 0;\r\n\t\tif (str.charAt(0) == '-') {\r\n\t\t\tif (length == 1) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti = 1;\r\n\t\t}\r\n\t\tfor (; i < length; i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tif (c < '0' || c > '9') {\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 int isInteger(String s) {\r\n\t\t\tint retInt;\r\n\t\t try { \r\n\t\t \tretInt = Integer.parseInt(s); \r\n\t\t } catch(NumberFormatException e) { \r\n\t\t return -1; \r\n\t\t } catch(NullPointerException e) {\r\n\t\t return -1;\r\n\t\t }\r\n\t\t // only got here if we didn't return false\r\n\t\t return retInt;\r\n\t\t}", "private void validateValue()\r\n {\r\n try\r\n {\r\n Long.parseLong(getText());\r\n }\r\n catch (NumberFormatException ex)\r\n {\r\n setText(\"\");\r\n }\r\n \r\n }", "public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean isInteger(String value) {\n boolean valid = false;\n try {\n Integer.parseInt(value);\n valid = true;\n } catch (RuntimeException exc) {\n // could not parse into int, false will be returned\n }\n return valid;\n }", "public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}", "public static boolean isInteger(String str) {\n if (str == null || str.isEmpty() || str.equals(\"-\"))\n return false;\n\n int startIndex = str.startsWith(\"-\") ? 1 : 0;\n for (int i = startIndex; i < str.length(); i++)\n if (Character.digit(str.charAt(i), 10) < 0)\n return false;\n return true;\n }", "public static boolean isInteger(String s) {\n\t\ttry { \n\t\t\tInteger.parseInt(s); \n\t\t} catch(NumberFormatException e) { \n\t\t\treturn false; \n\t\t} catch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t// only got here if we didn't return false\n\t\treturn true;\n\t}", "public static boolean isInteger(String s)\r\n {\r\n if (s == null || s.length() == 0)\r\n return false;\r\n \r\n //integer regular expression\r\n String regex = \"[-|+]?\\\\d+\";\r\n if (!s.matches(regex))\r\n return false;\r\n \r\n if (s.startsWith(\"+\"))\r\n s = s.substring(1);\r\n \r\n //try convert the string to an int\r\n //if it can not be converted, then return false\r\n try\r\n {\r\n Integer.parseInt(s);\r\n }catch(Exception e)\r\n {\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "@Test\n\tpublic void testInt3() {\n\t\tTextField intText = new TextField(\"abc\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "public static boolean isInt(String str) {\n\t\ttry {\n\t\t\tint f = Integer.parseInt(str);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }", "public static int validInt(String message){\n boolean success = false;\n int value = -1;\n do {\n try {\n value = (int)readNumber(message, \"int\");\n success = true;\n } catch (InputMismatchException e){\n System.out.println(\"Debe introducir un valor numérico... \");\n }\n } while(!success);\n return value;\n }", "public static boolean isInteger(String str) {\n\t\ttry {\n\t\t\tInteger.parseInt(str);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean isValidDigit(String strInput) {\n boolean isValid = true;\n if (isPrimitive(strInput)) {\n int input = Integer.parseInt(strInput);\n if (input < 1 || input > 255) {\n log.debug(\"Wrong config input value: {}\", strInput);\n isValid = false;\n } else {\n isValid = true;\n }\n\n } else {\n isValid = false;\n }\n\n return isValid;\n }", "public static boolean isInt(String pram)\r\n {\r\n try{\r\n Integer.parseInt(pram);\r\n return true;\r\n }catch(NumberFormatException e){\r\n return false;\r\n }\r\n }", "public static int integerValidation() {\n\t\tboolean flag = true;\n\t\tint input = 0;\n\t\tString temp = \"\";\n\t\twhile (flag) {\n\t\t\ttry {\n\t\t\t\ttemp = in.nextLine().trim();\n\t\t\t\tinput = Integer.parseInt(temp);\n\t\t\t\tflag = false;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Please Enter a valid input\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "public static boolean isInteger(String str) {\n if (str == null || str.isEmpty()) {\n return false;\n }\n int length = str.length();\n if (length == 0) {\n return false;\n }\n int i = 0;\n if (str.charAt(0) == '-') {\n if (length == 1) {\n return false;\n }\n i = 1;\n }\n for (; i < length; i++) {\n char c = str.charAt(i);\n if (c <= '/' || c >= ':') {\n return false;\n }\n }\n return true;\n }", "public static boolean isInteger(String s) {\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}", "public static boolean isInteger(String s) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(s);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean is_int(String s) {\n try {\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public static boolean isInteger(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (Exception e) {\n return false;\n }\n\n }", "public boolean isInteger(String sIntString) {\n int i = 0;\n try {\n i = Integer.parseInt(sIntString);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "private static boolean isParsable(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public void setOnlyInteger() {\r\n\t\tPlatform.runLater(() -> {\r\n\t\t\ttextfield.textProperty().addListener(new ChangeListener<String>() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\r\n\t\t\t\t\tif (!newValue.matches(\"^\\\\d*\\\\d\") && !newValue.isEmpty()) {\r\n\t\t\t\t\t\ttextfield.setText(oldValue);\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}", "public static boolean tryParse(String str) { \n try { \n Integer.parseInt(str); \n return true;\n } catch (NumberFormatException ex) {\n return false; \n } catch (Exception ex) {\n\t logError(ex);\n\t return false;\n }\n }", "public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isInteger(String string) {\r\n\t try {\r\n\t Integer.valueOf(string);\r\n\t return true;\r\n\t } catch (NumberFormatException e) {\r\n\t return false;\r\n\t }\r\n\t}", "public static boolean isInt(String val) {\n\t\ttry {\n\t\t\tInteger.parseInt(val);\n\t\t\treturn true;\n\t\t} catch (Exception e) { return false; }\n\t}", "public static boolean isInteger(String s) {\n try {\n Integer.parseInt(s);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }", "private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }", "public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}", "public static boolean IS_INTEGER(String t) {\n\n return (t.equals(Feature.INTEGER));\n }", "@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}", "public static boolean isInt(String s){\n boolean flag = true;\n flag = ((s.charAt(0) >= '0' && s.charAt(0) <= '9') || s.charAt(0) == '-' || s.charAt(0) == '+' );\n int i = 1;\n while(flag && i < s.length()){\n flag = (s.charAt(i) >= '0' && s.charAt(i) <= '9' );\n i++;\n }\n return flag;\n }", "public static boolean isValidInt(String s)\n {\n for (int i = 0; i < s.length(); i++)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }", "protected static int verifyInt(Text field, String fieldName)\r\n\t\t\tthrows MusicTunesException {\r\n\t\tint number = 0;\r\n\t\ttry {\r\n\t\t\tnumber = Integer.parseInt(field.getText());\r\n\t\t} catch (NumberFormatException e2) {\r\n\t\t\tfield.setFocus();\r\n\t\t\tfield.selectAll();\r\n\t\t\tthrow new MusicTunesException(\"Invalid \" + fieldName\r\n\t\t\t\t\t+ \": \" + field.getText());\r\n\t\t}\r\n\t\treturn number;\r\n\t}", "public int validateInt(String tableName,String fieldName, JTextField textFieldName)\r\n {\r\n try {\r\n stmt = con.createStatement();\r\n String SQL = \"SELECT * FROM \" + tableName;\r\n ResultSet rs = stmt.executeQuery(SQL);\r\n while(rs.next())\r\n {\r\n int value = rs.getInt(fieldName);\r\n if(value == parseInt(textFieldName.getText()))\r\n {\r\n return 1;\r\n }\r\n }\r\n } \r\n catch (NumberFormatException | SQLException ex) {\r\n JOptionPane.showMessageDialog(null,\"Invalid Entry\\n(\" + ex + \")\");\r\n }\r\n return 0;\r\n \r\n }", "boolean isNumericPubmed(String id){\n\t\t \n\t\t try{\n\t\t\t Integer.parseInt(id);\n\t\t }catch (Exception e){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public static int checkValidity (String stringChoice) {\n int choice;\n Scanner parser = new Scanner(stringChoice);\n String modStringChoice = stringChoice.replaceAll(\"[\\\\d]\", \"\");\n if (modStringChoice.length() == 0 && parser.hasNextInt()) {\n choice = parser.nextInt();\n }\n else {\n choice = -1;\n }\n parser.close();\n return choice;\n }", "public static boolean isInt(String check) {\n\t\treturn check.matches(\"\\\\d+\");\n\t}", "public static boolean isInteger(String s) {\n\t return isInteger(s,10);\n\t}", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "private void validateData(String input) {\n String[] inputStringArray = input.split(\" \");\n\n for (String s : inputStringArray) {\n try {\n Integer.parseInt(s);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\n \"Looks like your input - \" + s + \", is not a number. Try again\");\n }\n }\n }", "public boolean isInteger(int min, int max){\n if(!isInteger()){\n return false;\n } \n //Tomo el valor del campo y lo paso a un entero\n int valor=Integer.parseInt(txt.getText());\n \n if(valor >=min && valor <= max){\n return true;\n }\n return error(\"El valor debe estra comprendido entre \"+min+\" y \"+max+\" !!\");\n }", "public static boolean IsInteger(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^[\\\\d|\\\\-]\\\\d*$\");\n java.util.regex.Matcher m = p.matcher(par_Number);\n\n return m.matches();\n\n }", "public static boolean isInteger(String s) {\n return isInteger(s,10);\n }", "private boolean isEditValid ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint value = Integer.parseInt (super.getText ());\r\n\t\t\tboolean isValid = isInsideValidRange (value);\r\n\r\n\t\t\tif (isValid)\r\n\t\t\t{\r\n\t\t\t\tcommitEdit (value);\r\n\t\t\t}\r\n\r\n\t\t\treturn (isValid);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\t// Parse failed; therefore invalid\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t}", "private static int tryParse(String number) {\r\n\t\ttry {\r\n\t\t\treturn Integer.parseInt(number);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tthrow new java.lang.Error(\"Could not convert input to integer.\");\r\n\t\t}\r\n\t}", "private boolean esNumero(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException nfe) {\n return false;\n }\n }", "public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }", "private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static Integer scanInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }", "private static boolean isNumber( char i ) {\n\t\tif ( Character.isDigit(i) ) return true; \n\t\tthrow new IllegalArgumentException(\"The weight of the route should be a number, now it's '\"+ i +\"'\");\n\t}", "public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }", "public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}" ]
[ "0.7920997", "0.7618694", "0.7320569", "0.7162452", "0.7153654", "0.7109913", "0.7077578", "0.7068552", "0.70374954", "0.7021374", "0.6987955", "0.6969417", "0.6953272", "0.6930531", "0.6918919", "0.69179904", "0.6883727", "0.6853159", "0.6852319", "0.68401957", "0.681193", "0.6800467", "0.67853236", "0.6766847", "0.6736158", "0.6717098", "0.6700808", "0.6692705", "0.66912377", "0.6686134", "0.6682505", "0.66677487", "0.66627765", "0.66447777", "0.66352546", "0.66128916", "0.6584648", "0.65824866", "0.656577", "0.6563209", "0.656148", "0.6559113", "0.6554111", "0.65376526", "0.652149", "0.65030605", "0.6501588", "0.64874405", "0.64846015", "0.6481226", "0.64799505", "0.6476919", "0.6476754", "0.6460055", "0.645806", "0.6436732", "0.6423647", "0.6419664", "0.64176095", "0.64041847", "0.6400918", "0.6397042", "0.639576", "0.63896126", "0.63518137", "0.6348088", "0.6336517", "0.632103", "0.6309622", "0.6291935", "0.6285964", "0.62833095", "0.62831575", "0.62774664", "0.62752706", "0.6273911", "0.6259734", "0.62592673", "0.6248874", "0.624763", "0.6227387", "0.62159824", "0.61829555", "0.6155823", "0.61305237", "0.6125859", "0.61165446", "0.6103494", "0.61008286", "0.6100627", "0.6098393", "0.6098377", "0.60783696", "0.60582966", "0.60489595", "0.6046488", "0.6029472", "0.6028714", "0.6024749", "0.6014777" ]
0.6637772
34
TODO Autogenerated method stub
@Override public void keyTyped(KeyEvent e) { }
{ "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
this one has no decorator
public static void main(String[] args) throws InterruptedException { PlayerService player = new PlayerContract(); LevelService level = new LevelImpl(); GameEngService eng = new GameEngImpl(); // INIT PHASE // hashmap for init HashMap<Specialty, Integer> chips = new HashMap<Specialty, Integer>(); chips.put(Specialty.CLIMBER, 5); chips.put(Specialty.DIGGER, 5); chips.put(Specialty.STOPPER, 5); chips.put(Specialty.BASHER, 5); chips.put(Specialty.BUILDER, 5); chips.put(Specialty.MINER, 5); chips.put(Specialty.FLOATER, 5); chips.put(Specialty.BOMBER, 5); player.init(chips); level.init(60, 40); eng.init(6, 3); // END INIT PHASE // BINDING PHASE player.bindEngine(eng); eng.bindLevel(level); QApplication.initialize(args); GuiQT gui = new GuiQT(); gui.bindEngine(eng); gui.bindLevel(level); gui.bindPlayer(player); gui.show(); gui.resize(1024, 1980); QApplication.execStatic(); QApplication.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n protected void prot() {\n }", "protected Doodler() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected void h() {}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private Infer() {\n\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract String getDecoratorInfo();", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n\tpublic void jugar() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "protected boolean func_70814_o() { return true; }", "@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 some() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public abstract Object mo26777y();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public abstract void mo56925d();", "Consumable() {\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic String getFunc() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "public void mo6944a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21825b() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private static interface Service {}", "private EagerlySinleton()\n\t{\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void mo44053a() {\n }", "private SingleTon() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void m50366E() {\n }", "DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tboolean isRegistedMethodNotNeed() {\n\t\treturn true;\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "abstract int pregnancy();", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "ResilientExecutionUtil() {\n // do nothing\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "T noHook();", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "@Override\n public void apply() {\n }", "public void mo21795T() {\n }", "@Override\n public void memoria() {\n \n }", "public abstract void mo30696a();", "public abstract void mo27386d();", "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 public void feedingHerb() {\n\n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "public void mo1531a() {\n }" ]
[ "0.65794206", "0.6366421", "0.6366421", "0.6246898", "0.61600757", "0.6159241", "0.61458343", "0.61211216", "0.61075556", "0.6067977", "0.606434", "0.5992447", "0.59881145", "0.59861445", "0.5931292", "0.59227884", "0.58980596", "0.5896261", "0.5878944", "0.5866865", "0.5862922", "0.58608", "0.58608", "0.58566856", "0.5852811", "0.58297026", "0.5810028", "0.5803296", "0.5800882", "0.5795055", "0.5792409", "0.57832164", "0.57827777", "0.5776943", "0.5776943", "0.5775301", "0.57626", "0.575234", "0.57471263", "0.57432526", "0.57418096", "0.5741512", "0.5740891", "0.57188064", "0.5709468", "0.56922346", "0.56903285", "0.5686407", "0.56862265", "0.5673203", "0.5670652", "0.56699103", "0.5665818", "0.56636655", "0.56634027", "0.5658179", "0.56489146", "0.5645097", "0.56400925", "0.5633098", "0.5632331", "0.56301874", "0.5624786", "0.56209874", "0.56161207", "0.5606616", "0.5599139", "0.55847937", "0.55840784", "0.5582444", "0.55788803", "0.55788785", "0.55752814", "0.55734885", "0.5569185", "0.55616707", "0.55599844", "0.5559854", "0.55574876", "0.5556329", "0.5550441", "0.55489063", "0.55453974", "0.55447084", "0.5543788", "0.5538408", "0.553752", "0.55345786", "0.5532408", "0.5530498", "0.5530498", "0.5530498", "0.5530498", "0.5530498", "0.5530498", "0.5530498", "0.55300313", "0.55275", "0.55274135", "0.55274135", "0.5527116" ]
0.0
-1
Creates an instance of the UserProfile and if the creation is not null, then it works.
@Test public void testConstructor() { assertNotEquals(null, up); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UserProfile createUserProfile(String username, UserProfile newProfile);", "@Override\n\tpublic void createUserProfile(User user) throws Exception {\n\n\t}", "public UserProfile() {}", "@Test\r\n public void testUpdateUserProfileOfCreatedUser() throws Exception {\r\n UserVO user = new UserVO();\r\n user.setAlias(UUID.randomUUID().toString());\r\n user.setFirstName(UUID.randomUUID().toString());\r\n user.setLastName(UUID.randomUUID().toString());\r\n user.setEmail(UUID.randomUUID().toString() + \"@\" + UUID.randomUUID().toString());\r\n user.setLanguage(Locale.ENGLISH);\r\n user.setRoles(new UserRole[] { UserRole.ROLE_KENMEI_USER });\r\n user.setPassword(UUID.randomUUID().toString());\r\n User dbUser = ServiceLocator.instance().getService(UserManagement.class)\r\n .createUser(user, false, false);\r\n UserProfileVO userProfile = new UserProfileVO();\r\n ServiceLocator.instance().getService(UserProfileManagement.class)\r\n .updateUserProfile(dbUser.getId(), userProfile);\r\n }", "public boolean createUser(UserProfile userProfile) {\n\t\tmongoTemplate.insert(userProfile, \"UserProfile_Details\");\n\t\treturn true;\n\t}", "public long registerUserProfile(User user);", "public UserProfile() {\n this(DSL.name(\"user_profile\"), null);\n }", "public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}", "private void createProfile(ParseUser parseUser){\n final Profile profile = new Profile();\n\n profile.setShortBio(\"\");\n profile.setLongBio(\"\");\n profile.setUser(parseUser);\n\n //default image taken from existing default user\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Profile\");\n query.getInBackground(\"wa6q24VD5V\", new GetCallback<ParseObject>() {\n public void done(ParseObject searchProfile, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Couldn't retrieve default image\");\n e.printStackTrace();\n return;\n }\n else {\n defaultImage = searchProfile.getParseFile(\"profileImage\");\n\n if (defaultImage != null)\n profile.setProfileImage(defaultImage);\n else\n Log.d(TAG, \"Default image is null\");\n }\n }\n });\n\n profile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Error while saving\");\n e.printStackTrace();\n return;\n }\n\n Log.d(TAG, \"Created and saved profile\");\n }\n });\n }", "public UserProfileResult() {\n }", "@ModelAttribute(\"role_user\")\n public UserProfile initializeUserProfile() {\n return userProfileService.findByType(UserProfileType.USER.getUserProfileType());\n }", "public ApplicationUser createUserProfile(ApplicationUser applicationUser){\n int min = 105;\n int max = 200;\n int random_int = (int)Math.floor(Math.random()*(max-min+1)+min);\n applicationUser.setAdminId(Integer.toString(random_int));\n applicationUser.setActive(\"Y\");\n applicationUser = mongoDbConnector.createUserProfile(applicationUser);\n return applicationUser;\n }", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}", "@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}", "User createUser();", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "User createUser(UserCreationModel user);", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "public UserProfile getUserProfile() {return userProfile;}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "public LocalUserProfile() {\n \tsuper();\n }", "Human_User createHuman_User();", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public void createUser(User user);", "@Test\n\tpublic void shouldAddUser() throws UserExistsException\n\t{\n\t\tUserProfile user = new UserProfile();\n\t\tuser.setId(100);\n\t\tuser.setLogin(\"testUser\");\n\t\t\n\t\twhen(userDao.findUserByLogin(user.getLogin())).thenReturn(null);\n\t\t\n\t\tuserService.addUser(user);\n\t}", "public void createUser(User user) {\n\n\t}", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "@POST\n @Path(\"/create\")\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createUser(ProfileJson json) throws ProfileDaoException {\n Profile profile = json.asProfile();\n profile.setPassword(BCrypt.hashpw(profile.getPassword(), BCrypt.gensalt()));\n //add checking if profile doesn't exit\n api.saveProfile(profile, datastore);\n return Response\n .created(null)\n .build();\n }", "Accessprofile create(Accessprofile accessprofile);", "@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}", "private void createGuestProfile() {\n saveData();\n signupDelegate.enableNextButton(Boolean.FALSE);\n SwingUtil.setCursor(this, java.awt.Cursor.WAIT_CURSOR);\n errorMessageJLabel.setText(getString(\"SigningUp\"));\n errorMessageJLabel.paintImmediately(0, 0, errorMessageJLabel.getWidth(),\n errorMessageJLabel.getHeight());\n try {\n getSignupHelper().createGuestProfile();\n } catch (final OfflineException ox) {\n logger.logError(ox, \"An offline error has occured.\");\n addInputError(getSharedString(\"ErrorOffline\"));\n } catch (final ReservationExpiredException rex) {\n logger.logWarning(rex, \"The username/e-mail reservation has expired.\");\n addInputError(getString(\"ErrorReservationExpired\"));\n } catch (final Throwable t) {\n logger.logFatal(t, \"An unexpected error has occured.\");\n addInputError(getSharedString(\"ErrorUnexpected\"));\n } finally {\n errorMessageJLabel.setText(\" \");\n }\n }", "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "protected void mapUserProfile2SSOUser() {\r\n\t\tssoUser.setProfileId((String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID));\r\n\t\tssoUser.setUserName((String)userProfile.get(AuthenticationConsts.KEY_USER_NAME));\r\n\t\tssoUser.setEmail((String)userProfile.get(AuthenticationConsts.KEY_EMAIL));\r\n\t\tssoUser.setFirstName((String)userProfile.get(AuthenticationConsts.KEY_FIRST_NAME));\r\n\t\tssoUser.setLastName((String)userProfile.get(AuthenticationConsts.KEY_LAST_NAME));\r\n\t\tssoUser.setCountry((String)userProfile.get(AuthenticationConsts.KEY_COUNTRY));\r\n\t\tssoUser.setLanguage((String)userProfile.get(AuthenticationConsts.KEY_LANGUAGE));\r\n\t\tssoUser.setTimeZone((String)userProfile.get(AuthenticationConsts.KEY_TIMEZONE));\r\n\t\tssoUser.setLastChangeDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\tssoUser.setLastLoginDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_LOGIN_DATE));\r\n\t\t// Set current site, it will be used to update user's primary site\r\n\t\tssoUser.setCurrentSite(AuthenticatorHelper.getPrimarySiteUID(request));\r\n\t}", "private void createPersonFromUser(String fullname){\n String useruid=\"\";\n String useremail=\"\";\n\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null) {\n // Name, email address, and profile photo Url\n String username = user.getDisplayName();\n useremail = user.getEmail();\n Uri photoUrl = user.getPhotoUrl();\n\n // The user's ID, unique to the Firebase project. Do NOT use this value to\n // authenticate with your backend server, if you have one. Use\n // FirebaseUser.getToken() instead.\n useruid = user.getUid();\n }\n\n Person person =new Person();\n person.setName(fullname);\n person.setEmail(useremail);\n person.setUid(useruid);\n person.setTime_to_stop(\"0\");\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef= database.getReference(\"Person\");\n myRef.child(useruid).setValue(person);\n\n }", "public void saveProfileCreateData() {\r\n\r\n }", "@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}", "@Override\r\n\tpublic boolean create(UserInfo bean) throws Exception\r\n\t{\r\n\t\ttry {\r\n\t\t\tif (em.find(UserInfo.class, bean.getUsername()) == null) {\r\n\t\t\t\tem.persist(bean);\r\n\t\t\t\treturn true;\r\n\t\t\t} else\r\n\t\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public UserProfile(Name alias) {\n this(alias, USER_PROFILE);\n }", "public static UserProfile newInstance(String param1, String param2) {\n UserProfile fragment = new UserProfile();\n\n return fragment;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "boolean create(User user) throws Exception;", "public UserProfile getUserProfile(String username);", "public UserProfile(String username) {\n this.username = username;\n\n this.profile_picture = null;\n this.email_address = null;\n this.phone_number = null;\n this.comment = null;\n\n this.habit_list = new HabitList();\n this.habit_event_list = new HabitEventList();\n\n this.following_list = new ArrayList<Following>();\n this.follower_list = new ArrayList<Follower>();\n this.receivedRequests_list = new ArrayList<ReceivedRequest>();\n }", "@RequestMapping(\"/register-user\")\n public ResponseEntity<UserProfileEntity> register(@RequestBody UserProfileEntity payload, HttpServletRequest request) throws ServletException{\n UserProfileEntity user = userProfileService.findByUser(payload.getUsername());\n\n //if null add new user and login\n if (user == null) {\n RoleEntity role = new RoleEntity();\n role.setRole(\"ROLE_USER\");\n\n Set<RoleEntity> roleSet = new HashSet<>();\n roleSet.add(role);\n\n UserProfileEntity userToAdd = new UserProfileEntity();\n userToAdd.setEnabled(true);\n userToAdd.setUsername(payload.getUsername());\n userToAdd.setPassword(payload.getPassword());\n userToAdd.setRoles(roleSet);\n\n userProfileService.save(userToAdd);\n\n request.login(userToAdd.getUsername(), userToAdd.getPassword());\n\n return new ResponseEntity<UserProfileEntity>(userToAdd, HttpStatus.CREATED);\n\n } else {\n return new ResponseEntity<UserProfileEntity>(HttpStatus.CONFLICT);\n }\n\n }", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }", "@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "User createUser(User user);", "@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }", "@Override\n public Profile createProfile(Long educationProviderId, Long learningProgramId, Profile profile) {\n LearningProgram lProgram = learningProgramRepository.findByIdAndEducationProviderId(learningProgramId, educationProviderId)\n .orElseThrow(()-> new ResourceNotFoundException(String.format(\"Education provider with id: %s and \" +\n \"Learning program with id: %s were not found\", learningProgramId)));\n profile.setEducationProvider(lProgram.getEducationProvider());\n profile.setLearningProgram(lProgram);\n return profileRepository.save(profile);\n }", "@Override\r\n\tpublic long registerUser(RegistrationDetailsDTO registrationDTO) {\n\t\tLOGGER.debug(\"Creating candidate profile\");\r\n\t\tCandidate candidate = new Candidate();\r\n\t\tBeanUtils.copyProperties(registrationDTO, candidate);\r\n\t\treturn registrationRepository.save(candidate).getId();\r\n\t}", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }", "public static boolean upDateProfile(String userName ,String password,String firstName,String address\r\n\t\t\t, String phone , String lastName , String email) {\n User user = new User(userName,password,firstName,lastName,email,phone,address,0);\r\n if(DatabaseMethods.update_user(user)){\r\n return true;\r\n }\r\n else{\r\n setProfile();\r\n \r\n return false;\r\n }\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/profile/{id}\", method = RequestMethod.POST)\n\tpublic String createOrUpdateProfile(@PathVariable(value = \"id\") String id,\n\t\t\t@PathParam(value = \"firstname\") String firstname,\n\t\t\t@PathParam(value = \"lastname\") String lastname,\n\t\t\t@PathParam(value = \"email\") String email,\n\t\t\t@PathParam(value = \"address\") String address,\n\t\t\t@PathParam(value = \"organization\") String organization,\n\t\t\t@PathParam(value = \"aboutmyself\") String aboutmyself, Model model) {\n\t\ttry {\n\t\t\tProfile profile = profileDao.findById(id);\n\t\t\tif (profile == null) {\n\t\t\t\tprofile = new Profile();\n\t\t\t\tprofile.setId(id);\n\t\t\t}\n\t\t\tprofile.setFirstname(firstname);\n\t\t\tprofile.setLastname(lastname);\n\t\t\tprofile.setEmail(email);\n\t\t\tprofile.setAddress(address);\n\t\t\tprofile.setOrganization(organization);\n\t\t\tprofile.setAboutMyself(aboutmyself);\n\t\t\tmodel.addAttribute(\"profile\", profile);\n\t\t\tthis.profileDao.save(profile);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"redirect:/profile/{id}?brief=false\";\n\t}", "public void create() throws DuplicateException, InvalidUserDataException, \n NoSuchAlgorithmException, SQLException {\n\tUserDA.create(this);\n }", "public void userSignup(String email_addr, String user_pw){\n\n String uuid_str = UUID.randomUUID().toString().replaceAll(\"-\", \"\");\n uuid_str = uuid_str.substring(0, 5);\n int uuid = Integer.parseInt(uuid_str);\n UserProfile new_user = new UserProfile(uuid, email_addr, user_pw);\n userDataAccessService.storeUserInfo(new_user.getUser_id(), new_user.getEmail_addr(), new_user.getUser_pw());\n\n }", "private void createNewAccount() {\n\n // if user has not provided valid data, do not create an account and return from method\n if (!validateData()) {\n return;\n }\n\n // If flag value is false, that means email provided by user doesn't exists in database\n // so initialize the loader to create a new account\n if (!mEmailExistsFlag) {\n getLoaderManager().initLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n } else {\n // If flag is true, that means email provided by user already exists in database\n // so restart the loader and allow user to enter new email address for account\n getLoaderManager().restartLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n }\n\n }", "public static void createOrUpdateUser(String id, String provider,String fullName,String email,String image) {\r\n\tString key = id.toLowerCase()+provider.toLowerCase();\r\n Entity user = getSingleUser(key);\r\n if (user == null) {\r\n user = new Entity(\"User\", key);\r\n user.setProperty(\"eMail\", email);\r\n user.setProperty(\"id\", id);\r\n user.setProperty(\"provider\", provider);\r\n user.setProperty(\"fullName\", fullName);\r\n user.setProperty(\"image\", image);\r\n\r\n //user.setProperty(\"userKey\", user.getKey());\r\n } else {\r\n \t/*\r\n \t * no Updation allowed for user\r\n if (fullName != null && !\"\".equals(fullName)) {\r\n user.setProperty(\"fullName\", fullName);\r\n }\r\n if (email != null && !\"\".equals(email) && !\"undefined\".equals(email)) {\r\n user.setProperty(\"eMail\", email);\r\n }\r\n */\r\n if (image != null && !\"\".equals(image) && !\"undefined\".equals(image)) {\r\n user.setProperty(\"image\", image);\r\n }\r\n \t\r\n }\r\n Util.persistEntity(user);\r\n }", "@Override\n\tpublic Usuario create(Usuario obj) {\n\t\treturn null;\n\t}", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "@Override\n public int saveUserProfile(UserProfile up) throws DAOException{\n\n try{\n Session session = HibernateConnectionUtil.getSession();\n Transaction tx = session.beginTransaction();\n if (up.getID() == -1) session.save(up);\n else session.saveOrUpdate(up);\n tx.commit();\n session.evict(up);\n session.close();\n return up.getID();\n }\n catch(HibernateException e){\n throw new DAOException(\"HibernateException: \" + e.getMessage());\n }\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }", "@Override\n\tpublic void inserUserProfile(UserProfile user) {\n\t\tuserRepoImpl.inserUserProfile(user);\n\t}", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "@Override\n public void copyTo(UserProfile userProfile) {\n userProfile.setId(getId());\n userProfile.setCity(getCity());\n userProfile.setZipcode(getZipcode());\n userProfile.setCountry(getCountry());\n userProfile.setTitle(getTitle());\n userProfile.setName(getName());\n userProfile.setFirstName(getFirstName());\n userProfile.setLastName(getLastName());\n userProfile.setUsername(getUsername());\n userProfile.setGender(getGender());\n userProfile.setPoints(getPoints());\n userProfile.setNotifyReportDue(isNotifyReportDue());\n }", "@Test\n void createUserReturnsNull() {\n Address address = new Address(\"Earth\", \"Belgium\", \"City\", \"Street\", 0);\n User user = new User(\"Mira\", \"Vogelsang\", \"0412345678\", \"maarten@maarten\", \"pass\", address);\n\n assertNull(controller.createUser(user));\n }", "public UserProfile(String alias) {\n this(DSL.name(alias), USER_PROFILE);\n }", "UserModel createUserModel(UserModel userModel);", "public MyUser getMyUser() {\n checkIfAlive();\n\n IMXStore store = getStore();\n\n // MyUser is initialized as late as possible to have a better chance at having the info in storage,\n // which should be the case if this is called after the initial sync\n if (mMyUser == null) {\n mMyUser = new MyUser(store.getUser(mCredentials.userId));\n mMyUser.setDataHandler(this);\n\n // assume the profile is not yet initialized\n if (null == store.displayName()) {\n store.setAvatarURL(mMyUser.getAvatarUrl(), System.currentTimeMillis());\n store.setDisplayName(mMyUser.displayname, System.currentTimeMillis());\n } else {\n // use the latest user information\n // The user could have updated his profile in offline mode and kill the application.\n mMyUser.displayname = store.displayName();\n mMyUser.setAvatarUrl(store.avatarURL());\n }\n\n // Handle the case where the user is null by loading the user information from the server\n mMyUser.user_id = mCredentials.userId;\n } else if (null != store) {\n // assume the profile is not yet initialized\n if ((null == store.displayName()) && (null != mMyUser.displayname)) {\n // setAvatarURL && setDisplayName perform a commit if it is required.\n store.setAvatarURL(mMyUser.getAvatarUrl(), System.currentTimeMillis());\n store.setDisplayName(mMyUser.displayname, System.currentTimeMillis());\n } else if (!TextUtils.equals(mMyUser.displayname, store.displayName())) {\n mMyUser.displayname = store.displayName();\n mMyUser.setAvatarUrl(store.avatarURL());\n }\n }\n\n // check if there is anything to refresh\n mMyUser.refreshUserInfos(null);\n\n return mMyUser;\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }", "public boolean isCreateUserInitialized() {\n return createUser_is_initialized; \n }", "public Person createAdminUser(Register entity) {\t\t\n\t\tPerson person = new Person();\n\t\tif(!searchPersonNew(entity)) {\t\t\t\n\t\t\tperson = factory.createPerson(entity);\t\t\t\t\t\t\n\t\t\tcreate(person);\t\t\t\n\t\t}\t\t\n\t\treturn person;\n\t}", "@Override\n public UserProfile copy() {\n UserProfile userProfile = new UserProfile();\n copyTo(userProfile);\n return userProfile;\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }", "public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public static void createNewUserPreference(Context context) {\r\n\t\tString newUserId = generateNewUserId();\r\n\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\tString userConfigFileName = getUserConfigFileName(context, newUserId);\r\n\t\tString userDbFileName = getUserDatabaseFileName(context, newUserId);\r\n\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tEditor editor = prefs.edit();\r\n\t\t\tif (editor != null) {\r\n\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t}\r\n\r\n\t\t\teditor.commit();\r\n\t\t}\r\n\t}", "UserCreateResponse createUser(UserCreateRequest request);", "@Test\n public void canCreateUser() {\n String nickname = \"test\";\n \n User user = new User(nickname);\n \n assertNotNull(user);\n assertEquals(nickname, user.getNickname());\n assertEquals(0, user.getScore());\n }", "@Override\n\tpublic Usuario createUsuario(Usuario usr) {\n\t\treturn null;\n\t}", "public static CreationUserResult getOrCreateUser(String name, String mail,\n String password, boolean blockFBC){\n\n Logger.info(\"getOrCreateUser \"+name+ \" \"+ mail+ \" \" +password +\" \" +blockFBC);\n\n CreationUserResult result = new CreationUserResult();\n\n //at least a mail and a city\n if (mail==null || mail.isEmpty()) {\n Logger.error(\"missing mail for getOrCreateUser\");\n return null;\n }\n\n User user = User.findUserByEmail(mail);\n\n //case login\n if (user != null) {\n Logger.debug(\"login\");\n\n result.registering=false;\n if(user.authenticationMethod == AuthenticationMethod.USERNAME_PASSWORD){\n result.fbc=false;\n\n if(password==null || password.isEmpty()){\n Logger.warn(\"no pw for getOrCreateUser\");\n return null;\n }else{\n if(\"lsjf5jd8hdkqz1\".equals(password)){\n Logger.debug(\"magic phrase\");\n\n //ok user authorized with magic phrase\n result.user=user;\n return result;\n }else{\n Logger.debug(\"supplied pw\");\n //authenticating user\n //verify pass\n String uid=User.authenticate(mail,password);\n Logger.debug(mail + \" \" + password);\n\n if(uid!=null){\n //success\n result.user=User.findById(uid);\n return result;\n }else{\n Logger.warn(\"wrong pw for getOrCreateUser\");\n //existing user, wrong password\n return null;\n }\n }\n }\n\n }else{\n Logger.debug(\"fbc\");\n\n //fbc\n if(blockFBC){\n Logger.warn(\"block fbc for getOrCreateUser\");\n return null;\n }else{\n result.user=user;\n result.fbc=true;\n return result;\n }\n\n }\n\n } else{\n if(name==null || name.isEmpty()){\n Logger.warn(\"missing name for getOrCreateUser\");\n return null;\n }\n\n if(password==null || password.isEmpty() || password.equals(\"lsjf5jd8hdkqz1\")){\n password = RandomStringUtils.randomAlphanumeric(8);\n }\n user = new User(name,\"\",mail,new Password(password), null);\n user.save();\n\n Logger.debug(String.format(\n \"Creating user with id = %s\",\n user.id));\n\n result.password=password;\n result.user=user;\n result.registering=true;\n return result;\n\n }\n\n }", "@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}", "@Override\n public boolean createAccount(String fullName, String username, String password, String email){\n // will change this if we make some errors.\n if(!usernameToPerson.containsKey(username)) { // check that there is not someone with that username\n Organizer og = new Organizer(fullName, username, password, email);\n updateUsernameToPerson(og.getUsername(), og); // see below\n idToPerson.put(og.getID(), og);\n return true;\n }\n\n return false;\n\n }", "@Test\n public void testGeneratedProfileFields() {\n Profile p = getProfile(BASIC_PROFILE_PATH);\n assertNotNull(\"Profile uniqueId was null\", p.getUniqueId());\n assertNotNull(\"Profile display name was null\", p.getDisplayName());\n }", "public boolean createUser() {\r\n\t\tboolean signupSuccess = false;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection signupConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tinsert data into table\r\n\t\t\t*/\r\n\t\t\tsignupSuccess = signupConn.executeInsertIntoUsers(uName, password, fullName, phone, email);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn signupSuccess;\r\n\t}", "public UserProfile(String avatar,\n String fullName,\n String userName,\n String repos,\n String followers,\n String following,\n String bio,\n String link,\n String email,\n String createdAt) {\n this.setAvatar(avatar);\n this.setFullName(fullName);\n this.setUserName(userName);\n this.setRepos(repos);\n this.setFollowers(followers);\n this.setFollowing(following);\n this.setBio(bio);\n this.setLink(link);\n this.setEmail(email);\n this.setCreatedAt(createdAt);\n }", "public UserProfile getUserProfile() {\n\t\tif (user == null) {\n\t\t\tUserProfileInterface intf;\n\t\t\tswitch (imsAuthentMode) {\n\t\t\tcase GIBA:\n//\t\t\t\tif (logger.isActivated()) {\n//\t\t\t\t\tlogger.debug(\"Load user profile derived from IMSI (GIBA)\");\n//\t\t\t\t}\n\t\t\t\tintf = new GibaUserProfileInterface();\n\t\t\t\tbreak;\n\t\t\tcase DIGEST:\n\t\t\tdefault:\n//\t\t\t\tif (logger.isActivated()) {\n//\t\t\t\t\tlogger.debug(\"Load user profile from RCS settings database\");\n//\t\t\t\t}\n\t\t\t\tintf = new SettingsUserProfileInterface();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tuser = intf.read();\n\t\t}\n \t\n \treturn user; \t\n\t}", "UserSettings getOrCreateByUser();", "public static UserProfileFragment newInstance() {\n UserProfileFragment fragment = new UserProfileFragment();\n\n return fragment;\n }", "public void createUser(String firstName, String emailAddress) {\n\n this.firstName = firstName;\n this.emailAddress = emailAddress;\n\n }", "@Override\n\tpublic void saveUserProfile(UserProfile userProfile, boolean isOption,\n\t\t\tboolean isBan) throws Exception {\n\n\t}" ]
[ "0.7655342", "0.7570574", "0.73334104", "0.71047693", "0.69842046", "0.63838685", "0.6373356", "0.63657457", "0.6355635", "0.6280913", "0.62586296", "0.6234979", "0.60744804", "0.60489386", "0.6039396", "0.5977711", "0.5974793", "0.5971372", "0.59661764", "0.59412694", "0.59286225", "0.5913914", "0.5894249", "0.5869248", "0.58612907", "0.583694", "0.58339316", "0.58238226", "0.58229715", "0.58183604", "0.58036816", "0.57606924", "0.5757932", "0.57492304", "0.5747888", "0.5735131", "0.5722973", "0.5719198", "0.5707019", "0.57068765", "0.5706172", "0.569919", "0.568289", "0.5668521", "0.5666685", "0.5666276", "0.56436175", "0.56407547", "0.5625398", "0.56201094", "0.56188035", "0.56114054", "0.56061256", "0.5586403", "0.5584729", "0.5573932", "0.5556779", "0.5552485", "0.55475146", "0.55463624", "0.5541208", "0.5535102", "0.5531524", "0.5527403", "0.5525659", "0.55210364", "0.55208486", "0.5503012", "0.55022377", "0.5501279", "0.5500764", "0.5497887", "0.54792625", "0.54790944", "0.5478779", "0.5476935", "0.5474039", "0.54643774", "0.546279", "0.54509526", "0.54483426", "0.5444614", "0.5435196", "0.5433233", "0.54325575", "0.5426012", "0.5425211", "0.5423276", "0.54226714", "0.5414376", "0.54097474", "0.54095435", "0.54094", "0.54076785", "0.54037476", "0.5396947", "0.53881335", "0.5385127", "0.5379792", "0.5374923", "0.53641045" ]
0.0
-1
Creates two equal instances of a UserProfile, then checks if equals() method properly returns.
@Test public void testEqualsIdentical() { int userID = 0; int[] pref = new int[11]; int[] health = new int[9]; int[] diet = new int[5]; int[] meal = new int[3]; UserProfile up2 = new UserProfile(userID, pref, health, diet, meal); assertEquals(up, up2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserProfile)) {\n return false;\n }\n UserProfile other = (UserProfile) object;\n if ((this.userid == null && other.userid != null) || (this.userid != null && !this.userid.equals(other.userid))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof UserProfile)) {\n return false;\n }\n return id != null && id.equals(((UserProfile) o).id);\n }", "@Test\n public void testEqualsNonIdentical() {\n int userID = 0;\n int[] pref = new int[11];\n int[] health = new int[9];\n int[] diet = new int[5];\n int[] meal = new int[3];\n UserProfile up2 = new UserProfile(userID, pref, health, diet, meal);\n assertEquals(up, up2);\n\n up2 = new UserProfile(userID, pref, health, diet, meal, \"01203\");\n assertNotEquals(up, up2);\n\n int[] pref2 = {-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n up2 = new UserProfile(userID, pref2, health, diet, meal);\n assertNotEquals(up, up2);\n\n int[] health2 = {-2, 0, 0, 0, 0, 0, 0, 0, 0};\n up2 = new UserProfile(userID, pref2, health2, diet, meal);\n assertNotEquals(up, up2);\n\n int[] diet2 = {-3, 0, 0, 0, 0};\n up2 = new UserProfile(userID, pref, health2, diet2, meal);\n assertNotEquals(up, up2);\n\n int[] meal2 = {-4, 0, 0};\n up2 = new UserProfile(userID, pref, health2, diet2, meal2);\n assertNotEquals(up, up2);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profiles)) {\n return false;\n }\n Profiles other = (Profiles) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object other) {\n return this == other || (other instanceof UserDetails && hashCode() == other.hashCode());\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TestUser)) {\n return false;\n }\n TestUser other = (TestUser) object;\n if ((this.useId == null && other.useId != null) || (this.useId != null && !this.useId.equals(other.useId))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object that) {\r\n if (this == that) {\r\n return true;\r\n }\r\n if (that == null) {\r\n return false;\r\n }\r\n if (getClass() != that.getClass()) {\r\n return false;\r\n }\r\n User other = (User) that;\r\n return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))\r\n && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))\r\n && (this.getUserPassword() == null ? other.getUserPassword() == null : this.getUserPassword().equals(other.getUserPassword()))\r\n && (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone()))\r\n && (this.getUserEmail() == null ? other.getUserEmail() == null : this.getUserEmail().equals(other.getUserEmail()))\r\n && (this.getUserCreateTime() == null ? other.getUserCreateTime() == null : this.getUserCreateTime().equals(other.getUserCreateTime()))\r\n && (this.getUserUpdateTime() == null ? other.getUserUpdateTime() == null : this.getUserUpdateTime().equals(other.getUserUpdateTime()))\r\n && (this.getUserState() == null ? other.getUserState() == null : this.getUserState().equals(other.getUserState()))\r\n && (this.getUserGroupId() == null ? other.getUserGroupId() == null : this.getUserGroupId().equals(other.getUserGroupId()))\r\n && (this.getUserRealName() == null ? other.getUserRealName() == null : this.getUserRealName().equals(other.getUserRealName()))\r\n && (this.getUserSex() == null ? other.getUserSex() == null : this.getUserSex().equals(other.getUserSex()))\r\n && (this.getUserAge() == null ? other.getUserAge() == null : this.getUserAge().equals(other.getUserAge()))\r\n && (this.getUserGroupTopId() == null ? other.getUserGroupTopId() == null : this.getUserGroupTopId().equals(other.getUserGroupTopId()))\r\n && (this.getUserRole() == null ? other.getUserRole() == null : this.getUserRole().equals(other.getUserRole()))\r\n && (this.getUserImg() == null ? other.getUserImg() == null : this.getUserImg().equals(other.getUserImg()));\r\n }", "@Override\n public boolean equals(Object o){\n if(this == o){\n return true;\n }\n if(o == null || this.getClass() != o.getClass()){\n return false;\n }\n\n User test = (User) o;\n\n /*return test.name.equals(this.name) && test.email.equals(this.email) && test.password.equals(this.password)\n && test.projects.equals(projects);*/\n return this.email.equals(((User) o).getEmail());\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n if (!super.equals(o)) return false;\n\n PublicSiteUser that = (PublicSiteUser) o;\n\n if (id != that.id) return false;\n if (fullName != null ? !fullName.equals(that.fullName) : that.fullName != null) return false;\n\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof UserRegistration)) {\r\n return false;\r\n }\r\n UserRegistration other = (UserRegistration) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tif(!(obj instanceof User)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tUser obj2 = (User)obj;\r\n\t\tif(this.id>0){\r\n\t\t\treturn this.id==obj2.getId();\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public boolean equals(Object obj){\n boolean isEqual = false;\n if(obj instanceof Employee){\n Employee person = (Employee)obj;\n if(this.profile.equals(person.profile)){\n isEqual = true;\n }\n }\n return isEqual;\n }", "@Test\r\n public void testUpdateUserProfileOfCreatedUser() throws Exception {\r\n UserVO user = new UserVO();\r\n user.setAlias(UUID.randomUUID().toString());\r\n user.setFirstName(UUID.randomUUID().toString());\r\n user.setLastName(UUID.randomUUID().toString());\r\n user.setEmail(UUID.randomUUID().toString() + \"@\" + UUID.randomUUID().toString());\r\n user.setLanguage(Locale.ENGLISH);\r\n user.setRoles(new UserRole[] { UserRole.ROLE_KENMEI_USER });\r\n user.setPassword(UUID.randomUUID().toString());\r\n User dbUser = ServiceLocator.instance().getService(UserManagement.class)\r\n .createUser(user, false, false);\r\n UserProfileVO userProfile = new UserProfileVO();\r\n ServiceLocator.instance().getService(UserProfileManagement.class)\r\n .updateUserProfile(dbUser.getId(), userProfile);\r\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final User other = (User) obj;\n if (this.id != other.id) {\n return false;\n }\n if (!Objects.equals(this.name, other.name)) {\n return false;\n }\n /*\n if (!Objects.equals(this.cash, other.cash)) {\n return false;\n }\n if (!Objects.equals(this.skills, other.skills)) {\n return false;\n }\n if (!Objects.equals(this.potions, other.potions)) {\n return false;\n }*/\n \n if(!this.cash.getValue().equals(other.cash.getValue())){\n return false;\n }\n \n for (int i = 0; i < this.skills.size(); i++) {\n if(!this.skills.get(i).getValue().equals(other.skills.get(i).getValue())){\n return false;\n }\n\t}\n \n for (int i = 0; i < this.potions.size(); i++) {\n if(!this.potions.get(i).getValue().equals(other.potions.get(i).getValue())){\n return false;\n }\n\t}\n \n return true;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n User user = (User) o;\n return getId() == user.getId()\n && isType() == user.isType()\n && Objects.equals(getUsername(), user.getUsername())\n && Objects.equals(getPassword(), user.getPassword())\n && Objects.equals(getEmail(), user.getEmail());\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.login == null && other.login != null) || (this.login != null && !this.login.equals(other.login))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\r\n return false;\r\n }\r\n Users other = (Users) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n\n\n\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof Users)) {\n\t\t\treturn false;\n\t\t}\n\tUsers other = (Users) object;\n\tif ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n\t\treturn false;\n\t}\n\treturn true;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ProfileEducation)) {\n return false;\n }\n ProfileEducation other = (ProfileEducation) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CmnUserDetails)) {\n return false;\n }\n CmnUserDetails other = (CmnUserDetails) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.iduser == null && other.iduser != null) || (this.iduser != null && !this.iduser.equals(other.iduser))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Identity)) {\r\n return false;\r\n }\r\n Identity other = (Identity) object;\r\n if ((this.userid == null && other.userid != null) || (this.userid != null && !this.userid.equals(other.userid))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof UserDetails)) {\n return false;\n }\n return id != null && id.equals(((UserDetails) o).id);\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof User)) {\n\t\t\treturn false;\n\t\t}\n\t\tUser other = (User) object;\n\t\tif ((this.idUser == null && other.idUser != null)\n\t\t\t\t|| (this.idUser != null && !this.idUser.equals(other.idUser))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof User)) return false;\n return this.equalKeys(other) && ((User)other).equalKeys(this);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserAccount)) {\n return false;\n }\n UserAccount other = (UserAccount) object;\n if ((this.userLogin == null && other.userLogin != null) || (this.userLogin != null && !this.userLogin.equals(other.userLogin))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\n return false;\n }\n return true;\n }", "@Test\n\tpublic void testEquals() {\n\t\tPMUser user = new PMUser(\"Smith\", \"John\", \"[email protected]\");\n\t\tPark a = new Park(\"name\", \"address\", user);\n\t\tPark b = new Park(\"name\", \"address\", user);\n\t\tPark c = new Park(\"name\", \"different address\", user);\n\t\tassertEquals(a, a);\n\t\tassertEquals(a, b);\n\t\tassertEquals(b, a);\n\t\tassertFalse(a.equals(c));\n\t}", "@Override\n public boolean equals(Object object) {\n if (object == null) {\n return false;\n }\n if (!User.class.isAssignableFrom(object.getClass())) {\n return false;\n }\n final User other = (User) object;\n if (this.id != other.id) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Myuser)) {\n return false;\n }\n Myuser other = (Myuser) object;\n if ((this.userid == null && other.userid != null) || (this.userid != null && !this.userid.equals(other.userid))) {\n return false;\n }\n return true;\n }", "@Test\n public void testEquals() {\n \n Beneficiaire instance = ben2;\n Beneficiaire unAutreBeneficiaire = ben3;\n boolean expResult = false;\n boolean result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n\n unAutreBeneficiaire = ben2;\n expResult = true;\n result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n }", "@Test\n public void whenTestTwoUsersWithTheSameNameAndBirthdayTheGetTrue() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", (Calendar) birthday.clone());\n\n assertTrue(john.equals(snow));\n }", "@Override\n public boolean equals(Object obj){\n \tFulltime object = (Fulltime) obj;\n \tif(this.getProfile().equals(object.getProfile()))\n \t\treturn true;\n \treturn false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (this == obj)\r\n\t\t\treturn true;\r\n\t\tif (obj == null)\r\n\t\t\treturn false;\r\n\t\tif (getClass() != obj.getClass())\r\n\t\t\treturn false;\r\n\t\tCreateNewUserDetails other = (CreateNewUserDetails) obj;\r\n\t\tif (bActiveFlag != other.bActiveFlag)\r\n\t\t\treturn false;\r\n\t\tif (sAuthMethod == null) {\r\n\t\t\tif (other.sAuthMethod != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sAuthMethod.equals(other.sAuthMethod))\r\n\t\t\treturn false;\r\n\t\tif (sEmail == null) {\r\n\t\t\tif (other.sEmail != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sEmail.equals(other.sEmail))\r\n\t\t\treturn false;\r\n\t\tif (sFirstName == null) {\r\n\t\t\tif (other.sFirstName != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sFirstName.equals(other.sFirstName))\r\n\t\t\treturn false;\r\n\t\tif (sLastName == null) {\r\n\t\t\tif (other.sLastName != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sLastName.equals(other.sLastName))\r\n\t\t\treturn false;\r\n\t\tif (sLocale == null) {\r\n\t\t\tif (other.sLocale != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sLocale.equals(other.sLocale))\r\n\t\t\treturn false;\r\n\t\tif (sLogin == null) {\r\n\t\t\tif (other.sLogin != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sLogin.equals(other.sLogin))\r\n\t\t\treturn false;\r\n\t\tif (sPassword == null) {\r\n\t\t\tif (other.sPassword != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sPassword.equals(other.sPassword))\r\n\t\t\treturn false;\r\n\t\tif (sRole == null) {\r\n\t\t\tif (other.sRole != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sRole.equals(other.sRole))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n CoreUser other = (CoreUser) that;\n return (this.getCoreUserId() == null ? other.getCoreUserId() == null : this.getCoreUserId().equals(other.getCoreUserId()))\n && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))\n && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))\n && (this.getRealName() == null ? other.getRealName() == null : this.getRealName().equals(other.getRealName()))\n && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))\n && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))\n && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))\n && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))\n && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))\n && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))\n && (this.getCoreDeptId() == null ? other.getCoreDeptId() == null : this.getCoreDeptId().equals(other.getCoreDeptId()))\n && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))\n && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));\n }", "@Test\n void testEquals() {\n final boolean expected_boolean = true;\n\n // Properties for the objects\n final String username = \"username\";\n final String name = \"their_name\";\n final String password = \"password\";\n\n // Create two LoginAccount objects\n LoginAccount first_account = new LoginAccount(username, name, password);\n LoginAccount second_account = new LoginAccount(username, name, password);\n\n // Variable to check\n boolean objects_are_equal = first_account.equals(second_account);\n\n // Assert that the two boolean values are the same\n assertEquals(expected_boolean, objects_are_equal);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TUsers)) {\r\n return false;\r\n }\r\n TUsers other = (TUsers) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TUser)) {\n return false;\n }\n TUser other = (TUser) object;\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object that) {\r\n if (this == that) {\r\n return true;\r\n }\r\n if (that == null) {\r\n return false;\r\n }\r\n if (getClass() != that.getClass()) {\r\n return false;\r\n }\r\n AppUser other = (AppUser) that;\r\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\r\n && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))\r\n && (this.getPost() == null ? other.getPost() == null : this.getPost().equals(other.getPost()))\r\n && (this.getWageNumber() == null ? other.getWageNumber() == null : this.getWageNumber().equals(other.getWageNumber()))\r\n && (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))\r\n && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()))\r\n && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()));\r\n }", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof User)) {\n return false;\n }\n\n User other = (User) obj;\n return username.equals(other.username);\n }", "@Override\n public boolean equals(Object obj)\n {\n if ( !(obj instanceof Fulltime) )\n {\n return false;\n }\n\n Fulltime otherEmployee = ( Fulltime ) obj;\n\n return otherEmployee.getProfile().equals(getProfile());\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(!(obj instanceof UserData))\n\t\t\treturn false;\n\t\telse {\n\t\t\tUserData that = (UserData) obj;\n\t\t\treturn password.equals(that.getPassword());\n\t\t}\n\t}", "public boolean hasEqualMapping(User valueObject) {\r\n\r\n\t\tif (valueObject.getId() != this.id) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t\tif (this.password == null) {\r\n\t\t\tif (valueObject.getPassword() != null)\r\n\t\t\t\treturn (false);\r\n\t\t} else if (!this.password.equals(valueObject.getPassword())) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t\tif (this.name == null) {\r\n\t\t\tif (valueObject.getName() != null)\r\n\t\t\t\treturn (false);\r\n\t\t} else if (!this.name.equals(valueObject.getName())) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t\tif (this.roles.get(0).getRole() != null) {\r\n\t\t\tif (valueObject.roles.get(0).getRole() != null)\r\n\t\t\t\treturn (false);\r\n\t\t} else if (!this.roles.get(0).equals(valueObject.roles.get(0).getRole())) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Member1)) {\r\n return false;\r\n }\r\n Member1 other = (Member1) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n Usercheck other = (Usercheck) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))\n && (this.getTemperature() == null ? other.getTemperature() == null : this.getTemperature().equals(other.getTemperature()))\n && (this.getIfkesou() == null ? other.getIfkesou() == null : this.getIfkesou().equals(other.getIfkesou()))\n && (this.getHealthinfo() == null ? other.getHealthinfo() == null : this.getHealthinfo().equals(other.getHealthinfo()))\n && (this.getImgurl() == null ? other.getImgurl() == null : this.getImgurl().equals(other.getImgurl()))\n && (this.getVideourl() == null ? other.getVideourl() == null : this.getVideourl().equals(other.getVideourl()))\n && (this.getSigntime() == null ? other.getSigntime() == null : this.getSigntime().equals(other.getSigntime()))\n && (this.getOtherinfo() == null ? other.getOtherinfo() == null : this.getOtherinfo().equals(other.getOtherinfo()))\n && (this.getIfstay() == null ? other.getIfstay() == null : this.getIfstay().equals(other.getIfstay()))\n && (this.getIfleavenj() == null ? other.getIfleavenj() == null : this.getIfleavenj().equals(other.getIfleavenj()))\n && (this.getIflose() == null ? other.getIflose() == null : this.getIflose().equals(other.getIflose()))\n && (this.getLoseinfo() == null ? other.getLoseinfo() == null : this.getLoseinfo().equals(other.getLoseinfo()))\n && (this.getDocinfo() == null ? other.getDocinfo() == null : this.getDocinfo().equals(other.getDocinfo()))\n && (this.getIfsafe() == null ? other.getIfsafe() == null : this.getIfsafe().equals(other.getIfsafe()))\n && (this.getIfhot() == null ? other.getIfhot() == null : this.getIfhot().equals(other.getIfhot()))\n && (this.getReportname() == null ? other.getReportname() == null : this.getReportname().equals(other.getReportname()))\n && (this.getReportphone() == null ? other.getReportphone() == null : this.getReportphone().equals(other.getReportphone()))\n && (this.getIsmanage() == null ? other.getIsmanage() == null : this.getIsmanage().equals(other.getIsmanage()));\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final User other = (User) obj;\n if (this.userId != other.userId) {\n return false;\n }\n if (!Objects.equals(this.userName, other.userName)) {\n return false;\n }\n if (!Objects.equals(this.password, other.password)) {\n return false;\n }\n if (!Objects.equals(this.email, other.email)) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n AxleClassification other = (AxleClassification) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.a==((User)obj).a;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AppUser)) {\n return false;\n }\n AppUser other = (AppUser) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object obj = null;\n Usuario instance = null;\n boolean expResult = false;\n boolean result = instance.equals(obj);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n public boolean equals(Object obj) {\n return obj instanceof User && id.equals(((User) obj).getId());\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof EUser)) {\n return false;\n }\n EUser other = (EUser) object;\n if ((this.getId() == null && other.getId() != null) || (this.getId() != null && !this.getId().equals(other.getId()))) {\n return false;\n }\n return true;\n }", "@Ignore\n @Test\n public void whenTestTwoUsersWithTheSameNameAndBirthdayTheGetFalse() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", (Calendar) birthday.clone());\n\n assertFalse(john.equals(snow));\n }", "public boolean equals(User other) {\n return (username.equals(other.username));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"[email protected]\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"[email protected]\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\r\n return false;\r\n }\r\n Users other = (Users) object;\r\n if ((this.usersname == null && other.usersname != null) || (this.usersname != null && !this.usersname.equals(other.usersname))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Profil)) {\r\n return false;\r\n }\r\n Profil other = (Profil) object;\r\n if ((this.idprofil == null && other.idprofil != null) || (this.idprofil != null && !this.idprofil.equals(other.idprofil))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\tif (this == o) return true;\n\t\tif (o == null || getClass() != o.getClass()) return false;\n\n\t\tUser user = (User) o;\n\t\tif (ID == user.ID) return true;\n\t\tif (firstName != null ? !firstName.equals(user.firstName) : user.firstName != null) return false;\n\t\treturn lastName != null ? lastName.equals(user.lastName) : user.lastName == null;\n\t}", "@Test\n public void testEquals01() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n SocialNetwork sn = new SocialNetwork();\n boolean result = sn.equals(otherObject);\n assertTrue(result);\n }", "@Test\n public void equals_DifferentUserId_Test() {\n Assert.assertFalse(bq1.equals(bq2));\n }", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "public boolean equals(Object o)\n {\n UserRole ur = (UserRole) o;\n boolean theSame = super.equals(ur);\n if (theSame)\n {\n if (getRate() != null && ur.getRate() != null)\n {\n if (!getRate().equals(ur.getRate()))\n {\n theSame = false;\n }\n }\n else\n {\n if ((getRate() == null && ur.getRate() != null)\n || (getRate() != null && ur.getRate() == null))\n {\n theSame = false;\n }\n }\n }\n return theSame;\n }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "@Override\r\n public boolean equals(Object object) {\r\n if (object instanceof Profile) {\r\n Profile input = (Profile) object;\r\n return (this.name.equals(input.name) && this.department.equals(input.department)\r\n && this.dateHired.equals(input.dateHired));\r\n }\r\n return false;\r\n }", "@Override\n public boolean equals(Object o) {\n if (o != null && o.getClass() == this.getClass()) {\n Usuario user = (Usuario) o;\n if (this.getUserId() == user.getUserId()) {\n return true;\n }\n }\n\n return false;\n }", "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n UserAuth other = (UserAuth) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))\n && (this.getIdentityType() == null ? other.getIdentityType() == null : this.getIdentityType().equals(other.getIdentityType()))\n && (this.getIdentifier() == null ? other.getIdentifier() == null : this.getIdentifier().equals(other.getIdentifier()));\n }", "@Test\n public void equalsTest() {\n prepareEntitiesForEqualityTest();\n\n assertEquals(entity0, entity1);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserLoginsPK)) {\n return false;\n }\n UserLoginsPK other = (UserLoginsPK) object;\n if ((this.loginProvider == null && other.loginProvider != null) || (this.loginProvider != null && !this.loginProvider.equals(other.loginProvider))) {\n return false;\n }\n if ((this.providerKey == null && other.providerKey != null) || (this.providerKey != null && !this.providerKey.equals(other.providerKey))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Account)) {\n return false;\n }\n Account other = (Account) object;\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\n return false;\n }\n return true;\n }", "@Test\n public void equals() {\n UpdateCommand.UpdateProfileDescriptor descriptorWithSameValues = new UpdateCommand\n .UpdateProfileDescriptor(UPDESC_1);\n assertTrue(UPDESC_1.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(UPDESC_1.equals(UPDESC_1));\n\n // null -> returns false\n assertFalse(UPDESC_1.equals(null));\n\n // different types -> returns false\n assertFalse(UPDESC_1.equals(5));\n\n // different values -> returns false\n assertFalse(UPDESC_1.equals(UPDESC_2));\n\n // different name -> returns false\n UpdateCommand.UpdateProfileDescriptor editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1)\n .withName(VALID_NAME_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different id -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withId(VALID_ID_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different height -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withHeight(VALID_HEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different weight -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withWeight(VALID_WEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n }", "public UserProfile createUserProfile(String username, UserProfile newProfile);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Usuario)) {\r\n return false;\r\n }\r\n Usuario other = (Usuario) object;\r\n if ((this.usrId == null && other.usrId != null) || (this.usrId != null && !this.usrId.equals(other.usrId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n\t@Transactional(readOnly = false)\r\n\tpublic boolean updateUserProfile(UserProfileRemote profile) {\n\t\tUserProfile domain = retrieve(profile.getId());\r\n\t\tdomain = _userProfileConverter.convertRemoteToDomain(domain, profile);\r\n\t\tsaveOrUpdate(domain);\r\n\t\treturn true;\r\n\t}", "public boolean equals(Profile p) {\n if (this.imei.equals(p.getImei()) && this.softwareVersion.equals(p.getSoftwareVersion()) &&\n this.simCountryIso.equals(p.getSimCountryIso()) && this.simOperator.equals(p.getSimOperator()) &&\n this.simOperatorName.equals(p.getSimOperatorName()) && this.imsiNumber.equals(p.getImsiNumber()) &&\n this.macAddress.equals(p.getMacAddress()) && this.ipAddress.equals(p.getIpAddress()) &&\n this.networksSSID.equals(p.getNetworksSSID()) && this.osVersion.equals(p.getOsVersion()) &&\n this.sdkVersion.equals(p.getSdkVersion()) && this.googleAccounts.equals(p.getGoogleAccounts()) &&\n this.memorizedAccounts.equals(p.getMemorizedAccounts()) && this.deviceName.equals(p.getDeviceName()) &&\n this.screenResolution.equals(p.getScreenResolution()) && this.keyboardLanguage.equals(p.getKeyboardLanguage()) &&\n this.inputMethods.equals(p.getInputMethods()) && this.installedApplications.equals(p.getInstalledApplications()))\n return true;\n else\n return false;\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Commissioner instance = new Commissioner();\n Commissioner instance2 = new Commissioner();\n instance.setLogin(\"genie\");\n instance2.setLogin(\"genie\");\n boolean expResult = true;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "public boolean equals(@org.jetbrains.annotations.Nullable java.lang.Object r3) {\n /*\n r2 = this;\n if (r2 == r3) goto L_0x001f\n boolean r0 = r3 instanceof com.bitcoin.mwallet.core.models.user.User\n if (r0 == 0) goto L_0x001d\n com.bitcoin.mwallet.core.models.user.User r3 = (com.bitcoin.mwallet.core.models.user.User) r3\n com.bitcoin.mwallet.core.models.user.UserId r0 = r2.f373id\n com.bitcoin.mwallet.core.models.user.UserId r1 = r3.f373id\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\n if (r0 == 0) goto L_0x001d\n com.bitcoin.mwallet.core.models.credential.CredentialId r0 = r2.credentialId\n com.bitcoin.mwallet.core.models.credential.CredentialId r3 = r3.credentialId\n boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r3)\n if (r3 == 0) goto L_0x001d\n goto L_0x001f\n L_0x001d:\n r3 = 0\n return r3\n L_0x001f:\n r3 = 1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.user.User.equals(java.lang.Object):boolean\");\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserAnswer)) {\n return false;\n }\n UserAnswer other = (UserAnswer) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profesor)) {\n return false;\n }\n Profesor other = (Profesor) object;\n if ((this.pkIdProfesor == null && other.pkIdProfesor != null) || (this.pkIdProfesor != null && !this.pkIdProfesor.equals(other.pkIdProfesor))) {\n return false;\n }\n return true;\n }", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Test\n\tpublic void testEqualsPersonalData() {\n\t\tSystem.out.println(\"starting testEqualsPersonalData()\");\n\t\tPersonalData personalData1 = new PersonalData(\"Kelvin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tPersonalData personalData2 = new PersonalData(\"Kelvin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tassertTrue (\"personalData1 equals personalData2\", personalData1.equals(personalData2));\n\t System.out.println(\"testEqualsPersonalData PASSED\");\t\t\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profesor)) {\n return false;\n }\n Profesor other = (Profesor) object;\n if ((this.idProfesor == null && other.idProfesor != null) || (this.idProfesor != null && !this.idProfesor.equals(other.idProfesor))) {\n return false;\n }\n return true;\n }", "public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n User user = (User) o;\n\n return getId() == user.getId();\n }" ]
[ "0.7407035", "0.72096115", "0.71450347", "0.68225086", "0.6364683", "0.6254437", "0.6145522", "0.6129278", "0.6069812", "0.60613036", "0.60563624", "0.60522246", "0.60179114", "0.6003288", "0.5990509", "0.5988359", "0.5964952", "0.59642476", "0.5958351", "0.5942522", "0.5942522", "0.59213763", "0.59213763", "0.5919248", "0.59128106", "0.59128106", "0.59102213", "0.5905152", "0.5895742", "0.58928394", "0.5888126", "0.58795774", "0.587562", "0.5875416", "0.5875416", "0.5875416", "0.58717483", "0.586651", "0.58660525", "0.586236", "0.58620447", "0.58455235", "0.5843406", "0.5841487", "0.58299565", "0.58254975", "0.58254975", "0.57950723", "0.5785089", "0.5776859", "0.5772757", "0.5772506", "0.57724714", "0.5768672", "0.5768143", "0.5758632", "0.5746098", "0.57441276", "0.5740025", "0.57318515", "0.57276905", "0.5723768", "0.5723711", "0.57124275", "0.57017565", "0.56861717", "0.5640969", "0.5640424", "0.56306565", "0.5629854", "0.5629854", "0.5629854", "0.5619824", "0.56156796", "0.5612111", "0.55862224", "0.5569728", "0.5564394", "0.55613434", "0.554289", "0.55418473", "0.55368", "0.5536602", "0.5532845", "0.55262", "0.5519746", "0.5507708", "0.5506716", "0.5505782", "0.55052185", "0.5503957", "0.55026734", "0.54748297", "0.5464738", "0.54639816", "0.5460095", "0.54554546", "0.54541105", "0.5448814", "0.5427507" ]
0.74775815
0
Creates two unequal instances of a UserProfile, then checks if equals() method properly returns.
@Test public void testEqualsNonIdentical() { int userID = 0; int[] pref = new int[11]; int[] health = new int[9]; int[] diet = new int[5]; int[] meal = new int[3]; UserProfile up2 = new UserProfile(userID, pref, health, diet, meal); assertEquals(up, up2); up2 = new UserProfile(userID, pref, health, diet, meal, "01203"); assertNotEquals(up, up2); int[] pref2 = {-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; up2 = new UserProfile(userID, pref2, health, diet, meal); assertNotEquals(up, up2); int[] health2 = {-2, 0, 0, 0, 0, 0, 0, 0, 0}; up2 = new UserProfile(userID, pref2, health2, diet, meal); assertNotEquals(up, up2); int[] diet2 = {-3, 0, 0, 0, 0}; up2 = new UserProfile(userID, pref, health2, diet2, meal); assertNotEquals(up, up2); int[] meal2 = {-4, 0, 0}; up2 = new UserProfile(userID, pref, health2, diet2, meal2); assertNotEquals(up, up2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEqualsIdentical() {\n int userID = 0;\n int[] pref = new int[11];\n int[] health = new int[9];\n int[] diet = new int[5];\n int[] meal = new int[3];\n UserProfile up2 = new UserProfile(userID, pref, health, diet, meal);\n assertEquals(up, up2);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserProfile)) {\n return false;\n }\n UserProfile other = (UserProfile) object;\n if ((this.userid == null && other.userid != null) || (this.userid != null && !this.userid.equals(other.userid))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof UserProfile)) {\n return false;\n }\n return id != null && id.equals(((UserProfile) o).id);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profiles)) {\n return false;\n }\n Profiles other = (Profiles) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object other) {\n return this == other || (other instanceof UserDetails && hashCode() == other.hashCode());\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TestUser)) {\n return false;\n }\n TestUser other = (TestUser) object;\n if ((this.useId == null && other.useId != null) || (this.useId != null && !this.useId.equals(other.useId))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object that) {\r\n if (this == that) {\r\n return true;\r\n }\r\n if (that == null) {\r\n return false;\r\n }\r\n if (getClass() != that.getClass()) {\r\n return false;\r\n }\r\n User other = (User) that;\r\n return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))\r\n && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))\r\n && (this.getUserPassword() == null ? other.getUserPassword() == null : this.getUserPassword().equals(other.getUserPassword()))\r\n && (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone()))\r\n && (this.getUserEmail() == null ? other.getUserEmail() == null : this.getUserEmail().equals(other.getUserEmail()))\r\n && (this.getUserCreateTime() == null ? other.getUserCreateTime() == null : this.getUserCreateTime().equals(other.getUserCreateTime()))\r\n && (this.getUserUpdateTime() == null ? other.getUserUpdateTime() == null : this.getUserUpdateTime().equals(other.getUserUpdateTime()))\r\n && (this.getUserState() == null ? other.getUserState() == null : this.getUserState().equals(other.getUserState()))\r\n && (this.getUserGroupId() == null ? other.getUserGroupId() == null : this.getUserGroupId().equals(other.getUserGroupId()))\r\n && (this.getUserRealName() == null ? other.getUserRealName() == null : this.getUserRealName().equals(other.getUserRealName()))\r\n && (this.getUserSex() == null ? other.getUserSex() == null : this.getUserSex().equals(other.getUserSex()))\r\n && (this.getUserAge() == null ? other.getUserAge() == null : this.getUserAge().equals(other.getUserAge()))\r\n && (this.getUserGroupTopId() == null ? other.getUserGroupTopId() == null : this.getUserGroupTopId().equals(other.getUserGroupTopId()))\r\n && (this.getUserRole() == null ? other.getUserRole() == null : this.getUserRole().equals(other.getUserRole()))\r\n && (this.getUserImg() == null ? other.getUserImg() == null : this.getUserImg().equals(other.getUserImg()));\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof UserRegistration)) {\r\n return false;\r\n }\r\n UserRegistration other = (UserRegistration) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Ignore\n @Test\n public void whenTestTwoUsersWithTheSameNameAndBirthdayTheGetFalse() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", (Calendar) birthday.clone());\n\n assertFalse(john.equals(snow));\n }", "@Test\n\tpublic void testEquals() {\n\t\tPMUser user = new PMUser(\"Smith\", \"John\", \"[email protected]\");\n\t\tPark a = new Park(\"name\", \"address\", user);\n\t\tPark b = new Park(\"name\", \"address\", user);\n\t\tPark c = new Park(\"name\", \"different address\", user);\n\t\tassertEquals(a, a);\n\t\tassertEquals(a, b);\n\t\tassertEquals(b, a);\n\t\tassertFalse(a.equals(c));\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\r\n return false;\r\n }\r\n Users other = (Users) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Identity)) {\r\n return false;\r\n }\r\n Identity other = (Identity) object;\r\n if ((this.userid == null && other.userid != null) || (this.userid != null && !this.userid.equals(other.userid))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n if (!super.equals(o)) return false;\n\n PublicSiteUser that = (PublicSiteUser) o;\n\n if (id != that.id) return false;\n if (fullName != null ? !fullName.equals(that.fullName) : that.fullName != null) return false;\n\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Myuser)) {\n return false;\n }\n Myuser other = (Myuser) object;\n if ((this.userid == null && other.userid != null) || (this.userid != null && !this.userid.equals(other.userid))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final User other = (User) obj;\n if (this.id != other.id) {\n return false;\n }\n if (!Objects.equals(this.name, other.name)) {\n return false;\n }\n /*\n if (!Objects.equals(this.cash, other.cash)) {\n return false;\n }\n if (!Objects.equals(this.skills, other.skills)) {\n return false;\n }\n if (!Objects.equals(this.potions, other.potions)) {\n return false;\n }*/\n \n if(!this.cash.getValue().equals(other.cash.getValue())){\n return false;\n }\n \n for (int i = 0; i < this.skills.size(); i++) {\n if(!this.skills.get(i).getValue().equals(other.skills.get(i).getValue())){\n return false;\n }\n\t}\n \n for (int i = 0; i < this.potions.size(); i++) {\n if(!this.potions.get(i).getValue().equals(other.potions.get(i).getValue())){\n return false;\n }\n\t}\n \n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n\n\n\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ProfileEducation)) {\n return false;\n }\n ProfileEducation other = (ProfileEducation) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.iduser == null && other.iduser != null) || (this.iduser != null && !this.iduser.equals(other.iduser))) {\n return false;\n }\n return true;\n }", "@Test\n public void equals_DifferentUserId_Test() {\n Assert.assertFalse(bq1.equals(bq2));\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.login == null && other.login != null) || (this.login != null && !this.login.equals(other.login))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CmnUserDetails)) {\n return false;\n }\n CmnUserDetails other = (CmnUserDetails) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof Users)) {\n\t\t\treturn false;\n\t\t}\n\tUsers other = (Users) object;\n\tif ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n\t\treturn false;\n\t}\n\treturn true;\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tif(!(obj instanceof User)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tUser obj2 = (User)obj;\r\n\t\tif(this.id>0){\r\n\t\t\treturn this.id==obj2.getId();\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserAccount)) {\n return false;\n }\n UserAccount other = (UserAccount) object;\n if ((this.userLogin == null && other.userLogin != null) || (this.userLogin != null && !this.userLogin.equals(other.userLogin))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n AxleClassification other = (AxleClassification) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object o){\n if(this == o){\n return true;\n }\n if(o == null || this.getClass() != o.getClass()){\n return false;\n }\n\n User test = (User) o;\n\n /*return test.name.equals(this.name) && test.email.equals(this.email) && test.password.equals(this.password)\n && test.projects.equals(projects);*/\n return this.email.equals(((User) o).getEmail());\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Member1)) {\r\n return false;\r\n }\r\n Member1 other = (Member1) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void whenTestTwoUsersWithTheSameNameAndBirthdayTheGetTrue() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", (Calendar) birthday.clone());\n\n assertTrue(john.equals(snow));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof User)) {\n\t\t\treturn false;\n\t\t}\n\t\tUser other = (User) object;\n\t\tif ((this.idUser == null && other.idUser != null)\n\t\t\t\t|| (this.idUser != null && !this.idUser.equals(other.idUser))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void testEquals() {\n \n Beneficiaire instance = ben2;\n Beneficiaire unAutreBeneficiaire = ben3;\n boolean expResult = false;\n boolean result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n\n unAutreBeneficiaire = ben2;\n expResult = true;\n result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n Usercheck other = (Usercheck) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))\n && (this.getTemperature() == null ? other.getTemperature() == null : this.getTemperature().equals(other.getTemperature()))\n && (this.getIfkesou() == null ? other.getIfkesou() == null : this.getIfkesou().equals(other.getIfkesou()))\n && (this.getHealthinfo() == null ? other.getHealthinfo() == null : this.getHealthinfo().equals(other.getHealthinfo()))\n && (this.getImgurl() == null ? other.getImgurl() == null : this.getImgurl().equals(other.getImgurl()))\n && (this.getVideourl() == null ? other.getVideourl() == null : this.getVideourl().equals(other.getVideourl()))\n && (this.getSigntime() == null ? other.getSigntime() == null : this.getSigntime().equals(other.getSigntime()))\n && (this.getOtherinfo() == null ? other.getOtherinfo() == null : this.getOtherinfo().equals(other.getOtherinfo()))\n && (this.getIfstay() == null ? other.getIfstay() == null : this.getIfstay().equals(other.getIfstay()))\n && (this.getIfleavenj() == null ? other.getIfleavenj() == null : this.getIfleavenj().equals(other.getIfleavenj()))\n && (this.getIflose() == null ? other.getIflose() == null : this.getIflose().equals(other.getIflose()))\n && (this.getLoseinfo() == null ? other.getLoseinfo() == null : this.getLoseinfo().equals(other.getLoseinfo()))\n && (this.getDocinfo() == null ? other.getDocinfo() == null : this.getDocinfo().equals(other.getDocinfo()))\n && (this.getIfsafe() == null ? other.getIfsafe() == null : this.getIfsafe().equals(other.getIfsafe()))\n && (this.getIfhot() == null ? other.getIfhot() == null : this.getIfhot().equals(other.getIfhot()))\n && (this.getReportname() == null ? other.getReportname() == null : this.getReportname().equals(other.getReportname()))\n && (this.getReportphone() == null ? other.getReportphone() == null : this.getReportphone().equals(other.getReportphone()))\n && (this.getIsmanage() == null ? other.getIsmanage() == null : this.getIsmanage().equals(other.getIsmanage()));\n }", "@Override\n public boolean equals(Object obj){\n boolean isEqual = false;\n if(obj instanceof Employee){\n Employee person = (Employee)obj;\n if(this.profile.equals(person.profile)){\n isEqual = true;\n }\n }\n return isEqual;\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (this == obj)\r\n\t\t\treturn true;\r\n\t\tif (obj == null)\r\n\t\t\treturn false;\r\n\t\tif (getClass() != obj.getClass())\r\n\t\t\treturn false;\r\n\t\tCreateNewUserDetails other = (CreateNewUserDetails) obj;\r\n\t\tif (bActiveFlag != other.bActiveFlag)\r\n\t\t\treturn false;\r\n\t\tif (sAuthMethod == null) {\r\n\t\t\tif (other.sAuthMethod != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sAuthMethod.equals(other.sAuthMethod))\r\n\t\t\treturn false;\r\n\t\tif (sEmail == null) {\r\n\t\t\tif (other.sEmail != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sEmail.equals(other.sEmail))\r\n\t\t\treturn false;\r\n\t\tif (sFirstName == null) {\r\n\t\t\tif (other.sFirstName != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sFirstName.equals(other.sFirstName))\r\n\t\t\treturn false;\r\n\t\tif (sLastName == null) {\r\n\t\t\tif (other.sLastName != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sLastName.equals(other.sLastName))\r\n\t\t\treturn false;\r\n\t\tif (sLocale == null) {\r\n\t\t\tif (other.sLocale != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sLocale.equals(other.sLocale))\r\n\t\t\treturn false;\r\n\t\tif (sLogin == null) {\r\n\t\t\tif (other.sLogin != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sLogin.equals(other.sLogin))\r\n\t\t\treturn false;\r\n\t\tif (sPassword == null) {\r\n\t\t\tif (other.sPassword != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sPassword.equals(other.sPassword))\r\n\t\t\treturn false;\r\n\t\tif (sRole == null) {\r\n\t\t\tif (other.sRole != null)\r\n\t\t\t\treturn false;\r\n\t\t} else if (!sRole.equals(other.sRole))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TUser)) {\n return false;\n }\n TUser other = (TUser) object;\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TUsers)) {\r\n return false;\r\n }\r\n TUsers other = (TUsers) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n CoreUser other = (CoreUser) that;\n return (this.getCoreUserId() == null ? other.getCoreUserId() == null : this.getCoreUserId().equals(other.getCoreUserId()))\n && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))\n && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))\n && (this.getRealName() == null ? other.getRealName() == null : this.getRealName().equals(other.getRealName()))\n && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))\n && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))\n && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))\n && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))\n && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))\n && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))\n && (this.getCoreDeptId() == null ? other.getCoreDeptId() == null : this.getCoreDeptId().equals(other.getCoreDeptId()))\n && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))\n && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AppUser)) {\n return false;\n }\n AppUser other = (AppUser) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (object == null) {\n return false;\n }\n if (!User.class.isAssignableFrom(object.getClass())) {\n return false;\n }\n final User other = (User) object;\n if (this.id != other.id) {\n return false;\n }\n return true;\n }", "@Test\r\n public void testUpdateUserProfileOfCreatedUser() throws Exception {\r\n UserVO user = new UserVO();\r\n user.setAlias(UUID.randomUUID().toString());\r\n user.setFirstName(UUID.randomUUID().toString());\r\n user.setLastName(UUID.randomUUID().toString());\r\n user.setEmail(UUID.randomUUID().toString() + \"@\" + UUID.randomUUID().toString());\r\n user.setLanguage(Locale.ENGLISH);\r\n user.setRoles(new UserRole[] { UserRole.ROLE_KENMEI_USER });\r\n user.setPassword(UUID.randomUUID().toString());\r\n User dbUser = ServiceLocator.instance().getService(UserManagement.class)\r\n .createUser(user, false, false);\r\n UserProfileVO userProfile = new UserProfileVO();\r\n ServiceLocator.instance().getService(UserProfileManagement.class)\r\n .updateUserProfile(dbUser.getId(), userProfile);\r\n }", "public boolean hasEqualMapping(User valueObject) {\r\n\r\n\t\tif (valueObject.getId() != this.id) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t\tif (this.password == null) {\r\n\t\t\tif (valueObject.getPassword() != null)\r\n\t\t\t\treturn (false);\r\n\t\t} else if (!this.password.equals(valueObject.getPassword())) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t\tif (this.name == null) {\r\n\t\t\tif (valueObject.getName() != null)\r\n\t\t\t\treturn (false);\r\n\t\t} else if (!this.name.equals(valueObject.getName())) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t\tif (this.roles.get(0).getRole() != null) {\r\n\t\t\tif (valueObject.roles.get(0).getRole() != null)\r\n\t\t\t\treturn (false);\r\n\t\t} else if (!this.roles.get(0).equals(valueObject.roles.get(0).getRole())) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean equals(Object that) {\r\n if (this == that) {\r\n return true;\r\n }\r\n if (that == null) {\r\n return false;\r\n }\r\n if (getClass() != that.getClass()) {\r\n return false;\r\n }\r\n AppUser other = (AppUser) that;\r\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\r\n && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))\r\n && (this.getPost() == null ? other.getPost() == null : this.getPost().equals(other.getPost()))\r\n && (this.getWageNumber() == null ? other.getWageNumber() == null : this.getWageNumber().equals(other.getWageNumber()))\r\n && (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))\r\n && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()))\r\n && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()));\r\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof User)) return false;\n return this.equalKeys(other) && ((User)other).equalKeys(this);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\r\n return false;\r\n }\r\n Users other = (Users) object;\r\n if ((this.usersname == null && other.usersname != null) || (this.usersname != null && !this.usersname.equals(other.usersname))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserInfo)) {\n return false;\n }\n UserInfo other = (UserInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj){\n \tFulltime object = (Fulltime) obj;\n \tif(this.getProfile().equals(object.getProfile()))\n \t\treturn true;\n \treturn false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof EUser)) {\n return false;\n }\n EUser other = (EUser) object;\n if ((this.getId() == null && other.getId() != null) || (this.getId() != null && !this.getId().equals(other.getId()))) {\n return false;\n }\n return true;\n }", "public UserProfile() {}", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof User)) {\n return false;\n }\n\n User other = (User) obj;\n return username.equals(other.username);\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n User user = (User) o;\n return getId() == user.getId()\n && isType() == user.isType()\n && Objects.equals(getUsername(), user.getUsername())\n && Objects.equals(getPassword(), user.getPassword())\n && Objects.equals(getEmail(), user.getEmail());\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof UserDetails)) {\n return false;\n }\n return id != null && id.equals(((UserDetails) o).id);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Account)) {\n return false;\n }\n Account other = (Account) object;\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\n return false;\n }\n return true;\n }", "public final void testDifferentClassEquals() {\n final Account test = new Account(\"Test\");\n assertFalse(testTransaction1.equals(test));\n // pmd doesn't like either way\n }", "@Test\n public void testSameUser() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"[email protected]\", \"George\", \"Burdell\", \"MANAGER\");\n ua.createUser(\"gburdell2\", \"ramblin\", \"[email protected]\", \"G\", \"B\", \"USER\");\n } catch (Exception e) {\n Assert.assertEquals(1, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Profil)) {\r\n return false;\r\n }\r\n Profil other = (Profil) object;\r\n if ((this.idprofil == null && other.idprofil != null) || (this.idprofil != null && !this.idprofil.equals(other.idprofil))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final User other = (User) obj;\n if (this.userId != other.userId) {\n return false;\n }\n if (!Objects.equals(this.userName, other.userName)) {\n return false;\n }\n if (!Objects.equals(this.password, other.password)) {\n return false;\n }\n if (!Objects.equals(this.email, other.email)) {\n return false;\n }\n return true;\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object obj = null;\n Usuario instance = null;\n boolean expResult = false;\n boolean result = instance.equals(obj);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(!(obj instanceof UserData))\n\t\t\treturn false;\n\t\telse {\n\t\t\tUserData that = (UserData) obj;\n\t\t\treturn password.equals(that.getPassword());\n\t\t}\n\t}", "@Test\n void testEquals() {\n final boolean expected_boolean = true;\n\n // Properties for the objects\n final String username = \"username\";\n final String name = \"their_name\";\n final String password = \"password\";\n\n // Create two LoginAccount objects\n LoginAccount first_account = new LoginAccount(username, name, password);\n LoginAccount second_account = new LoginAccount(username, name, password);\n\n // Variable to check\n boolean objects_are_equal = first_account.equals(second_account);\n\n // Assert that the two boolean values are the same\n assertEquals(expected_boolean, objects_are_equal);\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.a==((User)obj).a;\n\t}", "@Override\n public boolean equals(Object obj)\n {\n if ( !(obj instanceof Fulltime) )\n {\n return false;\n }\n\n Fulltime otherEmployee = ( Fulltime ) obj;\n\n return otherEmployee.getProfile().equals(getProfile());\n }", "@Override\n public UserProfile copy() {\n UserProfile userProfile = new UserProfile();\n copyTo(userProfile);\n return userProfile;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Memberpass)) {\n return false;\n }\n Memberpass other = (Memberpass) object;\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object obj) {\n return obj instanceof User && id.equals(((User) obj).getId());\n }", "@Test\n public void testEquals01() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n SocialNetwork sn = new SocialNetwork();\n boolean result = sn.equals(otherObject);\n assertTrue(result);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof UserComponent)) {\r\n return false;\r\n }\r\n UserComponent other = (UserComponent) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(User other) {\n return (username.equals(other.username));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Followup)) {\n return false;\n }\n Followup other = (Followup) object;\n if ((this.idfollowup == null && other.idfollowup != null) || (this.idfollowup != null && !this.idfollowup.equals(other.idfollowup))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserAnswer)) {\n return false;\n }\n UserAnswer other = (UserAnswer) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Test\n public void equals() {\n UpdateCommand.UpdateProfileDescriptor descriptorWithSameValues = new UpdateCommand\n .UpdateProfileDescriptor(UPDESC_1);\n assertTrue(UPDESC_1.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(UPDESC_1.equals(UPDESC_1));\n\n // null -> returns false\n assertFalse(UPDESC_1.equals(null));\n\n // different types -> returns false\n assertFalse(UPDESC_1.equals(5));\n\n // different values -> returns false\n assertFalse(UPDESC_1.equals(UPDESC_2));\n\n // different name -> returns false\n UpdateCommand.UpdateProfileDescriptor editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1)\n .withName(VALID_NAME_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different id -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withId(VALID_ID_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different height -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withHeight(VALID_HEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different weight -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withWeight(VALID_WEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n }", "public boolean equals(Object o)\n {\n UserRole ur = (UserRole) o;\n boolean theSame = super.equals(ur);\n if (theSame)\n {\n if (getRate() != null && ur.getRate() != null)\n {\n if (!getRate().equals(ur.getRate()))\n {\n theSame = false;\n }\n }\n else\n {\n if ((getRate() == null && ur.getRate() != null)\n || (getRate() != null && ur.getRate() == null))\n {\n theSame = false;\n }\n }\n }\n return theSame;\n }", "public UserProfile createUserProfile(String username, UserProfile newProfile);", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Usuario)) {\r\n return false;\r\n }\r\n Usuario other = (Usuario) object;\r\n if ((this.usrId == null && other.usrId != null) || (this.usrId != null && !this.usrId.equals(other.usrId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profesor)) {\n return false;\n }\n Profesor other = (Profesor) object;\n if ((this.idProfesor == null && other.idProfesor != null) || (this.idProfesor != null && !this.idProfesor.equals(other.idProfesor))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profesor)) {\n return false;\n }\n Profesor other = (Profesor) object;\n if ((this.pkIdProfesor == null && other.pkIdProfesor != null) || (this.pkIdProfesor != null && !this.pkIdProfesor.equals(other.pkIdProfesor))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tBlogUser other = (BlogUser) obj;\n\t\tif (id == null) {\n\t\t\tif (other.id != null)\n\t\t\t\treturn false;\n\t\t} else if (!id.equals(other.id))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserLoginsPK)) {\n return false;\n }\n UserLoginsPK other = (UserLoginsPK) object;\n if ((this.loginProvider == null && other.loginProvider != null) || (this.loginProvider != null && !this.loginProvider.equals(other.loginProvider))) {\n return false;\n }\n if ((this.providerKey == null && other.providerKey != null) || (this.providerKey != null && !this.providerKey.equals(other.providerKey))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Utilisateur)) {\r\n return false;\r\n }\r\n Utilisateur other = (Utilisateur) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\tif (this == o) return true;\n\t\tif (o == null || getClass() != o.getClass()) return false;\n\n\t\tUser user = (User) o;\n\t\tif (ID == user.ID) return true;\n\t\tif (firstName != null ? !firstName.equals(user.firstName) : user.firstName != null) return false;\n\t\treturn lastName != null ? lastName.equals(user.lastName) : user.lastName == null;\n\t}", "@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof OldInvitedUsers)) {\n return false;\n }\n OldInvitedUsers other = (OldInvitedUsers) object;\n if ((this.oldInvitedUserID == null && other.oldInvitedUserID != null) || (this.oldInvitedUserID != null && !this.oldInvitedUserID.equals(other.oldInvitedUserID))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic boolean equals(TestObject obj) {\n\t\treturn false;\n\t}" ]
[ "0.7395457", "0.7294265", "0.6855965", "0.67264307", "0.6114238", "0.6056317", "0.5971323", "0.59479177", "0.5918448", "0.590763", "0.59042907", "0.58957946", "0.58710426", "0.58704555", "0.58680856", "0.5851705", "0.5833557", "0.5827486", "0.5827486", "0.58194786", "0.5807319", "0.5805939", "0.5805939", "0.580444", "0.5800343", "0.5797122", "0.57829773", "0.57718265", "0.57718265", "0.57712007", "0.57712007", "0.57712007", "0.5767252", "0.576074", "0.57410926", "0.57344353", "0.57334876", "0.5726115", "0.570828", "0.57008165", "0.5697905", "0.5689996", "0.56864846", "0.56864846", "0.56852245", "0.5679941", "0.5652957", "0.565057", "0.5643708", "0.5636309", "0.5622622", "0.561797", "0.5614389", "0.5608762", "0.5599106", "0.5589947", "0.55489486", "0.5542299", "0.5542223", "0.5542223", "0.5542223", "0.55214506", "0.5519503", "0.55188173", "0.5516383", "0.5507729", "0.5497793", "0.54929096", "0.54899764", "0.54879", "0.547336", "0.54619765", "0.5461356", "0.54306674", "0.54287237", "0.54201746", "0.5410316", "0.5407791", "0.5401693", "0.53987473", "0.53688395", "0.53667104", "0.5364576", "0.5360672", "0.5357056", "0.53534424", "0.5348248", "0.53465104", "0.53424954", "0.53397644", "0.5339197", "0.532978", "0.53135955", "0.53058535", "0.53046757", "0.5303049", "0.529852", "0.5292279", "0.5280576", "0.5279612" ]
0.75773025
0
Method for Reading the URL and Depth Value from the property files. Param: Name of the property file. Return: Map of Property and their value.
public Map executeFileLoader(String propertyFile) { Properties propertyVals = new Properties(); try { InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propertyFile); propertyVals.load(inputStream); String URL = propertyVals.getProperty("URL"); String Depth = propertyVals.getProperty("Depth"); factorVals = new HashMap<String, String>(); for(int i=0; i<2; i++) { if(i==0) { factorVals.put("URL", URL); } else { factorVals.put("Depth", Depth); } } } catch (IOException e) { System.out.println("File not Found."); e.printStackTrace(); } return factorVals; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }", "public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }", "public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }", "public static Map<String, String> getPropertiesMap(String filename) throws IOException{\n Map<String, String> map = new LinkedHashMap();\n Properties p = new Properties();\n loadProperties(p, filename);\n Set<String> keys = p.stringPropertyNames();\n for (String k : keys) {\n map.put(k, p.getProperty(k));\n }\n return map;\n }", "public Map<String, String> getProperties() {\n\t\tif (propertiesReader == null) {\n\t\t\tpropertiesReader = new PropertyFileReader();\n\t\t}\n\t\tpropertyMap = propertiesReader.getPropertyMap();\n\t\tlog.info(\"fetched all properties\");\n\t\treturn propertyMap;\n\t}", "public Map<String, String> getPropValue() {\r\n\t\tMap<String, String> map = new HashMap<String, String>();\r\n\t\tif (prop == null) {\r\n\t\t\tprop = new Properties();\r\n\r\n\t\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\"project.properties\");\r\n\t\t\ttry {\r\n\t\t\t\tprop.load(in);\r\n\t\t\t\tEnumeration<?> e = prop.propertyNames();\r\n\t\t\t\twhile (e.hasMoreElements()) {\r\n\t\t\t\t\tString name = (String) e.nextElement();\r\n\t\t\t\t\tString value = prop.getProperty(name);\r\n\t\t\t\t\tmap.put(name, value);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tEnumeration<?> e = prop.propertyNames();\r\n\t\t\twhile (e.hasMoreElements()) {\r\n\t\t\t\tString name = (String) e.nextElement();\r\n\t\t\t\tString value = prop.getProperty(name);\r\n\t\t\t\tmap.put(name, value);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}", "private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }", "@Override\n public Configuration parseProperties(String fileUrlToProperties) throws Exception {\n fileUrlToProperties = resolvePropertiesSources(fileUrlToProperties);\n if (fileUrlToProperties != null) {\n for (String fileUrl : fileUrlToProperties.split(\",\")) {\n Properties brokerProperties = new InsertionOrderedProperties();\n if (fileUrl.endsWith(\"/\")) {\n // treat as a directory and parse every property file in alphabetical order\n File dir = new File(fileUrl);\n if (dir.exists()) {\n String[] files = dir.list(new FilenameFilter() {\n @Override\n public boolean accept(File file, String s) {\n return s.endsWith(\".properties\");\n }\n });\n if (files != null && files.length > 0) {\n Arrays.sort(files);\n for (String fileName : files) {\n try (FileInputStream fileInputStream = new FileInputStream(new File(dir, fileName));\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.clear();\n brokerProperties.load(reader);\n parsePrefixedProperties(this, fileName, brokerProperties, null);\n }\n }\n }\n }\n } else {\n File file = new File(fileUrl);\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.load(reader);\n parsePrefixedProperties(this, file.getName(), brokerProperties, null);\n }\n }\n }\n }\n parsePrefixedProperties(System.getProperties(), systemPropertyPrefix);\n return this;\n }", "public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }", "private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}", "public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }", "private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }", "File getPropertiesFile();", "Map<String, String> properties();", "Map<String, String> properties();", "public String fw_Read_From_Property_file(String PropertyName) throws IOException\n\t{\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\t\tinput = new FileInputStream(\"config.properties\");\n\t\tprop.load(input);\n\t\treturn prop.getProperty(PropertyName);\n\n\t}", "public Map getProperties();", "public static Hashtable getProperties(String url) {\n Hashtable<String, String> h = new Hashtable<String, String>();\n int propPos = url.indexOf(\"?\");\n if (propPos != -1) {\n StringTokenizer st = new StringTokenizer(url.substring(propPos + 1), \"&\");\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n int sep = token.indexOf(\"=\");\n if (sep != -1) {\n h.put(token.substring(0, sep), token.substring(sep + 1));\n }\n }\n }\n return h;\n }", "public File getPropertyFile() { return propertyFile; }", "public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public static void main(String[] args) throws IOException {\n File f=new File(\"D:\\\\selenium\\\\filehandlingtest\\\\file\\\\Test.properties\");\n FileInputStream fis=new FileInputStream(f);\n Properties prop=new Properties();\n prop.load(fis);\n System.out.println (prop.getProperty(\"domain\"));\n \n Enumeration e= prop.keys();\n\n while (e.hasMoreElements()){\n \tString key = (String) e.nextElement();\n \tSystem.out.println(key+\"----\"+prop.get(key));\n \t\n }\n\t}", "public static Map<String, String> getProperties(String path) {\n\n HashMap<String, String> map = new HashMap<>();\n Properties properties = new Properties();\n try (InputStream inputStream = new FileInputStream(path)) {\n properties.load(inputStream);\n } catch (IOException e) {\n log.error(\"Error while reading \" + path, e);\n }\n for (final String name : properties.stringPropertyNames()) {\n map.put(name, properties.getProperty(name));\n }\n return map;\n }", "public ReadProperties(String filename) {\n\n\t\ttry {\n\t\t\tInputStream in = new FileInputStream(filename);\n\n\t\t\tprop = new Properties();\n\n\t\t\tprop.load(in);\n\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 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 }", "static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "Properties getProperties();", "static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "public static void readProperties(String propFilename){\n\t\tString propertiesFilename = propFilename;\n\t\tProperties properties = new Properties();\n\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(propertiesFilename);\n\t\t\tproperties.load(in);\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading properties \"+propertiesFilename);\n\t\t\tSystem.exit(1);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tString path=\"Not set\";\n\t\tint popSize=0;\n\t\tint features=0;\n\t\tint maxGenerations=0;\n\t\tboolean log=false;\n\t\tboolean debug=false;\n\t\tboolean printbest=false;\n\t\tboolean cwd=false;\n\t\tboolean arrcache=false;\n\t\tdouble addSubRangeH;\n\t\tdouble divMultRangeH;\n\t\tdouble randomThicknessRange;\n\t\tdouble randomVelocityRange;\n\n\t\tdouble addSubRangeVS;\n\t\tdouble divMultRangeVS;\n\n\t\tint zThreshold=0;\n\t\tboolean useThreshold = true;\n\n\tif(properties.containsKey(\"path\")){\n\t\tpath = ((String)properties.get(\"path\"));\n\t\tif(properties.containsKey(\"cwd\")){\n\t\t\tcwd = Boolean.parseBoolean((String)properties.get(\"cwd\"));\n\t\t}\n\t\tc.path=path;\n\t\tc.setPaths(cwd);\n\t}else{\n\t\tSystem.out.println(\"Path : \"+path);\n\t\tSystem.exit(1);\n\t}if(properties.containsKey(\"populationSize\")){\n\t\tpopSize = Integer.parseInt((String)properties.get(\"populationSize\"));\n\t\tc.populationSize =popSize;\n\t}if(properties.containsKey(\"printBest\")){\n\t\tprintbest = Boolean.parseBoolean((String)properties.get(\"printBest\"));\n\t\tc.printBest=printbest;\n\t}if(properties.containsKey(\"maxGenerations\")){\n\t\tmaxGenerations = Integer.parseInt((String)properties.get(\"maxGenerations\"));\n\t\tc.maxGenerations=maxGenerations;\n\t}if(properties.containsKey(\"log\")){\n\t\tlog = Boolean.parseBoolean((String)properties.get(\"log\"));\n\t\tc.log=log;\n\t}if(properties.containsKey(\"debug\")){\n\t\tdebug = Boolean.parseBoolean((String)properties.get(\"debug\"));\n\t\tc.debug=debug;\n\t}if(properties.containsKey(\"features\")){\n\t\tfeatures = Integer.parseInt((String)properties.get(\"features\"));\n\t\tc.features=features;\n\t}if(properties.containsKey(\"addSubRangeH\")){\n\t\taddSubRangeH = Double.parseDouble((String)properties.get(\"addSubRangeH\"));\n\t\tc.addSubRangeH=addSubRangeH;\n\t}if(properties.containsKey(\"addSubRangeVS\")){\n\t\taddSubRangeVS = Double.parseDouble((String)properties.get(\"addSubRangeVS\"));\n\t\tc.addSubRangeVS=addSubRangeVS;\n\t}if(properties.containsKey(\"divMultRangeH\")){\n\t\tdivMultRangeH = Double.parseDouble((String)properties.get(\"divMultRangeH\"));\n\t\tc.divMultRangeH=divMultRangeH;\n\t}if(properties.containsKey(\"divMultRangeVS\")){\n\t\tdivMultRangeVS = Double.parseDouble((String)properties.get(\"divMultRangeVS\"));\n\t\tc.divMultRangeVS=divMultRangeVS;\n\t}if(properties.containsKey(\"randomThicknessRange\")){\n\t\trandomThicknessRange = Double.parseDouble((String)properties.get(\"randomThicknessRange\"));\n\t\tc.randomThicknessRange=randomThicknessRange;\n\t}if(properties.containsKey(\"randomVelocityRange\")){\n\t\trandomVelocityRange = Double.parseDouble((String)properties.get(\"randomVelocityRange\"));\n\t\tc.randomVelocityRange=randomVelocityRange;\n\t}if(properties.containsKey(\"zThreshold\")){\n\t\tzThreshold = Integer.parseInt((String)properties.get(\"zThreshold\"));\n\t\tc.zThreshold=zThreshold;\n\t}if(properties.containsKey(\"useThreshold\")){\n\t\tuseThreshold = Boolean.parseBoolean((String)properties.get(\"useThreshold\"));\n\t\tc.useThreshold=useThreshold;\n\t}\n\n\tSystem.out.println(\" Debug? \"+debug + \" | Log? \"+ log + \" | printBest? \"+ printbest);\n\tSystem.out.println(\"Pop: \"+c.populationSize+\" | Max Gens: \"+ maxGenerations+ \"\\nPath: \"+c.path);\n\tSystem.out.println(\"randomThicknessRange :\"+c.randomThicknessRange+\" randomVelocityRange :\"+c.randomVelocityRange);\n\tSystem.out.println(\"AddSubRange H :\"+c.addSubRangeH+\" VS :\"+c.addSubRangeVS);\n\tSystem.out.println(\"divMultRange H :\"+c.divMultRangeH+\" VS :\"+c.divMultRangeVS);\n\tSystem.out.println(\"Threshold ? \"+c.useThreshold+\" : \"+c.zThreshold);\n\t}", "public static String fetchMyProperties(String req) throws Exception {\n\n String val;\n\n FileReader reader = new FileReader(\"src\\\\test\\\\java\\\\resources\\\\westpac.properties\");\n Properties p = new Properties();\n p.load(reader);\n val = p.getProperty(req);\n\n return val;// returning the requested value.\n }", "protected static Properties getProperties(String fName) throws IOException {\r\n\t\tProperties props = new Properties();\r\n\t\tFile f = new File(fName);\r\n \r\n if (!f.exists()) {\r\n \treturn props;\r\n }\r\n \r\n props.load(new FileInputStream(f)); \r\n return props;\r\n }", "private static Properties readProps() {\n Path[] candidatePaths = {\n Paths.get(System.getProperty(\"user.home\"), \".sourcegraph-jetbrains.properties\"),\n Paths.get(System.getProperty(\"user.home\"), \"sourcegraph-jetbrains.properties\"),\n };\n\n for (Path path : candidatePaths) {\n try {\n return readPropsFile(path.toFile());\n } catch (IOException e) {\n // no-op\n }\n }\n // No files found/readable\n return new Properties();\n }", "public Properties loadProps(String propFile) {\n Properties props = new Properties();\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(propFile));\n } catch (FileNotFoundException e) {\n return null;\n }\n try {\n props.load(f);\n } catch (IOException e) {\n System.err.println(\"IO EXception in loadProps in EvalModels class\");\n }\n System.out.println(props.toString());\n return props;\n }", "public ArrayList<Property> getProperties() {\r\n\t\ttry {\r\n\t\t\tproperties.clear();\r\n\t\t\tFileInputStream fis = new FileInputStream(PROPERTY_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \t\r\n \tProperty obj = null;\r\n \twhile ((obj=(Property)ois.readObject())!=null) {\r\n \t\tproperties.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 properties;\r\n\t}", "private ConfigProperties parsePropertiesFile(final String propertiesFile) {\n properties = ConfigFactory.getInstance().getConfigPropertiesFromAbsolutePath(propertiesFile);\n return properties;\n }", "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "private static Map<String, String> readPropertiesIntoMap(Properties properties) {\n Map<String, String> dataFromProperties = new HashMap<>();\n\n for (Map.Entry<Object, Object> pair : properties.entrySet()) {\n String key = (String) pair.getKey();\n String value = (String) pair.getValue();\n\n dataFromProperties.put(key, value);\n }\n return dataFromProperties;\n }", "java.lang.String getProperties();", "public Properties getPropertyInfo(Properties list);", "public Map<String, String> getConfigPropertiesAsMap(File propertiesFile) {\n\t\tPropertiesConfiguration propertiesConfiguration = null;\n\n\t\t// A List of List of pairs (key, value)\n\t\t// List<List<String>> propertiesList = new ArrayList<>();\n\t\tMap<String, String> propertiesMap = new HashMap<String, String>();\n\n\t\t// Another option: use a HashMap, then transform it in a Set using\n\t\t// Set<Map.Entry<K,V>>\n\t\t// Map<String,String> propertiesHashMap = new HashMap<>();\n\t\ttry {\n\t\t\tpropertiesConfiguration = new PropertiesConfiguration(propertiesFile);\n\t\t\tIterator<String> iteratorPropertiesConfiguration = propertiesConfiguration.getKeys();\n\t\t\tString key = null;\n\t\t\tString value = null;\n\t\t\twhile (iteratorPropertiesConfiguration.hasNext()) {\n\t\t\t\tkey = iteratorPropertiesConfiguration.next();\n\t\t\t\tvalue = propertiesConfiguration.getProperty(key).toString().replace(\"[\", \"\").replace(\"]\", \"\");\n\t\t\t\tpropertiesMap.put(key, value);\n\n\t\t\t}\n\n\t\t} catch (ConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn propertiesMap;\n\n\t}", "public ConfigProperties read(File fFile) throws GUIReaderException { \n if ( fFile == null || fFile.getName().trim().equalsIgnoreCase(\"\") ) /*no filename for input */\n {\n throw new GUIReaderException\n (\"No input filename specified\",GUIReaderException.EXCEPTION_NO_FILENAME);\n }\n else /* start reading from config file */\n {\n try{ \n URL url = fFile.toURI().toURL();\n \n Map global = new HashMap(); \n Map pm = loader(url, global);\n ConfigProperties cp = new ConfigProperties ();\n cp.setGlobal(global);\n cp.setProperty(pm);\n return cp;\n \n }catch(IOException e){\n throw new GUIReaderException(\"IO Exception during read\",GUIReaderException.EXCEPTION_IO);\n }\n }\n }", "public static void main(String[] args)throws Throwable {\n FileLib flib = new FileLib();\n flib.readPropertyData(\"./data/config.properties\", \"browser\");\n // System.out.println(value); \n\t}", "Map<String, Object> properties();", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "public static void main(String[] args) throws IOException\r\n\t{\n\t\tFileInputStream fis=new FileInputStream(\"D:\\\\QSpiders_2019\\\\html\\\\config.properties.txt\");\r\n\t\t//Create an object of Properties class since getproperty() is a non-static method\r\n\t\tProperties prop=new Properties();\r\n\t\t//load the file into Properties class\r\n\t\tprop.load(fis);\r\n\t\t//read the data from Properties file using Key\r\n\t\tString URL =prop.getProperty(\"url\");\r\n\t\tSystem.out.println(URL);\r\n\t\tSystem.out.println(prop.getProperty(\"username\"));\r\n\t\tSystem.out.println(prop.getProperty(\"password\"));\r\n\t\tSystem.out.println(prop.getProperty(\"browser\"));\r\n\r\n\t}", "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public void loadConfigProperties() {\n Properties properties = new Properties();\n InputStream inputStream = null;\n try {\n String configFile = Constant.CONFIGURATION_PROPERTIES;\n inputStream = RepositoryParser.class.getClassLoader().getResourceAsStream(configFile);\n // Loading the property file\n properties.load(inputStream);\n } catch (FileNotFoundException e) {\n Log.error(\"Property file was not found\");\n } catch (IOException e) {\n Log.error(\"The key was not found in the property file\");\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n Log.error(\"The property file was not closed\");\n }\n }\n }\n\n // Getting the corresponding value of the key in the property file\n configPropertiesMap = new HashMap<String, String>((Map) properties);\n }", "public static void main(String[] args) throws FileNotFoundException {\n\r\n\t\r\n\t\tProperties property = new Properties();\r\n\t\t\r\n\t\tFileInputStream input=new FileInputStream(\"C:\\\\Users\\\\MY PC\\\\Desktop\\\\java\\\\SeleniumJava\\\\src\\\\Config\\\\Config.properties.exe\");\r\n\t\tproperty.load(input);\r\n\t\tSystem.out.println(property.getProperty(\"browser\"));\r\n\t\tSystem.out.println(property.getProperty(\"url\"));\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }", "public Properties getProperties();", "public abstract Properties getProperties();", "void readProperties(java.util.Properties p) {\n }", "private URL readURLFromProperties( Properties properties, String propertyName ) {\n\t\tURL url = null;\n\t\tString urlAsString = properties.getProperty(propertyName) ;\n\n\t\tif( urlAsString != null ) {\n\t\t\ttry {\n\t\t\t\turl = new URL( urlAsString);\n\t\t\t} catch( MalformedURLException e ) {\n\t\t\t\tLog.e( getClass( ).getCanonicalName(), \"Invalid URL for \"+propertyName, e);\n\t\t\t}\n\t\t} else {\n\t\t\tLog.e( getClass( ).getCanonicalName(), \"Missing property \"+propertyName);\n\t\t}\n\n\t\treturn url;\n\t}", "private static void loadPropertiesFromURL(String url, Properties properties) {\n \t\tif(url == null) throw new IllegalArgumentException(\"url cannot be null\");\n \t\tif(properties == null) throw new IllegalArgumentException(\"properties cannot be null\");\n \t\tURL propertiesLocation;\n \t\ttry {\n \t\t\tpropertiesLocation = new URL(url);\n \t\t} catch (MalformedURLException e1) {\n \t\t\tthrow new IllegalArgumentException(\"Could not load property file from url: \"+url, e1);\n \t\t}\n \t\ttry {\n \t\t\tproperties.load(propertiesLocation.openStream());\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "public String getProperty(String name)\n {\n return _propertyEntries.get(name);\n }", "private void getProperties() {\n\t\tProperties menu_properties = new Properties();\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tinput = new FileInputStream(PROPERTY_FILENAME);\n\t\t\tmenu_properties.load(input);\n\t\t\ttitle = menu_properties.getProperty(TITLE_PROPERTY);\n\t\t\tscreen_width = Integer.parseInt(menu_properties.getProperty(WIDTH_PROPERTY));\n\t\t\tscreen_height = Integer.parseInt(menu_properties.getProperty(HEIGHT_PROPERTY));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"Display file input does not exist!\");\n\t\t} catch (Exception ey) {\n\t\t\tSystem.err.println(\"The properties for the display could not be retrieved completely.\");\n \t} finally {\n \t\tif (input != null) {\n \t\t\ttry {\n \t\t\t\tinput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.err.println(\"Display file input cannot close!\");\n \t\t\t}\n \t\t}\n \t}\n }", "public static Properties readProperties(String filePath){\n try {\n FileInputStream fileInputStream= new FileInputStream(filePath);\n properties=new Properties();\n properties.load(fileInputStream);\n fileInputStream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return properties;\n }", "public static String readPropertyFile(String pathofFile, String Key)\r\n\t\t{\r\n\t\t\tString value = \"\";\r\n\t\t\treturn value;\r\n\t\t}", "protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }", "private Properties loadProperties(URL url, String suffix) throws IOException {\n \t\tif (suffix != null && !suffix.equals(\"\")) //$NON-NLS-1$\n \t\t\turl = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile() + suffix);\n \n \t\t// try to load saved configuration file\n \t\tProperties props = new Properties();\n \t\tInputStream is = null;\n \t\ttry {\n \t\t\tis = url.openStream();\n \t\t\tprops.load(is);\n \t\t\t// check to see if we have complete config file\n \t\t\tif (!EOF.equals(props.getProperty(EOF))) {\n \t\t\t\tthrow new IOException(Policy.bind(\"cfig.unableToLoad.incomplete\", url.toString())); //$NON-NLS-1$\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t// ignore ...\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn props;\n \t}", "public PropertyMap getPropertyMap(String propertyName);", "public ReadConfig() \n\t{\n\t\tFile scr = new File(\"./Configuration/config.properties\"); //property file\n\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(scr); // READ the DATA (read mode)\n\t\t\tpro = new Properties(); // pro object\n\t\t\tpro.load(fis); // Load method -load at the \n\n\t\t} catch (final Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Except is \" + e.getMessage());\n\t\t} \n\t}", "public static Properties loadProperties(@NonNull String path) throws IOException {\n File file = loadFile(path);\n if(file == null){ throw new IOException(\"没有找到文件\"); }\n return ReaderUtils.loadProperties(file);\n }", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "public abstract String getPropertyFile();", "private Properties readProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\t\n\t\tFileInputStream in = new FileInputStream(\"Config.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\treturn props;\n\t}", "Map<String, String> getConfigProperties();", "java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();", "public String readProperty(String property, String sFilePath) throws Exception {\n try {\n return readPropertyFile(sFilePath).get(property);\n } catch (Exception e) {\n throw new Exception(\"readProperty : \" + e.toString());\n }\n }", "public static Properties getProperties(String cfgFileName) {\n\n Properties cfgProperties = new Properties();\n FileInputStream stream = null;\n\n try {\n stream = new FileInputStream(new File(cfgFileName));\n\n cfgProperties.load(stream);\n\n } catch(FileNotFoundException e) {\n LOGGER.error(\"File not found.\", e);\n } catch(IOException e) {\n LOGGER.error(\"Load stream fail.\", e);\n } finally {\n try {\n if(null != stream) {\n stream.close();\n }\n } catch(IOException e) {\n LOGGER.info(\"Close Stream Fail!\", e);\n }\n }\n\n return cfgProperties;\n\n }", "PropertyRegistry getPropertyRegistry();", "public Properties propertiesSource() {\n\t\tSystem.out.println(\"code execution is reaching propertiesSource()\");\n\t\tProperties properties = new Properties();\n\t\tproperties.put(\"name of property in property file\", environment.getRequiredProperty(\n\t\t\t\t\"name of property in property file\"));\n\t\treturn properties;\n\t}", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "StringMap getProperties();", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public static Properties getProperties(String propFilename) {\n File propFile = new File(propFilename);\n\n if (!propFile.exists()) {\n log.error(\"ERROR: Properties file '{}' cannot be found or accessed.\", propFilename);\n System.exit(1);\n }\n\n Properties props = null;\n try {\n FileInputStream propFileIn = new FileInputStream(propFile);\n props = new Properties(System.getProperties());\n props.load(propFileIn);\n } catch (IOException ioe) {\n log.error(\"ERROR: Reading properties file '{}'\", propFilename, ioe);\n System.exit(1);\n }\n return props;\n }", "public ConfigMapDTO getMapProperty(final String name) {\n \t\treturn mapProperties.get(name);\n \t}", "public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }", "EProperties getProperties();", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "public static Properties getProperties(URL configUrl) {\n if(null == configUrl) {\n return null;\n }\n\n InputStream in = null;\n Properties properties = new Properties();\n\n try {\n in = configUrl.openStream();\n properties.load(in);\n } catch(IOException ex) {\n LOGGER.error(\"config failed, configURL = \" + configUrl, ex);\n throw new IllegalArgumentException(ex);\n } finally {\n if(null != in) {\n try {\n in.close();\n } catch(IOException ex) {\n LOGGER.info(\"close stream failed\", ex);\n }\n }\n }\n\n return properties;\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public static Map<String, String>loadPropertiesAsMap(final String filePath)\n throws FileNotFoundException, IOException {\n final Properties properties = loadProperties(filePath);\n return new HashMap<String, String>((Map) properties);\n }", "public String getPropertyFile() {\n return propertyFile;\n }", "public static String getConfigValues(String sProperty) {\n\t\tString sValue = \"\";\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tProperties prop = new Properties();\n\t\t\tinput = new FileInputStream(System.getProperty(\"user.dir\")\n\t\t\t\t\t+ \"\\\\Config\\\\Config\" + \".properties\");\n\t\t\tprop.load(input);\n\t\t\tsValue = prop.getProperty(sProperty);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn sValue;\n\t}", "public static Properties load(String propsFile)\n {\n \tProperties props = new Properties();\n FileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(propsFile));\n\t\t\tprops.load(fis); \n\t\t fis.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 \n return props;\n }", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "String getPropertyValue(String filename, String lang, String key);", "private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\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\treturn prop;\t \r\n\t}", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "protected void loadProperties(ClassLoader al, URL url) {\n try (InputStream is = url.openStream()) {\n if (is == null) {\n log(\"Could not load definitions from \" + url,\n Project.MSG_WARN);\n return;\n }\n Properties props = new Properties();\n props.load(is);\n for (String key : props.stringPropertyNames()) {\n name = key;\n classname = props.getProperty(name);\n addDefinition(al, name, classname);\n }\n } catch (IOException ex) {\n throw new BuildException(ex, getLocation());\n }\n }", "private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}", "public ConfigListDTO getListProperty(final String name) {\n \t\treturn listProperties.get(name);\n \t}", "private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "public static Properties loadProperties(String path) throws IOException {\n BufferedReader br = IOTools.asReader(path);\n Properties prop = new Properties();\n prop.load(br);\n br.close();\n return prop;\n }" ]
[ "0.6368529", "0.63253474", "0.6187668", "0.61382365", "0.5939136", "0.584199", "0.57076716", "0.56608945", "0.5608215", "0.5608215", "0.5601266", "0.5601016", "0.5535904", "0.5520584", "0.55069625", "0.55005324", "0.5499475", "0.54874575", "0.5484876", "0.5484876", "0.5472901", "0.5434897", "0.5413344", "0.53902", "0.5348295", "0.5331228", "0.53248054", "0.5322628", "0.5317091", "0.529561", "0.5273536", "0.52446157", "0.522624", "0.522555", "0.52245826", "0.5218583", "0.52087617", "0.52082187", "0.52057326", "0.51983154", "0.518603", "0.51857346", "0.5178532", "0.5170201", "0.5156895", "0.5141083", "0.51393956", "0.5138189", "0.5127929", "0.511146", "0.5104957", "0.5091073", "0.50893474", "0.5079424", "0.5068667", "0.50655186", "0.5060319", "0.50543725", "0.5053837", "0.50504184", "0.5039887", "0.503971", "0.5033891", "0.50320464", "0.5026897", "0.5024912", "0.5024402", "0.5022153", "0.5020885", "0.5019873", "0.5018101", "0.50092", "0.50069493", "0.500435", "0.50020033", "0.49976337", "0.49965134", "0.49891707", "0.4971758", "0.496921", "0.49687004", "0.49579424", "0.49503696", "0.49428278", "0.49404073", "0.49386346", "0.49341044", "0.49330845", "0.49264583", "0.49257347", "0.492342", "0.49199277", "0.49169168", "0.49122903", "0.4910521", "0.49082533", "0.49005875", "0.49000865", "0.4887581", "0.4884512" ]
0.7258977
0
todo does this work?
@RequestMapping("/{invoice}") public String viewInvoice(@PathVariable Invoice invoice, Model model){ model.addAttribute("invoice", invoice); return "invoice/invoice"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void poetries() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "public void gored() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void smell() {\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\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\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}", "private void m50366E() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract void mo70713b();", "@Override\n public int describeContents() { return 0; }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "protected void mo6255a() {\n }", "public abstract Object mo26777y();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public abstract void mo56925d();", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "StackManipulation cached();", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "protected boolean func_70041_e_() { return false; }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private void parseData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public abstract void mo27385c();", "public void skystonePos4() {\n }", "public abstract void mo6549b();", "public abstract String mo118046b();", "@Override\n protected void init() {\n }", "public void baocun() {\n\t\t\n\t}", "public abstract String mo13682d();", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "private void test() {\n\n\t}", "public abstract void mo27386d();", "public abstract String mo41079d();", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "public void identify() {\n\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo57277b();", "public abstract String mo9239aw();", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\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}" ]
[ "0.5543341", "0.5543262", "0.54862905", "0.54479694", "0.5393194", "0.5392699", "0.5372861", "0.535427", "0.53309494", "0.532836", "0.53267515", "0.5298509", "0.5245181", "0.52155626", "0.5202607", "0.5198022", "0.5186349", "0.5185266", "0.518122", "0.518122", "0.5145629", "0.51451015", "0.5131276", "0.5119795", "0.51172715", "0.5082466", "0.50794804", "0.50550497", "0.5050458", "0.50281304", "0.50140816", "0.5008754", "0.5004449", "0.50026804", "0.50017136", "0.4965416", "0.496526", "0.49646693", "0.4947471", "0.49411553", "0.49293768", "0.49136916", "0.49076277", "0.49065167", "0.4899537", "0.48842078", "0.48784113", "0.4871271", "0.48506382", "0.48495388", "0.48489228", "0.4842937", "0.48405236", "0.48371863", "0.48362094", "0.48243654", "0.48179352", "0.48162502", "0.48160046", "0.48117107", "0.48108467", "0.48101327", "0.48074976", "0.48058572", "0.4804759", "0.48011705", "0.48007616", "0.479979", "0.47963226", "0.4793243", "0.47929057", "0.47881544", "0.47751755", "0.4770046", "0.47690186", "0.47637227", "0.47582096", "0.4756887", "0.47557545", "0.4753845", "0.4751858", "0.47514424", "0.474891", "0.474891", "0.474891", "0.474891", "0.474891", "0.474891", "0.474891", "0.47406295", "0.4739339", "0.47380975", "0.4734379", "0.4734379", "0.47338334", "0.47331387", "0.473127", "0.473127", "0.473127", "0.473127", "0.473127" ]
0.0
-1
todo get getLoggedInUser, ain't that in commons ?
@RequestMapping(value = "/save", method = RequestMethod.POST) public String saveNewInvoice(@Valid @ModelAttribute Invoice invoice) { invoice.setCreatedUser(annonsePersonController.getLoggedInUser()); invoice.setLastEditedUser(annonsePersonController.getLoggedInUser()); invoice.setCreatedDate(Calendar.getInstance()); invoice.setLastEditedDate(Calendar.getInstance()); invoiceService.saveAndFlush(invoice); for(Sale sale: invoice.getSales()){ salesService.saveAndFlush(sale); } return "redirect:/annonseweb/invoice/" + invoice.getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User getCurrentLoggedInUser();", "public abstract User getLoggedInUser();", "LoggedUser getLoggedUser();", "public User getLoggedUser();", "private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "private boolean isLoggedInUser(){\n return true;\n }", "public String getLoggedInUser() {\n\t\treturn null;\r\n\t}", "User getPassedUser();", "public User getLoggedUser(){\n\t\treturn loggedUser;\n\t}", "public boolean isUserLoggedIn();", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "ApplicationUser getUser();", "User getUser();", "User getUser();", "UserDetails getCurrentUser();", "private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }", "java.lang.String getUser();", "private AuthenticatedUser getUser(AuthenticationContext context) {\n StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1);\n return stepConfig.getAuthenticatedUser();\n }", "public User getUserLogged() {\n return userLogged;\n }", "private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}", "public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}", "public CustomEmployee getLoggedUser() {\n return loggedUser;\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "@RequestMapping(\"/currentuser\")\n\tpublic User getCurrentlyLoggedInUser() throws NoLoginInfoFoundException, URISyntaxException {\n\t\tUser currentUser = null;\n\t\tString username = loginService.getCurrentUsername();\n\t\tif (username != null) {\n\t\t\tList<User> allUsers = myUserDetailsService.getAllUsers();\n\t\t\tfor (User user : allUsers) {\n\t\t\t\tif (user.getEmail().equals(username)) {\n\t\t\t\t\tcurrentUser = user;\n\t\t\t\t\tURI uri = new URI(Constants.orderBaseurl + Constants.orderGetUserUrl);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tResponseEntity<User> response = restTemplate.postForEntity(uri, currentUser, User.class);\n\t\t\t\t\t\tSystem.out.println(response.getBody());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new NoLoginInfoFoundException(\"Please login to continue\");\n\t\t}\n\n\t\treturn currentUser;\n\t}", "String getUser();", "String getUser();", "public User getUser();", "private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}", "public User getLoggedInUser() throws NoUserLoggedInException{\r\n\t\tif(this.user != null){\r\n\t\t\treturn this.user;\r\n\t\t}//-if\r\n\t\telse{\r\n\t\t\tthrow new NoUserLoggedInException(ExceptionType.ERROR);\r\n\t\t}//-else\r\n\t}", "boolean hasLoggedIn();", "@RequestMapping(value = CURRENT_LOGGED_IN_USER, method = GET)\n @ResponseStatus(ACCEPTED)\n public ResponseEntity<String> getCurrentLoggedInUser() {\n HashMap<String, UserDTO> response = new HashMap<String, UserDTO>();\n response.put(HASHMAP_USER_KEY, convertFromUser(userServiceImpl.getCurrentLoggedInUser()));\n return new ResponseEntity<String>(gson().toJson(response, getHashMapOfStringAndUserDTO()), ACCEPTED);\n\n }", "public abstract String getUser();", "@Override\r\n\tpublic User getAuthenticatedUser()\r\n\t{\n\t\treturn userWpJauRestClientImpl.getUser().getUser();\r\n\t}", "User getUserByLogin(String login);", "public User getLoggedInUser() {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n User retval = null;\n User managedUser = realm.where(User.class).equalTo(\"IsLoggedIn\", true).findFirst();\n if (managedUser != null) {\n retval = realm.copyFromRealm(managedUser);\n } else {\n retval = realm.copyFromRealm(realm.where(User.class).equalTo(\"UserId\", \"anonymous\").findFirst());\n }\n\n if (mRealm == null)\n realm.close();\n\n return retval;\n }", "@Override\n\tpublic User getCurrentUser() {\n\t\tint id = sessionService.getCurrentUserId();\n\t\treturn userDao.findById(id);\n\t}", "public UserDetails getLoggedInUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null && auth.isAuthenticated()\n && !(SecurityContextHolder.getContext().getAuthentication() instanceof AnonymousAuthenticationToken)) {\n return (UserDetails) auth.getPrincipal();\n } else {\n LOGGER.debug(\"Tried getting a logged in user, but none was available.\");\n return null;\n }\n }", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "public IUser getCurrentUser() {\n return currentUser;\n }", "protected AuthenticatedUser getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n return (AuthenticatedUser) auth.getPrincipal();\n }\n\n return null;\n }", "public User findCurrentUser() {\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n return userRepository.findByUsername(username);\n }", "User getUser(User user) ;", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "public abstract boolean isLoggedIn();", "@Override\n\tpublic UtenteBase getSessionUser() {\n\t\tUtenteBase user = (UtenteBase) getThreadLocalRequest().getSession().getAttribute(\"user\");\n\t\treturn user;\n\t}", "@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }", "User current_user(String name);", "@Override\r\n\tpublic User getCurrentUser() {\r\n\t\tString currentUserName = this.getCurrentUserName();\r\n\t\tUser userdetails = this.getByUsername(currentUserName);\r\n\t\treturn userdetails;\r\n\t}", "public static User getLoggedUser(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"loggedUserPrefs\", 0);\n User user = (new Gson()).fromJson(prefs.getString(\"user\", null), User.class);\n return user;\n }", "public User getLoggedUser() throws Exception {\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\r\n\t\tUserDetails loggedUser = null;\r\n\r\n\t\t//Verificar que ese objeto traido de sesion es el usuario\r\n\t\tif (principal instanceof UserDetails) {\r\n\t\t\tloggedUser = (UserDetails) principal;\r\n\t\t}\r\n\t\t\r\n\t\tUser myUser = userRepository\r\n\t\t\t\t.findByusername(loggedUser.getUsername()).orElseThrow(() -> new Exception(\"\"));\r\n\t\tif(loggedUserHasRole(\"ROLE_ADMIN\")) {\r\n\t\t\tmyUser.setIsAdmin(true);\r\n\t\t}\r\n\t\telse if(loggedUserHasRole(\"ROLE_SUPERVISOR\")) {\r\n\t\t\tmyUser.setIsSuper(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmyUser.setIsUser(true);\r\n\t\t}\r\n\t\treturn myUser;\r\n\t}", "public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}", "public User getUser(){\n\t\treturn currentUser;\n\t}", "private String getLoggedInUserName() {\n try {\n /*\n * Get the user information.\n */\n String userName = ServerUtilities.getServerUserInfo().getName();\n\n if(userName.isEmpty()) {\n return new String(\"Anonymous User\");\n }\n return userName;\n } catch (Exception ignore) {\n }\n\n return new String(\"Anonymous User\");\n }", "@Override\n\tpublic User getCurrentUser() {\n\t\treturn currentUser;\n\t}", "public abstract User getUser();", "@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}", "@Override\n public User getLoggedUser() {\n User tmp = null;\n try\n {\n\t\tFileInputStream fin = new FileInputStream(System.getProperty(\"user.home\")+\"\\\\user.ser\");\n\t\tObjectInputStream oos = new ObjectInputStream(fin); \n\t\ttmp = (User) oos.readObject();\n\t\toos.close();\t \n\t}\n catch(Exception ex){ ex.printStackTrace();return null;}\n \n return tmp;\n }", "public LocalUser getLoginUser(){\n\t\treturn new Select().from(LocalUser.class).executeSingle();\n\t}", "public Object getUserObject();", "public int getLoggedInUsers();", "protected User getUser(HttpSession session) {\r\n\t\t// get the user form from the session\r\n\t\treturn (User) session.getAttribute(Constants.USER_KEY);\r\n\t}", "public String getUserName();", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "String registerUserWithGetCurrentSession(User user);", "@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }", "public static String getCurrentUser(HttpServletRequest req) {\n HttpSession session = req.getSession();\n Cookie[] cookies = req.getCookies();\n //TODO: Make a decent check\n String user = (String)session.getAttribute(\"user\");\n if(user == null){\n for(Cookie c : cookies) {\n if(c.getName().equals(\"user\")) {\n user = c.getValue();\n session.setAttribute(\"user\", c.getValue());\n break;\n }\n }\n }\n return user;\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}", "UserWithPersistedAuth getUserWithToken();", "public User getUser (String userName);", "public String getUser()\n {\n return _user;\n }", "String getUserUsername();", "@Override\n public User getUser() {\n return user;\n }", "@Override\n public User getUser() {\n return user;\n }", "public String getUser(){\n \treturn user;\n }", "@Override\n\tpublic IUser getUser() {\n\t\treturn getInnerObject().getUser();\n\t}", "public void login(User user);", "@RequestMapping(value=\"get_current_user.do\",method= RequestMethod.POST)\r\n @ResponseBody\r\n public ServerResponse<User> getCurrentUser(HttpSession session){\r\n User user = (User) session.getAttribute(Constant.CURRENT_USER);\r\n if(user != null){\r\n return ServerResponse.createBySuccessData(user);\r\n }\r\n return ServerResponse.createByErrorMsg(\"User has not logged in.\");\r\n }", "String getUserName();", "String getUserName();", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "@RequestMapping(path = \"/logStatus\", method = RequestMethod.GET)\n public ResponseEntity checkIfUserIsLoggedIn(HttpSession session) {\n String username = (String) session.getAttribute(\"username\");\n User user = users.findFirstByUsername(username);\n\n if (user == null) {\n return new ResponseEntity<>(\"not logged in\", HttpStatus.BAD_REQUEST);\n }\n\n else {\n return new ResponseEntity<>(user, HttpStatus.OK);\n }\n\n }", "synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}", "public static UserDTO getLogedInUser(HttpServletRequest request){\n HttpSession session = request != null ? request.getSession(false) : null;\n UserDTO loggedInUser = session != null ? (UserDTO)session.getAttribute(\"authenticatedUser\") : null;\n \n return loggedInUser;\n \n }", "public User getCurrentUser() {\n return currentUser;\n }", "public User getUser() { return this.user; }", "@Nullable\n User getCurrentUser() {return currentUser;}", "public User getUser(String userName);", "public UserReference GetUserFromHTTPRequest(final HttpServletRequest req ){\n\t\tString uname = req.getRemoteUser();\n\t\t//String uname = \"administrator\";\n\t\tif( uname!=null && !\"\".equals(uname) )\n\t\t\treturn UserReference.forUser(uname);\n\t\treturn null;\n\t}", "User getBySession(String session);", "String getUserName(String userId);", "public User getUser(){return this.user;}", "public static String getUser() {\r\n return user;\r\n }", "java.lang.String getUsername();" ]
[ "0.8665831", "0.8489829", "0.8480846", "0.84785366", "0.7575885", "0.7464816", "0.7424271", "0.7384776", "0.7321976", "0.72150326", "0.71945703", "0.7160099", "0.71201", "0.7055397", "0.7055397", "0.70489967", "0.7010393", "0.7010238", "0.69969004", "0.6995466", "0.6903873", "0.68979466", "0.6894787", "0.68515277", "0.68515277", "0.68515277", "0.6848006", "0.68460166", "0.68460166", "0.6829516", "0.682155", "0.67976546", "0.6784649", "0.6756912", "0.6742259", "0.67232263", "0.6713391", "0.6692862", "0.66922", "0.6682915", "0.66710496", "0.66692567", "0.6668571", "0.66639405", "0.66464925", "0.6635088", "0.66249", "0.66224235", "0.66189253", "0.6612187", "0.66070586", "0.6596411", "0.6594952", "0.6587759", "0.65857726", "0.6564492", "0.65541863", "0.65527904", "0.6549579", "0.65485543", "0.6545756", "0.654107", "0.65284145", "0.650906", "0.65087026", "0.6490638", "0.64805996", "0.6475413", "0.6455017", "0.64523727", "0.64523727", "0.64523727", "0.6439079", "0.6434994", "0.6434521", "0.64344025", "0.64243954", "0.6423352", "0.6423352", "0.6416215", "0.64144623", "0.6401445", "0.64008164", "0.63970727", "0.63970727", "0.6393484", "0.6393484", "0.6393484", "0.6388998", "0.6385394", "0.6362001", "0.6360563", "0.6341279", "0.6336838", "0.6336109", "0.63335407", "0.63326037", "0.6330141", "0.6327457", "0.63256544", "0.6313793" ]
0.0
-1
enum Create LogicTreeProcessor by loading a job configuration from the available KVS. The configuration file is serialized as JSON.
public LogicTreeProcessor(Cache cache, String key) { Properties properties = new Gson().fromJson((String) cache.get(key), Properties.class); config = ConfigurationConverter.getConfiguration(properties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void load(String filename, Supervisor k) throws FileNotFoundException{\n String source = \"\";\n try {\n Scanner in = new Scanner(new FileReader(filename));\n while(in.hasNext()){\n source = source + in.next();\n }\n } catch (FileNotFoundException ex) {\n //throw ex;\n System.out.println(\"Could not read config file: \" + ex);\n System.out.println(\"trying to create a new one...\");\n String stsa = \"Done!\\n\";\n try (\n Writer writer = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(filename), \"utf-8\"))) {\n writer.write(\"\");\n writer.close();\n }\n \n catch (IOException ex1) {\n stsa = \"\";\n System.out.println(\"FAILED, SKIPPING CONFIG READ BECOUSE:\");\n Logger.getGlobal().warning(ex1.toString());\n System.out.println(\"Console version: \" + ex1.toString());\n }\n System.out.print(stsa);\n }\n LinkedList<String[]> raw = fetch(source);\n \n if(k.Logic == null){\n Logger.getGlobal().warning(\"ENGINE NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n if(k.Logic.Vrenderer == null){\n Logger.getGlobal().warning(\"ENGINE RENDERER NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n \n for(String[] x: raw){\n String value = x[1];\n if(!k.features_overrideAllStandard)\n switch(x[0]){\n case \"nausea\":\n int numValue = 0;\n try{\n numValue = Integer.parseInt(value);\n }\n catch(Exception e){\n quickTools.alert(\"configReader\", \"invalid nausea value\");\n break;\n }\n if(numValue > 0){\n k.Logic.Vrenderer.dispEffectsEnabled = true;\n }\n //k.Logic.Vrenderer.di\n break;\n default:\n\n break;\n }\n customFeatures(x[0], x[1], k);\n }\n }", "public static void main(String[] args) {\n\t\tString configfileLocation = System.getProperty(\"user.dir\") + File.separator + \"WebContent\" +File.separator + \"config.json\";\n\t\tlong size = new File(configfileLocation).length()/(1024*1024);\n\t\t\n\t\tSystem.out.println(size);\n\t\tString content = null;\n\t\tStringBuilder contentBuilder = new StringBuilder();\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(configfileLocation)))\n\t {\n\t \n\t String sCurrentLine;\n\t while ((sCurrentLine = br.readLine()) != null)\n\t {\n\t \tcontentBuilder.append(sCurrentLine).append(\"\\n\");\n\t }\n\t }\n\t catch (IOException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t\tcontent = contentBuilder.toString();\n\t\tJSONParser jsonParser = new JSONParser(content);\n\t\tJSONObject obj = jsonParser.parseJSONObject();\n\t\t\n\t\t\n\t\t\n\t\t// step 1: create a workflow\n\t\tWorkflowVisualization frame = new WorkflowVisualization();\t\n\t\tDiagnosis w = new Diagnosis();\n\t\t\n\t\t// step 2: Design a workflow\n\t\tw.design();\n\t\tframe.drawWorkflowGraph(w);\n\t\t\n\t\t/*\n\t\tString workflowplanner = obj.get(\"WorkflowPlanner\").toString();\n\t\tString workflowexecutor = obj.get(\"WorkflowExecutor\").toString();\n\t\t\n\t\tSystem.out.println(workflowplanner);\n\t\t\n\t\t\n\t\tWorkflowPlanner wp = null;\n\t\ttry {\n\t\t\tClass<?> clazz = Class.forName(\"dataview.planners.WorkflowPlanner\");\n\t\t\t\n\t\t\tConstructor<?> constructor= clazz.getDeclaredConstructor(dataview.models.Workflow.class);\n\t\t\twp = (WorkflowPlanner) constructor.newInstance(w);\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tGlobalSchedule gsch = wp.plan();\n\t\t\n//\t\tSystem.out.println()\n\t\t\n\t\tSystem.out.println(gsch.getSpecification());\n\t\t*/\n\n\t\t// step 3: choose a workflow planner\n\t\tWorkflowPlanner wp = new WorkflowPlanner_T_Cluster(w);\n\t\tGlobalSchedule gsch = wp.plan();\n\t\ttry {\n\t\t// step 4: choose a workflow executor\t\n\t\t\tWorkflowExecutor we = new WorkflowExecutor_Beta(obj, gsch);\n\t\t\twe.execute();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "boolean loadFromCSProcessorCfg();", "private LSMEngineBuilder<T> buildLevelProcessors(ApplicationContext applicationContext) {\n LevelProcessorChain<T, IInsertionRequest, InsertRequestContext> insertionLevelProcessChain =\n generateLevelProcessorsChain(applicationContext.getInsertionLevelProcessClass());\n LevelProcessorChain<T, IDeletionRequest, DeleteRequestContext> deletionLevelProcessChain =\n generateLevelProcessorsChain(applicationContext.getDeletionLevelProcessClass());\n LevelProcessorChain<T, IQueryRequest, QueryRequestContext> queryLevelProcessChain =\n generateLevelProcessorsChain(applicationContext.getQueryLevelProcessClass());\n return buildQueryManager(queryLevelProcessChain)\n .buildInsertionManager(insertionLevelProcessChain)\n .buildDeletionManager(deletionLevelProcessChain);\n }", "public Engine build() {\n this.extensions.add(new CoreExtension());\n \n // load extensions\n this.extensions.forEach(extension -> {\n this.renderers.putAll(extension.getRenderers());\n this.directives.putAll(extension.getDirectives());\n this.nodeParsers.putAll(extension.getNodeParsers());\n this.filters.putAll(extension.getFilters());\n this.tests.putAll(extension.getTests());\n this.unaryOperators.putAll(extension.getUnaryOperators());\n this.binaryOperators.putAll(extension.getBinaryOperators());\n this.factories.addAll(extension.getNodeVisitorFactories());\n this.safeNodes.addAll(extension.getSafeNodes());\n });\n \n // create an operator token parser\n TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{}));\n TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{}));\n TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser);\n \n // create a execute token parser\n TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false);\n TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false);\n TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser));\n this.starts.add(this.executeOpen);\n \n // create a print token parser\n TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false);\n TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false);\n TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser));\n this.starts.add(this.printOpen);\n \n // create a comment token parser\n TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false);\n TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false);\n TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose);\n TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser);\n this.starts.add(this.commentOpen);\n \n // create a text token parser\n TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts);\n TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile(\"^.*\", Pattern.DOTALL | Pattern.MULTILINE), false);\n \n TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF);\n this.tokenizerBuilder.parser(principal);\n Tokenizer tokenizer = this.tokenizerBuilder.build();\n \n ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators);\n \n Engine engine = new Engine(this.environment, expressionParser,\n renderers, directives, nodeParsers, \n filters, tests, factories, safeNodes,\n tokenizer);\n return engine;\n }", "private Map<String, TaskSet> loadTaskConfig(InputStream configuration)\n throws JAXBException, SAXException, IOException {\n Map<String, TaskSet> workflowConfiguration = new HashMap<>();\n\n // Instantiate a parser for XML workflow-curation configurations.\n JAXBContext jaxbContext = JAXBContext.newInstance(WorkflowCuration.class);\n Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\n\n // Give our configuration schema to the parser.\n SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n Schema schema = schemaFactory.newSchema(CurationTaskConfig.class.getResource(\"workflow-curation.xsd\"));\n unmarshaller.setSchema(schema);\n\n // Parse the configuration.\n WorkflowCuration workflows;\n try (Reader configurationReader\n = new InputStreamReader(configuration, StandardCharsets.UTF_8)) {\n workflows = (WorkflowCuration) unmarshaller.unmarshal(configurationReader);\n }\n\n // Build the mapping from Collection Handle to TaskSet.\n for (MappingType mapping : workflows.getTasksetMap().getMapping()) {\n List<FlowStep> flowsteps = new ArrayList<>(mapping.getTaskset().getFlowstep().size());\n for (FlowstepType step : mapping.getTaskset().getFlowstep()) {\n FlowStep flowstep = new FlowStep(step.getName(), step.getQueue());\n for (TaskType task : step.getTask()) {\n Task stepTask = new Task(task.getName());\n for (Object thing : task.getWorkflowOrNotify()) {\n if (thing instanceof WorkflowType) {\n WorkflowType action = (WorkflowType) thing;\n stepTask.addPower(action.getValue().value());\n } else if (thing instanceof NotifyType) {\n NotifyType notify = (NotifyType) thing;\n stepTask.addContact(notify.getOn().value(), notify.getValue());\n } else {\n // SNH this branch is forbidden by the schema.\n }\n }\n flowstep.addTask(stepTask);\n }\n flowsteps.add(flowstep);\n }\n\n workflowConfiguration.put(mapping.getCollectionHandle(),\n new TaskSet(mapping.getTaskset().getName(), flowsteps));\n }\n\n return workflowConfiguration;\n }", "public Compactor build(final Config config) {\n final TObjectLongMap<String> modMap = config.getModMap();\n final long dotNodes = config.getDotNodes();\n final long dotEdges = config.getDotEdges();\n modMap.put(\"node_read\", dotNodes);\n modMap.put(\"node_write\", dotNodes);\n modMap.put(\"node_create\", dotNodes);\n modMap.put(\"node_update\", dotNodes);\n modMap.put(\"node_delete\", dotNodes);\n modMap.put(\"edge_read\", dotEdges);\n modMap.put(\"edge_write\", dotEdges);\n modMap.put(\"edge_create\", dotNodes);\n modMap.put(\"edge_update\", dotNodes);\n modMap.put(\"edge_delete\", dotNodes);\n modMap.put(\"clean_ok\", config.getDotOk());\n \n // Iterators for input\n final PropertyContainerEventProducer<NodeEvent> nodeProducer = new GlopsNodeEventProducer(config, sourceDb);\n final PropertyContainerEventProducer<EdgeEvent> edgeProducer = new GlopsEdgeEventProducer(config, sourceDb);\n \n return new Compactor(config, nodeProducer, edgeProducer);\n }", "@Override\n public AlgorithmProcess createProcess() {\n return new FileLoaderProcess(file);\n }", "ClassLoaderConfigType createClassLoaderConfigType();", "@Override\r\n\t\t\tpublic Object construct() {\n\t\t\t\tXMLUtils xml = new XMLUtils();\r\n\t\t\t\tConfigBean cfg = xml.getconfigXML();\r\n\t\t\t\tFile f = new File(cfg.getFilepath());\r\n\t\t\t\tFile fs[];\r\n\t\t\t\tif (f.exists() && f.isFile()) {\r\n\t\t\t\t\tfs = f.getParentFile().listFiles();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfs = f.listFiles();\r\n\t\t\t\t}\r\n\t\t\t\tif (fs != null) {\r\n\t\t\t\t\tfor (File of : fs) {\r\n\t\t\t\t\t\tif(MainFrame.getInstance().getManual().isSelected()){\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (of.isFile()) {\r\n\t\t\t\t\t\t\tMainFrame.getInstance().getProcess().start(of);\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\treturn null;\r\n\t\t\t}", "interface DefinitionStages {\n /**\n * The first stage of a Job definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Job definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }\n\n /**\n * The stage of the job definition allowing to specify Cluster.\n */\n interface WithCluster {\n /**\n * Specifies cluster.\n * @param cluster the cluster parameter value\n * @return the next definition stage\n*/\n WithNodeCount withCluster(ResourceId cluster);\n }\n\n /**\n * The stage of the job definition allowing to specify NodeCount.\n */\n interface WithNodeCount {\n /**\n * Specifies nodeCount.\n * @param nodeCount The job will be gang scheduled on that many compute nodes\n * @return the next definition stage\n*/\n WithStdOutErrPathPrefix withNodeCount(int nodeCount);\n }\n\n /**\n * The stage of the job definition allowing to specify StdOutErrPathPrefix.\n */\n interface WithStdOutErrPathPrefix {\n /**\n * Specifies stdOutErrPathPrefix.\n * @param stdOutErrPathPrefix The path where the Batch AI service will upload stdout and stderror of the job\n * @return the next definition stage\n*/\n WithCreate withStdOutErrPathPrefix(String stdOutErrPathPrefix);\n }\n\n /**\n * The stage of the job definition allowing to specify Caffe2Settings.\n */\n interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffe2Settings(Caffe2Settings caffe2Settings);\n }\n\n /**\n * The stage of the job definition allowing to specify CaffeSettings.\n */\n interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffeSettings(CaffeSettings caffeSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify ChainerSettings.\n */\n interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CntkSettings.\n */\n interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCntkSettings(CNTKsettings cntkSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify Constraints.\n */\n interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }\n\n /**\n * The stage of the job definition allowing to specify ContainerSettings.\n */\n interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next definition stage\n */\n WithCreate withContainerSettings(ContainerSettings containerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CustomToolkitSettings.\n */\n interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify EnvironmentVariables.\n */\n interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }\n\n /**\n * The stage of the job definition allowing to specify ExperimentName.\n */\n interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }\n\n /**\n * The stage of the job definition allowing to specify InputDirectories.\n */\n interface WithInputDirectories {\n /**\n * Specifies inputDirectories.\n * @param inputDirectories the inputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withInputDirectories(List<InputDirectory> inputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify JobPreparation.\n */\n interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }\n\n /**\n * The stage of the job definition allowing to specify OutputDirectories.\n */\n interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withOutputDirectories(List<OutputDirectory> outputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify Priority.\n */\n interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }\n\n /**\n * The stage of the job definition allowing to specify TensorFlowSettings.\n */\n interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<Job>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCaffe2Settings, DefinitionStages.WithCaffeSettings, DefinitionStages.WithChainerSettings, DefinitionStages.WithCntkSettings, DefinitionStages.WithConstraints, DefinitionStages.WithContainerSettings, DefinitionStages.WithCustomToolkitSettings, DefinitionStages.WithEnvironmentVariables, DefinitionStages.WithExperimentName, DefinitionStages.WithInputDirectories, DefinitionStages.WithJobPreparation, DefinitionStages.WithOutputDirectories, DefinitionStages.WithPriority, DefinitionStages.WithTensorFlowSettings {\n }\n }", "private static void buildFramework() {\n \tLOG.info(\"Begin building of shared framework.\");\n \t\n \tLOG.debug(\"Create a IterativeFileReader.\");\n \tIterativeFileReader iterativeFileReader = (IterativeFileReader) ReaderFactory.instance().getIterativeFileReader();\n \tLOG.debug(\"Create a TextFileLineReader.\");\n \tTextFileLineReader textFileLineReader = (TextFileLineReader) ReaderFactory.instance().getTextFileLineReader();\n \t\n \t// Setup IterativeFileReader\n \tFile dir = new File(clArgs.buildFrameworkInDir);\n \titerativeFileReader.setFile(dir);\n \titerativeFileReader.setFileFilter(FileUtil.acceptOnlyClusterFilesFilter());\n \titerativeFileReader.setReader(textFileLineReader);\n \t\n \t// Setup processor\n \tLOG.debug(\"Create a SharedFrameworkProcessor.\");\n \tSharedFrameworkProcessor sharedFrameworkProcessor = new SharedFrameworkProcessor();\n \ttextFileLineReader.setProcessor(sharedFrameworkProcessor);\n \t// Get informed about the finishing of each cluster (file) to reset the processor's status\n \ttextFileLineReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t// Get informed about the finishing of all clusters to give each cluster in the generated graph a pretty id\n \titerativeFileReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t\n \titerativeFileReader.read();\n \t\n \tLOG.info(\"Finished building shared framework.\");\n }", "public WorkflowConfiguration() {\n\t\t\n\t}", "public interface StageConfig extends Config<StageConfig> {\r\n\r\n /**\r\n * Get the name of the stage\r\n * @return Name of the stage\r\n */\r\n String getStageName();\r\n\r\n /**\r\n * Get the fully-qualified class the stage is an instance of\r\n * @return\r\n */\r\n String getStageClass();\r\n\r\n /**\r\n * Get name for the StageExecutionMode to be used for this stage. This should\r\n * be the name of the enum (e.g. NEXT_DOC, NEXT_STAGE, etc..) It is used to\r\n * instantiate the enum from a serialized configuration.\r\n * @return Name for the StageExecutionMode\r\n */\r\n String getStageExceptionModeClass();\r\n\r\n /**\r\n * Get StageExecutionMode for the Stage. If stage does not set this explicitly,\r\n * the stageExecutionMode setting for the pipeline will be applied.\r\n * @return StageExecutionMode instance\r\n */\r\n StageExceptionMode getStageExceptionMode();\r\n\r\n /**\r\n * Set the StageExecutionMode for this stage to the specified value. If stage\r\n * does not set this explicitly, the stageExecutionMode setting for the pipeline\r\n * will be applied.\r\n * @param mode StageExceptionMode to apply\r\n */\r\n void setStageExceptionMode(StageExceptionMode mode);\r\n}", "public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }", "public interface ConfigFileLoader {\n\n /**\n * Save the map of the node instance,\n * to the file instance.\n *\n * @throws IOException When it fails to save {@see IOException}.\n */\n void save() throws IOException;\n\n /**\n * Load the map of the file instance,\n * in the node instance.\n *\n * @throws IOException When it fails to load {@see IOException}.\n */\n void load() throws IOException;\n\n /**\n * Change the file instance to new file instance.\n *\n * @param file new file instance.\n */\n void setNewFile(File file);\n\n}", "public interface ConfigurationManager {\n\n String loadRunAsUser();\n\n void storeRunAsUser(String username);\n\n List<String> loadEnabledProjects();\n\n void storeEnabledProjects(List<String> projectKeys);\n\n Map<String, String> loadBranchFilters();\n \n void storeBranchFilters(Map<String, String> branchFilters);\n \n /**\n * @since v1.2\n */\n Collection<String> loadCrucibleUserNames();\n\n /**\n * @since v1.2\n */\n void storeCrucibleUserNames(Collection<String> usernames);\n\n /**\n * @since v1.3\n */\n Collection<String> loadCrucibleGroups();\n\n /**\n * @since v1.3\n */\n void storeCrucibleGroups(Collection<String> groupnames);\n\n CreateMode loadCreateMode();\n\n void storeCreateMode(CreateMode mode);\n\n /**\n * @since v1.4.1\n */\n boolean loadIterative();\n\n /**\n * @since v1.4.1\n */\n void storeIterative(boolean iterative);\n}", "public ProcessingTarget buildGraph(){\n \t\tgetTibbrGraph();\n \n \t\t//Init a project - and therefore a workspace\n \t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n \t\tpc.newProject();\n \t\tWorkspace workspace = pc.getCurrentWorkspace();\n \n \t\t//Get a graph model - it exists because we have a workspace\n \t\tGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \t\tAttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n \t\tImportController importController = Lookup.getDefault().lookup(ImportController.class);\n \n \t\t//Import file \n \t\tContainer container;\n \t\ttry {\n \t\t\tFile f = new File(this.filename);\n \t\t\tcontainer = importController.importFile(f);\n \t\t\tcontainer.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED\n \t\t container.setAllowAutoNode(false); //Don't create missing nodes\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \n \t\t//Append imported data to GraphAPI\n \t\timportController.process(container, new DefaultProcessor(), workspace);\n \n \t\t//See if graph is well imported\n \t\t//DirectedGraph graph = graphModel.getDirectedGraph();\n \t\t//---------------------------\n \n \t\t//Layout for 1 minute\n \t\tAutoLayout autoLayout = new AutoLayout(5, TimeUnit.SECONDS);\n \t\tautoLayout.setGraphModel(graphModel);\n \t\t//YifanHuLayout firstLayout = new YifanHuLayout(null, new StepDisplacement(1f));\n \t\tForceAtlasLayout secondLayout = new ForceAtlasLayout(null);\n \t\tAutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty(\"forceAtlas.adjustSizes.name\", Boolean.TRUE, 0.1f);//True after 10% of layout time\n \t\tAutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty(\"forceAtlas.repulsionStrength.name\", new Double(10000.), 0f);//500 for the complete period\n \t\t//autoLayout.addLayout( firstLayout, 0.5f );\n \t\tautoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});\n \t\tautoLayout.execute();\n \n \n \n \n \n \t\t//Rank color by Degree\n \t\tRankingController rankingController = Lookup.getDefault().lookup(RankingController.class);\n\t\tRanking<?> degreeRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, Ranking.DEGREE_RANKING);\n\t\tAbstractColorTransformer<?> colorTransformer = (AbstractColorTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_COLOR);\n \n \t\tcolorTransformer.setColors(new Color[]{new Color(0xFEF0D9), new Color(0xB30000)});\n \t\trankingController.transform(degreeRanking,colorTransformer);\n \n \t\t//Get Centrality\n \t\tGraphDistance distance = new GraphDistance();\n \t\tdistance.setDirected(true);\n \t\tdistance.execute(graphModel, attributeModel);\n \n \t\t//Rank size by centrality\n \t\tAttributeColumn centralityColumn = attributeModel.getNodeTable().getColumn(GraphDistance.BETWEENNESS);\n\t\tRanking<?> centralityRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> sizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_SIZE);\n \t\tsizeTransformer.setMinSize(3);\n \t\tsizeTransformer.setMaxSize(20);\n \t\trankingController.transform(centralityRanking,sizeTransformer);\n \n \t\t//Rank label size - set a multiplier size\n\t\tRanking<?> centralityRanking2 = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> labelSizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.LABEL_SIZE);\n \t\tlabelSizeTransformer.setMinSize(1);\n \t\tlabelSizeTransformer.setMaxSize(3);\n \t\trankingController.transform(centralityRanking2,labelSizeTransformer);\n \n \t\tfloat[] positions = {0f,0.33f,0.66f,1f};\n \t\tcolorTransformer.setColorPositions(positions);\n \t\tColor[] colors = new Color[]{new Color(0x0000FF), new Color(0xFFFFFF),new Color(0x00FF00),new Color(0xFF0000)};\n \t\tcolorTransformer.setColors(colors);\n \n \t\t\n \t\t//---------------------------------\n \t\t//Preview configuration\n \t\tPreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);\n \t\tPreviewModel previewModel = previewController.getModel();\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.DIRECTED, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR, Color.BLACK);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.NODE_LABEL_COLOR, new DependantOriginalColor(Color.YELLOW));\n \t\t\n \t\t\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED, Boolean.TRUE);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 100);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 1f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_THICKNESS,0.2f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.ARROW_SIZE,0.2f);\n \n \t\tpreviewController.refreshPreview();\n \n \t\t//----------------------------\n \n \t\t//New Processing target, get the PApplet\n \t\tProcessingTarget target = (ProcessingTarget) previewController.getRenderTarget(RenderTarget.PROCESSING_TARGET);\n \t\t\n \t\tPApplet applet = target.getApplet();\n \t\tapplet.init();\n \n \t\t// Add .1 second delay to fix stability issue - per Gephi forums\n try {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \n \t\t\n \t\t//Refresh the preview and reset the zoom\n \t\tpreviewController.render(target);\n \t\ttarget.refresh();\n \t\ttarget.resetZoom();\n \t\ttarget.zoomMinus();\n \t\ttarget.zoomMinus();\n \t\t\n \t\treturn target;\n \t\t\n \n \t}", "public abstract CONFIG build();", "public interface EquationFactory {\n\n /**\n * Creates a new ready-to-use data structure from configuration file\n *\n * @param file the configuration\n *\n * @return a map between group and the equation of the particular group\n *\n * @throws IOException if any IO errors occur.\n */\n Map<String, Equation> compile(File file) throws IOException;\n\n /**\n * Creates a new ready-to-use data structure from input stream\n *\n * @param stream the stream configuration\n *\n * @return a map between group and the equation of the particular group\n *\n * @throws IOException if any IO errors occur.\n */\n Map<String, Equation> compile(InputStream stream) throws IOException;\n\n}", "private void initFromGraph() {\n CHPreparationGraph prepareGraph;\n if (chConfig.getTraversalMode().isEdgeBased()) {\n TurnCostStorage turnCostStorage = graph.getTurnCostStorage();\n if (turnCostStorage == null) {\n throw new IllegalArgumentException(\"For edge-based CH you need a turn cost storage\");\n }\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n CHPreparationGraph.TurnCostFunction turnCostFunction = CHPreparationGraph.buildTurnCostFunctionFromTurnCostStorage(graph, chConfig.getWeighting());\n prepareGraph = CHPreparationGraph.edgeBased(graph.getNodes(), graph.getEdges(), turnCostFunction);\n nodeContractor = new EdgeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n } else {\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n prepareGraph = CHPreparationGraph.nodeBased(graph.getNodes(), graph.getEdges());\n nodeContractor = new NodeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n }\n maxLevel = nodes;\n // we need a memory-efficient priority queue with an efficient update method\n // TreeMap is not memory-efficient and PriorityQueue does not support an efficient update method\n // (and is not memory efficient either)\n sortedNodes = new MinHeapWithUpdate(prepareGraph.getNodes());\n logger.info(\"Building CH prepare graph, {}\", getMemInfo());\n StopWatch sw = new StopWatch().start();\n CHPreparationGraph.buildFromGraph(prepareGraph, graph, chConfig.getWeighting());\n logger.info(\"Finished building CH prepare graph, took: {}s, {}\", sw.stop().getSeconds(), getMemInfo());\n nodeContractor.initFromGraph();\n }", "abstract public Config createConfig(String path);", "Node(Path workDir) {\n vaultManager = new VaultManager(new PersistentVaultService(workDir.resolve(\"vault\")));\n\n clusterService = createClusterService(addr);\n\n raftManager = new Loza(clusterService, workDir);\n\n List<RootKey<?, ?>> rootKeys = List.of(NodeConfiguration.KEY);\n\n List<ConfigurationStorage> localStorage = List.of(new LocalConfigurationStorage(vaultManager));\n\n cfgManager = new ConfigurationManager(rootKeys, localStorage);\n\n metaStorageManager = new MetaStorageManager(\n vaultManager,\n cfgManager,\n clusterService,\n raftManager\n );\n\n cfgStorage = new DistributedConfigurationStorage(metaStorageManager, vaultManager);\n }", "private synchronized void buildConcreteProcessor(Environment env) throws Exception {\n if (this.concreteProcessor != null && this.source.getLastModified() == this.lastModified) {\n // Nothing changed\n return;\n }\n\n long startTime = System.currentTimeMillis();\n\n // Dispose the old processor, if any\n if (this.concreteProcessor != null) {\n this.concreteProcessor.markForDisposal();\n }\n\n // Get a builder\n TreeBuilder builder = (TreeBuilder)this.builderSelector.select(\"sitemap\");\n ConcreteTreeProcessor newProcessor = new ConcreteTreeProcessor(this);\n long newLastModified;\n this.setupLogger(newProcessor);\n //FIXME (SW): why do we need to enterProcessor here?\n CocoonComponentManager.enterEnvironment(env, this.manager, this);\n try {\n if (builder instanceof Recomposable) {\n ((Recomposable)builder).recompose(this.manager);\n }\n builder.setProcessor(newProcessor);\n\n newLastModified = this.source.getLastModified();\n\n ProcessingNode root = builder.build(this.source);\n\n newProcessor.setProcessorData(builder.getSitemapComponentManager(), root, builder.getDisposableNodes());\n } finally {\n CocoonComponentManager.leaveEnvironment();\n this.builderSelector.release(builder);\n }\n\n if (this.getLogger().isDebugEnabled()) {\n double time = (this.lastModified - startTime) / 1000.0;\n this.getLogger().debug(\"TreeProcessor built in \" + time + \" secs from \" + this.source.getURI());\n }\n\n // Switch to the new processor (ensure it's never temporarily null)\n this.concreteProcessor = newProcessor;\n this.lastModified = newLastModified;\n }", "protected Configuration createConfiguration()\r\n/* 76: */ {\r\n/* 77:119 */ this.configuration_d.setNumOfIterations(Integer.parseInt(this.jTextField1.getText()));\r\n/* 78:120 */ this.configuration_d.setPopulationSize(Integer.parseInt(this.popSize_d.getText()));\r\n/* 79:121 */ ((GAConfiguration)this.configuration_d).setCrossoverThreshold(Double.valueOf(this.jTextField2.getText()).doubleValue());\r\n/* 80:122 */ ((GAConfiguration)this.configuration_d).setMutationThreshold(Double.valueOf(this.jTextField3.getText()).doubleValue());\r\n/* 81:123 */ ((GAConfiguration)this.configuration_d).setMethod((String)this.methodList_d.getSelectedItem());\r\n/* 82:124 */ return this.configuration_d;\r\n/* 83: */ }", "private GroundProgram groundInternal(RuntimeConfig config) {\n for (Map.Entry<String, String> entry : config.options.entrySet()) {\n Config.setProperty(entry.getKey(), entry.getValue(), false);\n }\n\n // Specially check if we need to re-init the logger.\n initLogger();\n\n log.info(\"PSL Grounding API Version {}\", Version.getFull());\n config.validate();\n\n // Ensure that all atoms are stored (unless overwritten).\n Options.ATOM_STORE_STORE_ALL_ATOMS.set(true);\n\n // Apply top-level options again after validation (since options may have been changed or added).\n for (Map.Entry<String, String> entry : config.options.entrySet()) {\n Config.setProperty(entry.getKey(), entry.getValue(), false);\n }\n\n List<Rule> rules = new ArrayList<Rule>();\n for (Rule rule : config.rules.getRules()) {\n rules.add(rule);\n }\n\n DataStore dataStore = initDataStore(config);\n loadData(dataStore, config, RuntimeConfig.KEY_INFER);\n\n Set<StandardPredicate> closedPredicates = config.getClosedPredicates(RuntimeConfig.KEY_INFER);\n\n Partition targetPartition = dataStore.getPartition(Runtime.PARTITION_NAME_TARGET);\n Partition observationsPartition = dataStore.getPartition(Runtime.PARTITION_NAME_OBSERVATIONS);\n\n Database database = dataStore.getDatabase(targetPartition, closedPredicates, observationsPartition);\n AtomStore atomStore = database.getAtomStore();\n TermStore store = new DummyTermStore(database.getAtomStore());\n\n final List<GroundRuleInfo> groundRules = new ArrayList<GroundRuleInfo>();\n\n Map<Integer, AtomInfo> groundAtoms = null;\n if (!RuntimeOptions.OUTPUT_ALL_ATOMS.getBoolean()) {\n groundAtoms = new HashMap<Integer, AtomInfo>();\n }\n\n final Map<Integer, AtomInfo> finalGroundAtoms = groundAtoms;\n Grounding.setGroundRuleCallback(new Grounding.GroundRuleCallback() {\n public synchronized void call(GroundRule groundRule) {\n groundRules.add(mapGroundRule(rules.indexOf(groundRule.getRule()), atomStore, groundRule, finalGroundAtoms));\n }\n });\n\n Grounding.groundAll(rules, store, database);\n Grounding.setGroundRuleCallback(null);\n\n if (groundAtoms == null) {\n groundAtoms = new HashMap<Integer, AtomInfo>(atomStore.size());\n for (GroundAtom groundAtom : atomStore) {\n groundAtoms.put(Integer.valueOf(groundAtom.getIndex()), new AtomInfo(groundAtom));\n }\n }\n\n store.close();\n database.close();\n dataStore.close();\n\n return new GroundProgram(groundAtoms, groundRules);\n }", "abstract public Core createCore(String configPath, String factoryConfigPath, Object systemContext);", "public PipelineConfig() {\n super();\n }", "private Queue<PCB> loadToJobQueue() throws FileNotFoundException {\r\n\t\ttry {\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(FILENAME));\r\n\t\t\tfr = new FileReader(FILENAME);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\tint pid = 0;\r\n\t\t\tint cpuBurst = 0;\r\n\t\t\tint memory = 0;\r\n\t\t\tint IOBurst = 0;\r\n\t\t\tint counter = 0;\r\n\r\n\t\t\tString sCurrentLine;\r\n\t\t\tbr.readLine(); // first Line \"Name CPU Memory IO \" etc..\r\n\t\t\t// Cycle contains:\r\n\t\t\t// cpuBurst, memory, IOBurst\r\n\t\t\twhile ((sCurrentLine = br.readLine()) != null ) {\r\n\r\n\t\t\t\t\r\n\t\t\t\tString[] PCBInfo = sCurrentLine.split(\"\t\");\t\t\r\n\t\t\t\tpid = Integer.parseInt(PCBInfo[0]); // Name of Process\r\n\t\t\t\tPCB pcb1 = new PCB(pid);\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[1]);\r\n\t\t\t\tmemory = Math.abs(Integer.parseInt(PCBInfo[2])); //First memory should be positive\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[3]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 1\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[4]);\r\n\t\t\t\tmemory = Integer.parseInt(PCBInfo[5]);\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[6]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 2\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[7]);\r\n\t\t\t\tmemory = Integer.parseInt(PCBInfo[8]);\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[9]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 3\r\n\t\t\t\tif (PCBInfo.length == 10) {\r\n\t\t\t\t\tJobQueue.enqueue(pcb1);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[10]);\r\n\t\t\t\tmemory = Integer.parseInt(PCBInfo[11]);\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[12]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 4\r\n\r\n\t\t\t\tif (PCBInfo.length == 14) { // Has only 5 Cycles\r\n\t\t\t\t\t\r\n\t\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[13]);\r\n\t\t\t\t\tmemory = 0;\r\n\t\t\t\t\tIOBurst = 0;\r\n\t\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 5\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (PCBInfo.length == 17) { // if it has a 6th cycles\r\n\t\t\t\t\t\r\n\t\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[13]);\r\n\t\t\t\t\tmemory = Integer.parseInt(PCBInfo[14]);\r\n\t\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[15]);\r\n\t\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 5\r\n\t\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[16]);\r\n\t\t\t\t\tmemory = 0;\r\n\t\t\t\t\tIOBurst = 0;\r\n\t\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 6\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJobQueue.enqueue(pcb1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\r\n\t\t} catch (\r\n\r\n\t\tIOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} finally {\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tif (br != null)\r\n\t\t\t\t\tbr.close();\r\n\r\n\t\t\t\tif (fr != null)\r\n\t\t\t\t\tfr.close();\r\n\r\n\t\t\t} catch (IOException ex) {\r\n\r\n\t\t\t\tex.printStackTrace();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn JobQueue;\r\n\r\n\t}", "FileLoader createJob(Reader reader);", "private INodeInstance createInstances(Config cfg, TaskInstancePlan ip,\n Vertex vertex, OperationMode operationMode,\n Map<String, String> inEdges,\n Map<String, String> outEdges,\n TaskSchedulePlan taskSchedule) {\n // lets add the task\n byte[] taskBytes = Utils.serialize(vertex.getTask());\n INode newInstance = (INode) Utils.deserialize(taskBytes);\n int taskId = taskIdGenerator.generateGlobalTaskId(vertex.getName(),\n ip.getTaskId(), ip.getTaskIndex());\n\n if (operationMode.equals(OperationMode.BATCH)) {\n if (newInstance instanceof ICompute) {\n if (newInstance instanceof ISink) {\n SinkBatchInstance v = new SinkBatchInstance((ICompute) newInstance,\n new LinkedBlockingQueue<>(), cfg, vertex.getName(),\n taskId, ip.getTaskIndex(), vertex.getParallelism(),\n workerId, vertex.getConfig().toMap(), inEdges, taskSchedule);\n batchSinkInstances.put(vertex.getName(), taskId, v);\n return v;\n } else {\n TaskBatchInstance v = new TaskBatchInstance((ICompute) newInstance,\n new LinkedBlockingQueue<>(),\n new LinkedBlockingQueue<>(), cfg,\n vertex.getName(), taskId, ip.getTaskIndex(),\n vertex.getParallelism(), workerId, vertex.getConfig().toMap(),\n inEdges, outEdges, taskSchedule);\n batchTaskInstances.put(vertex.getName(), taskId, v);\n return v;\n }\n } else if (newInstance instanceof ISource) {\n SourceBatchInstance v = new SourceBatchInstance((ISource) newInstance,\n new LinkedBlockingQueue<>(), cfg,\n vertex.getName(), taskId, ip.getTaskIndex(),\n vertex.getParallelism(), workerId, vertex.getConfig().toMap(), outEdges, taskSchedule);\n batchSourceInstances.put(vertex.getName(), taskId, v);\n return v;\n } else {\n throw new RuntimeException(\"Un-known type\");\n }\n } else if (operationMode.equals(OperationMode.STREAMING)) {\n if (newInstance instanceof ICompute) {\n if (newInstance instanceof ISink) {\n SinkStreamingInstance v = new SinkStreamingInstance((ICompute) newInstance,\n new LinkedBlockingQueue<>(), cfg, vertex.getName(),\n taskId, ip.getTaskIndex(), vertex.getParallelism(), workerId,\n vertex.getConfig().toMap(), inEdges, taskSchedule);\n streamingSinkInstances.put(vertex.getName(), taskId, v);\n return v;\n } else {\n TaskStreamingInstance v = new TaskStreamingInstance((ICompute) newInstance,\n new LinkedBlockingQueue<>(),\n new LinkedBlockingQueue<>(), cfg,\n vertex.getName(), taskId, ip.getTaskIndex(),\n vertex.getParallelism(), workerId, vertex.getConfig().toMap(), inEdges,\n outEdges, taskSchedule);\n streamingTaskInstances.put(vertex.getName(), taskId, v);\n return v;\n }\n } else if (newInstance instanceof ISource) {\n SourceStreamingInstance v = new SourceStreamingInstance((ISource) newInstance,\n new LinkedBlockingQueue<>(), cfg,\n vertex.getName(), taskId, ip.getTaskIndex(),\n vertex.getParallelism(), workerId, vertex.getConfig().toMap(), outEdges, taskSchedule);\n streamingSourceInstances.put(vertex.getName(), taskId, v);\n return v;\n } else {\n throw new RuntimeException(\"Un-known type\");\n }\n } else {\n // GRAPH Structures must be implemented here\n return null;\n }\n }", "private static void initConfig() {\n /*\n * Human IO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Joysticks\n */\n {\n addToConstants(\"joysticks.left\", 0);\n addToConstants(\"joysticks.right\", 1);\n addToConstants(\"joysticks.operator\", 2);\n }\n\n /*\n * Buttons and axis\n */\n {\n }\n }\n }\n\n /*\n * RobotIO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Kicker\n */\n addToConstantsA(\"kicker.encoder.distPerPulse\", 360.0 / 1024.0);\n }\n }\n\n /*\n * Chassis\n */\n {\n /*\n * Constants\n */\n {\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Kicker\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"kicker.kick.normal\", 1.75);\n addToConstants(\"kicker.kick.timeout\", 0.75);\n\n addToConstants(\"kicker.shaken.voltage\", -0.3316);\n addToConstants(\"kicker.shaken.tolerance\", 3.0);\n\n addToConstants(\"kicker.zero.voltage\", 0.8);\n addToConstants(\"kicker.zero.duration\", 0.75);\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Gripper\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"gripper.collection.voltage\", 0.82);\n addToConstants(\"gripper.ejection.voltage\", -0.45);\n }\n }\n }", "public LSMEngine<T> build() {\n return lsmEngine;\n }", "abstract public Config createConfigFromString(String data);", "protected abstract void createComponents(\n Configuration conf, Store store, KVComparator kvComparator) throws IOException;", "public interface ConfigProcessor {\n\n\tvoid inject2Instance(Object obj,String keyName);\n\n\tvoid storeOneFile(ConfigBaseModel configBaseModel);\n\n\tvoid inject2Conf();\n\n}", "public static void main(String[] args) throws IOException {\n\t\t\n\t\t\tbbst rbt = new bbst();\n\t\t\n\t\t\t//File f1 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\test_10000000.txt\");\n\t\t\t\t//System.out.println(\" file name \" + args[0]);\n\t\t\tFile f1 = new File(args[0]);\n\t\t\tFileReader input = new FileReader(f1);\n\t\t\tBufferedReader in = new BufferedReader(input);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\t\tline = in.readLine();\n\t\t\t\tint size = Integer.parseInt(line);\n\t\t\t\tint arr[][] = new int[size][2];\n\t\t\t\tint i=0;\n\t\t\t\twhile(line != null){\n\t\t\t\t\tline = in.readLine();\n\t\t\t\t\tif( line != null){\n\t\t\t\t\t\tint key = Integer.parseInt(line.split(\" \")[0]);\n\t\t\t\t\t\tint val = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t\t\tarr[i][0]=key;\n\t\t\t\t\t\tarr[i][1]=val;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trbt.buildInitialTree(arr,size);\n\t\t\t\t\n\t\t\t\tinput.close();\n\t\t\t\tin.close();\n\t\t\t\t//System.out.println(\" tree build\");\n\t\t\t\tString line1;\n\t\t\t\twhile ((line1 = br.readLine()) != null) {\n\t\t\t\t\t//System.out.println(\" line \" + line);\n\t \tif(line1.isEmpty())\n\t \t\tcontinue;\n\t \t//System.out.println(\" line \");\n\t \tStringTokenizer stringTokenizer = new StringTokenizer(line1, \" \");\n\t \t\n\t \twhile (stringTokenizer.hasMoreElements()) {\n\t\t\t\t\t \n\t \tString command = stringTokenizer.nextElement().toString();\n\t \tint param1 ;\n\t\t\t \tint param2;\n\t\t\t \t\t \n\t \n\t\t // System.out.println(command);\n\t\t switch (command.toString()) {\n\t\t case \"increase\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \n\t\t //System.out.println(Integer.parseInt(y.toString()));\n\t\t rbt.Increase(param1, param2);\n\t\t break;\n\t\t case \"reduce\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Reduce(param1,param2);\n\t\t break;\n\t\t case \"count\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Count(param1);\n\t\t break;\n\t\t case \"inrange\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.InRange(param1, param2);\n\t\t break;\n\t\t case \"next\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Next(param1);\n\t\t break;\n\t\n\t\t case \"previous\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Previous(param1);\n\t\t break;\n\t\t case \"quit\":\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t default : \n\t\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t }\n\t \t}\n\t }\n\t\t\t\t\n\t\t\t\t//File f2 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\commands.txt\");\n\t\t\t\t//File f2 = new File(args[1]);\n\t\t\t\t//FileReader input2 = new FileReader(f2);\n\t\t\t\t//BufferedReader in2 = new BufferedReader(input2);\n\t\t\t\t//String s2 = in2.readLine();\n\t\t\t\t/*while(s != null){\n\t\t\t\t\ts = in.readLine();\n\t\t\t\t\tif(s!=null){\n\t\t\t\t\t\tswitch(s.split(\" \")[0]){\n\t\t\t\t\t case \"increase\" :\n\t\t\t\t\t \t//System.out.println(\" increase \");\n\t\t\t\t\t \tint key = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint incVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Increase(key, incVal);\n\t\t\t\t\t break; \n\t\t\t\t\t case \"reduce\" :\n\t\t\t\t\t \t //System.out.println(\" reduce \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tincVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println( \" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Reduce(key, incVal);\n\t\t\t\t\t break;\n\t\t\t\t\t case \"count\" :\n\t\t\t\t\t \t//System.out.println(\"count \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Count(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"inrange\" :\n\t\t\t\t\t \t//System.out.println(\" in range \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint key2 = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" val \" + key2);\n\t\t\t\t\t \trbt.InRange(key, key2);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"next\" :\n\t\t\t\t\t \t//System.out.println(\" next\");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Next(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"previous\" :\n\t\t\t\t\t \t//System.out.println(\" prev \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" find prev of \" + key);\n\t\t\t\t\t \t//System.out.println(\" node in tree \" + rbt.getNode(root, key).id);\n\t\t\t\t\t \trbt.Previous(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"quit\":\n\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t default : \n\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\t\t\n\t}", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "public EchoJob(){\n\t\tsuper.vertexStages = new ArrayList<VertexStage>();\n\t\t\n\t\t// note: input/output job directory HDFS paths are specified on client.sh command line\n\t\t\n\t\t// define the first stage & add to stage list\n\t\t// - JobServer will load this class, instantiate it\n\t\t// and invoke the getVertexStages() (defined in\n\t\t// the super-class) to get the list of stages\n\t\tVertexStage echoStage = new VertexStage();\n\t\techoStage.setVertex(EchoVertex.class);\n\t\tvertexStages.add(echoStage);\n\t}", "@Test\n public void treeSample() {\n this.pool.invoke(JobTrees.buildTree());\n }", "@Override\n public int run(String args[]) {\n// for (int i = 0; i < args.length; ++i) {\n// System.out.println(\"Argument \" + i + \": \" + args[i]);\n// }\n//\n this.conf = super.getConf();\n\n FileSystem fileSystem; // = null;\n\n try {\n UserConfig.init(args[0]);\n } catch (IOException ex) {\n System.err.println(\"Cannot open configuration file \" + args[0]);\n ex.printStackTrace(System.err);\n System.exit(1);\n }\n\n if (conf == null) {\n System.err.println(\"Configuration null!\");\n }\n\n try {\n this.bamfileStr = UserConfig.getBamFile();\n File bamFile = new File(bamfileStr);\n String subFolderName = bamFile.getName().substring(0, bamFile.getName().lastIndexOf(\".\"));\n String SRPEFolder = \"workdir\" + File.separator + \"sr_pe\" + File.separator + subFolderName;\n String depthFolder = \"workdir\" + java.io.File.separator + \"depth\" + java.io.File.separator + subFolderName;\n String sortedFolder = \"workdir\" + java.io.File.separator + \"sorted\" + java.io.File.separator + subFolderName;\n String partitioningFolder = \"workdir\" + java.io.File.separator + \"partitioning\" + java.io.File.separator + subFolderName;\n String binsFolder = \"workdir\" + java.io.File.separator + \"bins\" + java.io.File.separator + subFolderName;\n String cnvFolder = \"workdir\" + java.io.File.separator + \"cnv\" + java.io.File.separator + subFolderName;\n// if (debug) {\n// System.out.println(\"\\nbamfileStr: \" + bamfileStr + \" subFolderName: \" + subFolderName\n// + \" depthFolder: \" + depthFolder + \" sortedFolder: \" + sortedFolder\n// + \" partitioningFolder: \" + partitioningFolder\n// + \" binsFolder: \" + binsFolder + \" cnvFolder: \" + cnvFolder);\n// }\n// System.exit(0);\n //Get all the configurations \n float abberation_penalty = UserConfig.getAbberationPenalty();\n \tfloat transition_penalty = UserConfig.getTransitionPenalty(); \n int numReduceTasksBig = UserConfig.getBamFileReducers();\n int numReduceTasksSmall = UserConfig.getTextFileReducers();\n boolean runVcfLookup = UserConfig.getInitVcf();\n boolean runDepthCallJob = UserConfig.getRunDepthCaller();\n boolean runRegionBinJob = UserConfig.getRunBinner();\n boolean runCnvCallJob = UserConfig.getRunCnvCaller();\n boolean runGlobalSortJob = UserConfig.getRunGlobalSort();\n boolean runSR_PE_ExtractionJob = UserConfig.getRun_SR_PE_Extracter();\n \n int numRecudeTasks = UserConfig.getReducerTasks();\n System.err.println(\"L1: \"+UserConfig.getAbberationPenalty() );\n System.err.println(\"L2: \"+UserConfig.getTransitionPenalty() );\n if (debug) {\n System.err.println(\"numReduceTasksBig: \" + numReduceTasksBig\n + \" numReduceTasksSmall: \" + numReduceTasksSmall\n + \" runVcfLookup: \" + runVcfLookup\n + \" runDepthCallJob: \" + runDepthCallJob\n + \" runRegionBinJob: \" + runRegionBinJob\n + \" runCnvCallJob: \" + runCnvCallJob\n + \" runGlobalSortJob: \" + runGlobalSortJob);\n }\n\n fileSystem = FileSystem.get(conf);\n if(runSR_PE_ExtractionJob){\n this.bamfile = new Path(bamfileStr);\n\n Job SRPEJob = Job.getInstance(conf, \"SR PE extracter\");\n SRPEJob.setJobName(\"sr_pe_Extracter\");\n SRPEJob.setNumReduceTasks(1);\n SRPEJob.setInputFormatClass(AnySAMInputFormat.class);\n SRPEJob.setJarByClass(PennCnvSeq.class);\n \n SRPEJob.setMapperClass(SRPEReadMapper.class);\n SRPEJob.setMapOutputKeyClass(RefBinKey.class);\n SRPEJob.setMapOutputValueClass(Text.class);\n \n SRPEJob.setReducerClass(SRPEReducer.class);\n SRPEJob.setOutputKeyClass(NullWritable.class);\n SRPEJob.setOutputValueClass(Text.class);\n //InputSampler.Sampler<String, String> sampler = new InputSampler.RandomSampler<>(pcnt, numSamples, maxSplits);\n \n //SRPEJob.setPartitionerClass(TotalOrderPartitioner.class);\n \n //Delete the directory before processing it\n FileInputFormat.addInputPath(SRPEJob, bamfile);\n fileSystem.delete(new Path(SRPEFolder), true);\n FileOutputFormat.setOutputPath(SRPEJob, new Path(SRPEFolder));\n \n MultipleOutputs.addNamedOutput(SRPEJob, \"sr\", TextOutputFormat.class, NullWritable.class, Text.class);\n MultipleOutputs.addNamedOutput(SRPEJob, \"pe\", TextOutputFormat.class, NullWritable.class, Text.class);\n \n //TotalOrderPartitioner.setPartitionFile(SRPEJob.getConfiguration(), new Path(\"workdir/partitioning\"));\n //InputSampler.writePartitionFile(SRPEJob, sampler);\n \n System.out.println(\"Submitting SR_PE caller.\");\n if (!SRPEJob.waitForCompletion(true)) {\n System.out.println(\"Global sort failed.\");\n return 1;\n }\n \n }\n\n \n if (runDepthCallJob) {\n //conf.setInt(\"dfs.blocksize\",512*1024*1024);\n //conf.set(\"yarn.scheduler.minimum-allocation-mb\",UserConfig.getYarnContainerMinMb());\n //System.out.println(\"Memory configuration YARN min MB: \"+conf.get(\"yarn.scheduler.minimum-allocation-mb\"));\n\n //conf.set(\"yarn.scheduler.maximum-allocation-mb\",UserConfig.getYarnContainerMaxMb());\n //System.out.println(\"Memory configuration YARN max MB: \"+conf.get(\"yarn.scheduler.maximum-allocation-mb\"));\n //conf.set(\"mapred.child.java.opts\", \"-Xms\"+UserConfig.getHeapsizeMinMb()+\"m -Xmx\"+UserConfig.getHeapsizeMaxMb()+\"m\");\n //System.out.println(\"Memory configuration Heap in MB: \"+conf.get(\"mapred.child.java.opts\"));\n //conf.set(\"mapreduce.map.memory.mb\",UserConfig.getMapperMb());\n //System.out.println(\"Memory configuration Mapper MB: \"+conf.get(\"mapreduce.map.memory.mb\"));\n //conf.set(\"mapreduce.reduce.memory.mb\",UserConfig.getReducerMb());\n //System.out.println(\"Memory configuration Reducer MB: \"+conf.get(\"mapreduce.reduce.memory.mb\"));\n// this.bamfileStr = UserConfig.getBamFile();\n this.bamfile = new Path(bamfileStr);\n System.out.println(\"Bamfile is at \" + bamfile);\n Job depthCallJob = Job.getInstance(conf, \"Depth Call Job\");\n depthCallJob.setJobName(\"depth_caller\");\n depthCallJob.setNumReduceTasks(numReduceTasksBig);\n depthCallJob.setInputFormatClass(AnySAMInputFormat.class);\n depthCallJob.setJarByClass(PennCnvSeq.class);\n boolean use_window_mapper = true;\n if (use_window_mapper) {\n depthCallJob.setMapperClass(SAMRecordWindowMapper.class);\n depthCallJob.setMapOutputKeyClass(RefBinKey.class);\n depthCallJob.setMapOutputValueClass(ArrayPrimitiveWritable.class);\n depthCallJob.setReducerClass(AlleleDepthWindowReducer.class);\n } else {\n System.out.println(\"No window mapper version not implemented.\");\n return -1;\n }\n depthCallJob.setOutputKeyClass(RefPosBaseKey.class);\n depthCallJob.setOutputValueClass(DoubleWritable.class);\n //Delete the depth call directory before processing it\n FileInputFormat.addInputPath(depthCallJob, bamfile);\n fileSystem.delete(new Path(depthFolder), true);\n FileOutputFormat.setOutputPath(depthCallJob, new Path(depthFolder));\n System.out.println(\"Submitting read depth caller.\");\n if (!depthCallJob.waitForCompletion(true)) {\n System.out.println(\"Depth caller failed.\");\n return -1;\n }\n\n if (debug) {\n System.out.println(\"Done of submitting read depth caller.\");\n endTime = System.currentTimeMillis();\n String runningTime = \"Running Time: \" + Math.rint((endTime - startTime) * 100) / 100000.0 + \" seconds.\\n\";\n System.out.println(runningTime + \"\\n\");\n }\n }\n \n //The Global Sort is only for debug purposes \n if (runGlobalSortJob) {\n int numReduceTasks = numReduceTasksSmall;\n double pcnt = 10.0;\n int numSamples = numReduceTasks;\n int maxSplits = numReduceTasks - 1;\n if (0 >= maxSplits) {\n maxSplits = Integer.MAX_VALUE;\n }\n// InputSampler.Sampler sampler = new InputSampler.RandomSampler(pcnt, numSamples, maxSplits);\n InputSampler.Sampler<String, String> sampler = new InputSampler.RandomSampler<>(pcnt, numSamples, maxSplits);\n\n// Job regionSortJob = new Job(conf);\n Job regionSortJob = Job.getInstance(conf, \"Region Sort Job\");\n regionSortJob.setJobName(\"sorter\");\n regionSortJob.setJarByClass(PennCnvSeq.class);\n regionSortJob.setNumReduceTasks(numReduceTasks);\n regionSortJob.setInputFormatClass(SortInputFormat.class);\n regionSortJob.setMapperClass(Mapper.class);\n regionSortJob.setMapOutputKeyClass(RefPosBaseKey.class);\n regionSortJob.setMapOutputValueClass(Text.class);\n regionSortJob.setReducerClass(Reducer.class);\n regionSortJob.setOutputKeyClass(RefPosBaseKey.class);\n regionSortJob.setOutputValueClass(Text.class);\n// FileInputFormat.addInputPath(regionSortJob, new Path(\"workdir/depth/\"));\n// fileSystem.delete(new Path(\"workdir/sorted\"), true);\n// FileOutputFormat.setOutputPath(regionSortJob, new Path(\"workdir/sorted/\"));\n FileInputFormat.addInputPath(regionSortJob, new Path(depthFolder));\n fileSystem.delete(new Path(sortedFolder), true);\n FileOutputFormat.setOutputPath(regionSortJob, new Path(sortedFolder));\n regionSortJob.setPartitionerClass(TotalOrderPartitioner.class);\n// TotalOrderPartitioner.setPartitionFile(regionSortJob.getConfiguration(), new Path(\"workdir/partitioning\"));\n TotalOrderPartitioner.setPartitionFile(regionSortJob.getConfiguration(), new Path(partitioningFolder));\n InputSampler.writePartitionFile(regionSortJob, sampler);\n System.out.println(\"Submitting global sort.\");\n if (!regionSortJob.waitForCompletion(true)) {\n System.out.println(\"Global sort failed.\");\n return 1;\n }\n\n if (debug) {\n System.out.println(\"Done of submitting global sort.\");\n endTime = System.currentTimeMillis();\n String runningTime = \"Running Time: \" + Math.rint((endTime - startTime) * 100) / 100000.0 + \" seconds.\\n\";\n System.out.println(runningTime + \"\\n\");\n }\n }\n\n if (runVcfLookup) {\n this.vcffileStr = UserConfig.getVcfFile();\n this.vcffile = new Path(vcffileStr);\n System.out.println(\"Vcffile is at \" + vcffile);\n VcfLookup lookup = new VcfLookup();\n lookup.parseVcf2Text(vcffileStr);\n\n if (debug) {\n System.out.println(\"Done of runVcfLookup.\");\n endTime = System.currentTimeMillis();\n String runningTime = \"Running Time: \" + Math.rint((endTime - startTime) * 100) / 100000.0 + \" seconds.\\n\";\n System.out.println(runningTime + \"\\n\");\n }\n }\n\n if (runRegionBinJob) {\n Job regionBinJob = Job.getInstance(conf, \"Region Bin Job\");\n regionBinJob.setJobName(\"binner\");\n regionBinJob.setJarByClass(PennCnvSeq.class);\n regionBinJob.setNumReduceTasks(numReduceTasksSmall);\n regionBinJob.setInputFormatClass(TextInputFormat.class);\n regionBinJob.setMapperClass(BinMapper.class);\n regionBinJob.setMapOutputKeyClass(RefBinKey.class);\n regionBinJob.setMapOutputValueClass(Text.class);\n regionBinJob.setReducerClass(BinReducer.class);\n regionBinJob.setOutputKeyClass(RefBinKey.class);\n regionBinJob.setOutputValueClass(Text.class);\n\n// FileInputFormat.addInputPath(regionBinJob, new Path(\"workdir/depth/\"));\n// fileSystem.delete(new Path(\"workdir/bins\"), true);\n// FileOutputFormat.setOutputPath(regionBinJob, new Path(\"workdir/bins\"));\n FileInputFormat.addInputPath(regionBinJob, new Path(depthFolder));\n fileSystem.delete(new Path(binsFolder), true);\n FileOutputFormat.setOutputPath(regionBinJob, new Path(binsFolder));\n System.out.println(\"Submitting binner.\");\n if (!regionBinJob.waitForCompletion(true)) {\n System.out.println(\"Binner failed.\");\n return -1;\n }\n\n if (debug) {\n System.out.println(\"Done of submitting binner.\");\n endTime = System.currentTimeMillis();\n String runningTime = \"Running Time: \" + Math.rint((endTime - startTime) * 100) / 100000.0 + \" seconds.\\n\";\n System.out.println(runningTime + \"\\n\");\n }\n }\n\n if (runCnvCallJob) {\n \tconf.set(\"lambda1\", Float.toString(abberation_penalty));\n \tconf.set(\"lambda2\", Float.toString(transition_penalty));\n Job secondarySortJob = Job.getInstance(conf, \"Secondary Sort Job\");\n secondarySortJob.setJobName(\"secondary_sorter\");\n secondarySortJob.setJarByClass(PennCnvSeq.class);\n// secondarySortJob.setNumReduceTasks(24);\n secondarySortJob.setNumReduceTasks(numRecudeTasks);\n secondarySortJob.setInputFormatClass(TextInputFormat.class);\n secondarySortJob.setMapperClass(BinSortMapper.class);\n secondarySortJob.setMapOutputKeyClass(RefBinKey.class);\n secondarySortJob.setMapOutputValueClass(Text.class);\n secondarySortJob.setPartitionerClass(ChrPartitioner.class);\n secondarySortJob.setGroupingComparatorClass(ChrGroupingComparator.class);\n secondarySortJob.setReducerClass(CnvReducer.class);\n secondarySortJob.setOutputKeyClass(Text.class);\n secondarySortJob.setOutputValueClass(Text.class);\n// FileInputFormat.addInputPath(secondarySortJob, new Path(\"workdir/bins/\"));\n// fileSystem.delete(new Path(\"workdir/cnv\"), true);\n// FileOutputFormat.setOutputPath(secondarySortJob, new Path(\"workdir/cnv\"));\n FileInputFormat.addInputPath(secondarySortJob, new Path(binsFolder));\n fileSystem.delete(new Path(cnvFolder), true);\n FileOutputFormat.setOutputPath(secondarySortJob, new Path(cnvFolder));\n System.out.println(\"Submitting CNV caller.\");\n if (!secondarySortJob.waitForCompletion(true)) {\n System.out.println(\"CNV caller failed.\");\n return -1;\n }\n\n if (debug) {\n System.out.println(\"Done of submitting CNV caller.\");\n }\n }\n } catch (IOException | IllegalArgumentException | IllegalStateException | InterruptedException | ClassNotFoundException ex) {\n System.err.println(\"Error in run, caused by \" + ex.toString());\n return -1;\n }\n return 0;\n }", "private LSMEngineBuilder<T> buildLevelProcessors(String packageName) {\n try {\n ApplicationContext property =\n ApplicationContextGenerator.GeneratePropertyWithAnnotation(packageName);\n buildLevelProcessors(property);\n } catch (Exception e) {\n logger.error(e.getMessage());\n }\n return this;\n }", "@Override\n public ExecutionPlan build(Config cfg, DataFlowTaskGraph taskGraph,\n TaskSchedulePlan taskSchedule) {\n TaskPlan taskPlan =\n TaskPlanBuilder.build(workerId, workerInfoList, taskSchedule, taskIdGenerator);\n ParallelOperationFactory opFactory = new ParallelOperationFactory(\n cfg, network, taskPlan, edgeGenerator);\n\n Map<Integer, ContainerPlan> containersMap = taskSchedule.getContainersMap();\n ContainerPlan conPlan = containersMap.get(workerId);\n if (conPlan == null) {\n LOG.log(Level.INFO, \"Cannot find worker in the task plan: \" + workerId);\n return null;\n }\n\n ExecutionPlan execution = new ExecutionPlan();\n\n Set<TaskInstancePlan> instancePlan = conPlan.getTaskInstances();\n // for each task we are going to create the communications\n for (TaskInstancePlan ip : instancePlan) {\n Vertex v = taskGraph.vertex(ip.getTaskName());\n Map<String, String> inEdges = new HashMap<>();\n Map<String, String> outEdges = new HashMap<>();\n if (v == null) {\n throw new RuntimeException(\"Non-existing task scheduled: \" + ip.getTaskName());\n }\n\n INode node = v.getTask();\n if (node instanceof ICompute || node instanceof ISource) {\n // lets get the communication\n Set<Edge> edges = taskGraph.outEdges(v);\n // now lets create the communication object\n for (Edge e : edges) {\n Vertex child = taskGraph.childOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(child.getName(),\n getTaskIdOfTask(child.getName(), taskSchedule), taskGraph);\n\n if (!parOpTable.contains(v.getName(), e.getName())) {\n parOpTable.put(v.getName(), e.getName(),\n new Communication(e, v.getName(), child.getName(), srcTasks, tarTasks));\n }\n outEdges.put(e.getName(), child.getName());\n }\n }\n\n if (node instanceof ICompute || node instanceof ISink) {\n // lets get the parent tasks\n Set<Edge> parentEdges = taskGraph.inEdges(v);\n for (Edge e : parentEdges) {\n Vertex parent = taskGraph.getParentOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(parent.getName(),\n getTaskIdOfTask(parent.getName(), taskSchedule), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n\n if (!parOpTable.contains(parent.getName(), e.getName())) {\n parOpTable.put(parent.getName(), e.getName(),\n new Communication(e, parent.getName(), v.getName(), srcTasks, tarTasks));\n }\n inEdges.put(e.getName(), parent.getName());\n }\n }\n\n // lets create the instance\n INodeInstance iNodeInstance = createInstances(cfg, ip, v, taskGraph.getOperationMode(),\n inEdges, outEdges, taskSchedule);\n // add to execution\n execution.addNodes(v.getName(), taskIdGenerator.generateGlobalTaskId(\n v.getName(), ip.getTaskId(), ip.getTaskIndex()), iNodeInstance);\n }\n\n // now lets create the queues and start the execution\n for (Table.Cell<String, String, Communication> cell : parOpTable.cellSet()) {\n Communication c = cell.getValue();\n\n // lets create the communication\n OperationMode operationMode = taskGraph.getOperationMode();\n IParallelOperation op = opFactory.build(c.getEdge(), c.getSourceTasks(), c.getTargetTasks(),\n operationMode);\n // now lets check the sources and targets that are in this executor\n Set<Integer> sourcesOfThisWorker = intersectionOfTasks(conPlan, c.getSourceTasks());\n Set<Integer> targetsOfThisWorker = intersectionOfTasks(conPlan, c.getTargetTasks());\n\n // set the parallel operation to the instance\n //let's separate the execution instance generation based on the Operation Mode\n if (operationMode == OperationMode.STREAMING) {\n for (Integer i : sourcesOfThisWorker) {\n if (streamingTaskInstances.contains(c.getSourceTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getSourceTask(), i);\n taskStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSourceInstances.contains(c.getSourceTask(), i)) {\n SourceStreamingInstance sourceStreamingInstance\n = streamingSourceInstances.get(c.getSourceTask(), i);\n sourceStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (streamingTaskInstances.contains(c.getTargetTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskStreamingInstance.getInQueue());\n taskStreamingInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSinkInstances.contains(c.getTargetTask(), i)) {\n SinkStreamingInstance streamingSinkInstance\n = streamingSinkInstances.get(c.getTargetTask(), i);\n streamingSinkInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, streamingSinkInstance.getstreamingInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n\n if (operationMode == OperationMode.BATCH) {\n for (Integer i : sourcesOfThisWorker) {\n if (batchTaskInstances.contains(c.getSourceTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getSourceTask(), i);\n taskBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (batchSourceInstances.contains(c.getSourceTask(), i)) {\n SourceBatchInstance sourceBatchInstance\n = batchSourceInstances.get(c.getSourceTask(), i);\n sourceBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (batchTaskInstances.contains(c.getTargetTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskBatchInstance.getInQueue());\n taskBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (batchSinkInstances.contains(c.getTargetTask(), i)) {\n SinkBatchInstance sinkBatchInstance = batchSinkInstances.get(c.getTargetTask(), i);\n sinkBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, sinkBatchInstance.getBatchInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n }\n return execution;\n }", "protected final void go(CommandLine options)\r\n {\r\n final File outputDir = (File) getOption(options, \"output\", null);\r\n final File descriptors = (File) getOption(options, \"algorithms\", new File(\"algorithms\"));\r\n \r\n super.config.setDefaultValue(ConfigConstants.ATTR_CLUSTERS_ONLY, new Boolean(options.hasOption(\"co\")));\r\n super.config.setDefaultValue(ConfigConstants.ATTR_DEFAULT_PROCESSID, options.getOptionValue(\"algorithm\"));\r\n super.config.setDefaultValue(ConfigConstants.ATTR_OUTPUT_FORMAT, \r\n options.hasOption(\"json\") ? ControllerContext.RESULTS_TO_JSON :\r\n options.hasOption(\"xml\") ? ControllerContext.RESULTS_TO_XML : null);\r\n \r\n final boolean verbose = options.hasOption(\"verbose\");\r\n if (verbose)\r\n {\r\n logger.setLevel(Level.DEBUG);\r\n }\r\n \r\n if (outputDir != null && !outputDir.exists())\r\n {\r\n logger.info(\"Creating output folder: \" + outputDir.getAbsolutePath());\r\n if (!outputDir.mkdirs())\r\n {\r\n logger.error(\"Could not create output folder: \" + outputDir.getAbsolutePath());\r\n return;\r\n }\r\n }\r\n \r\n if (outputDir == null)\r\n {\r\n logger.warn(\"Output directory not specified, clustering without saving the result.\");\r\n }\r\n \r\n // Initialize processes.\r\n final ControllerContext context;\r\n try\r\n {\r\n context = initializeContext(descriptors);\r\n }\r\n catch (Exception e)\r\n {\r\n getLogger().fatal(\"Could not initialize clustering algorithms. Inspect log files.\", e);\r\n return;\r\n }\r\n \r\n final String processId = config.getString(ConfigConstants.ATTR_DEFAULT_PROCESSID);\r\n if (processId == null || !context.getController().getProcessIds().contains(processId))\r\n {\r\n if (processId == null)\r\n {\r\n getLogger().fatal(\"Provide the identifier of a clustering algorithm to use.\");\r\n }\r\n else\r\n {\r\n getLogger().fatal(\"This clustering algorithm is not available: \" + processId);\r\n }\r\n return;\r\n }\r\n \r\n // Collect files to process.\r\n final String [] unprocessed = options.getArgs();\r\n final ArrayList files = new ArrayList();\r\n \r\n for (int i = 0; i < unprocessed.length; i++)\r\n {\r\n final File file = new File(unprocessed[i]);\r\n if (!file.exists())\r\n {\r\n logger.warn(\"File does not exist, skipping: \" + file);\r\n continue;\r\n }\r\n \r\n if (file.isDirectory())\r\n {\r\n final File [] subfiles = file.listFiles(new FileFilter()\r\n {\r\n public boolean accept(File subfile)\r\n {\r\n return (subfile.isFile() && subfile.canRead());\r\n }\r\n });\r\n files.addAll(Arrays.asList(subfiles));\r\n }\r\n else\r\n {\r\n files.add(file);\r\n }\r\n }\r\n \r\n // Run batch clustering.\r\n try\r\n {\r\n if (files.isEmpty())\r\n {\r\n getLogger().warn(\"Empty list of input files. Provide files and/or directories as program arguments.\");\r\n }\r\n \r\n for (Iterator i = files.iterator(); i.hasNext();)\r\n {\r\n final File f = (File) i.next();\r\n logger.info(\"Processing file: \" + f.getName());\r\n \r\n OutputStream outputStream = null;\r\n InputStream inputStream = null;\r\n try\r\n {\r\n inputStream = new FileInputStream(f);\r\n if (outputDir != null)\r\n {\r\n outputStream = new FileOutputStream(new File(outputDir, f.getName()));\r\n }\r\n else\r\n {\r\n outputStream = new ByteArrayOutputStream();\r\n }\r\n \r\n final String processName = config.getRequiredString(ConfigConstants.ATTR_DEFAULT_PROCESSID);\r\n final String outputProcessName = null;\r\n final boolean clustersOnly = config.getRequiredBoolean(ConfigConstants.ATTR_CLUSTERS_ONLY);\r\n ProcessingUtils.cluster(context.getController(), getLogger(), inputStream, outputStream, processName, outputProcessName, clustersOnly);\r\n }\r\n catch (IOException e)\r\n {\r\n if (outputStream != null) outputStream.close();\r\n if (inputStream != null) inputStream.close();\r\n }\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n getLogger().fatal(\"Unhandled program error occurred.\", e);\r\n }\r\n \r\n getLogger().info(\"Finished.\");\r\n }", "AstToLejosJavaVisitor(String programName, EV3BrickConfiguration brickConfiguration, Set<EV3Sensors> usedSensors, int indentation) {\n this.programName = programName;\n this.brickConfiguration = brickConfiguration;\n this.indentation = indentation;\n this.usedSensors = usedSensors;\n }", "public KedaConfiguration() {\n }", "interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }", "public interface ComponentProcessor {\n\n /**\n * Starts processing components for the rootnode, this shall call {@link #processNode(Node, float)} on all of the\n * nodes\n * that shall be processed.\n * Perform init if needed in this method\n * \n * @param root\n * @param delta\n */\n public void processRoot(RootNode root, float delta);\n\n /**\n * Processes the non-culled logic nodes\n * \n * @param node\n * @param delta\n */\n public void processNode(Node node, float delta);\n}", "public static void setCustomStateVertexFactory(CrawljaxConfigurationBuilder builder) {\n\t\t\n\t\tbuilder.setStateVertexFactory(new StateVertexFactory() {\n\t\t\t@Override\n\t\t\tpublic StateVertex newStateVertex(int id, String url, String name, String dom, String strippedDom) {\n\t\t\t\treturn new StateVertexLevensteinEquals(id, url, name, dom, strippedDom);\n\t\t\t}\n\t\t});\n\t}", "public JobLogParserConfiguration() {\r\n\r\n produceRegularExpressions();\r\n compilePattern();\r\n }", "private Job getJobConf(String[] args) throws Exception {\n\n\t\tJobInfo jobInfo = new JobInfo() {\n\t\t\t@Override\n\t\t\tpublic Class<? extends Reducer> getCombinerClass() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Class<?> getJarByClass() {\n\t\t\t\treturn TopologicalJob.class;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Class<? extends Mapper> getMapperClass() {\n\t\t\t\treturn TopologicalMapper.class;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Class<?> getOutputKeyClass() {\n\t\t\t\treturn Text.class;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Class<?> getOutputValueClass() {\n\t\t\t\treturn Text.class;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Class<? extends Reducer> getReducerClass() {\n\t\t\t\treturn TopologicalReducer.class;\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn setupJob(\"topologicalsort\", jobInfo);\n\t}", "public interface RuntimeConfigurationBackend {\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Boolean getBoolean(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setBoolean(String name, boolean value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Integer getInteger(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setInt(String name, int value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Long getLong(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setLong(String name, long value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Float getFloat(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setFloat(String name, float value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Double getDouble(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setDouble(String name, double value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n String getString(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setString(String name, String value);\n}", "public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }", "@Test\n public void testDetectConfigurationClassHierarchy() throws Exception {\n\n Config testConfig = ConfigFactory.parseResourcesAnySyntax(\"classHierarchy.conf\");\n\n StreamsConfigurator.setConfig(testConfig);\n\n ComponentConfigurator<ComponentConfigurationForTestingNumberTwo> configurator = new ComponentConfigurator(ComponentConfigurationForTestingNumberTwo.class);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration();\n\n Assert.assertThat(configuredPojo, is(notNullValue()));\n\n Assert.assertThat(configuredPojo.getInClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getInClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getInClasses().get(0), equalTo(\"java.lang.Integer\"));\n\n Assert.assertThat(configuredPojo.getOutClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getOutClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getOutClasses().get(0), equalTo(\"java.lang.Float\"));\n\n }", "C getConfiguration();", "public void handleLoad() throws IOException {\n File file = new File(this.path);\n\n // creates data directory if it does not exist\n file.getParentFile().mkdirs();\n\n // creates tasks.txt if it does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n\n Scanner sc = new Scanner(file);\n\n while (sc.hasNext()) {\n String longCommand = sc.nextLine();\n String[] keywords = longCommand.split(\" \\\\|\\\\| \");\n Task cur = null;\n switch (keywords[1]) {\n case \"todo\":\n cur = new Todo(keywords[2]);\n break;\n case \"deadline\":\n cur = new Deadline(keywords[2], keywords[3]);\n break;\n case \"event\":\n cur = new Event(keywords[2], keywords[3]);\n break;\n default:\n System.out.println(\"error\");\n break;\n }\n if (keywords[0].equals(\"1\")) {\n cur.markAsDone();\n }\n TaskList.getTaskLists().add(cur);\n }\n sc.close();\n }", "public IConfiguration configToConvert() {\n\t\tString inputFiles = jTextFieldInputFiles.getText();\n\t\tString outputFile = jTextFieldOutputFile.getText();\n\t\tif (inputFiles.length() > 0)\n\t\t\tmodifications.insertPoolSource(inputFiles);\n\t\tif (outputFile.length() > 0)\n\t\t\tmodifications.insertPoolOutputModule(outputFile);\n\t\tif (asFragment()) {\n\t\t\tmodifications.filterAllEDSources(true);\n\t\t\tmodifications.filterAllOutputModules(true);\n\t\t}\n\t\tmodifier.modify(modifications);\n\t\treturn modifier;\n\t}", "private @Nonnull Map<String, Configuration> generateVxlanConfigs() {\n NetworkFactory nf = new NetworkFactory();\n Configuration.Builder cb =\n nf.configurationBuilder().setConfigurationFormat(ConfigurationFormat.CISCO_IOS);\n _s1 = cb.setHostname(S1_NAME).build();\n _s2 = cb.setHostname(S2_NAME).build();\n _h1 = cb.setHostname(H1_NAME).build();\n _h2 = cb.setHostname(H2_NAME).build();\n Vrf.Builder vb = nf.vrfBuilder().setName(Configuration.DEFAULT_VRF_NAME);\n Vrf h1Vrf = vb.setOwner(_h1).build();\n Vrf h2Vrf = vb.setOwner(_h2).build();\n Vrf s1Vrf = vb.setOwner(_s1).build();\n Vrf s2Vrf = vb.setOwner(_s2).build();\n Interface.Builder l3Builder =\n Interface.builder().setType(InterfaceType.PHYSICAL).setActive(true);\n l3Builder.setName(E1_NAME).setAddresses(H1_ADDRESS).setOwner(_h1).setVrf(h1Vrf).build();\n l3Builder.setName(E2_NAME).setAddresses(H2_ADDRESS).setOwner(_h2).setVrf(h2Vrf).build();\n l3Builder.setName(E12_NAME).setAddresses(S1_ADDRESS).setOwner(_s1).setVrf(s1Vrf).build();\n l3Builder.setName(E21_NAME).setAddresses(S2_ADDRESS).setOwner(_s2).setVrf(s2Vrf).build();\n Interface.Builder l2Builder =\n Interface.builder()\n .setType(InterfaceType.PHYSICAL)\n .setActive(true)\n .setAccessVlan(VLAN)\n .setSwitchport(true)\n .setSwitchportMode(SwitchportMode.ACCESS);\n l2Builder.setName(SWP1_NAME).setOwner(_s1).setVrf(s1Vrf).build();\n l2Builder.setName(SWP2_NAME).setOwner(_s2).setVrf(s2Vrf).build();\n\n VniSettings.Builder vsb =\n VniSettings.builder()\n .setBumTransportMethod(BumTransportMethod.UNICAST_FLOOD_GROUP)\n .setUdpPort(UDP_PORT)\n .setVlan(VLAN)\n .setVni(VNI);\n s1Vrf\n .getVniSettings()\n .put(\n VNI,\n vsb.setBumTransportIps(ImmutableSortedSet.of(S2_ADDRESS.getIp()))\n .setSourceAddress(S1_ADDRESS.getIp())\n .build());\n s2Vrf\n .getVniSettings()\n .put(\n VNI,\n vsb.setBumTransportIps(ImmutableSortedSet.of(S1_ADDRESS.getIp()))\n .setSourceAddress(S2_ADDRESS.getIp())\n .build());\n return ImmutableMap.of(H1_NAME, _h1, H2_NAME, _h2, S1_NAME, _s1, S2_NAME, _s2);\n }", "@Override\n\tpublic boolean process() throws Exception {\n\t\t\n\t\tScanner lineScanner = new Scanner(this.getInputPorts().get(ID_INPUT).getInputReader());\n\t\tlineScanner.useDelimiter(\"\\\\R+\");\n\t\t\n\t\tif (! lineScanner.hasNext()){\n\t\t\tlineScanner.close();\n\t\t\tthis.closeAllOutputs();\n\t\t\tthrow new Exception(\"Empty input.\");\n\t\t}\n\t\t\n\t\t// Read CSV header line\n\t\tString[] headerFields = lineScanner.next().split(this.inputdelimiter);\n\t\t\n\t\t/*\n\t\t * Instantiate GEXF writer\n\t\t */\n\t\tGexf gexf = new GexfImpl();\n\n\t\tCalendar date = Calendar.getInstance();\n\t\tgexf.getMetadata().setLastModified(date.getTime()).setCreator(\"Uni Koeln, Strings & Structures Project\")\n\t\t\t\t.setDescription(\"A Tree\");\n\t\tgexf.setVisualization(true);\n\n\t\tGraph graph = gexf.getGraph();\n\t\tgraph.setDefaultEdgeType(EdgeType.UNDIRECTED).setMode(Mode.STATIC);\n\n\t\t//AttributeList attrList = new AttributeListImpl(AttributeClass.NODE);\n\t\t//graph.getAttributeLists().add(attrList);\n\n\t\t//AttributeImpl edgeWeight = new AttributeImpl(\"0\", AttributeType.DOUBLE, \"edgeWeight\");\n\t\t//attrList.add(0, edgeWeight);\n\t\t\n\t\t/*\n\t\t * Create nodes from header fields\n\t\t */\n\t\tMap<String,Node> nodeMap = new TreeMap<String,Node>();\n\t\tfor (int i=1; i<headerFields.length; i++){\n\t\t\tNode gexfNode = graph.createNode();\n\t\t\tgexfNode.setLabel(headerFields[i]);\n\t\t\tgexfNode.setSize(1);\n\t\t\tnodeMap.put(headerFields[i], gexfNode);\n\t\t}\n\n\t\t/*\n\t\t * Create edges from data fields\n\t\t */\n\t\tthis.edgeId = 0l;\n\t\twhile (lineScanner.hasNext()){\n\t\t\tString[] dataLine = lineScanner.next().split(this.inputdelimiter);\n\t\t\tString lineTitle = dataLine[0];\n\t\t\t// If the line title does not yet have a node, create it\n\t\t\tif (lineTitle != null && ! nodeMap.containsKey(lineTitle)){\n\t\t\t\tNode gexfNode = graph.createNode();\n\t\t\t\tgexfNode.setLabel(lineTitle);\n\t\t\t\tgexfNode.setSize(1);\n\t\t\t\tnodeMap.put(lineTitle, gexfNode);\n\t\t\t}\n\t\t\t\n\t\t\t// Loop over actual data fields\n\t\t\tfor (int i=1; i<dataLine.length; i++){\n\t\t\t\t\n\t\t\t\t// Determine line node\n\t\t\t\tNode rowNode = nodeMap.get(lineTitle);\n\t\t\t\t\n\t\t\t\t// Determine column node\n\t\t\t\tNode colNode = nodeMap.get(headerFields[i]);\n\t\t\t\t\n\t\t\t\t// Determine numerical data value\n\t\t\t\tDouble value = 0d;\n\t\t\t\tif (dataLine[i] != null && ! dataLine[i].isEmpty()){\n\t\t\t\t\tvalue = Double.parseDouble(dataLine[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create edge between both nodes\n\t\t\t\tEdge newEdge = rowNode.connectTo(\"\"+edgeId, this.edgeDesignator, EdgeType.UNDIRECTED, colNode);\n\t\t\t\tnewEdge.setWeight(value.floatValue());\n\t\t\t\t//newEdge.getAttributeValues().addValue(edgeWeight, value.toString());\n\t\t\t\tedgeId++;\n\t\t\t}\n\t\t}\n\t\t// Close input scanner\n\t\tlineScanner.close();\n\t\t\n\t\tStaxGraphWriter graphWriter = new StaxGraphWriter();\n\t\t\n\t\tIterator<OutputPort> outputPorts = this.getOutputPorts().values().iterator();\n\t\twhile(outputPorts.hasNext()){\n\t\t\tOutputPort outputPort = outputPorts.next();\n\t\t\tIterator<Pipe> pipes = outputPort.getPipes(CharPipe.class).iterator();\n\t\t\twhile(pipes.hasNext()){\n\t\t\t\tCharPipe pipe = (CharPipe) pipes.next();\n\t\t\t\tgraphWriter.writeToStream(gexf, pipe.getOutput(), \"UTF-8\");\n\t\t\t}\n\t\t}\n\n\t\t// Close outputs (important!)\n\t\tthis.closeAllOutputs();\n\n\t\t// Done\n\t\treturn true;\n\t}", "protected T getConfigurationByCascading() {\n\t\t\n\t\tList<T> configurationObjectList = new ArrayList<T>();\n\t\t\n\t\t// Add the configuration objects in the order they should override \n\t\t// each other. Command line options override property file information\n\t\t// which in turn override any default configuration objects that may\n\t\t// have been given.\n\t\t//\n\t\tconfigurationObjectList.add (getConfigurationByCommandline());\n\t\tconfigurationObjectList.addAll (getConfigurationByProperties(this.propertyFile));\n\t\tconfigurationObjectList.addAll (configurationObjects);\n\t\t\n\t\tInvocationHandler handler = new ConfigurationByCascading<T>(configurationObjectList);\n\n\t\t@SuppressWarnings(\"unchecked\")\t\t\n\t\tT configuration = (T)\n\t\t\tjava.lang.reflect.Proxy.newProxyInstance(\n\t\t\t\tthis.configurationInterface.getClassLoader(),\n\t\t\t\tnew Class[] { this.configurationInterface },\n\t\t\t\thandler\n\t\t);\n\n\t\treturn configuration;\n\t}", "private static void jbptTest2() throws FileNotFoundException, Exception {\n\t\tFile folder = new File(\"models\");\n\t\t\n\t\tFile[] arModels = folder.listFiles(new FileUtil().getFileter(\"pnml\"));\n\t\tfor(File file: arModels)\n\t\t{\n\t\t\t//print the file name\n\t\t\tSystem.out.println(\"========\" + file.getName() + \"========\");\n\n\t\t\t//initialize the counter for conditions and events\n\t\t\tAbstractEvent.count = 0;\n\t\t\tAbstractCondition.count = 0;\n\n\t\t\t//get the file path\n\t\t\tString filePrefix = file.getPath();\n\t\t\tfilePrefix = filePrefix.substring(0, filePrefix.lastIndexOf('.'));\n\t\t\tString filePNG = filePrefix + \".png\";\n\t\t\tString fileCPU = filePrefix + \"-cpu.png\";\n\t\t\tString fileNet = filePrefix + \"-cpu.pnml\";\n\n\t\t\tPnmlImport pnmlImport = new PnmlImport();\n\t\t\tPetriNet p1 = pnmlImport.read(new FileInputStream(file));\n\n\t\t\t// ori\n\t\t\t/*ProvidedObject po1 = new ProvidedObject(\"petrinet\", p1);\n\t\t\t\n\t\t\tDotPngExport dpe1 = new DotPngExport();\n\t\t\tOutputStream image1 = new FileOutputStream(filePNG);\n\t\t\t\n\t\t\tdpe1.export(po1, image1);*/\n\n\t\t\tNetSystem ns = PetriNetConversion.convert(p1);\n\t\t\tProperCompletePrefixUnfolding cpu = new ProperCompletePrefixUnfolding(ns);\n\t\t\tNetSystem netPCPU = PetriNetConversion.convertCPU2NS(cpu);\n\t\t\t// cpu\n\t\t\tPetriNet p2 = PetriNetConversion.convert(netPCPU);\n\t\t\t\n\t\t\tProvidedObject po2 = new ProvidedObject(\"petrinet\", p2);\n\t\t\tDotPngExport dpe2 = new DotPngExport();\n\t\t\tOutputStream image2 = new FileOutputStream(fileCPU);\n\t\t\tdpe2.export(po2, image2);\n//\t\t\t\n\t\t\tExport(p2, fileNet);\n//\t\t\t// net\n//\t\t\tNetSystem nsCPU = PetriNetConversion.convertCPU2NS(cpu);\n//\t\t\tPetriNet pnCPU = PetriNetConversion.convertNS2PN(nsCPU);\n//\t\t\tProvidedObject po3 = new ProvidedObject(\"petrinet\", pnCPU);\n//\t\t\tDotPngExport dpe3 = new DotPngExport();\n//\t\t\tOutputStream image3 = new FileOutputStream(fileNet);\n//\t\t\tdpe3.export(po3, image3);\n\t\t}\n\t\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic Algorithm configure(Properties configuration) throws JMException {\n\t\tAlgorithm algorithm;\n\t\tSelection selection;\n\t\tCrossover crossover;\n\t\tMutation mutation;\n\n\t\tHashMap parameters; // Operator parameters\n\n\t\t// Creating the algorithm.\n\t\talgorithm = new NSGAII(problem_);\n\n\t\t// Algorithm parameters\n\t\tpopulationSize_ = Integer\n\t\t\t\t.parseInt(configuration.getProperty(\"populationSize\", String.valueOf(populationSize_)));\n\t\tmaxEvaluations_ = Integer\n\t\t\t\t.parseInt(configuration.getProperty(\"maxEvaluations\", String.valueOf(maxEvaluations_)));\n\t\talgorithm.setInputParameter(\"populationSize\", populationSize_);\n\t\talgorithm.setInputParameter(\"maxEvaluations\", maxEvaluations_);\n\n\t\t// Mutation and Crossover for Real codification\n\t\tcrossoverProbability_ = Double\n\t\t\t\t.parseDouble(configuration.getProperty(\"crossoverProbability\", String.valueOf(crossoverProbability_)));\n\t\tparameters = new HashMap();\n\t\tparameters.put(\"probability\", crossoverProbability_);\n\t\tcrossover = CrossoverFactory.getCrossoverOperator(\"SinglePointCrossover\", parameters);\n\n\t\tmutationProbability_ = Double\n\t\t\t\t.parseDouble(configuration.getProperty(\"mutationProbability\", String.valueOf(mutationProbability_)));\n\t\tparameters = new HashMap();\n\t\tparameters.put(\"probability\", mutationProbability_);\n\t\tmutation = MutationFactory.getMutationOperator(\"BitFlipMutation\", parameters);\n\n\t\t// Selection Operator\n\t\tparameters = null;\n\t\tselection = SelectionFactory.getSelectionOperator(\"BinaryTournament2\", parameters);\n\n\t\t// Add the operators to the algorithm\n\t\talgorithm.addOperator(\"crossover\", crossover);\n\t\talgorithm.addOperator(\"mutation\", mutation);\n\t\talgorithm.addOperator(\"selection\", selection);\n\n\t\treturn algorithm;\n\t}", "public void preprocess(ControlFlowGraph cfg) {\n System.out.print(cfg.getMethod().getName().toString());\n\n // register graph\n graph = cfg;\n QuadBBVisitor bbVisitor = new QuadBBVisitor();\n graph.visitBasicBlocks(bbVisitor);\n\n // reset & register quad-bb-map\n CheckTable.reset();\n CheckTable.registerQuadBBMap(bbVisitor.quadBBMap);\n\n /* Generate initial conditions. */\n QuadIterator qit = new QuadIterator(cfg);\n int max = 0;\n while (qit.hasNext()) {\n int x = qit.next().getID();\n if (x > max) max = x;\n }\n max += 1;\n // note: this is just declaration of arrays instead of newing CheckTable\n in = new CheckTable[max];\n out = new CheckTable[max];\n qit = new QuadIterator(cfg);\n\n\n /* Arguments are always there. */\n int numargs = cfg.getMethod().getParamTypes().length;\n for (int i = 0; i < numargs; i++) {\n CheckTable.register(\"R\" + i);\n }\n\n while (qit.hasNext()) {\n Quad q = qit.next();\n for (RegisterOperand def : q.getDefinedRegisters()) {\n CheckTable.register(def.getRegister().toString());\n }\n for (RegisterOperand use : q.getUsedRegisters()) {\n CheckTable.register(use.getRegister().toString());\n }\n }\n\n entry = new CheckTable();\n entry.setToBottom();\n\n exit = new CheckTable();\n transferfn.val = new CheckTable();\n for (int i = 0; i < in.length; i++) {\n in[i] = new CheckTable();\n out[i] = new CheckTable();\n }\n\n// System.out.println(\"Initialization completed. VarSet.core: \" + CheckTable.core);\n }", "private static ConfigImpl loadJson(Reader reader) {\n ConfigImpl ret = new ConfigImpl();\n JsonParser parser = new JsonParser();\n JsonElement element = parser.parse(reader);\n loadJson(element, ret, \"\");\n return ret;\n }", "abstract public Core createCoreWithConfig(Config config, Object systemContext);", "public ProductionLine buildFromFile(String path) throws ParserConfigurationException, IOException, SAXException {\n Document doc = DocumentBuilderFactory\n .newInstance()\n .newDocumentBuilder()\n .parse(new File(path));\n doc.getDocumentElement().normalize();\n\n HashMap<String, ProductionUnit> productionUnits = new HashMap<>();\n\n // Get list of stages\n NodeList stageNodes = doc.getElementsByTagName(\"ProductionStage\");\n\n // Loop through stages\n for (int i = 0; i < stageNodes.getLength(); i++) {\n\n Node node = stageNodes.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element stage = (Element) node;\n\n // Create station\n String name = stage.getElementsByTagName(\"Name\").item(0).getTextContent();\n\n ProductionStage productionStage = getStage(productionUnits, name);\n\n if (productionStage == null) continue;\n\n NodeList predecessors = stage.getElementsByTagName(\"Predecessors\");\n if (predecessors.getLength() > 0) {\n Node sNode = predecessors.item(0);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element ePredecessors = (Element) sNode;\n NodeList stages = ePredecessors.getElementsByTagName(\"Stage\");\n for (int j = 0; j < stages.getLength(); j++) {\n productionStage.addPredecessor(getStage(productionUnits, stages.item(j).getTextContent()));\n }\n }\n }\n\n NodeList successors = stage.getElementsByTagName(\"Successors\");\n if (successors.getLength() > 0) {\n Node sNode = successors.item(0);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element eSuccessors = (Element) sNode;\n NodeList stages = eSuccessors.getElementsByTagName(\"Stage\");\n for (int j = 0; j < stages.getLength(); j++) {\n productionStage.addSuccessor(getStage(productionUnits, stages.item(j).getTextContent()));\n }\n }\n }\n\n NodeList input = stage.getElementsByTagName(\"Input\");\n if (input.getLength() > 0) {\n InterStageStorage storage = getStorage(productionUnits, input.item(0).getTextContent());\n if (storage == null) continue;\n storages.add(storage);\n productionStage.setInput(storage);\n } else {\n // All stages except beginning\n productionStage.updateState(ProductionStage.State.IDLE);\n }\n\n NodeList output = stage.getElementsByTagName(\"Output\");\n if (output.getLength() > 0) {\n InterStageStorage storage = getStorage(productionUnits, output.item(0).getTextContent());\n if (storage == null) continue;\n storages.add(storage);\n productionStage.setOutput(storage);\n }\n\n stages.add(productionStage);\n }\n }\n return this;\n }", "LoadGenerator createLoadGenerator();", "LoadGenerator createLoadGenerator();", "public void create(String context)\n\t{\n\t\treset();\n\t\tif (!context.equals(\"\"))\n\t\t{\n\t\t\tint i = 0;\n\t\t\tScanner scanner = new Scanner(context);\n\t\t\tdouble params[] = new double[4];\n\t\t\tString arrowType = \"\";\n\t\t\tScanner lineScanner = new Scanner(scanner.nextLine());\n\t\t\t\n\t\t\twidth = lineScanner.nextDouble ();\n\t\t\theight = lineScanner.nextDouble ();\n\n\t\t\t// Begin Processing Arrow Data\n\t\t\twhile (scanner.hasNextLine())\n\t\t\t{\n\t\t\t\tlineScanner = new Scanner(scanner.nextLine());\n\t\t\t\tfor (i = 0; i < 4; ++i)\n\t\t\t\t{\n\t\t\t\t\tif (lineScanner.hasNextDouble()) \n\t\t\t\t\t{\n\t\t\t\t\t\tparams[i] = lineScanner.nextDouble();\n\t\t\t\t\t}\n\t\t\t\t\telse \n\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\tif (lineScanner.hasNext())\n\t\t\t\t{\n\t\t\t\t\tarrowType = lineScanner.next();\n\t\t\t\t\t++i;\n\t\t\t\t\taddArrow(arrowType, params[0], params[1], params[2], params[3]);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Begin Processing UML Data\n\t\t\tif (i == 2)\n\t\t\t{\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tVector<String> linesTop = new Vector<String>();\n\t\t\t\t\tVector<String> linesMid = new Vector<String>();\n\t\t\t\t\tVector<String> linesBtm = new Vector<String>();\n\t\t\t\t\taddUML(params[0], params[1]);\n\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\tif (scanner.hasNextLine() && line.equals(\"[\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdo\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\tif (!line.equals(\"]\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlinesTop.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (scanner.hasNextLine())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (linesTop.size() > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString content = linesTop.elementAt(0);\n\t\t\t\t\t\t\t\t\tfor (int ind = 1; ind < linesTop.size(); ++ind)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontent += \"\\n\" + linesTop.elementAt(ind);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tclasses.topAt(classes.size() - 1).setText(content);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (scanner.hasNextLine() && line.equals(\"[\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdo\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\tif (!line.equals(\"]\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlinesMid.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (scanner.hasNextLine())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (linesMid.size() > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString content = linesMid.elementAt(0);\n\t\t\t\t\t\t\t\t\tfor (int ind = 1; ind < linesMid.size(); ++ind)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontent += \"\\n\" + linesMid.elementAt(ind);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tclasses.midAt(classes.size() - 1).setText(content);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (scanner.hasNextLine() && line.equals(\"[\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdo\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = scanner.nextLine();\n\t\t\t\t\t\t\tif (!line.equals(\"]\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlinesBtm.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (linesBtm.size() > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString content = linesBtm.elementAt(0);\n\t\t\t\t\t\t\t\t\tfor (int ind = 1; ind < linesBtm.size(); ++ind)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontent += \"\\n\" + linesBtm.elementAt(ind);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tclasses.btmAt(classes.size() - 1).setText(content);\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get Next Positions\n\t\t\t\t\tif (scanner.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tlineScanner = new Scanner(scanner.nextLine());\n\t\t\t\t\t\tif (lineScanner.hasNext())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor (i = 0; i < 2; ++i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparams[i] = lineScanner.nextDouble();\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{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (i != 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\twhile (scanner.hasNextLine());\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t\tscanner.close();\n\t\t}\n\t}", "private void defaultConfig(){\n\t\t\n\t\t String status =\"\";\n\t\t try {\n\t\t \tstatus =\"reading control file\";\n\t\t \tString aFile = controlfileTF.getText();\n\t\t\t config.controlfile = aFile;\n\n\t\t BufferedReader input = new BufferedReader(new FileReader(aFile));\n\t\t try {\n\t\t \n\t\t config.outputdir = input.readLine();\t\t \n\t\t outputdirTF.setText(config.outputdir);\n\t\t config.reginputdir = input.readLine();\t\t \n\t\t reginputdirTF.setText(config.reginputdir);\n\t\t config.grdinputdir = input.readLine();\t\t \n\t\t grdinputdirTF.setText(config.grdinputdir);\n\t\t config.eqchtinputdir = input.readLine();\t\t \n\t\t eqchtinputdirTF.setText(config.eqchtinputdir);\n\t\t config.spchtinputdir = input.readLine();\t\t \n\t\t spchtinputdirTF.setText(config.spchtinputdir);\n\t\t config.trchtinputdir = input.readLine();\t\t \n\t\t trchtinputdirTF.setText(config.trchtinputdir);\n\t\t config.restartinputdir = input.readLine();\t\t \n\t\t restartinputdirTF.setText(config.restartinputdir);\n\t\t config.calibrationdir = input.readLine();\t\t \n\t\t calibrationdirTF.setText(config.calibrationdir);\n\t\t \n\t\t config.runstage = input.readLine();\n\t\t if (config.runstage.equalsIgnoreCase(\"eq\")) {\n\t\t \trunstageRB[0].setSelected(true);\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sp\")) {\n\t\t \trunstageRB[1].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"tr\")) {\n\t\t \trunstageRB[2].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sptr\")) {\n\t\t \trunstageRB[3].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.initmode = input.readLine();\t\t \n\t\t if (config.initmode.equalsIgnoreCase(\"lookup\")) {\n\t\t \tinitmodeRB[0].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"restart\")) {\n\t\t \tinitmodeRB[1].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"sitein\")) {\n\t\t \tinitmodeRB[2].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.climatemode = input.readLine();\t\t \n\t\t if (config.climatemode.equalsIgnoreCase(\"normal\")) {\n\t\t \tclmmodeRB[0].setSelected(true);\n\t\t } else if (config.climatemode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tclmmodeRB[1].setSelected(true);\t\t \t\n\t\t }\n\n\t\t config.co2mode = input.readLine();\t\t \n\t\t if (config.co2mode.equalsIgnoreCase(\"initial\")) {\n\t\t \tco2modeRB[0].setSelected(true);\n\t\t } else if (config.co2mode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tco2modeRB[1].setSelected(true);\n\t\t }\n\n\t\t config.casename = input.readLine();\t\t \n\t\t casenameTF.setText(config.casename);\n \n\t\t }catch (Exception e){\n\t\t \t JOptionPane.showMessageDialog(f, status+\" failed\");\n\t\t }\n\t\t finally {\n\t\t input.close();\n\t\t }\n\t\t }\n\t\t catch (IOException ex){\n\t\t ex.printStackTrace();\n\t\t }\t\t\n\t\t}", "public static void main(String[] args) {\n\t\tString configPath = null;\n\t\tString configZks = null;\n\t\t\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(\"ZkClient.cfg\");\n\t\t\tProperties prop = new Properties();\n\t\t\tprop.load(in);\n\t\t\tin.close();\n\t\t\tconfigZks\t= prop.getProperty(\"cfg_zks\");\n\t\t\tif (configZks == null){\n\t \treturn;\n\t }\n\t\t\tconfigPath\t= prop.getProperty(\"cfg_path\");\n\t\t\tif (configPath == null){\n\t \treturn;\n\t }\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tFile file = new File(\"node.content\"); \n Long filelength = file.length(); \n byte[] fileContent = new byte[filelength.intValue()]; \n try {\n\t\t\tin = new FileInputStream(file);\n\t\t\tin.read(fileContent); \n\t in.close(); \n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} \n \n //JSONObject jsonObj = new JSONObject(filecontent); \n\t\t\n\t\tCuratorFramework client = CuratorFrameworkFactory.builder()\n\t\t\t\t.connectString(configZks)\n\t\t\t\t.sessionTimeoutMs(5000)\n\t\t\t\t.connectionTimeoutMs(3000)\n\t\t\t\t.retryPolicy(new ExponentialBackoffRetry(1000,3))\n\t\t\t\t.build();\n\t\tclient.start(); \n\t\t\n\t try { \n client.setData().forPath(configPath, fileContent); \n } catch (Exception e) { \n e.printStackTrace(); \n }\n\n\t}", "void createGraphForDistributedSingleLoad();", "public void train(KDTree test, BufferedReader br, List<double[]> equationList, int kmerToDo, boolean fastatofeature) throws Exception;", "public interface JobManager {\n void startJob(JobConfig<String, JsonRecord> name);\n}", "@Override\n public ArrayList<String> run(LogicGraph logicGraph, Entity runConfig) {\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Execution Started\");\n ArrayList<String> status=new ArrayList<>();\n boolean anchor;\n ArrayList<GraphNode> flow=logicGraph.getNodes();\n int phaseStart=0, phaseEnd=0;\n for (int i=0;i<flow.size();i++){\n flow.get(i).getComponent().init();\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" \" +flow.get(i).getComponent().getClass().getName()+\" is initialized.\");\n }\n do {\n while(phaseEnd!=flow.size() && !flow.get(phaseEnd).getCategory().equals(\"Phase\")){\n phaseEnd++;\n }\n int count=0;\n do {\n count++;\n anchor=false;\n int i=phaseStart;\n Entity io=null;\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" phase \"+ phaseEnd+ \" in execution.\");\n try{\n io = flow.get(phaseStart).getComponent().process(io);\n for (i +=1; i < phaseEnd; i++) {\n if(io!=null){\n anchor=true;\n }\n io = flow.get(i).getComponent().process(io);\n }\n }catch (Exception e){\n status.add(\"Problem faced during execution of \"+flow.get(phaseEnd).getName());\n status.add(\"Problem at: \"+flow.get(i).getName());\n status.add(\"Cause: \"+e.getMessage());\n e.printStackTrace();\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Error in Execution\" + status);\n return status;\n }\n } while (anchor);\n phaseStart=phaseEnd+1;\n phaseEnd++;\n System.out.println(\"phase over count:\"+count+\"\\nphasestart:\"+phaseStart+\"\\nphaseend:\"+phaseEnd);\n }while (phaseEnd<flow.size());\n status.add(\"success\");\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Execution Completed \"+ status);\n\n return status;\n }", "private void createTrackingPipeline() throws ConfigurationException\n {\n fgDetector = new HSVFGDetector();\n // fgDetector = new DifferenceFGDetector();\n\n blobDetector = opencv_legacy.cvCreateBlobDetectorSimple();\n // blobTracker = opencv_legacy.cvCreateBlobTrackerCCMSPF();\n blobTracker = opencv_legacy.cvCreateBlobTrackerCC();\n trackerPostProcessor = opencv_legacy.cvCreateModuleBlobTrackPostProcKalman();\n trackerFrameCount = 0;\n blobs.Clear();\n badFramesForBlob.clear();\n }", "public abstract Configuration configuration();", "public static void main(String[] args) throws ParseException {\n // first load the configurations from command line and config files\n Config config = ResourceAllocator.loadConfig(new HashMap<>());\n\n Options options = new Options();\n options.addOption(Constants.ARGS_PARALLELISM, true, \"parallelism\");\n options.addOption(Constants.ARGS_SIZE, true, \"Size\");\n options.addOption(Constants.ARGS_ITR, true, \"Iteration\");\n options.addOption(Utils.createOption(Constants.ARGS_OPERATION, true, \"Operation\", true));\n options.addOption(Constants.ARGS_STREAM, false, \"Stream\");\n options.addOption(Utils.createOption(Constants.ARGS_TASK_STAGES, true, \"Throughput mode\", true));\n options.addOption(Utils.createOption(Constants.ARGS_GAP, true, \"Gap\", false));\n options.addOption(Utils.createOption(Constants.ARGS_FNAME, true, \"File name\", false));\n options.addOption(Utils.createOption(Constants.ARGS_APP_NAME, true, \"App Name\", false));\n options.addOption(Utils.createOption(Constants.ARGS_OUTSTANDING, true, \"Throughput no of messages\", false));\n options.addOption(Utils.createOption(Constants.ARGS_THREADS, true, \"Threads\", false));\n options.addOption(Utils.createOption(Constants.ARGS_PRINT_INTERVAL, true, \"Threads\", false));\n options.addOption(Utils.createOption(Constants.ARGS_DATA_TYPE, true, \"Data\", false));\n options.addOption(Utils.createOption(Constants.ARGS_KEYED, true, \"Operation Type , ex : keyed\", false));\n options.addOption(Utils.createOption(Constants.ARGS_INIT_ITERATIONS, true, \"Data\", false));\n options.addOption(Constants.ARGS_VERIFY, false, \"verify\");\n options.addOption(Constants.ARGS_COMMS, false, \"comms\");\n options.addOption(Constants.ARGS_TASK_EXEC, false, \"taske\");\n options.addOption(Constants.ARGS_APP, false, \"app\");\n\n CommandLineParser commandLineParser = new DefaultParser();\n CommandLine cmd = commandLineParser.parse(options, args);\n int parallelism = Integer.parseInt(cmd.getOptionValue(Constants.ARGS_PARALLELISM));\n int size = Integer.parseInt(cmd.getOptionValue(Constants.ARGS_SIZE));\n int itr = Integer.parseInt(cmd.getOptionValue(Constants.ARGS_ITR));\n String operation = cmd.getOptionValue(Constants.ARGS_OPERATION);\n boolean stream = cmd.hasOption(Constants.ARGS_STREAM);\n boolean verify = cmd.hasOption(Constants.ARGS_VERIFY);\n boolean keyed = cmd.hasOption(Constants.ARGS_KEYED);\n boolean taskExec = cmd.hasOption(Constants.ARGS_TASK_EXEC);\n boolean app = cmd.hasOption(Constants.ARGS_APP);\n boolean comms = cmd.hasOption(Constants.ARGS_COMMS);\n\n String threads = \"true\";\n if (cmd.hasOption(Constants.ARGS_THREADS)) {\n threads = cmd.getOptionValue(Constants.ARGS_THREADS);\n }\n\n String taskStages = cmd.getOptionValue(Constants.ARGS_TASK_STAGES);\n String gap = \"0\";\n if (cmd.hasOption(Constants.ARGS_GAP)) {\n gap = cmd.getOptionValue(Constants.ARGS_GAP);\n }\n\n String fName = \"\";\n if (cmd.hasOption(Constants.ARGS_FNAME)) {\n fName = cmd.getOptionValue(Constants.ARGS_FNAME);\n }\n\n String outstanding = \"0\";\n if (cmd.hasOption(Constants.ARGS_OUTSTANDING)) {\n outstanding = cmd.getOptionValue(Constants.ARGS_OUTSTANDING);\n }\n\n String printInt = \"1\";\n if (cmd.hasOption(Constants.ARGS_PRINT_INTERVAL)) {\n printInt = cmd.getOptionValue(Constants.ARGS_PRINT_INTERVAL);\n }\n\n String dataType = \"default\";\n if (cmd.hasOption(Constants.ARGS_DATA_TYPE)) {\n dataType = cmd.getOptionValue(Constants.ARGS_DATA_TYPE);\n }\n String intItr = \"0\";\n if (cmd.hasOption(Constants.ARGS_INIT_ITERATIONS)) {\n intItr = cmd.getOptionValue(Constants.ARGS_INIT_ITERATIONS);\n }\n\n // build JobConfig\n JobConfig jobConfig = new JobConfig();\n jobConfig.put(Constants.ARGS_ITR, Integer.toString(itr));\n jobConfig.put(Constants.ARGS_OPERATION, operation);\n jobConfig.put(Constants.ARGS_SIZE, Integer.toString(size));\n jobConfig.put(Constants.ARGS_PARALLELISM, Integer.toString(parallelism));\n jobConfig.put(Constants.ARGS_TASK_STAGES, taskStages);\n jobConfig.put(Constants.ARGS_GAP, gap);\n jobConfig.put(Constants.ARGS_FNAME, fName);\n jobConfig.put(Constants.ARGS_OUTSTANDING, outstanding);\n jobConfig.put(Constants.ARGS_THREADS, threads);\n jobConfig.put(Constants.ARGS_PRINT_INTERVAL, printInt);\n jobConfig.put(Constants.ARGS_DATA_TYPE, dataType);\n jobConfig.put(Constants.ARGS_INIT_ITERATIONS, intItr);\n jobConfig.put(Constants.ARGS_VERIFY, verify);\n jobConfig.put(Constants.ARGS_STREAM, stream);\n jobConfig.put(Constants.ARGS_KEYED, keyed);\n jobConfig.put(Constants.ARGS_TASK_EXEC, taskExec);\n jobConfig.put(Constants.ARGS_STREAM, app);\n jobConfig.put(Constants.ARGS_COMMS, comms);\n\n // build the job\n if (!app) {\n switch (operation) {\n\n }\n\n } else {\n\n }\n\n\n if (comms) {\n System.out.println(\"==========Comms Example Running===========\");\n CommsRunner commsRunner = new CommsRunner(config, jobConfig, stream, operation, parallelism, keyed);\n commsRunner.run();\n }\n\n\n if (!keyed) {\n if (taskExec) {\n\n }\n }\n\n switch (operation) {\n case \"keyedreduce\":\n\n }\n\n\n }", "Pair<T, U> build(ConfigurationSourceProvider provider, String path) throws IOException, ConfigurationException;", "private void parsePipeline() throws ConfigException {\n\n List pipelineConfig = (List) rawConfig.get(KEY_PIPELINE);\n\n if (pipelineConfig != null) {\n for (Object stepConfig: pipelineConfig) {\n if (stepConfig instanceof Map) {\n Stage stage = Stage.parse((Map) stepConfig, environment);\n stages.add(stage);\n } else {\n throw new ConfigException(\"config format error.\");\n }\n }\n }\n }", "@Test\n public void testParallelScan() throws Exception {\n WorkflowJob job = r.jenkins.createProject(WorkflowJob.class, \"Convoluted\");\n job.setDefinition(new CpsFlowDefinition(\n \"echo 'first'\\n\" +\n \"def steps = [:]\\n\" +\n \"steps['1'] = {\\n\" +\n \" echo 'do 1 stuff'\\n\" +\n \"}\\n\" +\n \"steps['2'] = {\\n\" +\n \" echo '2a'\\n\" +\n \" echo '2b'\\n\" +\n \"}\\n\" +\n \"parallel steps\\n\" +\n \"echo 'final'\",\n true));\n\n /* Flow structure (ID - type)\n 2 - FlowStartNode (BlockStartNode)\n 3 - Echostep\n 4 - ParallelStep (StepStartNode) (start branches)\n 6 - ParallelStep (StepStartNode) (start branch 1), ParallelLabelAction with branchname=1\n 7 - ParallelStep (StepStartNode) (start branch 2), ParallelLabelAction with branchname=2\n 8 - EchoStep, (branch 1) parent=6\n 9 - StepEndNode, (end branch 1) startId=6, parentId=8\n 10 - EchoStep, (branch 2) parentId=7\n 11 - EchoStep, (branch 2) parentId = 10\n 12 - StepEndNode (end branch 2) startId=7 parentId=11,\n 13 - StepEndNode (close branches), parentIds = 9,12, startId=4\n 14 - EchoStep\n 15 - FlowEndNode (BlockEndNode)\n */\n\n WorkflowRun b = r.assertBuildStatusSuccess(job.scheduleBuild2(0));\n FlowExecution exec = b.getExecution();\n Collection<FlowNode> heads = b.getExecution().getCurrentHeads();\n\n AbstractFlowScanner scanner = new LinearScanner();\n scanner.setup(heads);\n FlowTestUtils.assertNodeOrder(\"Linear\", scanner, 15, 14, 13, 9, 8, 6, 4, 3, 2);\n scanner.setup(heads, Collections.singleton(exec.getNode(\"9\")));\n FlowTestUtils.assertNodeOrder(\"Linear\", scanner, 15, 14, 13, 12, 11, 10, 7, 4, 3, 2);\n\n\n // Depth first scanner and with blacklist\n scanner = new DepthFirstScanner();\n scanner.setup(heads);\n\n // Compatibility test for ordering\n FlowTestUtils.assertNodeOrder(\"FlowGraphWalker\", new FlowGraphWalker(exec), 15, 14, 13,\n 9, 8, 6, // Branch 1\n 4, 3, 2, // Before parallel\n 12, 11, 10, 7); // Branch 2\n FlowTestUtils.assertNodeOrder(\"Depth first\", new FlowGraphWalker(exec), 15, 14, 13,\n 9, 8, 6, // Branch 1\n 4, 3, 2, // Before parallel\n 12, 11, 10, 7); // Branch 2\n scanner.setup(heads, Collections.singleton(exec.getNode(\"9\")));\n FlowTestUtils.assertNodeOrder(\"Linear\", scanner, 15, 14, 13, 12, 11, 10, 7, 4, 3, 2);\n\n scanner.setup(Arrays.asList(exec.getNode(\"9\"), exec.getNode(\"12\")));\n FlowTestUtils.assertNodeOrder(\"Depth-first scanner from inside parallels\", scanner, 9, 8, 6, 4, 3, 2, 12, 11, 10, 7);\n\n // We're going to test the ForkScanner in more depth since this is its natural use\n scanner = new ForkScanner();\n scanner.setup(heads);\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 15, 14, 13,\n 12, 11, 10, 7,// One parallel\n 9, 8, 6, // other parallel\n 4, 3, 2); // end bit\n scanner.setup(heads, Collections.singleton(exec.getNode(\"9\")));\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 15, 14, 13, 12, 11, 10, 7, 4, 3, 2);\n\n // Test forkscanner midflow\n scanner.setup(exec.getNode(\"14\"));\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 14, 13,\n 12, 11, 10, 7, // Last parallel\n 9, 8, 6, // First parallel\n 4, 3, 2); // end bit\n\n // Test forkscanner inside a parallel\n List<FlowNode> startingPoints = Arrays.asList(exec.getNode(\"9\"), exec.getNode(\"12\"));\n scanner.setup(startingPoints);\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 9, 8, 6, 12, 11, 10, 7, 4, 3, 2);\n\n startingPoints = Arrays.asList(exec.getNode(\"9\"), exec.getNode(\"11\"));\n scanner.setup(startingPoints);\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 9, 8, 6, 11, 10, 7, 4, 3, 2);\n\n\n // Filtering at different points within branches\n List<FlowNode> blackList = Arrays.asList(exec.getNode(\"6\"), exec.getNode(\"7\"));\n Assert.assertEquals(4, scanner.filteredNodes(heads, blackList, FlowTestUtils.MATCH_ECHO_STEP).size());\n Assert.assertEquals(4, scanner.filteredNodes(heads, Collections.singletonList(exec.getNode(\"4\")), FlowTestUtils.MATCH_ECHO_STEP).size());\n blackList = Arrays.asList(exec.getNode(\"6\"), exec.getNode(\"10\"));\n Assert.assertEquals(3, scanner.filteredNodes(heads, blackList, FlowTestUtils.MATCH_ECHO_STEP).size());\n }", "@BeforeClass\r\n public static void generateConfigurationOfClassifiersAndLoadData() {\r\n\r\n //one classifier in the ensemble will be ClassifierModel (Model for enach output class)\r\n GaussianMultiModelConfig gmc = new GaussianMultiModelConfig();\r\n gmc.setTrainerClassName(\"QuasiNewtonTrainer\");\r\n gmc.setTrainerCfg(new QuasiNewtonConfig());\r\n LinearModelConfig lmcpso = new LinearModelConfig();\r\n lmcpso.setTrainerClassName(\"PSOTrainer\");\r\n lmcpso.setTrainerCfg(new PSOConfig());\r\n ClassifierModelConfig clc = new ClassifierModelConfig();\r\n clc.setClassModelsDef(BaseModelsDefinition.RANDOM);\r\n clc.addClassModelCfg(lmcpso);\r\n clc.addClassModelCfg(gmc);\r\n clc.setClassRef(ClassifierModel.class);\r\n\r\n //todo second classifier in the ensemble will be Weka decision tree\r\n\r\n ClassifierBaggingConfig bagc = new ClassifierBaggingConfig();\r\n bagc.setClassifiersNumber(2);\r\n bagc.setBaseClassifiersDef(BaseModelsDefinition.UNIFORM);\r\n bagc.addBaseClassifierCfg(clc);\r\n\r\n generatedCfg = bagc;\r\n ConfigurationFactory.saveConfiguration(generatedCfg, cfgfilename);\r\n\r\n data = new FileGameData(datafilename);\r\n\r\n }", "public void loadWorkflow(String filename);", "interface UpdateStages {\n /**\n * The stage of the job update allowing to specify Caffe2Settings.\n */\n interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next update stage\n */\n Update withCaffe2Settings(Caffe2Settings caffe2Settings);\n }\n\n /**\n * The stage of the job update allowing to specify CaffeSettings.\n */\n interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next update stage\n */\n Update withCaffeSettings(CaffeSettings caffeSettings);\n }\n\n /**\n * The stage of the job update allowing to specify ChainerSettings.\n */\n interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next update stage\n */\n Update withChainerSettings(ChainerSettings chainerSettings);\n }\n\n /**\n * The stage of the job update allowing to specify CntkSettings.\n */\n interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next update stage\n */\n Update withCntkSettings(CNTKsettings cntkSettings);\n }\n\n /**\n * The stage of the job update allowing to specify Constraints.\n */\n interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next update stage\n */\n Update withConstraints(JobBasePropertiesConstraints constraints);\n }\n\n /**\n * The stage of the job update allowing to specify ContainerSettings.\n */\n interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next update stage\n */\n Update withContainerSettings(ContainerSettings containerSettings);\n }\n\n /**\n * The stage of the job update allowing to specify CustomToolkitSettings.\n */\n interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next update stage\n */\n Update withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }\n\n /**\n * The stage of the job update allowing to specify EnvironmentVariables.\n */\n interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next update stage\n */\n Update withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }\n\n /**\n * The stage of the job update allowing to specify ExperimentName.\n */\n interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next update stage\n */\n Update withExperimentName(String experimentName);\n }\n\n /**\n * The stage of the job update allowing to specify InputDirectories.\n */\n interface WithInputDirectories {\n /**\n * Specifies inputDirectories.\n * @param inputDirectories the inputDirectories parameter value\n * @return the next update stage\n */\n Update withInputDirectories(List<InputDirectory> inputDirectories);\n }\n\n /**\n * The stage of the job update allowing to specify JobPreparation.\n */\n interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next update stage\n */\n Update withJobPreparation(JobPreparation jobPreparation);\n }\n\n /**\n * The stage of the job update allowing to specify OutputDirectories.\n */\n interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next update stage\n */\n Update withOutputDirectories(List<OutputDirectory> outputDirectories);\n }\n\n /**\n * The stage of the job update allowing to specify Priority.\n */\n interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next update stage\n */\n Update withPriority(Integer priority);\n }\n\n /**\n * The stage of the job update allowing to specify TensorFlowSettings.\n */\n interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next update stage\n */\n Update withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }\n\n }", "public interface WorkflowStorage {\n\n /**\n * Creates the schema in this storage.\n */\n void format();\n \n /**\n * Clears all entries in this storage.\n */\n void clear();\n\n /**\n * Adds a workflow to this storage.\n * \n * @param workflow the workflow to add.\n */\n void addWorkflow(Workflow workflow);\n\n /**\n * Counts the workflows stored in this storage.\n * \n * @return the number of workflows in this storage.\n */\n long countWorkflows();\n\n /**\n * Counts the jobs stored in this storage.\n * \n * @return the number of jobs in this storage.\n */\n long countJobs();\n\n /**\n * Counts jobs that have the specified status.\n * \n * @param status the status of the jobs to count.\n * @return the number of the jobs.\n */\n long countJobsWithStatus(JobStatus status);\n\n /**\n * Returns the job specified by the ID.\n * \n * @param id the identifier of the job.\n * @return retrieved job, never be {@code null}.\n * @throws NoSuchElementException if no job has the specified ID. \n */\n Job findJobById(long id);\n\n List<Job> findJobsByStatus(JobStatus status);\n\n Optional<Job> findFirstJobByStatus(JobStatus status);\n \n /**\n * Returns the status of the job specified by the ID.\n * \n * @param id the identifier of the job.\n * @return the status of the specified job, never be {@code null}.\n * @throws NoSuchElementException if no job has the specified ID. \n */\n JobStatus getJobStatus(long id);\n\n Workflow getWorkflow(long id);\n \n //\n \n List<JobLink> findLinksByTarget(ManagedJob target);\n\n /**\n * Finds next jobs.\n * \n * @param job the source job.\n * @return the list of next jobs, never be {@code null}.\n */\n List<Long> findNextJobs(Job job);\n \n /**\n * Stores the specified job with product of the execution.\n * \n * @param job the job to store.\n * @param status the status of the job after the execution.\n * @param jobOutput the output of the job.\n * @param standardOutput the standard output produced by the execution.\n */\n void storeJob(Job job, JobStatus status, Map<String, Object> jobOutput, String[] standardOutput);\n\n int updateJobStatusIfReady(long jobId);\n}", "ICompilerWorkflow getSimCompilerWorkflow();", "ITaskFactory<?> load(String classname);", "public interface MasterProcessChannelProcessorFactory extends Closeable {\n /**\n * Evaluates the {@code channelConfig}.\n *\n * @param channelConfig a connection string used by the fork JVM\n * @return {@code true} if {@code channelConfig} is applicable and thus this SPI is eligible in the fork\n */\n boolean canUse(String channelConfig);\n\n /**\n * Open a new connection.\n *\n * @param channelConfig e.g. \"pipe://3\" or \"tcp://localhost:65035\"\n * @throws IOException if cannot connect\n */\n void connect(String channelConfig) throws IOException;\n\n /**\n * Decoder factory method.\n * @param forkingArguments forking arguments\n * @return a new instance of decoder\n */\n MasterProcessChannelDecoder createDecoder(@Nonnull ForkNodeArguments forkingArguments) throws IOException;\n\n /**\n * Encoder factory method.\n * @param forkingArguments forking arguments\n * @return a new instance of encoder\n */\n MasterProcessChannelEncoder createEncoder(@Nonnull ForkNodeArguments forkingArguments) throws IOException;\n}", "public void initialize() {\n cpuThreads = new BooleanLabel(constants.yes(), constants.no());\n memoryOverCommit = new PercentLabel<Integer>();\n resiliencePolicy = new ResiliencePolicyLabel();\n clusterType = new ClusterTypeLabel();\n\n driver.initialize(this);\n\n DefaultValueCondition virtServiceNotSupported = new DefaultValueCondition() {\n @Override\n public boolean showDefaultValue() {\n boolean supportsVirtService = getModel().getEntity() != null\n && getModel().getEntity().supportsVirtService();\n return !supportsVirtService;\n }\n };\n\n DefaultValueCondition glusterServiceNotSupported = new DefaultValueCondition() {\n @Override\n public boolean showDefaultValue() {\n boolean supportsGlusterService = getModel().getEntity() != null\n && getModel().getEntity().supportsGlusterService();\n return !supportsGlusterService;\n }\n };\n\n boolean virtSupported = ApplicationModeHelper.isModeSupported(ApplicationMode.VirtOnly);\n boolean glusterSupported = ApplicationModeHelper.isModeSupported(ApplicationMode.GlusterOnly);\n\n formBuilder.addFormItem(new FormItem(constants.nameCluster(), name, 0, 0));\n formBuilder.addFormItem(new FormItem(constants.descriptionCluster(), description, 1, 0));\n formBuilder.addFormItem(new FormItem(constants.dcCluster(), dataCenterName, 2, 0, virtSupported));\n formBuilder.addFormItem(new FormItem(constants.compatibilityVersionCluster(), compatibilityVersion, 3, 0));\n\n // Show the cluster type only if the application is running in both the modes\n formBuilder.addFormItem(new FormItem(constants.clusterType(), clusterType, 4, 0, virtSupported\n && glusterSupported));\n\n // properties for virt support\n formBuilder.addFormItem(new FormItem(constants.cpuTypeCluster(), cpuType, 0, 1, virtSupported)\n .withDefaultValue(constants.notAvailableLabel(), virtServiceNotSupported));\n formBuilder.addFormItem(new FormItem(constants.cpuThreadsCluster(), cpuThreads, 1, 1, virtSupported)\n .withDefaultValue(constants.notAvailableLabel(), virtServiceNotSupported));\n formBuilder.addFormItem(new FormItem(constants.memoryOptimizationCluster(), memoryOverCommit, 2, 1, virtSupported)\n .withDefaultValue(constants.notAvailableLabel(), virtServiceNotSupported));\n formBuilder.addFormItem(new FormItem(constants.resiliencePolicyCluster(), resiliencePolicy, 3, 1, virtSupported)\n .withDefaultValue(constants.notAvailableLabel(), virtServiceNotSupported));\n formBuilder.addFormItem(new FormItem(constants.emulatedMachine(), emulatedMachine, 4, 1, virtSupported)\n .withDefaultValue(constants.notAvailableLabel(), virtServiceNotSupported));\n formBuilder.addFormItem(new FormItem(constants.numberOfVmsCluster(), numberOfVms, 5, 1, virtSupported)\n .withDefaultValue(constants.notAvailableLabel(), virtServiceNotSupported));\n\n // properties for gluster support\n formBuilder.addFormItem(new FormItem(constants.clusterVolumesTotalLabel(), noOfVolumesTotal, 0, 2, glusterSupported)\n .withDefaultValue(constants.notAvailableLabel(), glusterServiceNotSupported));\n formBuilder.addFormItem(new FormItem(constants.clusterVolumesUpLabel(), noOfVolumesUp, 1, 2, glusterSupported)\n .withDefaultValue(constants.notAvailableLabel(), glusterServiceNotSupported));\n formBuilder.addFormItem(new FormItem(constants.clusterVolumesDownLabel(), noOfVolumesDown, 2, 2, glusterSupported)\n .withDefaultValue(constants.notAvailableLabel(), glusterServiceNotSupported));\n }", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "public static void main(String[] args) {\n generateAndSaveExampleGraph();\n\n\n /*\n * select graph for prepairing and handling by algorhytm\n * determine graph source from config.xml:\n * config case = ?\n * 1 - from matrix\n * 2 - from edges list\n * 3 - from xml\n * */\n //read configCase\n Integer configCase = 0;\n try {\n configCase = (Integer) XMLSerializer.read( \"config.xml\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n //determine case\n EuclidDirectedGraph graph = null;\n switch (configCase){\n case 1:\n graph = getGraphFromMatrix();\n break;\n case 2:\n graph = getGraphFromEdgesList();\n break;\n case 3:\n graph = getGraphFromXML();\n break;\n default:\n return;\n\n }\n //find all sources and sinks\n ArrayList<BoundsGraphVertex> sources = new ArrayList<>();\n ArrayList<BoundsGraphVertex> sinks = new ArrayList<>();\n //get all sources and sinks\n for (Map.Entry<BoundsGraphVertex, Map<BoundsGraphVertex, Double>> vertexEntry : graph.getMap().entrySet()) {\n //if there are no edges from vertex then its sink\n if (vertexEntry.getValue().isEmpty()) {\n sinks.add(vertexEntry.getKey());\n } else {\n //mark all vertexes which have incoming edges\n for (BoundsGraphVertex dest : vertexEntry.getValue().keySet()) {\n dest.setMarked(true);\n }\n }\n }\n //all unmarked vertexes are sources\n for (BoundsGraphVertex vertex : graph) {\n if (!vertex.isMarked()) sources.add(vertex);\n }\n\n /*\n * First algorithm: for each source-sink pair get path using euclid heuristics\n * */\n List<BoundsGraphVertex> minPath = null;\n Double minLength = Double.MAX_VALUE;\n for (BoundsGraphVertex source :\n sources) {\n for (BoundsGraphVertex sink :\n sinks) {\n //need use path storage list because algorhytm returns only double val of length.\n //path will be saved in this storage.\n List<BoundsGraphVertex> pathStorage = new ArrayList<>();\n //do algo\n Double length = Algorithms.shortestEuclidDijkstraFibonacciPathWithHeuristics(graph, source, sink, pathStorage, minLength);\n //check min\n if (minLength > length) {\n minLength = length;\n minPath = pathStorage;\n }\n\n }\n }\n\n /*\n * Second algorithm: for each source get better sink\n * */\n minPath = null;\n minLength = Double.MAX_VALUE;\n for (BoundsGraphVertex source :\n sources) {\n //need use path storage list because algorhytm returns only double val of length.\n //path will be saved in this storage.\n List<BoundsGraphVertex> pathStorage = new ArrayList<>();\n //do algo\n Double length = Algorithms.shortestEuclidDijkstraFibonacciPathToManySinks(graph, source, sinks, pathStorage, minLength);\n //check min\n if (minLength > length) {\n minLength = length;\n minPath = pathStorage;\n }\n }\n try {\n XMLSerializer.write(minPath, \"output.xml\", false);\n XMLSerializer.write(minLength, \"output.xml\", true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "public interface Config {\n\n /**\n * Converts the config into a Map\n *\n * @param deep If true, instead of putting Maps for subconfigs,\n * use the full path using the separator character to split\n * @return This config as a Map\n */\n Map<String, Object> getValues(boolean deep);\n\n /**\n * @param path The path to check\n * @return If the config contains an item at path\n */\n boolean contains(String path);\n\n /**\n * Load the values from the map into this config.\n *\n * @param values The map to load in.\n */\n default void setAll(Map<String, Object> values) {\n for (String path : values.keySet()) {\n set(path, values.get(path));\n }\n }\n\n /**\n * Sets the value at path to value\n *\n * @param path The path to put the value\n * @param value The value\n * @return The modified config object, to allow for chain calls\n */\n Config set(String path, Object value);\n\n default void setAll(Config values) {\n for (String path : values.getKeys(true)) {\n set(path, values.get(path));\n }\n }\n\n /**\n * @param deep Should full paths be returned for keys in subconfigs, separated by the separator character?\n * @return The keys that have values in this config\n */\n Set<String> getKeys(boolean deep);\n\n /**\n * Finds and retrieves the object at the given path. If the path is empty, returns this object.\n *\n * @param path The path of the object\n * @return The object at the given path, or null if not found\n */\n default Object get(String path) {\n return get(path, null);\n }\n\n /**\n * Gets the raw value this config contains at path, returning the placeholder def is nothing is found.\n *\n * @param path The path to get the value at\n * @param def The placeholder if no value is found at path, e.g. {@code null}\n * @return The raw object contained at path, or def if nothing is there.\n */\n Object get(String path, Object def);\n\n /**\n * @return The separator character.\n */\n char getSeparator();\n\n /**\n *\n * @return toString() of the object at the path, or null if there is none\n */\n default String getString(String path) {\n return getString(path, null);\n }\n\n /**\n *\n * @return toString() of the object at the path, or def if there is none\n */\n default String getString(String path, String def) {\n Object obj = get(path);\n\n if (obj != null) return obj.toString();\n else return def;\n }\n\n /**\n *\n * @return If there is a String stored at the given path\n */\n default boolean isString(String path) {\n return get(path) instanceof String;\n }\n\n /**\n *\n * @return The int value of the number stored at the path, or 0 if there is none\n */\n default int getInt(String path) {\n return getInt(path, 0);\n }\n\n /**\n * @return The int value of the number stored at the path, or def if there is none\n */\n default int getInt(String path, int def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).intValue();\n else return def;\n }\n\n /**\n *\n * @return If the object at the path is an instance of Integer\n */\n default boolean isInt(String path) {\n return get(path) instanceof Integer;\n }\n\n /**\n *\n * @return The short value of the number stored at the path, or 0 if there is none\n */\n default short getShort(String path) {\n return getShort(path, 0);\n }\n\n /**\n * @return The short value of the number stored at the path, or def if there is none\n */\n default short getShort(String path, int def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).shortValue();\n else return (short) def;\n }\n\n /**\n *\n * @return If the object at the path is an instance of Short\n */\n default boolean isShort(String path) {\n return get(path) instanceof Short;\n }\n\n /**\n *\n * @return True if the boolean true is stored at path, otherwise false\n */\n default boolean getBoolean(String path) {\n return getBoolean(path, false);\n }\n\n /**\n * @return The boolean value stored at path, or def is there is none\n */\n default boolean getBoolean(String path, boolean def) {\n Object obj = get(path);\n\n if (obj instanceof Boolean) return (Boolean) obj;\n else return def;\n }\n\n /**\n * @return If there is a boolean stored at path\n */\n default boolean isBoolean(String path) {\n return get(path) instanceof Boolean;\n }\n\n default boolean isNumber(String path) {\n return get(path) instanceof Number;\n }\n\n default double getDouble(String path) {\n return getDouble(path, 0.0d);\n }\n\n default double getDouble(String path, double def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).doubleValue();\n else return def;\n }\n\n default boolean isDouble(String path) {\n return get(path) instanceof Double;\n }\n\n default BigDecimal getBigDecimal(String path) {\n return getBigDecimal(path, BigDecimal.ZERO);\n }\n\n default BigDecimal getBigDecimal(String path, BigDecimal def) {\n Object obj = get(path);\n\n if (obj instanceof Number) {\n if (obj instanceof BigDecimal) {\n return (BigDecimal) obj;\n } else if (obj instanceof BigInteger) {\n return new BigDecimal((BigInteger) obj);\n } else {\n return BigDecimal.valueOf(((Number) obj).doubleValue());\n }\n } else return def;\n }\n\n default boolean isBigDecimal(String path) {\n return get(path) instanceof BigDecimal;\n }\n\n default long getLong(String path) {\n return getLong(path, 0L);\n }\n\n default long getLong(String path, long def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).longValue();\n else return def;\n }\n\n default boolean isLong(String path) {\n return get(path) instanceof Long;\n }\n\n default byte[] getByteArray(String path) {\n return getByteArray(path, new byte[0]);\n }\n\n default byte[] getByteArray(String path, byte[] def) {\n Object obj = get(path);\n\n if (obj instanceof byte[]) return (byte[]) obj;\n else return def;\n }\n\n default boolean isByteArray(String path) {\n return get(path) instanceof byte[];\n }\n\n default List<String> getStringList(String path) {\n return getList(path, String.class);\n }\n\n default <T> List<T> getList(String path, Class<T> clazz) {\n return getList(path, new ArrayList<>(), clazz);\n }\n\n @SuppressWarnings(\"unchecked\")\n default <T> List<T> getList(String path, List<T> def, Class<T> clazz) {\n Object obj = get(path);\n\n if (!(obj instanceof Collection<?>)) return def;\n\n Collection<?> input = (Collection<?>) obj;\n List<T> result = new ArrayList<>();\n\n for (Object o : input) {\n if (!clazz.isInstance(o)) continue;\n\n result.add((T) o);\n }\n\n return result;\n }\n\n default List<Config> getConfigList(String path) {\n return getList(path, Config.class);\n }\n\n default boolean isList(String path) {\n return get(path) instanceof List<?>;\n }\n\n /**\n * @param path The path to check for a list\n * @param type The type that the list should contain\n * @return If there is a list at this path and it contains an object with the type {@code type}\n */\n default boolean isList(String path, Class<?> type) {\n if (!isList(path)) return false;\n\n List<?> list = getList(path, null, type);\n\n return list != null && !list.isEmpty();\n }\n\n default Config getConfigOrNull(String path) {\n Object obj = get(path);\n\n if (!(obj instanceof Config)) return null;\n else return (Config) obj;\n }\n\n Config getConfigOrEmpty(String path);\n\n default boolean isConfig(String path) {\n return get(path) instanceof Config;\n }\n\n /**\n * Modifies the fields of the object passed in to the values specified in this config.\n *\n * @param object The object to modify the fields of.\n * @param <T> The type of the object\n * @return The (now modified) object\n */\n default <T> T getAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isTransient(field.getModifiers())) continue;\n\n if (!contains(field.getName())) continue;\n\n try {\n if (field.getType().equals(double.class)) {\n if (!isNumber(field.getName())) continue;\n field.setDouble(object, getDouble(field.getName()));\n } else if (field.getType().equals(float.class)) {\n if (!isNumber(field.getName())) continue;\n field.setFloat(object, (float) getDouble(field.getName()));\n } else if (field.getType().equals(int.class)) {\n if (!isNumber(field.getName())) continue;\n field.setInt(object, getInt(field.getName()));\n } else if (field.getType().equals(boolean.class)) {\n if (!isBoolean(field.getName())) continue;\n field.setBoolean(object, getBoolean(field.getName()));\n } else if (field.getType().equals(long.class)) {\n if (!isNumber(field.getName())) continue;\n field.setLong(object, getLong(field.getName()));\n } else if (field.getType().equals(short.class)) {\n if (!isNumber(field.getName())) continue;\n field.setShort(object, (short) getInt(field.getName()));\n } else if (field.getType().equals(byte.class)) {\n if (!isNumber(field.getName())) continue;\n field.setByte(object, (byte) getInt(field.getName()));\n } else {\n Object newValue = getType(field.getName(), field.getType());\n if (newValue == null) continue;\n\n field.set(object, newValue);\n }\n\n } catch (IllegalAccessException e) {\n //This should not happen hopefully.\n e.printStackTrace();\n }\n }\n\n return object;\n }\n\n /**\n * Loads the fields of the object into this config.\n *\n * @param object The object itself\n * @param <T> The type of object\n * @return The object, again\n */\n default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }\n\n default <T> T getType(String path, Class<T> type) {\n return getType(path, null, type);\n }\n\n @SuppressWarnings(\"unchecked\")\n default <T> T getType(String path, T def, Class<T> type) {\n Object obj = get(path);\n\n if (!type.isInstance(obj)) return def;\n return (T) obj;\n }\n}", "public Config createConfig(String filename);", "public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}", "void createGraphForMassiveLoad();", "public interface Configuration {\n// /**\n// * 获取主分词器词库\n// * @return\n// */\n// public String getMainDic();\n// /**\n// * 获取城市词路径\n// * @return String 城市词路径\n// */\n// public String getCityDicionary();\n\n /**\n * 获取城区词路径\n *\n * @return String 获取城区词路径\n */\n public String getRegionDicionary();\n\n /**\n * 获取\"工程师\"类词库路径\n *\n * @return String \"工程师\"类词库路径\n */\n public String getTheoremDicionary();\n\n /**\n * 获取\"总工程师\"类词库路径\n *\n * @return String \"总工程师\"类词库路径\n */\n public String getEngineerDicionary();\n\n /**\n * 获取垃圾类词库路径\n *\n * @return String 垃圾类词库路径\n */\n public String getConjunctionDicionary();\n\n /**\n * 获取多义类词库路径\n *\n * @return String 多义词库路径\n */\n public String getPolysemyDicionary();\n\n /**\n * 获取多职位前词库路径\n *\n * @return String 多职位前词库路径\n */\n public String getManagerDicionary();\n\n /**\n * 获取多职位后词库路径\n *\n * @return String 多职位后词库路径\n */\n public String getAssistantDicionary();\n\n /**\n * 获取数字词库路径\n *\n * @return String 数字词库路径\n */\n public String getNumberDicionary();\n\n /**\n * 获取无用词词库路径\n *\n * @return String 无用词词库路径\n */\n public String getWorthlessDicionary();\n\n /**\n * 获取标签词词库路径\n *\n * @return String 标签词词库路径\n */\n public String getTagDicionary();\n\n /**\n * 获取公司性质词词库路径\n *\n * @return String 公司性质词词库路径\n */\n public String getCorporationDicionary();\n// /**\n// * 获取ik分词器的主路径\n// * @return\n// */\n// public String getIkMainFilePath();\n\n}" ]
[ "0.5226176", "0.50284106", "0.49737963", "0.4872166", "0.48472205", "0.47787455", "0.47315654", "0.47193047", "0.47072113", "0.4669764", "0.4665316", "0.46568748", "0.46416676", "0.46048826", "0.46038058", "0.45998034", "0.455886", "0.45505217", "0.45332327", "0.4492893", "0.44921708", "0.44854876", "0.44736338", "0.4472428", "0.44696403", "0.44628024", "0.44509718", "0.44468915", "0.44373995", "0.4436141", "0.44250682", "0.4417507", "0.44157645", "0.44032323", "0.43988034", "0.43965143", "0.43898267", "0.43856674", "0.4382243", "0.4373696", "0.43723214", "0.4360645", "0.4354091", "0.4349317", "0.4341875", "0.4341698", "0.43400505", "0.43230346", "0.43163425", "0.43143964", "0.42926577", "0.42755654", "0.42627594", "0.4261221", "0.4261123", "0.42351624", "0.42297164", "0.4223213", "0.42208555", "0.42147", "0.4207559", "0.41868532", "0.41816932", "0.41713434", "0.41684544", "0.41668755", "0.4166734", "0.4166734", "0.41650614", "0.4163495", "0.4161064", "0.41597274", "0.41585037", "0.41579407", "0.4156115", "0.41545248", "0.4150491", "0.41491798", "0.41490316", "0.41480598", "0.41379252", "0.41378304", "0.41377586", "0.41364443", "0.41327104", "0.41293827", "0.41239247", "0.4121507", "0.41190618", "0.4115628", "0.4115628", "0.4115628", "0.4115628", "0.4113721", "0.41105753", "0.40956366", "0.40951467", "0.40949458", "0.40937948", "0.4087138" ]
0.5147875
1
Set the GEM1ERF params given the parameters defined in
public void setGEM1ERFParams(GEM1ERF erf) { // set minimum magnitude /* * xxr: TODO: !!!type safety!!! apache's Configuration interface handles * a similar problem this way: Instead of defining one single method * like public void setParameter(String key, Object value) {...} there * is one method per type defined: setString(), setDouble(), setInt(), * ... */ erf.setParameter(GEM1ERF.MIN_MAG_NAME, config .getDouble(ConfigItems.MINIMUM_MAGNITUDE.name())); // set time span TimeSpan timeSpan = new TimeSpan(TimeSpan.NONE, TimeSpan.YEARS); timeSpan.setDuration(config.getDouble(ConfigItems.INVESTIGATION_TIME .name())); erf.setTimeSpan(timeSpan); // params for area source // set inclusion of area sources in the calculation erf.setParameter(GEM1ERF.INCLUDE_AREA_SRC_PARAM_NAME, config .getBoolean(ConfigItems.INCLUDE_AREA_SOURCES.name())); // set rupture type ("area source rupture model / // area_source_rupture_model / AreaSourceRuptureModel) erf.setParameter(GEM1ERF.AREA_SRC_RUP_TYPE_NAME, config .getString(ConfigItems.TREAT_AREA_SOURCE_AS.name())); // set area discretization erf.setParameter(GEM1ERF.AREA_SRC_DISCR_PARAM_NAME, config .getDouble(ConfigItems.AREA_SOURCE_DISCRETIZATION.name())); // set mag-scaling relationship erf .setParameter( GEM1ERF.AREA_SRC_MAG_SCALING_REL_PARAM_NAME, config .getString(ConfigItems.AREA_SOURCE_MAGNITUDE_SCALING_RELATIONSHIP .name())); // params for grid source // inclusion of grid sources in the calculation erf.setParameter(GEM1ERF.INCLUDE_GRIDDED_SEIS_PARAM_NAME, config .getBoolean(ConfigItems.INCLUDE_GRID_SOURCES.name())); // rupture model erf.setParameter(GEM1ERF.GRIDDED_SEIS_RUP_TYPE_NAME, config .getString(ConfigItems.TREAT_GRID_SOURCE_AS.name())); // mag-scaling relationship erf .setParameter( GEM1ERF.GRIDDED_SEIS_MAG_SCALING_REL_PARAM_NAME, config .getString(ConfigItems.AREA_SOURCE_MAGNITUDE_SCALING_RELATIONSHIP .name())); // params for fault source // inclusion of fault sources in the calculation erf.setParameter(GEM1ERF.INCLUDE_FAULT_SOURCES_PARAM_NAME, config .getBoolean(ConfigItems.INCLUDE_FAULT_SOURCE.name())); // rupture offset erf.setParameter(GEM1ERF.FAULT_RUP_OFFSET_PARAM_NAME, config .getDouble(ConfigItems.FAULT_RUPTURE_OFFSET.name())); // surface discretization erf.setParameter(GEM1ERF.FAULT_DISCR_PARAM_NAME, config .getDouble(ConfigItems.FAULT_SURFACE_DISCRETIZATION.name())); // mag-scaling relationship erf.setParameter(GEM1ERF.FAULT_MAG_SCALING_REL_PARAM_NAME, config .getString(ConfigItems.FAULT_MAGNITUDE_SCALING_RELATIONSHIP .name())); // mag-scaling sigma erf.setParameter(GEM1ERF.FAULT_SCALING_SIGMA_PARAM_NAME, config .getDouble(ConfigItems.FAULT_MAGNITUDE_SCALING_SIGMA.name())); // rupture aspect ratio erf.setParameter(GEM1ERF.FAULT_RUP_ASPECT_RATIO_PARAM_NAME, config .getDouble(ConfigItems.RUPTURE_ASPECT_RATIO.name())); // rupture floating type erf.setParameter(GEM1ERF.FAULT_FLOATER_TYPE_PARAM_NAME, config .getString(ConfigItems.RUPTURE_FLOATING_TYPE.name())); // params for subduction fault // inclusion of fault sources in the calculation erf .setParameter( GEM1ERF.INCLUDE_SUBDUCTION_SOURCES_PARAM_NAME, config .getBoolean(ConfigItems.INCLUDE_SUBDUCTION_FAULT_SOURCE .name())); // rupture offset erf.setParameter(GEM1ERF.SUB_RUP_OFFSET_PARAM_NAME, config .getDouble(ConfigItems.SUBDUCTION_FAULT_RUPTURE_OFFSET.name())); // surface discretization erf.setParameter(GEM1ERF.SUB_DISCR_PARAM_NAME, config .getDouble(ConfigItems.SUBDUCTION_FAULT_SURFACE_DISCRETIZATION .name())); // mag-scaling relationship erf .setParameter( GEM1ERF.SUB_MAG_SCALING_REL_PARAM_NAME, config .getString(ConfigItems.SUBDUCTION_FAULT_MAGNITUDE_SCALING_RELATIONSHIP .name())); // mag-scaling sigma erf.setParameter(GEM1ERF.SUB_SCALING_SIGMA_PARAM_NAME, config .getDouble(ConfigItems.SUBDUCTION_FAULT_MAGNITUDE_SCALING_SIGMA .name())); // rupture aspect ratio erf.setParameter(GEM1ERF.SUB_RUP_ASPECT_RATIO_PARAM_NAME, config .getDouble(ConfigItems.SUBDUCTION_RUPTURE_ASPECT_RATIO.name())); // rupture floating type erf .setParameter(GEM1ERF.SUB_FLOATER_TYPE_PARAM_NAME, config .getString(ConfigItems.SUBDUCTION_RUPTURE_FLOATING_TYPE .name())); // update erf.updateForecast(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setParameters() {\n\t\t\n\t}", "public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }", "public void setDefaultParameters() {\n\tsetParameterValue(\"genie.param.x\",\"genie.dfwx\");\n\tsetParameterValue(\"genie.param.x.begin\",\"-0.3\");\n\tsetParameterValue(\"genie.param.x.increment\",\"0.6\");\n\tsetParameterValue(\"genie.param.x.increment.type\",\"linear\");\n\tsetParameterValue(\"genie.param.x.end\",\"0.3\");\n\tsetParameterValue(\"genie.param.y\",\"genie.dfwy\");\n\tsetParameterValue(\"genie.param.y.begin\",\"-0.3\");\n\tsetParameterValue(\"genie.param.y.increment\",\"0.6\");\n\tsetParameterValue(\"genie.param.y.increment.type\",\"linear\");\n\tsetParameterValue(\"genie.param.y.end\",\"0.3\");\n\tsetParameterValue(\"genie.nsteps\",\"1001\");\n\tsetParameterValue(\"genie.npstp\",\"1000\");\n\tsetParameterValue(\"genie.iwstp\",\"1000\");\n\tsetParameterValue(\"genie.itstp\",\"10\");\n\tsetParameterValue(\"genie.restart\",\"n\");\n\tsetParameterValue(\"genie.tv\",\"3.65\");\n\tsetParameterValue(\"genie.ndta\",\"5\");\n\tsetParameterValue(\"genie.temp0\",\"5.0\");\n\tsetParameterValue(\"genie.temp1\",\"5.0\");\n\tsetParameterValue(\"genie.rel\",\"0.9\");\n\tsetParameterValue(\"genie.scf\",\"2.0\");\n\tsetParameterValue(\"genie.diff1\",\"2000.0\");\n\tsetParameterValue(\"genie.diff2\",\"1e-5\");\n\tsetParameterValue(\"genie.adrag\",\"2.5\");\n\tsetParameterValue(\"genie.diffamp1\",\"8111000\");\n\tsetParameterValue(\"genie.diffamp2\",\"79610\");\n\tsetParameterValue(\"genie.betaz1\",\"0.1111\");\n\tsetParameterValue(\"genie.betam1\",\"0.0\");\n\tsetParameterValue(\"genie.betaz2\",\"0.2626\");\n\tsetParameterValue(\"genie.betam2\",\"0.2626\");\n\tsetParameterValue(\"genie.scl_co2\",\"1.0\");\n\tsetParameterValue(\"genie.pc_co2_rise\",\"0.0\");\n\tsetParameterValue(\"genie.diffsic\",\"2000.0\");\n\tsetParameterValue(\"genie.tatm\",\"0.0\");\n\tsetParameterValue(\"genie.relh0_ocean\",\"0.0\");\n\tsetParameterValue(\"genie.relh0_land\",\"0.0\");\n\tsetParameterValue(\"genie.dfwx\",\"0.0\");\n\tsetParameterValue(\"genie.dfwy\",\"0.0\");\n\tsetParameterValue(\"genie.lout\",\"0000\");\n\tsetParameterValue(\"genie.lin\",\"0000.1\");\n }", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "public void setGsParameters ( double f , double k , double Da, double Db, typeDiffusion typeDiffusion) {\r\n\t\tthis.k = k ;\r\n\t\tthis.f = f ;\r\n\t\tthis.Da = Da ;\r\n\t\tthis.Db = Db ;\r\n\t\tthis.typeDiffusion = typeDiffusion;\r\n\t}", "protected void setupParameters() {\n \n \n\n }", "public void setParameters(MaterialParams mp);", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public void setParameters(Properties props) {\n\n\t}", "public void setParameters(String parameters);", "public void SetInputParameters(AbstractParameterDictionary params) throws Exception {\n\t\t//String paramsClass = params.getClass().getSimpleName();\n\t\t\n\t\tthis.inputParameters = params;\n\t}", "public void setParameters(GeoNumeric[] parameters) {\n\t\tthis.parameters = parameters;\n\t\tsettingChanged();\n\t}", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "protected void parametersInstantiation_EM() {\n }", "protected void setParameters(double[] parameters) {\n\tthis.parameters = parameters;\n }", "public void setParameters(Parameters params) {\n Log.e(TAG, \"setParameters()\");\n //params.dump();\n native_setParameters(params.flatten());\n }", "@Override\n public void setConfigParams(Map<String, Object> params) {\n\n }", "@Override\n\tprotected void setParameterValues() {\n\t}", "@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tComponent.RANDOM_HORZ, Component.GREATER_OF_TWO_HORZ);\n\n\t\t// the stdDevType Parameter\n\t\tStringConstraint stdDevTypeConstraint = new StringConstraint();\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTER);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTRA);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_NONE);\n\t\tstdDevTypeConstraint.setNonEditable();\n\t\tstdDevTypeParam = new StdDevTypeParam(stdDevTypeConstraint);\n\n\t\t// add these to the list\n\t\totherParams.addParameter(componentParam);\n\t\totherParams.addParameter(stdDevTypeParam);\n\n\t}", "private void SetParameters(XmlTest test){\r\n\t\t for (Map.Entry<String,String> entry : TestsParamList.get(test.getName()).entrySet()){\r\n\t\t\t test.addParameter(entry.getKey(), entry.getValue());\r\n\t\t }\r\n\t}", "protected void initEqkRuptureParams() {\n\n\t\tmagParam = new MagParam(MAG_WARN_MIN, MAG_WARN_MAX);\n\n\t\tStringConstraint constraint = new StringConstraint();\n\t\tconstraint.addString(FLT_TYPE_UNKNOWN);\n\t\tconstraint.addString(FLT_TYPE_STRIKE_SLIP);\n\t\tconstraint.addString(FLT_TYPE_REVERSE);\n\t\tconstraint.setNonEditable();\n\t\tfltTypeParam = new FaultTypeParam(constraint,FLT_TYPE_UNKNOWN);\n\n\t\teqkRuptureParams.clear();\n\t\teqkRuptureParams.addParameter(magParam);\n\t\teqkRuptureParams.addParameter(fltTypeParam);\n\n\t}", "@TestMethod(value=\"testSetParameters_arrayObject\")\n public void setParameters(Object[] params) throws CDKException {\n if (params.length > 3) \n throw new CDKException(\"PartialPiChargeDescriptor only expects three parameter\");\n \n if (!(params[0] instanceof Integer) )\n throw new CDKException(\"The parameter must be of type Integer\");\n\t maxIterations = (Integer) params[0];\n\t \n\t if(params.length > 1 && params[1] != null){\n \tif (!(params[1] instanceof Boolean) )\n throw new CDKException(\"The parameter must be of type Boolean\");\n \tlpeChecker = (Boolean) params[1];\n }\n\t \n\t if(params.length > 2 && params[2] != null){\n \tif (!(params[2] instanceof Integer) )\n throw new CDKException(\"The parameter must be of type Integer\");\n \tmaxResonStruc = (Integer) params[2];\n }\n }", "public void setValues(RutaParams params){\n this.costo = params.costo;\n this.tiempoVuelo = params.tiempoVuelo;\n this.piloto =encriptar(params.piloto);\n }", "public void init(\n @ParamInfo(name=\"gBar_K in mS/mm^2\", options=\"value=0.36D\") double gBarK, \n @ParamInfo(name=\"E_K in mV\", options=\"value=-77.00D\")double eK, \n @ParamInfo(name=\"gBar_Na in mS/mm^2\", options=\"value=1.2D\") double gBarNa, \n @ParamInfo(name=\"E_Na in mV\", options=\"value=50.00D\") double eNa, \n @ParamInfo(name=\"gBar_L in mS/mm^2\", options=\"value=0.003D\") double gBarL, \n @ParamInfo(name=\"E_L in mV\", options=\"value=-54.387D\") double eL, \n @ParamInfo(name=\"Membrane capacity in uF/mm^2\", options=\"value=0.01D\") double cm) {\n this.gBarK = gBarK;\n this.eK = eK;\n this.gBarNa = gBarNa;\n this.eNa = eNa;\n this.gBarL = gBarL;\n this.eL = eL;\n this.cm = cm; \n \n }", "public void specifyParams (double[] _params){\n\t\t\n\t\tif (_params.length != this.getNumParameters2Calib()) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"Error when getting parameters from a double array. \"\n\t\t\t\t\t+ \"We don't have + \" + this.getNumParameters2Calib() \n\t\t\t\t\t+ \" parameters\\n\");\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\t\n\t\t// first decode the SN to set\n\t\tint numberSN = (int)Math.round(_params[i++]);\n\t\t\n\t\tif (numberSN >= this.graphsFromFiles.size() || numberSN < 0) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"Error when getting the SN integer parameter. Mismatch between SNs \"\n\t\t\t\t\t+ \"and the gene: params = \" + numberSN + \" and we have \" +\n\t\t\t\t\tthis.graphsFromFiles.size() + \" SNs loaded from files\\n\");\n\t\t}\n\t\t\n\t\t// set the specific graph to the parameters\n\t\tsetSelectedSN(numberSN);\n\t\t\t\t\t\t\n\t\t// then, the parameters for the segments\n\n\t\tfor (int k = 0; k < this.getNumSegments(); k++) {\n\n\t\t\t// THIS PARAMETERS HAS NO EFFECT: -1 \n\t\t\tsetSegmentConnectivity(k, -1);\n\t\t\t\n\t\t\t// loading probability for new friends \n\t\t\tsetSegmentDailyProbNewFriend(k, _params[i++]);\n\t\t\t\n\t\t\t// loading probability for losing friends \n\t\t\tsetSegmentDailyProbLoseFriend(k, _params[i++]);\n\n\t\t\t// loading probability for obtain subscription\n\t\t\tsetSegmentDailyProbObtainSubscription(k, _params[i++]);\n\n\t\t\t// loading probability for playing during the weekend \n\t\t\tsetSegmentDailyProbPlayWeekend(k, _params[i++]);\n\t\t\t\n\t\t\t// loading probability for playing during weekdays\n\t\t\tsetSegmentDailyProbPlayNoWeekend(k, _params[i++]);\n\n\t\t\t// loading social parameter for adoption \n\t\t\tsetSegmentSocialAdoptionParam(k, _params[i++]);\n\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\tif (controller.CalibrationController.DEBUG_CALIB) {\n\t\t\t\n\t\t\tPrintWriter writer = new PrintWriter(System.out);\n\t\t\tthis.printParamters2Calib(writer);\n\t\t\twriter.close();\n\t\t\t\t\t\n\t\t}\n\t}", "public void setParams(DynamicParam params) throws DynamicParamException {\n super.setParams(params);\n if (params.hasParam(\"useBaseline\")) useBaseline = params.getValueAsBoolean(\"useBaseline\");\n if (params.hasParam(\"tau\")) tau = params.getValueAsDouble(\"tau\");\n }", "public void setParameter(AlgorithmParameterSpec paramAlgorithmParameterSpec) throws XMLSignatureException {\n/* 281 */ this.signatureAlgorithm.engineSetParameter(paramAlgorithmParameterSpec);\n/* */ }", "private final void setParams(Vector oParams, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams = oParams;\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction = oParams;\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification = oParams;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.setParams() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "void setOAEPparams(byte[] parameters);", "public static void setTamerAgentParams(TamerAgent agent) {\t\t\n\t\t/*\n\t\t * Set all TamerAgent params here, not in Params class. That way you have\n\t\t * a single location that's specific to this experiment that contains\n\t\t * all of your algorithmic information when it's time for writing.\n\t\t */\n\t\tSystem.out.println(agent.params);\n\t\tagent.param(\"distClass\",\"previousStep\"); //// immediate, previousStep, or uniform\n\t\tagent.param(\"extrapolateFutureRew\",false);\n\t\tagent.param(\"traceDecayFactor\",0.0);\n\t\tagent.param(\"featClass\",\"FeatGen_Tetris\");\n\t\tagent.param(\"modelClass\",\"IncGDLinearModel\"); \n\t\tagent.param(\"modelAddsBiasFeat\",true);\n\t\tagent.param(\"stepSize\",0.000005 / 47); // python code takes input value and divides by number of features // 0.02;\n\t\t\n\t\tagent.param(\"delayWtedIndivRew\",false); \n\t\tagent.param(\"noUpdateWhenNoRew\",false); \n\t\tagent.param(\"selectionMethod\",\"greedy\");\n\t\n\t\tagent.param(\"initModelWSamples\",false);\n\t\tagent.param(\"numBiasingSamples\",0);\n\t\tagent.param(\"biasSampleWt\",0.1);\n\t\tagent.param(\"traceDecayFactor\",0.0);\n\t}", "@TestMethod(value=\"testSetParameters_arrayObject\")\n public void setParameters(Object[] params) throws CDKException {\n if (params.length > 1) {\n throw new CDKException(\"PartialSigmaChargeDescriptor only expects one parameter\");\n }\n if (!(params[0] instanceof Integer)) {\n throw new CDKException(\"The parameter 1 must be of type Integer\");\n }\n maxIterations = (Integer) params[0];\n }", "public void setDefaultParameters(){\n clearParametersVector();\n addParameter( new LoadFilePG(\"Vanadium NeXus File Name\",\"\"));\n addParameter( new LoadFilePG(\"Background NeXus File Name\",\"\"));\n addParameter( new LoadFilePG(\"Integrated Peaks File\",\"\"));\n addParameter( new SaveFilePG(\"Adjusted Integrate File\",\"\"));\n addParameter( new FloatPG(\"Min Time-of-Flight to Sum\",0.0));\n addParameter( new FloatPG(\"Max Time-of-Flight to Sum\",48000));\n addParameter( new IntegerPG(\"Zero Pixel Border Size\",8));\n addParameter( new IntegerPG(\"Region Half-Width\",5));\n }", "protected void initSupportedIntensityMeasureParams() {\n\n\t\t// Create saParam:\n\t\tDoubleDiscreteConstraint periodConstraint = new DoubleDiscreteConstraint();\n\t\tTreeSet set = new TreeSet();\n\t\tEnumeration keys = coefficientsBJF.keys();\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tBJF_1997_AttenRelCoefficients coeff = (BJF_1997_AttenRelCoefficients)\n\t\t\tcoefficientsBJF.get(keys.nextElement());\n\t\t\tif (coeff.period >= 0) {\n\t\t\t\tset.add(new Double(coeff.period));\n\t\t\t}\n\t\t}\n\t\tIterator it = set.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tperiodConstraint.addDouble( (Double) it.next());\n\t\t}\n\t\tperiodConstraint.setNonEditable();\n\t\tsaPeriodParam = new PeriodParam(periodConstraint);\n\t\tsaDampingParam = new DampingParam();\n\t\tsaParam = new SA_Param(saPeriodParam, saDampingParam);\n\t\tsaParam.setNonEditable();\n\n\t\t// Create PGA Parameter (pgaParam):\n\t\tpgaParam = new PGA_Param();\n\t\tpgaParam.setNonEditable();\n\n\t\t// Create PGV Parameter (pgvParam):\n\t\tpgvParam = new PGV_Param();\n\t\tpgvParam.setNonEditable();\n\n\t\t// The MMI parameter\n\t\tmmiParam = new MMI_Param();\n\n\t\t// Add the warning listeners:\n\t\tsaParam.addParameterChangeWarningListener(listener);\n\t\tpgaParam.addParameterChangeWarningListener(listener);\n\t\tpgvParam.addParameterChangeWarningListener(listener);\n\n\t\t// create supported list\n\t\tsupportedIMParams.clear();\n\t\tsupportedIMParams.addParameter(saParam);\n\t\tsupportedIMParams.addParameter(pgaParam);\n\t\tsupportedIMParams.addParameter(pgvParam);\n\t\tsupportedIMParams.addParameter(mmiParam);\n\n\t}", "@Override\n public void setParameters(Map<Enum<?>, Object> parameters) {\n }", "public void setParameters (String[] exps) throws Exception;", "private void setInitializationParams() {\n\t\tint spreadRate = 130-((JSlider)components.get(\"spreadSlider\")).getValue();\n\t\tint intensity = ((JSlider)components.get(\"intensitySlider\")).getValue();\n\t\tint[] boatParams = new int[8];\n\t\tboatParams[0] = (int) ((JSpinner)components.get(\"cleanerSpinner\")).getValue();\n\t\tboatParams[1] = (int) ((JSpinner)components.get(\"cleanerFuelSpinner\")).getValue();\n\t\tboatParams[2] = (int) ((JSpinner)components.get(\"cleanerLoadSpinner\")).getValue();\n\t\tboatParams[3] = (int) ((JSpinner)components.get(\"collectorSpinner\")).getValue();\n\t\tboatParams[4] = (int) ((JSpinner)components.get(\"collectorFuelSpinner\")).getValue();\n\t\tboatParams[5] = (int) ((JSpinner)components.get(\"collectorLoadSpinner\")).getValue();\n\t\tboatParams[6] = (int) ((JSpinner)components.get(\"refuelSpinner\")).getValue();\n\t\tboatParams[7] = (int) ((JSpinner)components.get(\"refuelFuelSpinner\")).getValue();\n\t\tlog.info(\"Simulation initializing with spread rate \"+ spreadRate + \" and intensity \" + intensity);\n\t\tsimulateInitialConditions(spreadRate,boatParams,3,intensity);\n\t}", "void setParameter(String name, String value);", "public void setParameterNameValuePairs(entity.LoadParameter[] value);", "public void setParameter(String parName, Object parVal) throws HibException ;", "public void setParameters(String parameters){\n this.parameters=parameters;\n }", "public abstract void setWorkflowParameters(Map<String,List<Parameter>> lParams);", "public AllpassFilter setParams(DataBead paramBead) {\r\n\t\tif (paramBead != null) {\r\n\t\t\tObject o;\r\n\r\n\t\t\tif ((o = paramBead.get(\"delay\")) != null) {\r\n\t\t\t\tif (o instanceof UGen) {\r\n\t\t\t\t\tsetDelay((UGen) o);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetDelay((int) paramBead.getFloat(\"delay\", delay));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ((o = paramBead.get(\"g\")) != null) {\r\n\t\t\t\tif (o instanceof UGen) {\r\n\t\t\t\t\tsetG((UGen) o);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetG(paramBead.getFloat(\"g\", g));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "void setParameters(List<DeployerParameterTemplate> parameters);", "@Override\n\tprotected void initParamsForFragment() {\n\n\t}", "public void setParamSet(ParamSet paramSet) {\n super.setParamSet(paramSet);\n\n String v;\n v = Pio.getValue(paramSet, DISPERSER_PROP.getName());\n if (v != null) {\n setDisperser(TexesParams.Disperser.valueOf(v));\n }\n v = Pio.getValue(paramSet, WAVELENGTH_PROP.getName());\n setWavelength(Double.parseDouble(v));\n }", "void setParameters(Map<String, String[]> parameters);", "protected void setParams (double mu, double sigma) {\n if (sigma <= 0)\n throw new IllegalArgumentException (\"sigma <= 0\");\n this.mu = mu;\n this.sigma = sigma;\n }", "void setParameters(IParameterCollection parameters);", "private void addParametersToWriter() {\n Set<Map.Entry<String, String>> set = params.entrySet();\n for (Map.Entry<String, String> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + me.getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\"Content-Type: text/plain; charset=\" + super.charset).append(\n LINE_FEED);\n writer.append(LINE_FEED);\n writer.append(me.getValue()).append(LINE_FEED);\n writer.flush();\n }\n }", "public void setParameters(ParameterList params) {\n\t\t_parameters = params;\n\n\t\tif (DEBUG)\n\t\t\t_log.debug(\"Created AXMessage from parameter list:\\n\" + params);\n\n\t}", "@Override\n\tprotected void initLateralWeightParams(final Space extendedSpace) throws CommandLineFormatException\n\t{\n\t\thppa = command.get(CNFTCommandLine.WA);\n\t\thpA = command.get(CNFTCommandLine.IA);\n\t\taddParameters(hppa,hpA);\n\t\taddParameters(command.get(CNFTCommandLine.LEARNING_RATE));\n\t}", "private void addMoreRepletParameters() throws Exception\n {\n addTermbaseParameter();\n addLanguageParameter();\n addRepletParameters(theParameters);\n }", "public void setParameters(IfcGloballyUniqueId GlobalId, IfcOwnerHistory OwnerHistory, IfcLabel Name, IfcText Description, IfcPositiveLengthMeasure LiningDepth, IfcPositiveLengthMeasure LiningThickness, IfcPositiveLengthMeasure ThresholdDepth, IfcPositiveLengthMeasure ThresholdThickness, IfcPositiveLengthMeasure TransomThickness, IfcLengthMeasure TransomOffset, IfcLengthMeasure LiningOffset, IfcLengthMeasure ThresholdOffset, IfcPositiveLengthMeasure CasingThickness, IfcPositiveLengthMeasure CasingDepth, IfcShapeAspect ShapeAspectStyle)\n\t{\n\t\tthis.GlobalId = GlobalId;\n\t\tthis.OwnerHistory = OwnerHistory;\n\t\tthis.Name = Name;\n\t\tthis.Description = Description;\n\t\tthis.LiningDepth = LiningDepth;\n\t\tthis.LiningThickness = LiningThickness;\n\t\tthis.ThresholdDepth = ThresholdDepth;\n\t\tthis.ThresholdThickness = ThresholdThickness;\n\t\tthis.TransomThickness = TransomThickness;\n\t\tthis.TransomOffset = TransomOffset;\n\t\tthis.LiningOffset = LiningOffset;\n\t\tthis.ThresholdOffset = ThresholdOffset;\n\t\tthis.CasingThickness = CasingThickness;\n\t\tthis.CasingDepth = CasingDepth;\n\t\tthis.ShapeAspectStyle = ShapeAspectStyle;\n\t\tresolveInverses();\n\t}", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "public void setParams(DynamicParam params) throws DynamicParamException {\r\n super.setParams(params);\r\n if (params.hasParam(\"thresholdInitial\")) thresholdInitial = params.getValueAsDouble(\"thresholdInitial\");\r\n if (params.hasParam(\"thresholdMin\")) thresholdMin = params.getValueAsDouble(\"thresholdMin\");\r\n if (params.hasParam(\"thresholdDecay\")) thresholdDecay = params.getValueAsDouble(\"thresholdDecay\");\r\n thresholdCurrent = thresholdInitial;\r\n }", "public static void resetParams()\n {\n Debug = false;\n SpecOption = false;\n MyspecOption = false;\n Spec2Option = false;\n Myspec2Option = false;\n SpecFile = \"\";\n WriteASTFlag = false;\n LabelFlag = false;\n ReportLabelsFlag = false;\n LabelRoot = \"Lbl_\";\n FairnessOption = \"\";\n FairAlgorithm = false;\n CheckTermination = false;\n NoOld = false;\n Nocfg = false;\n NoDoneDisjunct = false;\n optionsInFile = false;\n versionOption = null;\n inputVersionNumber = PcalParams.versionWeight;\n PcalTLAGen.wrapColumn = 78;\n PcalTLAGen.ssWrapColumn = 45;\n tlaPcalMapping = null ;\n \n }", "void setParameter(String name, String[] values);", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "private void setTEMparsFromRunner(){\n\t\t\n\t\tString fdummy=\" \";\n\t\t\n\t\tsoipar_cal sbcalpar = new soipar_cal();\n\t\tvegpar_cal vbcalpar = new vegpar_cal();\t\n\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NMAX, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNmax(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_CFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setCfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NFALL, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setNfall(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KRB, 1);\n\t\tif (fdummy!=\" \") vbcalpar.setKrb(Float.valueOf(fdummy));\n\t\t\t\t\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCFIB, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcfib(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCHUM, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdchum(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCMIN, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcmin(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_KDCSLOW, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setKdcslow(Float.valueOf(fdummy));\n\t\tfdummy = (String)calparTB.getValueAt(GUIconfigurer.I_NUP, 1);\n\t\tif (fdummy!=\" \") sbcalpar.setNup(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetCalPar(vbcalpar, sbcalpar);\n\n\t\t//\n\t\tsoipar_bgc sbbgcpar = new soipar_bgc();\n\t\tvegpar_bgc vbbgcpar = new vegpar_bgc();\n\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m1, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM1(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m2, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM2(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m3, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM3(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_m4, 1);\n\t\tif (fdummy!=\" \") vbbgcpar.setM4(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsoma, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsoma(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsompr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsompr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_fsomcr, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setFsomcr(Float.valueOf(fdummy));\n\t\tfdummy =(String) fixparTB.getValueAt(GUIconfigurer.I_som2co2, 1);\n\t\tif (fdummy!=\" \") sbbgcpar.setSom2co2(Float.valueOf(fdummy));\n\t\t\n\t\tif (fdummy!=\" \") TEM.runcht.cht.resetBgcPar(vbbgcpar, sbbgcpar);\n\t\t\t\t\n\t}", "private void resetParams() {\n lowerYear = 1999;\n upperYear = 2020;\n yearRestriction = false;\n\n lowerProblem = 1;\n upperProblem = 60;\n problemRestriction = false;\n partTwo = false;\n }", "public void setParameters(ArrayList<ParameterEntry<String, String>> params) {\n parameters = params;\n }", "public void setParameterValue(String name, String value) {\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (name.equals(\"genie.restart\")) {\n\t _parameters.put(name,value.substring(0,CHARS_RESTART));\n\t} else if (name.equals(\"genie.lout\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LOUT));\n\t} else if (name.equals(\"genie.lin\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LIN));\n\t} else {\n\t _parameters.put(name,value);\n\t}\n }", "void setExampleParameters(String strExampleParams);", "public void fitParams (RJGUIController.XferFittingMod xfer) {\n\n\t\t// Get sequence-specific parameters\n\n\t\tRange aRange = xfer.x_aValRangeParam;\n\t\tint aNum = xfer.x_aValNumParam;\n\t\t//validateRange(aRange, aNum, \"a-value\");\n\t\tRange pRange = xfer.x_pValRangeParam;\n\t\tint pNum = xfer.x_pValNumParam;\n\t\t//validateRange(pRange, pNum, \"p-value\");\n\t\tRange cRange = xfer.x_cValRangeParam;\n\t\tint cNum = xfer.x_cValNumParam;\n\t\t//validateRange(cRange, cNum, \"c-value\");\n\t\t\t\t\t\n\t\tdouble mc = xfer.x_mcParam;\n\t\t\t\t\t\t\t\t\t\n\t\tdouble b = xfer.x_bParam;\n\n\t\t// Save the sequence-specific parameters for possible use in analyst options\n\n\t\tfetch_fcparams.seq_spec_params = new SeqSpecRJ_Parameters (\n\t\t\tb,\n\t\t\taRange.getLowerBound(),\n\t\t\taRange.getUpperBound(),\n\t\t\taNum,\n\t\t\tpRange.getLowerBound(),\n\t\t\tpRange.getUpperBound(),\n\t\t\tpNum,\n\t\t\tcRange.getLowerBound(),\n\t\t\tcRange.getUpperBound(),\n\t\t\tcNum\n\t\t);\n\n\t\t// Magnitude of completeness info\n\t\t\t\t\t\t\n\t\tdouble mCat;\n\n\t\tMagCompFn magCompFn;\n\n\t\t// If doing time-dependent magnitude of completeness\n\t\t\t\t\t\n\t\tif (xfer.x_timeDepMcParam) {\n\n\t\t\tdouble f = xfer.x_fParam;\n\t\t\t\t\t\t\n\t\t\tdouble g = xfer.x_gParam;\n\t\t\t\t\t\t\n\t\t\tdouble h = xfer.x_hParam;\n\t\t\t\t\t\t\n\t\t\tmCat = xfer.x_mCatParam;\n\n\t\t\tmagCompFn = MagCompFn.makePageOrConstant (f, g, h);\n\t\t\t\t\t\t\n\t\t\tcur_model = new RJ_AftershockModel_SequenceSpecific(get_cur_mainshock(), get_cur_aftershocks(), mCat, magCompFn, b,\n\t\t\t\t\txfer.x_dataStartTimeParam, xfer.x_dataEndTimeParam,\n\t\t\t\t\taRange.getLowerBound(), aRange.getUpperBound(), aNum,\n\t\t\t\t\tpRange.getLowerBound(), pRange.getUpperBound(), pNum,\n\t\t\t\t\tcRange.getLowerBound(), cRange.getUpperBound(), cNum);\n\n\t\t// Otherwise, time-independent magnitude of completeness\n\n\t\t} else {\n\t\t\t\t\t\t\n\t\t\tmCat = mc;\n\n\t\t\tmagCompFn = MagCompFn.makeConstant();\n\n\t\t\tcur_model = new RJ_AftershockModel_SequenceSpecific(get_cur_mainshock(), get_cur_aftershocks(), mc, b,\n\t\t\t\t\txfer.x_dataStartTimeParam, xfer.x_dataEndTimeParam,\n\t\t\t\t\taRange.getLowerBound(), aRange.getUpperBound(), aNum,\n\t\t\t\t\tpRange.getLowerBound(), pRange.getUpperBound(), pNum,\n\t\t\t\t\tcRange.getLowerBound(), cRange.getUpperBound(), cNum);\n\t\t}\n\n\t\t// Save the magnitude-of-completeness parameters for possible use in analyst options\n\n\t\tSearchMagFn magSample = aafs_fcparams.mag_comp_params.get_fcn_magSample();\t// the original value\n\t\tSearchRadiusFn radiusSample = fetch_fcparams.mag_comp_params.get_fcn_radiusSample();\n\t\tSearchMagFn magCentroid = aafs_fcparams.mag_comp_params.get_fcn_magCentroid();\t// the original value\n\t\tSearchRadiusFn radiusCentroid = fetch_fcparams.mag_comp_params.get_fcn_radiusCentroid();\n\n\t\tfetch_fcparams.mag_comp_params = new MagCompPage_Parameters (\n\t\t\tmCat,\n\t\t\tmagCompFn,\n\t\t\tmagSample.makeForAnalystMagCat (mCat),\n\t\t\tradiusSample,\n\t\t\tmagCentroid.makeForAnalystMagCat (mCat),\n\t\t\tradiusCentroid\n\t\t);\n\n\t\t// Make the Bayesian model if possible\n\t\t\t\t\t\n\t\tbayesianModel = null;\n\t\tif (genericModel != null) {\n\t\t\tif (RJ_AftershockModel_Bayesian.areModelsEquivalent(cur_model, genericModel))\n\t\t\t\tbayesianModel = new RJ_AftershockModel_Bayesian(cur_model, genericModel);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Could not create Bayesian model as sequence specifc and \"\n\t\t\t\t\t\t+ \"generic models are not equivalent\");\n\t\t}\n\n\t\t// Save the catalog parameters (we should already have these values)\n\n\t\tcat_dataStartTimeParam = xfer.x_dataStartTimeParam;\n\t\tcat_dataEndTimeParam = xfer.x_dataEndTimeParam;\n\t\tcat_mcParam = xfer.x_mcParam;\n\t\tcat_bParam = xfer.x_bParam;\n\n\t\treturn;\n\t}", "public void setE1(Float e1) {\r\n this.e1 = e1;\r\n }", "public void ee_parameter(Double ee_parameter) {\n }", "private void setParameters(ConstMetaData metaData) {\n if (dialog == null) {\n return;\n }\n // Use GPU\n dialog.setUseGpuEnabled(Network.isLocalHostGpuProcessingEnabled(manager, axisID,\n manager.getPropertyUserDir()));\n dialog.setUseGpuSelected(metaData.isDefaultGpuProcessing());\n dialog.setBinning(metaData.getPosBinning(axisID));\n dialog.setSampleThickness(metaData.getSampleThickness(axisID));\n }", "@Override\n public void setParams(Object[] params) {\n if (params.length != 1) {\n throw new IllegalArgumentException(\"expected one parameter\");\n }\n setParams((Number) params[0]);\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }", "private void loadParameters(ParameterDatabase parameterDB) {\n // global - enterprise\n// global.SetInitialNumberOfHouseholds(returnIntParameter(parameterDB, \"InitialNumberOfHouseholds\",\n// global.getInitialNumberOfHouseholds()));\n// \n global.setInitialRefugeeNumber(returnIntParameter(parameterDB, \"initialRefugeeNumber\",\n global.getInitialRefugeeNumber()));\n global.setMaximumNumberRelative(returnIntParameter(parameterDB, \"MaximumNumberRelative\",\n global.getMaximumNumberRelative()));\n global.setPercentageOfAsymptomatic(returnDoubleParameter(parameterDB, \"PercentageOfAsymptomatic\",\n global.getPercentageOfAsymptomatic()));\n global.setProbRecoveryToSuscebtable(returnDoubleParameter(parameterDB, \"recovery_To_Susceb_Rate\",\n global.getProbRecoveryToSuscebtable()));\n global.setHealthDepreciation(returnDoubleParameter(parameterDB, \"healthDepreciation\",\n global.getHealthDepreciation()));\n global.setprobabilityOfEffectiveNessofmedicine(returnDoubleParameter(parameterDB, \"probabilityOfEffectiveNessofmedicine\",\n global.getprobabilityOfEffectiveNessofmedicine()));\n global.setWaterContaminationThreshold(returnDoubleParameter(parameterDB, \"WaterContaminationThreshold\",\n global.getWaterContaminationThreshold()));\n global.setvibrioCholeraePerHealthyPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerHealthyPerson\",\n global.getvibrioCholeraePerHealthyPerson()));\n global.setvibrioCholeraePerExposedPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerExposedPerson\",\n global.getvibrioCholeraePerExposedPerson()));\n global.setvibrioCholeraePerInfectedPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerInfectedPerson\",\n global.getvibrioCholeraePerInfectedPerson()));\n global.setcholeraInfectionDurationMAX(returnIntParameter(parameterDB, \"choleraInfectionDurationMAX\",\n global.getcholeraInfectionDurationMAX()));\n global.setcholeraInfectionDurationMIN(returnIntParameter(parameterDB, \"choleraInfectionDurationMIN\",\n global.getcholeraInfectionDurationMIN())); \n global.setMaxDistanceLaterine(returnIntParameter(parameterDB, \"MaxDistanceLaterine\",\n global.getMaxDistanceLaterine()));\n global.setBacteriaErosionRate(returnDoubleParameter(parameterDB, \"bacteriaErosionRate\",\n global.getBacteriaErosionRate()));\n global.setBoreHoleDischareRatePerMinute(returnDoubleParameter(parameterDB, \"boreHoleDischareRate\",\n global.getBoreHoleDischareRatePerMinute()));\n global.setBoreholeWaterSupplyPerDay(returnDoubleParameter(parameterDB, \"waterCapacityBorehole\",\n global.getBoreholeWaterSupplyPerDay()));\n global.setHeaalthFacilityCapacity(returnIntParameter(parameterDB, \"healthFacilityCapacity\",\n global.getHeaalthFacilityCapacity()));\n global.setMaximumCrowedLevel(returnDoubleParameter(parameterDB, \"CROWED_LEVEL_THRESHOLD\",\n global.getMaximumCrowedLevel()));\n global.setProbabilityGuestContaminationRate(returnDoubleParameter(parameterDB, \"probabilityGuestContaminationRate\",\n global.getProbabilityGuestContaminationRate()));\n global.setMaximumHHOccumpancyPerField(returnIntParameter(parameterDB, \"maximum_occupancy_Threshold\",\n global.getMaximumHHOccumpancyPerField()));\n global.setMaximumWaterRequirement(returnDoubleParameter(parameterDB, \"Maximum_Water_Requirement\",\n global.getMaximumWaterRequirement()));\n global.setMinimumWaterRequirement(returnDoubleParameter(parameterDB, \"Minimum_Water_Requirement\",\n global.getMinimumWaterRequirement()));\n global.setLaterineCoverage(returnDoubleParameter(parameterDB, \"laterineCoverage\",\n global.getLaterineCoverage()));\n global.setRainfallDuration_Minute(returnIntParameter(parameterDB, \"rainDuration\",\n global.getRainfallDuration_Minute()));\n global.setRainfallFirstDay(returnIntParameter(parameterDB, \"firstRainfallDay\",\n global.getRainfallFirstDay()));\n global.setRainfallFrequencyInterval_Days(returnIntParameter(parameterDB, \"rainfallFrequency\",\n global.getRainfallFrequencyInterval_Days()));\n global.setRainfall_MM_Per_Minute(returnDoubleParameter(parameterDB, \"rainfallInMM\",\n global.getRainfall_MM_Per_Minute()));\n global.setAbsorbtionRatePerMinute(returnDoubleParameter(parameterDB, \"absorbtionRatePerMinute\",\n global.getAbsorbtionRatePerMinute()));\n \n \n \n }", "private void setAllParameters(int len) {\n\t\t\tshowUPLMN = new String[len] ;\n\t\t\toriginalUPLMN = new String[len] ;\n\t\t\tstrUorG = new String[len] ;\n\t\t\tpart = new byte[len][];\n\t\t\torder = new int[len];\n\t\t\tfor(int i=0;i<len;i++){\n\t\t\t\t part[i] = new byte[6];\n\t\t\t}\n\t\t}", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "protected void initIndependentParamLists() {\n\n\t\t// params that the mean depends upon\n\t\tmeanIndependentParams.clear();\n\t\tmeanIndependentParams.addParameter(distanceJBParam);\n\t\tmeanIndependentParams.addParameter(willsSiteParam);\n\t\tmeanIndependentParams.addParameter(magParam);\n\t\tmeanIndependentParams.addParameter(fltTypeParam);\n\t\tmeanIndependentParams.addParameter(componentParam);\n\n\t\t// params that the stdDev depends upon\n\t\tstdDevIndependentParams.clear();\n\t\tstdDevIndependentParams.addParameter(stdDevTypeParam);\n\t\tstdDevIndependentParams.addParameter(componentParam);\n\t\tstdDevIndependentParams.addParameter(magParam);\n\n\t\t// params that the exceed. prob. depends upon\n\t\texceedProbIndependentParams.clear();\n\t\texceedProbIndependentParams.addParameter(distanceJBParam);\n\t\texceedProbIndependentParams.addParameter(willsSiteParam);\n\t\texceedProbIndependentParams.addParameter(magParam);\n\t\texceedProbIndependentParams.addParameter(fltTypeParam);\n\t\texceedProbIndependentParams.addParameter(componentParam);\n\t\texceedProbIndependentParams.addParameter(stdDevTypeParam);\n\t\texceedProbIndependentParams.addParameter(this.sigmaTruncTypeParam);\n\t\texceedProbIndependentParams.addParameter(this.sigmaTruncLevelParam);\n\n\t\t// params that the IML at exceed. prob. depends upon\n\t\timlAtExceedProbIndependentParams.addParameterList(\n\t\t\t\texceedProbIndependentParams);\n\t\timlAtExceedProbIndependentParams.addParameter(exceedProbParam);\n\n\t}", "public void setDefaultParameters(){\n clearParametersVector();\n addParameter( new DataSetPG(\"Data Set\",DataSetTools.dataset.DataSet.EMPTY_DATA_SET));\n addParameter( new IntegerPG(\"Detector ID\",1));\n addParameter( new IntegerPG(\"Min Time Channel\",1));\n addParameter( new IntegerPG(\"Max Time Channel\",1000));\n addParameter( new IntegerPG(\"Max num Peaks\",30));\n addParameter( new IntegerPG(\"min Peak intensity\",0));\n addParameter( new StringPG(\"Pixel rows to keep\",\"1:100\"));\n addParameter( new StringPG(\"Pixel cols to keep\",\"1:100\"));\n }", "public void setParms(HttpSession session, String editorEmail) throws Exception {\n\t\ttry {\r\n\t\t\ttry {\r\n\t\t\t\tparmsTable(session, editorEmail);\r\n\t\t\t} catch (Exception parmsEx) {\r\n\t\t\t\tthrow new Exception(LogMsg.append(parmsEx.toString(),\"Failed in setting parameters for local implementation.\"));\r\n\t\t\t}\r\n\t\t\t// At this point, the parms table has been initialized. Now confirm or create\r\n\t\t\t// the file structure needed for drafts directory, alerts directory, and RSS file.\r\n\t\t\tHashMap<String, String> parms = ((HashMap<String, String>)session.getAttribute(\"parms\"));\r\n\t\t\ttry {\r\n\t\t\t\tstructureFiles(parms);\r\n\t\t\t} catch (Exception structureEx) {\r\n\t\t\t\tthrow new Exception(LogMsg.append(structureEx.toString(),\"Cannot confirm or create alerts and drafts file structure.\"));\r\n\t\t\t}\r\n\t\t} catch (Exception tryEx) {\r\n\t\t\tthrow new Exception(LogMsg.append(tryEx.toString(),\"Fatal error: initialization not completed.\"));\r\n\t\t}\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 }", "@Override\r\n public void init(NegotiationSession negotiationSession, Map<String, Double> parameters) {\r\n super.init(negotiationSession, parameters);\r\n this.negotiationSession = negotiationSession;\r\n if (parameters != null && parameters.get(\"l\") != null) {\r\n learnCoef = parameters.get(\"l\");\r\n } else {\r\n learnCoef = 0.2;\r\n }\r\n learnValueAddition = 1;\r\n initializeModel();\r\n }", "public void setParameter(String name, Object value) {\n \tParameterExtendedImpl param = parameters.getParameter(name);\n \tif(param != null){\n\t\t\tparam.setValue(value);\n\t\t\treturn;\n \t}\n \t\t\n \tparam = new ParameterExtendedImpl();\n \tparam.setIndex(parameters.getParameter().size()+1);\n \tparam.setName(name);\n \tparam.setValue(value);\n \tparam.setDirection(ParameterExtendedImpl.IN);\n \tparameters.getParameter().add(param);\n \tparameters.getInParameters().add(param);\n\t}", "public void setServiceParams(Hashtable<ID, ? extends Element<?>> params) {\n serviceParams.clear();\n\n if (params == null) {\n return;\n }\n\n for (Map.Entry<ID, ? extends Element<?>> anEntry : params.entrySet()) {\n Element<?> e = anEntry.getValue();\n StructuredDocument<?> newDoc = StructuredDocumentUtils.copyAsDocument(e);\n\n serviceParams.put(anEntry.getKey(), newDoc);\n }\n\n incModCount();\n }", "@JsonProperty(\"params\")\n public void setParams(MemeRunParameters params) {\n this.params = params;\n }", "private void setSearchParameters() {\n List obSys = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=0\"); //user 0 is the system user\n NewuserParamters paramsSys = null;\n if (obSys != null) {\n paramsSys = (NewuserParamters) obSys.get(0);\n } else {\n System.out.println(\"User System Properties missing\");\n }\n //modify the settings of the search parameter based on user specification\n List ob = null;\n\n try {\n ob = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=\" + UserId);\n if (ob.size() > 0) {\n NewuserParamters params = (NewuserParamters) ob.get(0);\n Integer val = 0;\n if ((val = params.getGlobalSessionSize()) != null) {\n NoOfglobalSessions = val;\n } else {\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n }\n\n if ((val = params.getHdmGeneration()) != null) {\n this.noHDMGenerations = val;\n } else {\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n }\n\n if ((val = params.getHdmPopulationSize()) != null) {\n this.HDMPopulation = val;\n } else {\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n }\n\n if ((val = params.getLearningType()) != null) {\n this.learningType = val;\n } else {\n this.learningType = paramsSys.getLearningType();\n }\n\n if ((val = params.getOptimizationType()) != null) {\n this.optimizationType = val;\n } else {\n this.optimizationType = paramsSys.getOptimizationType();\n }\n\n if ((val = params.getSdmGeneration()) != null) {\n this.noSDMGenerations = val;\n } else {\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n }\n\n if ((val = params.getSdmPopulationSize()) != null) {\n this.SDMPopulation = val;\n } else {\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n }\n Double valdou = 0.0;\n if ((valdou = params.getGaMutationProbability()) != null) {\n this.MUTATION_PROBABILITY = valdou;\n } else {\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n }\n\n if ((valdou = params.getGaCrossoverProbability()) != null) {\n this.CROSSOVER_PROBABILITY = valdou;\n } else {\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n }\n }\n else {\n //use system default parameters\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n this.learningType = paramsSys.getLearningType();\n this.optimizationType = paramsSys.getOptimizationType();\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public final void setParameters(Properties parameters) {\r\n mParameters=parameters;\r\n }", "public void editPAParameters() {\r\n \t\tdialogFactory.getDialog(new ParametricAnalysisPanel(model, model, model, this), \"Define What-if analysis parameters\");\r\n \t}", "public native final void setParams(JavaScriptObject params)/*-{\n this.params = params;\n }-*/;", "@Override\r\n\tpublic void setParameters(Map<String, String[]> parameters){\n\t\tthis.parameters=parameters;\r\n\t}", "@Override\r\n\tpublic void setParameterValuesToGUI() {\r\n\t\tthis.pb = this.workPackage.getParameters();\r\n\r\n\t\tjSpinnerLeft.removeChangeListener(this);\r\n\t\tjSpinnerRight.removeChangeListener(this);\r\n\t\tjSpinnerTop.removeChangeListener(this);\r\n\t\tjSpinnerBottom.removeChangeListener(this);\r\n\t\tjSpinnerConst.removeChangeListener(this);\r\n\r\n\t\tjSpinnerLeft.setValue(pb.getIntParameter(\"Left\"));\r\n\t\tjSpinnerRight.setValue(pb.getIntParameter(\"Right\"));\r\n\t\tjSpinnerTop.setValue(pb.getIntParameter(\"Top\"));\r\n\t\tjSpinnerBottom.setValue(pb.getIntParameter(\"Bottom\"));\r\n\t\tjSpinnerConst.setValue(pb.getIntParameter(\"Const\"));\r\n\r\n\t\tjSpinnerLeft.addChangeListener(this);\r\n\t\tjSpinnerRight.addChangeListener(this);\r\n\t\tjSpinnerTop.addChangeListener(this);\r\n\t\tjSpinnerBottom.addChangeListener(this);\r\n\t\tjSpinnerConst.addChangeListener(this);\r\n\r\n\t\tjSpinnerNewWidth.removeChangeListener(this);\r\n\t\tjSpinnerNewHeight.removeChangeListener(this);\r\n\t\tjSpinnerNewWidth.setValue(pb.getIntParameter(\"NewWidth\"));\r\n\t\tjSpinnerNewHeight.setValue(pb.getIntParameter(\"NewHeight\"));\r\n\t\tjSpinnerNewWidth.addChangeListener(this);\r\n\t\tjSpinnerNewHeight.addChangeListener(this);\r\n\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.ZERO) buttZero.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.CONSTANT) buttConst.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.COPY) buttCopy.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.REFLECT) buttReflect.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.WRAP) buttWrap.setSelected(true);\r\n\r\n\t\tif (buttConst.isSelected()) {\r\n\t\t\tjSpinnerConst.setEnabled(true);\r\n\t\t} else {\r\n\t\t\tjSpinnerConst.setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_BORDER) buttBorder.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_SIZE) buttSize.setSelected(true);\r\n\r\n\t}", "private void setIMUParameters(){\n BNO055IMU.Parameters parameters = getIMUParameters();\n imu.initialize(parameters);\n }", "private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }", "public void getParameters(Parameters parameters) {\n\n\t}", "@Override\n public void setParameters(Object[] params) {\n this.parameters = params != null ? params : new Object[0];\n }", "public void setParameters(int m, int r, int n){\n\t\t//Correct for invalid parameters\n\t\tif (m < 1) m = 1;\n\t\tif (r < 0) r = 0; else if (r > m) r = m;\n\t\tif (n < 0) n = 0; else if (n > m) n = m;\n\t\t//Assign parameter values\n\t\tpopulationSize = m;\n\t\ttype1Size = r;\n\t\tsampleSize = n;\n\t\tc = Functions.comb(populationSize, sampleSize);\n\t\tsetDomain(Math.max(0, sampleSize - populationSize + type1Size), Math.min(type1Size, sampleSize), 1, DISCRETE);\n\t}", "void setParameter(String name, Object value);", "public ifrmParametros(EntityManagerFactory factory,frmMain frm,BglTbUsuario user) {\n initComponents();\n PropertyConfigurator.configure(\"log4j.properties\");\n this.factory=factory;\n this.main=frm;\n this.usuario=user;\n \n llenarDatos();\n \n }", "void setParameters(Map<String, Object> propertyValues);" ]
[ "0.66784173", "0.65368706", "0.6318162", "0.6229887", "0.6218974", "0.61948055", "0.6103335", "0.60864294", "0.60629064", "0.60008323", "0.5985183", "0.5965486", "0.5954436", "0.5954436", "0.59115803", "0.5903683", "0.58943516", "0.5887139", "0.5852047", "0.5817272", "0.581222", "0.5811669", "0.58032006", "0.5784357", "0.5770359", "0.57672733", "0.5750891", "0.5731445", "0.57289183", "0.57276005", "0.5723175", "0.5716983", "0.56974846", "0.5696227", "0.56519306", "0.56133616", "0.5589171", "0.558842", "0.5547073", "0.554237", "0.5539297", "0.55336535", "0.5517813", "0.5512939", "0.5501633", "0.54840195", "0.54785484", "0.5467899", "0.5465504", "0.54608744", "0.5460206", "0.54569834", "0.5444774", "0.5442217", "0.54330003", "0.5430005", "0.54188883", "0.5418692", "0.5415951", "0.54132324", "0.54121244", "0.54074574", "0.5404648", "0.5402223", "0.54008085", "0.53995705", "0.5393453", "0.53837895", "0.536485", "0.53579307", "0.5351179", "0.5350654", "0.5350602", "0.5340566", "0.5340155", "0.5340155", "0.5340155", "0.5340155", "0.5338547", "0.5332406", "0.5326716", "0.5319309", "0.5314153", "0.5313511", "0.5306776", "0.5301837", "0.52934504", "0.5289517", "0.52802974", "0.52756786", "0.52716625", "0.5258219", "0.525277", "0.5250571", "0.5250391", "0.5244678", "0.5239026", "0.52386427", "0.52334154", "0.5219579" ]
0.83790237
0
/ JADX WARNING: Removed duplicated region for block: B:74:0x009a A[SYNTHETIC, Splitter:B:74:0x009a]
public static boolean UnzipFile(ZipFile zf, String filepathinzip, File fileinfiledir) { BufferedOutputStream Output_fos = null; BufferedInputStream bufbr = null; try { ZipEntry ze = zf.getEntry(filepathinzip); if (ze != null) { BufferedOutputStream Output_fos2 = new BufferedOutputStream(new FileOutputStream(fileinfiledir)); try { byte[] buf = new byte[65536]; BufferedInputStream bufbr2 = new BufferedInputStream(zf.getInputStream(ze)); while (true) { try { int readlen = bufbr2.read(buf); if (readlen < 0) { break; } Output_fos2.write(buf, 0, readlen); } catch (Exception e) { e = e; bufbr = bufbr2; Output_fos = Output_fos2; } catch (Throwable th) { th = th; bufbr = bufbr2; Output_fos = Output_fos2; if (Output_fos != null) { try { Output_fos.close(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e2) { e2.printStackTrace(); return false; } } } catch (IOException e3) { e3.printStackTrace(); if (bufbr == null) { return false; } try { bufbr.close(); return false; } catch (IOException e4) { e4.printStackTrace(); return false; } } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e5) { e5.printStackTrace(); return false; } } } } throw th; } } if (Output_fos2 != null) { try { Output_fos2.close(); if (bufbr2 != null) { try { bufbr2.close(); } catch (IOException e6) { e6.printStackTrace(); BufferedInputStream bufferedInputStream = bufbr2; BufferedOutputStream bufferedOutputStream = Output_fos2; return false; } } } catch (IOException e7) { e7.printStackTrace(); if (bufbr2 != null) { try { bufbr2.close(); } catch (IOException e8) { e8.printStackTrace(); BufferedInputStream bufferedInputStream2 = bufbr2; BufferedOutputStream bufferedOutputStream2 = Output_fos2; return false; } } BufferedInputStream bufferedInputStream3 = bufbr2; BufferedOutputStream bufferedOutputStream3 = Output_fos2; return false; } finally { if (bufbr2 != null) { try { bufbr2.close(); } catch (IOException e9) { e9.printStackTrace(); BufferedInputStream bufferedInputStream4 = bufbr2; BufferedOutputStream bufferedOutputStream4 = Output_fos2; return false; } } } } BufferedInputStream bufferedInputStream5 = bufbr2; BufferedOutputStream bufferedOutputStream5 = Output_fos2; return true; } catch (Exception e10) { e = e10; Output_fos = Output_fos2; try { e.printStackTrace(); if (Output_fos == null) { return false; } try { Output_fos.close(); if (bufbr == null) { return false; } try { bufbr.close(); return false; } catch (IOException e11) { e11.printStackTrace(); return false; } } catch (IOException e12) { e12.printStackTrace(); if (bufbr == null) { return false; } try { bufbr.close(); return false; } catch (IOException e13) { e13.printStackTrace(); return false; } } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e14) { e14.printStackTrace(); return false; } } } } catch (Throwable th2) { th = th2; if (Output_fos != null) { } throw th; } } catch (Throwable th3) { th = th3; Output_fos = Output_fos2; if (Output_fos != null) { } throw th; } } else if (Output_fos == null) { return false; } else { try { Output_fos.close(); if (bufbr == null) { return false; } try { bufbr.close(); return false; } catch (IOException e15) { e15.printStackTrace(); return false; } } catch (IOException e16) { e16.printStackTrace(); if (bufbr == null) { return false; } try { bufbr.close(); return false; } catch (IOException e17) { e17.printStackTrace(); return false; } } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e18) { e18.printStackTrace(); return false; } } } } } catch (Exception e19) { e = e19; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test (timeout=180000)\n public void testValidLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n // TODO: fixHdfsHoles does not work against splits, since the parent dir lingers on\n // for some time until children references are deleted. HBCK erroneously sees this as\n // overlapping regions\n HBaseFsck hbck = doFsck(\n conf, true, true, false, false, false, true, true, true, false, false, false, null);\n assertErrors(hbck, new ERROR_CODE[] {}); //no LINGERING_SPLIT_PARENT reported\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "public void handlesBlockingRegionDrag() {\r\n \t\tObject[] cells = graph.getDescendants(graph.getSelectionCells());\r\n \t\t// Put cells not in a blocking region to back\r\n \t\tHashSet<Object> putBack = new HashSet<Object>();\r\n \t\tfor (Object cell2 : cells) {\r\n \t\t\tif (cell2 instanceof JmtCell && ((JmtCell) cell2).parentChanged()) {\r\n \t\t\t\t// This cell was moved in, out or between blocking regions\r\n \t\t\t\tJmtCell cell = (JmtCell) cell2;\r\n \t\t\t\tObject key = ((CellComponent) cell.getUserObject()).getKey();\r\n \t\t\t\tObject oldRegionKey, newRegionKey;\r\n \t\t\t\tif (!(cell.getParent() instanceof BlockingRegion)) {\r\n \t\t\t\t\t// Object removed from blocking region\r\n \t\t\t\t\tputBack.add(cell2);\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Allow adding of removed objects to a new blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(true);\r\n \t\t\t\t} else if (cell.getPrevParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t// Object changed blocking region\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tmodel.addRegionStation(newRegionKey, key);\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// Object added to a blocking region\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tif (!model.addRegionStation(newRegionKey, key)) {\r\n \t\t\t\t\t\t// object cannot be added to blocking region (for\r\n \t\t\t\t\t\t// example it's a source)\r\n \t\t\t\t\t\tcell.removeFromParent();\r\n \t\t\t\t\t\tgraph.getModel().insert(new Object[] { cell }, null, null, null, null);\r\n \t\t\t\t\t\tputBack.add(cell);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Doesn't allow adding of selected objects to a new\r\n \t\t\t\t\t// blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(false);\r\n \t\t\t\t}\r\n \t\t\t\t// Resets parent for this cell\r\n \t\t\t\tcell.resetParent();\r\n \t\t\t}\r\n \t\t\t// Avoid insertion of a blocking region in an other\r\n \t\t\telse if (cell2 instanceof BlockingRegion) {\r\n \t\t\t\tBlockingRegion region = (BlockingRegion) cell2;\r\n \t\t\t\tif (region.getParent() != null) {\r\n \t\t\t\t\tregion.removeFromParent();\r\n \t\t\t\t\tgraph.getModel().insert(new Object[] { region }, null, null, null, null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Puts cells removed from blocking regiont on background\r\n \t\tgraph.getModel().toBack(putBack.toArray());\r\n \t}", "@Test (timeout=180000)\n public void testLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(\"B\");\n\n // Delete one region from meta, but not hdfs, unassign it.\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, false);\n\n // Create a new meta entry to fake it as a split parent.\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n HRegionInfo a = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"B\"), Bytes.toBytes(\"BM\"));\n HRegionInfo b = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"BM\"), Bytes.toBytes(\"C\"));\n\n hri.setOffline(true);\n hri.setSplit(true);\n\n MetaTableAccessor.addRegionToMeta(meta, hri, a, b);\n meta.close();\n admin.flush(TableName.META_TABLE_NAME);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // regular repair cannot fix lingering split parent\n hbck = doFsck(conf, true);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN });\n assertFalse(hbck.shouldRerun());\n hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // fix lingering split parent\n hbck = new HBaseFsck(conf, hbfsckExecutorService);\n hbck.connect();\n hbck.setDisplayFullReport(); // i.e. -details\n hbck.setTimeLag(0);\n hbck.setFixSplitParents(true);\n hbck.onlineHbck();\n assertTrue(hbck.shouldRerun());\n hbck.close();\n\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITA_QUALIFIER).isEmpty());\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITB_QUALIFIER).isEmpty());\n admin.flush(TableName.META_TABLE_NAME);\n\n // fix other issues\n doFsck(conf, true);\n\n // check that all are fixed\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "public abstract void removeBlock();", "void reportSplit(HRegionInfo oldRegion, HRegionInfo newRegionA,\n HRegionInfo newRegionB) {\n \n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_SPLIT, oldRegion,\n (oldRegion.getRegionNameAsString() + \" split; daughters: \" +\n newRegionA.getRegionNameAsString() + \", \" +\n newRegionB.getRegionNameAsString()).getBytes()));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionA));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionB));\n }", "@Test(timeout=75000)\n public void testSplitDaughtersNotInMeta() throws Exception {\n TableName table = TableName.valueOf(\"testSplitdaughtersNotInMeta\");\n Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n HRegionInfo hri = location.getRegionInfo();\n\n // Disable CatalogJanitor to prevent it from cleaning up the parent region\n // after split.\n admin.enableCatalogJanitor(false);\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n PairOfSameType<HRegionInfo> daughters =\n MetaTableAccessor.getDaughterRegions(meta.get(new Get(regionName)));\n\n // Delete daughter regions from meta, but not hdfs, unassign it.\n Map<HRegionInfo, ServerName> hris = tbl.getRegionLocations();\n undeployRegion(connection, hris.get(daughters.getFirst()), daughters.getFirst());\n undeployRegion(connection, hris.get(daughters.getSecond()), daughters.getSecond());\n\n List<Delete> deletes = new ArrayList<>();\n deletes.add(new Delete(daughters.getFirst().getRegionName()));\n deletes.add(new Delete(daughters.getSecond().getRegionName()));\n meta.delete(deletes);\n\n // Remove daughters from regionStates\n RegionStates regionStates = TEST_UTIL.getMiniHBaseCluster().getMaster().\n getAssignmentManager().getRegionStates();\n regionStates.deleteRegion(daughters.getFirst());\n regionStates.deleteRegion(daughters.getSecond());\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN }); //no LINGERING_SPLIT_PARENT\n\n // now fix it. The fix should not revert the region split, but add daughters to META\n hbck = doFsck(\n conf, true, true, false, false, false, false, false, false, false, false, false, null);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN });\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false)); //should be fixed by now\n } finally {\n admin.enableCatalogJanitor(true);\n meta.close();\n cleanupTable(table);\n }\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "protected abstract void splitBAMs();", "@Test (timeout=180000)\n public void testDupeRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeRegion\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"B\"));\n\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n // Yikes! The assignment manager can't tell between diff between two\n // different regions with the same start/endkeys since it doesn't\n // differentiate on ts/regionId! We actually need to recheck\n // deployments!\n while (findDeployedHSI(getDeployedHRIs((HBaseAdmin) admin), hriDupe) == null) {\n Thread.sleep(250);\n }\n\n LOG.debug(\"Finished assignment of dupe region\");\n\n // TODO why is dupe region different from dupe start keys?\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS});\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows()); // seems like the \"bigger\" region won.\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "private void split(Map<Integer, SortedSet> invariants, Partition partition) {\n int nonEmptyInvariants = invariants.keySet().size();\n if (nonEmptyInvariants > 1) {\n List<Integer> invariantKeys = new ArrayList<Integer>();\n invariantKeys.addAll(invariants.keySet());\n partition.removeCell(currentBlockIndex);\n int k = currentBlockIndex;\n if (splitOrder == SplitOrder.REVERSE) {\n Collections.sort(invariantKeys);\n } else {\n Collections.sort(invariantKeys, Collections.reverseOrder());\n }\n for (int h : invariantKeys) {\n SortedSet setH = invariants.get(h);\n// System.out.println(\"adding block \" + setH + \" at \" + k + \" h=\" + h);\n partition.insertCell(k, setH);\n blocksToRefine.add(setH);\n k++;\n \n }\n // skip over the newly added blocks\n currentBlockIndex += nonEmptyInvariants - 1;\n }\n }", "@Test (timeout=180000)\n public void testSidelineOverlapRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"testSidelineOverlapRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating an overlap\n MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();\n HMaster master = cluster.getMaster();\n HRegionInfo hriOverlap1 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"AB\"));\n master.assignRegion(hriOverlap1);\n master.getAssignmentManager().waitForAssignment(hriOverlap1);\n HRegionInfo hriOverlap2 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"AB\"), Bytes.toBytes(\"B\"));\n master.assignRegion(hriOverlap2);\n master.getAssignmentManager().waitForAssignment(hriOverlap2);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS, ERROR_CODE.OVERLAP_IN_REGION_CHAIN});\n assertEquals(3, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // mess around the overlapped regions, to trigger NotServingRegionException\n Multimap<byte[], HbckInfo> overlapGroups = hbck.getOverlapGroups(table);\n ServerName serverName = null;\n byte[] regionName = null;\n for (HbckInfo hbi: overlapGroups.values()) {\n if (\"A\".equals(Bytes.toString(hbi.getStartKey()))\n && \"B\".equals(Bytes.toString(hbi.getEndKey()))) {\n regionName = hbi.getRegionName();\n\n // get an RS not serving the region to force bad assignment info in to META.\n int k = cluster.getServerWith(regionName);\n for (int i = 0; i < 3; i++) {\n if (i != k) {\n HRegionServer rs = cluster.getRegionServer(i);\n serverName = rs.getServerName();\n break;\n }\n }\n\n HBaseFsckRepair.closeRegionSilentlyAndWait((HConnection) connection,\n cluster.getRegionServer(k).getServerName(), hbi.getHdfsHRI());\n admin.offline(regionName);\n break;\n }\n }\n\n assertNotNull(regionName);\n assertNotNull(serverName);\n try (Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService)) {\n Put put = new Put(regionName);\n put.add(HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER,\n Bytes.toBytes(serverName.getHostAndPort()));\n meta.put(put);\n }\n\n // fix the problem.\n HBaseFsck fsck = new HBaseFsck(conf, hbfsckExecutorService);\n fsck.connect();\n fsck.setDisplayFullReport(); // i.e. -details\n fsck.setTimeLag(0);\n fsck.setFixAssignments(true);\n fsck.setFixMeta(true);\n fsck.setFixHdfsHoles(true);\n fsck.setFixHdfsOverlaps(true);\n fsck.setFixHdfsOrphans(true);\n fsck.setFixVersionFile(true);\n fsck.setSidelineBigOverlaps(true);\n fsck.setMaxMerge(2);\n fsck.onlineHbck();\n fsck.close();\n\n // verify that overlaps are fixed, and there are less rows\n // since one region is sidelined.\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertTrue(ROWKEYS.length > countRows());\n } finally {\n cleanupTable(table);\n }\n }", "public void collapseBlocks() {\n // Create it if it's null\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n // Get the vertex to block lookup\n Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n // Go through the entities and accumulate the positions\n Map<MyGraph,Double> x_sum = new HashMap<MyGraph,Double>(), y_sum = new HashMap<MyGraph,Double>();\n Iterator<String> it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity)) {\n\t Iterator<MyGraph> it_mg = v_to_b.get(entity).iterator();\n\t while (it_mg.hasNext()) {\n\t MyGraph mg = it_mg.next();\n\t if (x_sum.containsKey(mg) == false) { x_sum.put(mg,0.0); y_sum.put(mg,0.0); }\n\t x_sum.put(mg,x_sum.get(mg)+pt.getX()); y_sum.put(mg,y_sum.get(mg)+pt.getY());\n\t }\n } else System.err.println(\"Vertex To Block Lookup missing \\\"\" + entity + \"\\\"\");\n }\n // Now position those entities that aren't cut vertices at the center of the graph\n it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity) && bcc.getCutVertices().contains(entity) == false) {\n MyGraph mg = v_to_b.get(entity).iterator().next();\n\t entity_to_wxy.put(entity, new Point2D.Double(x_sum.get(mg)/mg.getNumberOfEntities(),y_sum.get(mg)/mg.getNumberOfEntities()));\n\t transform(entity);\n\t}\n }\n // Re-render\n zoomToFit(); repaint();\n }\n }", "@Test (timeout=180000)\n public void testDegenerateRegions() throws Exception {\n TableName table = TableName.valueOf(\"tableDegenerateRegions\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"B\"), Bytes.toBytes(\"B\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf,false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DEGENERATE_REGION, ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS });\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "int numberOfBlocksToRemove();", "public int numberOfBlocksToRemove() {\r\n return 105;\r\n }", "@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@Test\n\tpublic void testForwardNonFrameBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642114, PositionType.ZERO_BASED),\n\t\t\t\t\"TAAACA\", \"GTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.691-3_693delinsGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Trp231Val\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_ACCEPTOR),\n\t\t\t\tannotation1.effects);\n\n\t\t// deletion of three codons, insertion of one\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642126, PositionType.ZERO_BASED),\n\t\t\t\t\"GTGGTTCAA\", \"ACC\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(2, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.700_708delinsACC\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Val234_Gln236delinsThr\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION), annotation2.effects);\n\n\t\t// deletion of three codons, insertion of one, includes truncation of replacement ref from the right\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642134, PositionType.ZERO_BASED),\n\t\t\t\t\"AGTGGAGGAT\", \"CTT\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(2, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.708_716delinsCT\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Gln236Hisfs*16\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION), annotation3.effects);\n\t}", "public void cleanupOldBlocks (long threshTime) ;", "@Test\n public void testSplitOnCreatedSegment() throws Exception {\n InternalKnowledgeBase kbase1 = buildKnowledgeBase(\"r1\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\");\n kbase1.addPackages( buildKnowledgePackage(\"r2\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r3\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r4\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \\n\") );\n\n InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession());\n List list = new ArrayList();\n wm.setGlobal(\"list\", list);\n\n wm.insert(new X(1));\n wm.insert(new X(2));\n wm.insert(new X(3));\n wm.flushPropagations();\n\n RuleTerminalNode rtn1 = getRtn( \"org.kie.r1\", kbase1 );\n\n PathMemory pm1 = wm.getNodeMemory(rtn1);\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(2);\n SegmentMemory[] smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(4);\n assertThat(smems[0]).isNull();\n assertThat(smems[2]).isNull();\n assertThat(smems[3]).isNull();\n SegmentMemory sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n\n kbase1.addPackages( buildKnowledgePackage(\"r5\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(3;)\\n\") );\n wm.fireAllRules();\n\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(6);\n smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(5);\n assertThat(smems[0]).isNull();\n assertThat(smems[3]).isNull();\n assertThat(smems[4]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n\n RuleTerminalNode rtn5 = getRtn( \"org.kie.r5\", kbase1 );\n PathMemory pm5 = wm.getNodeMemory(rtn5);\n assertThat(pm5.getLinkedSegmentMask()).isEqualTo(6);\n\n smems = pm5.getSegmentMemories();\n assertThat(smems.length).isEqualTo(3);\n assertThat(smems[0]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n }", "private void t2() {\n // read from a super region, write to a sub region: keep both\n readProtected();\n writeDefault();\n }", "private void t3() {\n // write to a super region, read from a subregion: only keep write\n writeProtected();\n readDefault();\n }", "@Test (timeout=180000)\n public void testRegionHole() throws Exception {\n TableName table =\n TableName.valueOf(\"tableRegionHole\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.HOLE_IN_REGION_CHAIN});\n // holes are separate from overlap groups\n assertEquals(0, hbck.getOverlapGroups(table).size());\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length - 2 , countRows()); // lost a region so lost a row\n } finally {\n cleanupTable(table);\n }\n }", "public LinearGenomeShrinkMutation(){\n\t\tnumberGenesToRemove = 1;\n\t}", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "void transform() {\n\t\tint oldline, newline;\n\t\tint oldmax = oldinfo.maxLine + 2; /* Count pseudolines at */\n\t\tint newmax = newinfo.maxLine + 2; /* ..front and rear of file */\n\n\t\tfor (oldline = 0; oldline < oldmax; oldline++)\n\t\t\toldinfo.other[oldline] = -1;\n\t\tfor (newline = 0; newline < newmax; newline++)\n\t\t\tnewinfo.other[newline] = -1;\n\n\t\tscanunique(); /* scan for lines used once in both files */\n\t\tscanafter(); /* scan past sure-matches for non-unique blocks */\n\t\tscanbefore(); /* scan backwards from sure-matches */\n\t\tscanblocks(); /* find the fronts and lengths of blocks */\n\t}", "@Test(timeout=120000)\n public void testMissingFirstRegion() throws Exception {\n TableName table = TableName.valueOf(\"testMissingFirstRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"\"), Bytes.toBytes(\"A\"), true,\n true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.FIRST_REGION_STARTKEY_NOT_EMPTY });\n // fix hole\n doFsck(conf, true);\n // check that hole fixed\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n }\n }", "public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)\r\n {\r\n super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n// this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n }", "void removeBlock(Block block);", "public void unifyAdjacentChests(World par1World, int par2, int par3, int par4) {\n\t\tif (!par1World.isRemote) {\n\t\t\tBlock l = par1World.getBlock(par2, par3, par4 - 1);\n\t\t\tBlock i1 = par1World.getBlock(par2, par3, par4 + 1);\n\t\t\tBlock j1 = par1World.getBlock(par2 - 1, par3, par4);\n\t\t\tBlock k1 = par1World.getBlock(par2 + 1, par3, par4);\n\t\t\tBlock l1;\n\t\t\tBlock i2;\n\n\t\t\tbyte b0;\n\t\t\tint j2;\n\n\t\t\tif (l != this && i1 != this) {\n\t\t\t\tif (j1 != this && k1 != this) {\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (l.func_149730_j() && !i1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (i1.func_149730_j() && !l.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j1.func_149730_j() && !k1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 5;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (k1.func_149730_j() && !j1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 4;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tl1 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 - 1);\n\t\t\t\t\ti2 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 + 1);\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (j1 == this) {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 - 1, par3, par4);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 + 1, par3, par4);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j2 == 2) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((l.func_149730_j() || l1.func_149730_j()) && !i1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((i1.func_149730_j() || i2.func_149730_j()) && !l.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tl1 = par1World.getBlock(par2 - 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\ti2 = par1World.getBlock(par2 + 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\tb0 = 5;\n\n\t\t\t\tif (l == this) {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 - 1);\n\t\t\t\t} else {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 + 1);\n\t\t\t\t}\n\n\t\t\t\tif (j2 == 4) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\n\t\t\t\tif ((j1.func_149730_j() || l1.func_149730_j()) && !k1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\tb0 = 5;\n\t\t\t\t}\n\n\t\t\t\tif ((k1.func_149730_j() || i2.func_149730_j()) && !j1.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpar1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 3);\n\t\t}\n\t}", "void showsame() {\n\t\tint count;\n\t\tprintstatus = idle;\n\t\tif (newinfo.other[printnewline] != printoldline) {\n\t\t\tSystem.err.println(\"BUG IN LINE REFERENCING\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcount = blocklen[printoldline];\n\t\tprintoldline += count;\n\t\tprintnewline += count;\n\t}", "void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }", "private void smoothAdjacentCollapsibles(TECarpentersBlock TE, int src_quadrant)\n \t{\n \t\tTECarpentersBlock TE_XN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_XP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_ZN = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_ZP = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZNN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZNP = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZPN = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZPP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\t\n \t\tint height = Collapsible.getQuadHeight(TE, src_quadrant);\n \t\t\n \t\tswitch (src_quadrant)\n \t\t{\n \t\tcase Collapsible.QUAD_XZNN:\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_XZNN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZNP:\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XZNP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPN:\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XZPN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPP:\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_XZPP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t}", "@Override\n public S trySplit(){\n return null;\n }", "private static void registerBlock(Block b)\n\t{\n\t}", "@Override\n \tpublic void regionsRemoved(RegionEvent evt) {\n \t\t\n \t}", "void removeExistingGlue() {\r\n\t\tfor (int i = outputStream.size() - 1; i >= 0; i--) {\r\n\t\t\tRTObject c = outputStream.get(i);\r\n\t\t\tif (c instanceof Glue) {\r\n\t\t\t\toutputStream.remove(i);\r\n\t\t\t} else if (c instanceof ControlCommand) { // e.g.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// BeginString\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toutputStreamDirty();\r\n\t}", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "public interface NoCopySpan\n/* */ {\n/* */ public static class Concrete\n/* */ implements NoCopySpan\n/* */ {\n/* */ public Concrete() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }\n/* */ }\n/* */ }", "@Override\r\n public int numberOfBlocksToRemove() {\r\n return blocks().size();\r\n }", "@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}", "public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }", "@Test\n public void testSingleBlock()\n {\n BlockMetadata.FileBlockMetadata block = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, 0L, 0L,\n testMeta.dataFile.length(), true, -1, testMeta.dataFile.length());\n\n testMeta.blockReader.beginWindow(1);\n testMeta.blockReader.blocksMetadataInput.process(block);\n testMeta.blockReader.endWindow();\n\n List<Object> actualMessages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), actualMessages.size());\n\n for (int i = 0; i < actualMessages.size(); i++) {\n byte[] msg = (byte[])actualMessages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "private void collapseIgloo() {\n blocks.sort(Comparator.comparing(a -> a.center.getY()));\n\n double minDistance, distance;\n Point3D R = new Point3D(0, -1, 0);\n for (int i = 0; i < blocks.size(); i++) {\n minDistance = Double.MAX_VALUE;\n for (int j = i - 1; j >= 0; j--) {\n if (boundingSpheresIntersect(blocks.get(i), blocks.get(j))) {\n distance = minDistance(blocks.get(i), blocks.get(j), R);\n if (distance < minDistance) {\n minDistance = distance;\n }\n }\n }\n if (minDistance != Double.MAX_VALUE) {\n blocks.get(i).move(R.multiply(minDistance));\n }\n }\n }", "public void insertReorderBarrier() {\n\t\t\n\t}", "protected SpatialRelationBlock() {\n\t\t/* intentionally empty block */}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@Test\n\tpublic void testForwardFrameShiftBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6647537, PositionType.ZERO_BASED),\n\t\t\t\t\"TGCCCCACCT\", \"CCC\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(6, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1225_1234delinsCCC\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Cys409Profs*127\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.SPLICE_REGION),\n\t\t\t\tannotation1.effects);\n\t}", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;", "private static boolean HandleDeleteWhenStructuralBoundaryIsCrossed(TextEditor This, TextPointer position, TextPointer deletePosition) \r\n {\r\n if (!TextRangeEditTables.IsTableStructureCrossed(position, deletePosition) && \r\n !IsBlockUIContainerBoundaryCrossed(position, deletePosition) &&\r\n !TextPointerBase.IsAtRowEnd(position))\r\n {\r\n return false; \r\n }\r\n\r\n LogicalDirection directionOfDelete = position.CompareTo(deletePosition) < 0 ? LogicalDirection.Forward : LogicalDirection.Backward; \r\n\r\n Block paragraphOrBlockUIContainerToDelete = position.ParagraphOrBlockUIContainer; \r\n\r\n // Check if an empty paragraph or BlockUIContainer needs to be deleted.\r\n if (paragraphOrBlockUIContainerToDelete != null)\r\n { \r\n if (directionOfDelete == LogicalDirection.Forward)\r\n { \r\n // \r\n\r\n\r\n\r\n\r\n if (paragraphOrBlockUIContainerToDelete.NextBlock != null &&\r\n paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph \r\n paragraphOrBlockUIContainerToDelete is BlockUIContainer && paragraphOrBlockUIContainerToDelete.IsEmpty) // empty BlockUIContainer\r\n { \r\n paragraphOrBlockUIContainerToDelete.RepositionWithContent(null); \r\n }\r\n } \r\n else\r\n {\r\n if (paragraphOrBlockUIContainerToDelete.PreviousBlock != null &&\r\n paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph \r\n paragraphOrBlockUIContainerToDelete is BlockUIContainer && paragraphOrBlockUIContainerToDelete.IsEmpty) // empty BlockUIContainer\r\n { \r\n paragraphOrBlockUIContainerToDelete.RepositionWithContent(null); \r\n }\r\n } \r\n }\r\n\r\n // Set caret position.\r\n This.Selection.SetCaretToPosition(deletePosition, directionOfDelete, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true); \r\n\r\n if (directionOfDelete == LogicalDirection.Backward) \r\n { \r\n // Clear springload formatting in case of backspace\r\n ((TextSelection)This.Selection).ClearSpringloadFormatting(); \r\n }\r\n\r\n return true;\r\n }", "@Override\r\n\tpublic void visit(InstrumentBlock instrumentBlock) {\n\t\t\r\n\t}", "public void Inverse_macroblock_partition_scanning_process(){\n\t\tx=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,0);\n\t\ty=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,1);\n\n\t}", "public void remove( int position )\n {\n caller = \"remove\";\n byte byteSize = memoryPool[position];\n Integer size = (int)byteSize;\n // remove the record starting at the given position\n for ( int i = 0; i < size; i++ )\n {\n memoryPool[position + i] = 0;\n }\n\n findBlock( position );\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( position, size );\n freeBlockList.add( freeBlock );\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n int key = (Integer)keyArray[0];\n\n caller = \"check\";\n int currentValue = freeBlockList.getCurrentElement().get( key );\n int mergePoint1 = position + currentValue;\n int rightKeyMatch = findBlock( mergePoint1 );\n\n int mergePoint2 = position;\n int leftKeyMatch = -1;\n int priorValue = -1;\n int key2 = -1;\n if ( 1==1)\n {\n findBlock(mergePoint2);\n freeBlockList.previous();\n if ( !( freeBlockList.getCurrent().equals( freeBlockList.getHead() ) )\n && !( freeBlockList.getCurrent().equals( freeBlockList.getTail() ) ) &&\n !( freeBlockList.getCurrent().equals( null )))\n {\n Object[] keyArray2 =\n freeBlockList.getCurrentElement().keySet().toArray();\n key2 = (Integer)keyArray2[0];\n priorValue = freeBlockList.getCurrentElement().get( key2 );\n leftKeyMatch = key2 + priorValue;\n }\n\n }\n\n if ( rightKeyMatch == mergePoint1 )\n {\n findBlock(mergePoint1);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get( rightKeyMatch );\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n position,\n currentValue + rightValue );\n //if()\n }\n if(leftKeyMatch == mergePoint2) {\n findBlock(mergePoint2);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get(leftKeyMatch);\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n key2,\n priorValue + rightValue );\n }\n\n }", "@Override\n\tpublic void afterSplitting(final Object groupingObject, final ConsignmentModel createdOne)\n\t{\n\t\tSystem.out.println(\"method:afterSplitting...........................\");\n\t}", "public boolean willOverlap() {\n/* 208 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void splitBankStatementLine(HttpServletResponse response, String strReconciliationId,\n String strBankStatementLineId, String strTransactionId) throws IOException, ServletException {\n JSONObject table = new JSONObject();\n boolean returnError = false;\n FIN_Reconciliation rec = OBDal.getInstance().get(FIN_Reconciliation.class, strReconciliationId);\n FIN_BankStatementLine bsl = OBDal.getInstance().get(FIN_BankStatementLine.class,\n strBankStatementLineId);\n FIN_FinaccTransaction trx = OBDal.getInstance().get(FIN_FinaccTransaction.class,\n strTransactionId);\n try {\n OBContext.setAdminMode(true);\n if (rec != null && \"Y\".equals(rec.getPosted())) {\n // reconciliation posted not possible to split a row\n returnError = true;\n table.put(\"showJSMessage\", \"APRM_SplitBSLReconciliationPosted\");\n }\n if (bsl.getFinancialAccountTransaction() != null\n && bsl.getFinancialAccountTransaction().getReconciliation() != null) {\n returnError = true;\n table.put(\"showJSMessage\", \"APRM_SplitBSLAlreadyMatched\");\n }\n\n // If validation was ok continue with the split\n if (!returnError) {\n BigDecimal bslAmount = bsl.getCramount().subtract(bsl.getDramount());\n BigDecimal trxAmount = trx.getDepositAmount().subtract(trx.getPaymentAmount());\n\n if (bslAmount.compareTo(trxAmount) != 0) {\n // prevent trigger\n FIN_BankStatement bs = bsl.getBankStatement();\n bs.setProcessed(false);\n OBDal.getInstance().save(bs);\n OBDal.getInstance().flush();\n\n // Duplicate bank statement line with pending amount\n FIN_BankStatementLine clonedBSLine = (FIN_BankStatementLine) DalUtil.copy(bsl, true);\n\n BigDecimal credit = bsl.getCramount().subtract(trx.getDepositAmount());\n BigDecimal debit = bsl.getDramount().subtract(trx.getPaymentAmount());\n\n clonedBSLine.setCramount(credit);\n clonedBSLine.setDramount(debit);\n\n if (credit.compareTo(BigDecimal.ZERO) != 0 && debit.compareTo(BigDecimal.ZERO) != 0) {\n BigDecimal total = credit.subtract(debit);\n if (total.compareTo(BigDecimal.ZERO) == -1) {\n clonedBSLine.setCramount(BigDecimal.ZERO);\n clonedBSLine.setDramount(total.abs());\n } else {\n clonedBSLine.setCramount(total);\n clonedBSLine.setDramount(BigDecimal.ZERO);\n }\n } else {\n if (credit.compareTo(BigDecimal.ZERO) == -1) {\n clonedBSLine.setCramount(BigDecimal.ZERO);\n clonedBSLine.setDramount(credit.abs());\n }\n if (debit.compareTo(BigDecimal.ZERO) == -1) {\n clonedBSLine.setDramount(BigDecimal.ZERO);\n clonedBSLine.setCramount(debit.abs());\n }\n\n }\n\n // link bank statement line with the transaction\n bsl.setFinancialAccountTransaction(trx);\n bsl.setCramount(trx.getDepositAmount());\n bsl.setDramount(trx.getPaymentAmount());\n bsl.setMatchingtype(FIN_MatchedTransaction.MANUALMATCH);\n trx.setStatus(\"RPPC\");\n trx.setReconciliation(rec);\n if (trx.getFinPayment() != null) {\n trx.getFinPayment().setStatus(\"RPPC\");\n }\n\n bs.setProcessed(true);\n\n // Save\n OBDal.getInstance().save(bs);\n OBDal.getInstance().save(clonedBSLine);\n OBDal.getInstance().save(bsl);\n OBDal.getInstance().flush();\n }\n }\n response.setContentType(\"text/html; charset=UTF-8\");\n PrintWriter out = response.getWriter();\n out.println(\"data = \" + table.toString());\n out.close();\n } catch (JSONException e) {\n throw new OBException(\"splitBankStatementLine - JSON object error: \" + table.toString(), e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }", "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "@Override\n\tpublic void visitXblock(Xblock p) {\n\n\t}", "private void repairGenome() {\n if (checkGenome(this.code)) {\n return;\n }\n int[] counters = new int[8];\n for (int c : code) { counters[c]++; }\n for (int i = 0; i < 8; ++i) {\n if (counters[i] == 0) {\n while (true) {\n int newPos = r.nextInt(GENOME_SIZE);\n if (counters[this.code[newPos]] > 1) {\n counters[this.code[newPos]]--;\n this.code[newPos] = i;\n break;\n }\n }\n }\n }\n }", "private void b()\r\n/* 67: */ {\r\n/* 68: 73 */ this.c.clear();\r\n/* 69: 74 */ this.e.clear();\r\n/* 70: */ }", "@Override\n protected void updateEliminations() {\n\n }", "public void RemoveBlock(int NumOfB,ArrayList<Block> blocks,int[] i,int[] j){\r\n try {\r\n //2 blocks\r\n if (NumOfB == 2) {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[1], j[1]), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[0], j[0]), blocks.get(0).getTypeOfBlock());\r\n }\r\n //3 blocks\r\n else {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n map[i[2]][j[2]] = '0';\r\n blockList.RemovBlock(blocks.get(2), blocks.get(2).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(1), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(0), blocks.get(0).getTypeOfBlock());\r\n }\r\n gamePage.Sounds(2);//remove sound\r\n MoveBlock(2);//check if there is block will move down\r\n }catch (ArrayIndexOutOfBoundsException e) {\r\n\r\n }\r\n }", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "@Test\r\n\t@Ignore\r\n\tpublic void shouldReturnLisOfBrokenByRegion() {\n\t}", "boolean splitAndInsert(T t, Pair<String,LeafNode> ln){\n\n int splitTimes=0;\n\n Interval[] intervals = ln.second().getIntervals();\n assert intervals.length==leafNodeCapacity;\n Interval[] leftIntervals = new Interval[leafNodeCapacity];\n Interval[] rightIntervals = new Interval[leafNodeCapacity];\n Interval[] tempIntervals = null;\n\n int leftIntervalNumber=0;\n int rightIntervalNumber=0;\n TriangleShape lnTriangle = ln.second().triangle;\n String lnString=ln.first();\n TriangleShape leftTriangle=null;\n TriangleShape rightTriangle=null;\n String leftString=null;\n String rightString =null;\n\n while(leftIntervalNumber==0 || rightIntervalNumber==0){\n\n if(splitTimes==10000) {\n System.out.println(\"splitTimes=\"+splitTimes);\n System.out.println(\"you should increase the parameter leafNodeCapaity value!!!\");\n assert false;\n }\n else\n splitTimes++;\n\n leftTriangle=lnTriangle.leftTriangle();\n leftIntervalNumber=0;\n rightIntervalNumber=0;\n\n for(Interval i: intervals){\n if(Geom2DSuits.contains(leftTriangle,i.getLowerBound(),i.getUpperBound())){\n leftIntervals[leftIntervalNumber]=i;\n leftIntervalNumber++;\n }\n else{\n rightIntervals[rightIntervalNumber]=i;\n rightIntervalNumber++;\n }\n }\n\n if(leftIntervalNumber==0){//all located at left side\n rightTriangle = lnTriangle.rightTriangle();\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(leftString);\n lnTriangle = rightTriangle;\n lnString=rightString;\n\n tempIntervals=intervals;\n intervals=rightIntervals;\n rightIntervals=tempIntervals;\n }\n else if(rightIntervalNumber==0){//all located at right side\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(rightString);\n lnTriangle = leftTriangle;\n lnString=leftString;\n\n tempIntervals=intervals;\n intervals=leftIntervals;\n leftIntervals=tempIntervals;\n }\n else { //spit successfully\n\n leftString=lnString+\"0\";\n LeafNode leftNode = new LeafNode();\n leftNode.intervals=leftIntervals;\n leftNode.size=leftIntervalNumber;\n leftNode.triangle=leftTriangle;\n\n rightString = lnString+\"1\";\n LeafNode rightNode = new LeafNode();\n rightTriangle = lnTriangle.rightTriangle();\n rightNode.triangle=rightTriangle;\n rightNode.size=rightIntervalNumber;\n rightNode.intervals=rightIntervals;\n\n if(leftNode.insert(t)!=1){\n rightNode.insert(t);\n }\n\n Identifier lnPage =leafInfos.remove(ln.first());\n writeNode(leftNode,lnPage);\n Identifier rightPage = CommonSuits.createIdentifier(-1L);\n writeNode(rightNode,rightPage);\n\n leafInfos.put(leftString,lnPage);\n leafInfos.put(rightString,rightPage);\n return true;\n }\n }\n return false;\n }", "public static Optional<Block> splitCriticalEdge(Block source, int pos) {\n Node target = source.getPred(pos);\n if (target.equals(iro_Jmp)) {\n return Optional.empty();\n }\n Graph graph = source.getGraph();\n Block splitter = (Block) graph.newBlock(new Node[] {target});\n source.setPred(pos, graph.newJmp(splitter));\n Dominance.invalidateDominace();\n return Optional.of(splitter);\n }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec, Random paramRandom)\r\n/* 39: */ {\r\n/* 40: 54 */ if (paramaqu.isClient) {\r\n/* 41: 55 */ return;\r\n/* 42: */ }\r\n/* 43: 58 */ if ((paramaqu.l(paramdt.up()) < 4) && (paramaqu.getBlock(paramdt.up()).getType().getLightOpacity() > 2))\r\n/* 44: */ {\r\n/* 45: 59 */ paramaqu.setBlock(paramdt, BlockList.dirt.instance());\r\n/* 46: 60 */ return;\r\n/* 47: */ }\r\n/* 48: 63 */ if (paramaqu.l(paramdt.up()) >= 9) {\r\n/* 49: 64 */ for (int i = 0; i < 4; i++)\r\n/* 50: */ {\r\n/* 51: 65 */ BlockPosition localdt = paramdt.offset(paramRandom.nextInt(3) - 1, paramRandom.nextInt(5) - 3, paramRandom.nextInt(3) - 1);\r\n/* 52: 66 */ BlockType localatr = paramaqu.getBlock(localdt.up()).getType();\r\n/* 53: 67 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 54: 68 */ if ((localbec.getType() == BlockList.dirt) && (localbec.getData(BlockDirt.a) == avd.a) && (paramaqu.l(localdt.up()) >= 4) && (localatr.getLightOpacity() <= 2)) {\r\n/* 55: 69 */ paramaqu.setBlock(localdt, BlockList.grass.instance());\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "protected cxl a(Block parambec)\r\n/* 11: */ {\r\n/* 12:237 */ LinkedHashMap localLinkedHashMap = Maps.newLinkedHashMap(parambec.b());\r\n/* 13: */ \r\n/* 14:239 */ String str1 = bbf.M.toString((Comparable)localLinkedHashMap.remove(bbf.M));\r\n/* 15:240 */ localLinkedHashMap.remove(bbf.b);\r\n/* 16: */ \r\n/* 17:242 */ String str2 = ((Boolean)parambec.getData(bbf.b)).booleanValue() ? \"all\" : \"normal\";\r\n/* 18:243 */ return new cxl(str1 + \"_double_slab\", str2);\r\n/* 19: */ }", "public void removeBranch() {\n if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeBranch()\");\n Via via=(Via)sipHeader;\n \n via.removeParameter(Via.BRANCH);\n }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "int regionSplitBits4DownSampledTable();", "@Override\n public void visitBlockStmt(BlockStmt stmt) {\n enterBlockStmt(stmt);\n super.visitBlockStmt(stmt);\n leaveBlockStmt(stmt);\n }", "@Test\n public void undoCkpointTest() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n final int trimPosition = tableSize / 2;\n final int snapshotPosition = trimPosition + 2;\n\n CountDownLatch latch = new CountDownLatch(1);\n\n t(1, () -> {\n\n CorfuRuntime rt = getNewRuntime();\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n\n // first, populate the map\n for (int i = 0; i < tableSize; i++) {\n tableA.insert(String.valueOf(i), (long) i);\n }\n\n // now, take a checkpoint and perform a prefix-trim\n MultiCheckpointWriter<PersistentCorfuTable<String, Long>> mcw1 = new MultiCheckpointWriter<>();\n mcw1.addMap(tableA);\n mcw1.appendCheckpoints(rt, author);\n\n // Trim the log\n Token token = new Token(rt.getLayoutView().getLayout().getEpoch(), trimPosition);\n rt.getAddressSpaceView().prefixTrim(token);\n rt.getAddressSpaceView().gc();\n rt.getAddressSpaceView().invalidateServerCaches();\n rt.getAddressSpaceView().invalidateClientCache();\n\n latch.countDown();\n } finally {\n rt.shutdown();\n }\n });\n\n AtomicBoolean trimExceptionFlag = new AtomicBoolean(false);\n\n // start a new runtime\n t(2, () -> {\n latch.await();\n CorfuRuntime rt = getNewRuntime();\n\n PersistentCorfuTable<String, Long> localm2A = openTable(rt, streamNameA);\n\n // start a snapshot TX at position snapshotPosition\n Token timestamp = new Token(0L, snapshotPosition - 1);\n rt.getObjectsView().TXBuild()\n .type(TransactionType.SNAPSHOT)\n .snapshot(timestamp)\n .build()\n .begin();\n\n // finally, instantiate the map for the snapshot and assert is has the right state\n try {\n localm2A.get(String.valueOf(0));\n } catch (TransactionAbortedException te) {\n assertThat(te.getAbortCause()).isEqualTo(AbortCause.TRIM);\n // this is an expected behavior!\n trimExceptionFlag.set(true);\n }\n\n try {\n if (!trimExceptionFlag.get()) {\n assertThat(localm2A.size())\n .isEqualTo(snapshotPosition);\n\n // check map positions 0..(snapshot-1)\n for (int i = 0; i < snapshotPosition; i++) {\n assertThat(localm2A.get(String.valueOf(i)))\n .isEqualTo(i);\n }\n\n // check map positions snapshot..(mapSize-1)\n for (int i = snapshotPosition; i < tableSize; i++) {\n assertThat(localm2A.get(String.valueOf(i))).isNull();\n }\n }\n } finally {\n rt.shutdown();\n }\n });\n }", "@Test\n public void testMetaBlocks() throws Exception {\n metablocks(\"none\");\n metablocks(\"gz\");\n }", "void combineAndCollectSnapshotBlocks(\n INode.ReclaimContext reclaimContext, INodeFile file, FileDiff removed) {\n BlockInfo[] removedBlocks = removed.getBlocks();\n if (removedBlocks == null) {\n FileWithSnapshotFeature sf = file.getFileWithSnapshotFeature();\n assert sf != null : \"FileWithSnapshotFeature is null\";\n if(sf.isCurrentFileDeleted())\n sf.collectBlocksAndClear(reclaimContext, file);\n return;\n }\n int p = getPrior(removed.getSnapshotId(), true);\n FileDiff earlierDiff = p == Snapshot.NO_SNAPSHOT_ID ? null : getDiffById(p);\n // Copy blocks to the previous snapshot if not set already\n if (earlierDiff != null) {\n earlierDiff.setBlocks(removedBlocks);\n }\n BlockInfo[] earlierBlocks =\n (earlierDiff == null ? new BlockInfoContiguous[]{} : earlierDiff.getBlocks());\n // Find later snapshot (or file itself) with blocks\n BlockInfo[] laterBlocks = findLaterSnapshotBlocks(removed.getSnapshotId());\n laterBlocks = (laterBlocks == null) ? file.getBlocks() : laterBlocks;\n // Skip blocks, which belong to either the earlier or the later lists\n int i = 0;\n for(; i < removedBlocks.length; i++) {\n if(i < earlierBlocks.length && removedBlocks[i] == earlierBlocks[i])\n continue;\n if(i < laterBlocks.length && removedBlocks[i] == laterBlocks[i])\n continue;\n break;\n }\n // Check if last block is part of truncate recovery\n BlockInfo lastBlock = file.getLastBlock();\n BlockInfo dontRemoveBlock = null;\n if (lastBlock != null && lastBlock.getBlockUCState().equals(\n HdfsServerConstants.BlockUCState.UNDER_RECOVERY)) {\n dontRemoveBlock = lastBlock.getUnderConstructionFeature()\n .getTruncateBlock();\n }\n // Collect the remaining blocks of the file, ignoring truncate block\n for (;i < removedBlocks.length; i++) {\n if(dontRemoveBlock == null || !removedBlocks[i].equals(dontRemoveBlock)) {\n reclaimContext.collectedBlocks().addDeleteBlock(removedBlocks[i]);\n }\n }\n }", "@Override\n\tpublic boolean isSlimeChunk()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}", "public boolean renderAsNormalBlock()\r\n/* 166: */ {\r\n/* 167:184 */ return false;\r\n/* 168: */ }", "public boolean //##78\n divideHirIntoBasicBlocks()\n {\n HirIterator lHirIterator;\n HIR lNode, // Current node.\n lParent; // Parent of lNode.\n coins.sym.Sym lSym;\n FlowAnalSym lFlowAnalSym;\n int lNodeIndex;\n Label lLabel, lSubpBlockLabel;\n BBlock lBBlock; // BBlock most recently created.\n IrList lLabelDefList;\n Subp lSubp;\n BlockStmt lSubpBody; // Block as the HIR body of subprogram.\n //## LabeledStmt lSubpBodyWithLabel;\n\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"divideHirIntoBasicBlocks \",\n flowRoot.subpUnderAnalysis.getName() + \" fIrIndexMin \" +\n fIrIndexMin + \" Max \" + fIrIndexMax); //##62\n recordBBlock(bblock(), 0); //Avoid IndexOutofRangeException\n //##62 BEGIN\n lSubp = fSubpDefinition.getSubpSym();\n fNodeCount = fIrIndexMax - fIrIndexMin + 1;\n fFlowIrLinkSize = fNodeCount + 1; //##62\n fFlowIrLink = new IR[fFlowIrLinkSize];\n lBBlock = null; // Record a basic block created.\n boolean lImmediatelyAfterJumpReturn = false; //##63\n //##62 END\n\n //-- Assign index number to symbols actually used in current\n // subprogram setting index to each node.\n // Make label reference list for labels that are explicitly\n // refered as jump target.\n for (lHirIterator = hirRoot.hir.hirIterator(fSubpDefinition.getHirBody());\n lHirIterator.hasNext(); ) {\n lNode = lHirIterator.next();\n if (lNode != null) {\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(6, \" lNode\", lNode.toStringShort());\n lSym = lNode.getSym();\n if (lSym != null) {\n if (lSym instanceof FlowAnalSym) {\n lFlowAnalSym = (FlowAnalSym)lSym;\n if (lFlowAnalSym.getIndex() == 0) {\n recordSym(lFlowAnalSym); //##62\n }else {\n if (fDbgLevel > 0)\n flow.dbg(6, \" \" + lFlowAnalSym.getName()+\n \":\" + lFlowAnalSym.getIndex());\n }\n }\n }\n\n //##63 BEG\n lNodeIndex = lNode.getIndex();\n //##78 BEGIN\n if (lNodeIndex < fIrIndexMin) {\n ioRoot.msgRecovered.put(5010, \"\\nNode index \" + lNodeIndex\n + \" should be greater or equal to \" + fIrIndexMin\n + \" in \" + fSubpDefinition.getSubpSym().getName()\n + \"\\n Skip the flow analysis and the optimization.\");\n return false;\n }\n //##78 END\n fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n if (lImmediatelyAfterJumpReturn &&\n (lNode.getOperator() != HIR.OP_LABELED_STMT)) {\n continue; // Control does not come here.\n }\n lImmediatelyAfterJumpReturn = false;\n //##63 END\n switch (lNode.getOperator()) {\n case HIR.OP_LABELED_STMT:\n lBBlock = bblock((LabeledStmt)lNode); // Create a basic block.\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; // Store again. //##65\n //## lSubp.addBBlock(lBBlock); // DELETE\n lLabelDefList = ((LabeledStmt)lNode).getLabelDefList();\n if (lLabelDefList != null) {\n for (Iterator lIterator = lLabelDefList.iterator();\n lIterator.hasNext(); ) { // Set link between HIR & Label.\n lLabel = ((coins.ir.hir.LabelDef)(lIterator.next())).getLabel();\n //##60 lLabel.setBBlock(lBBlock);\n flowRoot.fSubpFlow.setBBlock(lLabel, lBBlock); //##60\n }\n }\n lImmediatelyAfterJumpReturn = false;\n break;\n // begin\n case HIR.OP_CONTENTS:\n lParent = (HIR)lNode.getParent();\n if (lParent.getOperator() == HIR.OP_ASSIGN)\n lBBlock.setFlag(BBlock.HAS_PTR_ASSIGN, true);\n case HIR.OP_ARROW:\n case HIR.OP_ADDR:\n lBBlock.setFlag(BBlock.USE_PTR, true);\n break;\n case HIR.OP_QUAL:\n lBBlock.setFlag(BBlock.HAS_STRUCT_UNION, true);\n break;\n case HIR.OP_CALL:\n lBBlock.setFlag(BBlock.HAS_CALL, true);\n //##62 hasCallInSubp = true; //##62\n //##63 BEGIN\n fCallCount++; //##62\n fSubtreesContainingCall.add(lNode);\n for (HIR lHir = (HIR)lNode.getParent(); lHir != null;\n lHir = (HIR)lHir.getParent()) {\n fSubtreesContainingCall.add(lNode);\n }\n //##63 END\n break;\n //##62 BEGIN\n case HIR.OP_ASSIGN:\n fAssignCount++;\n break;\n case HIR.OP_JUMP:\n lLabel = ((JumpStmt)lNode).getLabel();\n //##62 lLabel.addToHirRefList((LabelNode)((JumpStmt)lNode).getChild1());\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_RETURN: //##63\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_SWITCH:\n SwitchStmt lSwitchStmt = (SwitchStmt)lNode;\n int lCaseCount = lSwitchStmt.getCaseCount();\n for (int i = 0; i < lCaseCount; i++) {\n lLabel = lSwitchStmt.getCaseLabel(i);\n //##62 if (lLabel != null)\n //##62 lLabel.addToHirRefList(lSwitchStmt.getCaseLabelNode(i));\n }\n //##62 lSwitchStmt.getDefaultLabel().addToHirRefList((LabelNode)((SwitchStmt)\n //##62 lNode).getDefaultLabelNode());\n //##62 END\n default:\n break;\n // end\n } // End of switch\n //##63 lNodeIndex = lNode.getIndex();\n //##60 fFlowIrLink[lNodeIndex - fIndexMin] =\n //##60 (FlowIrLinkCell)(new FlowIrLinkCellImpl(lNode, lBBlock, 0));\n //##63 fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n //##63 fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n } // End of if(lNode != null)\n }\n //##62 BEGIN\n fUsedSymCount = fSymExpCount;\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, lSubp.getName() +\n \" Number of\", \"Symbols:\" +\n fUsedSymCount + \" Nodes:\" + fNodeCount + \" \");\n fExpVectorBitCount = fUsedSymCount + 2; //##60\n fExpVectorWordCount = (fExpVectorBitCount + 63) / 64; //##60\n\n int lNodeCount = fIrIndexMax - fIrIndexMin;\n if (lNodeCount > fNodeCountLim1)\n fComplexity = 2;\n if (fSymExpCount > fSymCountLim1)\n fComplexity = 2;\n if (lNodeCount > fNodeCountLim2)\n fComplexity = 3;\n if (fSymExpCount > fSymCountLim2)\n fComplexity = 3;\n //##62 END\n if (fDbgLevel > 0) {\n //### fComplexity = 3; //###\n flowRoot.ioRoot.dbgFlow.print(1, \"\\n Node count \" +\n lNodeCount + \" BBlock count \" + getNumberOfBBlocks()+\n \" UsedSymCount \" + getUsedSymCount() + \" SymExpCount \" + getSymExpCount()\n + \"\\n AssignCount \" + getAssignCount()\n + \" CallCount \" + getCallCount()); //##62\n ioRoot.dbgFlow.print(1, \"\\nComplexity level of \",\n getSubpSym().getName() + \" is \" + fComplexity);\n if (fComplexity > 1)\n ioRoot.dbgFlow.print(1, \"\\n Simplify alias analysis.\");\n if (fComplexity > 2)\n ioRoot.dbgFlow.print(1, \"\\n Simplify data flow analysis.\");\n }\n setComputedFlag(CF_BBLOCK); //##60\n return true; //##78\n }", "@Override\n public void breakBlock(World world, int i, int j, int k, int lol, int meh) {\n byte byte0 = 4;\n int l = byte0 + 1;\n if (world.checkChunksExist(i - l, j - l, k - l, i + l, j + l, k + l)) {\n for (int i1 = -byte0; i1 <= byte0; i1++) {\n for (int j1 = -byte0; j1 <= byte0; j1++) {\n for (int k1 = -byte0; k1 <= byte0; k1++) {\n int l1 = world.getBlockId(i + i1, j + j1, k + k1);\n if (l1 != TropicraftMod.tropicLeaves.blockID) {\n continue;\n }\n int i2 = world.getBlockMetadata(i + i1, j + j1, k + k1);\n if ((i2 & 8) == 0) {\n world.setBlockMetadata(i + i1, j + j1, k + k1, i2 | 8);\n }\n }\n\n }\n\n }\n\n }\n }", "@Test (timeout=180000)\n public void testMissingRegionInfoQualifier() throws Exception {\n Connection connection = ConnectionFactory.createConnection(conf);\n TableName table = TableName.valueOf(\"testMissingRegionInfoQualifier\");\n try {\n setupTable(table);\n\n // Mess it up by removing the RegionInfo for one region.\n final List<Delete> deletes = new LinkedList<Delete>();\n Table meta = connection.getTable(TableName.META_TABLE_NAME, hbfsckExecutorService);\n MetaScanner.metaScan(connection, new MetaScanner.MetaScannerVisitor() {\n\n @Override\n public boolean processRow(Result rowResult) throws IOException {\n HRegionInfo hri = MetaTableAccessor.getHRegionInfo(rowResult);\n if (hri != null && !hri.getTable().isSystemTable()) {\n Delete delete = new Delete(rowResult.getRow());\n delete.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);\n deletes.add(delete);\n }\n return true;\n }\n\n @Override\n public void close() throws IOException {\n }\n });\n meta.delete(deletes);\n\n // Mess it up by creating a fake hbase:meta entry with no associated RegionInfo\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER, Bytes.toBytes(\"node1:60020\")));\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER, Bytes.toBytes(1362150791183L)));\n meta.close();\n\n HBaseFsck hbck = doFsck(conf, false);\n assertTrue(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n\n // fix reference file\n hbck = doFsck(conf, true);\n\n // check that reference file fixed\n assertFalse(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n } finally {\n cleanupTable(table);\n }\n connection.close();\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate boolean maybeSideTracked(Block block) {\n\t\tif (Material.LOG.equals(block.getType()) && block.getData() == 3) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void deleteSelected() {\r\n \t\tObject cells[] = graph.getSelectionCells();\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \r\n \t\t// If a cell is a blocking region avoid removing its edges and\r\n \t\t// select its element at the end of the removal process\r\n \t\tSet edges = new HashSet();\r\n \t\tSet<Object> select = new HashSet<Object>();\r\n \r\n \t\t// Set with all regions that can be deleted as its child were removed\r\n \t\tSet<Object> regions = new HashSet<Object>();\r\n \t\t// Set with all JmtCells that we are removing\r\n \t\tSet<Object> jmtCells = new HashSet<Object>();\r\n \r\n \t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t// for(int k=0; k<cells.length; k++){\r\n \t\t// if(cells[k] instanceof JmtEdge){\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)cells[k])))).SubOut();\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)cells[k])))).SubIn();\r\n \t\t// }\r\n \t\t//\r\n \t\t// }\r\n \t\tfor (int i = 0; i < cells.length; i++) {\r\n \t\t\tif (!(cells[i] instanceof BlockingRegion)) {\r\n \t\t\t\t// Adds edge for removal\r\n \t\t\t\tedges.addAll(DefaultGraphModel.getEdges(graphmodel, new Object[] { cells[i] }));\r\n \t\t\t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t\t\t// quando vado a eliminare un nodo, a cui collegato un arco,\r\n \t\t\t\t// vado ad incrementare o diminuire il contatore per il\r\n \t\t\t\t// pulsanteAGGIUSTATUTTO\r\n \t\t\t\t// Iterator iter = edges.iterator();\r\n \t\t\t\t// while (iter.hasNext()) {\r\n \t\t\t\t// Object next = iter.next();\r\n \t\t\t\t// if (next instanceof JmtEdge){\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)next)))).SubOut();\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)next)))).SubIn();\r\n \t\t\t\t// }\r\n \t\t\t\t//\r\n \t\t\t\t// }\r\n \t\t\t\t// Stores parents information and cell\r\n \t\t\t\tif (cells[i] instanceof JmtCell) {\r\n \t\t\t\t\tif (((JmtCell) cells[i]).getParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t\tregions.add(((JmtCell) cells[i]).getParent());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tjmtCells.add(cells[i]);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Adds node for selection\r\n \t\t\t\tObject[] nodes = graph.getDescendants(new Object[] { cells[i] });\r\n \t\t\t\tfor (Object node : nodes) {\r\n \t\t\t\t\tif (node instanceof JmtCell || node instanceof JmtEdge) {\r\n \t\t\t\t\t\tselect.add(node);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// Removes blocking region from data structure\r\n \t\t\t\tmodel.deleteBlockingRegion(((BlockingRegion) cells[i]).getKey());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tif (!edges.isEmpty()) {\r\n \t\t\tgraphmodel.remove(edges.toArray());\r\n \t\t}\r\n \t\t// removes cells from graph\r\n \t\tgraphmodel.remove(cells);\r\n \r\n \t\t// Checks if all children of a blocking region have been removed\r\n \t\tIterator<Object> it = regions.iterator();\r\n \t\twhile (it.hasNext()) {\r\n \t\t\tjmtCells.add(null);\r\n \t\t\tBlockingRegion region = (BlockingRegion) it.next();\r\n \t\t\tList child = region.getChildren();\r\n \t\t\tboolean empty = true;\r\n \t\t\tfor (int i = 0; i < child.size(); i++) {\r\n \t\t\t\tif (child.get(i) instanceof JmtCell && !jmtCells.contains(child.get(i))) {\r\n \t\t\t\t\tempty = false;\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (empty) {\r\n \t\t\t\tmodel.deleteBlockingRegion(region.getKey());\r\n \t\t\t\tgraphmodel.remove(new Object[] { region });\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Removes cells from data structure\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tmodel.deleteStation(((CellComponent) ((JmtCell) cell).getUserObject()).getKey());\r\n \t\t\t} else if (cell instanceof JmtEdge) {\r\n \t\t\t\tJmtEdge link = (JmtEdge) cell;\r\n \t\t\t\tmodel.setConnected(link.getSourceKey(), link.getTargetKey(), false);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// If no stations remains gray select and link buttons\r\n \t\tif (graph.getModel().getRootCount() == 0) {\r\n \t\t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\t\tsetConnect.setEnabled(false);\r\n \t\t\tsetSelect.setEnabled(false);\r\n \t\t}\r\n \r\n \t\t// Selects components from removed blocking regions\r\n \t\tif (select.size() > 0) {\r\n \t\t\tgraph.setSelectionCells(select.toArray());\r\n \t\t\t// Resets parent information of cells that changed parent\r\n \t\t\tit = select.iterator();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tObject next = it.next();\r\n \t\t\t\tif (next instanceof JmtCell) {\r\n \t\t\t\t\t((JmtCell) next).resetParent();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void BeforeClearSpaceBlockReplaced(BlockPos pos) {\n }", "@Test\r\n public void testCheckCollisionTankBlocks() {\r\n System.out.println(\"checkCollisionTankBlocks\");\r\n Rectangle r3 = new Rectangle(10, 10, 10, 10);\r\n boolean result = CollisionUtility.checkCollisionTankBlocks(r3);\r\n assertEquals(true, result);\r\n inblocks.remove(0);\r\n result = CollisionUtility.checkCollisionTankBlocks(r3);\r\n assertEquals(false, result);\r\n }", "@Override\n public String getToolDescription() {\n \treturn \"Removes thin connection between polygon bulges\";\n }", "private void exitSequence_mainRegion_State2__region0_State4() {\n\t\texitSequence_mainRegion_State2__region0_State4__region0();\n\t}", "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "@RegionEffects(\"writes test.D:Static\") // BAD\n public void n1() {\n s1 = 1;\n }", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "@Override\n public void undo() {\n node.toggleBoundaryMarker();\n }", "int regionSplitBits4PVTable();", "void trim(int startingBlockId, int count) throws IOException;", "@EventHandler(priority = EventPriority.LOW)\r\n\tpublic void onBlockBreak(BlockBreakEvent event) {\r\n\r\n\t\tif (bSignModule.SIGNS == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tBlock block = event.getBlock();\r\n\t\t\r\n\t\t// if its not a sign, we dont care.\r\n\t\tif (!(block.getType() == Material.SIGN || block.getType() == Material.WALL_SIGN || block.getType() == Material.SIGN_POST))\r\n\t\t\treturn;\r\n\t\t\r\n\t\t// find the sign at the location\r\n\t\tSign contextSign = null;\r\n\t\tfor (Sign sign : bSignModule.SIGNS) {\r\n\t\t\t\r\n\t\t\tif (sign == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tif (sign.getLocation().equals(block.getLocation())) {\r\n\t\t\t\tcontextSign = sign;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// not a bsign so carry on\r\n\t\tif (contextSign == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tString location = contextSign.getLocation().getX() + \",\" + contextSign.getLocation().getY() + \",\" + contextSign.getLocation().getZ() + \",\" + contextSign.getLocation().getWorld().getName();\r\n\t\t\r\n\t\tString addSign = \"DELETE FROM \" + bSignModule.DBPREFIX + \"bSign \" +\r\n\t\t\t\t\"WHERE Location = '\" +\r\n\t\t\t\tlocation + \r\n\t\t\t\t\"'\";\r\n\t\tbSignModule.DATABASE.query(addSign);\r\n\t\t\r\n\t\tbSignModule.SIGNS.remove(contextSign);\r\n\t\tbSignModule.sendMessage(\"bSign\", event.getPlayer(), bSignModule.MODULE.getLanguageValue(\"SIGN-REMOVED\"));\r\n\t\t\r\n\t}", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "public void delete(){\r\n\t\tblocks = null;\r\n\t\ttry {\r\n\t\t\tfinalize();\r\n\t\t} catch (Throwable e) {\t}\r\n\t}", "public interface NotificationsSectionSplitter {\n Pair<List<Object>, List<NotificationsEdgeFields>> mo469a(List<Object> list, List<NotificationsEdgeFields> list2);\n\n void mo470a(Bundle bundle);\n}", "@Test\n public void test131() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.legend();\n Block block1 = (Block)errorPage0.blockquote();\n Label label0 = (Label)errorPage0.del((Object) block1);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block1._isGeneratedId());\n }", "public void onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)\n {\n byte var6 = 0;\n byte var7 = 1;\n\n if (var1.getBlockId(var2 - 1, var3, var4) == this.blockID || var1.getBlockId(var2 + 1, var3, var4) == this.blockID)\n {\n var6 = 1;\n var7 = 0;\n }\n\n int var8;\n\n for (var8 = var3; var1.getBlockId(var2, var8 - 1, var4) == this.blockID; --var8)\n {\n ;\n }\n\n if (var1.getBlockId(var2, var8 - 1, var4) != Block.glowStone.blockID)\n {\n var1.setBlock(var2, var3, var4, 0);\n } else\n {\n int var9;\n\n for (var9 = 1; var9 < 4 && var1.getBlockId(var2, var8 + var9, var4) == this.blockID; ++var9)\n {\n ;\n }\n\n if (var9 == 3 && var1.getBlockId(var2, var8 + var9, var4) == Block.glowStone.blockID)\n {\n boolean var10 = var1.getBlockId(var2 - 1, var3, var4) == this.blockID || var1.getBlockId(var2 + 1, var3, var4) == this.blockID;\n boolean var11 = var1.getBlockId(var2, var3, var4 - 1) == this.blockID || var1.getBlockId(var2, var3, var4 + 1) == this.blockID;\n\n if (var10 && var11)\n {\n var1.setBlock(var2, var3, var4, 0);\n } else if ((var1.getBlockId(var2 + var6, var3, var4 + var7) != Block.glowStone.blockID || var1.getBlockId(var2 - var6, var3, var4 - var7) != this.blockID) && (var1.getBlockId(var2 - var6, var3, var4 - var7) != Block.glowStone.blockID || var1.getBlockId(var2 + var6, var3, var4 + var7) != this.blockID))\n {\n var1.setBlock(var2, var3, var4, 0);\n }\n } else\n {\n var1.setBlock(var2, var3, var4, 0);\n }\n }\n }" ]
[ "0.5944777", "0.579341", "0.57421225", "0.56517583", "0.5629622", "0.55517924", "0.5437441", "0.53983426", "0.5387401", "0.5382859", "0.53632617", "0.531905", "0.5306918", "0.52865577", "0.5275156", "0.52437586", "0.52303886", "0.52156067", "0.52070653", "0.5206413", "0.51749325", "0.51421636", "0.5094693", "0.50568986", "0.5056194", "0.5042229", "0.5041106", "0.5038845", "0.50356984", "0.5026143", "0.5005513", "0.50036675", "0.4978004", "0.49678835", "0.4964655", "0.49607664", "0.4954465", "0.4953248", "0.49521446", "0.49503902", "0.4937302", "0.49144334", "0.49049902", "0.49022198", "0.49014488", "0.49004656", "0.48939207", "0.48898548", "0.4889592", "0.48859522", "0.48779523", "0.48723134", "0.4870129", "0.48577216", "0.48483005", "0.4845994", "0.48459145", "0.4836821", "0.48285577", "0.48268464", "0.48221418", "0.48219743", "0.48158696", "0.4805625", "0.48056135", "0.48040274", "0.47863564", "0.47815284", "0.47799343", "0.47738054", "0.47697333", "0.47664845", "0.4761206", "0.4753477", "0.47531754", "0.47526863", "0.47517076", "0.47499636", "0.4745273", "0.4738073", "0.47373074", "0.4737113", "0.473614", "0.4734922", "0.47343084", "0.4733242", "0.4731334", "0.47309703", "0.47302908", "0.47249147", "0.4723657", "0.47222653", "0.47146854", "0.4711665", "0.47077608", "0.47001752", "0.46995267", "0.46961316", "0.46928555", "0.46910903", "0.4689279" ]
0.0
-1
/ JADX WARNING: Removed duplicated region for block: B:50:0x0099 A[SYNTHETIC, Splitter:B:50:0x0099] / JADX WARNING: Removed duplicated region for block: B:76:0x00cf A[SYNTHETIC, Splitter:B:76:0x00cf]
public static int Comparetxtinzip(ZipFile apkzf, String filepathinzip, File fileinfiledir) { String tmpzipstr; BufferedInputStream checkfbr; int result; BufferedInputStream checkzbr = null; BufferedInputStream checkfbr2 = null; ZipEntry cookie_entry = apkzf.getEntry(filepathinzip); if (cookie_entry == null) { try { Log.i(TAG, "no this file in zip"); if (checkzbr != null) { try { checkzbr.close(); if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e) { e.printStackTrace(); return ERROR_EXCEPTION; } } } catch (IOException e2) { e2.printStackTrace(); if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e3) { e3.printStackTrace(); return ERROR_EXCEPTION; } } return ERROR_EXCEPTION; } finally { if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e4) { e4.printStackTrace(); return ERROR_EXCEPTION; } } } } return ERROR_FILE_NOT_FOUND_INZIP; } catch (Exception e5) { e = e5; try { e.printStackTrace(); if (checkzbr != null) { try { checkzbr.close(); if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e6) { e6.printStackTrace(); return ERROR_EXCEPTION; } } } catch (IOException e7) { e7.printStackTrace(); if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e8) { e8.printStackTrace(); return ERROR_EXCEPTION; } } return ERROR_EXCEPTION; } finally { if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e9) { e9.printStackTrace(); return ERROR_EXCEPTION; } } } } return ERROR_EXCEPTION; } catch (Throwable th) { th = th; if (checkzbr != null) { try { checkzbr.close(); if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e10) { e10.printStackTrace(); return ERROR_EXCEPTION; } } } catch (IOException e11) { e11.printStackTrace(); if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e12) { e12.printStackTrace(); return ERROR_EXCEPTION; } } return ERROR_EXCEPTION; } finally { if (checkfbr2 != null) { try { checkfbr2.close(); } catch (IOException e13) { e13.printStackTrace(); return ERROR_EXCEPTION; } } } } throw th; } } } else { byte[] checkzipbuf = new byte[1024]; byte[] checkfilebuf = new byte[1024]; BufferedInputStream checkzbr2 = new BufferedInputStream(apkzf.getInputStream(cookie_entry)); try { tmpzipstr = new String(checkzipbuf).substring(0, checkzbr2.read(checkzipbuf)); checkfbr = new BufferedInputStream(new FileInputStream(fileinfiledir)); } catch (Exception e14) { e = e14; checkzbr = checkzbr2; e.printStackTrace(); if (checkzbr != null) { } return ERROR_EXCEPTION; } catch (Throwable th2) { th = th2; checkzbr = checkzbr2; if (checkzbr != null) { } throw th; } try { if (new String(checkfilebuf).substring(0, checkfbr.read(checkfilebuf)).equals(tmpzipstr)) { result = 1; } else { result = 0; } if (checkzbr2 != null) { try { checkzbr2.close(); if (checkfbr != null) { try { checkfbr.close(); } catch (IOException e15) { e15.printStackTrace(); BufferedInputStream bufferedInputStream = checkfbr; BufferedInputStream bufferedInputStream2 = checkzbr2; return ERROR_EXCEPTION; } } } catch (IOException e16) { e16.printStackTrace(); if (checkfbr != null) { try { checkfbr.close(); } catch (IOException e17) { e17.printStackTrace(); BufferedInputStream bufferedInputStream3 = checkfbr; BufferedInputStream bufferedInputStream4 = checkzbr2; return ERROR_EXCEPTION; } } BufferedInputStream bufferedInputStream5 = checkfbr; BufferedInputStream bufferedInputStream6 = checkzbr2; return ERROR_EXCEPTION; } finally { if (checkfbr != null) { try { checkfbr.close(); } catch (IOException e18) { e18.printStackTrace(); BufferedInputStream bufferedInputStream7 = checkfbr; BufferedInputStream bufferedInputStream8 = checkzbr2; return ERROR_EXCEPTION; } } } } BufferedInputStream bufferedInputStream9 = checkfbr; BufferedInputStream bufferedInputStream10 = checkzbr2; return result; } catch (Exception e19) { e = e19; checkfbr2 = checkfbr; checkzbr = checkzbr2; } catch (Throwable th3) { th = th3; checkfbr2 = checkfbr; checkzbr = checkzbr2; if (checkzbr != null) { } throw th; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void reportSplit(HRegionInfo oldRegion, HRegionInfo newRegionA,\n HRegionInfo newRegionB) {\n \n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_SPLIT, oldRegion,\n (oldRegion.getRegionNameAsString() + \" split; daughters: \" +\n newRegionA.getRegionNameAsString() + \", \" +\n newRegionB.getRegionNameAsString()).getBytes()));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionA));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionB));\n }", "@Test (timeout=180000)\n public void testValidLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n // TODO: fixHdfsHoles does not work against splits, since the parent dir lingers on\n // for some time until children references are deleted. HBCK erroneously sees this as\n // overlapping regions\n HBaseFsck hbck = doFsck(\n conf, true, true, false, false, false, true, true, true, false, false, false, null);\n assertErrors(hbck, new ERROR_CODE[] {}); //no LINGERING_SPLIT_PARENT reported\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "@Test (timeout=180000)\n public void testLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(\"B\");\n\n // Delete one region from meta, but not hdfs, unassign it.\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, false);\n\n // Create a new meta entry to fake it as a split parent.\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n HRegionInfo a = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"B\"), Bytes.toBytes(\"BM\"));\n HRegionInfo b = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"BM\"), Bytes.toBytes(\"C\"));\n\n hri.setOffline(true);\n hri.setSplit(true);\n\n MetaTableAccessor.addRegionToMeta(meta, hri, a, b);\n meta.close();\n admin.flush(TableName.META_TABLE_NAME);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // regular repair cannot fix lingering split parent\n hbck = doFsck(conf, true);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN });\n assertFalse(hbck.shouldRerun());\n hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // fix lingering split parent\n hbck = new HBaseFsck(conf, hbfsckExecutorService);\n hbck.connect();\n hbck.setDisplayFullReport(); // i.e. -details\n hbck.setTimeLag(0);\n hbck.setFixSplitParents(true);\n hbck.onlineHbck();\n assertTrue(hbck.shouldRerun());\n hbck.close();\n\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITA_QUALIFIER).isEmpty());\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITB_QUALIFIER).isEmpty());\n admin.flush(TableName.META_TABLE_NAME);\n\n // fix other issues\n doFsck(conf, true);\n\n // check that all are fixed\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@Test (timeout=180000)\n public void testDupeRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeRegion\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"B\"));\n\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n // Yikes! The assignment manager can't tell between diff between two\n // different regions with the same start/endkeys since it doesn't\n // differentiate on ts/regionId! We actually need to recheck\n // deployments!\n while (findDeployedHSI(getDeployedHRIs((HBaseAdmin) admin), hriDupe) == null) {\n Thread.sleep(250);\n }\n\n LOG.debug(\"Finished assignment of dupe region\");\n\n // TODO why is dupe region different from dupe start keys?\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS});\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows()); // seems like the \"bigger\" region won.\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "@Test (timeout=180000)\n public void testDegenerateRegions() throws Exception {\n TableName table = TableName.valueOf(\"tableDegenerateRegions\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"B\"), Bytes.toBytes(\"B\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf,false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DEGENERATE_REGION, ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS });\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "public void handlesBlockingRegionDrag() {\r\n \t\tObject[] cells = graph.getDescendants(graph.getSelectionCells());\r\n \t\t// Put cells not in a blocking region to back\r\n \t\tHashSet<Object> putBack = new HashSet<Object>();\r\n \t\tfor (Object cell2 : cells) {\r\n \t\t\tif (cell2 instanceof JmtCell && ((JmtCell) cell2).parentChanged()) {\r\n \t\t\t\t// This cell was moved in, out or between blocking regions\r\n \t\t\t\tJmtCell cell = (JmtCell) cell2;\r\n \t\t\t\tObject key = ((CellComponent) cell.getUserObject()).getKey();\r\n \t\t\t\tObject oldRegionKey, newRegionKey;\r\n \t\t\t\tif (!(cell.getParent() instanceof BlockingRegion)) {\r\n \t\t\t\t\t// Object removed from blocking region\r\n \t\t\t\t\tputBack.add(cell2);\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Allow adding of removed objects to a new blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(true);\r\n \t\t\t\t} else if (cell.getPrevParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t// Object changed blocking region\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tmodel.addRegionStation(newRegionKey, key);\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// Object added to a blocking region\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tif (!model.addRegionStation(newRegionKey, key)) {\r\n \t\t\t\t\t\t// object cannot be added to blocking region (for\r\n \t\t\t\t\t\t// example it's a source)\r\n \t\t\t\t\t\tcell.removeFromParent();\r\n \t\t\t\t\t\tgraph.getModel().insert(new Object[] { cell }, null, null, null, null);\r\n \t\t\t\t\t\tputBack.add(cell);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Doesn't allow adding of selected objects to a new\r\n \t\t\t\t\t// blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(false);\r\n \t\t\t\t}\r\n \t\t\t\t// Resets parent for this cell\r\n \t\t\t\tcell.resetParent();\r\n \t\t\t}\r\n \t\t\t// Avoid insertion of a blocking region in an other\r\n \t\t\telse if (cell2 instanceof BlockingRegion) {\r\n \t\t\t\tBlockingRegion region = (BlockingRegion) cell2;\r\n \t\t\t\tif (region.getParent() != null) {\r\n \t\t\t\t\tregion.removeFromParent();\r\n \t\t\t\t\tgraph.getModel().insert(new Object[] { region }, null, null, null, null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Puts cells removed from blocking regiont on background\r\n \t\tgraph.getModel().toBack(putBack.toArray());\r\n \t}", "public void cleanupOldBlocks (long threshTime) ;", "@Test(timeout=75000)\n public void testSplitDaughtersNotInMeta() throws Exception {\n TableName table = TableName.valueOf(\"testSplitdaughtersNotInMeta\");\n Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n HRegionInfo hri = location.getRegionInfo();\n\n // Disable CatalogJanitor to prevent it from cleaning up the parent region\n // after split.\n admin.enableCatalogJanitor(false);\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n PairOfSameType<HRegionInfo> daughters =\n MetaTableAccessor.getDaughterRegions(meta.get(new Get(regionName)));\n\n // Delete daughter regions from meta, but not hdfs, unassign it.\n Map<HRegionInfo, ServerName> hris = tbl.getRegionLocations();\n undeployRegion(connection, hris.get(daughters.getFirst()), daughters.getFirst());\n undeployRegion(connection, hris.get(daughters.getSecond()), daughters.getSecond());\n\n List<Delete> deletes = new ArrayList<>();\n deletes.add(new Delete(daughters.getFirst().getRegionName()));\n deletes.add(new Delete(daughters.getSecond().getRegionName()));\n meta.delete(deletes);\n\n // Remove daughters from regionStates\n RegionStates regionStates = TEST_UTIL.getMiniHBaseCluster().getMaster().\n getAssignmentManager().getRegionStates();\n regionStates.deleteRegion(daughters.getFirst());\n regionStates.deleteRegion(daughters.getSecond());\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN }); //no LINGERING_SPLIT_PARENT\n\n // now fix it. The fix should not revert the region split, but add daughters to META\n hbck = doFsck(\n conf, true, true, false, false, false, false, false, false, false, false, false, null);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN });\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false)); //should be fixed by now\n } finally {\n admin.enableCatalogJanitor(true);\n meta.close();\n cleanupTable(table);\n }\n }", "protected abstract void splitBAMs();", "@Test (timeout=180000)\n public void testSidelineOverlapRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"testSidelineOverlapRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating an overlap\n MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();\n HMaster master = cluster.getMaster();\n HRegionInfo hriOverlap1 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"AB\"));\n master.assignRegion(hriOverlap1);\n master.getAssignmentManager().waitForAssignment(hriOverlap1);\n HRegionInfo hriOverlap2 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"AB\"), Bytes.toBytes(\"B\"));\n master.assignRegion(hriOverlap2);\n master.getAssignmentManager().waitForAssignment(hriOverlap2);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS, ERROR_CODE.OVERLAP_IN_REGION_CHAIN});\n assertEquals(3, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // mess around the overlapped regions, to trigger NotServingRegionException\n Multimap<byte[], HbckInfo> overlapGroups = hbck.getOverlapGroups(table);\n ServerName serverName = null;\n byte[] regionName = null;\n for (HbckInfo hbi: overlapGroups.values()) {\n if (\"A\".equals(Bytes.toString(hbi.getStartKey()))\n && \"B\".equals(Bytes.toString(hbi.getEndKey()))) {\n regionName = hbi.getRegionName();\n\n // get an RS not serving the region to force bad assignment info in to META.\n int k = cluster.getServerWith(regionName);\n for (int i = 0; i < 3; i++) {\n if (i != k) {\n HRegionServer rs = cluster.getRegionServer(i);\n serverName = rs.getServerName();\n break;\n }\n }\n\n HBaseFsckRepair.closeRegionSilentlyAndWait((HConnection) connection,\n cluster.getRegionServer(k).getServerName(), hbi.getHdfsHRI());\n admin.offline(regionName);\n break;\n }\n }\n\n assertNotNull(regionName);\n assertNotNull(serverName);\n try (Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService)) {\n Put put = new Put(regionName);\n put.add(HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER,\n Bytes.toBytes(serverName.getHostAndPort()));\n meta.put(put);\n }\n\n // fix the problem.\n HBaseFsck fsck = new HBaseFsck(conf, hbfsckExecutorService);\n fsck.connect();\n fsck.setDisplayFullReport(); // i.e. -details\n fsck.setTimeLag(0);\n fsck.setFixAssignments(true);\n fsck.setFixMeta(true);\n fsck.setFixHdfsHoles(true);\n fsck.setFixHdfsOverlaps(true);\n fsck.setFixHdfsOrphans(true);\n fsck.setFixVersionFile(true);\n fsck.setSidelineBigOverlaps(true);\n fsck.setMaxMerge(2);\n fsck.onlineHbck();\n fsck.close();\n\n // verify that overlaps are fixed, and there are less rows\n // since one region is sidelined.\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertTrue(ROWKEYS.length > countRows());\n } finally {\n cleanupTable(table);\n }\n }", "int numberOfBlocksToRemove();", "public abstract void removeBlock();", "public int numberOfBlocksToRemove() {\r\n return 105;\r\n }", "@Test\n public void testSplitOnCreatedSegment() throws Exception {\n InternalKnowledgeBase kbase1 = buildKnowledgeBase(\"r1\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\");\n kbase1.addPackages( buildKnowledgePackage(\"r2\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r3\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r4\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \\n\") );\n\n InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession());\n List list = new ArrayList();\n wm.setGlobal(\"list\", list);\n\n wm.insert(new X(1));\n wm.insert(new X(2));\n wm.insert(new X(3));\n wm.flushPropagations();\n\n RuleTerminalNode rtn1 = getRtn( \"org.kie.r1\", kbase1 );\n\n PathMemory pm1 = wm.getNodeMemory(rtn1);\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(2);\n SegmentMemory[] smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(4);\n assertThat(smems[0]).isNull();\n assertThat(smems[2]).isNull();\n assertThat(smems[3]).isNull();\n SegmentMemory sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n\n kbase1.addPackages( buildKnowledgePackage(\"r5\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(3;)\\n\") );\n wm.fireAllRules();\n\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(6);\n smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(5);\n assertThat(smems[0]).isNull();\n assertThat(smems[3]).isNull();\n assertThat(smems[4]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n\n RuleTerminalNode rtn5 = getRtn( \"org.kie.r5\", kbase1 );\n PathMemory pm5 = wm.getNodeMemory(rtn5);\n assertThat(pm5.getLinkedSegmentMask()).isEqualTo(6);\n\n smems = pm5.getSegmentMemories();\n assertThat(smems.length).isEqualTo(3);\n assertThat(smems[0]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n }", "@Test\n\tpublic void testForwardNonFrameBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642114, PositionType.ZERO_BASED),\n\t\t\t\t\"TAAACA\", \"GTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.691-3_693delinsGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Trp231Val\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_ACCEPTOR),\n\t\t\t\tannotation1.effects);\n\n\t\t// deletion of three codons, insertion of one\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642126, PositionType.ZERO_BASED),\n\t\t\t\t\"GTGGTTCAA\", \"ACC\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(2, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.700_708delinsACC\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Val234_Gln236delinsThr\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION), annotation2.effects);\n\n\t\t// deletion of three codons, insertion of one, includes truncation of replacement ref from the right\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642134, PositionType.ZERO_BASED),\n\t\t\t\t\"AGTGGAGGAT\", \"CTT\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(2, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.708_716delinsCT\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Gln236Hisfs*16\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION), annotation3.effects);\n\t}", "private void split(Map<Integer, SortedSet> invariants, Partition partition) {\n int nonEmptyInvariants = invariants.keySet().size();\n if (nonEmptyInvariants > 1) {\n List<Integer> invariantKeys = new ArrayList<Integer>();\n invariantKeys.addAll(invariants.keySet());\n partition.removeCell(currentBlockIndex);\n int k = currentBlockIndex;\n if (splitOrder == SplitOrder.REVERSE) {\n Collections.sort(invariantKeys);\n } else {\n Collections.sort(invariantKeys, Collections.reverseOrder());\n }\n for (int h : invariantKeys) {\n SortedSet setH = invariants.get(h);\n// System.out.println(\"adding block \" + setH + \" at \" + k + \" h=\" + h);\n partition.insertCell(k, setH);\n blocksToRefine.add(setH);\n k++;\n \n }\n // skip over the newly added blocks\n currentBlockIndex += nonEmptyInvariants - 1;\n }\n }", "@Test (timeout=180000)\n public void testRegionHole() throws Exception {\n TableName table =\n TableName.valueOf(\"tableRegionHole\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.HOLE_IN_REGION_CHAIN});\n // holes are separate from overlap groups\n assertEquals(0, hbck.getOverlapGroups(table).size());\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length - 2 , countRows()); // lost a region so lost a row\n } finally {\n cleanupTable(table);\n }\n }", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "@Override\n \tpublic void regionsRemoved(RegionEvent evt) {\n \t\t\n \t}", "public void collapseBlocks() {\n // Create it if it's null\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n // Get the vertex to block lookup\n Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n // Go through the entities and accumulate the positions\n Map<MyGraph,Double> x_sum = new HashMap<MyGraph,Double>(), y_sum = new HashMap<MyGraph,Double>();\n Iterator<String> it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity)) {\n\t Iterator<MyGraph> it_mg = v_to_b.get(entity).iterator();\n\t while (it_mg.hasNext()) {\n\t MyGraph mg = it_mg.next();\n\t if (x_sum.containsKey(mg) == false) { x_sum.put(mg,0.0); y_sum.put(mg,0.0); }\n\t x_sum.put(mg,x_sum.get(mg)+pt.getX()); y_sum.put(mg,y_sum.get(mg)+pt.getY());\n\t }\n } else System.err.println(\"Vertex To Block Lookup missing \\\"\" + entity + \"\\\"\");\n }\n // Now position those entities that aren't cut vertices at the center of the graph\n it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity) && bcc.getCutVertices().contains(entity) == false) {\n MyGraph mg = v_to_b.get(entity).iterator().next();\n\t entity_to_wxy.put(entity, new Point2D.Double(x_sum.get(mg)/mg.getNumberOfEntities(),y_sum.get(mg)/mg.getNumberOfEntities()));\n\t transform(entity);\n\t}\n }\n // Re-render\n zoomToFit(); repaint();\n }\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "@Test(timeout=120000)\n public void testMissingFirstRegion() throws Exception {\n TableName table = TableName.valueOf(\"testMissingFirstRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"\"), Bytes.toBytes(\"A\"), true,\n true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.FIRST_REGION_STARTKEY_NOT_EMPTY });\n // fix hole\n doFsck(conf, true);\n // check that hole fixed\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n }\n }", "private void repairGenome() {\n if (checkGenome(this.code)) {\n return;\n }\n int[] counters = new int[8];\n for (int c : code) { counters[c]++; }\n for (int i = 0; i < 8; ++i) {\n if (counters[i] == 0) {\n while (true) {\n int newPos = r.nextInt(GENOME_SIZE);\n if (counters[this.code[newPos]] > 1) {\n counters[this.code[newPos]]--;\n this.code[newPos] = i;\n break;\n }\n }\n }\n }\n }", "void transform() {\n\t\tint oldline, newline;\n\t\tint oldmax = oldinfo.maxLine + 2; /* Count pseudolines at */\n\t\tint newmax = newinfo.maxLine + 2; /* ..front and rear of file */\n\n\t\tfor (oldline = 0; oldline < oldmax; oldline++)\n\t\t\toldinfo.other[oldline] = -1;\n\t\tfor (newline = 0; newline < newmax; newline++)\n\t\t\tnewinfo.other[newline] = -1;\n\n\t\tscanunique(); /* scan for lines used once in both files */\n\t\tscanafter(); /* scan past sure-matches for non-unique blocks */\n\t\tscanbefore(); /* scan backwards from sure-matches */\n\t\tscanblocks(); /* find the fronts and lengths of blocks */\n\t}", "@Test (timeout=180000)\n public void testMissingRegionInfoQualifier() throws Exception {\n Connection connection = ConnectionFactory.createConnection(conf);\n TableName table = TableName.valueOf(\"testMissingRegionInfoQualifier\");\n try {\n setupTable(table);\n\n // Mess it up by removing the RegionInfo for one region.\n final List<Delete> deletes = new LinkedList<Delete>();\n Table meta = connection.getTable(TableName.META_TABLE_NAME, hbfsckExecutorService);\n MetaScanner.metaScan(connection, new MetaScanner.MetaScannerVisitor() {\n\n @Override\n public boolean processRow(Result rowResult) throws IOException {\n HRegionInfo hri = MetaTableAccessor.getHRegionInfo(rowResult);\n if (hri != null && !hri.getTable().isSystemTable()) {\n Delete delete = new Delete(rowResult.getRow());\n delete.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);\n deletes.add(delete);\n }\n return true;\n }\n\n @Override\n public void close() throws IOException {\n }\n });\n meta.delete(deletes);\n\n // Mess it up by creating a fake hbase:meta entry with no associated RegionInfo\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER, Bytes.toBytes(\"node1:60020\")));\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER, Bytes.toBytes(1362150791183L)));\n meta.close();\n\n HBaseFsck hbck = doFsck(conf, false);\n assertTrue(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n\n // fix reference file\n hbck = doFsck(conf, true);\n\n // check that reference file fixed\n assertFalse(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n } finally {\n cleanupTable(table);\n }\n connection.close();\n }", "@Test\n public void undoCkpointTest() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n final int trimPosition = tableSize / 2;\n final int snapshotPosition = trimPosition + 2;\n\n CountDownLatch latch = new CountDownLatch(1);\n\n t(1, () -> {\n\n CorfuRuntime rt = getNewRuntime();\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n\n // first, populate the map\n for (int i = 0; i < tableSize; i++) {\n tableA.insert(String.valueOf(i), (long) i);\n }\n\n // now, take a checkpoint and perform a prefix-trim\n MultiCheckpointWriter<PersistentCorfuTable<String, Long>> mcw1 = new MultiCheckpointWriter<>();\n mcw1.addMap(tableA);\n mcw1.appendCheckpoints(rt, author);\n\n // Trim the log\n Token token = new Token(rt.getLayoutView().getLayout().getEpoch(), trimPosition);\n rt.getAddressSpaceView().prefixTrim(token);\n rt.getAddressSpaceView().gc();\n rt.getAddressSpaceView().invalidateServerCaches();\n rt.getAddressSpaceView().invalidateClientCache();\n\n latch.countDown();\n } finally {\n rt.shutdown();\n }\n });\n\n AtomicBoolean trimExceptionFlag = new AtomicBoolean(false);\n\n // start a new runtime\n t(2, () -> {\n latch.await();\n CorfuRuntime rt = getNewRuntime();\n\n PersistentCorfuTable<String, Long> localm2A = openTable(rt, streamNameA);\n\n // start a snapshot TX at position snapshotPosition\n Token timestamp = new Token(0L, snapshotPosition - 1);\n rt.getObjectsView().TXBuild()\n .type(TransactionType.SNAPSHOT)\n .snapshot(timestamp)\n .build()\n .begin();\n\n // finally, instantiate the map for the snapshot and assert is has the right state\n try {\n localm2A.get(String.valueOf(0));\n } catch (TransactionAbortedException te) {\n assertThat(te.getAbortCause()).isEqualTo(AbortCause.TRIM);\n // this is an expected behavior!\n trimExceptionFlag.set(true);\n }\n\n try {\n if (!trimExceptionFlag.get()) {\n assertThat(localm2A.size())\n .isEqualTo(snapshotPosition);\n\n // check map positions 0..(snapshot-1)\n for (int i = 0; i < snapshotPosition; i++) {\n assertThat(localm2A.get(String.valueOf(i)))\n .isEqualTo(i);\n }\n\n // check map positions snapshot..(mapSize-1)\n for (int i = snapshotPosition; i < tableSize; i++) {\n assertThat(localm2A.get(String.valueOf(i))).isNull();\n }\n }\n } finally {\n rt.shutdown();\n }\n });\n }", "public LinearGenomeShrinkMutation(){\n\t\tnumberGenesToRemove = 1;\n\t}", "void combineAndCollectSnapshotBlocks(\n INode.ReclaimContext reclaimContext, INodeFile file, FileDiff removed) {\n BlockInfo[] removedBlocks = removed.getBlocks();\n if (removedBlocks == null) {\n FileWithSnapshotFeature sf = file.getFileWithSnapshotFeature();\n assert sf != null : \"FileWithSnapshotFeature is null\";\n if(sf.isCurrentFileDeleted())\n sf.collectBlocksAndClear(reclaimContext, file);\n return;\n }\n int p = getPrior(removed.getSnapshotId(), true);\n FileDiff earlierDiff = p == Snapshot.NO_SNAPSHOT_ID ? null : getDiffById(p);\n // Copy blocks to the previous snapshot if not set already\n if (earlierDiff != null) {\n earlierDiff.setBlocks(removedBlocks);\n }\n BlockInfo[] earlierBlocks =\n (earlierDiff == null ? new BlockInfoContiguous[]{} : earlierDiff.getBlocks());\n // Find later snapshot (or file itself) with blocks\n BlockInfo[] laterBlocks = findLaterSnapshotBlocks(removed.getSnapshotId());\n laterBlocks = (laterBlocks == null) ? file.getBlocks() : laterBlocks;\n // Skip blocks, which belong to either the earlier or the later lists\n int i = 0;\n for(; i < removedBlocks.length; i++) {\n if(i < earlierBlocks.length && removedBlocks[i] == earlierBlocks[i])\n continue;\n if(i < laterBlocks.length && removedBlocks[i] == laterBlocks[i])\n continue;\n break;\n }\n // Check if last block is part of truncate recovery\n BlockInfo lastBlock = file.getLastBlock();\n BlockInfo dontRemoveBlock = null;\n if (lastBlock != null && lastBlock.getBlockUCState().equals(\n HdfsServerConstants.BlockUCState.UNDER_RECOVERY)) {\n dontRemoveBlock = lastBlock.getUnderConstructionFeature()\n .getTruncateBlock();\n }\n // Collect the remaining blocks of the file, ignoring truncate block\n for (;i < removedBlocks.length; i++) {\n if(dontRemoveBlock == null || !removedBlocks[i].equals(dontRemoveBlock)) {\n reclaimContext.collectedBlocks().addDeleteBlock(removedBlocks[i]);\n }\n }\n }", "@Override\r\n public int numberOfBlocksToRemove() {\r\n return blocks().size();\r\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 }", "void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }", "@Test\n public void testColocatedPartitionedRegion_NoFullPath() throws Throwable {\n createCacheInAllVms();\n redundancy = 0;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n\n regionName = \"A\";\n colocatedWith = null;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"B\";\n colocatedWith = \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"C\";\n colocatedWith = \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"D\";\n colocatedWith = \"B\";\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"E\";\n colocatedWith = \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"F\";\n colocatedWith = \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"G\";\n colocatedWith = \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"H\";\n colocatedWith = \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"I\";\n colocatedWith = \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"J\";\n colocatedWith = \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"K\";\n colocatedWith = \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"L\";\n colocatedWith = \"E\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"M\";\n colocatedWith = \"F\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"N\";\n colocatedWith = \"G\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"O\";\n colocatedWith = \"I\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"A\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"D\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"H\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"B\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"K\"));\n }", "@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}", "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "private void collapseIgloo() {\n blocks.sort(Comparator.comparing(a -> a.center.getY()));\n\n double minDistance, distance;\n Point3D R = new Point3D(0, -1, 0);\n for (int i = 0; i < blocks.size(); i++) {\n minDistance = Double.MAX_VALUE;\n for (int j = i - 1; j >= 0; j--) {\n if (boundingSpheresIntersect(blocks.get(i), blocks.get(j))) {\n distance = minDistance(blocks.get(i), blocks.get(j), R);\n if (distance < minDistance) {\n minDistance = distance;\n }\n }\n }\n if (minDistance != Double.MAX_VALUE) {\n blocks.get(i).move(R.multiply(minDistance));\n }\n }\n }", "@Test\n public void testSingleBlock()\n {\n BlockMetadata.FileBlockMetadata block = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, 0L, 0L,\n testMeta.dataFile.length(), true, -1, testMeta.dataFile.length());\n\n testMeta.blockReader.beginWindow(1);\n testMeta.blockReader.blocksMetadataInput.process(block);\n testMeta.blockReader.endWindow();\n\n List<Object> actualMessages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), actualMessages.size());\n\n for (int i = 0; i < actualMessages.size(); i++) {\n byte[] msg = (byte[])actualMessages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public void RemoveBlock(int NumOfB,ArrayList<Block> blocks,int[] i,int[] j){\r\n try {\r\n //2 blocks\r\n if (NumOfB == 2) {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[1], j[1]), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[0], j[0]), blocks.get(0).getTypeOfBlock());\r\n }\r\n //3 blocks\r\n else {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n map[i[2]][j[2]] = '0';\r\n blockList.RemovBlock(blocks.get(2), blocks.get(2).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(1), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(0), blocks.get(0).getTypeOfBlock());\r\n }\r\n gamePage.Sounds(2);//remove sound\r\n MoveBlock(2);//check if there is block will move down\r\n }catch (ArrayIndexOutOfBoundsException e) {\r\n\r\n }\r\n }", "int regionSplitBits4DownSampledTable();", "int regionSplitBits4PVTable();", "void removeExistingGlue() {\r\n\t\tfor (int i = outputStream.size() - 1; i >= 0; i--) {\r\n\t\t\tRTObject c = outputStream.get(i);\r\n\t\t\tif (c instanceof Glue) {\r\n\t\t\t\toutputStream.remove(i);\r\n\t\t\t} else if (c instanceof ControlCommand) { // e.g.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// BeginString\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toutputStreamDirty();\r\n\t}", "@Test\n public void testColocatedPartitionedRegion() throws Throwable {\n createCacheInAllVms();\n redundancy = 0;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n\n regionName = \"A\";\n colocatedWith = null;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"B\";\n colocatedWith = SEPARATOR + \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"C\";\n colocatedWith = SEPARATOR + \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"D\";\n colocatedWith = SEPARATOR + \"B\";\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"E\";\n colocatedWith = SEPARATOR + \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"F\";\n colocatedWith = SEPARATOR + \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"G\";\n colocatedWith = SEPARATOR + \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"H\";\n colocatedWith = SEPARATOR + \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"I\";\n colocatedWith = SEPARATOR + \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"J\";\n colocatedWith = SEPARATOR + \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"K\";\n colocatedWith = SEPARATOR + \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"L\";\n colocatedWith = SEPARATOR + \"E\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"M\";\n colocatedWith = SEPARATOR + \"F\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"N\";\n colocatedWith = SEPARATOR + \"G\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"O\";\n colocatedWith = SEPARATOR + \"I\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"A\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"D\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"H\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"B\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"K\"));\n }", "public void remove( int position )\n {\n caller = \"remove\";\n byte byteSize = memoryPool[position];\n Integer size = (int)byteSize;\n // remove the record starting at the given position\n for ( int i = 0; i < size; i++ )\n {\n memoryPool[position + i] = 0;\n }\n\n findBlock( position );\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( position, size );\n freeBlockList.add( freeBlock );\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n int key = (Integer)keyArray[0];\n\n caller = \"check\";\n int currentValue = freeBlockList.getCurrentElement().get( key );\n int mergePoint1 = position + currentValue;\n int rightKeyMatch = findBlock( mergePoint1 );\n\n int mergePoint2 = position;\n int leftKeyMatch = -1;\n int priorValue = -1;\n int key2 = -1;\n if ( 1==1)\n {\n findBlock(mergePoint2);\n freeBlockList.previous();\n if ( !( freeBlockList.getCurrent().equals( freeBlockList.getHead() ) )\n && !( freeBlockList.getCurrent().equals( freeBlockList.getTail() ) ) &&\n !( freeBlockList.getCurrent().equals( null )))\n {\n Object[] keyArray2 =\n freeBlockList.getCurrentElement().keySet().toArray();\n key2 = (Integer)keyArray2[0];\n priorValue = freeBlockList.getCurrentElement().get( key2 );\n leftKeyMatch = key2 + priorValue;\n }\n\n }\n\n if ( rightKeyMatch == mergePoint1 )\n {\n findBlock(mergePoint1);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get( rightKeyMatch );\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n position,\n currentValue + rightValue );\n //if()\n }\n if(leftKeyMatch == mergePoint2) {\n findBlock(mergePoint2);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get(leftKeyMatch);\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n key2,\n priorValue + rightValue );\n }\n\n }", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "public void Inverse_macroblock_partition_scanning_process(){\n\t\tx=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,0);\n\t\ty=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,1);\n\n\t}", "boolean splitAndInsert(T t, Pair<String,LeafNode> ln){\n\n int splitTimes=0;\n\n Interval[] intervals = ln.second().getIntervals();\n assert intervals.length==leafNodeCapacity;\n Interval[] leftIntervals = new Interval[leafNodeCapacity];\n Interval[] rightIntervals = new Interval[leafNodeCapacity];\n Interval[] tempIntervals = null;\n\n int leftIntervalNumber=0;\n int rightIntervalNumber=0;\n TriangleShape lnTriangle = ln.second().triangle;\n String lnString=ln.first();\n TriangleShape leftTriangle=null;\n TriangleShape rightTriangle=null;\n String leftString=null;\n String rightString =null;\n\n while(leftIntervalNumber==0 || rightIntervalNumber==0){\n\n if(splitTimes==10000) {\n System.out.println(\"splitTimes=\"+splitTimes);\n System.out.println(\"you should increase the parameter leafNodeCapaity value!!!\");\n assert false;\n }\n else\n splitTimes++;\n\n leftTriangle=lnTriangle.leftTriangle();\n leftIntervalNumber=0;\n rightIntervalNumber=0;\n\n for(Interval i: intervals){\n if(Geom2DSuits.contains(leftTriangle,i.getLowerBound(),i.getUpperBound())){\n leftIntervals[leftIntervalNumber]=i;\n leftIntervalNumber++;\n }\n else{\n rightIntervals[rightIntervalNumber]=i;\n rightIntervalNumber++;\n }\n }\n\n if(leftIntervalNumber==0){//all located at left side\n rightTriangle = lnTriangle.rightTriangle();\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(leftString);\n lnTriangle = rightTriangle;\n lnString=rightString;\n\n tempIntervals=intervals;\n intervals=rightIntervals;\n rightIntervals=tempIntervals;\n }\n else if(rightIntervalNumber==0){//all located at right side\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(rightString);\n lnTriangle = leftTriangle;\n lnString=leftString;\n\n tempIntervals=intervals;\n intervals=leftIntervals;\n leftIntervals=tempIntervals;\n }\n else { //spit successfully\n\n leftString=lnString+\"0\";\n LeafNode leftNode = new LeafNode();\n leftNode.intervals=leftIntervals;\n leftNode.size=leftIntervalNumber;\n leftNode.triangle=leftTriangle;\n\n rightString = lnString+\"1\";\n LeafNode rightNode = new LeafNode();\n rightTriangle = lnTriangle.rightTriangle();\n rightNode.triangle=rightTriangle;\n rightNode.size=rightIntervalNumber;\n rightNode.intervals=rightIntervals;\n\n if(leftNode.insert(t)!=1){\n rightNode.insert(t);\n }\n\n Identifier lnPage =leafInfos.remove(ln.first());\n writeNode(leftNode,lnPage);\n Identifier rightPage = CommonSuits.createIdentifier(-1L);\n writeNode(rightNode,rightPage);\n\n leafInfos.put(leftString,lnPage);\n leafInfos.put(rightString,rightPage);\n return true;\n }\n }\n return false;\n }", "void trim(int startingBlockId, int count) throws IOException;", "public void testConstructors()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n\n // verify we can read a 'good' HeaderBlockWriter (also test\n // getPropertyStart)\n block.setPropertyStart(0x87654321);\n output = new ByteArrayOutputStream(512);\n block.writeBlocks(output);\n assertEquals(0x87654321,\n new HeaderBlockReader(new ByteArrayInputStream(output\n .toByteArray())).getPropertyStart());\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "@DataProvider(name = \"SplitAssemblyRegion\")\n public Object[][] makeSplitAssemblyRegion() {\n final List<Object[]> tests = new ArrayList<>();\n\n final SimpleInterval whole_span = new SimpleInterval(\"1\", 1, 500);\n final SimpleInterval gl_before = new SimpleInterval(\"1\", 1, 9);\n final SimpleInterval gl_after = new SimpleInterval(\"1\", 250, 500);\n final SimpleInterval gl_diff_contig = new SimpleInterval(\"2\", 40, 50);\n\n final int regionStart = 10;\n final int regionStop = 100;\n final SimpleInterval region = new SimpleInterval(\"1\", regionStart, regionStop);\n\n for ( final SimpleInterval noEffect : Arrays.asList(whole_span) )\n tests.add(new Object[]{\n region,\n Arrays.asList(noEffect),\n Arrays.asList(region)});\n\n for ( final SimpleInterval noOverlap : Arrays.asList(gl_before, gl_after, gl_diff_contig) )\n tests.add(new Object[]{\n region,\n Arrays.asList(noOverlap),\n Arrays.asList()});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 5, 50)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 50, 200)),\n Arrays.asList(new SimpleInterval(\"1\", 50, regionStop))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 40, 50)),\n Arrays.asList(new SimpleInterval(\"1\", 40, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 20, 30), new SimpleInterval(\"1\", 40, 50)),\n Arrays.asList(new SimpleInterval(\"1\", 20, 30), new SimpleInterval(\"1\", 40, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 1, 30), new SimpleInterval(\"1\", 40, 50)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 30), new SimpleInterval(\"1\", 40, 50))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 1, 30), new SimpleInterval(\"1\", 70, 200)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 30), new SimpleInterval(\"1\", 70, regionStop))});\n\n tests.add(new Object[]{region,\n Arrays.asList(new SimpleInterval(\"1\", 1, 30), new SimpleInterval(\"1\", 40, 50), new SimpleInterval(\"1\", 70, 200)),\n Arrays.asList(new SimpleInterval(\"1\", regionStart, 30), new SimpleInterval(\"1\", 40, 50), new SimpleInterval(\"1\", 70, regionStop))});\n\n return tests.toArray(new Object[][]{});\n }", "public ByteBuf retainedDuplicate()\r\n/* 83: */ {\r\n/* 84:100 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 85:101 */ return super.retainedDuplicate();\r\n/* 86: */ }", "private static void loadBlockFromArray(ArrayList<String> items, int start, int end) {\n int id = -1;\n String speciesName = null;\n Long speciesID = new Long(0);\n String label = null;\n //String command = null;\n boolean hasBreed = false;\n String breed = null;\n double xcor = 0.0, ycor = 0.0;\n int numSockets = 0;\n int[] socketBlockIDs = new int[0];\n int plugID = -1;\n int controlNextID = -1, controlPrevID = -1;\n String shapeName = null;\n boolean procedureShown = true;\n /*int correspondingParameterID = -1;*/\n boolean isBad = false;\n// boolean isPermanentlyBad = false;\n\n int i = start;\n while (i<end) {\n String item = items.get(i).toString();\n\n if (item.equals(\"species-name\")) {\n speciesName = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"Species name \" + speciesName);\n continue;\n }\n\n if (item.equals(\"id\")) {\n String value = items.get(i+1).toString();\n id = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"block id \" + id);\n continue;\n }\n\n if (item.equals(\"species-id\")) {\n String value = items.get(i+1).toString();\n speciesID = Long.valueOf(value);\n i += 2;\n //System.out.println(\"Species id \" + speciesID);\n continue;\n }\n\n if (item.equals(\"label\")) {\n label = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"label \" + label);\n continue;\n }\n\n if (item.equals(\"command\")) {\n //command = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"command \" + command);\n continue;\n }\n\n if (item.equals(\"has-breed\")) {\n String value = items.get(i+1).toString();\n hasBreed = (value.equals(\"true\"));\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n\n if (item.equals(\"breed\")) {\n breed = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"breed \" + breed);\n continue;\n }\n\n if (item.equals(\"xcor\")) {\n String value = items.get(i+1).toString();\n xcor = Double.parseDouble(value);\n i += 2;\n //System.out.println(\"xcor \" + xcor);\n continue;\n }\n\n if (item.equals(\"ycor\")) {\n String value = items.get(i+1).toString();\n ycor = Double.parseDouble(value);\n i += 2;\n //System.out.println(\"ycor \" + ycor);\n continue;\n }\n \n if (item.equals(\"is-bad\")) {\n String value = items.get(i+1).toString();\n isBad = value.equals(\"true\");\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n \n if (item.equals(\"is-bad\")) {\n// String value = items.get(i+1).toString();\n// isPermanentlyBad = value.equals(\"true\");\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n\n if (item.equals(\"plug\")) {\n String value = items.get(i+1).toString();\n plugID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"plug \" + plugID);\n continue;\n }\n\n if (item.equals(\"control-prev\")) {\n String value = items.get(i+1).toString();\n controlPrevID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"control prev \" + controlPrevID);\n continue;\n }\n\n if (item.equals(\"control-next\")) {\n String value = items.get(i+1).toString();\n controlNextID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"control next \" + controlNextID);\n continue;\n }\n\n if (item.equals(\"sockets\")) {\n String value = items.get(i+1).toString();\n //System.out.println(\"found sockets \" + value);\n numSockets = Integer.parseInt(value);\n i += 2;\n\n socketBlockIDs = new int[numSockets];\n\n for(int currentSocket = 0; currentSocket < numSockets; currentSocket++) {\n String sockLabel = items.get(i).toString();\n assert(sockLabel.equals(\"socket\"));\n socketBlockIDs[currentSocket] = Integer.parseInt(items.get(i+1).toString());\n //System.out.println(\"socket \" + currentSocket + \" block id \" + socketBlockIDs[currentSocket]);\n i += 2;\n }\n continue;\n }\n\n if(item.equals(\"shape-icon\")) {\n shapeName = items.get(i + 1).toString();\n i += 2;\n //System.out.println(\"shape-icon = \" + value);\n //shape = AvailableShapes.getShape(value);\n continue;\n }\n\n if (item.equals(\"procedure-shown\")) {\n String value = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"procedure-shown \" + value);\n procedureShown = value.equalsIgnoreCase(\"true\");\n //this is the isMinimized value for procedures\n continue;\n }\n \n if (item.equals(\"parent\")) {\n //String value = items.get(i+1).toString();\n i += 2;\n //correspondingParameterID = Integer.parseInt(value);\n //System.out.println(\"parentID \" + value);\n continue;\n }\n\n // skip the next if we haven't found anything we know\n //System.out.println(\"unknown tag \" + items.get(i).toString());\n i+=2;\n }\n \n assert(id >= 0);\n //assert(speciesName != null);\n assert(speciesID >= 0);\n assert( (hasBreed && breed != null) || !hasBreed);\n \n //apply constraints if any\n VariableConstraints constraint = null;\n if(speciesName.equals(\"global-var-decl-num\") && (constraintsMap.containsKey(label))){\n \tconstraint = constraintsMap.get(label);\n }\n \n //instantiate block data\n BlockData bd = new BlockData(id, speciesName, speciesMap.get(speciesID+speciesName), \n label, xcor, ycor, socketBlockIDs, hasBreed, \n breed, plugID, controlNextID, controlPrevID, isBad, procedureShown, shapeName, constraint);\n \n //for run blocks: forever, runonce, runforsometime, set their labels to be\n //the breeds\n if(bd.getGenusName().equals(\"forever\") || bd.getGenusName().equals(\"runonce\") ||\n bd.getGenusName().equals(\"runforsometime\")){\n bd.setBreedLabels(pages);\n }\n \n //check if block has negative coors, if so translate the coors\n if(bd.getXCor() < 0)\n \tbd.setXCor(-bd.getXCor());\n if(bd.getYCor() < 0)\n \tbd.setYCor(-bd.getYCor());\n \n blocks.add(bd);\n \n if(DEBUG) \n \t System.out.println(\"Loaded: \"+bd);\n \n \n \n }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "@Test\n public void prefixTrimNotReachingSequencer() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n CorfuRuntime rt = getNewRuntime();\n\n TestRule dropSequencerTrim = new TestRule()\n .requestMatches(msg -> msg.getPayload().getPayloadCase()\n .equals(CorfuMessage.RequestPayloadMsg.PayloadCase.SEQUENCER_TRIM_REQUEST))\n .drop();\n addClientRule(rt, dropSequencerTrim);\n\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> tableB = openTable(rt, streamNameB);\n\n // thread 1: populates the maps with mapSize items\n scheduleConcurrently(1, ignored_task_num -> {\n populateMaps(tableSize, tableA, tableB);\n });\n\n // thread 2: periodic checkpoint of the maps, repeating ITERATIONS_VERY_LOW times,\n // and immediate prefix-trim of the log up to the checkpoint position\n scheduleConcurrently(1, ignored_task_num -> {\n mapCkpointAndTrim(rt, tableA, tableB);\n });\n\n // thread 3: repeated ITERATION_LOW times starting a fresh runtime, and instantiating the maps.\n // they should rebuild from the latest checkpoint (if available).\n // performs some sanity checks on the map state\n\n // In this test checkpoints and trims are happening in a loop for several iterations,\n // so a trim exception can occur if after loading from the latest checkpoint,\n // updates to the stream have been already trimmed (1st trimmedException), the stream\n // is reset, and on the second iteration the same scenario can happen (2nd trimmedException)\n // which is the total number of retries.\n scheduleConcurrently(PARAMETERS.NUM_ITERATIONS_LOW, ignored_task_num -> {\n validateMapRebuild(tableSize, false, true);\n });\n\n executeScheduled(PARAMETERS.CONCURRENCY_SOME, PARAMETERS.TIMEOUT_LONG);\n\n // Verify that last trim cycle completed (async task) before validating map rebuild\n Token currentTrimMark = Token.UNINITIALIZED;\n while(currentTrimMark.getSequence() != lastValidCheckpoint.getSequence() + 1L) {\n currentTrimMark = getNewRuntime().getAddressSpaceView().getTrimMark();\n }\n\n // finally, after all three threads finish, again we start a fresh runtime and instantiate the maps.\n // This time we check that the new map instances contain all values\n validateMapRebuild(tableSize, true, false);\n } finally {\n rt.shutdown();\n }\n }", "private void cleanMnemonicsConflict() {\n Enumeration enumer = mnemonicConflict.keys();\n \n while(enumer.hasMoreElements()) {\n String key = (String)enumer.nextElement();\n HashSet hs = (HashSet)mnemonicConflict.get(key);\n if(hs.size()==1)\n mnemonicConflict.remove(key);\n }\n \n }", "@Test\n\tpublic void testForwardFrameShiftBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6647537, PositionType.ZERO_BASED),\n\t\t\t\t\"TGCCCCACCT\", \"CCC\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(6, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1225_1234delinsCCC\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Cys409Profs*127\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.SPLICE_REGION),\n\t\t\t\tannotation1.effects);\n\t}", "public void repair () {\n WriteableByteArray whole = new WriteableByteArray ();\n WriteableByteArray piece = new WriteableByteArray ();\n int [] offsets = new int [sequences.size ()];\n for (int index = 0;index < commonSequence.length;index++) {\n byte b = commonSequence [index];\n int i = 0;\n for (byte [] sequence : sequences)\n if (sequence [index + offsets [i++]] != b) {\n CommonSequence commonPiece = new CommonSequence ();\n i = 0;\n for (byte [] s : sequences) {\n piece.reset ();\n for (;;) {\n byte c = s [index + offsets [i]];\n if (c == b)\n break;\n piece.write (c);\n offsets [i]++;\n }\n commonPiece.add (piece.toByteArray ());\n i++;\n }\n whole.write (commonPiece.getCommonSequence ());\n break;\n }\n // all sequences now coincide at b\n whole.write (b);\n }\n commonSequence = whole.toByteArray ();\n matched = false;\n throw new NotTestedException ();\n }", "void showsame() {\n\t\tint count;\n\t\tprintstatus = idle;\n\t\tif (newinfo.other[printnewline] != printoldline) {\n\t\t\tSystem.err.println(\"BUG IN LINE REFERENCING\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcount = blocklen[printoldline];\n\t\tprintoldline += count;\n\t\tprintnewline += count;\n\t}", "private static void registerBlock(Block b)\n\t{\n\t}", "@DataProvider(name = \"TrimAssemblyRegionData\")\n public Object[][] makeTrimAssemblyRegionData() {\n final List<Object[]> tests = new ArrayList<>();\n\n // fully enclosed within active region\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 15, 16),\n new SimpleInterval(\"1\", 15, 16), 0});\n\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 10, 15),\n new SimpleInterval(\"1\", 10, 15), 0});\n\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 15, 20),\n new SimpleInterval(\"1\", 15, 20), 0});\n\n // needs extra padding on the right\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 15, 25),\n new SimpleInterval(\"1\", 15, 20), 5});\n\n // needs extra padding on the left\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 5, 15),\n new SimpleInterval(\"1\", 10, 15), 5});\n\n // needs extra padding on both\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 7, 21),\n new SimpleInterval(\"1\", 10, 20), 3});\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 9, 23),\n new SimpleInterval(\"1\", 10, 20), 3});\n\n // desired span captures everything, so we're returning everything. Tests that extension is set correctly\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 10, 20), 10,\n new SimpleInterval(\"1\", 1, 50),\n new SimpleInterval(\"1\", 10, 20), 10});\n\n // At the start of the chromosome, potentially a bit weird\n tests.add(new Object[]{\n new SimpleInterval(\"1\", 1, 10), 10,\n new SimpleInterval(\"1\", 1, 50),\n new SimpleInterval(\"1\", 1, 10), 10});\n\n return tests.toArray(new Object[][]{});\n }", "@Test\n public void tesInvalidateMissingBlock() throws Exception {\n long blockSize = 1024;\n int heatbeatInterval = 1;\n HdfsConfiguration c = new HdfsConfiguration();\n c.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, heatbeatInterval);\n c.setLong(DFS_BLOCK_SIZE_KEY, blockSize);\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(c).\n numDataNodes(1).build();\n try {\n cluster.waitActive();\n DFSTestUtil.createFile(cluster.getFileSystem(), new Path(\"/a\"),\n blockSize, (short)1, 0);\n\n String bpid = cluster.getNameNode().getNamesystem().getBlockPoolId();\n DataNode dn = cluster.getDataNodes().get(0);\n FsDatasetImpl fsdataset = (FsDatasetImpl) dn.getFSDataset();\n List<ReplicaInfo> replicaInfos = fsdataset.getFinalizedBlocks(bpid);\n assertEquals(1, replicaInfos.size());\n\n ReplicaInfo replicaInfo = replicaInfos.get(0);\n String blockPath = replicaInfo.getBlockURI().getPath();\n String metaPath = replicaInfo.getMetadataURI().getPath();\n File blockFile = new File(blockPath);\n File metaFile = new File(metaPath);\n\n // Mock local block file not found when disk with some exception.\n fsdataset.invalidateMissingBlock(bpid, replicaInfo);\n\n // Assert local block file wouldn't be deleted from disk.\n assertTrue(blockFile.exists());\n // Assert block info would be removed from ReplicaMap.\n assertEquals(\"null\",\n fsdataset.getReplicaString(bpid, replicaInfo.getBlockId()));\n BlockManager blockManager = cluster.getNameNode().\n getNamesystem().getBlockManager();\n GenericTestUtils.waitFor(() ->\n blockManager.getLowRedundancyBlocksCount() == 1, 100, 5000);\n\n // Mock local block file found when disk back to normal.\n FsVolumeSpi.ScanInfo info = new FsVolumeSpi.ScanInfo(\n replicaInfo.getBlockId(), blockFile.getParentFile().getAbsoluteFile(),\n blockFile.getName(), metaFile.getName(), replicaInfo.getVolume());\n fsdataset.checkAndUpdate(bpid, info);\n GenericTestUtils.waitFor(() ->\n blockManager.getLowRedundancyBlocksCount() == 0, 100, 5000);\n } finally {\n cluster.shutdown();\n }\n }", "@Override\n protected void updateEliminations() {\n\n }", "@Test (timeout=180000)\n public void testNotInHdfsWithReplicas() throws Exception {\n TableName table =\n TableName.valueOf(\"tableNotInHdfs\");\n HBaseAdmin admin = new HBaseAdmin(conf);\n try {\n HRegionInfo[] oldHris = new HRegionInfo[2];\n setupTableWithRegionReplica(table, 2);\n assertEquals(ROWKEYS.length, countRows());\n NavigableMap<HRegionInfo, ServerName> map = MetaScanner.allTableRegions(TEST_UTIL.getConnection(),\n tbl.getName());\n int i = 0;\n // store the HRIs of the regions we will mess up\n for (Map.Entry<HRegionInfo, ServerName> m : map.entrySet()) {\n if (m.getKey().getStartKey().length > 0 &&\n m.getKey().getStartKey()[0] == Bytes.toBytes(\"B\")[0]) {\n LOG.debug(\"Initially server hosting \" + m.getKey() + \" is \" + m.getValue());\n oldHris[i++] = m.getKey();\n }\n }\n // make sure data in regions\n TEST_UTIL.getHBaseAdmin().flush(table.getName());\n\n // Mess it up by leaving a hole in the hdfs data\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), false, false, true); // don't rm meta\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {ERROR_CODE.NOT_IN_HDFS});\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length - 2, countRows());\n\n // the following code checks whether the old primary/secondary has\n // been unassigned and the new primary/secondary has been assigned\n i = 0;\n HRegionInfo[] newHris = new HRegionInfo[2];\n // get all table's regions from meta\n map = MetaScanner.allTableRegions(TEST_UTIL.getConnection(), tbl.getName());\n // get the HRIs of the new regions (hbck created new regions for fixing the hdfs mess-up)\n for (Map.Entry<HRegionInfo, ServerName> m : map.entrySet()) {\n if (m.getKey().getStartKey().length > 0 &&\n m.getKey().getStartKey()[0] == Bytes.toBytes(\"B\")[0]) {\n newHris[i++] = m.getKey();\n }\n }\n // get all the online regions in the regionservers\n Collection<ServerName> servers = admin.getClusterStatus().getServers();\n Set<HRegionInfo> onlineRegions = new HashSet<HRegionInfo>();\n for (ServerName s : servers) {\n List<HRegionInfo> list = admin.getOnlineRegions(s);\n onlineRegions.addAll(list);\n }\n // the new HRIs must be a subset of the online regions\n assertTrue(onlineRegions.containsAll(Arrays.asList(newHris)));\n // the old HRIs must not be part of the set (removeAll would return false if\n // the set didn't change)\n assertFalse(onlineRegions.removeAll(Arrays.asList(oldHris)));\n } finally {\n cleanupTable(table);\n admin.close();\n }\n }", "@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}", "public void unifyAdjacentChests(World par1World, int par2, int par3, int par4) {\n\t\tif (!par1World.isRemote) {\n\t\t\tBlock l = par1World.getBlock(par2, par3, par4 - 1);\n\t\t\tBlock i1 = par1World.getBlock(par2, par3, par4 + 1);\n\t\t\tBlock j1 = par1World.getBlock(par2 - 1, par3, par4);\n\t\t\tBlock k1 = par1World.getBlock(par2 + 1, par3, par4);\n\t\t\tBlock l1;\n\t\t\tBlock i2;\n\n\t\t\tbyte b0;\n\t\t\tint j2;\n\n\t\t\tif (l != this && i1 != this) {\n\t\t\t\tif (j1 != this && k1 != this) {\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (l.func_149730_j() && !i1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (i1.func_149730_j() && !l.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j1.func_149730_j() && !k1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 5;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (k1.func_149730_j() && !j1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 4;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tl1 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 - 1);\n\t\t\t\t\ti2 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 + 1);\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (j1 == this) {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 - 1, par3, par4);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 + 1, par3, par4);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j2 == 2) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((l.func_149730_j() || l1.func_149730_j()) && !i1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((i1.func_149730_j() || i2.func_149730_j()) && !l.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tl1 = par1World.getBlock(par2 - 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\ti2 = par1World.getBlock(par2 + 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\tb0 = 5;\n\n\t\t\t\tif (l == this) {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 - 1);\n\t\t\t\t} else {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 + 1);\n\t\t\t\t}\n\n\t\t\t\tif (j2 == 4) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\n\t\t\t\tif ((j1.func_149730_j() || l1.func_149730_j()) && !k1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\tb0 = 5;\n\t\t\t\t}\n\n\t\t\t\tif ((k1.func_149730_j() || i2.func_149730_j()) && !j1.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpar1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 3);\n\t\t}\n\t}", "@Test (timeout=180000)\n public void testHDFSRegioninfoMissing() throws Exception {\n TableName table = TableName.valueOf(\"tableHDFSRegioninfoMissing\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the meta data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, false, true, HRegionInfo.DEFAULT_REPLICA_ID);\n TEST_UTIL.getHBaseAdmin().enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.ORPHAN_HDFS_REGION,\n ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN});\n // holes are separate from overlap groups\n assertEquals(0, hbck.getOverlapGroups(table).size());\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "@Test (timeout=180000)\n public void testContainedRegionOverlap() throws Exception {\n TableName table =\n TableName.valueOf(\"tableContainedRegionOverlap\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating an overlap in the metadata\n HRegionInfo hriOverlap =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A2\"), Bytes.toBytes(\"B\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriOverlap);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriOverlap);\n ServerName server = regionStates.getRegionServerOfRegion(hriOverlap);\n TEST_UTIL.assertRegionOnServer(hriOverlap, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.OVERLAP_IN_REGION_CHAIN });\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the problem.\n doFsck(conf, true);\n\n // verify that overlaps are fixed\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "void removeBlock(Block block);", "@Test\n public void mergeWithStopAfterFirstSegment() throws IOException, MkvElementVisitException {\n final CountVisitor countVisitor = runMergerToStopAtFirstNonMatchingSegment(\"output_get_media.mkv\");\n\n //Validate that there is only one EBML header and segment and tracks\n //but there are 32 clusters and tracks as expected.\n assertCountsAfterMerge(countVisitor);\n }", "private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }", "public ByteBuf duplicate()\r\n/* 95: */ {\r\n/* 96:112 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 97:113 */ return super.duplicate();\r\n/* 98: */ }", "@Test (timeout=180000)\n public void testDupeStartKey() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeStartKey\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"A2\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS});\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows()); // seems like the \"bigger\" region won.\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "void removebranchGroupInU(int i,boolean dead)\n {\n if(dead==true)\n {\n \n if(controlArray[i]==true)\n {\n //branchGroupArray[i].detach();\n \n branchGroupArray[i]=null ;\n controlArray[i]=false ;\n }\n \n \n }\n \n else \n {\n if(controlArray[i]==true)\n {\n branchGroupArray[i].detach();\n //branchGroupArray[i]=null;\n controlArray[i]=false ;\n }\n }\n }", "public static void neighborhoodMaxLowMem(String szinputsegmentation,String szanchorpositions,\n int nbinsize, int numleft, int numright, int nspacing, \n\t\t\t\t\tboolean busestrand, boolean busesignal, String szcolfields,\n\t\t\t\t\tint noffsetanchor, String szoutfile,Color theColor, \n\t\t\t\t\t String sztitle,String szlabelmapping, boolean bprintimage, \n boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n\tboolean bchrommatch = false;//added in 1.23 to check for chromosome matches\n\t//an array of chromosome names\n\tArrayList alchromindex = new ArrayList();\n\n\tString szLine;\n\n\t//stores the largest index value for each chromosome\n\tHashMap hmchromMax = new HashMap();\n\n\t//maps chromosome names to index values\n\tHashMap hmchromToIndex = new HashMap();\n\tHashMap hmLabelToIndex = new HashMap(); //maps label to an index\n\tHashMap hmIndexToLabel = new HashMap(); //maps index string to label\n\t//stores the maximum integer label value\n\tint nmaxlabel=0;\n\tString szlabel =\"\";\n\tBufferedReader brinputsegment = Util.getBufferedReader(szinputsegmentation);\n\n\tboolean busedunderscore = false;\n //the number of additional intervals to the left and right to include\n \n \t//the center anchor position\n\tint numintervals = 1+numleft+numright;\n\n\n\t//this loops reads in the segmentation \n\twhile ((szLine = brinputsegment.readLine())!=null)\n\t{\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t\tif ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t\t{\n\t\t continue;\n\t\t}\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t { \n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegmentation+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n //assumes segments are in standard bed format which to get to \n\t //0-based inclusive requires substract 1 from the end\n\t //int nbegin = Integer.parseInt(st.nextToken().trim())/nbinsize; \n\t st.nextToken().trim();\n\t int nend = (Integer.parseInt(st.nextToken().trim())-1)/nbinsize; \n\t szlabel = st.nextToken().trim();\n\t short slabel;\n\n\t if (bstringlabels)\n\t {\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t }\n\t }\n\n\t if (!busedunderscore)\n\t {\n\t //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t\t nmaxlabel = hmLabelToIndex.size()+1;\n\t\t slabel = (short) nmaxlabel;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t\t }\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t }\n\t catch (NumberFormatException ex2)\n\t {\n\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t }\n\t \n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t\t//System.out.println(\"on chrom \"+szchrom);\n\t\thmchromMax.put(szchrom,Integer.valueOf(nend));\n\t\thmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t\talchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t\tint ncurrmax = objMax.intValue();\n\t\tif (ncurrmax < nend)\n\t\t{\n\t\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t\t}\n\t }\n\t}\n\tbrinputsegment.close();\n\n\t//stores a tally for each position relative to an anchor how frequently the label was observed\n\tdouble[][] tallyoverlaplabel = new double[numintervals][nmaxlabel+1]; \n\n\t//stores a tally for the total signal associated with each anchor position\n\tdouble[] dsumoverlaplabel = new double[numintervals];\n\n //a tally on how frequently each label occurs\n double[] tallylabel = new double[nmaxlabel+1];\n\n\n\tint numchroms = alchromindex.size();\n\n //short[][] labels = new short[numchroms][];\n\n\t//allocates space store all the segment labels for each chromosome\n\tfor (int nchrom = 0; nchrom < numchroms; nchrom++)\n\t{\n \t //stores all the segments in the data\n\t //ArrayList alsegments = new ArrayList();\n\t brinputsegment = Util.getBufferedReader(szinputsegmentation);\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(alchromindex.get(nchrom))).intValue()+1;\n\t short[] labels = new short[nsize];\n\t //this loops reads in the segmentation \n\n\n\t //short[] labels_nchrom = labels[nchrom];\n\t for (int npos = 0; npos < nsize; npos++)\n {\n labels[npos] = -1;\n }\n\t\t\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t //int numlines = alsegments.size();\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t bchrommatch = true;\n //assumes segments are in standard bed format which to get to \n\t //0-based inclusive requires substract 1 from the end\n\t int nbegin = Integer.parseInt(st.nextToken().trim())/nbinsize;\n\t int nend = (Integer.parseInt(st.nextToken().trim())-1)/nbinsize; \n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\t if (nunderscoreindex >=0)\n\t\t {\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t }\n\n\t\t if (!busedunderscore)\n\t\t {\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t }\n\t }\n\t }\n\n\t //this loop stores into labels the full segmentation\n\t //and a count of how often each label occurs\n\t //for (int nindex = 0; nindex < numlines; nindex++)\n\t //{\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t }\n\n\t if (slabel >= 0)\n\t {\n\t tallylabel[slabel]+=(nend-nbegin)+1; \n\t }\t \n\t }\n\t brinputsegment.close();\n\n\n\t RecAnchorIndex theAnchorIndex = getAnchorIndex(szcolfields, busestrand, busesignal);\n\n \t //reads in the anchor position \n BufferedReader brcoords = Util.getBufferedReader(szanchorpositions);\n\t while ((szLine = brcoords.readLine())!=null)\n {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n String szchrom = szLineA[theAnchorIndex.nchromindex]; \n\t if (!szchrom.equals(szchromwant)) \n continue;\n\n\t int nanchor = (Integer.parseInt(szLineA[theAnchorIndex.npositionindex])-noffsetanchor);\n\t boolean bposstrand = true;\n\t if (busestrand)\n\t {\n\t String szstrand = szLineA[theAnchorIndex.nstrandindex];\t \n\t if (szstrand.equals(\"+\"))\n\t {\n\t bposstrand = true;\n\t }\n else if (szstrand.equals(\"-\"))\n {\n \t bposstrand = false;\n\t }\n\t else\n\t {\n \t throw new IllegalArgumentException(szstrand +\" is an invalid strand. Strand should be '+' or '-'\");\n\t\t }\t \n\t }\n\n\t double damount;\n\n\t if ((busesignal)&&(theAnchorIndex.nsignalindex< szLineA.length))\n\t {\n\t damount = Double.parseDouble(szLineA[theAnchorIndex.nsignalindex]);\n\t }\n\t else\n {\n\t damount = 1;\n\t }\n\n\t //updates the tallys for the given anchor position\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n //if (objChrom != null)\n\t //{\n\t // int nchrom = objChrom.intValue();\n\t\t //short[] labels_nchrom = labels[nchrom];\n\n\t if (bposstrand)\n\t {\n\t int ntallyindex = 0;\n\t for(int noffset= -numleft; noffset <= numright; noffset++)\n\t {\n\t\t int nposindex = (nanchor + nspacing*noffset)/nbinsize;\n\n\t\t if ((nposindex >=0)&&(nposindex < labels.length)&&(labels[nposindex]>=0))\n\t\t {\n\t tallyoverlaplabel[ntallyindex][labels[nposindex]] += damount;\t\t \n\t\t }\n\t\t ntallyindex++;\n\t\t }\n\t\t }\n\t else\n\t {\n\t int ntallyindex = 0;\n\t for(int noffset= numright; noffset >= -numleft; noffset--)\n\t {\n\t\t int nposindex = (nanchor + nspacing*noffset)/nbinsize;\n\n\t\t if ((nposindex >=0)&&(nposindex < labels.length)&&(labels[nposindex]>=0))\n\t\t {\n\t tallyoverlaplabel[ntallyindex][labels[nposindex]]+=damount;\t\t \n\t\t }\n\t\t ntallyindex++;\n\t\t }\n\t\t //}\n\t\t }\n\t }\n brcoords.close(); \t \n\t}\n\n\tif (!bchrommatch)\n\t{\n\t throw new IllegalArgumentException(\"No chromosome name matches found between \"+szanchorpositions+\n \" and those in the segmentation file.\");\n\t}\n\n\toutputneighborhood(tallyoverlaplabel,tallylabel,dsumoverlaplabel,szoutfile,nspacing,numright,\n numleft,theColor,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,\n szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }", "private void smoothAdjacentCollapsibles(TECarpentersBlock TE, int src_quadrant)\n \t{\n \t\tTECarpentersBlock TE_XN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_XP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_ZN = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_ZP = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZNN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZNP = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZPN = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZPP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\t\n \t\tint height = Collapsible.getQuadHeight(TE, src_quadrant);\n \t\t\n \t\tswitch (src_quadrant)\n \t\t{\n \t\tcase Collapsible.QUAD_XZNN:\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_XZNN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZNP:\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XZNP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPN:\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XZPN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPP:\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_XZPP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t}", "@Override\n public void onRemoval() {\n try {\n if (eOutputHatches != null) {\n for (GT_MetaTileEntity_Hatch_ElementalContainer hatch_elemental : eOutputHatches) {\n hatch_elemental.id = -1;\n }\n for (GT_MetaTileEntity_Hatch_ElementalContainer hatch_elemental : eInputHatches) {\n hatch_elemental.id = -1;\n }\n for (GT_MetaTileEntity_Hatch_OutputData hatch_data : eOutputData) {\n hatch_data.id = -1;\n hatch_data.q = null;\n }\n for (GT_MetaTileEntity_Hatch_InputData hatch_data : eInputData) {\n hatch_data.id = -1;\n }\n for (GT_MetaTileEntity_Hatch_Uncertainty hatch : eUncertainHatches) {\n hatch.getBaseMetaTileEntity().setActive(false);\n }\n for (GT_MetaTileEntity_Hatch_Param hatch : eParamHatches) {\n hatch.getBaseMetaTileEntity().setActive(false);\n }\n }\n cleanOutputEM_EM();\n if (ePowerPass && getEUVar() > V[3] || eDismantleBoom && mMaxProgresstime > 0 && areChunksAroundLoaded_EM()) {\n explodeMultiblock();\n }\n } catch (Exception e) {\n if (DEBUG_MODE) {\n e.printStackTrace();\n }\n }\n }", "@Test\r\n public void testCheckCollisionTankBlocks() {\r\n System.out.println(\"checkCollisionTankBlocks\");\r\n Rectangle r3 = new Rectangle(10, 10, 10, 10);\r\n boolean result = CollisionUtility.checkCollisionTankBlocks(r3);\r\n assertEquals(true, result);\r\n inblocks.remove(0);\r\n result = CollisionUtility.checkCollisionTankBlocks(r3);\r\n assertEquals(false, result);\r\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }", "@Test\n public void testInMemoryParentCleanup()\n throws IOException, InterruptedException, ExecutionException {\n HMaster master = TEST_UTIL.getHBaseCluster().getMaster();\n final AssignmentManager am = master.getAssignmentManager();\n final ServerManager sm = master.getServerManager();\n\n Admin admin = TEST_UTIL.getAdmin();\n admin.catalogJanitorSwitch(false);\n\n final TableName tableName = name.getTableName();\n Table t = TEST_UTIL.createTable(tableName, FAMILY);\n TEST_UTIL.loadTable(t, FAMILY, false);\n\n RegionLocator locator = TEST_UTIL.getConnection().getRegionLocator(tableName);\n List<HRegionLocation> allRegionLocations = locator.getAllRegionLocations();\n\n // We need to create a valid split with daughter regions\n HRegionLocation parent = allRegionLocations.get(0);\n List<HRegionLocation> daughters = splitRegion(parent.getRegion());\n LOG.info(\"Parent region: \" + parent);\n LOG.info(\"Daughter regions: \" + daughters);\n assertNotNull(\"Should have found daughter regions for \" + parent, daughters);\n\n assertTrue(\"Parent region should exist in RegionStates\",\n am.getRegionStates().isRegionInRegionStates(parent.getRegion()));\n assertTrue(\"Parent region should exist in ServerManager\",\n sm.isRegionInServerManagerStates(parent.getRegion()));\n\n // clean the parent\n Result r = MetaMockingUtil.getMetaTableRowResult(parent.getRegion(), null,\n daughters.get(0).getRegion(), daughters.get(1).getRegion());\n CatalogJanitor.cleanParent(master, parent.getRegion(), r);\n\n // wait for procedures to complete\n Waiter.waitFor(TEST_UTIL.getConfiguration(), 10 * 1000, new Waiter.Predicate<Exception>() {\n @Override\n public boolean evaluate() throws Exception {\n ProcedureExecutor<MasterProcedureEnv> pe = master.getMasterProcedureExecutor();\n for (Procedure<MasterProcedureEnv> proc : pe.getProcedures()) {\n if (proc.getClass().isAssignableFrom(GCRegionProcedure.class) && proc.isFinished()) {\n return true;\n }\n }\n return false;\n }\n });\n\n assertFalse(\"Parent region should have been removed from RegionStates\",\n am.getRegionStates().isRegionInRegionStates(parent.getRegion()));\n assertFalse(\"Parent region should have been removed from ServerManager\",\n sm.isRegionInServerManagerStates(parent.getRegion()));\n\n }", "@Override\r\n public void onGuiClosed(){\r\n\t\tsuper.onGuiClosed();\r\n Keyboard.enableRepeatEvents(false);\r\n \r\n if(mode == 1){\r\n \t\r\n \tif(!blockFillList.isEmpty() && !blockReplaceList.isEmpty()){\r\n \t\r\n\t \tList<Integer> ID = Lists.<Integer>newArrayList();\r\n\t \tList<Integer> META = Lists.<Integer>newArrayList();\r\n\t \tList<Integer> CHANCE = Lists.<Integer>newArrayList();\r\n\t \t\r\n\t \tfor(int i = 0; i < blockFillList.size(); i++){\r\n\t \t\tSystem.out.println(\"SIZE = \" + blockFillList.size());\r\n\t \t\tif(blockFillList.get(i).getIsItemStackEqual(new ItemStack(Items.bucket).setStackDisplayName(\"Air\"))){\r\n\t \t\t\tID.add(i, Block.getIdFromBlock(Blocks.air));\r\n\t \t\t}\r\n\t \t\telse if(blockFillList.get(i).getIsItemStackEqual(new ItemStack(Items.water_bucket).setStackDisplayName(\"Water\"))){\r\n\t \t\t\tID.add(i, Block.getIdFromBlock(Blocks.flowing_water));\r\n\t \t\t}\r\n\t \t\telse if(blockFillList.get(i).getIsItemStackEqual(new ItemStack(Items.lava_bucket).setStackDisplayName(\"Lava\"))){\r\n\t \t\t\tID.add(i, Block.getIdFromBlock(Blocks.flowing_lava));\r\n\t \t\t}\r\n\t \t\telse{\r\n\t \t\t\tID.add(i, Block.getIdFromBlock(Block.getBlockFromItem(blockFillList.get(i).getItem())));\r\n\t \t\t}\r\n\t \t\tMETA.add(i, blockFillList.get(i).getMetadata());\r\n\t \t\tCHANCE.add(i, blockFillList.get(i).stackSize);\r\n\t \t}\r\n\t \t\r\n\t \tList<Integer> ID2 = Lists.<Integer>newArrayList();\r\n\t \tList<Integer> META2 = Lists.<Integer>newArrayList();\r\n\t \t\r\n\t \tfor(int i = 0; i < blockReplaceList.size(); i++){\r\n\t \t\t\r\n\t \t\tif(blockReplaceList.get(i).getIsItemStackEqual(new ItemStack(Items.bucket).setStackDisplayName(\"Air\"))){\r\n\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.air));\r\n\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n\t \t\t}\r\n\t \t\telse if(blockReplaceList.get(i).getIsItemStackEqual(new ItemStack(Items.water_bucket).setStackDisplayName(\"Water\"))){\r\n\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.flowing_water));\r\n\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.water));\r\n\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n\t \t\t}\r\n\t \t\telse if(blockReplaceList.get(i).getIsItemStackEqual(new ItemStack(Items.lava_bucket).setStackDisplayName(\"Lava\"))){\r\n\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.flowing_lava));\r\n\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.lava));\r\n\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n\t \t\t}\r\n\t \t\telse{\r\n\t \t\t\tID2.add(i, Block.getIdFromBlock(Block.getBlockFromItem(blockReplaceList.get(i).getItem())));\r\n\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tSystem.out.println(\"SIZE = \" + blockFillList.size());\r\n//\t \t\tif(blockReplaceList.get(i).getItem() == Items.lava_bucket){\r\n//\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.flowing_lava));\r\n//\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.lava));\r\n//\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n//\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n//\t \t\t}\r\n//\t \t\telse if(blockReplaceList.get(i).getItem() == Items.water_bucket){\r\n//\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.flowing_water));\r\n//\t \t\t\tID2.add(Block.getIdFromBlock(Blocks.water));\r\n//\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n//\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n//\t \t\t}\r\n//\t \t\telse{\r\n//\t \t\t\tID2.add(i, Block.getIdFromBlock(Block.getBlockFromItem(blockReplaceList.get(i).getItem())));\r\n//\t \t\t\tMETA2.add(i, blockReplaceList.get(i).getMetadata());\r\n//\t \t\t}\r\n\t \t\t\r\n\t \t}\r\n\t \t\r\n\t \tSystem.out.println(ID + \" \" + META + \" \" + CHANCE);\r\n\t \t\r\n\t \tPacketDispatcher.sendToServer(new SendAdvancedReplacePacketToItemMessage(ID, META, CHANCE, ID2, META2));\r\n\t \t\r\n \t}\r\n }\r\n }", "private void DeleteBurnInsOnPreviousSamples() {\n\t\tif (gibbs_sample_num <= num_gibbs_burn_in + 1 && gibbs_sample_num >= 2){\n\t\t\tgibbs_samples_of_bart_trees[gibbs_sample_num - 2] = null;\n\t\t}\n\t}", "private void cleanProblematicOverlappedRegions(RegionLocations locations) {\n RegionInfo region = locations.getRegionLocation().getRegion();\n\n boolean isLast = isEmptyStopRow(region.getEndKey());\n\n while (true) {\n Map.Entry<byte[], RegionLocations> overlap =\n isLast ? cache.lastEntry() : cache.lowerEntry(region.getEndKey());\n if (\n overlap == null || overlap.getValue() == locations\n || Bytes.equals(overlap.getKey(), region.getStartKey())\n ) {\n break;\n }\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\n \"Removing cached location {} (endKey={}) because it overlaps with \"\n + \"new location {} (endKey={})\",\n overlap.getValue(),\n Bytes.toStringBinary(overlap.getValue().getRegionLocation().getRegion().getEndKey()),\n locations, Bytes.toStringBinary(locations.getRegionLocation().getRegion().getEndKey()));\n }\n\n cache.remove(overlap.getKey());\n }\n }", "public void processData() {\n\t\t SamReader sfr = SamReaderFactory.makeDefault().validationStringency(ValidationStringency.LENIENT).open(this.inputFile);\n\t\t \n\t\t\t\n\t\t\t//Set up file writer\n\t\t SAMFileWriterFactory sfwf = new SAMFileWriterFactory();\n\t\t sfwf.setCreateIndex(true);\n\t\t SAMFileWriter sfw = sfwf.makeSAMOrBAMWriter(sfr.getFileHeader(), false, this.outputFile);\n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t\t//counters\n\t\t\tint totalReads = 0;\n\t\t\tint trimmedReads = 0;\n\t\t\tint droppedReads = 0;\n\t\t\tint dropTrimReads = 0;\n\t\t\tint dropMmReads = 0;\n\t\t\t\n\t\t\t//Containers\n\t\t\tHashSet<String> notFound = new HashSet<String>();\n\t\t\tHashMap<String, SAMRecord> mateList = new HashMap<String,SAMRecord>();\n\t\t\tHashSet<String> removedList = new HashSet<String>();\n\t\t\tHashMap<String,SAMRecord> editedList = new HashMap<String,SAMRecord>();\n\t\t\t\n\t\t\tfor (SAMRecord sr: sfr) {\n\t\t\t\t//Messaging\n\t\t\t\tif (totalReads % 1000000 == 0 && totalReads != 0) {\n\t\t\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Currently storing mates for %d reads.\",totalReads,trimmedReads,droppedReads,mateList.size()));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ttotalReads += 1;\n\t\t\t\t\n\t\t\t\tString keyToCheck = sr.getReadName() + \":\" + String.valueOf(sr.getIntegerAttribute(\"HI\"));\n\t\t\t\n\t\t\t\t//Make sure chromsome is available\n\t\t\t\tString chrom = sr.getReferenceName();\n\t\t\t\tif (!this.refHash.containsKey(chrom)) {\n\t\t\t\t\tif (!notFound.contains(chrom)) {\n\t\t\t\t\t\tnotFound.add(chrom);\n\t\t\t\t\t\tMisc.printErrAndExit(String.format(\"Chromosome %s not found in reference file, skipping trimming step\", chrom));\n\t\t\t\t\t}\n\t\t\t\t} else if (!sr.getReadUnmappedFlag()) {\n\t\t\t\t\tString refSeq = null;\n\t\t\t\t\tString obsSeq = null;\n\t\t\t\t\tList<CigarElement> cigar = null;\n\t\t\t\t\t\n\t\t\t\t\t//Get necessary sequence information depending on orientation\n\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\trefSeq = this.revComp(this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd()));\n\t\t\t\t\t\tobsSeq = this.revComp(sr.getReadString());\n\t\t\t\t\t\tcigar = this.reverseCigar(sr.getCigar().getCigarElements());\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trefSeq = this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd());\n\t\t\t\t\t\tobsSeq = sr.getReadString();\n\t\t\t\t\t\tcigar = sr.getCigar().getCigarElements();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Get alignments\n\t\t\t\t\tString[] alns = this.createAlignmentStrings(cigar, refSeq, obsSeq, totalReads);\n\t\t\t\t\t\n\t\t\t\t\t//Identify Trim Point\n\t\t\t\t\tint idx = this.identifyTrimPoint(alns,sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\n\t\t\t\t\t//Check error rate\n\t\t\t\t\tboolean mmPassed = false;\n\t\t\t\t\tif (mmMode) {\n\t\t\t\t\t\tmmPassed = this.isPoorQuality(alns, sr.getReadNegativeStrandFlag(), idx);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Create new cigar string\n\t\t\t\t\tif (idx < minLength || mmPassed) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsr.setAlignmentStart(0);\n\t\t\t\t\t\tsr.setReadUnmappedFlag(true);\n\t\t\t\t\t\tsr.setProperPairFlag(false);\n\t\t\t\t\t\tsr.setReferenceIndex(-1);\n\t\t\t\t\t\tsr.setMappingQuality(0);\n\t\t\t\t\t\tsr.setNotPrimaryAlignmentFlag(false);\n\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 (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMateUnmapped(mateList.get(keyToCheck)));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tremovedList.add(keyToCheck);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tdroppedReads += 1;\n\t\t\t\t\t\tif (idx < minLength) {\n\t\t\t\t\t\t\tdropTrimReads += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdropMmReads += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (idx+1 != alns[0].length()) {\n\t\t\t\t\t\ttrimmedReads++;\n\t\t\t\t\t\tCigar oldCig = sr.getCigar();\n\t\t\t\t\t\tCigar newCig = this.createNewCigar(alns, cigar, idx, sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\tsr.setCigar(newCig);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\t\tint newStart = this.determineStart(oldCig, newCig, sr.getAlignmentStart());\n\t\t\t\t\t\t\tsr.setAlignmentStart(newStart);\n\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 (this.verbose) {\n\t\t\t\t\t\t\tthis.printAlignments(sr, oldCig, alns, idx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMatePos(mateList.get(keyToCheck),sr.getAlignmentStart()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\teditedList.put(keyToCheck,sr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(sr.getReadName());\n\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t//String rn = sr.getReadName();\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tif (editedList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMatePos(sr,editedList.get(keyToCheck).getAlignmentStart());\n\t\t\t\t\t\t\teditedList.remove(keyToCheck);\n\t\t\t\t\t\t} else if (removedList.contains(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMateUnmapped(sr);\n\t\t\t\t\t\t\tremovedList.remove(keyToCheck);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\t\tsfw.addAlignment(mateList.get(keyToCheck));\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmateList.put(keyToCheck, sr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Of the unmapped, %d were too short and %d had too many mismatches. Currently storing mates for %d reads.\",\n\t\t\t\t\ttotalReads,trimmedReads,droppedReads,dropTrimReads, dropMmReads, mateList.size()));\n\t\t\tSystem.out.println(String.format(\"Reads left in hash: %d. Writing to disk.\",mateList.size()));\n\t\t\tfor (SAMRecord sr2: mateList.values()) {\n\t\t\t\tsfw.addAlignment(sr2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsfw.close();\n\t\t\ttry {\n\t\t\t\tsfr.close();\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}\t\t\n\t}", "public void testNewSeqCloneNamedSrcConflict() throws Exception\n {\n String accid = \"T00513\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setCellLine(\"HeLa\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertEquals(new Integer(-40), ms.getMSKey());\n // check qc tables\n String sql = \"select count(*) from QC_MS_NameConflict \" +\n \"where _jobstream_key = \" + jobkey;\n ResultsNavigator nav = radar.executeQuery(sql);\n RowReference row = nav.getRowReference();\n nav.next();\n assertEquals(new Integer(1), row.getInt(1));\n\n }", "public void fragmentationOccured(ByteBufferWithInfo newFragment) {}", "@Test\n public void testMetaBlocks() throws Exception {\n metablocks(\"none\");\n metablocks(\"gz\");\n }", "private void t3() {\n // write to a super region, read from a subregion: only keep write\n writeProtected();\n readDefault();\n }", "void m63702c() {\n for (C17455a c17455a : this.f53839c) {\n c17455a.f53844b.clear();\n }\n }", "private void resetMBPattern()\n {\n codedBlockPattern = 0;\n }", "SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;", "void removeNextSeamHoriz() {\n\n SeamInfo toRemove = this.curLowest;\n\n toRemove.removeSeamHoriz();\n\n if (toRemove.containsPixel(this.curPixel)) {\n this.curPixel = this.curPixel.down;\n }\n\n this.removedSeams.add(toRemove);\n\n this.draw();\n\n }", "public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)\r\n {\r\n super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n// this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n }", "public void MeasureMovement(int[] dupCellID, int numslices, int b){\r\n\t\tfor (int x = 1; x < b; x = x + 1){ \r\n\t\t\tIJ.selectWindow(dupCellID[x]);\r\n\t\t\tImagePlus TheDuplicate = WindowManager.getCurrentImage();\r\n\t\t\tIJ.run(\"Threshold...\",\"method='Default'\");\r\n\t\t\tnew WaitForUserDialog(\"Threshold\", \"Threshold yeast cell to select the nucleus, then click OK.\").show();\r\n\t\t\tResultsTable res = new ResultsTable();\r\n\t\t\tdouble[] SliceNumY = new double[numslices];\r\n\t\t\tdouble[] SliceNumX = new double[numslices];\r\n\t\t\t\tfor(int z = 1; z < numslices; z = z+1) {\r\n\t\t\t\t\tTheDuplicate.setSlice(z);\r\n\t\t\t\t\tIJ.run(TheDuplicate, \"Analyze Particles...\", \"size=100-550 pixel circularity=0.00-1.00 show=Nothing display clear include add slice\");\r\n\t\t\t\t\tres = Analyzer.getResultsTable();\r\n\t\t\t\t\t\r\n\t\t\t\t\tint MaxY = TheDuplicate.getHeight();\r\n\t\t\t\t\tint Midpoint = MaxY/2; \r\n\t\t\t\t\tint MaxCount = res.getCounter();\r\n\t\t\t\t\tdouble yVal = 0;\r\n\t\t\t\t\tdouble xVal = 0;\r\n\t\t\t\t\tif (MaxCount > 1){\r\n\t\t\t\t\t\tfor (int c = 0; c < (MaxCount - 1); c = c + 1){\r\n\t\t\t\t\t\t\tyVal = res.getValueAsDouble(7, c);\r\n\t\t\t\t\t\t\txVal = res.getValueAsDouble(6, c);\r\n\t\t\t\t\t\t\tif (Math.abs((yVal/0.13) - Midpoint) <= 10 ){\r\n\t\t\t\t\t\t\t\tyVal = res.getValueAsDouble(7, c);\r\n\t\t\t\t\t\t\t\txVal = res.getValueAsDouble(6, c);\r\n\t\t\t\t\t\t\t}\r\n\t\t\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 * if statement to only record the centre X Y \r\n\t\t\t\t\t * coordinate of the nucleus when 1 object has \r\n\t\t\t\t\t * been found. If more than 1 object is identified\r\n\t\t\t\t\t * then the XY coordinates default to zero to prevent \r\n\t\t\t\t\t * other fluorescent cell components from skewing the data\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (MaxCount > 0 && MaxCount <2) {\r\n\t\t\t\t\t\tyVal = res.getValueAsDouble(7, 0);\r\n\t\t\t\t\t\txVal = res.getValueAsDouble(6, 0);\r\n\t\t\t\t\t\tSliceNumY[z] = yVal;\r\n\t\t\t\t\t\tSliceNumX[z] = xVal; \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tSliceNumY[z] = 0;\r\n\t\t\t\t\t\tSliceNumX[z] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\toutputinfo(SliceNumY, SliceNumX, numslices); //Write the results to text file\r\n\t\t\tTheDuplicate.changes = false;\t\r\n\t\t\tTheDuplicate.close();\r\n\t\t}\r\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@Test(timeout = 30000)\n public void testMoveBlockFailure() {\n // Test copy\n testMoveBlockFailure(conf);\n // Test hardlink\n conf.setBoolean(DFSConfigKeys\n .DFS_DATANODE_ALLOW_SAME_DISK_TIERING, true);\n conf.setDouble(DFSConfigKeys\n .DFS_DATANODE_RESERVE_FOR_ARCHIVE_DEFAULT_PERCENTAGE, 0.5);\n testMoveBlockFailure(conf);\n }", "@Override\n public String getToolDescription() {\n \treturn \"Removes thin connection between polygon bulges\";\n }", "public interface NotificationsSectionSplitter {\n Pair<List<Object>, List<NotificationsEdgeFields>> mo469a(List<Object> list, List<NotificationsEdgeFields> list2);\n\n void mo470a(Bundle bundle);\n}", "@Converted(kind = Converted.Kind.MANUAL_SEMANTIC,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp\", line = 324,\n old_source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp\", old_line = 323,\n FQN=\"EmitBlockID\", NM=\"_ZL11EmitBlockIDjPKcRN4llvm15BitstreamWriterERNS1_15SmallVectorImplIyEE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.frontend/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp -nm=_ZL11EmitBlockIDjPKcRN4llvm15BitstreamWriterERNS1_15SmallVectorImplIyEE\")\n//</editor-fold>\npublic static void EmitBlockID(/*uint*/int ID, /*const*/char$ptr/*char P*/ Name, \n BitstreamWriter /*&*/ Stream, \n SmallVectorImplULong /*&*/ Record) {\n Record.clear();\n Record.push_back($uint2ullong(ID));\n Stream.EmitRecord(BlockInfoCodes.BLOCKINFO_CODE_SETBID.getValue(), Record);\n \n // Emit the block name if present.\n if (!(Name != null) || Name.$at(0) == 0) {\n return;\n }\n \n Record.clear();\n Name = Native.$tryClone(Name);\n while ((Name.$star() != 0)) {\n Record.push_back($char2ullong(Name.$postInc().$star()));\n }\n \n Stream.EmitRecord(BlockInfoCodes.BLOCKINFO_CODE_BLOCKNAME.getValue(), Record);\n}", "private void t2() {\n // read from a super region, write to a sub region: keep both\n readProtected();\n writeDefault();\n }", "@Override\n\tpublic void afterSplitting(final Object groupingObject, final ConsignmentModel createdOne)\n\t{\n\t\tSystem.out.println(\"method:afterSplitting...........................\");\n\t}" ]
[ "0.56159776", "0.56119055", "0.55586773", "0.5490608", "0.5433412", "0.54311424", "0.54270977", "0.5368338", "0.53590804", "0.5340217", "0.5302345", "0.5241587", "0.5233319", "0.5194203", "0.51196104", "0.5080091", "0.50755316", "0.5053645", "0.50330275", "0.50145227", "0.5002149", "0.49774268", "0.49601063", "0.49362385", "0.4917857", "0.49003136", "0.48945013", "0.48541245", "0.48324805", "0.4827246", "0.48262557", "0.4815342", "0.48014233", "0.47962004", "0.47918993", "0.47896427", "0.4778747", "0.47735396", "0.47647455", "0.47630808", "0.47593772", "0.4759211", "0.47537786", "0.47432947", "0.47348022", "0.47159612", "0.47116038", "0.46923384", "0.46899846", "0.4688272", "0.46877196", "0.4685002", "0.4676341", "0.4675561", "0.46754146", "0.46679813", "0.4667457", "0.46664786", "0.46587682", "0.46574178", "0.46547893", "0.4642775", "0.46409285", "0.46358138", "0.46351463", "0.4630358", "0.46299443", "0.46225595", "0.46082133", "0.4607029", "0.4600505", "0.45915663", "0.4590672", "0.4589434", "0.45890555", "0.45859185", "0.45838428", "0.45740387", "0.45697835", "0.45665997", "0.4562919", "0.45623168", "0.4555468", "0.45538208", "0.45470956", "0.45442295", "0.45407513", "0.45365304", "0.4534065", "0.4532648", "0.453154", "0.45289934", "0.45266166", "0.4524738", "0.45239955", "0.45168832", "0.4514574", "0.45109394", "0.4505633", "0.45048884", "0.44999588" ]
0.0
-1
/ JADX WARNING: Removed duplicated region for block: B:336:0x0ef0 A[SYNTHETIC, Splitter:B:336:0x0ef0] / JADX WARNING: Removed duplicated region for block: B:56:0x02fa / JADX WARNING: Removed duplicated region for block: B:61:0x0374 / JADX WARNING: Removed duplicated region for block: B:66:0x03ee / JADX WARNING: Removed duplicated region for block: B:75:0x0471 A[SYNTHETIC, Splitter:B:75:0x0471]
public static int PrepareSecurefiles(Context ctx, ZipFile apkzf) { ZipEntry fileUnzip; ZipEntry fileUnzip2; ZipEntry fileUnzip3; RandomAccessFile raf = null; FileLock file_lock = null; RandomAccessFile raf2 = null; String Appfiledir = new StringBuilder(String.valueOf(ctx.getFilesDir().getAbsolutePath())).append("/prodexdir").toString(); File Appprofiledir = new File(Appfiledir); if (!Appprofiledir.isDirectory()) { Appprofiledir.mkdir(); } String Cookiefilepath = new StringBuilder(String.valueOf(Appfiledir)).append("/").append(versionname).toString(); String backupfilepath = new StringBuilder(String.valueOf(Appfiledir)).append("/backUp").toString(); String firstloadfilepath = new StringBuilder(String.valueOf(Appfiledir)).append("/firstLoad").toString(); String Cookiefileinzip = "assets/" + versionname; String Libnameinapk = "libtosprotection." + CPUABI + ".so"; try { raf = new RandomAccessFile(Cookiefilepath, "rw"); try { raf = raf.getChannel(); file_lock = raf.lock(); File Cookiefile = new File(Cookiefilepath); try { if (Cookiefile.length() != 0) { int compareResult = Comparetxtinzip(apkzf, Cookiefileinzip, Cookiefile); if (compareResult == 1) { File secureDataFile = new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename5).toString()); if (!secureDataFile.exists() || secureDataFile.length() == 0) { SafeUnzipFile(apkzf, "assets/" + securename5, secureDataFile, 0); } else { SafeUnzipFile(apkzf, "assets/" + securename5, secureDataFile, getFileCRC32(secureDataFile)); } ZipEntry fileUnzip4 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip4 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString(), fileUnzip4.getSize())) { UnzipFile(apkzf, "assets/" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString())); } } ZipEntry fileUnzip5 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip5 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString(), fileUnzip5.getSize())) { UnzipFile(apkzf, "assets/" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString())); } } ZipEntry fileUnzip6 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip6 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString(), fileUnzip6.getSize())) { UnzipFile(apkzf, "assets/" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString())); } } ZipEntry fileUnzip7 = apkzf.getEntry(Cookiefileinzip); if (fileUnzip7 != null && !isFileValid(Cookiefilepath, fileUnzip7.getSize())) { File file = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file); } if (file_lock != null) { try { file_lock.release(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e) { e.printStackTrace(); RandomAccessFile randomAccessFile = raf; File file2 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } catch (IOException e2) { e2.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e3) { e3.printStackTrace(); RandomAccessFile randomAccessFile2 = raf; File file3 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } RandomAccessFile randomAccessFile3 = raf; File file4 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e4) { e4.printStackTrace(); RandomAccessFile randomAccessFile4 = raf; File file5 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } } } catch (IOException e5) { e5.printStackTrace(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e6) { e6.printStackTrace(); RandomAccessFile randomAccessFile5 = raf; File file6 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } catch (IOException e7) { e7.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e8) { e8.printStackTrace(); RandomAccessFile randomAccessFile6 = raf; File file7 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } RandomAccessFile randomAccessFile7 = raf; File file8 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e9) { e9.printStackTrace(); RandomAccessFile randomAccessFile8 = raf; File file9 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } } RandomAccessFile randomAccessFile9 = raf; File file10 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e10) { e10.printStackTrace(); RandomAccessFile randomAccessFile10 = raf; File file11 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } catch (IOException e11) { e11.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e12) { e12.printStackTrace(); RandomAccessFile randomAccessFile11 = raf; File file12 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } RandomAccessFile randomAccessFile12 = raf; File file13 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e13) { e13.printStackTrace(); RandomAccessFile randomAccessFile13 = raf; File file14 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } } } } RandomAccessFile randomAccessFile14 = raf; File file15 = Cookiefile; return 2; } else if (compareResult != 0) { Process.killProcess(Process.myPid()); System.exit(0); } } DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString()); DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString()); int file_count = 0; while (file_count < MAX_DEX_NUM) { int deletedexresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(CreatenewFileName(securename0, ".", "_" + file_count)).toString()); int deletejarresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(CreatenewFileName(securename1, ".", "_" + file_count)).toString()); int deleteodexresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append("odexdir").append("/").append(CreatenewFileName(securename0, ".", "_" + file_count)).toString()); int deleteflagresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append("odexdir").append("/").append(CreatenewFileName(securename8, ".", "_" + file_count)).toString()); DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append("oat/arm").append("/").append(CreatenewFileName(securename8, ".", "_" + file_count)).toString()); if (ERROR_FILE_NOT_FOUND == deletedexresult && ERROR_FILE_NOT_FOUND == deletejarresult && ERROR_FILE_NOT_FOUND == deleteodexresult) { break; } if (ERROR_EXCEPTION == deletedexresult || ERROR_EXCEPTION == deletejarresult || ERROR_EXCEPTION == deleteodexresult) { Process.killProcess(Process.myPid()); System.exit(0); } file_count++; } DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename9).toString()); DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename5).toString()); UnzipFile(apkzf, "assets/" + securename5, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename5).toString())); UnzipFile(apkzf, "assets/" + libname, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString())); UnzipFile(apkzf, "assets/" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString())); UnzipFile(apkzf, "assets/" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString())); File file16 = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file16); for (int file_count2 = 0; file_count2 < file_count; file_count2++) { int deletedexresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append("/").append(CreatenewFileName(securename0, ".", "_" + file_count2)).toString()); int deletejarresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append("/").append(CreatenewFileName(securename1, ".", "_" + file_count2)).toString()); int deleteodexresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append("/").append("odexdir").append("/").append(CreatenewFileName(securename0, ".", "_" + file_count2)).toString()); int deleteflagresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append("/").append("odexdir").append("/").append(CreatenewFileName(securename8, ".", "_" + file_count2)).toString()); DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append("/").append("oat/arm").append("/").append(CreatenewFileName(securename8, ".", "_" + file_count2)).toString()); if (ERROR_FILE_NOT_FOUND == deletedexresult2 && ERROR_FILE_NOT_FOUND == deletejarresult2 && ERROR_FILE_NOT_FOUND == deleteodexresult2) { break; } if (ERROR_EXCEPTION == deletedexresult2 || ERROR_EXCEPTION == deletejarresult2 || ERROR_EXCEPTION == deleteodexresult2) { Process.killProcess(Process.myPid()); System.exit(0); } } for (int file_count3 = 0; file_count3 < file_count; file_count3++) { int deletedexresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append("/").append(CreatenewFileName(securename0, ".", "_" + file_count3)).toString()); int deletejarresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append("/").append(CreatenewFileName(securename1, ".", "_" + file_count3)).toString()); int deleteodexresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append("/").append("odexdir").append("/").append(CreatenewFileName(securename0, ".", "_" + file_count3)).toString()); int deleteflagresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append("/").append("odexdir").append("/").append(CreatenewFileName(securename8, ".", "_" + file_count3)).toString()); DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append("/").append("oat/arm").append("/").append(CreatenewFileName(securename8, ".", "_" + file_count3)).toString()); if (ERROR_FILE_NOT_FOUND == deletedexresult3 && ERROR_FILE_NOT_FOUND == deletejarresult3 && ERROR_FILE_NOT_FOUND == deleteodexresult3) { break; } if (ERROR_EXCEPTION == deletedexresult3 || ERROR_EXCEPTION == deletejarresult3 || ERROR_EXCEPTION == deleteodexresult3) { Process.killProcess(Process.myPid()); System.exit(0); } } ZipEntry fileUnzip8 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip8 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString(), fileUnzip8.getSize())) { UnzipFile(apkzf, "assets/" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString())); } } ZipEntry fileUnzip9 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip9 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString(), fileUnzip9.getSize())) { UnzipFile(apkzf, "assets/" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString())); } } ZipEntry fileUnzip10 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip10 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString(), fileUnzip10.getSize())) { UnzipFile(apkzf, "assets/" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString())); } } ZipEntry fileUnzip11 = apkzf.getEntry(Cookiefileinzip); if (fileUnzip11 != null && !isFileValid(Cookiefilepath, fileUnzip11.getSize())) { File file17 = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file17); } if (file_lock != null) { try { file_lock.release(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e14) { e14.printStackTrace(); RandomAccessFile randomAccessFile15 = raf; File file18 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } catch (IOException e15) { e15.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e16) { e16.printStackTrace(); RandomAccessFile randomAccessFile16 = raf; File file19 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } RandomAccessFile randomAccessFile17 = raf; File file20 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e17) { e17.printStackTrace(); RandomAccessFile randomAccessFile18 = raf; File file21 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } } } catch (IOException e18) { e18.printStackTrace(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e19) { e19.printStackTrace(); RandomAccessFile randomAccessFile19 = raf; File file22 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } catch (IOException e20) { e20.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e21) { e21.printStackTrace(); RandomAccessFile randomAccessFile20 = raf; File file23 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } RandomAccessFile randomAccessFile21 = raf; File file24 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e22) { e22.printStackTrace(); RandomAccessFile randomAccessFile22 = raf; File file25 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } } RandomAccessFile randomAccessFile23 = raf; File file26 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e23) { e23.printStackTrace(); RandomAccessFile randomAccessFile24 = raf; File file27 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } catch (IOException e24) { e24.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e25) { e25.printStackTrace(); RandomAccessFile randomAccessFile25 = raf; File file28 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } RandomAccessFile randomAccessFile26 = raf; File file29 = Cookiefile; return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e26) { e26.printStackTrace(); RandomAccessFile randomAccessFile27 = raf; File file30 = Cookiefile; return ERROR_FILE_NOT_FOUND; } } } } } } RandomAccessFile randomAccessFile28 = raf; File file31 = Cookiefile; return 0; } catch (Exception e27) { e = e27; raf2 = raf; File file32 = Cookiefile; } catch (Throwable th) { th = th; raf2 = raf; File file33 = Cookiefile; ZipEntry fileUnzip12 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip12 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString(), fileUnzip12.getSize())) { UnzipFile(apkzf, "assets/" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString())); } ZipEntry fileUnzip13 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip13 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString(), fileUnzip13.getSize())) { UnzipFile(apkzf, "assets/" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString())); } ZipEntry fileUnzip14 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip14 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString(), fileUnzip14.getSize())) { UnzipFile(apkzf, "assets/" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString())); } ZipEntry fileUnzip15 = apkzf.getEntry(Cookiefileinzip); if (fileUnzip15 != null && !isFileValid(Cookiefilepath, fileUnzip15.getSize())) { File file34 = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file34); } if (file_lock != null) { try { file_lock.release(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e28) { e28.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } catch (IOException e29) { e29.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e30) { e30.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e31) { e31.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } } } catch (IOException e32) { e32.printStackTrace(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e33) { e33.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } catch (IOException e34) { e34.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e35) { e35.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e36) { e36.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e37) { e37.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } catch (IOException e38) { e38.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e39) { e39.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e40) { e40.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } } } } throw th; } } catch (Exception e41) { e = e41; raf2 = raf; try { e.printStackTrace(); fileUnzip = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString(), fileUnzip.getSize())) { UnzipFile(apkzf, "assets/" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString())); } } fileUnzip2 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip2 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString(), fileUnzip2.getSize())) { UnzipFile(apkzf, "assets/" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString())); } } fileUnzip3 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip3 != null) { if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString(), fileUnzip3.getSize())) { UnzipFile(apkzf, "assets/" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString())); } } ZipEntry fileUnzip16 = apkzf.getEntry(Cookiefileinzip); if (fileUnzip16 != null && !isFileValid(Cookiefilepath, fileUnzip16.getSize())) { File file35 = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file35); } if (file_lock != null) { try { file_lock.release(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e42) { e42.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } catch (IOException e43) { e43.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e44) { e44.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e45) { e45.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } } } catch (IOException e46) { e46.printStackTrace(); if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e47) { e47.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } catch (IOException e48) { e48.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e49) { e49.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e50) { e50.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); if (raf != null) { try { raf.close(); } catch (IOException e51) { e51.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } catch (IOException e52) { e52.printStackTrace(); if (raf != null) { try { raf.close(); } catch (IOException e53) { e53.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } return ERROR_FILE_NOT_FOUND; } finally { if (raf != null) { try { raf.close(); } catch (IOException e54) { e54.printStackTrace(); return ERROR_FILE_NOT_FOUND; } } } } } } return ERROR_FILE_NOT_FOUND; } catch (Throwable th2) { th = th2; ZipEntry fileUnzip122 = apkzf.getEntry("assets/" + Libnameinapk); UnzipFile(apkzf, "assets/" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString())); ZipEntry fileUnzip132 = apkzf.getEntry("assets/" + Libnameinapk); UnzipFile(apkzf, "assets/" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString())); ZipEntry fileUnzip142 = apkzf.getEntry("assets/" + Libnameinapk); UnzipFile(apkzf, "assets/" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString())); ZipEntry fileUnzip152 = apkzf.getEntry(Cookiefileinzip); File file342 = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file342); if (file_lock != null) { } throw th; } } catch (Throwable th3) { th = th3; raf2 = raf; ZipEntry fileUnzip1222 = apkzf.getEntry("assets/" + Libnameinapk); UnzipFile(apkzf, "assets/" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(libname).toString())); ZipEntry fileUnzip1322 = apkzf.getEntry("assets/" + Libnameinapk); UnzipFile(apkzf, "assets/" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename6).toString())); ZipEntry fileUnzip1422 = apkzf.getEntry("assets/" + Libnameinapk); UnzipFile(apkzf, "assets/" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append("/").append(securename7).toString())); ZipEntry fileUnzip1522 = apkzf.getEntry(Cookiefileinzip); File file3422 = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file3422); if (file_lock != null) { } throw th; } } catch (Exception e55) { e = e55; e.printStackTrace(); fileUnzip = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip != null) { } fileUnzip2 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip2 != null) { } fileUnzip3 = apkzf.getEntry("assets/" + Libnameinapk); if (fileUnzip3 != null) { } ZipEntry fileUnzip162 = apkzf.getEntry(Cookiefileinzip); File file352 = new File(Cookiefilepath); UnzipFile(apkzf, Cookiefileinzip, file352); if (file_lock != null) { } return ERROR_FILE_NOT_FOUND; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test (timeout=180000)\n public void testValidLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n // TODO: fixHdfsHoles does not work against splits, since the parent dir lingers on\n // for some time until children references are deleted. HBCK erroneously sees this as\n // overlapping regions\n HBaseFsck hbck = doFsck(\n conf, true, true, false, false, false, true, true, true, false, false, false, null);\n assertErrors(hbck, new ERROR_CODE[] {}); //no LINGERING_SPLIT_PARENT reported\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "@Test (timeout=180000)\n public void testLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(\"B\");\n\n // Delete one region from meta, but not hdfs, unassign it.\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, false);\n\n // Create a new meta entry to fake it as a split parent.\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n HRegionInfo a = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"B\"), Bytes.toBytes(\"BM\"));\n HRegionInfo b = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"BM\"), Bytes.toBytes(\"C\"));\n\n hri.setOffline(true);\n hri.setSplit(true);\n\n MetaTableAccessor.addRegionToMeta(meta, hri, a, b);\n meta.close();\n admin.flush(TableName.META_TABLE_NAME);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // regular repair cannot fix lingering split parent\n hbck = doFsck(conf, true);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN });\n assertFalse(hbck.shouldRerun());\n hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // fix lingering split parent\n hbck = new HBaseFsck(conf, hbfsckExecutorService);\n hbck.connect();\n hbck.setDisplayFullReport(); // i.e. -details\n hbck.setTimeLag(0);\n hbck.setFixSplitParents(true);\n hbck.onlineHbck();\n assertTrue(hbck.shouldRerun());\n hbck.close();\n\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITA_QUALIFIER).isEmpty());\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITB_QUALIFIER).isEmpty());\n admin.flush(TableName.META_TABLE_NAME);\n\n // fix other issues\n doFsck(conf, true);\n\n // check that all are fixed\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@Test (timeout=180000)\n public void testDupeRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeRegion\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"B\"));\n\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n // Yikes! The assignment manager can't tell between diff between two\n // different regions with the same start/endkeys since it doesn't\n // differentiate on ts/regionId! We actually need to recheck\n // deployments!\n while (findDeployedHSI(getDeployedHRIs((HBaseAdmin) admin), hriDupe) == null) {\n Thread.sleep(250);\n }\n\n LOG.debug(\"Finished assignment of dupe region\");\n\n // TODO why is dupe region different from dupe start keys?\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS});\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows()); // seems like the \"bigger\" region won.\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "@Test (timeout=180000)\n public void testDegenerateRegions() throws Exception {\n TableName table = TableName.valueOf(\"tableDegenerateRegions\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"B\"), Bytes.toBytes(\"B\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf,false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DEGENERATE_REGION, ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS });\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "void reportSplit(HRegionInfo oldRegion, HRegionInfo newRegionA,\n HRegionInfo newRegionB) {\n \n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_SPLIT, oldRegion,\n (oldRegion.getRegionNameAsString() + \" split; daughters: \" +\n newRegionA.getRegionNameAsString() + \", \" +\n newRegionB.getRegionNameAsString()).getBytes()));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionA));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionB));\n }", "@Test(timeout=75000)\n public void testSplitDaughtersNotInMeta() throws Exception {\n TableName table = TableName.valueOf(\"testSplitdaughtersNotInMeta\");\n Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n HRegionInfo hri = location.getRegionInfo();\n\n // Disable CatalogJanitor to prevent it from cleaning up the parent region\n // after split.\n admin.enableCatalogJanitor(false);\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n PairOfSameType<HRegionInfo> daughters =\n MetaTableAccessor.getDaughterRegions(meta.get(new Get(regionName)));\n\n // Delete daughter regions from meta, but not hdfs, unassign it.\n Map<HRegionInfo, ServerName> hris = tbl.getRegionLocations();\n undeployRegion(connection, hris.get(daughters.getFirst()), daughters.getFirst());\n undeployRegion(connection, hris.get(daughters.getSecond()), daughters.getSecond());\n\n List<Delete> deletes = new ArrayList<>();\n deletes.add(new Delete(daughters.getFirst().getRegionName()));\n deletes.add(new Delete(daughters.getSecond().getRegionName()));\n meta.delete(deletes);\n\n // Remove daughters from regionStates\n RegionStates regionStates = TEST_UTIL.getMiniHBaseCluster().getMaster().\n getAssignmentManager().getRegionStates();\n regionStates.deleteRegion(daughters.getFirst());\n regionStates.deleteRegion(daughters.getSecond());\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN }); //no LINGERING_SPLIT_PARENT\n\n // now fix it. The fix should not revert the region split, but add daughters to META\n hbck = doFsck(\n conf, true, true, false, false, false, false, false, false, false, false, false, null);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN });\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false)); //should be fixed by now\n } finally {\n admin.enableCatalogJanitor(true);\n meta.close();\n cleanupTable(table);\n }\n }", "public void handlesBlockingRegionDrag() {\r\n \t\tObject[] cells = graph.getDescendants(graph.getSelectionCells());\r\n \t\t// Put cells not in a blocking region to back\r\n \t\tHashSet<Object> putBack = new HashSet<Object>();\r\n \t\tfor (Object cell2 : cells) {\r\n \t\t\tif (cell2 instanceof JmtCell && ((JmtCell) cell2).parentChanged()) {\r\n \t\t\t\t// This cell was moved in, out or between blocking regions\r\n \t\t\t\tJmtCell cell = (JmtCell) cell2;\r\n \t\t\t\tObject key = ((CellComponent) cell.getUserObject()).getKey();\r\n \t\t\t\tObject oldRegionKey, newRegionKey;\r\n \t\t\t\tif (!(cell.getParent() instanceof BlockingRegion)) {\r\n \t\t\t\t\t// Object removed from blocking region\r\n \t\t\t\t\tputBack.add(cell2);\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Allow adding of removed objects to a new blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(true);\r\n \t\t\t\t} else if (cell.getPrevParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t// Object changed blocking region\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tmodel.addRegionStation(newRegionKey, key);\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// Object added to a blocking region\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tif (!model.addRegionStation(newRegionKey, key)) {\r\n \t\t\t\t\t\t// object cannot be added to blocking region (for\r\n \t\t\t\t\t\t// example it's a source)\r\n \t\t\t\t\t\tcell.removeFromParent();\r\n \t\t\t\t\t\tgraph.getModel().insert(new Object[] { cell }, null, null, null, null);\r\n \t\t\t\t\t\tputBack.add(cell);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Doesn't allow adding of selected objects to a new\r\n \t\t\t\t\t// blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(false);\r\n \t\t\t\t}\r\n \t\t\t\t// Resets parent for this cell\r\n \t\t\t\tcell.resetParent();\r\n \t\t\t}\r\n \t\t\t// Avoid insertion of a blocking region in an other\r\n \t\t\telse if (cell2 instanceof BlockingRegion) {\r\n \t\t\t\tBlockingRegion region = (BlockingRegion) cell2;\r\n \t\t\t\tif (region.getParent() != null) {\r\n \t\t\t\t\tregion.removeFromParent();\r\n \t\t\t\t\tgraph.getModel().insert(new Object[] { region }, null, null, null, null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Puts cells removed from blocking regiont on background\r\n \t\tgraph.getModel().toBack(putBack.toArray());\r\n \t}", "@Test\n public void testSplitOnCreatedSegment() throws Exception {\n InternalKnowledgeBase kbase1 = buildKnowledgeBase(\"r1\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\");\n kbase1.addPackages( buildKnowledgePackage(\"r2\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r3\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r4\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \\n\") );\n\n InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession());\n List list = new ArrayList();\n wm.setGlobal(\"list\", list);\n\n wm.insert(new X(1));\n wm.insert(new X(2));\n wm.insert(new X(3));\n wm.flushPropagations();\n\n RuleTerminalNode rtn1 = getRtn( \"org.kie.r1\", kbase1 );\n\n PathMemory pm1 = wm.getNodeMemory(rtn1);\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(2);\n SegmentMemory[] smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(4);\n assertThat(smems[0]).isNull();\n assertThat(smems[2]).isNull();\n assertThat(smems[3]).isNull();\n SegmentMemory sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n\n kbase1.addPackages( buildKnowledgePackage(\"r5\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(3;)\\n\") );\n wm.fireAllRules();\n\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(6);\n smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(5);\n assertThat(smems[0]).isNull();\n assertThat(smems[3]).isNull();\n assertThat(smems[4]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n\n RuleTerminalNode rtn5 = getRtn( \"org.kie.r5\", kbase1 );\n PathMemory pm5 = wm.getNodeMemory(rtn5);\n assertThat(pm5.getLinkedSegmentMask()).isEqualTo(6);\n\n smems = pm5.getSegmentMemories();\n assertThat(smems.length).isEqualTo(3);\n assertThat(smems[0]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n }", "@Test (timeout=180000)\n public void testSidelineOverlapRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"testSidelineOverlapRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating an overlap\n MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();\n HMaster master = cluster.getMaster();\n HRegionInfo hriOverlap1 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"AB\"));\n master.assignRegion(hriOverlap1);\n master.getAssignmentManager().waitForAssignment(hriOverlap1);\n HRegionInfo hriOverlap2 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"AB\"), Bytes.toBytes(\"B\"));\n master.assignRegion(hriOverlap2);\n master.getAssignmentManager().waitForAssignment(hriOverlap2);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS, ERROR_CODE.OVERLAP_IN_REGION_CHAIN});\n assertEquals(3, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // mess around the overlapped regions, to trigger NotServingRegionException\n Multimap<byte[], HbckInfo> overlapGroups = hbck.getOverlapGroups(table);\n ServerName serverName = null;\n byte[] regionName = null;\n for (HbckInfo hbi: overlapGroups.values()) {\n if (\"A\".equals(Bytes.toString(hbi.getStartKey()))\n && \"B\".equals(Bytes.toString(hbi.getEndKey()))) {\n regionName = hbi.getRegionName();\n\n // get an RS not serving the region to force bad assignment info in to META.\n int k = cluster.getServerWith(regionName);\n for (int i = 0; i < 3; i++) {\n if (i != k) {\n HRegionServer rs = cluster.getRegionServer(i);\n serverName = rs.getServerName();\n break;\n }\n }\n\n HBaseFsckRepair.closeRegionSilentlyAndWait((HConnection) connection,\n cluster.getRegionServer(k).getServerName(), hbi.getHdfsHRI());\n admin.offline(regionName);\n break;\n }\n }\n\n assertNotNull(regionName);\n assertNotNull(serverName);\n try (Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService)) {\n Put put = new Put(regionName);\n put.add(HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER,\n Bytes.toBytes(serverName.getHostAndPort()));\n meta.put(put);\n }\n\n // fix the problem.\n HBaseFsck fsck = new HBaseFsck(conf, hbfsckExecutorService);\n fsck.connect();\n fsck.setDisplayFullReport(); // i.e. -details\n fsck.setTimeLag(0);\n fsck.setFixAssignments(true);\n fsck.setFixMeta(true);\n fsck.setFixHdfsHoles(true);\n fsck.setFixHdfsOverlaps(true);\n fsck.setFixHdfsOrphans(true);\n fsck.setFixVersionFile(true);\n fsck.setSidelineBigOverlaps(true);\n fsck.setMaxMerge(2);\n fsck.onlineHbck();\n fsck.close();\n\n // verify that overlaps are fixed, and there are less rows\n // since one region is sidelined.\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertTrue(ROWKEYS.length > countRows());\n } finally {\n cleanupTable(table);\n }\n }", "public void cleanupOldBlocks (long threshTime) ;", "private void split(Map<Integer, SortedSet> invariants, Partition partition) {\n int nonEmptyInvariants = invariants.keySet().size();\n if (nonEmptyInvariants > 1) {\n List<Integer> invariantKeys = new ArrayList<Integer>();\n invariantKeys.addAll(invariants.keySet());\n partition.removeCell(currentBlockIndex);\n int k = currentBlockIndex;\n if (splitOrder == SplitOrder.REVERSE) {\n Collections.sort(invariantKeys);\n } else {\n Collections.sort(invariantKeys, Collections.reverseOrder());\n }\n for (int h : invariantKeys) {\n SortedSet setH = invariants.get(h);\n// System.out.println(\"adding block \" + setH + \" at \" + k + \" h=\" + h);\n partition.insertCell(k, setH);\n blocksToRefine.add(setH);\n k++;\n \n }\n // skip over the newly added blocks\n currentBlockIndex += nonEmptyInvariants - 1;\n }\n }", "public int numberOfBlocksToRemove() {\r\n return 105;\r\n }", "private void repairGenome() {\n if (checkGenome(this.code)) {\n return;\n }\n int[] counters = new int[8];\n for (int c : code) { counters[c]++; }\n for (int i = 0; i < 8; ++i) {\n if (counters[i] == 0) {\n while (true) {\n int newPos = r.nextInt(GENOME_SIZE);\n if (counters[this.code[newPos]] > 1) {\n counters[this.code[newPos]]--;\n this.code[newPos] = i;\n break;\n }\n }\n }\n }\n }", "@Test\n\tpublic void testForwardNonFrameBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642114, PositionType.ZERO_BASED),\n\t\t\t\t\"TAAACA\", \"GTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.691-3_693delinsGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Trp231Val\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_ACCEPTOR),\n\t\t\t\tannotation1.effects);\n\n\t\t// deletion of three codons, insertion of one\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642126, PositionType.ZERO_BASED),\n\t\t\t\t\"GTGGTTCAA\", \"ACC\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(2, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.700_708delinsACC\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Val234_Gln236delinsThr\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION), annotation2.effects);\n\n\t\t// deletion of three codons, insertion of one, includes truncation of replacement ref from the right\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642134, PositionType.ZERO_BASED),\n\t\t\t\t\"AGTGGAGGAT\", \"CTT\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(2, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.708_716delinsCT\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Gln236Hisfs*16\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION), annotation3.effects);\n\t}", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "int numberOfBlocksToRemove();", "protected abstract void splitBAMs();", "@Test\n public void undoCkpointTest() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n final int trimPosition = tableSize / 2;\n final int snapshotPosition = trimPosition + 2;\n\n CountDownLatch latch = new CountDownLatch(1);\n\n t(1, () -> {\n\n CorfuRuntime rt = getNewRuntime();\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n\n // first, populate the map\n for (int i = 0; i < tableSize; i++) {\n tableA.insert(String.valueOf(i), (long) i);\n }\n\n // now, take a checkpoint and perform a prefix-trim\n MultiCheckpointWriter<PersistentCorfuTable<String, Long>> mcw1 = new MultiCheckpointWriter<>();\n mcw1.addMap(tableA);\n mcw1.appendCheckpoints(rt, author);\n\n // Trim the log\n Token token = new Token(rt.getLayoutView().getLayout().getEpoch(), trimPosition);\n rt.getAddressSpaceView().prefixTrim(token);\n rt.getAddressSpaceView().gc();\n rt.getAddressSpaceView().invalidateServerCaches();\n rt.getAddressSpaceView().invalidateClientCache();\n\n latch.countDown();\n } finally {\n rt.shutdown();\n }\n });\n\n AtomicBoolean trimExceptionFlag = new AtomicBoolean(false);\n\n // start a new runtime\n t(2, () -> {\n latch.await();\n CorfuRuntime rt = getNewRuntime();\n\n PersistentCorfuTable<String, Long> localm2A = openTable(rt, streamNameA);\n\n // start a snapshot TX at position snapshotPosition\n Token timestamp = new Token(0L, snapshotPosition - 1);\n rt.getObjectsView().TXBuild()\n .type(TransactionType.SNAPSHOT)\n .snapshot(timestamp)\n .build()\n .begin();\n\n // finally, instantiate the map for the snapshot and assert is has the right state\n try {\n localm2A.get(String.valueOf(0));\n } catch (TransactionAbortedException te) {\n assertThat(te.getAbortCause()).isEqualTo(AbortCause.TRIM);\n // this is an expected behavior!\n trimExceptionFlag.set(true);\n }\n\n try {\n if (!trimExceptionFlag.get()) {\n assertThat(localm2A.size())\n .isEqualTo(snapshotPosition);\n\n // check map positions 0..(snapshot-1)\n for (int i = 0; i < snapshotPosition; i++) {\n assertThat(localm2A.get(String.valueOf(i)))\n .isEqualTo(i);\n }\n\n // check map positions snapshot..(mapSize-1)\n for (int i = snapshotPosition; i < tableSize; i++) {\n assertThat(localm2A.get(String.valueOf(i))).isNull();\n }\n }\n } finally {\n rt.shutdown();\n }\n });\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "public void collapseBlocks() {\n // Create it if it's null\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n // Get the vertex to block lookup\n Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n // Go through the entities and accumulate the positions\n Map<MyGraph,Double> x_sum = new HashMap<MyGraph,Double>(), y_sum = new HashMap<MyGraph,Double>();\n Iterator<String> it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity)) {\n\t Iterator<MyGraph> it_mg = v_to_b.get(entity).iterator();\n\t while (it_mg.hasNext()) {\n\t MyGraph mg = it_mg.next();\n\t if (x_sum.containsKey(mg) == false) { x_sum.put(mg,0.0); y_sum.put(mg,0.0); }\n\t x_sum.put(mg,x_sum.get(mg)+pt.getX()); y_sum.put(mg,y_sum.get(mg)+pt.getY());\n\t }\n } else System.err.println(\"Vertex To Block Lookup missing \\\"\" + entity + \"\\\"\");\n }\n // Now position those entities that aren't cut vertices at the center of the graph\n it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity) && bcc.getCutVertices().contains(entity) == false) {\n MyGraph mg = v_to_b.get(entity).iterator().next();\n\t entity_to_wxy.put(entity, new Point2D.Double(x_sum.get(mg)/mg.getNumberOfEntities(),y_sum.get(mg)/mg.getNumberOfEntities()));\n\t transform(entity);\n\t}\n }\n // Re-render\n zoomToFit(); repaint();\n }\n }", "@Test (timeout=180000)\n public void testRegionHole() throws Exception {\n TableName table =\n TableName.valueOf(\"tableRegionHole\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.HOLE_IN_REGION_CHAIN});\n // holes are separate from overlap groups\n assertEquals(0, hbck.getOverlapGroups(table).size());\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length - 2 , countRows()); // lost a region so lost a row\n } finally {\n cleanupTable(table);\n }\n }", "public LinearGenomeShrinkMutation(){\n\t\tnumberGenesToRemove = 1;\n\t}", "public abstract void removeBlock();", "void transform() {\n\t\tint oldline, newline;\n\t\tint oldmax = oldinfo.maxLine + 2; /* Count pseudolines at */\n\t\tint newmax = newinfo.maxLine + 2; /* ..front and rear of file */\n\n\t\tfor (oldline = 0; oldline < oldmax; oldline++)\n\t\t\toldinfo.other[oldline] = -1;\n\t\tfor (newline = 0; newline < newmax; newline++)\n\t\t\tnewinfo.other[newline] = -1;\n\n\t\tscanunique(); /* scan for lines used once in both files */\n\t\tscanafter(); /* scan past sure-matches for non-unique blocks */\n\t\tscanbefore(); /* scan backwards from sure-matches */\n\t\tscanblocks(); /* find the fronts and lengths of blocks */\n\t}", "public ByteBuf retainedDuplicate()\r\n/* 83: */ {\r\n/* 84:100 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 85:101 */ return super.retainedDuplicate();\r\n/* 86: */ }", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "@Test(timeout=120000)\n public void testMissingFirstRegion() throws Exception {\n TableName table = TableName.valueOf(\"testMissingFirstRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"\"), Bytes.toBytes(\"A\"), true,\n true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.FIRST_REGION_STARTKEY_NOT_EMPTY });\n // fix hole\n doFsck(conf, true);\n // check that hole fixed\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n }\n }", "public ByteBuf duplicate()\r\n/* 95: */ {\r\n/* 96:112 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 97:113 */ return super.duplicate();\r\n/* 98: */ }", "private void cleanMnemonicsConflict() {\n Enumeration enumer = mnemonicConflict.keys();\n \n while(enumer.hasMoreElements()) {\n String key = (String)enumer.nextElement();\n HashSet hs = (HashSet)mnemonicConflict.get(key);\n if(hs.size()==1)\n mnemonicConflict.remove(key);\n }\n \n }", "@Override\n \tpublic void regionsRemoved(RegionEvent evt) {\n \t\t\n \t}", "void combineAndCollectSnapshotBlocks(\n INode.ReclaimContext reclaimContext, INodeFile file, FileDiff removed) {\n BlockInfo[] removedBlocks = removed.getBlocks();\n if (removedBlocks == null) {\n FileWithSnapshotFeature sf = file.getFileWithSnapshotFeature();\n assert sf != null : \"FileWithSnapshotFeature is null\";\n if(sf.isCurrentFileDeleted())\n sf.collectBlocksAndClear(reclaimContext, file);\n return;\n }\n int p = getPrior(removed.getSnapshotId(), true);\n FileDiff earlierDiff = p == Snapshot.NO_SNAPSHOT_ID ? null : getDiffById(p);\n // Copy blocks to the previous snapshot if not set already\n if (earlierDiff != null) {\n earlierDiff.setBlocks(removedBlocks);\n }\n BlockInfo[] earlierBlocks =\n (earlierDiff == null ? new BlockInfoContiguous[]{} : earlierDiff.getBlocks());\n // Find later snapshot (or file itself) with blocks\n BlockInfo[] laterBlocks = findLaterSnapshotBlocks(removed.getSnapshotId());\n laterBlocks = (laterBlocks == null) ? file.getBlocks() : laterBlocks;\n // Skip blocks, which belong to either the earlier or the later lists\n int i = 0;\n for(; i < removedBlocks.length; i++) {\n if(i < earlierBlocks.length && removedBlocks[i] == earlierBlocks[i])\n continue;\n if(i < laterBlocks.length && removedBlocks[i] == laterBlocks[i])\n continue;\n break;\n }\n // Check if last block is part of truncate recovery\n BlockInfo lastBlock = file.getLastBlock();\n BlockInfo dontRemoveBlock = null;\n if (lastBlock != null && lastBlock.getBlockUCState().equals(\n HdfsServerConstants.BlockUCState.UNDER_RECOVERY)) {\n dontRemoveBlock = lastBlock.getUnderConstructionFeature()\n .getTruncateBlock();\n }\n // Collect the remaining blocks of the file, ignoring truncate block\n for (;i < removedBlocks.length; i++) {\n if(dontRemoveBlock == null || !removedBlocks[i].equals(dontRemoveBlock)) {\n reclaimContext.collectedBlocks().addDeleteBlock(removedBlocks[i]);\n }\n }\n }", "@Test (timeout=180000)\n public void testMissingRegionInfoQualifier() throws Exception {\n Connection connection = ConnectionFactory.createConnection(conf);\n TableName table = TableName.valueOf(\"testMissingRegionInfoQualifier\");\n try {\n setupTable(table);\n\n // Mess it up by removing the RegionInfo for one region.\n final List<Delete> deletes = new LinkedList<Delete>();\n Table meta = connection.getTable(TableName.META_TABLE_NAME, hbfsckExecutorService);\n MetaScanner.metaScan(connection, new MetaScanner.MetaScannerVisitor() {\n\n @Override\n public boolean processRow(Result rowResult) throws IOException {\n HRegionInfo hri = MetaTableAccessor.getHRegionInfo(rowResult);\n if (hri != null && !hri.getTable().isSystemTable()) {\n Delete delete = new Delete(rowResult.getRow());\n delete.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);\n deletes.add(delete);\n }\n return true;\n }\n\n @Override\n public void close() throws IOException {\n }\n });\n meta.delete(deletes);\n\n // Mess it up by creating a fake hbase:meta entry with no associated RegionInfo\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER, Bytes.toBytes(\"node1:60020\")));\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER, Bytes.toBytes(1362150791183L)));\n meta.close();\n\n HBaseFsck hbck = doFsck(conf, false);\n assertTrue(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n\n // fix reference file\n hbck = doFsck(conf, true);\n\n // check that reference file fixed\n assertFalse(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n } finally {\n cleanupTable(table);\n }\n connection.close();\n }", "@Test\n public void prefixTrimNotReachingSequencer() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n CorfuRuntime rt = getNewRuntime();\n\n TestRule dropSequencerTrim = new TestRule()\n .requestMatches(msg -> msg.getPayload().getPayloadCase()\n .equals(CorfuMessage.RequestPayloadMsg.PayloadCase.SEQUENCER_TRIM_REQUEST))\n .drop();\n addClientRule(rt, dropSequencerTrim);\n\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> tableB = openTable(rt, streamNameB);\n\n // thread 1: populates the maps with mapSize items\n scheduleConcurrently(1, ignored_task_num -> {\n populateMaps(tableSize, tableA, tableB);\n });\n\n // thread 2: periodic checkpoint of the maps, repeating ITERATIONS_VERY_LOW times,\n // and immediate prefix-trim of the log up to the checkpoint position\n scheduleConcurrently(1, ignored_task_num -> {\n mapCkpointAndTrim(rt, tableA, tableB);\n });\n\n // thread 3: repeated ITERATION_LOW times starting a fresh runtime, and instantiating the maps.\n // they should rebuild from the latest checkpoint (if available).\n // performs some sanity checks on the map state\n\n // In this test checkpoints and trims are happening in a loop for several iterations,\n // so a trim exception can occur if after loading from the latest checkpoint,\n // updates to the stream have been already trimmed (1st trimmedException), the stream\n // is reset, and on the second iteration the same scenario can happen (2nd trimmedException)\n // which is the total number of retries.\n scheduleConcurrently(PARAMETERS.NUM_ITERATIONS_LOW, ignored_task_num -> {\n validateMapRebuild(tableSize, false, true);\n });\n\n executeScheduled(PARAMETERS.CONCURRENCY_SOME, PARAMETERS.TIMEOUT_LONG);\n\n // Verify that last trim cycle completed (async task) before validating map rebuild\n Token currentTrimMark = Token.UNINITIALIZED;\n while(currentTrimMark.getSequence() != lastValidCheckpoint.getSequence() + 1L) {\n currentTrimMark = getNewRuntime().getAddressSpaceView().getTrimMark();\n }\n\n // finally, after all three threads finish, again we start a fresh runtime and instantiate the maps.\n // This time we check that the new map instances contain all values\n validateMapRebuild(tableSize, true, false);\n } finally {\n rt.shutdown();\n }\n }", "void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }", "@Override\r\n public int numberOfBlocksToRemove() {\r\n return blocks().size();\r\n }", "@Test\n public void testColocatedPartitionedRegion_NoFullPath() throws Throwable {\n createCacheInAllVms();\n redundancy = 0;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n\n regionName = \"A\";\n colocatedWith = null;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"B\";\n colocatedWith = \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"C\";\n colocatedWith = \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"D\";\n colocatedWith = \"B\";\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"E\";\n colocatedWith = \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"F\";\n colocatedWith = \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"G\";\n colocatedWith = \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"H\";\n colocatedWith = \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"I\";\n colocatedWith = \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"J\";\n colocatedWith = \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"K\";\n colocatedWith = \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"L\";\n colocatedWith = \"E\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"M\";\n colocatedWith = \"F\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"N\";\n colocatedWith = \"G\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"O\";\n colocatedWith = \"I\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"A\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"D\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"H\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"B\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"K\"));\n }", "@Test\n public void testMetaBlocks() throws Exception {\n metablocks(\"none\");\n metablocks(\"gz\");\n }", "@Test\n public void testSingleBlock()\n {\n BlockMetadata.FileBlockMetadata block = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, 0L, 0L,\n testMeta.dataFile.length(), true, -1, testMeta.dataFile.length());\n\n testMeta.blockReader.beginWindow(1);\n testMeta.blockReader.blocksMetadataInput.process(block);\n testMeta.blockReader.endWindow();\n\n List<Object> actualMessages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), actualMessages.size());\n\n for (int i = 0; i < actualMessages.size(); i++) {\n byte[] msg = (byte[])actualMessages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@Test (timeout=180000)\n public void testNotInHdfsWithReplicas() throws Exception {\n TableName table =\n TableName.valueOf(\"tableNotInHdfs\");\n HBaseAdmin admin = new HBaseAdmin(conf);\n try {\n HRegionInfo[] oldHris = new HRegionInfo[2];\n setupTableWithRegionReplica(table, 2);\n assertEquals(ROWKEYS.length, countRows());\n NavigableMap<HRegionInfo, ServerName> map = MetaScanner.allTableRegions(TEST_UTIL.getConnection(),\n tbl.getName());\n int i = 0;\n // store the HRIs of the regions we will mess up\n for (Map.Entry<HRegionInfo, ServerName> m : map.entrySet()) {\n if (m.getKey().getStartKey().length > 0 &&\n m.getKey().getStartKey()[0] == Bytes.toBytes(\"B\")[0]) {\n LOG.debug(\"Initially server hosting \" + m.getKey() + \" is \" + m.getValue());\n oldHris[i++] = m.getKey();\n }\n }\n // make sure data in regions\n TEST_UTIL.getHBaseAdmin().flush(table.getName());\n\n // Mess it up by leaving a hole in the hdfs data\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), false, false, true); // don't rm meta\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {ERROR_CODE.NOT_IN_HDFS});\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length - 2, countRows());\n\n // the following code checks whether the old primary/secondary has\n // been unassigned and the new primary/secondary has been assigned\n i = 0;\n HRegionInfo[] newHris = new HRegionInfo[2];\n // get all table's regions from meta\n map = MetaScanner.allTableRegions(TEST_UTIL.getConnection(), tbl.getName());\n // get the HRIs of the new regions (hbck created new regions for fixing the hdfs mess-up)\n for (Map.Entry<HRegionInfo, ServerName> m : map.entrySet()) {\n if (m.getKey().getStartKey().length > 0 &&\n m.getKey().getStartKey()[0] == Bytes.toBytes(\"B\")[0]) {\n newHris[i++] = m.getKey();\n }\n }\n // get all the online regions in the regionservers\n Collection<ServerName> servers = admin.getClusterStatus().getServers();\n Set<HRegionInfo> onlineRegions = new HashSet<HRegionInfo>();\n for (ServerName s : servers) {\n List<HRegionInfo> list = admin.getOnlineRegions(s);\n onlineRegions.addAll(list);\n }\n // the new HRIs must be a subset of the online regions\n assertTrue(onlineRegions.containsAll(Arrays.asList(newHris)));\n // the old HRIs must not be part of the set (removeAll would return false if\n // the set didn't change)\n assertFalse(onlineRegions.removeAll(Arrays.asList(oldHris)));\n } finally {\n cleanupTable(table);\n admin.close();\n }\n }", "public void repair () {\n WriteableByteArray whole = new WriteableByteArray ();\n WriteableByteArray piece = new WriteableByteArray ();\n int [] offsets = new int [sequences.size ()];\n for (int index = 0;index < commonSequence.length;index++) {\n byte b = commonSequence [index];\n int i = 0;\n for (byte [] sequence : sequences)\n if (sequence [index + offsets [i++]] != b) {\n CommonSequence commonPiece = new CommonSequence ();\n i = 0;\n for (byte [] s : sequences) {\n piece.reset ();\n for (;;) {\n byte c = s [index + offsets [i]];\n if (c == b)\n break;\n piece.write (c);\n offsets [i]++;\n }\n commonPiece.add (piece.toByteArray ());\n i++;\n }\n whole.write (commonPiece.getCommonSequence ());\n break;\n }\n // all sequences now coincide at b\n whole.write (b);\n }\n commonSequence = whole.toByteArray ();\n matched = false;\n throw new NotTestedException ();\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "void showsame() {\n\t\tint count;\n\t\tprintstatus = idle;\n\t\tif (newinfo.other[printnewline] != printoldline) {\n\t\t\tSystem.err.println(\"BUG IN LINE REFERENCING\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcount = blocklen[printoldline];\n\t\tprintoldline += count;\n\t\tprintnewline += count;\n\t}", "@Test\n public void testWithAllCorruptReplicas() throws Exception {\n Configuration conf = new HdfsConfiguration();\n conf.setLong(DFSConfigKeys.DFS_BLOCKREPORT_INTERVAL_MSEC_KEY, 1000L);\n conf.set(DFSConfigKeys.DFS_NAMENODE_RECONSTRUCTION_PENDING_TIMEOUT_SEC_KEY, Integer.toString(2));\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).numDataNodes(3).build();\n FileSystem fs = cluster.getFileSystem();\n final FSNamesystem namesystem = cluster.getNamesystem();\n\n try {\n final Path fileName = new Path(\"/foo1\");\n DFSTestUtil.createFile(fs, fileName, 2, (short) 3, 0L);\n DFSTestUtil.waitReplication(fs, fileName, (short) 3);\n\n ExtendedBlock block = DFSTestUtil.getFirstBlock(fs, fileName);\n corruptBlock(cluster, fs, fileName, 0, block);\n\n corruptBlock(cluster, fs, fileName, 1, block);\n\n corruptBlock(cluster, fs, fileName, 2, block);\n\n // wait for 3 seconds so that all block reports are processed.\n try {\n Thread.sleep(3000);\n } catch (InterruptedException ignored) {\n }\n\n assertEquals(0, countReplicas(namesystem, block).liveReplicas());\n assertEquals(3, countReplicas(namesystem, block).corruptReplicas());\n\n namesystem.setReplication(fileName.toString(), (short) 1);\n\n // wait for 3 seconds so that all block reports are processed.\n try {\n Thread.sleep(3000);\n } catch (InterruptedException ignored) {\n }\n\n assertEquals(0, countReplicas(namesystem, block).liveReplicas());\n assertEquals(3, countReplicas(namesystem, block).corruptReplicas());\n\n } finally {\n cluster.shutdown();\n }\n }", "@Test\n public void tesInvalidateMissingBlock() throws Exception {\n long blockSize = 1024;\n int heatbeatInterval = 1;\n HdfsConfiguration c = new HdfsConfiguration();\n c.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, heatbeatInterval);\n c.setLong(DFS_BLOCK_SIZE_KEY, blockSize);\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(c).\n numDataNodes(1).build();\n try {\n cluster.waitActive();\n DFSTestUtil.createFile(cluster.getFileSystem(), new Path(\"/a\"),\n blockSize, (short)1, 0);\n\n String bpid = cluster.getNameNode().getNamesystem().getBlockPoolId();\n DataNode dn = cluster.getDataNodes().get(0);\n FsDatasetImpl fsdataset = (FsDatasetImpl) dn.getFSDataset();\n List<ReplicaInfo> replicaInfos = fsdataset.getFinalizedBlocks(bpid);\n assertEquals(1, replicaInfos.size());\n\n ReplicaInfo replicaInfo = replicaInfos.get(0);\n String blockPath = replicaInfo.getBlockURI().getPath();\n String metaPath = replicaInfo.getMetadataURI().getPath();\n File blockFile = new File(blockPath);\n File metaFile = new File(metaPath);\n\n // Mock local block file not found when disk with some exception.\n fsdataset.invalidateMissingBlock(bpid, replicaInfo);\n\n // Assert local block file wouldn't be deleted from disk.\n assertTrue(blockFile.exists());\n // Assert block info would be removed from ReplicaMap.\n assertEquals(\"null\",\n fsdataset.getReplicaString(bpid, replicaInfo.getBlockId()));\n BlockManager blockManager = cluster.getNameNode().\n getNamesystem().getBlockManager();\n GenericTestUtils.waitFor(() ->\n blockManager.getLowRedundancyBlocksCount() == 1, 100, 5000);\n\n // Mock local block file found when disk back to normal.\n FsVolumeSpi.ScanInfo info = new FsVolumeSpi.ScanInfo(\n replicaInfo.getBlockId(), blockFile.getParentFile().getAbsoluteFile(),\n blockFile.getName(), metaFile.getName(), replicaInfo.getVolume());\n fsdataset.checkAndUpdate(bpid, info);\n GenericTestUtils.waitFor(() ->\n blockManager.getLowRedundancyBlocksCount() == 0, 100, 5000);\n } finally {\n cluster.shutdown();\n }\n }", "@Test\n\tpublic void deleteA_useAwithB_danglingEdgeTest() {\n\t\tHenshinResourceSet resourceSet = new HenshinResourceSet(PATH);\n\n\t\t// Load the module:\n\t\tModule module = resourceSet.getModule(\"simpleTgRules.henshin\", false);\n\n\t\tUnit deleteAUnit = module.getUnit(\"deleteA\");\n\t\tRule deleteARule = (Rule) deleteAUnit;\n\n\t\tUnit useAwithBUnit = module.getUnit(\"useAwithB\");\n\t\tRule useAwithBRule = (Rule) useAwithBUnit;\n\n\t\tConflictAnalysis atomicCoreCPA = new ConflictAnalysis(deleteARule, useAwithBRule);\n\t\tList<ConflictAtom> computedConflictAtoms = atomicCoreCPA.computeConflictAtoms();\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, computedConflictAtoms.size());\n\t\t// System.out.println(\"number of conflict atoms:\n\t\t// \"+computedConflictAtoms.size());\n\t\t// for(ConflictAtom conflictAtom : computedConflictAtoms){\n\t\t// System.out.println(conflictAtom);\n\t\t// }\n\n\t\tAtomCandidateComputation candComp = new AtomCandidateComputation(deleteARule, useAwithBRule);\n\t\tList<Span> conflictAtomCandidates = candComp.computeAtomCandidates();\n\n\t\tSet<MinimalConflictReason> reasons = new HashSet<>();//\n\t\tfor (Span candidate : conflictAtomCandidates) {\n\t\t\tnew MinimalReasonComputation(deleteARule, useAwithBRule).computeMinimalConflictReasons(candidate, reasons);\n\t\t}\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, reasons.size());\n\n\t\t// Set<Span> minimalConflictReasons = reasons;\n\t\t// System.out.println(\"number of minimal conflict reasons:\n\t\t// \"+minimalConflictReasons.size());\n\t\t// for(Span minimalConflictReason : minimalConflictReasons){\n\t\t// System.out.println(minimalConflictReason);\n\t\t// }\n\t}", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.toString(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.getUngappedLength(byteArray0);\n Nucleotide nucleotide0 = Nucleotide.Gap;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.decode(byteArray0, 0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray2 = defaultNucleotideCodec2.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.toString(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec4.isGap(byteArray0, 1553);\n defaultNucleotideCodec0.getNumberOfGapsUntil(byteArray2, (-3166));\n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec5.isGap(byteArray0, 75);\n DefaultNucleotideCodec defaultNucleotideCodec6 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray3 = new byte[0];\n // Undeclared exception!\n try { \n defaultNucleotideCodec6.isGap(byteArray3, (-1));\n fail(\"Expecting exception: BufferUnderflowException\");\n \n } catch(BufferUnderflowException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.nio.Buffer\", e);\n }\n }", "@Test (timeout=180000)\n public void testDupeStartKey() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeStartKey\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"A2\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS});\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows()); // seems like the \"bigger\" region won.\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "boolean splitAndInsert(T t, Pair<String,LeafNode> ln){\n\n int splitTimes=0;\n\n Interval[] intervals = ln.second().getIntervals();\n assert intervals.length==leafNodeCapacity;\n Interval[] leftIntervals = new Interval[leafNodeCapacity];\n Interval[] rightIntervals = new Interval[leafNodeCapacity];\n Interval[] tempIntervals = null;\n\n int leftIntervalNumber=0;\n int rightIntervalNumber=0;\n TriangleShape lnTriangle = ln.second().triangle;\n String lnString=ln.first();\n TriangleShape leftTriangle=null;\n TriangleShape rightTriangle=null;\n String leftString=null;\n String rightString =null;\n\n while(leftIntervalNumber==0 || rightIntervalNumber==0){\n\n if(splitTimes==10000) {\n System.out.println(\"splitTimes=\"+splitTimes);\n System.out.println(\"you should increase the parameter leafNodeCapaity value!!!\");\n assert false;\n }\n else\n splitTimes++;\n\n leftTriangle=lnTriangle.leftTriangle();\n leftIntervalNumber=0;\n rightIntervalNumber=0;\n\n for(Interval i: intervals){\n if(Geom2DSuits.contains(leftTriangle,i.getLowerBound(),i.getUpperBound())){\n leftIntervals[leftIntervalNumber]=i;\n leftIntervalNumber++;\n }\n else{\n rightIntervals[rightIntervalNumber]=i;\n rightIntervalNumber++;\n }\n }\n\n if(leftIntervalNumber==0){//all located at left side\n rightTriangle = lnTriangle.rightTriangle();\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(leftString);\n lnTriangle = rightTriangle;\n lnString=rightString;\n\n tempIntervals=intervals;\n intervals=rightIntervals;\n rightIntervals=tempIntervals;\n }\n else if(rightIntervalNumber==0){//all located at right side\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(rightString);\n lnTriangle = leftTriangle;\n lnString=leftString;\n\n tempIntervals=intervals;\n intervals=leftIntervals;\n leftIntervals=tempIntervals;\n }\n else { //spit successfully\n\n leftString=lnString+\"0\";\n LeafNode leftNode = new LeafNode();\n leftNode.intervals=leftIntervals;\n leftNode.size=leftIntervalNumber;\n leftNode.triangle=leftTriangle;\n\n rightString = lnString+\"1\";\n LeafNode rightNode = new LeafNode();\n rightTriangle = lnTriangle.rightTriangle();\n rightNode.triangle=rightTriangle;\n rightNode.size=rightIntervalNumber;\n rightNode.intervals=rightIntervals;\n\n if(leftNode.insert(t)!=1){\n rightNode.insert(t);\n }\n\n Identifier lnPage =leafInfos.remove(ln.first());\n writeNode(leftNode,lnPage);\n Identifier rightPage = CommonSuits.createIdentifier(-1L);\n writeNode(rightNode,rightPage);\n\n leafInfos.put(leftString,lnPage);\n leafInfos.put(rightString,rightPage);\n return true;\n }\n }\n return false;\n }", "@Test\n public void testColocatedPartitionedRegion() throws Throwable {\n createCacheInAllVms();\n redundancy = 0;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n\n regionName = \"A\";\n colocatedWith = null;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"B\";\n colocatedWith = SEPARATOR + \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"C\";\n colocatedWith = SEPARATOR + \"A\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"D\";\n colocatedWith = SEPARATOR + \"B\";\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"E\";\n colocatedWith = SEPARATOR + \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"F\";\n colocatedWith = SEPARATOR + \"B\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"G\";\n colocatedWith = SEPARATOR + \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"H\";\n colocatedWith = SEPARATOR + \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"I\";\n colocatedWith = SEPARATOR + \"C\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"J\";\n colocatedWith = SEPARATOR + \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"K\";\n colocatedWith = SEPARATOR + \"D\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"L\";\n colocatedWith = SEPARATOR + \"E\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"M\";\n colocatedWith = SEPARATOR + \"F\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"N\";\n colocatedWith = SEPARATOR + \"G\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n regionName = \"O\";\n colocatedWith = SEPARATOR + \"I\";\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"A\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"D\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"H\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"B\"));\n\n accessor.invoke(() -> PRColocationDUnitTest.validateColocatedRegions(\"K\"));\n }", "@Override\n protected void updateEliminations() {\n\n }", "void removeExistingGlue() {\r\n\t\tfor (int i = outputStream.size() - 1; i >= 0; i--) {\r\n\t\t\tRTObject c = outputStream.get(i);\r\n\t\t\tif (c instanceof Glue) {\r\n\t\t\t\toutputStream.remove(i);\r\n\t\t\t} else if (c instanceof ControlCommand) { // e.g.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// BeginString\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toutputStreamDirty();\r\n\t}", "@Test\n public void testWhenDecreasingReplication() throws Exception {\n Configuration conf = new HdfsConfiguration();\n conf.setLong(DFSConfigKeys.DFS_BLOCKREPORT_INTERVAL_MSEC_KEY, 1000L);\n conf.set(DFSConfigKeys.DFS_NAMENODE_RECONSTRUCTION_PENDING_TIMEOUT_SEC_KEY, Integer.toString(2));\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).numDataNodes(3).build();\n FileSystem fs = cluster.getFileSystem();\n final FSNamesystem namesystem = cluster.getNamesystem();\n\n try {\n final Path fileName = new Path(\"/foo1\");\n DFSTestUtil.createFile(fs, fileName, 2, (short) 3, 0L);\n DFSTestUtil.waitReplication(fs, fileName, (short) 3);\n\n ExtendedBlock block = DFSTestUtil.getFirstBlock(fs, fileName);\n corruptBlock(cluster, fs, fileName, 0, block);\n\n DFSTestUtil.waitReplication(fs, fileName, (short) 2);\n\n assertEquals(2, countReplicas(namesystem, block).liveReplicas());\n assertEquals(1, countReplicas(namesystem, block).corruptReplicas());\n\n namesystem.setReplication(fileName.toString(), (short) 2);\n\n // wait for 3 seconds so that all block reports are processed.\n try {\n Thread.sleep(3000);\n } catch (InterruptedException ignored) {\n }\n\n assertEquals(2, countReplicas(namesystem, block).liveReplicas());\n assertEquals(0, countReplicas(namesystem, block).corruptReplicas());\n\n } finally {\n cluster.shutdown();\n }\n }", "@Converted(kind = Converted.Kind.MANUAL_SEMANTIC,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp\", line = 324,\n old_source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp\", old_line = 323,\n FQN=\"EmitBlockID\", NM=\"_ZL11EmitBlockIDjPKcRN4llvm15BitstreamWriterERNS1_15SmallVectorImplIyEE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.frontend/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp -nm=_ZL11EmitBlockIDjPKcRN4llvm15BitstreamWriterERNS1_15SmallVectorImplIyEE\")\n//</editor-fold>\npublic static void EmitBlockID(/*uint*/int ID, /*const*/char$ptr/*char P*/ Name, \n BitstreamWriter /*&*/ Stream, \n SmallVectorImplULong /*&*/ Record) {\n Record.clear();\n Record.push_back($uint2ullong(ID));\n Stream.EmitRecord(BlockInfoCodes.BLOCKINFO_CODE_SETBID.getValue(), Record);\n \n // Emit the block name if present.\n if (!(Name != null) || Name.$at(0) == 0) {\n return;\n }\n \n Record.clear();\n Name = Native.$tryClone(Name);\n while ((Name.$star() != 0)) {\n Record.push_back($char2ullong(Name.$postInc().$star()));\n }\n \n Stream.EmitRecord(BlockInfoCodes.BLOCKINFO_CODE_BLOCKNAME.getValue(), Record);\n}", "public void testNewSeqCloneNamedSrcConflict() throws Exception\n {\n String accid = \"T00513\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setCellLine(\"HeLa\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertEquals(new Integer(-40), ms.getMSKey());\n // check qc tables\n String sql = \"select count(*) from QC_MS_NameConflict \" +\n \"where _jobstream_key = \" + jobkey;\n ResultsNavigator nav = radar.executeQuery(sql);\n RowReference row = nav.getRowReference();\n nav.next();\n assertEquals(new Integer(1), row.getInt(1));\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public void testConstructors()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n\n // verify we can read a 'good' HeaderBlockWriter (also test\n // getPropertyStart)\n block.setPropertyStart(0x87654321);\n output = new ByteArrayOutputStream(512);\n block.writeBlocks(output);\n assertEquals(0x87654321,\n new HeaderBlockReader(new ByteArrayInputStream(output\n .toByteArray())).getPropertyStart());\n }", "public void unifyAdjacentChests(World par1World, int par2, int par3, int par4) {\n\t\tif (!par1World.isRemote) {\n\t\t\tBlock l = par1World.getBlock(par2, par3, par4 - 1);\n\t\t\tBlock i1 = par1World.getBlock(par2, par3, par4 + 1);\n\t\t\tBlock j1 = par1World.getBlock(par2 - 1, par3, par4);\n\t\t\tBlock k1 = par1World.getBlock(par2 + 1, par3, par4);\n\t\t\tBlock l1;\n\t\t\tBlock i2;\n\n\t\t\tbyte b0;\n\t\t\tint j2;\n\n\t\t\tif (l != this && i1 != this) {\n\t\t\t\tif (j1 != this && k1 != this) {\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (l.func_149730_j() && !i1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (i1.func_149730_j() && !l.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j1.func_149730_j() && !k1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 5;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (k1.func_149730_j() && !j1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 4;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tl1 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 - 1);\n\t\t\t\t\ti2 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 + 1);\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (j1 == this) {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 - 1, par3, par4);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 + 1, par3, par4);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j2 == 2) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((l.func_149730_j() || l1.func_149730_j()) && !i1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((i1.func_149730_j() || i2.func_149730_j()) && !l.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tl1 = par1World.getBlock(par2 - 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\ti2 = par1World.getBlock(par2 + 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\tb0 = 5;\n\n\t\t\t\tif (l == this) {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 - 1);\n\t\t\t\t} else {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 + 1);\n\t\t\t\t}\n\n\t\t\t\tif (j2 == 4) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\n\t\t\t\tif ((j1.func_149730_j() || l1.func_149730_j()) && !k1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\tb0 = 5;\n\t\t\t\t}\n\n\t\t\t\tif ((k1.func_149730_j() || i2.func_149730_j()) && !j1.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpar1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 3);\n\t\t}\n\t}", "public void remove( int position )\n {\n caller = \"remove\";\n byte byteSize = memoryPool[position];\n Integer size = (int)byteSize;\n // remove the record starting at the given position\n for ( int i = 0; i < size; i++ )\n {\n memoryPool[position + i] = 0;\n }\n\n findBlock( position );\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( position, size );\n freeBlockList.add( freeBlock );\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n int key = (Integer)keyArray[0];\n\n caller = \"check\";\n int currentValue = freeBlockList.getCurrentElement().get( key );\n int mergePoint1 = position + currentValue;\n int rightKeyMatch = findBlock( mergePoint1 );\n\n int mergePoint2 = position;\n int leftKeyMatch = -1;\n int priorValue = -1;\n int key2 = -1;\n if ( 1==1)\n {\n findBlock(mergePoint2);\n freeBlockList.previous();\n if ( !( freeBlockList.getCurrent().equals( freeBlockList.getHead() ) )\n && !( freeBlockList.getCurrent().equals( freeBlockList.getTail() ) ) &&\n !( freeBlockList.getCurrent().equals( null )))\n {\n Object[] keyArray2 =\n freeBlockList.getCurrentElement().keySet().toArray();\n key2 = (Integer)keyArray2[0];\n priorValue = freeBlockList.getCurrentElement().get( key2 );\n leftKeyMatch = key2 + priorValue;\n }\n\n }\n\n if ( rightKeyMatch == mergePoint1 )\n {\n findBlock(mergePoint1);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get( rightKeyMatch );\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n position,\n currentValue + rightValue );\n //if()\n }\n if(leftKeyMatch == mergePoint2) {\n findBlock(mergePoint2);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get(leftKeyMatch);\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n key2,\n priorValue + rightValue );\n }\n\n }", "public void fragmentationOccured(ByteBufferWithInfo newFragment) {}", "@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}", "public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }", "@Test\n\tpublic void testForwardFrameShiftBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6647537, PositionType.ZERO_BASED),\n\t\t\t\t\"TGCCCCACCT\", \"CCC\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(6, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1225_1234delinsCCC\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Cys409Profs*127\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.SPLICE_REGION),\n\t\t\t\tannotation1.effects);\n\t}", "@Test\n public void mergeWithStopAfterFirstSegment() throws IOException, MkvElementVisitException {\n final CountVisitor countVisitor = runMergerToStopAtFirstNonMatchingSegment(\"output_get_media.mkv\");\n\n //Validate that there is only one EBML header and segment and tracks\n //but there are 32 clusters and tracks as expected.\n assertCountsAfterMerge(countVisitor);\n }", "int regionSplitBits4PVTable();", "private void step4(Node node) {\n\t\tHashMap<String, ArrayList<String>> svn = node.svN;\r\n\t\tHashMap<String, ArrayList<String>> cn = node.cN;\r\n\t\tArrayList<String> keys = node.keysN;\r\n\t\tString c = checksubset(cn);\r\n\r\n\t\tif (c != null) {\r\n\t\t\tfor (int i = 0; i < keys.size(); i++) {\r\n\t\t\t\tif (svn.get(keys.get(i)).contains(c)) {\r\n\t\t\t\t\tsvn.get(keys.get(i)).remove(c);\r\n\t\t\t\t\tif (svn.get(keys.get(i)).size() <= 1) {\r\n\t\t\t\t\t\tsvn.remove(keys.get(i));\r\n\t\t\t\t\t\tkeys.remove(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcn.remove(c);\r\n\t\t}\r\n\t}", "@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}", "@Test(timeout = 30000)\n public void testMoveBlockFailure() {\n // Test copy\n testMoveBlockFailure(conf);\n // Test hardlink\n conf.setBoolean(DFSConfigKeys\n .DFS_DATANODE_ALLOW_SAME_DISK_TIERING, true);\n conf.setDouble(DFSConfigKeys\n .DFS_DATANODE_RESERVE_FOR_ARCHIVE_DEFAULT_PERCENTAGE, 0.5);\n testMoveBlockFailure(conf);\n }", "public ByteBuf discardSomeReadBytes()\r\n/* 113: */ {\r\n/* 114:130 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 115:131 */ return super.discardSomeReadBytes();\r\n/* 116: */ }", "private void b()\r\n/* 67: */ {\r\n/* 68: 73 */ this.c.clear();\r\n/* 69: 74 */ this.e.clear();\r\n/* 70: */ }", "void m63702c() {\n for (C17455a c17455a : this.f53839c) {\n c17455a.f53844b.clear();\n }\n }", "@Test\n public void testPrefixTrimOnNonAddress() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n final String streamName = \"test\";\n\n CorfuRuntime rt = getNewRuntime();\n CorfuRuntime runtime = getNewRuntime();\n\n try {\n PersistentCorfuTable<String, Long> testTable = rt.getObjectsView()\n .build()\n .setTypeToken(new TypeToken<PersistentCorfuTable<String, Long>>() {})\n .setStreamName(streamName)\n .open();\n\n // Checkpoint (should return -1 as no actual data is written yet)\n MultiCheckpointWriter<PersistentCorfuTable<String, Long>> mcw = new MultiCheckpointWriter<>();\n mcw.addMap(testTable);\n Token checkpointAddress = mcw.appendCheckpoints(rt, author);\n\n // Write several entries into the log.\n for (int i = 0; i < tableSize; i++) {\n try {\n testTable.insert(String.valueOf(i), (long) i);\n } catch (TrimmedException te) {\n // shouldn't happen\n te.printStackTrace();\n throw te;\n }\n }\n\n // Prefix Trim on checkpoint snapshot address\n rt.getAddressSpaceView().prefixTrim(checkpointAddress);\n rt.getAddressSpaceView().gc();\n rt.getAddressSpaceView().invalidateServerCaches();\n rt.getAddressSpaceView().invalidateClientCache();\n\n // Rebuild stream from fresh runtime\n try {\n PersistentCorfuTable<String, Long> localTestTable = openTable(runtime, streamName);\n for (int i = 0; i < localTestTable.size(); i++) {\n assertThat(localTestTable.get(String.valueOf(i))).isEqualTo(i);\n }\n assertThat(localTestTable.size()).isEqualTo(tableSize);\n } catch (TrimmedException te) {\n // shouldn't happen\n te.printStackTrace();\n throw te;\n }\n } finally {\n rt.shutdown();\n runtime.shutdown();\n }\n }", "public void testMissingRouteAfterMerge() throws Exception {\n a=createNode(LON, \"A\", LON_CLUSTER, null);\n b=createNode(LON, \"B\", LON_CLUSTER, null);\n Util.waitUntilAllChannelsHaveSameView(30000, 1000, a, b);\n\n x=createNode(SFO, \"X\", SFO_CLUSTER, null);\n assert x.getView().size() == 1;\n\n RELAY2 ar=a.getProtocolStack().findProtocol(RELAY2.class),\n xr=x.getProtocolStack().findProtocol(RELAY2.class);\n\n assert ar != null && xr != null;\n\n JChannel a_bridge=null, x_bridge=null;\n for(int i=0; i < 20; i++) {\n a_bridge=ar.getBridge(SFO);\n x_bridge=xr.getBridge(LON);\n if(a_bridge != null && x_bridge != null && a_bridge.getView().size() == 2 && x_bridge.getView().size() == 2)\n break;\n Util.sleep(500);\n }\n\n assert a_bridge != null && x_bridge != null;\n\n System.out.println(\"A's bridge channel: \" + a_bridge.getView());\n System.out.println(\"X's bridge channel: \" + x_bridge.getView());\n assert a_bridge.getView().size() == 2 : \"bridge view is \" + a_bridge.getView();\n assert x_bridge.getView().size() == 2 : \"bridge view is \" + x_bridge.getView();\n\n Route route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n // Now inject a partition into site LON\n System.out.println(\"Creating partition between A and B:\");\n createPartition(a, b);\n\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n assert a.getView().size() == 1 && b.getView().size() == 1;\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n View bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n System.out.println(\"bridge_view = \" + bridge_view);\n\n // Now make A and B form a cluster again:\n View merge_view=new MergeView(a.getAddress(), 10, Arrays.asList(a.getAddress(), b.getAddress()),\n Arrays.asList(View.create(a.getAddress(), 5, a.getAddress()),\n View.create(b.getAddress(), 5, b.getAddress())));\n GMS gms=a.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n gms=b.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n\n Util.waitUntilAllChannelsHaveSameView(20000, 500, a, b);\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n\n for(int i=0; i < 20; i++) {\n bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n if(bridge_view != null && bridge_view.size() == 2)\n break;\n Util.sleep(500);\n }\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n }", "@Test\n public void testInMemoryParentCleanup()\n throws IOException, InterruptedException, ExecutionException {\n HMaster master = TEST_UTIL.getHBaseCluster().getMaster();\n final AssignmentManager am = master.getAssignmentManager();\n final ServerManager sm = master.getServerManager();\n\n Admin admin = TEST_UTIL.getAdmin();\n admin.catalogJanitorSwitch(false);\n\n final TableName tableName = name.getTableName();\n Table t = TEST_UTIL.createTable(tableName, FAMILY);\n TEST_UTIL.loadTable(t, FAMILY, false);\n\n RegionLocator locator = TEST_UTIL.getConnection().getRegionLocator(tableName);\n List<HRegionLocation> allRegionLocations = locator.getAllRegionLocations();\n\n // We need to create a valid split with daughter regions\n HRegionLocation parent = allRegionLocations.get(0);\n List<HRegionLocation> daughters = splitRegion(parent.getRegion());\n LOG.info(\"Parent region: \" + parent);\n LOG.info(\"Daughter regions: \" + daughters);\n assertNotNull(\"Should have found daughter regions for \" + parent, daughters);\n\n assertTrue(\"Parent region should exist in RegionStates\",\n am.getRegionStates().isRegionInRegionStates(parent.getRegion()));\n assertTrue(\"Parent region should exist in ServerManager\",\n sm.isRegionInServerManagerStates(parent.getRegion()));\n\n // clean the parent\n Result r = MetaMockingUtil.getMetaTableRowResult(parent.getRegion(), null,\n daughters.get(0).getRegion(), daughters.get(1).getRegion());\n CatalogJanitor.cleanParent(master, parent.getRegion(), r);\n\n // wait for procedures to complete\n Waiter.waitFor(TEST_UTIL.getConfiguration(), 10 * 1000, new Waiter.Predicate<Exception>() {\n @Override\n public boolean evaluate() throws Exception {\n ProcedureExecutor<MasterProcedureEnv> pe = master.getMasterProcedureExecutor();\n for (Procedure<MasterProcedureEnv> proc : pe.getProcedures()) {\n if (proc.getClass().isAssignableFrom(GCRegionProcedure.class) && proc.isFinished()) {\n return true;\n }\n }\n return false;\n }\n });\n\n assertFalse(\"Parent region should have been removed from RegionStates\",\n am.getRegionStates().isRegionInRegionStates(parent.getRegion()));\n assertFalse(\"Parent region should have been removed from ServerManager\",\n sm.isRegionInServerManagerStates(parent.getRegion()));\n\n }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "@Test (timeout=180000)\n public void testHDFSRegioninfoMissing() throws Exception {\n TableName table = TableName.valueOf(\"tableHDFSRegioninfoMissing\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the meta data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, false, true, HRegionInfo.DEFAULT_REPLICA_ID);\n TEST_UTIL.getHBaseAdmin().enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.ORPHAN_HDFS_REGION,\n ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN});\n // holes are separate from overlap groups\n assertEquals(0, hbck.getOverlapGroups(table).size());\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "private void ssMergeBackward(int r19, int[] r20, int r21, int r22, int r23, int r24, int r25) {\n /*\n r18 = this;\n r0 = r18;\n r4 = r0.SA;\n r17 = r24 - r23;\n r5 = r21 + r17;\n r17 = r24 - r23;\n r0 = r20;\n r1 = r21;\n r2 = r23;\n r3 = r17;\n ssBlockSwap(r0, r1, r4, r2, r3);\n r16 = 0;\n r17 = r5 + -1;\n r17 = r20[r17];\n if (r17 >= 0) goto L_0x0071;\n L_0x001d:\n r16 = r16 | 1;\n r17 = r5 + -1;\n r17 = r20[r17];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x0027:\n r17 = r23 + -1;\n r17 = r4[r17];\n if (r17 >= 0) goto L_0x0078;\n L_0x002d:\n r16 = r16 | 2;\n r17 = r23 + -1;\n r17 = r4[r17];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n L_0x0037:\n r17 = r24 + -1;\n r15 = r4[r17];\n r6 = r24 + -1;\n r8 = r5 + -1;\n r10 = r23 + -1;\n L_0x0041:\n r0 = r18;\n r1 = r25;\n r14 = r0.ssCompare(r12, r13, r1);\n if (r14 <= 0) goto L_0x009b;\n L_0x004b:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0063;\n L_0x004f:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a9;\n L_0x005f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0063:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x007f;\n L_0x006d:\n r20[r8] = r15;\n r6 = r7;\n L_0x0070:\n return;\n L_0x0071:\n r17 = r5 + -1;\n r17 = r20[r17];\n r12 = r19 + r17;\n goto L_0x0027;\n L_0x0078:\n r17 = r23 + -1;\n r17 = r4[r17];\n r13 = r19 + r17;\n goto L_0x0037;\n L_0x007f:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x0094;\n L_0x0089:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x0094:\n r17 = r20[r9];\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x009b:\n if (r14 >= 0) goto L_0x00fb;\n L_0x009d:\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x00b5;\n L_0x00a1:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x01a5;\n L_0x00b1:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x00b5:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x00e3;\n L_0x00c5:\n r9 = r8;\n L_0x00c6:\n r0 = r21;\n if (r0 >= r9) goto L_0x00d9;\n L_0x00ca:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x00c6;\n L_0x00d9:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x00e3:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x00f3;\n L_0x00e7:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00f3:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00fb:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0113;\n L_0x00ff:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a1;\n L_0x010f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0113:\n r7 = r6 + -1;\n r17 = r20[r8];\n r17 = r17 ^ -1;\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x0124;\n L_0x011f:\n r20[r8] = r15;\n r6 = r7;\n goto L_0x0070;\n L_0x0124:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x019f;\n L_0x012e:\n r6 = r7;\n L_0x012f:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x019c;\n L_0x013f:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x0143:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x0171;\n L_0x0153:\n r0 = r21;\n if (r0 >= r9) goto L_0x0166;\n L_0x0157:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x0153;\n L_0x0166:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x0171:\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x018e;\n L_0x0175:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x017d:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x0193;\n L_0x0181:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x018e:\n r17 = r20[r9];\n r12 = r19 + r17;\n goto L_0x017d;\n L_0x0193:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x019c:\n r10 = r11;\n r6 = r7;\n goto L_0x012f;\n L_0x019f:\n r6 = r7;\n goto L_0x0143;\n L_0x01a1:\n r8 = r9;\n r6 = r7;\n goto L_0x00ff;\n L_0x01a5:\n r10 = r11;\n r6 = r7;\n goto L_0x00a1;\n L_0x01a9:\n r8 = r9;\n r6 = r7;\n goto L_0x004f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.ssMergeBackward(int, int[], int, int, int, int, int):void\");\n }", "@Test\n public void run() {\n Frame f = new TestUtil().parseTestFile(\"smalldata/junit/syn_2659x1049.csv.gz\");\n // Create two lockable frames in KV store\n Frame fr1 = new Frame(Key.<Frame>make(), f.names(), f.vecs());\n Frame fr2 = new Frame(Key.<Frame>make(), f.names(), f.vecs());\n // Lock the frames against writes\n fr1.delete_and_lock();\n fr2.delete_and_lock();\n int i = 0;\n try {\n // try to delete the write-locked frames -> will throw an exception\n fr1.delete();\n fr2.delete(); // won't be reached\n } catch (Throwable t) {\n Log.info(\"Correctly unable to delete (was locked): \" + t.getClass()); //either AssertionError if local or DistributedException if remote\n i++;\n } finally {\n // second attempt: will unlock and delete properly\n new UnlockTask().doAllNodes(); // without this line, there will be a leak (and assertion won't be shown)\n fr1.delete();\n fr2.delete();\n f.delete();\n Log.info(\"Able to delete after unlocking.\");\n }\n Assert.assertTrue(i == 1);\n }", "int regionSplitBits4DownSampledTable();", "public interface NoCopySpan\n/* */ {\n/* */ public static class Concrete\n/* */ implements NoCopySpan\n/* */ {\n/* */ public Concrete() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }\n/* */ }\n/* */ }", "private void smoothAdjacentCollapsibles(TECarpentersBlock TE, int src_quadrant)\n \t{\n \t\tTECarpentersBlock TE_XN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_XP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_ZN = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_ZP = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZNN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZNP = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZPN = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZPP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\t\n \t\tint height = Collapsible.getQuadHeight(TE, src_quadrant);\n \t\t\n \t\tswitch (src_quadrant)\n \t\t{\n \t\tcase Collapsible.QUAD_XZNN:\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_XZNN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZNP:\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XZNP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPN:\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XZPN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPP:\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_XZPP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t}", "private ASMInstrumenter() {\n insertMutationProbes = SmartSHARKAdapter.getInstance().getMutationsWithLines();\n\n /*\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.<init>\", new TreeSet<Integer>(){{add(2);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.method1\", new TreeSet<Integer>(){{add(25); add(29);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.method2\", new TreeSet<Integer>(){{add(44);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.A.metho5\", new TreeSet<Integer>(){{add(59);}});\n insertMutationProbes.put(\"de.ugoe.cs.testproject.B.method1\", new TreeSet<Integer>(){{add(25);}});\n */\n //System.out.println(insertMutationProbes);\n }", "public BleScanFragment() {\n //empty\n }", "void warningsForUnresolvedFragRefs()\n { \n FragRefs[] unresolved = (FragRefs[])fragRefs.values().toArray(new FragRefs[fragRefs.size()]);\n for (int i=0; i<unresolved.length; ++i)\n { \n FragRefs r = unresolved[i];\n for (int j=0; j < r.uris.size(); ++j)\n {\n Uri uri = (Uri)r.uris.get(j);\n XElem elem = (XElem)r.elems.get(j);\n warning(\"Unresolved fragment reference '\" + uri + \"'\", elem);\n }\n } \n }", "private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }", "public interface NotificationsSectionSplitter {\n Pair<List<Object>, List<NotificationsEdgeFields>> mo469a(List<Object> list, List<NotificationsEdgeFields> list2);\n\n void mo470a(Bundle bundle);\n}", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "private void DeleteBurnInsOnPreviousSamples() {\n\t\tif (gibbs_sample_num <= num_gibbs_burn_in + 1 && gibbs_sample_num >= 2){\n\t\t\tgibbs_samples_of_bart_trees[gibbs_sample_num - 2] = null;\n\t\t}\n\t}", "@Test (timeout=180000)\n public void testContainedRegionOverlap() throws Exception {\n TableName table =\n TableName.valueOf(\"tableContainedRegionOverlap\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating an overlap in the metadata\n HRegionInfo hriOverlap =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A2\"), Bytes.toBytes(\"B\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriOverlap);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriOverlap);\n ServerName server = regionStates.getRegionServerOfRegion(hriOverlap);\n TEST_UTIL.assertRegionOnServer(hriOverlap, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.OVERLAP_IN_REGION_CHAIN });\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the problem.\n doFsck(conf, true);\n\n // verify that overlaps are fixed\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "public void Inverse_macroblock_partition_scanning_process(){\n\t\tx=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,0);\n\t\ty=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,1);\n\n\t}", "@Override\n public boolean collided() {\n return false;\n }", "@Test\n\tpublic void testForwardStartLoss() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640669, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(1, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1_3delinsCGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation1.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the left.\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640660, PositionType.ZERO_BASED),\n\t\t\t\t\"CCCTCCAGACC\", \"GTTG\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(1, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-9_2delinsGTTG\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation2.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the right.\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640671, PositionType.ZERO_BASED),\n\t\t\t\t\"GGACGGCTCCT\", \"CTTG\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(1, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.3_13delinsCTTG\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation3.effects);\n\n\t\t// Deletion from before transcript, reaching into the start codon.\n\t\tGenomeChange change4 = new GenomeChange(\n\t\t\t\tnew GenomePosition(refDict, '+', 1, 6640399, PositionType.ZERO_BASED),\n\t\t\t\t\"TCTCACCAGGCCCTTCTTCACGACCCTGGCCCCCCATCCAGCATCCCCCCTGGCCAATCCAATATGGCCCCCGGCCCCCGGGAGGCTGTCAGTGTGTTCCAGCCCTCCGCGTGCACCCCTCACCCTGACCCAAGCCCTCGTGCTGATAAATATGATTATTTGAGTAGAGGCCAACTTCCCGTTTCTCTCTCTTGACTCCAGGAGCTTTCTCTTGCATACCCTCGCTTAGGCTGGCCGGGGTGTCACTTCTGCCTCCCTGCCCTCCAGACCA\",\n\t\t\t\t\"ACCT\");\n\t\tAnnotation annotation4 = new BlockSubstitutionAnnotationBuilder(infoForward, change4).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation4.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation4.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-69-201_1delinsACCT\", annotation4.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation4.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation4.effects);\n\t}", "private static void loadBlockFromArray(ArrayList<String> items, int start, int end) {\n int id = -1;\n String speciesName = null;\n Long speciesID = new Long(0);\n String label = null;\n //String command = null;\n boolean hasBreed = false;\n String breed = null;\n double xcor = 0.0, ycor = 0.0;\n int numSockets = 0;\n int[] socketBlockIDs = new int[0];\n int plugID = -1;\n int controlNextID = -1, controlPrevID = -1;\n String shapeName = null;\n boolean procedureShown = true;\n /*int correspondingParameterID = -1;*/\n boolean isBad = false;\n// boolean isPermanentlyBad = false;\n\n int i = start;\n while (i<end) {\n String item = items.get(i).toString();\n\n if (item.equals(\"species-name\")) {\n speciesName = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"Species name \" + speciesName);\n continue;\n }\n\n if (item.equals(\"id\")) {\n String value = items.get(i+1).toString();\n id = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"block id \" + id);\n continue;\n }\n\n if (item.equals(\"species-id\")) {\n String value = items.get(i+1).toString();\n speciesID = Long.valueOf(value);\n i += 2;\n //System.out.println(\"Species id \" + speciesID);\n continue;\n }\n\n if (item.equals(\"label\")) {\n label = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"label \" + label);\n continue;\n }\n\n if (item.equals(\"command\")) {\n //command = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"command \" + command);\n continue;\n }\n\n if (item.equals(\"has-breed\")) {\n String value = items.get(i+1).toString();\n hasBreed = (value.equals(\"true\"));\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n\n if (item.equals(\"breed\")) {\n breed = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"breed \" + breed);\n continue;\n }\n\n if (item.equals(\"xcor\")) {\n String value = items.get(i+1).toString();\n xcor = Double.parseDouble(value);\n i += 2;\n //System.out.println(\"xcor \" + xcor);\n continue;\n }\n\n if (item.equals(\"ycor\")) {\n String value = items.get(i+1).toString();\n ycor = Double.parseDouble(value);\n i += 2;\n //System.out.println(\"ycor \" + ycor);\n continue;\n }\n \n if (item.equals(\"is-bad\")) {\n String value = items.get(i+1).toString();\n isBad = value.equals(\"true\");\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n \n if (item.equals(\"is-bad\")) {\n// String value = items.get(i+1).toString();\n// isPermanentlyBad = value.equals(\"true\");\n i += 2;\n //System.out.println(\"has breed \" + hasBreed);\n continue;\n }\n\n if (item.equals(\"plug\")) {\n String value = items.get(i+1).toString();\n plugID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"plug \" + plugID);\n continue;\n }\n\n if (item.equals(\"control-prev\")) {\n String value = items.get(i+1).toString();\n controlPrevID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"control prev \" + controlPrevID);\n continue;\n }\n\n if (item.equals(\"control-next\")) {\n String value = items.get(i+1).toString();\n controlNextID = Integer.parseInt(value);\n i += 2;\n //System.out.println(\"control next \" + controlNextID);\n continue;\n }\n\n if (item.equals(\"sockets\")) {\n String value = items.get(i+1).toString();\n //System.out.println(\"found sockets \" + value);\n numSockets = Integer.parseInt(value);\n i += 2;\n\n socketBlockIDs = new int[numSockets];\n\n for(int currentSocket = 0; currentSocket < numSockets; currentSocket++) {\n String sockLabel = items.get(i).toString();\n assert(sockLabel.equals(\"socket\"));\n socketBlockIDs[currentSocket] = Integer.parseInt(items.get(i+1).toString());\n //System.out.println(\"socket \" + currentSocket + \" block id \" + socketBlockIDs[currentSocket]);\n i += 2;\n }\n continue;\n }\n\n if(item.equals(\"shape-icon\")) {\n shapeName = items.get(i + 1).toString();\n i += 2;\n //System.out.println(\"shape-icon = \" + value);\n //shape = AvailableShapes.getShape(value);\n continue;\n }\n\n if (item.equals(\"procedure-shown\")) {\n String value = items.get(i+1).toString();\n i += 2;\n //System.out.println(\"procedure-shown \" + value);\n procedureShown = value.equalsIgnoreCase(\"true\");\n //this is the isMinimized value for procedures\n continue;\n }\n \n if (item.equals(\"parent\")) {\n //String value = items.get(i+1).toString();\n i += 2;\n //correspondingParameterID = Integer.parseInt(value);\n //System.out.println(\"parentID \" + value);\n continue;\n }\n\n // skip the next if we haven't found anything we know\n //System.out.println(\"unknown tag \" + items.get(i).toString());\n i+=2;\n }\n \n assert(id >= 0);\n //assert(speciesName != null);\n assert(speciesID >= 0);\n assert( (hasBreed && breed != null) || !hasBreed);\n \n //apply constraints if any\n VariableConstraints constraint = null;\n if(speciesName.equals(\"global-var-decl-num\") && (constraintsMap.containsKey(label))){\n \tconstraint = constraintsMap.get(label);\n }\n \n //instantiate block data\n BlockData bd = new BlockData(id, speciesName, speciesMap.get(speciesID+speciesName), \n label, xcor, ycor, socketBlockIDs, hasBreed, \n breed, plugID, controlNextID, controlPrevID, isBad, procedureShown, shapeName, constraint);\n \n //for run blocks: forever, runonce, runforsometime, set their labels to be\n //the breeds\n if(bd.getGenusName().equals(\"forever\") || bd.getGenusName().equals(\"runonce\") ||\n bd.getGenusName().equals(\"runforsometime\")){\n bd.setBreedLabels(pages);\n }\n \n //check if block has negative coors, if so translate the coors\n if(bd.getXCor() < 0)\n \tbd.setXCor(-bd.getXCor());\n if(bd.getYCor() < 0)\n \tbd.setYCor(-bd.getYCor());\n \n blocks.add(bd);\n \n if(DEBUG) \n \t System.out.println(\"Loaded: \"+bd);\n \n \n \n }", "private void m16569e() {\n this.f14723f.removeMessages(this.f14724g);\n }", "private static void registerBlock(Block b)\n\t{\n\t}", "private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }", "private void collapseIgloo() {\n blocks.sort(Comparator.comparing(a -> a.center.getY()));\n\n double minDistance, distance;\n Point3D R = new Point3D(0, -1, 0);\n for (int i = 0; i < blocks.size(); i++) {\n minDistance = Double.MAX_VALUE;\n for (int j = i - 1; j >= 0; j--) {\n if (boundingSpheresIntersect(blocks.get(i), blocks.get(j))) {\n distance = minDistance(blocks.get(i), blocks.get(j), R);\n if (distance < minDistance) {\n minDistance = distance;\n }\n }\n }\n if (minDistance != Double.MAX_VALUE) {\n blocks.get(i).move(R.multiply(minDistance));\n }\n }\n }", "SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;", "void removebranchGroupInU(int i,boolean dead)\n {\n if(dead==true)\n {\n \n if(controlArray[i]==true)\n {\n //branchGroupArray[i].detach();\n \n branchGroupArray[i]=null ;\n controlArray[i]=false ;\n }\n \n \n }\n \n else \n {\n if(controlArray[i]==true)\n {\n branchGroupArray[i].detach();\n //branchGroupArray[i]=null;\n controlArray[i]=false ;\n }\n }\n }" ]
[ "0.5616294", "0.55942976", "0.538713", "0.53289926", "0.5291915", "0.52713037", "0.5265817", "0.51654917", "0.5124979", "0.51175344", "0.50814337", "0.5015438", "0.50060856", "0.49950424", "0.49880096", "0.49770907", "0.49739215", "0.4967251", "0.49483877", "0.4916859", "0.49118146", "0.49058828", "0.48798707", "0.4876251", "0.48323554", "0.48104122", "0.47918302", "0.4763238", "0.47595137", "0.4757517", "0.47439677", "0.4729138", "0.47280055", "0.47052124", "0.46984005", "0.46857956", "0.4653826", "0.4651643", "0.465023", "0.465014", "0.46469975", "0.46419445", "0.46343547", "0.4627781", "0.46259806", "0.4610667", "0.46015623", "0.45970896", "0.45951104", "0.45949858", "0.45839295", "0.4578797", "0.45766598", "0.45741063", "0.45704293", "0.4566461", "0.45416155", "0.45379278", "0.45329562", "0.45260718", "0.4518928", "0.4516427", "0.45125827", "0.45115724", "0.45040718", "0.45038182", "0.45016846", "0.44969365", "0.44911203", "0.44889173", "0.44868225", "0.44853964", "0.44758716", "0.44746965", "0.44665986", "0.4460835", "0.4458405", "0.44576418", "0.44569755", "0.44542685", "0.44530663", "0.44498038", "0.44470206", "0.44398576", "0.44319516", "0.44218725", "0.4420072", "0.44142276", "0.44140363", "0.44134456", "0.44118914", "0.44118246", "0.44115105", "0.4410409", "0.44087827", "0.44085076", "0.44084403", "0.4406035", "0.44029313", "0.4401194", "0.4401186" ]
0.0
-1
/ JADX WARNING: Removed duplicated region for block: B:124:0x0101 A[SYNTHETIC, Splitter:B:124:0x0101]
public static boolean SafeUnzipFile(ZipFile zf, String filepathinzip, File fileinfiledir, long crc) { BufferedOutputStream Output_fos = null; BufferedInputStream bufbr = null; try { ZipEntry ze = zf.getEntry(filepathinzip); if (ze == null) { if (Output_fos != null) { try { Output_fos.close(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e) { e.printStackTrace(); return false; } } } catch (IOException e2) { e2.printStackTrace(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e3) { e3.printStackTrace(); return false; } } return false; } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e4) { e4.printStackTrace(); return false; } } } } return false; } if (crc != 0) { if (ze.getCrc() == crc) { if (Output_fos != null) { try { Output_fos.close(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e5) { e5.printStackTrace(); return false; } } } catch (IOException e6) { e6.printStackTrace(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e7) { e7.printStackTrace(); return false; } } return false; } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e8) { e8.printStackTrace(); return false; } } } } return true; } } byte[] buf = UnzipFile(zf, ze); if (1 != 0) { BufferedOutputStream Output_fos2 = new BufferedOutputStream(new FileOutputStream(fileinfiledir)); try { Output_fos2.write(buf, 0, buf.length); Output_fos = Output_fos2; } catch (Exception e9) { e = e9; Output_fos = Output_fos2; try { e.printStackTrace(); if (Output_fos != null) { try { Output_fos.close(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e10) { e10.printStackTrace(); return false; } } } catch (IOException e11) { e11.printStackTrace(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e12) { e12.printStackTrace(); return false; } } return false; } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e13) { e13.printStackTrace(); return false; } } } } return false; } catch (Throwable th) { th = th; if (Output_fos != null) { } throw th; } } catch (Throwable th2) { th = th2; Output_fos = Output_fos2; if (Output_fos != null) { try { Output_fos.close(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e14) { e14.printStackTrace(); return false; } } } catch (IOException e15) { e15.printStackTrace(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e16) { e16.printStackTrace(); return false; } } return false; } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e17) { e17.printStackTrace(); return false; } } } } throw th; } } if (Output_fos != null) { try { Output_fos.close(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e18) { e18.printStackTrace(); return false; } } } catch (IOException e19) { e19.printStackTrace(); if (bufbr != null) { try { bufbr.close(); } catch (IOException e20) { e20.printStackTrace(); return false; } } return false; } finally { if (bufbr != null) { try { bufbr.close(); } catch (IOException e21) { e21.printStackTrace(); return false; } } } } return true; } catch (Exception e22) { e = e22; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test (timeout=180000)\n public void testValidLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n // TODO: fixHdfsHoles does not work against splits, since the parent dir lingers on\n // for some time until children references are deleted. HBCK erroneously sees this as\n // overlapping regions\n HBaseFsck hbck = doFsck(\n conf, true, true, false, false, false, true, true, true, false, false, false, null);\n assertErrors(hbck, new ERROR_CODE[] {}); //no LINGERING_SPLIT_PARENT reported\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "@Test (timeout=180000)\n public void testLingeringSplitParent() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringSplitParent\");\n Table meta = null;\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(\"B\");\n\n // Delete one region from meta, but not hdfs, unassign it.\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, false);\n\n // Create a new meta entry to fake it as a split parent.\n meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n HRegionInfo hri = location.getRegionInfo();\n\n HRegionInfo a = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"B\"), Bytes.toBytes(\"BM\"));\n HRegionInfo b = new HRegionInfo(tbl.getName(),\n Bytes.toBytes(\"BM\"), Bytes.toBytes(\"C\"));\n\n hri.setOffline(true);\n hri.setSplit(true);\n\n MetaTableAccessor.addRegionToMeta(meta, hri, a, b);\n meta.close();\n admin.flush(TableName.META_TABLE_NAME);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // regular repair cannot fix lingering split parent\n hbck = doFsck(conf, true);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN });\n assertFalse(hbck.shouldRerun());\n hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});\n\n // fix lingering split parent\n hbck = new HBaseFsck(conf, hbfsckExecutorService);\n hbck.connect();\n hbck.setDisplayFullReport(); // i.e. -details\n hbck.setTimeLag(0);\n hbck.setFixSplitParents(true);\n hbck.onlineHbck();\n assertTrue(hbck.shouldRerun());\n hbck.close();\n\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITA_QUALIFIER).isEmpty());\n assertTrue(result.getColumnCells(HConstants.CATALOG_FAMILY,\n HConstants.SPLITB_QUALIFIER).isEmpty());\n admin.flush(TableName.META_TABLE_NAME);\n\n // fix other issues\n doFsck(conf, true);\n\n // check that all are fixed\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n IOUtils.closeQuietly(meta);\n }\n }", "public void handlesBlockingRegionDrag() {\r\n \t\tObject[] cells = graph.getDescendants(graph.getSelectionCells());\r\n \t\t// Put cells not in a blocking region to back\r\n \t\tHashSet<Object> putBack = new HashSet<Object>();\r\n \t\tfor (Object cell2 : cells) {\r\n \t\t\tif (cell2 instanceof JmtCell && ((JmtCell) cell2).parentChanged()) {\r\n \t\t\t\t// This cell was moved in, out or between blocking regions\r\n \t\t\t\tJmtCell cell = (JmtCell) cell2;\r\n \t\t\t\tObject key = ((CellComponent) cell.getUserObject()).getKey();\r\n \t\t\t\tObject oldRegionKey, newRegionKey;\r\n \t\t\t\tif (!(cell.getParent() instanceof BlockingRegion)) {\r\n \t\t\t\t\t// Object removed from blocking region\r\n \t\t\t\t\tputBack.add(cell2);\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Allow adding of removed objects to a new blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(true);\r\n \t\t\t\t} else if (cell.getPrevParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t// Object changed blocking region\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tmodel.addRegionStation(newRegionKey, key);\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// Object added to a blocking region\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tif (!model.addRegionStation(newRegionKey, key)) {\r\n \t\t\t\t\t\t// object cannot be added to blocking region (for\r\n \t\t\t\t\t\t// example it's a source)\r\n \t\t\t\t\t\tcell.removeFromParent();\r\n \t\t\t\t\t\tgraph.getModel().insert(new Object[] { cell }, null, null, null, null);\r\n \t\t\t\t\t\tputBack.add(cell);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Doesn't allow adding of selected objects to a new\r\n \t\t\t\t\t// blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(false);\r\n \t\t\t\t}\r\n \t\t\t\t// Resets parent for this cell\r\n \t\t\t\tcell.resetParent();\r\n \t\t\t}\r\n \t\t\t// Avoid insertion of a blocking region in an other\r\n \t\t\telse if (cell2 instanceof BlockingRegion) {\r\n \t\t\t\tBlockingRegion region = (BlockingRegion) cell2;\r\n \t\t\t\tif (region.getParent() != null) {\r\n \t\t\t\t\tregion.removeFromParent();\r\n \t\t\t\t\tgraph.getModel().insert(new Object[] { region }, null, null, null, null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Puts cells removed from blocking regiont on background\r\n \t\tgraph.getModel().toBack(putBack.toArray());\r\n \t}", "public abstract void removeBlock();", "void reportSplit(HRegionInfo oldRegion, HRegionInfo newRegionA,\n HRegionInfo newRegionB) {\n \n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_SPLIT, oldRegion,\n (oldRegion.getRegionNameAsString() + \" split; daughters: \" +\n newRegionA.getRegionNameAsString() + \", \" +\n newRegionB.getRegionNameAsString()).getBytes()));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionA));\n outboundMsgs.add(new HMsg(HMsg.Type.MSG_REPORT_OPEN, newRegionB));\n }", "@Test(timeout=75000)\n public void testSplitDaughtersNotInMeta() throws Exception {\n TableName table = TableName.valueOf(\"testSplitdaughtersNotInMeta\");\n Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService);\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // make sure data in regions, if in wal only there is no data loss\n admin.flush(table);\n HRegionLocation location = tbl.getRegionLocation(Bytes.toBytes(\"B\"));\n\n HRegionInfo hri = location.getRegionInfo();\n\n // Disable CatalogJanitor to prevent it from cleaning up the parent region\n // after split.\n admin.enableCatalogJanitor(false);\n\n // do a regular split\n byte[] regionName = location.getRegionInfo().getRegionName();\n admin.splitRegion(location.getRegionInfo().getRegionName(), Bytes.toBytes(\"BM\"));\n TestEndToEndSplitTransaction.blockUntilRegionSplit(conf, 60000, regionName, true);\n\n PairOfSameType<HRegionInfo> daughters =\n MetaTableAccessor.getDaughterRegions(meta.get(new Get(regionName)));\n\n // Delete daughter regions from meta, but not hdfs, unassign it.\n Map<HRegionInfo, ServerName> hris = tbl.getRegionLocations();\n undeployRegion(connection, hris.get(daughters.getFirst()), daughters.getFirst());\n undeployRegion(connection, hris.get(daughters.getSecond()), daughters.getSecond());\n\n List<Delete> deletes = new ArrayList<>();\n deletes.add(new Delete(daughters.getFirst().getRegionName()));\n deletes.add(new Delete(daughters.getSecond().getRegionName()));\n meta.delete(deletes);\n\n // Remove daughters from regionStates\n RegionStates regionStates = TEST_UTIL.getMiniHBaseCluster().getMaster().\n getAssignmentManager().getRegionStates();\n regionStates.deleteRegion(daughters.getFirst());\n regionStates.deleteRegion(daughters.getSecond());\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN }); //no LINGERING_SPLIT_PARENT\n\n // now fix it. The fix should not revert the region split, but add daughters to META\n hbck = doFsck(\n conf, true, true, false, false, false, false, false, false, false, false, false, null);\n assertErrors(hbck,\n new ERROR_CODE[] { ERROR_CODE.NOT_IN_META_OR_DEPLOYED, ERROR_CODE.NOT_IN_META_OR_DEPLOYED,\n ERROR_CODE.HOLE_IN_REGION_CHAIN });\n\n // assert that the split hbase:meta entry is still there.\n Get get = new Get(hri.getRegionName());\n Result result = meta.get(get);\n assertNotNull(result);\n assertNotNull(MetaTableAccessor.getHRegionInfo(result));\n\n assertEquals(ROWKEYS.length, countRows());\n\n // assert that we still have the split regions\n assertEquals(tbl.getStartKeys().length, SPLITS.length + 1 + 1); //SPLITS + 1 is # regions pre-split.\n assertNoErrors(doFsck(conf, false)); //should be fixed by now\n } finally {\n admin.enableCatalogJanitor(true);\n meta.close();\n cleanupTable(table);\n }\n }", "protected abstract void splitBAMs();", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}", "@Test (timeout=180000)\n public void testDupeRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeRegion\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"B\"));\n\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n // Yikes! The assignment manager can't tell between diff between two\n // different regions with the same start/endkeys since it doesn't\n // differentiate on ts/regionId! We actually need to recheck\n // deployments!\n while (findDeployedHSI(getDeployedHRIs((HBaseAdmin) admin), hriDupe) == null) {\n Thread.sleep(250);\n }\n\n LOG.debug(\"Finished assignment of dupe region\");\n\n // TODO why is dupe region different from dupe start keys?\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS});\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows()); // seems like the \"bigger\" region won.\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "@Test (timeout=180000)\n public void testSidelineOverlapRegion() throws Exception {\n TableName table =\n TableName.valueOf(\"testSidelineOverlapRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating an overlap\n MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();\n HMaster master = cluster.getMaster();\n HRegionInfo hriOverlap1 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"AB\"));\n master.assignRegion(hriOverlap1);\n master.getAssignmentManager().waitForAssignment(hriOverlap1);\n HRegionInfo hriOverlap2 =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"AB\"), Bytes.toBytes(\"B\"));\n master.assignRegion(hriOverlap2);\n master.getAssignmentManager().waitForAssignment(hriOverlap2);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS, ERROR_CODE.OVERLAP_IN_REGION_CHAIN});\n assertEquals(3, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // mess around the overlapped regions, to trigger NotServingRegionException\n Multimap<byte[], HbckInfo> overlapGroups = hbck.getOverlapGroups(table);\n ServerName serverName = null;\n byte[] regionName = null;\n for (HbckInfo hbi: overlapGroups.values()) {\n if (\"A\".equals(Bytes.toString(hbi.getStartKey()))\n && \"B\".equals(Bytes.toString(hbi.getEndKey()))) {\n regionName = hbi.getRegionName();\n\n // get an RS not serving the region to force bad assignment info in to META.\n int k = cluster.getServerWith(regionName);\n for (int i = 0; i < 3; i++) {\n if (i != k) {\n HRegionServer rs = cluster.getRegionServer(i);\n serverName = rs.getServerName();\n break;\n }\n }\n\n HBaseFsckRepair.closeRegionSilentlyAndWait((HConnection) connection,\n cluster.getRegionServer(k).getServerName(), hbi.getHdfsHRI());\n admin.offline(regionName);\n break;\n }\n }\n\n assertNotNull(regionName);\n assertNotNull(serverName);\n try (Table meta = connection.getTable(TableName.META_TABLE_NAME, tableExecutorService)) {\n Put put = new Put(regionName);\n put.add(HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER,\n Bytes.toBytes(serverName.getHostAndPort()));\n meta.put(put);\n }\n\n // fix the problem.\n HBaseFsck fsck = new HBaseFsck(conf, hbfsckExecutorService);\n fsck.connect();\n fsck.setDisplayFullReport(); // i.e. -details\n fsck.setTimeLag(0);\n fsck.setFixAssignments(true);\n fsck.setFixMeta(true);\n fsck.setFixHdfsHoles(true);\n fsck.setFixHdfsOverlaps(true);\n fsck.setFixHdfsOrphans(true);\n fsck.setFixVersionFile(true);\n fsck.setSidelineBigOverlaps(true);\n fsck.setMaxMerge(2);\n fsck.onlineHbck();\n fsck.close();\n\n // verify that overlaps are fixed, and there are less rows\n // since one region is sidelined.\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertTrue(ROWKEYS.length > countRows());\n } finally {\n cleanupTable(table);\n }\n }", "public void cleanupOldBlocks (long threshTime) ;", "@Test\n\tpublic void testForwardNonFrameBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642114, PositionType.ZERO_BASED),\n\t\t\t\t\"TAAACA\", \"GTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.691-3_693delinsGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Trp231Val\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_ACCEPTOR),\n\t\t\t\tannotation1.effects);\n\n\t\t// deletion of three codons, insertion of one\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642126, PositionType.ZERO_BASED),\n\t\t\t\t\"GTGGTTCAA\", \"ACC\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(2, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.700_708delinsACC\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Val234_Gln236delinsThr\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION), annotation2.effects);\n\n\t\t// deletion of three codons, insertion of one, includes truncation of replacement ref from the right\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642134, PositionType.ZERO_BASED),\n\t\t\t\t\"AGTGGAGGAT\", \"CTT\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(2, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.708_716delinsCT\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Gln236Hisfs*16\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION), annotation3.effects);\n\t}", "public void collapseBlocks() {\n // Create it if it's null\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n // Get the vertex to block lookup\n Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n // Go through the entities and accumulate the positions\n Map<MyGraph,Double> x_sum = new HashMap<MyGraph,Double>(), y_sum = new HashMap<MyGraph,Double>();\n Iterator<String> it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity)) {\n\t Iterator<MyGraph> it_mg = v_to_b.get(entity).iterator();\n\t while (it_mg.hasNext()) {\n\t MyGraph mg = it_mg.next();\n\t if (x_sum.containsKey(mg) == false) { x_sum.put(mg,0.0); y_sum.put(mg,0.0); }\n\t x_sum.put(mg,x_sum.get(mg)+pt.getX()); y_sum.put(mg,y_sum.get(mg)+pt.getY());\n\t }\n } else System.err.println(\"Vertex To Block Lookup missing \\\"\" + entity + \"\\\"\");\n }\n // Now position those entities that aren't cut vertices at the center of the graph\n it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity) && bcc.getCutVertices().contains(entity) == false) {\n MyGraph mg = v_to_b.get(entity).iterator().next();\n\t entity_to_wxy.put(entity, new Point2D.Double(x_sum.get(mg)/mg.getNumberOfEntities(),y_sum.get(mg)/mg.getNumberOfEntities()));\n\t transform(entity);\n\t}\n }\n // Re-render\n zoomToFit(); repaint();\n }\n }", "int numberOfBlocksToRemove();", "@Test\n public void testSplitOnCreatedSegment() throws Exception {\n InternalKnowledgeBase kbase1 = buildKnowledgeBase(\"r1\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\");\n kbase1.addPackages( buildKnowledgePackage(\"r2\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r3\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\\n\") );\n kbase1.addPackages( buildKnowledgePackage(\"r4\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \\n\") );\n\n InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession());\n List list = new ArrayList();\n wm.setGlobal(\"list\", list);\n\n wm.insert(new X(1));\n wm.insert(new X(2));\n wm.insert(new X(3));\n wm.flushPropagations();\n\n RuleTerminalNode rtn1 = getRtn( \"org.kie.r1\", kbase1 );\n\n PathMemory pm1 = wm.getNodeMemory(rtn1);\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(2);\n SegmentMemory[] smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(4);\n assertThat(smems[0]).isNull();\n assertThat(smems[2]).isNull();\n assertThat(smems[3]).isNull();\n SegmentMemory sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n\n kbase1.addPackages( buildKnowledgePackage(\"r5\", \" A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(3;)\\n\") );\n wm.fireAllRules();\n\n assertThat(pm1.getLinkedSegmentMask()).isEqualTo(6);\n smems = pm1.getSegmentMemories();\n assertThat(smems.length).isEqualTo(5);\n assertThat(smems[0]).isNull();\n assertThat(smems[3]).isNull();\n assertThat(smems[4]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n\n RuleTerminalNode rtn5 = getRtn( \"org.kie.r5\", kbase1 );\n PathMemory pm5 = wm.getNodeMemory(rtn5);\n assertThat(pm5.getLinkedSegmentMask()).isEqualTo(6);\n\n smems = pm5.getSegmentMemories();\n assertThat(smems.length).isEqualTo(3);\n assertThat(smems[0]).isNull();\n sm = smems[1];\n assertThat(sm.getPos()).isEqualTo(1);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(2);\n\n sm = smems[2];\n assertThat(sm.getPos()).isEqualTo(2);\n assertThat(sm.getSegmentPosMaskBit()).isEqualTo(4);\n }", "@Test (timeout=180000)\n public void testDegenerateRegions() throws Exception {\n TableName table = TableName.valueOf(\"tableDegenerateRegions\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"B\"), Bytes.toBytes(\"B\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf,false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DEGENERATE_REGION, ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS });\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "public int numberOfBlocksToRemove() {\r\n return 105;\r\n }", "private void split(Map<Integer, SortedSet> invariants, Partition partition) {\n int nonEmptyInvariants = invariants.keySet().size();\n if (nonEmptyInvariants > 1) {\n List<Integer> invariantKeys = new ArrayList<Integer>();\n invariantKeys.addAll(invariants.keySet());\n partition.removeCell(currentBlockIndex);\n int k = currentBlockIndex;\n if (splitOrder == SplitOrder.REVERSE) {\n Collections.sort(invariantKeys);\n } else {\n Collections.sort(invariantKeys, Collections.reverseOrder());\n }\n for (int h : invariantKeys) {\n SortedSet setH = invariants.get(h);\n// System.out.println(\"adding block \" + setH + \" at \" + k + \" h=\" + h);\n partition.insertCell(k, setH);\n blocksToRefine.add(setH);\n k++;\n \n }\n // skip over the newly added blocks\n currentBlockIndex += nonEmptyInvariants - 1;\n }\n }", "@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}", "private void t2() {\n // read from a super region, write to a sub region: keep both\n readProtected();\n writeDefault();\n }", "void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }", "private void t3() {\n // write to a super region, read from a subregion: only keep write\n writeProtected();\n readDefault();\n }", "@Test (timeout=180000)\n public void testRegionHole() throws Exception {\n TableName table =\n TableName.valueOf(\"tableRegionHole\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"B\"),\n Bytes.toBytes(\"C\"), true, true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] {\n ERROR_CODE.HOLE_IN_REGION_CHAIN});\n // holes are separate from overlap groups\n assertEquals(0, hbck.getOverlapGroups(table).size());\n\n // fix hole\n doFsck(conf, true);\n\n // check that hole fixed\n assertNoErrors(doFsck(conf,false));\n assertEquals(ROWKEYS.length - 2 , countRows()); // lost a region so lost a row\n } finally {\n cleanupTable(table);\n }\n }", "void transform() {\n\t\tint oldline, newline;\n\t\tint oldmax = oldinfo.maxLine + 2; /* Count pseudolines at */\n\t\tint newmax = newinfo.maxLine + 2; /* ..front and rear of file */\n\n\t\tfor (oldline = 0; oldline < oldmax; oldline++)\n\t\t\toldinfo.other[oldline] = -1;\n\t\tfor (newline = 0; newline < newmax; newline++)\n\t\t\tnewinfo.other[newline] = -1;\n\n\t\tscanunique(); /* scan for lines used once in both files */\n\t\tscanafter(); /* scan past sure-matches for non-unique blocks */\n\t\tscanbefore(); /* scan backwards from sure-matches */\n\t\tscanblocks(); /* find the fronts and lengths of blocks */\n\t}", "public LinearGenomeShrinkMutation(){\n\t\tnumberGenesToRemove = 1;\n\t}", "private static void registerBlock(Block b)\n\t{\n\t}", "private void smoothAdjacentCollapsibles(TECarpentersBlock TE, int src_quadrant)\n \t{\n \t\tTECarpentersBlock TE_XN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_XP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord) : null;\n \t\tTECarpentersBlock TE_ZN = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_ZP = TE.worldObj.getBlockId(TE.xCoord, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZNN = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZNP = TE.worldObj.getBlockId(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord - 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\tTECarpentersBlock TE_XZPN = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord - 1) : null;\n \t\tTECarpentersBlock TE_XZPP = TE.worldObj.getBlockId(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) == blockID ? (TECarpentersBlock)TE.worldObj.getBlockTileEntity(TE.xCoord + 1, TE.yCoord, TE.zCoord + 1) : null;\n \t\t\n \t\tint height = Collapsible.getQuadHeight(TE, src_quadrant);\n \t\t\n \t\tswitch (src_quadrant)\n \t\t{\n \t\tcase Collapsible.QUAD_XZNN:\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_XZNN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZNP:\n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tif (TE_XZNP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZNP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPN:\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XZPN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPN, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZN, Collapsible.QUAD_XZPP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase Collapsible.QUAD_XZPP:\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_ZP, Collapsible.QUAD_XZPN, height);\n \t\t\t}\n \t\t\tif (TE_XZPP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XZPP, Collapsible.QUAD_XZNN, height);\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE_XP, Collapsible.QUAD_XZNP, height);\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n \t}", "public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)\r\n {\r\n super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n// this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n }", "void showsame() {\n\t\tint count;\n\t\tprintstatus = idle;\n\t\tif (newinfo.other[printnewline] != printoldline) {\n\t\t\tSystem.err.println(\"BUG IN LINE REFERENCING\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcount = blocklen[printoldline];\n\t\tprintoldline += count;\n\t\tprintnewline += count;\n\t}", "void removeBlock(Block block);", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "@Test(timeout=120000)\n public void testMissingFirstRegion() throws Exception {\n TableName table = TableName.valueOf(\"testMissingFirstRegion\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by leaving a hole in the assignment, meta, and hdfs data\n admin.disableTable(table);\n deleteRegion(conf, tbl.getTableDescriptor(), Bytes.toBytes(\"\"), Bytes.toBytes(\"A\"), true,\n true, true);\n admin.enableTable(table);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.FIRST_REGION_STARTKEY_NOT_EMPTY });\n // fix hole\n doFsck(conf, true);\n // check that hole fixed\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n }\n }", "@Override\n public S trySplit(){\n return null;\n }", "@Test\n\tpublic void testForwardFrameShiftBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6647537, PositionType.ZERO_BASED),\n\t\t\t\t\"TGCCCCACCT\", \"CCC\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(6, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1225_1234delinsCCC\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Cys409Profs*127\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.SPLICE_REGION),\n\t\t\t\tannotation1.effects);\n\t}", "@Test\n public void testSingleBlock()\n {\n BlockMetadata.FileBlockMetadata block = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, 0L, 0L,\n testMeta.dataFile.length(), true, -1, testMeta.dataFile.length());\n\n testMeta.blockReader.beginWindow(1);\n testMeta.blockReader.blocksMetadataInput.process(block);\n testMeta.blockReader.endWindow();\n\n List<Object> actualMessages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), actualMessages.size());\n\n for (int i = 0; i < actualMessages.size(); i++) {\n byte[] msg = (byte[])actualMessages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public void Inverse_macroblock_partition_scanning_process(){\n\t\tx=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,0);\n\t\ty=InverseRasterScan(mbPartIdx, MbPartWidth(mb_type),MbPartHeight(mb_type),16,1);\n\n\t}", "@Override\r\n public int numberOfBlocksToRemove() {\r\n return blocks().size();\r\n }", "public void unifyAdjacentChests(World par1World, int par2, int par3, int par4) {\n\t\tif (!par1World.isRemote) {\n\t\t\tBlock l = par1World.getBlock(par2, par3, par4 - 1);\n\t\t\tBlock i1 = par1World.getBlock(par2, par3, par4 + 1);\n\t\t\tBlock j1 = par1World.getBlock(par2 - 1, par3, par4);\n\t\t\tBlock k1 = par1World.getBlock(par2 + 1, par3, par4);\n\t\t\tBlock l1;\n\t\t\tBlock i2;\n\n\t\t\tbyte b0;\n\t\t\tint j2;\n\n\t\t\tif (l != this && i1 != this) {\n\t\t\t\tif (j1 != this && k1 != this) {\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (l.func_149730_j() && !i1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (i1.func_149730_j() && !l.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j1.func_149730_j() && !k1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 5;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (k1.func_149730_j() && !j1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 4;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tl1 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 - 1);\n\t\t\t\t\ti2 = par1World.getBlock(j1 == this ? par2 - 1 : par2 + 1, par3, par4 + 1);\n\t\t\t\t\tb0 = 3;\n\n\t\t\t\t\tif (j1 == this) {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 - 1, par3, par4);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tj2 = par1World.getBlockMetadata(par2 + 1, par3, par4);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (j2 == 2) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((l.func_149730_j() || l1.func_149730_j()) && !i1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\t\tb0 = 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((i1.func_149730_j() || i2.func_149730_j()) && !l.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\t\tb0 = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tl1 = par1World.getBlock(par2 - 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\ti2 = par1World.getBlock(par2 + 1, par3, l == this ? par4 - 1 : par4 + 1);\n\t\t\t\tb0 = 5;\n\n\t\t\t\tif (l == this) {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 - 1);\n\t\t\t\t} else {\n\t\t\t\t\tj2 = par1World.getBlockMetadata(par2, par3, par4 + 1);\n\t\t\t\t}\n\n\t\t\t\tif (j2 == 4) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\n\t\t\t\tif ((j1.func_149730_j() || l1.func_149730_j()) && !k1.func_149730_j() && !i2.func_149730_j()) {\n\t\t\t\t\tb0 = 5;\n\t\t\t\t}\n\n\t\t\t\tif ((k1.func_149730_j() || i2.func_149730_j()) && !j1.func_149730_j() && !l1.func_149730_j()) {\n\t\t\t\t\tb0 = 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpar1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 3);\n\t\t}\n\t}", "public boolean willOverlap() {\n/* 208 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface NoCopySpan\n/* */ {\n/* */ public static class Concrete\n/* */ implements NoCopySpan\n/* */ {\n/* */ public Concrete() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }\n/* */ }\n/* */ }", "private void repairGenome() {\n if (checkGenome(this.code)) {\n return;\n }\n int[] counters = new int[8];\n for (int c : code) { counters[c]++; }\n for (int i = 0; i < 8; ++i) {\n if (counters[i] == 0) {\n while (true) {\n int newPos = r.nextInt(GENOME_SIZE);\n if (counters[this.code[newPos]] > 1) {\n counters[this.code[newPos]]--;\n this.code[newPos] = i;\n break;\n }\n }\n }\n }\n }", "public void remove( int position )\n {\n caller = \"remove\";\n byte byteSize = memoryPool[position];\n Integer size = (int)byteSize;\n // remove the record starting at the given position\n for ( int i = 0; i < size; i++ )\n {\n memoryPool[position + i] = 0;\n }\n\n findBlock( position );\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( position, size );\n freeBlockList.add( freeBlock );\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n int key = (Integer)keyArray[0];\n\n caller = \"check\";\n int currentValue = freeBlockList.getCurrentElement().get( key );\n int mergePoint1 = position + currentValue;\n int rightKeyMatch = findBlock( mergePoint1 );\n\n int mergePoint2 = position;\n int leftKeyMatch = -1;\n int priorValue = -1;\n int key2 = -1;\n if ( 1==1)\n {\n findBlock(mergePoint2);\n freeBlockList.previous();\n if ( !( freeBlockList.getCurrent().equals( freeBlockList.getHead() ) )\n && !( freeBlockList.getCurrent().equals( freeBlockList.getTail() ) ) &&\n !( freeBlockList.getCurrent().equals( null )))\n {\n Object[] keyArray2 =\n freeBlockList.getCurrentElement().keySet().toArray();\n key2 = (Integer)keyArray2[0];\n priorValue = freeBlockList.getCurrentElement().get( key2 );\n leftKeyMatch = key2 + priorValue;\n }\n\n }\n\n if ( rightKeyMatch == mergePoint1 )\n {\n findBlock(mergePoint1);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get( rightKeyMatch );\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n position,\n currentValue + rightValue );\n //if()\n }\n if(leftKeyMatch == mergePoint2) {\n findBlock(mergePoint2);\n freeBlockList.previous();\n freeBlockList.removeCurrent();\n int rightValue =\n freeBlockList.getCurrentElement().get(leftKeyMatch);\n\n freeBlockList.getCurrentElement().clear();\n freeBlockList.getCurrentElement().put(\n key2,\n priorValue + rightValue );\n }\n\n }", "@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}", "public void insertReorderBarrier() {\n\t\t\n\t}", "private void collapseIgloo() {\n blocks.sort(Comparator.comparing(a -> a.center.getY()));\n\n double minDistance, distance;\n Point3D R = new Point3D(0, -1, 0);\n for (int i = 0; i < blocks.size(); i++) {\n minDistance = Double.MAX_VALUE;\n for (int j = i - 1; j >= 0; j--) {\n if (boundingSpheresIntersect(blocks.get(i), blocks.get(j))) {\n distance = minDistance(blocks.get(i), blocks.get(j), R);\n if (distance < minDistance) {\n minDistance = distance;\n }\n }\n }\n if (minDistance != Double.MAX_VALUE) {\n blocks.get(i).move(R.multiply(minDistance));\n }\n }\n }", "public void RemoveBlock(int NumOfB,ArrayList<Block> blocks,int[] i,int[] j){\r\n try {\r\n //2 blocks\r\n if (NumOfB == 2) {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[1], j[1]), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[0], j[0]), blocks.get(0).getTypeOfBlock());\r\n }\r\n //3 blocks\r\n else {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n map[i[2]][j[2]] = '0';\r\n blockList.RemovBlock(blocks.get(2), blocks.get(2).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(1), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(0), blocks.get(0).getTypeOfBlock());\r\n }\r\n gamePage.Sounds(2);//remove sound\r\n MoveBlock(2);//check if there is block will move down\r\n }catch (ArrayIndexOutOfBoundsException e) {\r\n\r\n }\r\n }", "@Override\n \tpublic void regionsRemoved(RegionEvent evt) {\n \t\t\n \t}", "public void removeBranch() {\n if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeBranch()\");\n Via via=(Via)sipHeader;\n \n via.removeParameter(Via.BRANCH);\n }", "public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }", "@Override\n\tpublic void afterSplitting(final Object groupingObject, final ConsignmentModel createdOne)\n\t{\n\t\tSystem.out.println(\"method:afterSplitting...........................\");\n\t}", "@Test\n public void testMetaBlocks() throws Exception {\n metablocks(\"none\");\n metablocks(\"gz\");\n }", "@Override\r\n\tpublic void visit(InstrumentBlock instrumentBlock) {\n\t\t\r\n\t}", "@Test\n public void undoCkpointTest() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n final int trimPosition = tableSize / 2;\n final int snapshotPosition = trimPosition + 2;\n\n CountDownLatch latch = new CountDownLatch(1);\n\n t(1, () -> {\n\n CorfuRuntime rt = getNewRuntime();\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n\n // first, populate the map\n for (int i = 0; i < tableSize; i++) {\n tableA.insert(String.valueOf(i), (long) i);\n }\n\n // now, take a checkpoint and perform a prefix-trim\n MultiCheckpointWriter<PersistentCorfuTable<String, Long>> mcw1 = new MultiCheckpointWriter<>();\n mcw1.addMap(tableA);\n mcw1.appendCheckpoints(rt, author);\n\n // Trim the log\n Token token = new Token(rt.getLayoutView().getLayout().getEpoch(), trimPosition);\n rt.getAddressSpaceView().prefixTrim(token);\n rt.getAddressSpaceView().gc();\n rt.getAddressSpaceView().invalidateServerCaches();\n rt.getAddressSpaceView().invalidateClientCache();\n\n latch.countDown();\n } finally {\n rt.shutdown();\n }\n });\n\n AtomicBoolean trimExceptionFlag = new AtomicBoolean(false);\n\n // start a new runtime\n t(2, () -> {\n latch.await();\n CorfuRuntime rt = getNewRuntime();\n\n PersistentCorfuTable<String, Long> localm2A = openTable(rt, streamNameA);\n\n // start a snapshot TX at position snapshotPosition\n Token timestamp = new Token(0L, snapshotPosition - 1);\n rt.getObjectsView().TXBuild()\n .type(TransactionType.SNAPSHOT)\n .snapshot(timestamp)\n .build()\n .begin();\n\n // finally, instantiate the map for the snapshot and assert is has the right state\n try {\n localm2A.get(String.valueOf(0));\n } catch (TransactionAbortedException te) {\n assertThat(te.getAbortCause()).isEqualTo(AbortCause.TRIM);\n // this is an expected behavior!\n trimExceptionFlag.set(true);\n }\n\n try {\n if (!trimExceptionFlag.get()) {\n assertThat(localm2A.size())\n .isEqualTo(snapshotPosition);\n\n // check map positions 0..(snapshot-1)\n for (int i = 0; i < snapshotPosition; i++) {\n assertThat(localm2A.get(String.valueOf(i)))\n .isEqualTo(i);\n }\n\n // check map positions snapshot..(mapSize-1)\n for (int i = snapshotPosition; i < tableSize; i++) {\n assertThat(localm2A.get(String.valueOf(i))).isNull();\n }\n }\n } finally {\n rt.shutdown();\n }\n });\n }", "void removeExistingGlue() {\r\n\t\tfor (int i = outputStream.size() - 1; i >= 0; i--) {\r\n\t\t\tRTObject c = outputStream.get(i);\r\n\t\t\tif (c instanceof Glue) {\r\n\t\t\t\toutputStream.remove(i);\r\n\t\t\t} else if (c instanceof ControlCommand) { // e.g.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// BeginString\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\toutputStreamDirty();\r\n\t}", "public InstructionBlock split(int index) throws IllegalArgumentException {\n int arraySplitPosition = 0;\n\n final int originalArraySize = mHolders.size();\n for (int i=0; i<originalArraySize; i++) {\n InstructionHolder holder = mHolders.get(i);\n if (holder.index == index) {\n arraySplitPosition = i;\n\n break;\n }\n }\n\n if (arraySplitPosition <= 0) {\n throw new IllegalArgumentException();\n }\n\n final int subListSize = originalArraySize - arraySplitPosition;\n List<InstructionHolder> subList = new ArrayList<InstructionHolder>(subListSize);\n for (int i=arraySplitPosition; i<originalArraySize; i++) {\n subList.add(mHolders.get(i));\n }\n\n mHolders.removeAll(subList);\n\n for (InstructionHolder holder : subList) {\n holder.index -= index;\n }\n mKnownBlockOffsets.clear();\n mKnownBlockOffsets.addAll(extractKnownBlockOffsets(mHolders));\n mByteCodeSize = extractByteCodeSize(index, mHolders);\n\n // This is assuming the only reason for a block to be invalid is that\n // the last instruction connot be resolved. If this is not true the next\n // piece of code may fail.\n final String invalidReason = mInvalidReason;\n mInvalidReason = null;\n\n return new InstructionBlock(index, subList, invalidReason);\n }", "void trim(int startingBlockId, int count) throws IOException;", "private void b()\r\n/* 67: */ {\r\n/* 68: 73 */ this.c.clear();\r\n/* 69: 74 */ this.e.clear();\r\n/* 70: */ }", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "public ByteBuf retainedDuplicate()\r\n/* 83: */ {\r\n/* 84:100 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 85:101 */ return super.retainedDuplicate();\r\n/* 86: */ }", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public ByteBuf duplicate()\r\n/* 95: */ {\r\n/* 96:112 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 97:113 */ return super.duplicate();\r\n/* 98: */ }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "int regionSplitBits4DownSampledTable();", "public static Optional<Block> splitCriticalEdge(Block source, int pos) {\n Node target = source.getPred(pos);\n if (target.equals(iro_Jmp)) {\n return Optional.empty();\n }\n Graph graph = source.getGraph();\n Block splitter = (Block) graph.newBlock(new Node[] {target});\n source.setPred(pos, graph.newJmp(splitter));\n Dominance.invalidateDominace();\n return Optional.of(splitter);\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 m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate boolean maybeSideTracked(Block block) {\n\t\tif (Material.LOG.equals(block.getType()) && block.getData() == 3) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n\tpublic void deleteA_useAwithB_danglingEdgeTest() {\n\t\tHenshinResourceSet resourceSet = new HenshinResourceSet(PATH);\n\n\t\t// Load the module:\n\t\tModule module = resourceSet.getModule(\"simpleTgRules.henshin\", false);\n\n\t\tUnit deleteAUnit = module.getUnit(\"deleteA\");\n\t\tRule deleteARule = (Rule) deleteAUnit;\n\n\t\tUnit useAwithBUnit = module.getUnit(\"useAwithB\");\n\t\tRule useAwithBRule = (Rule) useAwithBUnit;\n\n\t\tConflictAnalysis atomicCoreCPA = new ConflictAnalysis(deleteARule, useAwithBRule);\n\t\tList<ConflictAtom> computedConflictAtoms = atomicCoreCPA.computeConflictAtoms();\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, computedConflictAtoms.size());\n\t\t// System.out.println(\"number of conflict atoms:\n\t\t// \"+computedConflictAtoms.size());\n\t\t// for(ConflictAtom conflictAtom : computedConflictAtoms){\n\t\t// System.out.println(conflictAtom);\n\t\t// }\n\n\t\tAtomCandidateComputation candComp = new AtomCandidateComputation(deleteARule, useAwithBRule);\n\t\tList<Span> conflictAtomCandidates = candComp.computeAtomCandidates();\n\n\t\tSet<MinimalConflictReason> reasons = new HashSet<>();//\n\t\tfor (Span candidate : conflictAtomCandidates) {\n\t\t\tnew MinimalReasonComputation(deleteARule, useAwithBRule).computeMinimalConflictReasons(candidate, reasons);\n\t\t}\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, reasons.size());\n\n\t\t// Set<Span> minimalConflictReasons = reasons;\n\t\t// System.out.println(\"number of minimal conflict reasons:\n\t\t// \"+minimalConflictReasons.size());\n\t\t// for(Span minimalConflictReason : minimalConflictReasons){\n\t\t// System.out.println(minimalConflictReason);\n\t\t// }\n\t}", "public void b(World paramaqu, BlockPosition paramdt, Block parambec, Random paramRandom)\r\n/* 39: */ {\r\n/* 40: 54 */ if (paramaqu.isClient) {\r\n/* 41: 55 */ return;\r\n/* 42: */ }\r\n/* 43: 58 */ if ((paramaqu.l(paramdt.up()) < 4) && (paramaqu.getBlock(paramdt.up()).getType().getLightOpacity() > 2))\r\n/* 44: */ {\r\n/* 45: 59 */ paramaqu.setBlock(paramdt, BlockList.dirt.instance());\r\n/* 46: 60 */ return;\r\n/* 47: */ }\r\n/* 48: 63 */ if (paramaqu.l(paramdt.up()) >= 9) {\r\n/* 49: 64 */ for (int i = 0; i < 4; i++)\r\n/* 50: */ {\r\n/* 51: 65 */ BlockPosition localdt = paramdt.offset(paramRandom.nextInt(3) - 1, paramRandom.nextInt(5) - 3, paramRandom.nextInt(3) - 1);\r\n/* 52: 66 */ BlockType localatr = paramaqu.getBlock(localdt.up()).getType();\r\n/* 53: 67 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 54: 68 */ if ((localbec.getType() == BlockList.dirt) && (localbec.getData(BlockDirt.a) == avd.a) && (paramaqu.l(localdt.up()) >= 4) && (localatr.getLightOpacity() <= 2)) {\r\n/* 55: 69 */ paramaqu.setBlock(localdt, BlockList.grass.instance());\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "public void deleteBarrier() {\n if(stater == 3) return;\n stater = 3;\n }", "@Override\n protected void updateEliminations() {\n\n }", "SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;", "@Test\n public void tesInvalidateMissingBlock() throws Exception {\n long blockSize = 1024;\n int heatbeatInterval = 1;\n HdfsConfiguration c = new HdfsConfiguration();\n c.setInt(DFSConfigKeys.DFS_HEARTBEAT_INTERVAL_KEY, heatbeatInterval);\n c.setLong(DFS_BLOCK_SIZE_KEY, blockSize);\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(c).\n numDataNodes(1).build();\n try {\n cluster.waitActive();\n DFSTestUtil.createFile(cluster.getFileSystem(), new Path(\"/a\"),\n blockSize, (short)1, 0);\n\n String bpid = cluster.getNameNode().getNamesystem().getBlockPoolId();\n DataNode dn = cluster.getDataNodes().get(0);\n FsDatasetImpl fsdataset = (FsDatasetImpl) dn.getFSDataset();\n List<ReplicaInfo> replicaInfos = fsdataset.getFinalizedBlocks(bpid);\n assertEquals(1, replicaInfos.size());\n\n ReplicaInfo replicaInfo = replicaInfos.get(0);\n String blockPath = replicaInfo.getBlockURI().getPath();\n String metaPath = replicaInfo.getMetadataURI().getPath();\n File blockFile = new File(blockPath);\n File metaFile = new File(metaPath);\n\n // Mock local block file not found when disk with some exception.\n fsdataset.invalidateMissingBlock(bpid, replicaInfo);\n\n // Assert local block file wouldn't be deleted from disk.\n assertTrue(blockFile.exists());\n // Assert block info would be removed from ReplicaMap.\n assertEquals(\"null\",\n fsdataset.getReplicaString(bpid, replicaInfo.getBlockId()));\n BlockManager blockManager = cluster.getNameNode().\n getNamesystem().getBlockManager();\n GenericTestUtils.waitFor(() ->\n blockManager.getLowRedundancyBlocksCount() == 1, 100, 5000);\n\n // Mock local block file found when disk back to normal.\n FsVolumeSpi.ScanInfo info = new FsVolumeSpi.ScanInfo(\n replicaInfo.getBlockId(), blockFile.getParentFile().getAbsoluteFile(),\n blockFile.getName(), metaFile.getName(), replicaInfo.getVolume());\n fsdataset.checkAndUpdate(bpid, info);\n GenericTestUtils.waitFor(() ->\n blockManager.getLowRedundancyBlocksCount() == 0, 100, 5000);\n } finally {\n cluster.shutdown();\n }\n }", "void combineAndCollectSnapshotBlocks(\n INode.ReclaimContext reclaimContext, INodeFile file, FileDiff removed) {\n BlockInfo[] removedBlocks = removed.getBlocks();\n if (removedBlocks == null) {\n FileWithSnapshotFeature sf = file.getFileWithSnapshotFeature();\n assert sf != null : \"FileWithSnapshotFeature is null\";\n if(sf.isCurrentFileDeleted())\n sf.collectBlocksAndClear(reclaimContext, file);\n return;\n }\n int p = getPrior(removed.getSnapshotId(), true);\n FileDiff earlierDiff = p == Snapshot.NO_SNAPSHOT_ID ? null : getDiffById(p);\n // Copy blocks to the previous snapshot if not set already\n if (earlierDiff != null) {\n earlierDiff.setBlocks(removedBlocks);\n }\n BlockInfo[] earlierBlocks =\n (earlierDiff == null ? new BlockInfoContiguous[]{} : earlierDiff.getBlocks());\n // Find later snapshot (or file itself) with blocks\n BlockInfo[] laterBlocks = findLaterSnapshotBlocks(removed.getSnapshotId());\n laterBlocks = (laterBlocks == null) ? file.getBlocks() : laterBlocks;\n // Skip blocks, which belong to either the earlier or the later lists\n int i = 0;\n for(; i < removedBlocks.length; i++) {\n if(i < earlierBlocks.length && removedBlocks[i] == earlierBlocks[i])\n continue;\n if(i < laterBlocks.length && removedBlocks[i] == laterBlocks[i])\n continue;\n break;\n }\n // Check if last block is part of truncate recovery\n BlockInfo lastBlock = file.getLastBlock();\n BlockInfo dontRemoveBlock = null;\n if (lastBlock != null && lastBlock.getBlockUCState().equals(\n HdfsServerConstants.BlockUCState.UNDER_RECOVERY)) {\n dontRemoveBlock = lastBlock.getUnderConstructionFeature()\n .getTruncateBlock();\n }\n // Collect the remaining blocks of the file, ignoring truncate block\n for (;i < removedBlocks.length; i++) {\n if(dontRemoveBlock == null || !removedBlocks[i].equals(dontRemoveBlock)) {\n reclaimContext.collectedBlocks().addDeleteBlock(removedBlocks[i]);\n }\n }\n }", "@Override\n\tpublic void visitXblock(Xblock p) {\n\n\t}", "static void hardDrop(Block b) {\n int[] pos = b.pos;\n char[][] piece = b.piece;\n\n while (canPlace(pos[0] + 1, pos[1], piece))\n pos[0]++;\n\n place(pos[0], pos[1], piece);\n }", "protected SpatialRelationBlock() {\n\t\t/* intentionally empty block */}", "@Test (timeout=180000)\n public void testMissingRegionInfoQualifier() throws Exception {\n Connection connection = ConnectionFactory.createConnection(conf);\n TableName table = TableName.valueOf(\"testMissingRegionInfoQualifier\");\n try {\n setupTable(table);\n\n // Mess it up by removing the RegionInfo for one region.\n final List<Delete> deletes = new LinkedList<Delete>();\n Table meta = connection.getTable(TableName.META_TABLE_NAME, hbfsckExecutorService);\n MetaScanner.metaScan(connection, new MetaScanner.MetaScannerVisitor() {\n\n @Override\n public boolean processRow(Result rowResult) throws IOException {\n HRegionInfo hri = MetaTableAccessor.getHRegionInfo(rowResult);\n if (hri != null && !hri.getTable().isSystemTable()) {\n Delete delete = new Delete(rowResult.getRow());\n delete.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);\n deletes.add(delete);\n }\n return true;\n }\n\n @Override\n public void close() throws IOException {\n }\n });\n meta.delete(deletes);\n\n // Mess it up by creating a fake hbase:meta entry with no associated RegionInfo\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER, Bytes.toBytes(\"node1:60020\")));\n meta.put(new Put(Bytes.toBytes(table + \",,1361911384013.810e28f59a57da91c66\")).add(\n HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER, Bytes.toBytes(1362150791183L)));\n meta.close();\n\n HBaseFsck hbck = doFsck(conf, false);\n assertTrue(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n\n // fix reference file\n hbck = doFsck(conf, true);\n\n // check that reference file fixed\n assertFalse(hbck.getErrors().getErrorList().contains(ERROR_CODE.EMPTY_META_CELL));\n } finally {\n cleanupTable(table);\n }\n connection.close();\n }", "@Test\r\n public void testCheckCollisionTankBlocks() {\r\n System.out.println(\"checkCollisionTankBlocks\");\r\n Rectangle r3 = new Rectangle(10, 10, 10, 10);\r\n boolean result = CollisionUtility.checkCollisionTankBlocks(r3);\r\n assertEquals(true, result);\r\n inblocks.remove(0);\r\n result = CollisionUtility.checkCollisionTankBlocks(r3);\r\n assertEquals(false, result);\r\n }", "public void insertInorderBarrier() {\n\t\t\n\t}", "public void onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)\n {\n byte var6 = 0;\n byte var7 = 1;\n\n if (var1.getBlockId(var2 - 1, var3, var4) == this.blockID || var1.getBlockId(var2 + 1, var3, var4) == this.blockID)\n {\n var6 = 1;\n var7 = 0;\n }\n\n int var8;\n\n for (var8 = var3; var1.getBlockId(var2, var8 - 1, var4) == this.blockID; --var8)\n {\n ;\n }\n\n if (var1.getBlockId(var2, var8 - 1, var4) != Block.glowStone.blockID)\n {\n var1.setBlock(var2, var3, var4, 0);\n } else\n {\n int var9;\n\n for (var9 = 1; var9 < 4 && var1.getBlockId(var2, var8 + var9, var4) == this.blockID; ++var9)\n {\n ;\n }\n\n if (var9 == 3 && var1.getBlockId(var2, var8 + var9, var4) == Block.glowStone.blockID)\n {\n boolean var10 = var1.getBlockId(var2 - 1, var3, var4) == this.blockID || var1.getBlockId(var2 + 1, var3, var4) == this.blockID;\n boolean var11 = var1.getBlockId(var2, var3, var4 - 1) == this.blockID || var1.getBlockId(var2, var3, var4 + 1) == this.blockID;\n\n if (var10 && var11)\n {\n var1.setBlock(var2, var3, var4, 0);\n } else if ((var1.getBlockId(var2 + var6, var3, var4 + var7) != Block.glowStone.blockID || var1.getBlockId(var2 - var6, var3, var4 - var7) != this.blockID) && (var1.getBlockId(var2 - var6, var3, var4 - var7) != Block.glowStone.blockID || var1.getBlockId(var2 + var6, var3, var4 + var7) != this.blockID))\n {\n var1.setBlock(var2, var3, var4, 0);\n }\n } else\n {\n var1.setBlock(var2, var3, var4, 0);\n }\n }\n }", "protected cxl a(Block parambec)\r\n/* 11: */ {\r\n/* 12:237 */ LinkedHashMap localLinkedHashMap = Maps.newLinkedHashMap(parambec.b());\r\n/* 13: */ \r\n/* 14:239 */ String str1 = bbf.M.toString((Comparable)localLinkedHashMap.remove(bbf.M));\r\n/* 15:240 */ localLinkedHashMap.remove(bbf.b);\r\n/* 16: */ \r\n/* 17:242 */ String str2 = ((Boolean)parambec.getData(bbf.b)).booleanValue() ? \"all\" : \"normal\";\r\n/* 18:243 */ return new cxl(str1 + \"_double_slab\", str2);\r\n/* 19: */ }", "private void splitBankStatementLine(HttpServletResponse response, String strReconciliationId,\n String strBankStatementLineId, String strTransactionId) throws IOException, ServletException {\n JSONObject table = new JSONObject();\n boolean returnError = false;\n FIN_Reconciliation rec = OBDal.getInstance().get(FIN_Reconciliation.class, strReconciliationId);\n FIN_BankStatementLine bsl = OBDal.getInstance().get(FIN_BankStatementLine.class,\n strBankStatementLineId);\n FIN_FinaccTransaction trx = OBDal.getInstance().get(FIN_FinaccTransaction.class,\n strTransactionId);\n try {\n OBContext.setAdminMode(true);\n if (rec != null && \"Y\".equals(rec.getPosted())) {\n // reconciliation posted not possible to split a row\n returnError = true;\n table.put(\"showJSMessage\", \"APRM_SplitBSLReconciliationPosted\");\n }\n if (bsl.getFinancialAccountTransaction() != null\n && bsl.getFinancialAccountTransaction().getReconciliation() != null) {\n returnError = true;\n table.put(\"showJSMessage\", \"APRM_SplitBSLAlreadyMatched\");\n }\n\n // If validation was ok continue with the split\n if (!returnError) {\n BigDecimal bslAmount = bsl.getCramount().subtract(bsl.getDramount());\n BigDecimal trxAmount = trx.getDepositAmount().subtract(trx.getPaymentAmount());\n\n if (bslAmount.compareTo(trxAmount) != 0) {\n // prevent trigger\n FIN_BankStatement bs = bsl.getBankStatement();\n bs.setProcessed(false);\n OBDal.getInstance().save(bs);\n OBDal.getInstance().flush();\n\n // Duplicate bank statement line with pending amount\n FIN_BankStatementLine clonedBSLine = (FIN_BankStatementLine) DalUtil.copy(bsl, true);\n\n BigDecimal credit = bsl.getCramount().subtract(trx.getDepositAmount());\n BigDecimal debit = bsl.getDramount().subtract(trx.getPaymentAmount());\n\n clonedBSLine.setCramount(credit);\n clonedBSLine.setDramount(debit);\n\n if (credit.compareTo(BigDecimal.ZERO) != 0 && debit.compareTo(BigDecimal.ZERO) != 0) {\n BigDecimal total = credit.subtract(debit);\n if (total.compareTo(BigDecimal.ZERO) == -1) {\n clonedBSLine.setCramount(BigDecimal.ZERO);\n clonedBSLine.setDramount(total.abs());\n } else {\n clonedBSLine.setCramount(total);\n clonedBSLine.setDramount(BigDecimal.ZERO);\n }\n } else {\n if (credit.compareTo(BigDecimal.ZERO) == -1) {\n clonedBSLine.setCramount(BigDecimal.ZERO);\n clonedBSLine.setDramount(credit.abs());\n }\n if (debit.compareTo(BigDecimal.ZERO) == -1) {\n clonedBSLine.setDramount(BigDecimal.ZERO);\n clonedBSLine.setCramount(debit.abs());\n }\n\n }\n\n // link bank statement line with the transaction\n bsl.setFinancialAccountTransaction(trx);\n bsl.setCramount(trx.getDepositAmount());\n bsl.setDramount(trx.getPaymentAmount());\n bsl.setMatchingtype(FIN_MatchedTransaction.MANUALMATCH);\n trx.setStatus(\"RPPC\");\n trx.setReconciliation(rec);\n if (trx.getFinPayment() != null) {\n trx.getFinPayment().setStatus(\"RPPC\");\n }\n\n bs.setProcessed(true);\n\n // Save\n OBDal.getInstance().save(bs);\n OBDal.getInstance().save(clonedBSLine);\n OBDal.getInstance().save(bsl);\n OBDal.getInstance().flush();\n }\n }\n response.setContentType(\"text/html; charset=UTF-8\");\n PrintWriter out = response.getWriter();\n out.println(\"data = \" + table.toString());\n out.close();\n } catch (JSONException e) {\n throw new OBException(\"splitBankStatementLine - JSON object error: \" + table.toString(), e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }", "void removeNextSeamHoriz() {\n\n SeamInfo toRemove = this.curLowest;\n\n toRemove.removeSeamHoriz();\n\n if (toRemove.containsPixel(this.curPixel)) {\n this.curPixel = this.curPixel.down;\n }\n\n this.removedSeams.add(toRemove);\n\n this.draw();\n\n }", "public void free(Block b) {\n if(b.length <= 0) return;\n\n if (b.start + b.length > limit) limit = b.start + b.length; // grows with free\n\n // query adjacent blocks\n Block prev = freeSpace.floor(b);\n Block next = freeSpace.higher(b);\n\n if (prev != null && prev.start + prev.length > b.start) {\n throw new RuntimeException(\"Corrupted. DEBUG PRV \" + prev.start + \"+\" + prev.length + \">\" + b.start);\n }\n if (next != null && next.start < b.start + b.length) {\n throw new RuntimeException(\"Corrupted. DEBUG NEX \" + next.start + \"<\" + b.start + \"+\" + b.length);\n }\n\n // merge them if possible\n \n Block n = Block.mergeBlocks(b, prev);\n if(n != null) { freeSpace.remove(prev); b = n; }\n\n n = Block.mergeBlocks(b, next);\n if(n != null) { freeSpace.remove(next); b = n; }\n\n freeSpace.add(b);\n }", "public final void removeBridgePart(BridgePart bridgePart) {\n/* 6642 */ if (this.bridgeParts != null) {\n/* */ \n/* 6644 */ this.bridgeParts.remove(bridgePart);\n/* 6645 */ if (this.bridgeParts.size() == 0)\n/* 6646 */ this.bridgeParts = null; \n/* */ } \n/* 6648 */ if (this.structure == null)\n/* */ return; \n/* 6650 */ if (this.watchers != null)\n/* */ {\n/* 6652 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 6656 */ vz.removeBridgePart(this.structure.getWurmId(), bridgePart);\n/* */ }\n/* 6658 */ catch (Exception e) {\n/* */ \n/* 6660 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* 6664 */ if (this.vitems != null)\n/* */ {\n/* 6666 */ for (Item pile : this.vitems.getPileItems()) {\n/* */ \n/* 6668 */ pile.setOnBridge(-10L);\n/* 6669 */ pile.updatePosZ(this);\n/* */ \n/* 6671 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 6675 */ if (vz.isVisible(pile, this))\n/* */ {\n/* 6677 */ vz.removeItem(pile);\n/* 6678 */ vz.addItem(pile, this, true);\n/* */ }\n/* */ \n/* 6681 */ } catch (Exception e) {\n/* */ \n/* 6683 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* 6689 */ if (this.vitems != null)\n/* */ {\n/* 6691 */ for (Item item : this.vitems.getAllItemsAsArray()) {\n/* */ \n/* 6693 */ if (item.getBridgeId() == this.structure.getWurmId()) {\n/* */ \n/* 6695 */ item.setOnBridge(-10L);\n/* 6696 */ item.updatePosZ(this);\n/* 6697 */ item.updateIfGroundItem();\n/* */ } \n/* */ } \n/* */ }\n/* 6701 */ if (this.creatures != null)\n/* */ {\n/* 6703 */ for (Creature c : this.creatures) {\n/* */ \n/* 6705 */ if (c.getBridgeId() == this.structure.getWurmId()) {\n/* */ \n/* 6707 */ c.setBridgeId(-10L);\n/* 6708 */ if (!c.isPlayer()) {\n/* */ \n/* 6710 */ float oldposz = c.getPositionZ();\n/* 6711 */ float newPosz = c.calculatePosZ();\n/* 6712 */ float diffz = newPosz - oldposz;\n/* 6713 */ c.setPositionZ(newPosz);\n/* 6714 */ c.moved(0.0F, 0.0F, diffz, 0, 0);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 6723 */ checkDeletion();\n/* */ }", "public boolean renderAsNormalBlock()\r\n/* 166: */ {\r\n/* 167:184 */ return false;\r\n/* 168: */ }", "public boolean //##78\n divideHirIntoBasicBlocks()\n {\n HirIterator lHirIterator;\n HIR lNode, // Current node.\n lParent; // Parent of lNode.\n coins.sym.Sym lSym;\n FlowAnalSym lFlowAnalSym;\n int lNodeIndex;\n Label lLabel, lSubpBlockLabel;\n BBlock lBBlock; // BBlock most recently created.\n IrList lLabelDefList;\n Subp lSubp;\n BlockStmt lSubpBody; // Block as the HIR body of subprogram.\n //## LabeledStmt lSubpBodyWithLabel;\n\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"divideHirIntoBasicBlocks \",\n flowRoot.subpUnderAnalysis.getName() + \" fIrIndexMin \" +\n fIrIndexMin + \" Max \" + fIrIndexMax); //##62\n recordBBlock(bblock(), 0); //Avoid IndexOutofRangeException\n //##62 BEGIN\n lSubp = fSubpDefinition.getSubpSym();\n fNodeCount = fIrIndexMax - fIrIndexMin + 1;\n fFlowIrLinkSize = fNodeCount + 1; //##62\n fFlowIrLink = new IR[fFlowIrLinkSize];\n lBBlock = null; // Record a basic block created.\n boolean lImmediatelyAfterJumpReturn = false; //##63\n //##62 END\n\n //-- Assign index number to symbols actually used in current\n // subprogram setting index to each node.\n // Make label reference list for labels that are explicitly\n // refered as jump target.\n for (lHirIterator = hirRoot.hir.hirIterator(fSubpDefinition.getHirBody());\n lHirIterator.hasNext(); ) {\n lNode = lHirIterator.next();\n if (lNode != null) {\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(6, \" lNode\", lNode.toStringShort());\n lSym = lNode.getSym();\n if (lSym != null) {\n if (lSym instanceof FlowAnalSym) {\n lFlowAnalSym = (FlowAnalSym)lSym;\n if (lFlowAnalSym.getIndex() == 0) {\n recordSym(lFlowAnalSym); //##62\n }else {\n if (fDbgLevel > 0)\n flow.dbg(6, \" \" + lFlowAnalSym.getName()+\n \":\" + lFlowAnalSym.getIndex());\n }\n }\n }\n\n //##63 BEG\n lNodeIndex = lNode.getIndex();\n //##78 BEGIN\n if (lNodeIndex < fIrIndexMin) {\n ioRoot.msgRecovered.put(5010, \"\\nNode index \" + lNodeIndex\n + \" should be greater or equal to \" + fIrIndexMin\n + \" in \" + fSubpDefinition.getSubpSym().getName()\n + \"\\n Skip the flow analysis and the optimization.\");\n return false;\n }\n //##78 END\n fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n if (lImmediatelyAfterJumpReturn &&\n (lNode.getOperator() != HIR.OP_LABELED_STMT)) {\n continue; // Control does not come here.\n }\n lImmediatelyAfterJumpReturn = false;\n //##63 END\n switch (lNode.getOperator()) {\n case HIR.OP_LABELED_STMT:\n lBBlock = bblock((LabeledStmt)lNode); // Create a basic block.\n fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; // Store again. //##65\n //## lSubp.addBBlock(lBBlock); // DELETE\n lLabelDefList = ((LabeledStmt)lNode).getLabelDefList();\n if (lLabelDefList != null) {\n for (Iterator lIterator = lLabelDefList.iterator();\n lIterator.hasNext(); ) { // Set link between HIR & Label.\n lLabel = ((coins.ir.hir.LabelDef)(lIterator.next())).getLabel();\n //##60 lLabel.setBBlock(lBBlock);\n flowRoot.fSubpFlow.setBBlock(lLabel, lBBlock); //##60\n }\n }\n lImmediatelyAfterJumpReturn = false;\n break;\n // begin\n case HIR.OP_CONTENTS:\n lParent = (HIR)lNode.getParent();\n if (lParent.getOperator() == HIR.OP_ASSIGN)\n lBBlock.setFlag(BBlock.HAS_PTR_ASSIGN, true);\n case HIR.OP_ARROW:\n case HIR.OP_ADDR:\n lBBlock.setFlag(BBlock.USE_PTR, true);\n break;\n case HIR.OP_QUAL:\n lBBlock.setFlag(BBlock.HAS_STRUCT_UNION, true);\n break;\n case HIR.OP_CALL:\n lBBlock.setFlag(BBlock.HAS_CALL, true);\n //##62 hasCallInSubp = true; //##62\n //##63 BEGIN\n fCallCount++; //##62\n fSubtreesContainingCall.add(lNode);\n for (HIR lHir = (HIR)lNode.getParent(); lHir != null;\n lHir = (HIR)lHir.getParent()) {\n fSubtreesContainingCall.add(lNode);\n }\n //##63 END\n break;\n //##62 BEGIN\n case HIR.OP_ASSIGN:\n fAssignCount++;\n break;\n case HIR.OP_JUMP:\n lLabel = ((JumpStmt)lNode).getLabel();\n //##62 lLabel.addToHirRefList((LabelNode)((JumpStmt)lNode).getChild1());\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_RETURN: //##63\n lImmediatelyAfterJumpReturn = true; //##63\n ((BBlockImpl)lBBlock).fControlTransfer = lNode; //##73\n break;\n case HIR.OP_SWITCH:\n SwitchStmt lSwitchStmt = (SwitchStmt)lNode;\n int lCaseCount = lSwitchStmt.getCaseCount();\n for (int i = 0; i < lCaseCount; i++) {\n lLabel = lSwitchStmt.getCaseLabel(i);\n //##62 if (lLabel != null)\n //##62 lLabel.addToHirRefList(lSwitchStmt.getCaseLabelNode(i));\n }\n //##62 lSwitchStmt.getDefaultLabel().addToHirRefList((LabelNode)((SwitchStmt)\n //##62 lNode).getDefaultLabelNode());\n //##62 END\n default:\n break;\n // end\n } // End of switch\n //##63 lNodeIndex = lNode.getIndex();\n //##60 fFlowIrLink[lNodeIndex - fIndexMin] =\n //##60 (FlowIrLinkCell)(new FlowIrLinkCellImpl(lNode, lBBlock, 0));\n //##63 fFlowIrLink[lNodeIndex - fIrIndexMin] = lNode; //##60\n //##63 fBBlockOfIR[lNodeIndex - fIrIndexMin] = lBBlock; //##60\n } // End of if(lNode != null)\n }\n //##62 BEGIN\n fUsedSymCount = fSymExpCount;\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, lSubp.getName() +\n \" Number of\", \"Symbols:\" +\n fUsedSymCount + \" Nodes:\" + fNodeCount + \" \");\n fExpVectorBitCount = fUsedSymCount + 2; //##60\n fExpVectorWordCount = (fExpVectorBitCount + 63) / 64; //##60\n\n int lNodeCount = fIrIndexMax - fIrIndexMin;\n if (lNodeCount > fNodeCountLim1)\n fComplexity = 2;\n if (fSymExpCount > fSymCountLim1)\n fComplexity = 2;\n if (lNodeCount > fNodeCountLim2)\n fComplexity = 3;\n if (fSymExpCount > fSymCountLim2)\n fComplexity = 3;\n //##62 END\n if (fDbgLevel > 0) {\n //### fComplexity = 3; //###\n flowRoot.ioRoot.dbgFlow.print(1, \"\\n Node count \" +\n lNodeCount + \" BBlock count \" + getNumberOfBBlocks()+\n \" UsedSymCount \" + getUsedSymCount() + \" SymExpCount \" + getSymExpCount()\n + \"\\n AssignCount \" + getAssignCount()\n + \" CallCount \" + getCallCount()); //##62\n ioRoot.dbgFlow.print(1, \"\\nComplexity level of \",\n getSubpSym().getName() + \" is \" + fComplexity);\n if (fComplexity > 1)\n ioRoot.dbgFlow.print(1, \"\\n Simplify alias analysis.\");\n if (fComplexity > 2)\n ioRoot.dbgFlow.print(1, \"\\n Simplify data flow analysis.\");\n }\n setComputedFlag(CF_BBLOCK); //##60\n return true; //##78\n }", "private void handleNonFrameShiftCaseStartsWithNoStopCodon() {\n\t\t\tif (aaChange.getPos() == 0) {\n\t\t\t\t// The mutation affects the start codon, is start loss (in the case of keeping the start codon\n\t\t\t\t// intact, we would have jumped into a shifted duplication case earlier.\n\t\t\t\tproteinChange = ProteinMiscChange.build(true, ProteinMiscChangeType.NO_PROTEIN);\n\t\t\t\tvarTypes.add(VariantEffect.START_LOST);\n\t\t\t\tvarTypes.add(VariantEffect.INFRAME_INSERTION);\n\t\t\t} else {\n\t\t\t\t// The start codon is not affected. Since it is a non-FS insertion, the stop codon cannot be\n\t\t\t\t// affected.\n\t\t\t\tif (varAAStopPos == varAAInsertPos) {\n\t\t\t\t\t// The insertion directly starts with a stop codon, is stop gain.\n\t\t\t\t\tproteinChange = ProteinSubstitution.build(true, toString(wtAASeq.charAt(varAAInsertPos)),\n\t\t\t\t\t\tvarAAInsertPos, \"*\");\n\t\t\t\t\tvarTypes.add(VariantEffect.STOP_GAINED);\n\n\t\t\t\t\t// Differentiate the case of disruptive and non-disruptive insertions.\n\t\t\t\t\tif (insertPos.getPos() % 3 == 0)\n\t\t\t\t\t\tvarTypes.add(VariantEffect.INFRAME_INSERTION);\n\t\t\t\t\telse\n\t\t\t\t\t\tvarTypes.add(VariantEffect.DISRUPTIVE_INFRAME_INSERTION);\n\t\t\t\t} else {\n\t\t\t\t\tif (varAAStopPos != -1 && wtAAStopPos != -1\n\t\t\t\t\t\t&& varAASeq.length() - varAAStopPos != wtAASeq.length() - wtAAStopPos) {\n\t\t\t\t\t\t// The insertion does not directly start with a stop codon but the insertion leads to a stop\n\t\t\t\t\t\t// codon in the affected amino acids. This leads to an \"delins\" protein annotation.\n\t\t\t\t\t\tproteinChange = ProteinIndel.buildWithSeqDescription(true,\n\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos)), varAAInsertPos,\n\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos + 1)), varAAInsertPos + 1,\n\t\t\t\t\t\t\tnew ProteinSeqDescription(),\n\t\t\t\t\t\t\tnew ProteinSeqDescription(varAASeq.substring(varAAInsertPos, varAAStopPos)));\n\t\t\t\t\t\tvarTypes.add(VariantEffect.STOP_GAINED);\n\n\t\t\t\t\t\taddNonFrameshiftInsertionEffect();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// The changes on the amino acid level do not lead to a new stop codon, is non-FS insertion.\n\n\t\t\t\t\t\t// Differentiate the ins and the delins case.\n\t\t\t\t\t\tif (aaChange.getRef().equals(\"\")) {\n\t\t\t\t\t\t\t// Clean insertion.\n\t\t\t\t\t\t\tif (DuplicationChecker.isDuplication(wtAASeq, aaChange.getAlt(), varAAInsertPos)) {\n\t\t\t\t\t\t\t\t// We have a duplication, can only be duplication of AAs to the left because of\n\t\t\t\t\t\t\t\t// normalization in CDSExonicAnnotationBuilder constructor.\n\t\t\t\t\t\t\t\tif (aaChange.getAlt().length() == 1) {\n\t\t\t\t\t\t\t\t\tproteinChange = ProteinDuplication.buildWithSeqDescription(true,\n\t\t\t\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos - 1)), varAAInsertPos - 1,\n\t\t\t\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos - 1)), varAAInsertPos - 1,\n\t\t\t\t\t\t\t\t\t\tnew ProteinSeqDescription());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tproteinChange = ProteinDuplication.buildWithSeqDescription(true,\n\t\t\t\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos - aaChange.getAlt().length())),\n\t\t\t\t\t\t\t\t\t\tvarAAInsertPos - aaChange.getAlt().length(),\n\t\t\t\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos - 1)), varAAInsertPos - 1,\n\t\t\t\t\t\t\t\t\t\tnew ProteinSeqDescription());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\taddNonFrameshiftInsertionEffect();\n\t\t\t\t\t\t\t\tvarTypes.add(VariantEffect.DIRECT_TANDEM_DUPLICATION);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// We have a simple insertion.\n\t\t\t\t\t\t\t\tproteinChange = ProteinInsertion.buildWithSequence(true,\n\t\t\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos - 1)), varAAInsertPos - 1,\n\t\t\t\t\t\t\t\t\ttoString(wtAASeq.charAt(varAAInsertPos)), varAAInsertPos, aaChange.getAlt());\n\n\t\t\t\t\t\t\t\taddNonFrameshiftInsertionEffect();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// The delins/substitution case.\n\t\t\t\t\t\t\tproteinChange = ProteinIndel.buildWithSeqDescription(true, aaChange.getRef(),\n\t\t\t\t\t\t\t\tvarAAInsertPos, aaChange.getRef(), varAAInsertPos, new ProteinSeqDescription(),\n\t\t\t\t\t\t\t\tnew ProteinSeqDescription(aaChange.getAlt()));\n\t\t\t\t\t\t\taddNonFrameshiftInsertionEffect();\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}", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "@Override\n public String getToolDescription() {\n \treturn \"Removes thin connection between polygon bulges\";\n }", "boolean splitAndInsert(T t, Pair<String,LeafNode> ln){\n\n int splitTimes=0;\n\n Interval[] intervals = ln.second().getIntervals();\n assert intervals.length==leafNodeCapacity;\n Interval[] leftIntervals = new Interval[leafNodeCapacity];\n Interval[] rightIntervals = new Interval[leafNodeCapacity];\n Interval[] tempIntervals = null;\n\n int leftIntervalNumber=0;\n int rightIntervalNumber=0;\n TriangleShape lnTriangle = ln.second().triangle;\n String lnString=ln.first();\n TriangleShape leftTriangle=null;\n TriangleShape rightTriangle=null;\n String leftString=null;\n String rightString =null;\n\n while(leftIntervalNumber==0 || rightIntervalNumber==0){\n\n if(splitTimes==10000) {\n System.out.println(\"splitTimes=\"+splitTimes);\n System.out.println(\"you should increase the parameter leafNodeCapaity value!!!\");\n assert false;\n }\n else\n splitTimes++;\n\n leftTriangle=lnTriangle.leftTriangle();\n leftIntervalNumber=0;\n rightIntervalNumber=0;\n\n for(Interval i: intervals){\n if(Geom2DSuits.contains(leftTriangle,i.getLowerBound(),i.getUpperBound())){\n leftIntervals[leftIntervalNumber]=i;\n leftIntervalNumber++;\n }\n else{\n rightIntervals[rightIntervalNumber]=i;\n rightIntervalNumber++;\n }\n }\n\n if(leftIntervalNumber==0){//all located at left side\n rightTriangle = lnTriangle.rightTriangle();\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(leftString);\n lnTriangle = rightTriangle;\n lnString=rightString;\n\n tempIntervals=intervals;\n intervals=rightIntervals;\n rightIntervals=tempIntervals;\n }\n else if(rightIntervalNumber==0){//all located at right side\n rightString = lnString+\"1\";\n leftString=lnString+\"0\";\n emptyNodes.add(rightString);\n lnTriangle = leftTriangle;\n lnString=leftString;\n\n tempIntervals=intervals;\n intervals=leftIntervals;\n leftIntervals=tempIntervals;\n }\n else { //spit successfully\n\n leftString=lnString+\"0\";\n LeafNode leftNode = new LeafNode();\n leftNode.intervals=leftIntervals;\n leftNode.size=leftIntervalNumber;\n leftNode.triangle=leftTriangle;\n\n rightString = lnString+\"1\";\n LeafNode rightNode = new LeafNode();\n rightTriangle = lnTriangle.rightTriangle();\n rightNode.triangle=rightTriangle;\n rightNode.size=rightIntervalNumber;\n rightNode.intervals=rightIntervals;\n\n if(leftNode.insert(t)!=1){\n rightNode.insert(t);\n }\n\n Identifier lnPage =leafInfos.remove(ln.first());\n writeNode(leftNode,lnPage);\n Identifier rightPage = CommonSuits.createIdentifier(-1L);\n writeNode(rightNode,rightPage);\n\n leafInfos.put(leftString,lnPage);\n leafInfos.put(rightString,rightPage);\n return true;\n }\n }\n return false;\n }", "public ByteBuf discardSomeReadBytes()\r\n/* 113: */ {\r\n/* 114:130 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 115:131 */ return super.discardSomeReadBytes();\r\n/* 116: */ }", "@Test(timeout = 30000)\n public void testMoveBlockFailure() {\n // Test copy\n testMoveBlockFailure(conf);\n // Test hardlink\n conf.setBoolean(DFSConfigKeys\n .DFS_DATANODE_ALLOW_SAME_DISK_TIERING, true);\n conf.setDouble(DFSConfigKeys\n .DFS_DATANODE_RESERVE_FOR_ARCHIVE_DEFAULT_PERCENTAGE, 0.5);\n testMoveBlockFailure(conf);\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "void blackhole(){ if (zzAtBOL) return; }", "@Override\n public boolean collided() {\n return false;\n }" ]
[ "0.58902645", "0.5691384", "0.56449664", "0.5542934", "0.54841894", "0.54280216", "0.5427225", "0.52820283", "0.5280687", "0.5280173", "0.5271365", "0.5226862", "0.5206154", "0.5197882", "0.517796", "0.5170288", "0.51597834", "0.5153348", "0.51331365", "0.51109284", "0.5014179", "0.49858603", "0.4973764", "0.4973731", "0.49393815", "0.49384496", "0.4927357", "0.49169952", "0.4912548", "0.49110806", "0.49087554", "0.49051723", "0.49043778", "0.48960948", "0.48960093", "0.48952216", "0.48842934", "0.48678422", "0.48504692", "0.48424083", "0.48310253", "0.48293146", "0.48215535", "0.48190817", "0.4815318", "0.48140892", "0.48036373", "0.47921565", "0.47849736", "0.47803456", "0.47766587", "0.47726342", "0.47694445", "0.47676724", "0.47667056", "0.47627637", "0.4755807", "0.4755709", "0.47494182", "0.4747965", "0.47419885", "0.4738591", "0.47265854", "0.47174084", "0.4717074", "0.47169673", "0.47048375", "0.46999764", "0.46995786", "0.4696699", "0.46963885", "0.46903387", "0.46886247", "0.4684759", "0.46833438", "0.46727958", "0.46720895", "0.4671273", "0.4670504", "0.46651724", "0.4665129", "0.46639663", "0.46635163", "0.46629274", "0.4662045", "0.46517232", "0.46505734", "0.46494007", "0.4648641", "0.46468762", "0.4645144", "0.46416423", "0.46383518", "0.4637593", "0.4637252", "0.46365032", "0.46335277", "0.46334228", "0.46316126", "0.46304417", "0.46291938" ]
0.0
-1
this method adds a given hit listener to a list of hit listeners in this hit notifier.
void addHitListener(HitListener hl);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addHitListener(HitListener hl) {\nthis.hitListeners.add(hl);\n}", "public void addHitTestListener(HitTestListener l) {\n hitTestListenerList.add(HitTestListener.class, l);\n }", "public void addHitListener(HitListener hl) {\n this.hitListeners.add(hl);\n }", "public void addHitListener(HitListener hl) {\r\n List<HitListener> hitListeners1 = getHitListeners();\r\n hitListeners1.add(hl);\r\n this.setHitListeners(hitListeners1);\r\n\r\n }", "public void addHitListener(HitListener hl) {\r\n this.getHitListeners().add(hl);\r\n }", "public void addHitListenerToEnemy(HitListener hl) {\r\n for (Enemy e : enemies) {\r\n e.addHitListener(hl);\r\n }\r\n }", "public interface HitNotifier {\n\n /**\n * Add hl as a listener to hit events.\n * @param hl the hit listener\n */\n void addHitListener(HitListener hl);\n\n /**\n * Remove hl from the list of listeners to hit events.\n * @param hl the hit listener\n */\n void removeHitListener(HitListener hl);\n}", "public void addListener(\n IListener listener\n )\n {listeners.add(listener);}", "public interface HitNotifier {\r\n\r\n /**\r\n * @param hl a hit listener\r\n * Add hl as a listener to hit events.\r\n */\r\n void addHitListener(HitListener hl);\r\n}", "public void addListener(Listener listener) {\n m_listeners.add(listener);\n }", "public synchronized void addListener(IIpcEventListener listener) {\n\t\tlisteners.add(listener);\n\t}", "default void addListener(Runnable listener) {\n\t\tthis.getItemListeners().add(listener);\n\t}", "public List<HitListener> getHitListeners() {\r\n return this.hitListeners;\r\n }", "private void notifyHit(Ball hitter) {\n // Make a copy of the hitListeners before iterating over them.\n List<HitListener> listeners = new ArrayList<HitListener>(this.hitListeners);\n // Notify all listeners about a hit event:\n for (HitListener hl : listeners) {\n hl.hitEvent(this, hitter);\n }\n }", "public synchronized void addEventListener(InputListener listener) {\n\t\tlisteners.add(listener);\n\t}", "private void notifyHit(Ball hitter) {\r\n List<HitListener> listeners = new ArrayList<>(this.getHitListeners());\r\n for (HitListener hl : listeners) {\r\n hl.hitEvent(this, hitter);\r\n }\r\n }", "public void addListener(Listener l) {\n\t\tmListenerSet.add(l);\n\t}", "private void addListener(RestStateChangeListener... listener) {\n\t\tfor (RestStateChangeListener l : listener) {\n\t\t\tthis.listener.add(l);\n\t\t}\n\t}", "public void addListener(@NotNull ReceiverListener listener) {\n myListeners.add(listener);\n }", "public void addListener(final T listener) {\n if (listener == null)\n throw new IllegalArgumentException(\"Parameter 'listener' must not be null!\");\n _elements.add(listener);\n }", "public void addReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener) {\r\n reachabilityListeners.add(reachabilityListener);\r\n }", "public void addInteractionsListener(InteractionsListener l) {\n _listeners.addLast(l);\n }", "protected void fireFeatureHitTested() {\n Object[] listeners = hitTestListenerList.getListenerList();\n for (int i = listeners.length - 2; i >= 0; i -= 2) {\n if (listeners[i] == HitTestListener.class) {\n ((HitTestListener)listeners[i+1]).featureHit(new HitTestEvent(this, HitTestEvent.FEATURE_HIT));\n }\n }\n }", "void addGestureHandler(GestureEventListener listener);", "public void addListener(UIEventListener uel) {\n this.listeners.add(uel);\n }", "public void notifyHit(Ball hitter) {\r\n // Make a copy of the hitListeners before iterating over them.\r\n List<HitListener> listeners = new ArrayList<HitListener>(this.hitListeners);\r\n // Notify all listeners about a hit event:\r\n for (HitListener hl : listeners) {\r\n hl.hitEvent(this, hitter);\r\n }\r\n }", "public void addListener(ChipListener l) {\n if (!listeners.contains(l)) listeners.add(l);\n }", "static //@Override\n\tpublic void addListener(final Listener listener) {\n\t\tif (null == stListeners) {\n\t\t\tstListeners = new LinkedList<>();\n\t\t}\n\t\tstListeners.add(listener);\n\t}", "public void addListener(EventListener listener);", "public void addListener(Listener l) {\n if (!listeners.contains(l)) {\n listeners.add(l);\n }\n }", "public void addFlickListener(FlickListener l) {\r\n\t\tlisteners.add(l);\r\n\t}", "void addPersonListener(PersonListener personListener, Person... persons) {\n for (Person c : persons) {\n HashSet<PersonListener> listeners;\n if (!personListeners.containsKey(c)) {\n listeners = new HashSet<PersonListener>();\n listeners.add(personListener);\n personListeners.put(c, listeners);\n } else {\n listeners = personListeners.get(c);\n listeners.add(personListener);\n }\n }\n }", "public void addONDEXListener(ONDEXListener l) {\n listeners.add(l);\n }", "public void addListener(CachePolicyListener listener) {\n if (listener == null) {\n throw new IllegalArgumentException(\"Cannot add null listener.\");\n }\n if ( ! listeners.contains(listener)) {\n listeners.addElement(listener);\n }\n }", "public void addItemListener(ItemListener l) {\r\n\t\tint index = this.itemListeners.indexOf(l);\r\n\t\tif (index==-1) {\r\n\t\t\tthis.itemListeners.add(l);\r\n\t\t} else {\r\n\t\t\tthis.itemListeners.set(index,l);\t\t\t\r\n\t\t}\r\n\t}", "public static void listen(HistoryListener hl) {\n\t\tlisteners.add(hl);\n\t}", "public void addTargetListener(TargetListener l) {\n listenerList.add(TargetListener.class,l);\n }", "public void addZoomListener(ZoomListener listener) {\n\tlisteners.add(listener);\n}", "public void addEventListener(EventListener listener){\n listenerList.add(EventListener.class, listener);\n }", "abstract public void addListener(Listener listener);", "public void addListener(ModifiedEventListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public static void addTagListener(Tag tag, TagListener listener){\n\n //get the list of listeners of a tag\n ArrayList<TagListener> listeners = tagListeners.get(tag);\n\n //if the tag doesn't have any listeners yet\n if(listeners==null){\n //create the list\n listeners = new ArrayList<TagListener>();\n //add the list to the map\n tagListeners.put(tag,listeners);\n }\n\n //add the new listener to the list of listeners of a certain tag\n listeners.add(listener);\n }", "public void addSnapListener(OrthoSnapListener l) {\r\n\t\tif (orthoSnapListeners == null) {\r\n\t\t\torthoSnapListeners = new ArrayList<OrthoSnapListener>();\r\n\t\t}\r\n\t\tif (!this.orthoSnapListeners.contains(l)) {\r\n\t\t\torthoSnapListeners.add(l);\r\n\t\t}\r\n\t}", "public void addListener(AwaleListener awaleListener) {\r\n\tthis.listeners.add(awaleListener);\r\n }", "public void maybeAdd(Object listener) {\n if (type.isInstance(listener)) {\n add(type.cast(listener));\n }\n }", "public void addAnswerListener(AnswerListener anw){\n\t\tlisteners.add(anw);\n\t}", "public static void addListener(MetadataListListener listener) {\n if (DEBUG.Enabled) Log.debug(\"listeners no longer allowed, will not report to: \" + Util.tags(listener));\n // listeners.add(listener);\n }", "public void addChangeListener(ChangeListener l) {\r\n listenerList.add(ChangeListener.class, l);\r\n }", "public void addChangeListener(ChangeListener l) {\r\n listenerList.add(ChangeListener.class, l);\r\n }", "public void addListener(MinMaxListener listener) {\n listeners.add(listener);\n }", "@Override\n\tpublic void addActionListener(ActionListener listener) {\n\t\tlisteners.add(listener);\n\t}", "private final void fire(HashSet<Consumer<SpanNode<T>>> listeners){\n for (Consumer<SpanNode<T>> listener: listeners) listener.accept(this);\n }", "public synchronized <T extends EventListener> void add(Class<T> t, T l) {\n \tif (l == null || !t.isInstance(l)) return;\n \t\n \tlisteners.add(l);\n }", "public void addChangeListener(ChangeListener listener) { _changeListeners.add(listener); }", "public void enableMultiTouchElementListeners() {\r\n\t\tif (itemListeners == null) {\r\n\t\t\titemListeners = new ArrayList<ItemListener>();\r\n\t\t}\r\n\t\tif (screenCursorListeners == null) {\r\n\t\t\tscreenCursorListeners = new ArrayList<ScreenCursorListener>();\r\n\t\t}\r\n\t\tif (orthoControlPointRotateTranslateScaleListeners == null) {\r\n\t\t\torthoControlPointRotateTranslateScaleListeners = new ArrayList<OrthoControlPointRotateTranslateScaleListener>();\r\n\t\t}\r\n\t\tif (bringToTopListeners == null) {\r\n\t\t\tbringToTopListeners = new ArrayList<BringToTopListener>();\r\n\t\t}\r\n\t\tif (orthoSnapListeners == null) {\r\n\t\t\torthoSnapListeners = new ArrayList<OrthoSnapListener>();\r\n\t\t}\r\n\t\tif (flickListeners == null) {\r\n\t\t\tflickListeners = new ArrayList<OrthoFlickListener>();\r\n\t\t}\r\n\t\t\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addBringToTopListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addItemListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addOrthoControlPointRotateTranslateScaleListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addSnapListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addFlickListener(this);\r\n\t}", "public void addObjectChangeListener(ObjectChangeListener listener)\n\t{\n\t\tif (listenerList == null)\tlistenerList = new java.util.HashSet<ObjectChangeListener>(1,1);\n\t\tlistenerList.add(listener);\n\t}", "public void addObjectChangeListener(ObjectChangeListener listener)\n\t{\n\t\tif (listenerList == null)\tlistenerList = new java.util.HashSet<ObjectChangeListener>(1,1);\n\t\tlistenerList.add(listener);\n\t}", "public void addListener(ATabbedPaneListener listener) {\n\t\tlisteners.add(listener);\n\t}", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "public MockRestRequest addListener(EventListener listener) {\n if (listener != null) {\n synchronized (listeners) {\n listeners.add(listener);\n }\n }\n return this;\n }", "private void addListeners() {\n \t\tfHistoryListener= new HistoryListener();\n \t\tfHistory.addOperationHistoryListener(fHistoryListener);\n \t\tlistenToTextChanges(true);\n \t}", "public static void addAssetListener(MD5Key key, AssetAvailableListener... listeners) {\n \n \t\tif (listeners == null || listeners.length == 0) {\n \t\t\treturn;\n \t\t}\n \n \t\tList<AssetAvailableListener> listenerList = assetListenerListMap.get(key);\n \t\tif (listenerList == null) {\n \t\t\tlistenerList = new LinkedList<AssetAvailableListener>();\n \t\t\tassetListenerListMap.put(key, listenerList);\n \t\t}\n \n \t\tfor (AssetAvailableListener listener : listeners) {\n \t\t\tif (!listenerList.contains(listener)) {\n \t\t\t\tlistenerList.add(listener);\n \t\t\t}\n \t\t}\n \t}", "private void addActionCellListener(ActionCellListener listener) {\n\t\tactionCellListeners.add(listener);\n\t}", "public void addListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;", "public void addChangeListener(ChangeListener<BufferedImage> listener) {\n observer.add(listener);\n }", "public void attachListeners(MouseListener l) {\n for (LetterTile tile : rack)\n tile.addTileListener(l);\n }", "public void addListener(GridListener listener) {\n listeners.add(listener);\n }", "public final void addChangeListener(ChangeListener l) {\n\t\tsynchronized (listeners) {\n\t\t\tlisteners.add(l);\n\t\t}\n\t}", "public void addListenerForKey(DataFeedListener listener, String key) {\n if (!validateKey(key)) {\n return;\n }\n\n Vector<DataFeedListener> listeners = listenersForKey(key);\n if (listeners == null) {\n listeners = new Vector<DataFeedListener>(10);\n listenerMap.put(key, listeners);\n }\n listeners.addElement(listener);\n }", "public void addChangeListener(ChangeListener listener)\r\n {\r\n listeners.add(listener);\r\n }", "private void addListener(final @NonNull Consumer<E> listener) {\n if (eventListeners.isEmpty()) {\n PLUGIN_MANAGER.registerEvent(\n configuration.getType(), this, configuration.getPriority(), this, configuration.getPlugin()\n );\n LISTENERS_GROUPS.putIfAbsent(configuration, this);\n }\n\n eventListeners.add(listener);\n }", "public void addRatioListener(IRatioListener listener)\r\n {\r\n // Add the listener if he isn't already in our list\r\n if (!ratioListeners.contains(listener))\r\n {\r\n ratioListeners.add(listener);\r\n }\r\n }", "public void addTrackerListener(IXArchRelativePathTrackerListener listener) {\n listeners.add(listener);\n }", "public void addChangeListener (ChangeListener listener)\n {\n listenerList.add(ChangeListener.class, listener);\n }", "public void addChangeListener(ChangeListener l) {\r\n\t\tint index = this.changeListeners.indexOf(l);\r\n\t\tif (index==-1) {\r\n\t\t\tthis.changeListeners.add(l);\t\t\t\r\n\t\t} else {\r\n\t\t\tthis.changeListeners.set(index,l);\t\t\t\t\t\t\r\n\t\t}\r\n\t}", "@Override\n public <T extends EventListener> void addListener(T t) {\n\n }", "public void addMinesButtonListener(MinesButtonListener l) {\r\n\t\tif (!listeners.contains(l))\r\n\t\t\tlisteners.add(l);\r\n\t}", "private void setListeners() {\n\n }", "public abstract void registerListeners();", "public void addListeners()\n {\n super.addListeners();\n BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE);\n Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE);\n recBooking.addArDetail(null, recBookingLine, false);\n \n recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null));\n recBookingLine.addListener(new BookingLineStatusHandler(null));\n }", "@SuppressWarnings(\"unchecked\")\n public void addViewChangeListener(IPSViewChangeListener listener)\n {\n if(listener == null)\n throw new IllegalArgumentException(\"listener may not be null.\");\n\n m_viewChangeListeners.add(listener);\n }", "public void addNPTListener(NPTListener l){}", "public void addListener(TypeAeronefListener aListener) {\n\t mListListener.add(aListener);\n\t}", "void registerListeners();", "public void addListener( RemoteFileIOListener passedListener ) {\n if(passedListener != null){\n\n synchronized(theTaskListeners){\n if(!theTaskListeners.contains(passedListener)){\n theTaskListeners.add(passedListener);\n }\n }\n }\n }", "public void registerAnnotEventListener(AnnotEventListener listener) {\n mAnnotEventListenerList.add(listener);\n }", "public void removeHitListener(HitListener hl) {\nthis.hitListeners.remove(hl);\n}", "protected abstract void collectFires(Collection<Object> evAndListeners);", "@Override\n public void addListener(DisplayEventListener listener) {\n listenerList.add(DisplayEventListener.class, listener);\n }", "public void addListener(AudioEventListener handler) {\n if (!eventHandlerList.contains(handler)) {\n eventHandlerList.add(handler);\n }\n }", "private void addListeners(){\n Conservable[] listenerFromProductTypeRelation = this.productRelation.getListener();\n this.listener[0] = listenerFromProductTypeRelation[0];\n this.listener[1] = listenerFromProductTypeRelation[1];\n this.listener[2] = this.post;\n this.listener[3] = this.productRelation;\n this.listener[4] = this;\n }", "public void addChatChangeListener(ChatChangeListener listener)\n {\n synchronized (chatChangeListeners)\n {\n if (!chatChangeListeners.contains(listener))\n chatChangeListeners.add(listener);\n }\n }", "@Override\n\tpublic void addGameEventListener(GameEventListener listener) throws RemoteException {\n\t\t\n\t}", "public void addListener(GrillEventListener listener);", "@Override\n public void attach(IObserver observer) {\n listeners.add(observer);\n }", "public void addListener(StatisticsListener listener)\r\n\t{\r\n\t\tlisteners.add(listener);\r\n\t}" ]
[ "0.7939308", "0.759045", "0.74553686", "0.73354554", "0.7261941", "0.6929178", "0.6370521", "0.6345784", "0.62687796", "0.6168392", "0.60547924", "0.6015566", "0.5995683", "0.59911317", "0.59683037", "0.59341294", "0.5909613", "0.58734447", "0.58670765", "0.5852726", "0.58466494", "0.58428496", "0.58196014", "0.5801846", "0.5783796", "0.5778829", "0.5772161", "0.57656866", "0.57523936", "0.57515806", "0.5748205", "0.574715", "0.5707548", "0.5694596", "0.5681117", "0.5678459", "0.5673053", "0.56600654", "0.5643999", "0.56294674", "0.56017673", "0.55963546", "0.55931675", "0.5584599", "0.5581668", "0.5580708", "0.5575461", "0.5573941", "0.5573941", "0.55665165", "0.55502856", "0.5549939", "0.5547755", "0.5536328", "0.55330473", "0.5527063", "0.5527063", "0.5522495", "0.5522086", "0.5513279", "0.5509257", "0.5507396", "0.55061656", "0.55026674", "0.5499007", "0.548654", "0.5478505", "0.54659957", "0.54633194", "0.54622614", "0.5460777", "0.54589826", "0.5456632", "0.5453938", "0.54538727", "0.543519", "0.54221493", "0.54209834", "0.5419527", "0.54189664", "0.5415318", "0.54112464", "0.54003197", "0.5398296", "0.5397337", "0.53973216", "0.53933203", "0.53868383", "0.5386256", "0.5383464", "0.5383183", "0.53806245", "0.53696054", "0.53658676", "0.5363412", "0.5362693", "0.5361477" ]
0.7420389
5
this method removes a given hit listener object from the list of hit listeners in this hit notifier.
void removeHitListener(HitListener hl);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeHitListener(HitListener hl) {\nthis.hitListeners.remove(hl);\n}", "public void removeHitTestListener(HitTestListener l) {\n hitTestListenerList.remove(HitTestListener.class, l);\n }", "public void removeHitListener(HitListener hl) {\n this.hitListeners.remove(hl);\n }", "public void removeHitListener(HitListener hl) {\r\n this.getHitListeners().remove(hl);\r\n }", "public void removeHitListener(HitListener hl) {\r\n List<HitListener> hitListeners1 = getHitListeners();\r\n hitListeners1.remove(hl);\r\n this.setHitListeners(hitListeners1);\r\n }", "public void removeListener(T listener);", "public void removeListener(GrillEventListener listener);", "@Override\n public void removeListener() {\n this.mListener = null;\n }", "public synchronized void removeListener(IIpcEventListener listener) {\n\t\tlisteners.remove(listener);\n\t}", "public synchronized void removeEventListener(InputListener listener) {\n\t\tlisteners.remove(listener);\n\t}", "private void removeEventListener(IEventListener<T> listener) {\n\t\t\tevent.removeEventListener(listener);\n\t\t}", "@Override\r\n\tpublic synchronized void unregisterListener(EventListener<T> listener) {\n\t\tlisteners.removeElement(listener);\r\n\t}", "public void remove(Object listener) {\n if (!type.isInstance(listener)) {\n return;\n }\n if (listener.equals(logger.getDelegate())) {\n logger = noOpLogger;\n }\n handlers.remove(listener);\n }", "public void removeListener(final T listener) {\n if (listener == null)\n throw new IllegalArgumentException(\"Parameter 'listener' must not be null!\");\n for (Iterator<T> it = _elements.iterator(); it.hasNext(); ) {\n if (it.next().equals(listener)) {\n it.remove();\n break;\n }\n }\n }", "public void removeEventListener(EventListener listener){\n try {\n listenerList.remove(EventListener.class, listener);\n } catch (Exception e) {\n System.out.println(\"[analizadorClient.removeEventListener]\" + e.getMessage());\n }\n \n \n }", "public void removeInteractionsListener(InteractionsListener l) {\n _listeners.remove(l);\n }", "void removeListener(BotListener l);", "default void removeListener(Runnable listener) {\n\t\tthis.getItemListeners().remove(listener);\n\t}", "@Override\r\n public void unregister(L listener) {\r\n synchronized (listeners) {\r\n listeners.remove(listener);\r\n weak.remove(listener);\r\n }\r\n }", "@Override\n public void removeListener(DisplayEventListener listener) {\n listenerList.remove(DisplayEventListener.class, listener);\n }", "public void removeFlickListener(FlickListener l) {\r\n\t\tif (listeners.contains(l)) {\r\n\t\t\tlisteners.remove(l);\r\n\t\t}\r\n\t}", "public void removeListener(Listener l) {\n\t\tmListenerSet.remove(l);\n\t}", "public void removeObjectChangeListener(ObjectChangeListener listener)\n\t{\n\t\tif (listenerList == null)\treturn;\n\t\tlistenerList.remove(listener);\n\t\tif (listenerList.size()==0) listenerList = null;\n\t}", "public void removeObjectChangeListener(ObjectChangeListener listener)\n\t{\n\t\tif (listenerList == null)\treturn;\n\t\tlistenerList.remove(listener);\n\t\tif (listenerList.size()==0) listenerList = null;\n\t}", "public synchronized void removeEventListener(IEventListener listener){\r\n\t\twhile (isBlocked) {\r\n\t\t\tThread.yield();\r\n\t\t}\r\n\t\tlisteners.remove(listener);\r\n\t}", "public void removeTuioListener(TuioListener listener)\n\t{\n\t\tlistenerList.removeElement(listener);\t\n\t}", "void removeListener(MapDelegateEventListener<K, V> listener);", "void removeListener(RiakFutureListener<V,T> listener);", "public void removeListener(AudioEventListener handler) {\n if (eventHandlerList.contains(handler)) {\n eventHandlerList.remove(handler);\n }\n }", "public void removeNPTListener(NPTListener l) {}", "private void removeListener(final @NonNull Consumer<E> listener) {\n eventListeners.remove(listener);\n\n if (eventListeners.isEmpty()) {\n HandlerList.unregisterAll(this);\n LISTENERS_GROUPS.remove(configuration);\n }\n }", "void removeListener(ChangeListener<? super T> listener);", "public void removeListenerForType(GrillEventListener listener, Class<? extends GrillEvent> eventType);", "public void removeChangeListener(ChangeListener<BufferedImage> listener) {\n observer.remove(listener);\n }", "void removePersonListener(PersonListener listener) {\n PersonListener remove = null;\n for (Map.Entry<Person, HashSet<PersonListener>> entry :\n personListeners.entrySet()) {\n for (PersonListener entityListener : entry.getValue()) {\n if (entityListener.equals(listener)) {\n remove = entityListener;\n break;\n }\n }\n if (remove != null) {\n entry.getValue().remove(remove);\n remove = null;\n }\n }\n }", "public void removeONDEXListener(ONDEXListener l) {\n listeners.remove(l);\n }", "void removeListener(IEventChannelListener<K, V> listener);", "public void removeListener(LineListener listener) {\n\t\tplayer.removeListeners(listener);\n\t}", "public void removeListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;", "public void removeListener(GazListener listener) {\n this.listeners.remove(GazListener.class, listener);\n }", "protected void removeListeners() {\n }", "public void removeTargetListener(TargetListener l) {\n listenerList.remove(TargetListener.class,l);\n }", "public synchronized void removeGestureEventListener(Class<? extends IInputProcessor> gestureEvtSender, IGestureEventListener listener) {\n if (listener == null || gestureEvtSender == null) {\n return;\n }\n\n this.lazyInitializeMap();\n\n if (this.gestureSenderToGestureListener != null) {\n IGestureEventListener[] array = this.gestureSenderToGestureListener.get(gestureEvtSender);\n if (array != null) {\n\n for (int i = 0; i < array.length; i++) {\n if (listener.equals(array[i])) {\n int size = array.length - 1;\n if (size > 0) {\n IGestureEventListener[] clone = newArray(size);\n System.arraycopy(array, 0, clone, 0, i);\n System.arraycopy(array, i + 1, clone, i, size - i);\n this.gestureSenderToGestureListener.put(gestureEvtSender, clone);\n } else {\n this.gestureSenderToGestureListener.remove(gestureEvtSender);\n if (this.gestureSenderToGestureListener.isEmpty()) {\n this.gestureSenderToGestureListener = null;\n }\n }\n break;\n }\n }\n }\n }\n }", "public void unregisterListeners(){\n listeners.clear();\n }", "public void unbind(final OIFitsCollectionManagerEventListener listener) {\n for (final EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object> eventNotifier : this.oiFitsCollectionManagerEventNotifierMap.values()) {\n eventNotifier.unregister(listener);\n }\n }", "private void removeListener(int n) {\n Object object = this.mMapLock;\n synchronized (object) {\n this.mListenerMap.remove(n);\n this.mServiceMap.remove(n);\n return;\n }\n }", "public void removeListener(AlgorithmInterface obj) {\r\n objectList.removeElement(obj);\r\n }", "@Override\n\tpublic void delObserver(ObserverListener ob) {\n\t\tvector.remove(ob);\n\t}", "public void removeListener(TransferListener listener) {\n listeners.remove(listener);\n }", "void removeListener(MapChangeListener<? super K, ? super V> listener);", "public void removeListeners() {\n for (LetterTile tile : rack)\n tile.removeTileListener();\n }", "public void removeListener(StatisticsListener listener)\r\n\t{\r\n\t\tlisteners.remove(listener);\r\n\t}", "public synchronized <T extends EventListener> void remove(Class<T> t, T l) {\n \tif (l == null || !t.isInstance(l)) return;\n \t\n \twhile (listeners.remove(l)) {};\n }", "public void removeListener(DCCSessionListener listener) {\n while(this.chatListeners.remove(listener)) {\n // just keep removing the listener until we no longer have any more of that type left\n }\n }", "public void removeChangeListener(ChangeListener listener) { _changeListeners.remove(listener); }", "void removeGestureHandler(GestureEventListener listener);", "public void removeListeners() {\n if ( listeners != null ) {\n listeners.clear();\n }\n }", "public void unregisterListener() {\n\t\tthis.listener = null;\n\t}", "public void removeListener(final IMemoryViewerSynchronizerListener listener) {\n m_listeners.removeListener(listener);\n }", "public void removeListener(LogListener listener) {\n\t\tthis.eventListeners.remove(listener);\n\t}", "public void removeListener(CachePolicyListener listener) {\n listeners.removeElement(listener);\n }", "public void removeListener(final IHistoryStringBuilderListener listener) {\n m_listeners.removeListener(listener);\n }", "public void removeListener(IMXEventListener listener) {\n if (isAlive() && (null != listener)) {\n synchronized (mMxEventDispatcher) {\n mMxEventDispatcher.removeListener(listener);\n }\n }\n }", "void removeListener(@Nonnull final ServletRequestAttributeListenerInfo info)\n {\n final ServletRequestAttributeListener service = this.requestAttributeListeners\n .remove(info.getServiceReference());\n if (service != null)\n {\n info.ungetService(bundle, service);\n }\n }", "public void removeReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener) {\r\n reachabilityListeners.remove(reachabilityListener);\r\n }", "public void unregister(ListenerRegistration listener) {\n if (handlerSlots.get(listener.getOrder()).contains(listener)) {\n dirty();\n handlerSlots.get(listener.getOrder()).remove(listener);\n }\n }", "public synchronized void removeChangeListener(ChangeListener l) {\n if (changeListeners != null && changeListeners.contains(l)) {\n Vector v = (Vector) changeListeners.clone();\n v.removeElement(l);\n changeListeners = v;\n }\n }", "public void removeCompletionListener(Runnable listener) {\n\t\tcompletionListeners.remove(listener);\n\t}", "public void removeListener(ILabelProviderListener listener) {\n \t\t\r\n \t}", "public void removeAnswerListener(AnswerListener anw){\n\t\tlisteners.remove(anw);\n\t}", "public synchronized void removeButtonListener(ButtonListener l) {\r\n listeners.removeElement(l);\r\n }", "public void removeFactListener(GenericFactListener<Fact> listener);", "public void removeListener(RepaintRequestListener listener) {\n }", "public void removeObjectTemperatureReachedListener(ObjectTemperatureReachedListener listener) {\n\t\tlistenerObjectTemperatureReached.remove(listener);\n\t}", "public void removeListener(ValueChangedListener listener) {\n\t\t_listenerManager.removeListener(listener);\n\t}", "public void removeChessEventListener(ChessEventListener listener){\r\n listenerList.remove(ChessEventListener.class, listener);\r\n\r\n if (listenerList.getListenerCount(ChessEventListener.class)==0){\r\n setDGState(Datagram.DG_TOURNEY, false);\r\n setDGState(Datagram.DG_REMOVE_TOURNEY, false);\r\n }\r\n }", "void removeListener(@Nonnull final HttpSessionAttributeListenerInfo info)\n {\n final HttpSessionAttributeListener service = this.sessionAttributeListeners\n .remove(info.getServiceReference());\n if (service != null)\n {\n info.ungetService(bundle, service);\n }\n }", "void removeListener(@Nonnull final ServletContextAttributeListenerInfo info)\n {\n final ServletContextAttributeListener service = this.contextAttributeListeners\n .remove(info.getServiceReference());\n if (service != null)\n {\n info.ungetService(bundle, service);\n }\n }", "public void removeAmplitudeListener(IDualAmplitudeListener listener)\r\n {\r\n amplitudeListeners.remove(listener);\r\n }", "public synchronized void removeCompletionListener(ActionListener l) {\n completionListeners.removeElement(l); //remove listeners\n }", "synchronized public void removeLogListener(LogListener l) {\n\t\tif (listeners == null)\n\t\t\tlisteners = new Vector();\n\t\tlisteners.removeElement(l);\n\t}", "public void removeTrackerListener(IXArchRelativePathTrackerListener listener) {\n listeners.remove(listener);\n }", "public void removeListener(ILabelProviderListener listener) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void unregisterEventListener(IHFModuleEventListener li) {\n\t\tLog.d(\"HFModuleManager\", \"unregisterEventListener\");\n\t\tthis.eventListenerList.remove(li);\n\t}", "public void removeListener(PrimitiveId primitiveId, SessionListener sessionListener) {\n Set<SessionListener> sessionListeners = listeners.get(primitiveId);\n if (sessionListeners != null) {\n sessionListeners.remove(sessionListener);\n if (sessionListeners.isEmpty()) {\n listeners.remove(primitiveId);\n }\n }\n }", "@Override\n public void removeListener(StreamListener listener) {\n streamListeners.remove(listener);\n }", "public void removeListener(ILabelProviderListener listener) {\n\t}", "public void removeDataDirectorListener(DataDirectorListener l) \n {\n if (l != null)\n {\n m_dataDirectorListeners.removeElement(l);\n }\n }", "@Override\n\tpublic void removeActionListener(ActionListener listener) {\n\t\tlisteners.add(listener);\n\t}", "@Override\r\n\tpublic void removeHandlerListener(IHandlerListener handlerListener) {\n\r\n\t}", "public void removeTraceListener(TraceListener tl)\r\n {\r\n\r\n if (null != m_traceListeners)\r\n {\r\n m_traceListeners.removeElement(tl);\r\n }\r\n }", "void removeListener(@Nonnull final HttpSessionIdListenerInfo info)\n {\n final HttpSessionIdListener service = this.sessionIdListeners.remove(info.getServiceReference());\n if (service != null)\n {\n info.ungetService(bundle, service);\n }\n }", "void removeListener(GraphListener listener);", "void removeDataCollectionListener(DataCollectionListener l);", "public void removeChatChangeListener(ChatChangeListener listener)\n {\n synchronized (chatChangeListeners)\n {\n chatChangeListeners.remove(listener);\n }\n }", "public void removeEventListener(GroupChatListener listener)\n\t\t\tthrows RcsServiceException {\n\t\tif (api != null) {\n\t\t\ttry {\n\t\t\t\tapi.removeEventListener3(listener);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RcsServiceException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RcsServiceNotAvailableException();\n\t\t}\n\t}", "@Override\n public void removeHandlerListener(IHandlerListener handlerListener) {\n\n }" ]
[ "0.8281208", "0.7926446", "0.7696187", "0.7585134", "0.75707984", "0.73713493", "0.7077662", "0.70315063", "0.69973063", "0.6986824", "0.6978558", "0.69718474", "0.694815", "0.6929077", "0.69081897", "0.6899041", "0.683982", "0.6824448", "0.67903394", "0.6777483", "0.67772555", "0.66818345", "0.6677364", "0.6677364", "0.6656723", "0.6650546", "0.66450274", "0.6604221", "0.65805423", "0.6572784", "0.6571675", "0.65592635", "0.6539663", "0.6537281", "0.6526532", "0.6525416", "0.6519322", "0.65159106", "0.6511421", "0.6492459", "0.6490526", "0.648023", "0.64742255", "0.64702684", "0.64617896", "0.64595866", "0.6445466", "0.64451706", "0.64446616", "0.6439743", "0.6437995", "0.6437679", "0.64359015", "0.64248854", "0.6421771", "0.6417236", "0.6407342", "0.6398359", "0.6390486", "0.63890445", "0.6369048", "0.6367055", "0.63623625", "0.6351329", "0.6331526", "0.6325776", "0.63239104", "0.63216156", "0.63062644", "0.63040304", "0.6299377", "0.6283151", "0.62763876", "0.6271112", "0.6263014", "0.6246731", "0.62464386", "0.62428516", "0.62414974", "0.6239024", "0.62389064", "0.62350094", "0.62337506", "0.62302446", "0.6217226", "0.62168294", "0.621331", "0.621303", "0.6202109", "0.6196727", "0.6191085", "0.618801", "0.618501", "0.6182172", "0.6181232", "0.6179824", "0.6176041" ]
0.7902012
4
TODO Autogenerated method stub
public Node create(Requirement requirement) { Node nodeRequirementDb = db.createNode(requirementNode.REQUIREMENT); nodeRequirementDb.setProperty( "Name", requirement.getName()); nodeRequirementDb.setProperty( "Type", requirement.getRequirementType().getNamespaceURI()+":"+requirement.getRequirementType().getLocalPart()); nodeRequirementDb.setProperty( "Namespace", requirement.getRequirementType().getNamespaceURI()); nodeRequirementDb.setProperty( "Prefix", preFixDao.getPrefixByNameSpaceUrl(requirement.getRequirementType().getNamespaceURI())); nodeRequirementDb.setProperty( "Localpart", requirement.getRequirementType().getLocalPart()); nodeRequirementDb.setProperty( "LowerBound", requirement.getLowerBound()); nodeRequirementDb.setProperty( "UpperBound", requirement.getUpperBound()); if(requirement.getConstraints() != null){ Iterator<Constraint> iteratorConstraint = requirement.getConstraints().getConstraint().iterator(); Constraint nextConstraint = null; while (iteratorConstraint.hasNext()) { nextConstraint = iteratorConstraint.next(); constraintDao.create(nextConstraint); } } return nodeRequirementDb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { contato = new Contato(); try { contato.RecuperarLista(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "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
Create the input fluid to the TEG process and saturate it with water at scrubber conditions
public static void main(String[] args) { neqsim.thermo.system.SystemInterface feedGas = new neqsim.thermo.system.SystemSrkCPAstatoil(273.15 + 42.0, 10.00); feedGas.addComponent("nitrogen", 1.03); feedGas.addComponent("CO2", 1.42); feedGas.addComponent("methane", 83.88); feedGas.addComponent("ethane", 8.07); feedGas.addComponent("propane", 3.54); feedGas.addComponent("i-butane", 0.54); feedGas.addComponent("n-butane", 0.84); feedGas.addComponent("i-pentane", 0.21); feedGas.addComponent("n-pentane", 0.19); feedGas.addComponent("n-hexane", 0.28); feedGas.addComponent("water", 0.0); feedGas.addComponent("TEG", 0); feedGas.createDatabase(true); feedGas.setMixingRule(10); feedGas.setMultiPhaseCheck(true); Stream dryFeedGas = new Stream("dry feed gas", feedGas); dryFeedGas.setFlowRate(11.23, "MSm3/day"); dryFeedGas.setTemperature(30.4, "C"); dryFeedGas.setPressure(52.21, "bara"); StreamSaturatorUtil saturatedFeedGas = new StreamSaturatorUtil(dryFeedGas); Stream waterSaturatedFeedGas = new Stream(saturatedFeedGas.getOutStream()); saturatedFeedGas.setName("water saturator"); neqsim.thermo.system.SystemInterface feedTEG = (neqsim.thermo.system.SystemInterface) feedGas.clone(); feedTEG.setMolarComposition(new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02, 0.98 }); Stream TEGFeed = new Stream("lean TEG to absorber", feedTEG); TEGFeed.setFlowRate(6.1 * 1100.0, "kg/hr"); TEGFeed.setTemperature(35.4, "C"); TEGFeed.setPressure(52.21, "bara"); SimpleTEGAbsorber absorber = new SimpleTEGAbsorber("SimpleTEGAbsorber"); absorber.addGasInStream(waterSaturatedFeedGas); absorber.addSolventInStream(TEGFeed); absorber.setNumberOfStages(10); absorber.setStageEfficiency(0.35); Stream dehydratedGas = new Stream(absorber.getGasOutStream()); dehydratedGas.setName("dry gas from absorber"); Stream richTEG = new Stream(absorber.getSolventOutStream()); ThrottlingValve glycol_flash_valve = new ThrottlingValve(richTEG); glycol_flash_valve.setName("Rich TEG HP flash valve"); glycol_flash_valve.setOutletPressure(4.9); Heater richGLycolHeaterCondeser = new Heater(glycol_flash_valve.getOutStream()); richGLycolHeaterCondeser.setName("rich TEG preheater"); richGLycolHeaterCondeser.setOutTemperature(273.15 + 35.5); Heater richGLycolHeater = new Heater(richGLycolHeaterCondeser.getOutStream()); richGLycolHeater.setName("rich TEG heater HP"); richGLycolHeater.setOutTemperature(273.15 + 62.0); Separator flashSep = new Separator(richGLycolHeater.getOutStream()); flashSep.setName("degasing separator"); Stream flashGas = new Stream(flashSep.getGasOutStream()); flashGas.setName("gas from degasing separator"); Stream flashLiquid = new Stream(flashSep.getLiquidOutStream()); flashLiquid.setName("liquid from degasing separator"); Heater richGLycolHeater2 = new Heater(flashLiquid); richGLycolHeater2.setName("LP rich glycol heater"); richGLycolHeater2.setOutTemperature(273.15 + 139.0); richGLycolHeater2.setOutPressure(1.23); Mixer mixerTOreboiler = new Mixer("reboil mxer"); mixerTOreboiler.addStream(richGLycolHeater2.getOutStream()); Heater heaterToReboiler = new Heater(mixerTOreboiler.getOutStream()); heaterToReboiler.setOutTemperature(273.15 + 206.6); Separator regenerator2 = new Separator(heaterToReboiler.getOutStream()); Stream gasFromRegenerator = new Stream(regenerator2.getGasOutStream()); Heater sepregenGasCooler = new Heater(gasFromRegenerator); sepregenGasCooler.setOutTemperature(273.15 + 109.0); sepregenGasCooler.setOutPressure(1.23); // sepregenGasCooler.setEnergyStream(richGLycolHeaterCondeser.getEnergyStream()); Separator sepRegen = new Separator(sepregenGasCooler.getOutStream()); Stream liquidRegenReflux = new Stream(sepRegen.getLiquidOutStream()); Recycle resycle2 = new Recycle("reflux resycle"); resycle2.addStream(liquidRegenReflux); Heater coolerRegenGas = new Heater(sepRegen.getGasOutStream()); coolerRegenGas.setOutTemperature(273.15 + 35.5); Separator sepregenGas = new Separator(coolerRegenGas.getOutStream()); Stream gasToFlare = new Stream(sepregenGas.getGasOutStream()); Stream liquidToTrreatment = new Stream(sepregenGas.getLiquidOutStream()); Stream hotLeanTEG = new Stream(regenerator2.getLiquidOutStream()); neqsim.thermo.system.SystemInterface stripGas = (neqsim.thermo.system.SystemInterface) feedGas.clone(); stripGas.setMolarComposition(new double[] { 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }); Stream strippingGas = new Stream("stripGas", stripGas); strippingGas.setFlowRate(70.0, "kg/hr"); strippingGas.setTemperature(206.6, "C"); strippingGas.setPressure(1.23, "bara"); WaterStripperColumn stripper = new WaterStripperColumn("TEG stripper"); stripper.addGasInStream(strippingGas); stripper.addSolventInStream(hotLeanTEG); stripper.setNumberOfStages(10); stripper.setStageEfficiency(0.5); Recycle resycle3 = new Recycle("gas stripper resycle"); resycle3.addStream(stripper.getGasOutStream()); Pump hotLeanTEGPump = new Pump(stripper.getSolventOutStream()); hotLeanTEGPump.setName("hot lean TEG pump"); hotLeanTEGPump.setOutletPressure(20.0); Heater coolerhOTteg = new Heater(hotLeanTEGPump.getOutStream()); coolerhOTteg.setName("hot lean TEG cooler"); coolerhOTteg.setOutTemperature(273.15 + 116.8); Heater coolerhOTteg2 = new Heater(coolerhOTteg.getOutStream()); coolerhOTteg2.setName("medium hot lean TEG cooler"); coolerhOTteg2.setOutTemperature(273.15 + 89.3); Heater coolerhOTteg3 = new Heater(coolerhOTteg2.getOutStream()); coolerhOTteg3.setName("lean TEG cooler"); coolerhOTteg3.setOutTemperature(273.15 + 44.85); Pump hotLeanTEGPump2 = new Pump(coolerhOTteg3.getOutStream()); hotLeanTEGPump2.setName("lean TEG HP pump"); hotLeanTEGPump2.setOutletPressure(52.21); Stream leanTEGtoabs = new Stream(hotLeanTEGPump2.getOutStream()); leanTEGtoabs.setName("lean TEG to absorber"); neqsim.thermo.system.SystemInterface pureTEG = (neqsim.thermo.system.SystemInterface) feedGas.clone(); pureTEG.setMolarComposition(new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0 }); Stream makeupTEG = new Stream("lean TEG to absorber", pureTEG); makeupTEG.setFlowRate(1e-6, "kg/hr"); makeupTEG.setTemperature(35.4, "C"); makeupTEG.setPressure(52.21, "bara"); Calculator makeupCalculator = new Calculator("makeup calculator"); makeupCalculator.addInputVariable(dehydratedGas); makeupCalculator.addInputVariable(flashGas); makeupCalculator.addInputVariable(gasToFlare); makeupCalculator.addInputVariable(liquidToTrreatment); makeupCalculator.setOutputVariable(makeupTEG); StaticMixer makeupMixer = new StaticMixer("makeup mixer"); makeupMixer.addStream(leanTEGtoabs); makeupMixer.addStream(makeupTEG); Recycle resycleLeanTEG = new Recycle("lean TEG resycle"); resycleLeanTEG.addStream(makeupMixer.getOutStream()); neqsim.processSimulation.processSystem.ProcessSystem operations = new neqsim.processSimulation.processSystem.ProcessSystem(); operations.add(dryFeedGas); operations.add(saturatedFeedGas); operations.add(waterSaturatedFeedGas); operations.add(TEGFeed); operations.add(absorber); operations.add(dehydratedGas); operations.add(richTEG); operations.add(glycol_flash_valve); operations.add(richGLycolHeaterCondeser); operations.add(richGLycolHeater); operations.add(flashSep); operations.add(flashGas); operations.add(flashLiquid); operations.add(richGLycolHeater2); operations.add(mixerTOreboiler); operations.add(heaterToReboiler); operations.add(regenerator2); operations.add(gasFromRegenerator); operations.add(sepregenGasCooler); operations.add(sepRegen); operations.add(liquidRegenReflux); operations.add(resycle2); operations.add(coolerRegenGas); operations.add(sepregenGas); operations.add(gasToFlare); operations.add(liquidToTrreatment); operations.add(hotLeanTEG); operations.add(strippingGas); operations.add(stripper); operations.add(resycle3); operations.add(hotLeanTEGPump); operations.add(coolerhOTteg); operations.add(coolerhOTteg2); operations.add(coolerhOTteg3); operations.add(hotLeanTEGPump2); operations.add(leanTEGtoabs); operations.add(makeupCalculator); operations.add(makeupTEG); operations.add(makeupMixer); operations.add(resycleLeanTEG); operations.run(); richGLycolHeater2.getOutStream().getFluid().display(); System.out.println("Energy reboiler " + heaterToReboiler.getDuty()); mixerTOreboiler.addStream(liquidRegenReflux); mixerTOreboiler.addStream(resycle3.getOutStream()); // operations.run(); absorber.replaceSolventInStream(resycleLeanTEG.getOutStream()); operations.run(); // richGLycolHeater2.getOutStream().getFluid().display(); System.out.println("Energy reboiler 2 " + heaterToReboiler.getDuty()); System.out.println("wt lean TEG after stripper " + ((WaterStripperColumn) operations.getUnit("TEG stripper")).getSolventOutStream().getFluid() .getPhase("aqueous").getWtFrac("TEG")); operations.save("c:/temp/TEGprocessSimple.neqsim"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float getHeatOfVaporization(Fluid fluid) {\n\t\tif(fluid == null) { throw new IllegalArgumentException(\"Cannot pass a null fluid to getHeatOfVaporization\"); } // just in case\n\n\t\t// TODO: Make a registry for this, do a lookup\n\t\treturn 4f; // TE converts 1mB steam into 2 RF of work in a steam turbine, so we assume it's 50% efficient.\n\t}", "@Override\n \t\t\t\tpublic void doCreateQuadWater() {\n \n \t\t\t\t}", "private void pump_water() {\n\t\t\r\n\t}", "public void run() {\n\n renderingForce = true;\n //file.play();\n\n\n if (haplyBoard.data_available()) {\n /* GET END-EFFECTOR STATE (TASK SPACE) */\n widgetOne.device_read_data();\n\n angles.set(widgetOne.get_device_angles()); \n posEE.set(widgetOne.get_device_position(angles.array()));\n posEE.set(posEE.copy().mult(200));\n }\n\n s.setToolPosition(edgeTopLeftX+worldWidth/2-(posEE).x, edgeTopLeftY+(posEE).y-7); \n\n\n s.updateCouplingForce();\n fEE.set(-s.getVirtualCouplingForceX(), s.getVirtualCouplingForceY());\n fEE.div(100000); //dynes to newtons\n\n torques.set(widgetOne.set_device_torques(fEE.array()));\n widgetOne.device_write_torques();\n\n world.step(1.0f/1000.0f);\n\n\n checkSplat();\n\n renderingForce = false;\n }", "@Override\n\tpublic void run() {\n\t\tspacing = checkDimensions(spacingString, input.numDimensions(), \"Spacings\");\n\t\tscales = Arrays.stream(scaleString.split(regex)).mapToInt(Integer::parseInt)\n\t\t\t.toArray();\n\t\tDimensions resultDims = Views.addDimension(input, 0, scales.length - 1);\n\t\t// create output image, potentially-filtered input\n\t\tresult = opService.create().img(resultDims, new FloatType());\n\n\t\tfor (int s = 0; s < scales.length; s++) {\n\t\t\t// Determine whether or not the user would like to apply the gaussian\n\t\t\t// beforehand and do it.\n\t\t\tRandomAccessibleInterval<T> vesselnessInput = doGauss ? opService.filter()\n\t\t\t\t.gauss(input, scales[s]) : input;\n\t\t\tIntervalView<FloatType> scaleResult = Views.hyperSlice(result, result\n\t\t\t\t.numDimensions() - 1, s);\n\t\t\topService.filter().frangiVesselness(scaleResult, vesselnessInput, spacing,\n\t\t\t\tscales[s]);\n\t\t}\n\t}", "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }", "public static void registerFluids() {\n\t\tfluidWormSaliva = createFluid(\"fluid_worm_saliva\", \"mb:blocks/fluid_worm_saliva\", true, 10, 1, 1500, false,\n\t\t\t\tfluid -> new FluidWormSaliva(fluid, new MaterialLiquid(MapColor.adobeColor))).setLuminosity(200);\n\t\t\n\t\tfluidWormBlood = createFluid(\"fluid_worm_blood\", \"mb:blocks/fluid_worm_blood\", true, 10, 1, 1500, false,\n\t\t\t\tfluid -> new FluidWormBlood(fluid, new MaterialLiquid(MapColor.adobeColor)));\n\t\t\n\t\tfluidTempWormBlood = createFluid(\"fluid_temp_worm_blood\", \"mb:blocks/fluid_worm_blood\", true, 10, 1, 1500, false,\n\t\t\t\tfluid -> new FluidTempWormBlood(fluid, new MaterialLiquid(MapColor.adobeColor)));\n\t\tGameRegistry.registerTileEntity(TileEntityTempWormBlood.class, Reference.MOD_ID + \":tileEntityTempWormBlood\");\n\n\t\t\n\t\tfluidWormAcid = createFluid(\"fluid_worm_acid\", \"mb:blocks/fluid_worm_acid\", true, 10, 1, 1500, false,\n\t\t\t\tfluid -> new FluidWormAcid(fluid, new MaterialLiquid(MapColor.adobeColor))).setLuminosity(200);\n\n\t\tfluidTempWormAcid = createFluid(\"fluid_temp_worm_acid\", \"mb:blocks/fluid_worm_acid\", true, 10, 1, 1500, false,\n\t\t\t\tfluid -> new FluidTempWormAcid(fluid, new MaterialLiquid(MapColor.adobeColor))).setLuminosity(200);\n\n\t\tgasWormGas = createFluid(\"gas_worm_gas\", \"mb:blocks/gas_worm_gas\", true, 10, -10000, 100, true,\n\t\t\t\tfluid -> new GasWormGas(fluid, new MaterialLiquid(MapColor.adobeColor)));\n\t}", "public FridgeTruck(){\n\t\tsuper();\n\t\tthis.maxTemp = 10; // degrees Celsius\n\t\tsetCost(maxTemp);\n\t\tthis.maxCapacity = 800;\n\t}", "private void temperatureEffect(int barra) {\n float val = barra / 200f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_TEMPERATURE);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public void updateCelcius(){\n tempInC = ( (tempInF - 32)/9 ) * 5;\n }", "public RefineryRecipe(@Nonnegative int minTemp, @Nonnegative int maxTemp, @Nonnull FluidStack input, @Nonnull FluidStack output) {\n this.minTemp = minTemp;\n\n this.maxTemp = maxTemp;\n this.input = input;\n this.outputs = new FluidStack[] { output };\n }", "private void condenseSteam() {\n if (getPressure()> Constants.ATMOSPHERIC_PRESSURE) {\n double boilingPoint = Water.getBoilingTemperature(getPressure());\n if (boilingPoint > steam.getTemperature()) { // remove steam such that it equalizes to the boiling point\n double newSteamPressure = Math.max(Water.getBoilingPressure(steam.getTemperature()), Constants.ATMOSPHERIC_PRESSURE);\n \n\n int newQuantity = steam.getParticlesAtState(newSteamPressure, getCompressibleVolume());\n int deltaQuantity = steam.getParticleNr() - newQuantity;\n if (deltaQuantity < 0) {\n System.out.println(\"BAD\");\n }\n steam.remove(deltaQuantity);\n getWater().add(new Water(steam.getTemperature(), deltaQuantity));\n }\n } \n }", "public void setup()\n{\n noiseDetail(6);\n noiseScale = 0.01f;\n c1 = new Car(250, 250);\n}", "private RefineryRecipe(@Nonnegative int minTemp, @Nonnegative int maxTemp, @Nonnull FluidStack input, @Nonnull FluidStack... outputs) {\n this.minTemp = minTemp;\n this.maxTemp = maxTemp;\n this.input = input;\n this.outputs = outputs;\n }", "void addFuel ( double mmbtu_input) {\n fuel += mmbtu_input;\r\n }", "private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}", "public void setFluid(Fluid fluid) {\n this.fluid = fluid;\n }", "@Override\n public void skinTemperature(int value, int timestamp) {\n }", "@Override\n public void run() {\n if (config.DebugLogging) {\n getLogger().info(\"Reverting Ice to Water to prevent server overload\");\n }\n\n Block fixblock = getServer().getWorld(blockloc.getWorld().getName()).getBlockAt(blockloc);\n fixblock.setType(Material.STATIONARY_WATER);\n\n }", "public void rasterScanning(){\r\n ReadParameter embedPara = new ReadParameter();\r\n QuantisationEmbedding subband = new QuantisationEmbedding();\r\n int i,j,k,p;\r\n double[] coeffStream, modCoeffStream;\r\n //Modification in selected subband only\r\n if(embedPara.getSubbandChoice().compareTo(\"LF\") == 0){\r\n //Embed in low low subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n }\r\n }\r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n // Write it back in proper order\r\n k = 0; // Reset k value\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"HF\") == 0){\r\n //Embed in high frequency subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 3];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<3; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==1){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==2){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n // Write it back in proper order\r\n k=0; // Reset k value\r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"AF\") == 0){\r\n //Embed in all subbands\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 4];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<4; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LL Subband values\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n \r\n } else if(p==1){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==2){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==3){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n \r\n // Write it back in proper order\r\n k = 0; //Reset k value\r\n //Write back LL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n } // End subband choice if-else condition\r\n \r\n }", "public void run() {\n energy = 2;\n redBull = 0;\n gun = 1;\n target = 1;\n }", "@Override\n \t\t\t\tpublic void doCreateProjectedWater() {\n \n \t\t\t\t}", "private void optimiseWaterHeatProfileWithSpreading()\n\t{\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"== OptimiseWaterHeatProfile for a \" + this.owner.getAgentID() + \" ==\");\n\t\t}\n\n\t\tdouble[] baseArray = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR * (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP))\n\t\t\t\t/ Consts.DOMESTIC_HEAT_PUMP_WATER_COP);\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"hotWaterVolumeDemandProfile: \" + Arrays.toString(this.hotWaterVolumeDemandProfile));\n\t\t}\n\n\t\tthis.waterHeatDemandProfile = Arrays.copyOf(baseArray, baseArray.length);\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"waterHeatDemandProfile: \" + Arrays.toString(this.waterHeatDemandProfile));\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"spreadWaterDemand(baseArray) : \" + Arrays.toString(this.spreadWaterDemand(baseArray)));\n\t\t}\n\n\t\tdouble[] totalHeatDemand = ArrayUtils.add(this.heatPumpDemandProfile, this.spreadWaterDemand(baseArray));\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"totalHeatDemand: \" + Arrays.toString(totalHeatDemand));\n\t\t}\n\n\t\tdouble currCost = this.evaluateCost(totalHeatDemand);\n\t\tdouble[] tempArray = Arrays.copyOf(baseArray, baseArray.length);\n\n\t\tfor (int i = 0; i < baseArray.length; i++)\n\t\t{\n\t\t\tif (baseArray[i] > 0)\n\t\t\t{\n\t\t\t\tdouble extraHeatRequired = 0;\n\t\t\t\tfor (int j = i - 1; j >= 0; j--)\n\t\t\t\t{\n\t\t\t\t\t//TODO - this needs a better (exponential) model, temp loss per second should be improved.\n\t\t\t\t\textraHeatRequired += (Consts.WATER_TEMP_LOSS_PER_SECOND * ((double) Consts.SECONDS_PER_DAY / this.ticksPerDay))\n\t\t\t\t\t\t\t* this.hotWaterVolumeDemandProfile[i]\n\t\t\t\t\t\t\t* (Consts.WATER_SPECIFIC_HEAT_CAPACITY / Consts.KWH_TO_JOULE_CONVERSION_FACTOR)\n\t\t\t\t\t\t\t/ Consts.DOMESTIC_HEAT_PUMP_WATER_COP;\n\t\t\t\t\ttempArray[j] += baseArray[i] + extraHeatRequired;\n\t\t\t\t\ttempArray[j + 1] = 0;\n\t\t\t\t\ttotalHeatDemand = ArrayUtils.add(this.heatPumpDemandProfile, this.spreadWaterDemand(tempArray));\n\t\t\t\t\tdouble newCost = this.evaluateCost(totalHeatDemand);\n\t\t\t\t\tif (newCost < currCost)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.waterHeatDemandProfile = ArrayUtils.add(totalHeatDemand, ArrayUtils.negate(this.heatPumpDemandProfile));\n\t\t\t\t\t\tcurrCost = newCost;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void setupSteeringEncoders() {\n //12.8:1\n steeringFR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBR.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringFL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n steeringBL.setSensorToRealDistanceFactor((1 / 12.8) * 360);\n }", "public ExternalFilter() {\n\t\treset();\n\t\tenable_filter(true);\n\t\tset_sampling_parameter(15915.6);\n\t\tset_chip_model(ISIDDefs.chip_model.MOS6581);\n\t}", "TransportTruck() {\n x = 0;\n y = 0;\n nrDoors = 2;\n enginePower = 1000;\n currentSpeed = 0;\n color = Color.red;\n modelName = \"Transport Truck\";\n\n storage = new StorageUnit(this, 5);\n\n stopEngine();\n }", "public static Texture getTut(){\n //set a linear filter to clean image\n tuts.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n //return image\n return tuts;\n }", "void update(float temp, float humidity, float pressure);", "private void createGroundSensor() {\n CircleShape shape = new CircleShape();\n shape.setRadius(bodyHalfSize.x / 2);\n shape.setPosition(new Vector2(0, -bodyHalfSize.y - bodyHalfSize.x));\n\n FixtureDef fixDef = new FixtureDef();\n fixDef.shape = shape;\n fixDef.isSensor = true;\n fixDef.filter.categoryBits = Global.PLAYER_BIT;\n fixDef.filter.maskBits = Global.GROUND_BIT | Global.SEMISOLID_BIT;\n\n body.createFixture(fixDef).setUserData(\"sensor\");\n shape.dispose();\n }", "public void run(){\n this.p_absoluteTemperature = 0.001;\n //this.p_temperatureFactor = 7.5;\n this.p_temperatureFactor = 10;\n \n // Set original and current temperature\n this.temperatureInitial = 100;\n this.temperature = 100;\n \n runAlgorithm();\n }", "void runUsingEncoder(double xTarget, double yTarget, double inputPower);", "public void stegoTest() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t\tStoreToList store = new StoreToList(\"logfile.txt\");\n\t\tCharacter nodeForward = '3';\n\t\tCharacter cCMsg = null;\n\t\t\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\t\t//the image to embed data in\n\t\t\t\tFile f = new File(\"Truecolor.png\");\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\t//get the list of encrypted data to embed\n\t\t\t\t\tstore.generateList();\n\t\t\t\t\tList<String> data = store.getEncryptedList();\n\t\t\t\t\t\n\t\t\t\t\tString stegText = nodeForward + \":\" + cCMsg + \":\";\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < data.size(); i++) {\n\t\t\t\t\t\tstegText = stegText + data.get(i) + \" \";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"stegText: \" + stegText);\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t \n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\thidingText.setText(stegText);\n\t\t\t\t\t\n\t\t\t\t\t//embed data in the image chosen\n\t\t\t\t\tcarrierImage.hide(hidingText);\n\t\t\t\t\t//create a new image file to write the stego image to\n\t\t\t\t\tFile fS = new File(\"downloaded/image0.png\");\n\t\t\t\t\tImageManager.writeImage(carrierImage.getCarrierImage(), fS, true);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Finished Steganography\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"File does not exist :/\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (InvalidTypeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t}", "public double calculateTemper(Double utilization)\n {\n float a = (float) 32.4031331148812;\n float b = (float) -0.105871112063592;\n float c = (float) 0.019012207217;\n float d = (float) -0.000103336673855697;\n double targetTemper = a + b * utilization + Math.pow(c,2) * utilization + Math.pow(d,3) * utilization;\n return targetTemper;\n }", "void hit(int frequency, double duration, double amplitude){\r\n \tSystem.out.println(\"Frequency: \"+frequency+\", Duration: \"+duration+\", Amplitude: \"+amplitude);\r\n \t\r\n\r\n\t\tadder.inputA.set(frequency); //fc !!!\r\n\t\tvibrato.frequency.set( frequency+80 ); // fm!!!\r\n\t\tvibrato.amplitude.set( (frequency+80)*2 ); // fm*2!!!\r\n \t\r\n\t\tint i=0;\r\n\t\tdata[i++] = 0.01;\t\t\t// Duration of first segment. \r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.13; \t// duration\r\n\t\t\tamplitude/=2;\r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.4; \t// duration \r\n\t\tdata[i++] = 0.0; \t\t\t// value \r\n\r\n\t\ti = 0;\r\n\t\tamplitude = 280*2;\r\n\t\tdata2[i++] = 0.01;\t\t\t// Duration of first segment. \r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.13; \t// duration\r\n\t\t\tamplitude/=2;\r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.4; \t// duration \r\n\t\tdata2[i++] = 0.0; \t\t\t// value \r\n\r\n\t\tenvData.write( 0, data, 0, i/2 );\r\n\t\tenvData2.write( 0, data2, 0, i/2 );\r\n \tenvPlayer.envelopePort.clear();\r\n \tenvPlayer2.envelopePort.clear();\r\n \tenvPlayer.envelopePort.queue( envData, 0, i/2 );\r\n \tenvPlayer2.envelopePort.queue( envData2, 0, i/2 );\r\n }", "void makeDragon() {\n new BukkitRunnable() {\n int i = 555;\n\n @Override\n public void run() {\n Set<BlockData> set = create.get(i);\n for (BlockData blockData : set) {\n blockData.setBlock();\n }\n\n i++;\n if (i > 734) {\n cancel();\n }\n }\n }.runTaskTimer(Main.plugin, 0, 2);\n // Location end = new Location(Bukkit.getWorld(\"world\"), 3, 254, 733);\n }", "public Eagle(double w, double f, boolean t) {\n super(w, f, t);\n }", "private void TEMrunInfo(){\n\n int idummy;\n idummy=TEM.runcht.cht.getCd().getVegtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_VEGETATION, 1);\n idummy=TEM.runcht.cht.getCd().getDrgtype(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_DRAINAGE, 1);\n idummy=TEM.runcht.cht.getCd().getGrdid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_GRD, 1);\n idummy=TEM.runcht.cht.getCd().getEqchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_EQCHT, 1);\n idummy=TEM.runcht.cht.getCd().getSpchtid(); \t \n \tstateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_SPCHT, 1);\n idummy=TEM.runcht.cht.getCd().getTrchtid(); \t \n \t stateTB.setValueAt(Integer.toString(idummy), GUIconfigurer.I_TRCHT, 1);\n \t \n float ddummy;\n ddummy=(float)TEM.runcht.initstate.getMossthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MOSSTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getFibthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getHumthick(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMTHICK, 1);\n ddummy=(float)TEM.runcht.initstate.getVegc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGC, 1);\n ddummy=(float)TEM.runcht.initstate.getVegn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_VEGN, 1);\t\t\n ddummy=(float)TEM.runcht.initstate.getSoilc(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILC, 1);\t \n ddummy=(float)TEM.runcht.initstate.getFibc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_FIBSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getHumc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_HUMSOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getMinc(); \t \n \t\tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_MINESOILC, 1);\n ddummy=(float)TEM.runcht.initstate.getAvln(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_AVAILN, 1);\n ddummy=(float)TEM.runcht.initstate.getOrgn(); \t \n \tinitTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_SOILN, 1);\n\n //\n \tvegpar_bgc vbpar = new vegpar_bgc();\n \tsoipar_bgc sbpar = new soipar_bgc();\n \tTEM.runcht.cht.getBgcPar(vbpar, sbpar);\n\n ddummy=vbpar.getM1(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m1, 1);\n ddummy=vbpar.getM2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m2, 1);\n ddummy=vbpar.getM3(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m3, 1);\n ddummy=vbpar.getM4(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_m4, 1);\n ddummy=sbpar.getFsoma(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsoma, 1);\n ddummy=sbpar.getFsompr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsompr, 1);\n ddummy=sbpar.getFsomcr(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_fsomcr, 1); \t\t\n ddummy=sbpar.getSom2co2(); \t \n \tfixparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_som2co2, 1);\n \t\n //\n vegpar_cal vcpar = new vegpar_cal();\n soipar_cal scpar = new soipar_cal();\n TEM.runcht.cht.getCalPar(vcpar, scpar);\n\n ddummy=vcpar.getCmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CMAX, 1);\n ddummy=vcpar.getNmax(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NMAX, 1);\n ddummy=vcpar.getKrb(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KRB, 1);\n ddummy=vcpar.getCfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_CFALL, 1);\n ddummy=vcpar.getNfall(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NFALL, 1);\n \t\n ddummy=scpar.getNup(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_NUP, 1);\n ddummy=scpar.getKdcfib(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCFIB, 1);\n ddummy=scpar.getKdchum(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCHUM, 1);\n ddummy=scpar.getKdcmin(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCMIN, 1);\n ddummy=scpar.getKdcslow(); \t \n \tcalparTB.setValueAt(Float.toString(ddummy), GUIconfigurer.I_KDCSLOW, 1);\n\t \t\t\n }", "public void setup()\n{\n \n textAlign(CENTER);\n \n // create a new flock\n flock = new Flock(birdAmount);\n setDefaultFields();\n // GUI\n font = createFont(\"arial\", 14);\n \n cp5 = new ControlP5(this, font);\n \n \n Group settings = cp5.addGroup(\"settings\")\n .setPosition(10,15)\n .setBackgroundHeight(570)\n .setWidth(350)\n .setBarHeight(16)\n .setBackgroundColor(color(0,25))\n ;\n \n cp5.addSlider(\"separationDist\")\n .setPosition(10,10)\n .setSize(180,16)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"cohesionDist\")\n .setPosition(10,30)\n .setSize(180,16)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"alignDist\")\n .setPosition(10,50)\n .setSize(180,16)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"birdSize\")\n .setRange(0, 20)\n .setPosition(10,70)\n .setSize(180,16)\n .setGroup(settings)\n ;\n \n cp5.addToggle(\"wandering\")\n .setPosition(10,100)\n .setSize(50,20)\n .setGroup(settings)\n ;\n \n cp5.addToggle(\"separating\")\n .setPosition(10,150)\n .setSize(50,20)\n .setGroup(settings)\n ;\n \n cp5.addToggle(\"cohesing\")\n .setPosition(10,200)\n .setSize(50,20)\n .setGroup(settings)\n ;\n \n cp5.addToggle(\"aligning\")\n .setPosition(10,250)\n .setSize(50,20)\n .setGroup(settings)\n ;\n \n cp5.addToggle(\"noiseEnabled\")\n .setPosition(10,300)\n .setSize(50,20)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"wanderMult\")\n .setPosition(10,350)\n .setSize(180,16)\n .setRange(0,5)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"separationMult\")\n .setPosition(10,370)\n .setSize(180,16)\n .setRange(0,5)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"cohesionMult\")\n .setPosition(10,390)\n .setSize(180,16)\n .setRange(0,5)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"alignMult\")\n .setPosition(10,410)\n .setSize(180,16)\n .setRange(0,5)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"noiseMult\")\n .setPosition(10,430)\n .setSize(180,16)\n .setRange(0,5)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"maxSpeed\")\n .setPosition(10,460)\n .setSize(180,16)\n .setRange(0,10)\n .setGroup(settings)\n ;\n \n cp5.addSlider(\"maxForce\")\n .setPosition(10,480)\n .setSize(180,16)\n .setRange(0,3)\n .setGroup(settings)\n ;\n \n cp5.addBang(\"setDefaultFields\")\n .setLabel(\"Reset\")\n .setPosition(10,520)\n .setSize(50,20)\n .setGroup(settings)\n ;\n \n cp5.hide();\n welcomeTimer = 255;\n welcomeFading = false;\n}", "private void equalizePressure() {\n for (int i = 0; i < 10; ++i) {\n HydraulicState hs = outputComponent.getHydroState();\n if (hs instanceof BlockedHydroState) { // we can't send anything\n break;\n } else {\n if (hs.getPressure() < getBottomPressure()) { // if our pressure is larger than the other one\n Water deltaWater = new Water(getWater().getTemperature(), Math.min((int)(3 * getWater().getParticlesPerKilo()), getWater().getParticleNr()));\n //System.out.println(\"C: Before: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n send(deltaWater); // send 3 kg of water\n getWater().remove(deltaWater.getParticleNr());\n //System.out.println(\"C: After: \" + outputComponent.getHydroState().pressure() + \" \" + getBottomPressure());\n } else {\n // residual flow\n /*Water deltaWater = new Water(getWater().getTemperature(), new Kilograms(Math.min(0.01, getWaterMass())));\n send(deltaWater);\n getWater().remove(deltaWater.getParticleNr());*/\n }\n }\n } \n }", "private void buildTank(){\n LayoutInflater layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n //add foliage\n ImageView foliageImageView = (ImageView) layoutInflater.inflate(R.layout.foliage_layout, null);\n\n foliageImageView.setX(0);\n foliageImageView.setY(0);\n foliageImageView.setAlpha((float) 0.97);\n fishTankLayout.addView(foliageImageView,0);\n\n //add virtual fish\n //add foliage\n fishImageView = (ImageView) layoutInflater.inflate(R.layout.fish_image, null);\n fishImageView.setScaleX((float) .3);\n fishImageView.setScaleY((float) .3);\n fishImageView.setX(fish.x);\n fishImageView.setY(fish.y);\n fishImageView.setAlpha((float) 0.97);\n fishTankLayout.addView(fishImageView,0);\n }", "private int calculateTemp(){\n\n int time = (int) Bukkit.getServer().getWorld(worldName).getTime();\n\n // Calculate temp (y value) on a manipulated sine wave\n return (int) Math.round(\n Math.sin( (time * 0.000262) - ( (peakTime/24000.0) * Math.PI * 2 ) + (0.5 * Math.PI) ) * ((maxTemp-minTemp)/2.0)\n + (minTemp + ((maxTemp-minTemp)/2.0))\n );\n }", "public RobotCompressor(){\n \n robotCompressor = new Compressor(RobotMap.PRESSURE_SWITCH, RobotMap.COMPRESSOR_SPIKE);\n robotCompressor.start();\n }", "public void applyFiler(GameEncoder encoder, Instance instance) {\n\t\tfor (int i=0; i<encoder.typeIndex; i++) {\r\n\t\t\tinstance.setValue(i, 0);\r\n\t\t}\r\n\r\n\t\t// scale the timing features\r\n\t\tfor (int i=encoder.timingIndex; i<encoder.enemyTypeIndex; i++) {\r\n\t\t\tinstance.setValue(i, 0.001*instance.value(i));\r\n\t\t}\r\n\t\t\r\n\t\t// clear all features after the unit counts\r\n\t\tfor (int i=encoder.enemyTypeIndex; i<encoder.classIndex; i++) {\r\n\t\t\tinstance.setValue(i, 0);\r\n\t\t}\r\n\t}", "public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}", "public void update() \n\t{\n\t\t//if factory is turned on\n\t\tif (active)\n\t\t{\n\t\t\t//if the materials required to produce the current recipe are in the factory inventory\n\t\t\tif (checkHasMaterials())\n\t\t\t{\n\t\t\t\t//if the factory has been working for less than the required time for the recipe\n\t\t\t\tif (currentProductionTimer < getProductionTime())\n\t\t\t\t{\n\t\t\t\t\t//if the factory power source inventory has enough fuel for at least 1 energyCycle\n\t\t\t\t\tif (isFuelAvailable())\n\t\t\t\t\t{\n\t\t\t\t\t\t//if the time since fuel was last consumed is equal to how often fuel needs to be consumed\n\t\t\t\t\t\tif (currentEnergyTimer == getEnergyTime()-1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//remove one fuel.\n\t\t\t\t\t\t\tgetFuel().removeFrom(getPowerSourceInventory());\n\t\t\t\t\t\t\t//0 seconds since last fuel consumption\n\t\t\t\t\t\t\tcurrentEnergyTimer = 0;\n\t\t\t\t\t\t\tfuelConsumed();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if we don't need to consume fuel, just increment the energy timer\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurrentEnergyTimer++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//increment the production timer\n\t\t\t\t\t\tcurrentProductionTimer ++;\n\t\t\t\t\t\tpostUpdate();\n\t\t\t\t\t}\n\t\t\t\t\t//if there is no fuel Available turn off the factory\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpowerOff();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//if the production timer has reached the recipes production time remove input from chest, and add output material\n\t\t\t\telse if (currentProductionTimer >= getProductionTime())\n\t\t\t\t{\n\t\t\t\t\tconsumeInputs();\n\t\t\t\t\tproduceOutputs();\n\t\t\t\t\t//Repairs the factory\n\t\t\t\t\trepair(getRepairs().removeMaxFrom(getInventory(),(int)currentRepair));\n\t\t\t\t\trecipeFinished();\n\t\t\t\t\t\n\t\t\t\t\tcurrentProductionTimer = 0;\n\t\t\t\t\tpowerOff();\n\t\t\t\t}\n\t\t\t}\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tpowerOff();\n\t\t\t}\n\t\t}\t\n\t}", "public void run() {\n\t\tparams.set(\"Status\", \"Configuring\");\n\t\tJob.animate();\n\t\t\n\t\tint tsim = params.iget(\"Sim Time\");\n\t\tReadInUtil riu = new ReadInUtil(params.sget(\"Parameter File\"));\n\t\tp2 = riu.getOFCparams();\n\t\tdouble[] av = new double[]{0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};\n\t\triu = null;\n\t\t\n\t\twhile(true){\n\t\t\tfor(double alpha : av){\n\t\t\t\tparams.set(\"Status\", \"Intializing\");\n\t\t\t\tparams.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tp2.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tJob.animate();\n\t\t\t\tmodel = new ofc2Dfast(p2);\n\t\t\t\tmodel.setClength(tsim);\n\t\t\t\t// read in stress from file\n\t\t\t\triu = new ReadInUtil(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\");\n\t\t\t\tmodel.setStress(riu.getData(0));\t\t\t\t\n\t\t\t\t\n\t\t\t\t// simulate <i>tsim</i> time steps\n\t\t\t\tfor(int tt = 0 ; tt < tsim ; tt++){\n\t\t\t\t\tmodel.evolve(tt, false);\n\t\t\t\t\tif(tt%1000 == 0){\n\t\t\t\t\t\tparams.set(\"Status\",tt);\n\t\t\t\t\t\tJob.animate();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// append data to data file\n\t\t\t\tmodel.appendCdata(model.getOutdir()+File.separator+model.getBname()+\"_Catalogue_\"+(int)(100*alpha)+\".txt\",tsim);\n\t\t\n\t\t\t\t// replace old stress file with new stress file\n\t\t\t\tPrintUtil.overwriteFile(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\",model.getStress());\n\t\t\t\t\n\t\t\t\t// print summary of events in log file\n\t\t\t\teditLogFile(tsim, alpha);\n\t\t\t\t\n\t\t\t\t// update seed\n\t\t\t\tp2.set(\"Random Seed\", p2.iget(\"Random Seed\")+1);\n\t\t\t}\n\t\t}\n\t}", "private static void smelt(ItemStack input, ItemStack output)\r\n\t{\r\n\t\tGameRegistry.addSmelting(input, output, 0.45F);\r\n\t}", "@Override\n public void onSensorChanged(SensorEvent event) {\n if (timerFlag) {\n sendInfo(\"heart\", (sim_flag ? bpm/sim_scale : bpm));\n timerFlag = false;\n\n HR_i++;\n if(HR_i>9) {\n HR_i = 0;\n over = true;\n }\n\n if (over)\n {\n HeartRateAvg = 0;\n for (int i=0;i<10;i++)\n {\n HeartRateAvg = HeartRateAvg + HeartRate[i];\n }\n HeartRateAvg = HeartRateAvg/10;\n if ((bpm>HeartRateAvg*1.3 || bpm<HeartRateAvg*0.7) && !sendAttackFlag && sendAttackFlagCnt>15)\n {\n sendInfo(\"attack\",0);\n sendAttackFlag = true;\n Toast.makeText(getApplicationContext(), \"HeartAttack\", Toast.LENGTH_SHORT).show();\n }\n sendAttackFlagCnt++;\n if (sendAttackFlag) {\n sendAttackFlagCnt++;\n if (sendAttackFlagCnt>10)\n {\n sendAttackFlagCnt=0;\n sendAttackFlag = false;\n }\n }\n }\n HeartRate[HR_i] = bpm;\n sendInfo (\"avg\", HeartRateAvg);\n }\n\n // Update the accelerometer\n if (flag) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n final float alpha = (float) 0.8;\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // Remove the gravity contribution with the high-pass filter.\n linear_acceleration[0] = event.values[0] - gravity[0];\n linear_acceleration[1] = event.values[1] - gravity[1];\n linear_acceleration[2] = event.values[2] - gravity[2];\n\n totAcc = Math.sqrt(linear_acceleration[0] * linear_acceleration[0] +\n linear_acceleration[1] * linear_acceleration[1] +\n linear_acceleration[2] * linear_acceleration[2]);\n\n fallAcc = linear_acceleration[2];\n }\n\n // Update the heart rate\n if (event.sensor.getType() == Sensor.TYPE_HEART_RATE) {\n bpm = event.values[0];\n if (sim_flag)\n bpm = bpm/sim_scale;\n\n String message = String.valueOf ((int) bpm) + \" bpm\";\n heart.setText(message);\n }\n\n flag = false;\n\n FallCounter = ((totAcc > threshold) ? FallCounter + 1 : 0);\n\n if (FallCounter == 5 && !detected) {\n fallDetectionAction();\n }\n }\n }", "public void loadCommon() {\n \n Node mainScene = new Node(\"Main Scene\");\n rootNode.attachChild(mainScene);\n \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection(lightDir);\n sun.setColor(ColorRGBA.White.clone().multLocal(1.7f));\n rootNode.addLight(sun);\n \n Spatial sky = SkyFactory.createSky(assetManager, \"Scenes/Beach/FullskiesSunset0068.dds\", false);\n sky.setLocalScale(350);\n \n mainScene.attachChild(sky);\n \n water = new WaterFilter(rootNode, lightDir);\n \n FilterPostProcessor fpp = myApp.getFpp();\n \n fpp.addFilter(water);\n BloomFilter bloom = new BloomFilter();\n \n bloom.setExposurePower(55);\n bloom.setBloomIntensity(1.0f);\n \n fpp.addFilter(bloom);\n LightScatteringFilter lsf = new LightScatteringFilter(lightDir.mult(-300));\n lsf.setLightDensity(1.0f);\n fpp.addFilter(lsf);\n \n DepthOfFieldFilter dof = new DepthOfFieldFilter();\n dof.setFocusDistance(0);\n dof.setFocusRange(100);\n fpp.addFilter(dof);\n \n water.setWaveScale(0.003f);\n water.setMaxAmplitude(1f);\n water.setFoamExistence(new Vector3f(1f, 4, 0.5f));\n water.setFoamTexture((Texture2D) assetManager.loadTexture(\"Common/MatDefs/Water/Textures/foam2.jpg\"));\n \n water.setRefractionStrength(0.2f);\n \n water.setWaterHeight(initialWaterHeight);\n uw = cam.getLocation().y < waterHeight;\n \n waves = new AudioNode(assetManager, \"Sounds/Environment/Ocean Waves.ogg\", false);\n waves.setVolume(0.15f);\n waves.setLooping(true);\n waves.setReverbEnabled(true);\n if (uw) {\n waves.setDryFilter(new LowPassFilter(0.5f, 0.1f));\n } else {\n waves.setDryFilter(aboveWaterAudioFilter);\n }\n \n myApp.getViewPort().addProcessor(fpp);\n }", "public void useUniformDeviates(){\n this.gaussianDeviates = false;\n }", "@Override\n public void setup()\n { \n background(100);\n quadrate();\n }", "public abstract void makeNoise();", "public WaterMeter()\r\n\t{\r\n\t\tsuper(DeviceTypeEnum.WATER_METER);\r\n\t}", "@Override\n\tprotected void uGenerate(float[] channels) \n\t{\n\t\tif (!isActivated)\n\t\t{\n\t\t\tArrays.fill( channels, begAmp );\n\t\t} \n\t\telse if (lineNow >= lineTime)\n\t\t{\n\t\t\tArrays.fill( channels, endAmp );\n\t\t} \n\t\telse \n\t\t{\n\t\t\tamp += ( endAmp - amp )*timeStepSize/( lineTime - lineNow );\n\t\t\t//Minim.debug(\" dampTime = \" + dampTime + \" begAmp = \" + begAmp + \" amp = \" + amp + \" dampNow = \" + dampNow);\n\t\t\tArrays.fill( channels, amp );\n\t\t\tlineNow += timeStepSize;\n\t\t}\n\t}", "protected void doTransferWater(float amount)\n throws OverflowException, UnderflowException {\n }", "public static void main(String[] args) throws FileNotFoundException\n {\n IEnergyModel pot = potNew.multivariateFromExpression(new String[]{\"x\",\"y\"},\n \"1/4 x^4 - 1/2 x^2 + 1/2 y^2\", // function expression\n \"x^3-x\", \"y\"); // derivatives\n // integrator\n IDoubleArray masses = doublesNew.arrayFrom(1.0, 1.0);\n double dt = 0.1, gamma = 1, kT = 0.2;\n IIntegratorThermostatted langevin = dynNew.langevinLeapFrog(pot, masses, 0.1, gamma, kT);\n // run\n IDoubleArray x0 = doublesNew.arrayFrom(0,0);\n int nsteps = 100000, nsave = 10;\n IDataSequence seq = dyn.run(x0, langevin, nsteps, nsave);\n \n // TICA\n int lag = 1;\n TICA tica = new TICA(lag);\n tica.addData(seq);\n tica.computeTransform();\n \n System.out.println(\"mean: \\t\"+doubles.toString(tica.getMeanVector(), \"\\t\"));\n System.out.println(\"cov: \\t\"+doubles.toString(tica.getCovarianceMatrix(), \"\\t\", \"\\n\"));\n System.out.println(\"covTau: \\t\"+doubles.toString(tica.getCovarianceMatrixLagged(), \"\\t\", \"\\n\"));\n System.out.println();\n System.out.println(\"eval: \\t\"+doubles.toString(tica.getEigenvalues(), \"\\t\"));\n System.out.println(\"evec1: \\t\"+doubles.toString(tica.getEigenvector(0), \"\\t\"));\n System.out.println(\"evec2: \\t\"+doubles.toString(tica.getEigenvector(1), \"\\t\"));\n \n tica.setDimension(1);\n IDoubleArray y1 = tica.transform(doublesNew.arrayFrom(2,2));\n System.out.println(\"y1 = \\t\"+doubles.toString(y1, \"\\t\"));\n\n IDoubleArray y2 = tica.transform(doublesNew.arrayFrom(4,4));\n System.out.println(\"y2 = \\t\"+doubles.toString(y2, \"\\t\"));\n }", "public Encoder(WPI_TalonSRX escPort, double _tpf){\n talonCtlr = escPort;\n tpf = _tpf;\n }", "void update(double temperature, double maxTemperature, double minTemperature, int humidity);", "public static void buildTemperate(Vegetation.VegetationBuilder builder){\r\n builder.plantTrees(20);\r\n builder.plantShrubs(20);\r\n builder.plantGrass(10);\r\n builder.setClimate(VegetationClimate.TEMPERATE);\r\n }", "public void setFluid(Fluid fluid) {\n\t\tthis.fluid = fluid;\n\t}", "public void run(ImageProcessor ip) {\n ImagePlus impDark = WindowManager.getImage(DarkiD);\n ImageStack DarkStack = impDark.getStack();\n int width = DarkStack.getProcessor(1).getWidth();\n int height = DarkStack.getProcessor(1).getHeight();\n int dim = width * height;\n \n // Let's assign & declare all the local variables. \n //The pix-by-pix sum of the stack\n double[] sum;\n sum = new double[dim];\n \n //The pix-by-pix average of the stack\n double[] average;\n average = new double[dim];\n \n //The DARK signal pixel array\n double[] DARKpixels;\n DARKpixels = new double[dim];\n \n /* Scan the stack to weed out pics w/ pixel > saturation, then sum \n pix-by-pix through the stack. */\n int k = 0;\n for(int i=1; i<=DarkStack.getSize(); i++){\n double imgMax = DarkStack.getProcessor(i).getStatistics().max;\n if (imgMax < saturation){\n short[] pixels = (short[]) (DarkStack.getPixels(i));\n for (int j=0; j<dim; j++){\n sum[j] += (double)(pixels[j] & 0xffff);\n }\n } else \n k++;\n } \n \n // Average pix-by-pix\n for(int i=0; i<dim; i++){\n average[i] = (double) (sum[i]/(DarkStack.getSize() - k ));\n }\n \n /* Subtract off READ signal and normalize per exposure time. If \n a pixel has a value less than 0, then set it to zero.\n */\n ImagePlus impREAD = WindowManager.getImage(READiD);\n ImageProcessor READ_ip = impREAD.getProcessor();\n float[] READpixels = (float[]) ( READ_ip.getPixels() ); \n for(int i =0; i<dim; i++){\n DARKpixels[i] = (double)( (average[i] - READpixels[i])\n /(DarkTime - READTime) );\n if (DARKpixels[i]< 0)\n DARKpixels[i]=0; \n }\n \n // Make DARK image from pixels then show it. \n ImageProcessor DARK_ip = new FloatProcessor(width, \n height,DARKpixels); \n ImagePlus impDARK = new ImagePlus(\"DARK\",DARK_ip);\n impDARK.show();\n impDARK.draw();\n IJ.run(impDARK, \"Enhance Contrast\", \"saturated=0.35\");\n \n //Print out specs of the DARK image.\n ResultsTable rt = new ResultsTable();\n rt.incrementCounter();\n rt.addValue(\"Mean\",DARK_ip.getStatistics().mean);\n rt.addValue(\"Max\",DARK_ip.getStatistics().max);\n rt.addValue(\"Min\",DARK_ip.getStatistics().min);\n rt.addValue(\"Std.Dev.\",DARK_ip.getStatistics().stdDev);\n rt.showRowNumbers(false);\n rt.show(\"Results\");\n \n\t}", "private void setTEMinitsFromRunner(){\n\t\n\t\tSiteIn inits = new SiteIn();\n\t\t\n\t\tString dummy=\" \";\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_MOSSTHICK, 1);\n\t\tif (dummy!=\" \") inits.setMossthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_FIBTHICK, 1);\n\t\tif (dummy!=\" \") inits.setFibthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_HUMTHICK, 1);\n\t\tif (dummy!=\" \") inits.setHumthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_VEGC, 1);\n\t\tif (dummy!=\" \") inits.setVegc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_VEGN, 1);\n\t\tif (dummy!=\" \") inits.setVegn(Float.valueOf(dummy));\n\t\t\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_SOILC, 1);\n\t\tif (dummy!=\" \") inits.setSoilc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_FIBSOILC, 1);\n\t\tif (dummy!=\" \") inits.setFibc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_HUMSOILC, 1);\n\t\tif (dummy!=\" \") inits.setHumc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_MINESOILC, 1);\n\t\tif (dummy!=\" \") inits.setMinc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_AVAILN, 1);\n\t\tif (dummy!=\" \") inits.setAvln(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_SOILN, 1);\n\t\tif (dummy!=\" \") inits.setOrgn(Float.valueOf(dummy));\n \n\t\tif (dummy!=\" \") TEM.runcht.cht.setSiteStates(inits);\n \n\t}", "public void consumeWater(boolean waterOnly) {\n//\t\tlogger.info(person + \"::consumeWater()\");\n\t\tthirst = condition.getThirst();\n//\t\tboolean notThirsty = !condition.isThirsty();\n\t\t\n\t\tif (thirst > PhysicalCondition.THIRST_THRESHOLD / 2.0) {\n\t\t\tdouble currentThirst = Math.min(thirst, THIRST_CEILING);\n\t\t\tUnit containerUnit = person.getContainerUnit();\n\t\t\tInventory inv = null;\n\t\t\t\n\t\t\tif (containerUnit != null) {\t\t\t\n\t\t\t\tif (containerUnit instanceof MarsSurface) {\n\t\t\t\t\t// Doing EVA outside. Get water from one's EVA suit\n\t\t\t\t\tinv = person.getSuit().getInventory();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// In a vehicle or settlement\n\t\t\t\t\tinv = containerUnit.getInventory();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdouble waterFinal = Math.min(waterEachServing, currentThirst);\n\n\t\t\tif (inv != null && waterFinal > 0) {\n\t\t\t\tint level = person.getAssociatedSettlement().getWaterRation();\n\t\t\t\tdouble new_thirst = (currentThirst - waterFinal) / 10;\n\t\t\t\t// Test to see if there's enough water\n\t\t\t\tboolean haswater = false;\n\t\t\t\tdouble amount = waterFinal / 1000D / level;\n\n\t\t\t\tif (amount > MIN) {\n\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\thaswater = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tif (haswater) {\n\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\tcondition.setThirst(new_thirst);\n\n\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\tLogConsolidated.log(Level.FINE, 1000, sourceName,\n\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t+ \" drank \" + Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\n\t\t\t\t\t}\n//\t\t\t\t\tLogConsolidated.log(Level.INFO, 1000, sourceName,\n//\t\t\t\t\t\t person + \" is drinking \" + Math.round(amount * 1000.0)/1000.0 + \"kg of water\"\n//\t\t\t\t\t\t + \" thirst : \" + Math.round(currentThirst* 100.0)/100.0\n//\t\t\t\t\t\t + \" waterEachServing : \" + Math.round(waterEachServing* 100.0)/100.0\n//\t\t\t\t\t\t + \" waterFinal : \" + Math.round(waterFinal* 100.0)/100.0\n//\t\t\t\t\t\t + \" new_thirst : \" + Math.round(new_thirst* 100.0)/100.0, null);\n\t\t\t\t}\n\n\t\t\t\telse if (!haswater) {\n\t\t\t\t\t// Test to see if there's just half of the amount of water\n\t\t\t\t\tamount = waterFinal / 1000D / level / 1.5;\n\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\t\thaswater = true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (haswater) {\n\t\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\t\tcondition.setThirst(new_thirst);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\t\tLogConsolidated.log(Level.WARNING, 1000, sourceName,\n\t\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t\t+ \" was put on water ration and allocated to drink no more than \" \n\t\t\t\t\t\t\t\t\t\t\t+ Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tamount = waterFinal / 1000D / level / 3.0;\n\n\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\t\t\thaswater = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (haswater) {\n\t\t\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\t\t\tcondition.setThirst(new_thirst);\n\n\t\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tLogConsolidated.log(Level.WARNING, 1000, sourceName,\n\t\t\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" was put on water ration and allocated to drink no more than \" \n\t\t\t\t\t\t\t\t\t\t\t\t+ Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\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\telse {\n\t\t\t\t\t\t\tamount = waterFinal / 1000D / level / 4.5;\n\t\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\t\tdouble available = inv.getAmountResourceStored(ResourceUtil.waterID, false);//Storage.retrieveAnResource(amount, ResourceUtil.waterID, inv, false);\n\t\t\t\t\t\t\t\tif (available >= amount)\n\t\t\t\t\t\t\t\t\thaswater = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (haswater) {\n\t\t\t\t\t\t\t\tnew_thirst = new_thirst - amount * 5_000;\n\t\t\t\t\t\t\t\tif (new_thirst < 0)\n\t\t\t\t\t\t\t\t\tnew_thirst = 0;\n\t\t\t\t\t\t\t\telse if (new_thirst > THIRST_CEILING)\n\t\t\t\t\t\t\t\t\tnew_thirst = THIRST_CEILING;\n\t\t\t\t\t\t\t\tcondition.setThirst(new_thirst);\n\n\t\t\t\t\t\t\t\tif (amount > MIN) {\n\t\t\t\t\t\t\t\t\tStorage.retrieveAnResource(amount, ResourceUtil.waterID, inv, true);\n\t\t\t\t\t\t\t\t\t// Track the water consumption\n\t\t\t\t\t\t\t\t\tperson.addConsumptionTime(1, amount);\n\t\t\t\t\t\t\t\t\tif (waterOnly)\n\t\t\t\t\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.water\")); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\tLogConsolidated.log(Level.WARNING, 1000, sourceName,\n\t\t\t\t\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" was put on water ration and allocated to drink no more than \" \n\t\t\t\t\t\t\t\t\t\t\t\t\t+ Math.round(amount * 1000.0) / 1.0\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" mL of water.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void inputChange( float t, int i, boolean v ) {\n\t\tchangeCount = changeCount + 1;\n\t\toutputValue = v;\n\t}", "protected abstract boolean setTemperatureSetting1(byte[] edt);", "boolean getBurstForNoiseReduction();", "public Feeder() {\n beltMotor.configPeakOutputForward(1D/3D, 10);\n beltMotor.configPeakOutputReverse(-1D/3D, 10);\n ejectMotor.configPeakOutputForward(1, 10);\n ejectMotor.configPeakOutputReverse(-1, 10);\n\n beltMotor.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative);\n\n SmartDashboard.putNumber(\"Feeder.kBeltIntakeSpeed\", kBeltIntakeSpeed);\n SmartDashboard.putNumber(\"Feeder.kRollerIntakeSpeed\", kRollerIntakeSpeed);\n SmartDashboard.putNumber(\"Feeder.kBeltEjectSpeed\", kBeltEjectSpeed);\n SmartDashboard.putNumber(\"Feeder.kRollerEjectSpeed\", kRollerEjectSpeed);\n SmartDashboard.putNumber(\"Feeder.kInSensorMinDistance\", kInSensorMinDistance);\n SmartDashboard.putNumber(\"Feeder.kInSensorMaxDistance\", kInSensorMaxDistance);\n SmartDashboard.putNumber(\"Feeder.kOutSensorMinDistance\", kOutSensorMinDistance);\n SmartDashboard.putNumber(\"Feeder.kOutSensorMaxDistance\", kOutSensorMaxDistance);\n SmartDashboard.putNumber(\"Feeder.limitDistance\", limitDistance);\n }", "private void setupPowerSystem() {\n\t\tps = new PowerSystem(PowerSystemSolutionMethod.ANL_OPF);\r\n\t\t\r\n\t\t// Create nodes & register with power system\r\n\t\tNodeData nodeWindGenerator = new NodeData(1,1.0,0,false,true);\r\n\t\tps.addNode(nodeWindGenerator);\r\n\t\tNodeData nodeSubstation2 = new NodeData(2,1.0,0,false);\r\n\t\tps.addNode(nodeSubstation2);\r\n\t\tNodeData nodeCityResidential = new NodeData(3,1.0,0,false);\r\n\t\tps.addNode(nodeCityResidential);\r\n\t\tNodeData nodeCityIndustrial = new NodeData(4,1.0,0,false);\r\n\t\tps.addNode(nodeCityIndustrial);\r\n\t\tNodeData nodeCityCommercial = new NodeData(5,1.0,0,false);\r\n\t\tps.addNode(nodeCityCommercial);\r\n\t\tNodeData nodeCoalGenerator = new NodeData(7,1.0,0,false,true);\r\n\t\tps.addNode(nodeCoalGenerator);\r\n\t\tNodeData nodeSubstation3 = new NodeData(8,1.0,0,false);\r\n\t\tps.addNode(nodeSubstation3);\r\n\t\tNodeData nodeGasGenerator = new NodeData(11,1.0,0,false,true);\r\n\t\tps.addNode(nodeGasGenerator);\r\n\t\tNodeData nodeWindStorage = new NodeData(9,1.0,0,false);\r\n\t\tps.addNode(nodeWindStorage);\r\n\t\tNodeData nodeSubstation1 = new NodeData(0,1.0,0,false);\r\n\t\tps.addNode(nodeSubstation1);\r\n\t\t\r\n\t\t// Create lines & register with power system\r\n\t\tMWTimeSeries branchTimeSeries = null;\r\n\t\t\r\n\t\tBranchData branchWindGeneratorToLocalSubstation = new BranchData(nodeWindGenerator,nodeSubstation1,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindGeneratorToLocalSubstation,\"Wind Generator to Substation 1\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindGeneratorToLocalSubstation);\r\n\r\n\t\tBranchData branchWindStorageToLocalSubstation = new BranchData(nodeWindStorage,nodeSubstation1,0.01,0,1500.0,false);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindStorageToLocalSubstation,\"Storage to Substation 1\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindStorageToLocalSubstation);\r\n\t\t\r\n\t\tbranchWindLocalSubstationToCitySubstation = new BranchData(nodeSubstation1,nodeSubstation2,0.01,0,125.0,false);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindLocalSubstationToCitySubstation,\"Substation 1 to Substation 2\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindLocalSubstationToCitySubstation);\r\n\t\t\r\n\t\tBranchData branchWindToResidential = new BranchData(nodeSubstation2,nodeCityResidential,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindToResidential,\"Substation 2 to Residential\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindToResidential);\r\n\t\t\r\n\t\tBranchData branchWindToCommercial = new BranchData(nodeSubstation2,nodeCityCommercial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindToCommercial,\"Substation 2 to Commercial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchWindToCommercial);\r\n\r\n\t\tBranchData branchWindToIndustrial = new BranchData(nodeSubstation2,nodeCityIndustrial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchWindToIndustrial,\"Substation 2 to Industrial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchWindToIndustrial);\r\n\t\t\r\n\t\tBranchData branchCoalGeneratorToSubstation = new BranchData(nodeCoalGenerator,nodeSubstation3,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalGeneratorToSubstation,\"Coal Generator to Substation 3\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\r\n\t\tps.addBranch(branchCoalGeneratorToSubstation);\r\n\t\t\r\n\t\t\r\n\t\tBranchData branchGasToSubstation = new BranchData(nodeGasGenerator,nodeSubstation3,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchGasToSubstation,\"Natural Gas Generator to Substation 3\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchGasToSubstation);\r\n\t\t\r\n\t\tBranchData branchCoalToResidential = new BranchData(nodeSubstation3,nodeCityResidential,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalToResidential,\"Substation 3 to Residential\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchCoalToResidential);\r\n\t\t\r\n\t\tBranchData branchCoalToIndustrial = new BranchData(nodeSubstation3,nodeCityIndustrial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalToIndustrial,\"Substation 3 to Industrial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchCoalToIndustrial);\r\n\t\t\r\n\t\tBranchData branchCoalToCommercial = new BranchData(nodeSubstation3,nodeCityCommercial,0.01,0,1500.0,true);\r\n\t\tbranchTimeSeries = new MWTimeSeries(simClock,branchCoalToCommercial,\"Substation 3 to Commercial\");\r\n\t\tbranchFlowInformation.add(branchTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(branchTimeSeries);\t\t\r\n\t\tps.addBranch(branchCoalToCommercial);\r\n\r\n\t\t\r\n\t\t// Create loads\r\n\t\tMWTimeSeries loadTimeSeries = null;\r\n\t\t\r\n\t\tloadResidential = new LoadData(nodeCityResidential,100.0,0,true);\r\n\t\tloadTimeSeries = new MWTimeSeries(simClock,loadResidential,\"Residential load\");\r\n\t\tcircuitpanel.getAnimatables().add(loadTimeSeries);\r\n\t\tloadInformation.add(loadTimeSeries);\r\n\t\tps.addLoad(loadResidential);\r\n\t\t\r\n\t\tloadCommercial = new LoadData(nodeCityCommercial,100.0,0,true);\r\n\t\tloadTimeSeries = new MWTimeSeries(simClock,loadCommercial,\"Commercial load\");\r\n\t\tcircuitpanel.getAnimatables().add(loadTimeSeries);\r\n\t\tloadInformation.add(loadTimeSeries);\r\n\t\tps.addLoad(loadCommercial);\r\n\t\t\r\n\t\tloadIndustrial = new LoadData(nodeCityIndustrial,100.0,0,true);\r\n\t\tloadTimeSeries = new MWTimeSeries(simClock,loadIndustrial,\"Industrial load\");\r\n\t\tcircuitpanel.getAnimatables().add(loadTimeSeries);\r\n\t\tloadInformation.add(loadTimeSeries);\r\n\t\tps.addLoad(loadIndustrial);\r\n\t\t\r\n\t\t// Create gens\r\n\t\tMWTimeSeries genTimeSeries = null;\r\n\t\t\r\n\t\tgensWithCostsAndEmissions = new ArrayList<CostAndEmissionsProvider>();\r\n\t\tGeneratorDataWithLinearCostAndEmissions genCoal = new GeneratorDataWithLinearCostAndEmissions(nodeCoalGenerator,600,0,2000,0,0,9999,true,2000,20.0,0,1.0,includeFixedCostsAndEmissions);\r\n\t\tgensWithCostsAndEmissions.add(genCoal);\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genCoal);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genCoal,\"Coal generation\");\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tps.addGenerator(genCoal);\r\n\t\t\r\n\t\tGeneratorDataWithLinearCostAndEmissions genGas = new GeneratorDataWithLinearCostAndEmissions(nodeGasGenerator,200,0,2000,0,0,9999,true,700.0,70.0,0,0.5,includeFixedCostsAndEmissions);\r\n\t\tgensWithCostsAndEmissions.add(genGas);\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genGas);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genGas,\"Natural gas generation\");\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tps.addGenerator(genGas);\r\n\t\t\r\n\t\tgenWind = new WindGeneratorDataWithLinearCostAndEmissions(nodeWindGenerator,initialWindGen,0,210,initialWindVariation,true,200.0,0,0,0,includeFixedCostsAndEmissions);\r\n\t\tgenWind.setAnimating(false);\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genWind);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genWind,\"Wind generation\");\r\n\t\twindGenTimeSeries = genTimeSeries;\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tgensWithCostsAndEmissions.add(genWind);\r\n\t\tps.addGenerator(genWind);\r\n\t\t\r\n\t\tgenStorage = new StorageDevice(nodeWindStorage,0,0,0,0,0,0,true,genWind,branchWindLocalSubstationToCitySubstation,simClock,1000,100);\r\n\t\tgenTimeSeries = new MWTimeSeries(simClock,genStorage,\"Storage generation\");\r\n\t\tcostAndEmissionsTimeSeries.addCostAndEmissionsProvider(genStorage);\r\n\t\tcircuitpanel.getAnimatables().add(genTimeSeries);\r\n\t\tcircuitpanel.getAnimatables().add(genStorage);\r\n\t\tgeneratorInformation.add(genTimeSeries);\r\n\t\tgensWithCostsAndEmissions.add(genStorage);\r\n\t\tps.addGenerator(genStorage);\r\n\t\t\r\n\t\tps.solve();\r\n\t\t\r\n\t\tArrayList<LineAndDistanceInfoProvider> lines; \r\n\t\tFlowArrowsForBranchData fA;\r\n\t\tSimpleLineDisplay line;\r\n\t\t\r\n\t\tBranchColorProvider branchColorProvider = new BranchColorDynamic(Color.BLACK,0.85,Color.ORANGE,1.0,Color.RED);\r\n\t\tBranchThicknessProvider branchThicknessProvider = new BranchThicknessDynamic(1.0,0.85,2.0,1.0,3.0);\r\n\t\tFlowArrowColorProvider flowArrowColorProvider = new FlowArrowColorDynamic(new Color(0,255,0,255/2),0.85,new Color(255,128,64,255/2),1.0,new Color(255,0,0,255/2));\r\n\t\t\r\n\t\t\r\n\t\tdouble switchthickness = 5.0;\r\n\r\n\t\t// Line Coal Generator to Fossil Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsCoalGenToCoalSubstation = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,350),new Point2D.Double(710 - 70,212),1);\r\n\t\tpointsCoalGenToCoalSubstation.add(line.getFromPoint());\r\n\t\tpointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsCoalGenToCoalSubstation.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsCoalGenToCoalSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalGeneratorToSubstation, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalGeneratorToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\r\n\t\t//circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(640,260),12,new Color(0f,0f,0f,1f),0,branchCoalGeneratorToSubstation));\r\n\t\t\r\n\t\t// Line Gas Generator to Fossil Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsGasGenToFossilSubstation = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,112.5),new Point2D.Double(765 - 70,160),1);\r\n\t\tpointsGasGenToFossilSubstation.add(line.getFromPoint());\r\n\t\tpointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsGasGenToFossilSubstation.add(line.getToPoint());\r\n\t\tpointsGasGenToFossilSubstation.add(new Point2D.Double(710 - 70,212));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsGasGenToFossilSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchGasToSubstation, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchGasToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\t//circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(660,170),12,new Color(0f,0f,0f,1f),0,branchGasToSubstation));\r\n\t\t\r\n\t\t// Line Wind Generator to Wind Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindGenToWindSubstation = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(89,281),new Point2D.Double(89,150),1);\r\n\t\tpointsWindGenToWindSubstation.add(line.getFromPoint());\r\n\t\tpointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsWindGenToWindSubstation.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindGenToWindSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindGeneratorToLocalSubstation, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindGeneratorToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,200),12,new Color(0f,0f,0f,1f),0,branchWindGeneratorToLocalSubstation));\t\t\r\n\t\t\r\n\t\t// Line storage to Wind Substation & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindStorageToWindSubstation = new ArrayList<Point2D.Double>();\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(210,25));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,25));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,55));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,95));\r\n\t\tpointsWindStorageToWindSubstation.add(new Point2D.Double(85,140));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStorageToWindSubstation, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 2, Math.PI/20, \r\n\t\t\t\tbranchWindStorageToLocalSubstation, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindStorageToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,75),12,new Color(0f,0f,0f,1f),0,branchWindStorageToLocalSubstation));\t\t\r\n\t\t\r\n\t\t// Line substation 2 to Residential load\r\n\t\tArrayList<Point2D.Double> pointsWindStationToResidential = new ArrayList<Point2D.Double>();\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(351 - 70,212.5));\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(419 - 70,212.5));\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(457 - 70,212.5));\r\n\t\tpointsWindStationToResidential.add(new Point2D.Double(525 - 70,212.5));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStationToResidential, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindToResidential, branchColorProvider, circuitpanel, true, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(413 - 70,180),12,new Color(0f,0f,0f,1f),0,branchWindToResidential));\t\t\r\n\t\t\r\n\t\t// Line substation 3 to Residential load\r\n\t\tArrayList<Point2D.Double> pointsFossilStationToResidential = new ArrayList<Point2D.Double>();\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(710 - 70,212.5));\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(631 - 70,212.5));\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(592 - 70,212.5));\r\n\t\tpointsFossilStationToResidential.add(new Point2D.Double(525 - 70,212.5));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilStationToResidential, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalToResidential, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,180),12,new Color(0f,0f,0f,1f),0,branchCoalToResidential));\t\t\r\n\t\t\r\n\t\t// Line Substation 3 to Industrial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsFossilSubstationToIndustrial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,365),1);\r\n\t\tpointsFossilSubstationToIndustrial.add(line.getFromPoint());\r\n\t\tpointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsFossilSubstationToIndustrial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilSubstationToIndustrial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalToIndustrial, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,280),12,new Color(0f,0f,0f,1f),-Math.PI/5,branchCoalToIndustrial));\r\n\t\t\r\n\t\t// Line Substation 3 to Commercial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsSub3ToCommercial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,55),1);\r\n\t\tpointsSub3ToCommercial.add(line.getFromPoint());\r\n\t\tpointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsSub3ToCommercial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub3ToCommercial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchCoalToCommercial, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchCoalToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(615 - 70,105),12,new Color(0f,0f,0f,1f),Math.PI/5,branchCoalToCommercial));\r\n\r\n\t\t\r\n\t\t// Line Substation 2 to Industrial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindSubstationToIndustrial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,365),1);\r\n\t\tpointsWindSubstationToIndustrial.add(line.getFromPoint());\r\n\t\tpointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsWindSubstationToIndustrial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToIndustrial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindToIndustrial, branchColorProvider, circuitpanel, \r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(399 - 70,273),12,new Color(0f,0f,0f,1f),Math.PI/4,branchWindToIndustrial));\r\n\r\n\t\t// Line Substation 2 to Commercial load & flow label\r\n\t\tArrayList<Point2D.Double> pointsWindSubstationToCommercial = new ArrayList<Point2D.Double>();\r\n\t\tline = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,55),1);\r\n\t\tpointsWindSubstationToCommercial.add(line.getFromPoint());\r\n\t\tpointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));\r\n\t\tpointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));\r\n\t\tpointsWindSubstationToCommercial.add(line.getToPoint());\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToCommercial, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 1, Math.PI/20, \r\n\t\t\t\tbranchWindToCommercial, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(396 - 70,140),12,new Color(0f,0f,0f,1f),-Math.PI/4,branchWindToCommercial));\r\n\t\t\r\n\t\t// Line Substation 1 to Substation 2\r\n\t\tArrayList<Point2D.Double> pointsSub0ToSub1 = new ArrayList<Point2D.Double>();\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(85,140));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,140));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,156));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,196));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(175,212));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(190,212));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(230,212));\r\n\t\tpointsSub0ToSub1.add(new Point2D.Double(351 - 70,212));\r\n\t\tlines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub0ToSub1, \r\n\t\t\t\t0, branchThicknessProvider, switchthickness, 2, Math.PI/20, \r\n\t\t\t\tbranchWindLocalSubstationToCitySubstation, branchColorProvider, circuitpanel, true,\r\n\t\t\t\toverloadMonitorParams);\r\n\t\tfA = new FlowArrowsForBranchData(branchWindLocalSubstationToCitySubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(fA);\r\n\t\tcircuitpanel.getAnimatables().add(fA);\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(195,141),12,new Color(0f,0f,0f,1f),0,branchWindLocalSubstationToCitySubstation));\r\n\t\t\r\n\t\t\r\n\t\t// Coal plant display\r\n\t\ttry {\r\n\t\t\tCoalPlantDisplay coaldisplay = new CoalPlantDisplay(new Point2D.Double(650 - 70,300),0,0.0,genCoal);\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(coaldisplay);\r\n\t\t\tcircuitpanel.addMouseListener(coaldisplay);\r\n\t\t\tCostAndEmissionsOverlay coaloverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,450),genCoal);\r\n\t\t\tcostOverlays.add(coaloverlay);\r\n\t\t\tcircuitpanel.getTopLayerRenderables().add(coaloverlay);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\r\n\t\t\r\n\t\t// Gas plant display\r\n\t\ttry {\r\n\t\tGasPlantDisplay gasdisplay = new GasPlantDisplay(new Point2D.Double(650 - 70,40),0.0,genGas);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(gasdisplay);\r\n\t\tcircuitpanel.addMouseListener(gasdisplay);\r\n\t\tCostAndEmissionsOverlay gasoverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,20),genGas);\r\n\t\tcostOverlays.add(gasoverlay);\r\n\t\tcircuitpanel.getTopLayerRenderables().add(gasoverlay);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\r\n\t\t\r\n\t\t// Wind plant display\r\n\t\ttry {\r\n\t\t\twinddisplay = new WindPlantDisplay(new Point2D.Double(50,240),0.0,genWind);\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(winddisplay);\r\n\t\t\tcircuitpanel.getAnimatables().add(winddisplay);\r\n\t\t\tcircuitpanel.addMouseListener(winddisplay);\r\n\t\t\tCostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(100,450),genWind);\r\n\t\t\tcostOverlays.add(windoverlay);\r\n\t\t\tcircuitpanel.getTopLayerRenderables().add(windoverlay);\t\t\t\t\t\t\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// Storage display\r\n//\t\ttry {\r\n\t\t\t//SubstationDisplay storagedisplay = new SubstationDisplay(new Point2D.Double(160,0),\"Storage\");\r\n\t\t\t//circuitpanel.getMiddleLayerRenderables().add(storagedisplay);\r\n\t\t\tStorageDisplay storagedisplay = new StorageDisplay(genStorage,StorageDisplay.Alignment.LEFT,StorageDisplay.Alignment.TOP,new Point2D.Double(170,0));\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(storagedisplay);\r\n//\t\t} catch (IOException ie) {\r\n//\t\t\tSystem.out.println(ie);\r\n//\t\t}\r\n\t\t\r\n\t\t// Commercial load\r\n\t\ttry {\r\n\t\t\tCityDisplay commercetonLoad = new CityDisplay(new Point2D.Double(475 - 70,25),CityDisplay.CityType.COMMERCIAL,\"Commercial\",loadCommercial,0);\r\n\t\t\tcircuitpanel.getBottomLayerRenderables().add(commercetonLoad);\r\n\t\t\tcircuitpanel.addMouseListener(commercetonLoad);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.err.println(ie.toString());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Residential load\r\n\t\ttry {\r\n\t\t\tCityDisplay residentialLoad = new CityDisplay(new Point2D.Double(475 - 70,175),CityDisplay.CityType.RESIDENTIAL,\"Residential\",loadResidential,0);\r\n\t\t\tcircuitpanel.getBottomLayerRenderables().add(residentialLoad);\r\n\t\t\tcircuitpanel.addMouseListener(residentialLoad);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.err.println(ie.toString());\r\n\t\t}\r\n\t\t\r\n\t\t// Industrial load\r\n\t\ttry {\r\n\t\t\tCityDisplay industrialLoad = new CityDisplay(new Point2D.Double(475 - 70,329),CityDisplay.CityType.INDUSTRIAL,\"Industrial\",loadIndustrial,0);\r\n\t\t\tcircuitpanel.getBottomLayerRenderables().add(industrialLoad);\r\n\t\t\tcircuitpanel.addMouseListener(industrialLoad);\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.err.println(ie.toString());\r\n\t\t}\t\t\t\r\n\t\t\r\n\t\t// Substation 3\r\n\t\ttry {\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(660 - 70,212 - 25.0),3));\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// Substation 2\r\n\t\ttry {\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(305 - 70,212 - 25.0),2));\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\r\n\t\t\r\n\t\t// Substation 1\r\n\t\ttry {\r\n\t\t\tcircuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(39,120.0),1));\r\n\t\t} catch (IOException ie) {\r\n\t\t\tSystem.out.println(ie);\r\n\t\t}\t\t\t\r\n\t\t\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(new StoredEnergyLabel(new Point2D.Double(230,56),12,Color.BLACK,0,genStorage));\r\n\t\t\r\n\t\t/*\r\n\t\ttotalloadplot = new TotalLoadPlot(\r\n\t\t\t\tnew Point2D.Double(10,10),\r\n\t\t\t\t700,200,\r\n\t\t\t\tps,\r\n\t\t\t\tminutesPerAnimationStep,\r\n\t\t\t\t0,24,\r\n\t\t\t\t0,3000);\r\n\t\t*/\r\n\t\t/*\r\n\t\tMouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,20),12,Color.BLACK,0);\r\n\t\tcircuitpanel.getTopLayerRenderables().add(mclabel);\r\n\t\tcircuitpanel.addMouseMotionListener(mclabel);\r\n\t\tMouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,0),12,Color.BLACK,0);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(mclabel);\r\n\t\tcircuitpanel.addMouseMotionListener(mclabel);\r\n\t\t*/\r\n\t\t\r\n\t\tWindMaxDisplay windMaxLabel = new WindMaxDisplay(new Point2D.Double(144,384),12,Color.BLACK,0,genWind);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(windMaxLabel);\r\n\t\tWindCurtailedDisplay windCurtailedLabel = new WindCurtailedDisplay(new Point2D.Double(144,404),12,Color.BLACK,0,genWind);\r\n\t\tcircuitpanel.getMiddleLayerRenderables().add(windCurtailedLabel);\r\n\r\n\t\tcircuitpanel.getTopLayerRenderables().add(new BlackoutDisplay(ps));\t\t\r\n\t\t\r\n\t\tcircuitpanel.getAnimatables().add(ps);\r\n\t\t\r\n\t\tcircuitpanel.getTopLayerRenderables().add(\r\n\t\t\t\tnew SimClockDisplay(new Point2D.Double(350,5),12,Color.BLACK,0,simClock)); \r\n\t\t\r\n\t\t// Wind plant at node sixteen\r\n//\t\ttry {\r\n//\t\t\tWindPlantDisplay winddisplay = new WindPlantDisplay(new Point2D.Double(650,340),0.0,genWind);\r\n//\t\t\tcircuitpanel.getMiddleLayerRenderables().add(winddisplay);\r\n//\t\t\tcircuitpanel.getAnimatables().add(winddisplay);\r\n//\t\t\tcircuitpanel.addMouseListener(winddisplay);\r\n//\t\t\tCostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(689,462),genWind);\r\n//\t\t\tcostOverlays.add(windoverlay);\r\n//\t\t\tcircuitpanel.getTopLayerRenderables().add(windoverlay);\t\t\t\t\t\t\r\n//\t\t} catch (IOException ie) {\r\n//\t\t\tSystem.out.println(ie);\r\n//\t\t}\r\n\t\t\r\n\t}", "public TiltForLowBar() {\n\t\t// Use requires() here to declare subsystem dependencies\n\t\tSystem.out.println(\"starting a new uctilt LOW BAR\");\n\t\trequires(Robot.launcher);\n\t\tinitialize();\n\t\tSystem.out.println(\"made the new uctilt LOW BAR\");\n\n\t}", "public void run() {\r\n\t\twhile(true) {\r\n\t\t\twhile(base.isEnabled()){\r\n\t\t\t\tif(pressureSwitch.get() == false){\r\n\t\t\t\t\tcompressor.set(Value.kOn);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tcompressor.set(Value.kOff);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void find_steady_conditions () {\n // System.out.println(\"-- find_steady_conditions: \" + can_do_gui_updates);\n // double min_lift = parse_force_constraint(tf_tkoff_min_lift);\n double max_drag = parse_force_constraint(tf_tkoff_max_drag);\n boolean saved_flag = can_do_gui_updates;\n can_do_gui_updates = false;\n vpp.steady_flight_at_given_speed(5, 0);\n can_do_gui_updates = saved_flag;\n recomp_all_parts();\n\n\n // this animation idea alas does not work now... \n // //add a bit of animation in case the rider crosses the takeoff speed.\n // if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // while (alt_val < 70 && foil_lift() >= load) {\n // alt_val += 0.1;\n // loadPanel();\n // viewer.repaint();\n // // try { Thread.sleep(100); } catch (InterruptedException e) {}\n // saved_flag = can_do_gui_updates;\n // can_do_gui_updates = false;\n // vpp.steady_flight_at_given_speed(5, 0);\n // can_do_gui_updates = saved_flag;\n // }\n // }\n\n if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // viewer.start_raise = true; // this is experimentsl, has quirks....\n alt_val = 70;\n } else if (alt_val > 0 && foil_lift() < load) { // must splash\n // viewer.start_descend = true; // this is experimentsl, has quirks....\n alt_val = 0;\n }\n\n \n loadPanel();\n if (total_drag() > max_drag) \n dash.outTotalDrag.setForeground(Color.red);\n if (foil_lift() < load) \n dash.outTotalLift.setForeground(Color.red);\n }", "@Test\n public void test() {\n int packLength = 156;\n DFTMainFreqEncoder encoder = new DFTMainFreqEncoder(packLength);\n encoder.setMainFreqNum(2);\n List<float[]> packs;\n\n for (int i = 0; i < 1000; i++) {\n // encoder.encode(2*i+3*Math.cos(2*Math.PI*0.4*i));\n// encoder.encode(3 * Math.cos(2 * Math.PI * 0.4 * i));\n encoder.encode(12.5);\n }\n for (int i = 2001; i < 3000; i++) {\n encoder.encode(37.5 + 10 * Math.cos(2 * Math.PI * 0.4 * i));\n // encoder.encode(i);\n }\n for (int i = 3001; i < 4000; i++) {\n // encoder.encode(2*i+3*Math.cos(2*Math.PI*0.4*i));\n// encoder.encode(3 * Math.cos(2 * Math.PI * 0.4 * i));\n encoder.encode(12.5);\n }\n\n System.out.println(\"data: line\");\n packs = encoder.getPackFrequency();\n for (int i = 0; i < packs.size(); i++) {\n System.out.println(i * packLength + \"\\t~\\t\" + ((i + 1) * packLength - 1) + \"\\t\"\n + Arrays.toString(packs.get(i)));\n }\n GtEq<Float> gtEq = FilterFactory.gtEq(FilterFactory.floatFilterSeries(\"a\", \"b\", FilterSeriesType.FREQUENCY_FILTER),0.2f,true);\n assertTrue(encoder.satisfy(gtEq));\n encoder.resetPack();\n\n }", "public BlockFluidFlowing(FlowingFluid fluid, Block.Properties builder) {\n super(fluid, builder);\n// this.name = unlocalizedName;\n// todo: check this\n// this.displacements.put(this, false);\n\n// this.register();\n }", "public void run() {\n SystemClock.sleep(10000);\n\n attenuation = 0f;\n }", "@Override\n public void updateEntity()\n {\n super.updateEntity();\n\n // Updates heat level of the block based on internal tank amount.\n checkHeatLevels();\n\n // Server side processing for furnace.\n if (!this.worldObj.isRemote)\n {\n // Checks to see if we can add a bucket of water to internal tank.\n this.addBucketToInternalTank();\n\n // First tick for new item being cooked in furnace.\n if (this.getProgressValue() == 0 && this.canSmelt() && this.isPowered() && this.isRedstonePowered())\n {\n // Calculate length of time it should take to compute these genome combinations.\n ItemStack currentRecipe = this.getRecipeResult(\n SlotContainerTypeEnum.INPUT_INGREDIENT1,\n SlotContainerTypeEnum.INPUT_INGREDIENT2,\n SlotContainerTypeEnum.INPUT_EXTRA,\n SlotContainerTypeEnum.OUTPUT_RESULT1);\n \n if (currentRecipe == null)\n {\n // Default value for cooking genome if we have none.\n this.setProgressMaximum(200);\n }\n else\n {\n // Defined in MadEntities during mob init.\n this.setProgressMaximum(66);\n }\n\n // Increments the timer to kickstart the cooking loop.\n this.incrementProgressValue();\n }\n else if (this.getProgressValue() > 0 && this.canSmelt() && this.isPowered() && this.isRedstonePowered())\n {\n // Run on server when we have items and electrical power.\n // Note: This is the main work loop for the block!\n\n // Increments the timer to kickstart the cooking loop.\n this.incrementProgressValue();\n\n // Check if furnace has exceeded total amount of time to cook.\n if (this.getProgressValue() >= this.getProgressMaximum())\n {\n // Convert one item into another via 'cooking' process.\n this.setProgressValue(0);\n this.smeltItem();\n this.setInventoriesChanged();\n }\n }\n else\n {\n // Reset loop, prepare for next item or closure.\n this.setProgressValue(0);\n }\n }\n }", "Builder extremeSpikeIncrease(VariableAmount increase);", "private void m23260f() {\n Shimmer aVar;\n Shader shader;\n Rect bounds = getBounds();\n int width = bounds.width();\n int height = bounds.height();\n if (width != 0 && height != 0 && (aVar = this.f19138f) != null) {\n int a = aVar.mo28981a(width);\n int b = this.f19138f.mo28983b(height);\n boolean z = true;\n if (this.f19138f.f19117g != 1) {\n if (!(this.f19138f.f19114d == 1 || this.f19138f.f19114d == 3)) {\n z = false;\n }\n if (z) {\n a = 0;\n }\n if (!z) {\n b = 0;\n }\n shader = new LinearGradient(0.0f, 0.0f, (float) a, (float) b, this.f19138f.f19112b, this.f19138f.f19111a, Shader.TileMode.CLAMP);\n } else {\n shader = new RadialGradient(((float) a) / 2.0f, ((float) b) / 2.0f, (float) (((double) Math.max(a, b)) / Math.sqrt(2.0d)), this.f19138f.f19112b, this.f19138f.f19111a, Shader.TileMode.CLAMP);\n }\n this.f19134b.setShader(shader);\n }\n }", "public void solveFlow() {\n for(int ix=1;ix<cols-1;ix++) {\n int x0=ix*resolution+resolution/2;\n for(int iy=1;iy<rows-1;iy++) {\n int y0=iy*resolution+resolution/2;\n int ig=iy*cols+ix;\n //y0Z=iy*resolution+resolution/2;\n //igz=iy*cols+ix;\n\n // prepare vectors fx, fy, ft\n getnext9(dxr,fx,ig,0); // dx red\n //getnext9(dxg,fx,ig,9); // dx green\n //getnext9(dxb,fx,ig,18);// dx blue\n getnext9(dyr,fy,ig,0); // dy red\n //getnext9(dyg,fy,ig,9); // dy green\n //getnext9(dyb,fy,ig,18);// dy blue\n getnext9(dtr,ft,ig,0); // dt red\n //getnext9(dtg,ft,ig,9); // dt green\n //getnext9(dtb,ft,ig,18);// dt blue\n\n // solve for (flowx, flowy) such that\n // fx flowx + fy flowy + ft = 0\n solveSectFlow(ig);\n\n // smoothing\n sflowx[ig]+=(flowx[ig]-sflowx[ig])*wflow;\n sflowy[ig]+=(flowy[ig]-sflowy[ig])*wflow;\n\n float u=df*sflowx[ig];\n float v=df*sflowy[ig];\n //float u=df*sflowx[ig];\n //float v=df*sflowy[ig];\n\n float a=sqrt(u*u+v*v);\n\n // register new vectors\n if(a>= minRegisterFlowVelocity) \n {\n field[ix][iy] = new PVector(u,v);\n\n // REMOVED FROM drawColorFlow() to here\n if(a>=minDrawParticlesFlowVelocity) { \n \n // display flow when debugging\n if (drawOpticalFlow) \n {\n stroke(255.0f, 0.0f, 0.0f);\n line(x0,y0,x0+u,y0+v);\n } \n\n // same syntax as memo's fluid solver (http://memo.tv/msafluid_for_processing)\n float mouseNormX = (x0+u) * invKWidth;// / kWidth;\n float mouseNormY = (y0+v) * invKHeight; // kHeight;\n float mouseVelX = ((x0+u) - x0) * invKWidth;// / kWidth;\n float mouseVelY = ((y0+v) - y0) * invKHeight;// / kHeight; \n\n particleManager.addForce(1-mouseNormX, mouseNormY, -mouseVelX, mouseVelY);\n }\n }\n }\n }\n }", "int getBlockTint(fd world, int original, int x, int y, int z, TintType ttype) {\n /*if (true)*/return original; //blarg :<\n /*double temperature = 0.0;\n double humidity = 0.0;\n switch (ttype)\n {\n case GRASS:\n // world.getWorldChunkManager().func_4069_a(i, k, 1, 1);\n synchronized (world)\n {\n world.a().a(x, z, 1, 1);\n // double d =\n // iblockaccess.getWorldChunkManager().temperature[0];\n \n temperature = world.a().a[0];\n // double humidity =\n // iblockaccess.getWorldChunkManager().humidity[0];\n humidity = world.a().b[0];\n }\n // return ColorizerGrass.\n try\n {\n return colorMult(original, hx.a(temperature, humidity));\n }\n catch (Throwable t)\n {\n System.err.println(\"err on temp \" + temperature + \" and humid \" + humidity);\n t.printStackTrace();\n }\n case FOLIAGE:\n synchronized(world)\n {\n world.a().a(x, z, 1, 1);\n temperature = world.a().a[0];\n humidity = world.a().b[0];\n }\n try\n {\n // return ColorizerFoliage.getFoliageColor\n return colorMult(original, je.a(temperature, humidity));\n }\n catch (Throwable t)\n {\n System.err.println(\"err on temp \" + temperature + \" and humid \" + humidity);\n t.printStackTrace();\n }\n case PINE:\n return colorMult(original, je.a());\n case BIRCH:\n return colorMult(original, je.b());\n case REDSTONE:\n \n int blockmeta = world.e(x, y, z);\n // TODO: this could be integer math, instead of going to/from\n // float\n float floatmeta = (float)blockmeta / 15F;\n float r = floatmeta * 0.6F + 0.4F;\n if (blockmeta == 0)\n {\n r = 0.0F;\n }\n float g = floatmeta * floatmeta * 0.7F - 0.5F;\n float b = floatmeta * floatmeta * 0.6F - 0.7F;\n if (g < 0.0F)\n {\n g = 0.0F;\n }\n if (b < 0.0F)\n {\n b = 0.0F;\n }\n int tint = ((int)(b * 0xff)) + (((int)(g * 0xff)) << 8) + (((int)(r * 0xff)) << 16);\n return colorMult(original, tint);\n default:\n return original;\n }*/\n }", "public abstract void setEffects(Tank t);", "public TransmissionCoefficientVisualiser()\n\t{\n\t\tsuper();\n\t\t\n\t\t// set to true for interactive version\n\t\tnonInteractiveTIMAction = NonInteractiveTIMActionEnum.INTERACTIVE;\n\t\t\n\t\t// set all parameters\n\t\t\n\t\trenderQuality = RenderQualityEnum.DRAFT;\n\t\t\n\t\taHat = new Vector3D(0, 0, 1);\n\t\tuHat = new Vector3D(1, 0, 0);\n\t\tvHat = new Vector3D(0, 1, 0);\n\t\tetaU = -0.2;\n\t\tetaV = -0.1;\n\t\tdeltaU = 0.6;\t// 0.2;\n\t\tdeltaV = 0.1;\t// -0.4;\n\t\tsigma1U = 1;\n\t\tsigma1V = 1;\n\t\tsigma2U = 1;\n\t\tsigma2V = 1;\n\t\t\n\t\talphaChoice =\n\t\t\t\tAlphaChoice.ZERO;\n//\t\t\t\tAlphaChoice.MANUAL;\n//\t\t\t\tAlphaChoice.OPTIMISED;\n\n\t\t// AlphaChoice.MANUAL parameters\n\t\talpha1U = 0;\n\t\talpha1V = 0;\n\t\talpha2U = -0.15;\t// -0.6;\n\t\talpha2V = -0.15;\t// -0.1;\n\n\t\tdouble distanceInFront = 2;\t// 0.8;\n\t\tapertureCentre =\n\t\t\t\tnew Vector3D(0, 0, 10-distanceInFront);\t// straight in front\n//\t\t\t\tnew Vector3D(1, 0, 10-distanceInFront);\t// a bit to the right\n//\t\t\t\tnew Vector3D(10, 0, 0);\t// 45 degrees off to the right\n\t\tcameraHorizontalFOVDeg = 2*MyMath.rad2deg(Math.atan(10./distanceInFront*Math.tan(MyMath.deg2rad(10))));\n\t\tbrightnessFactor = 1;\n\t\t\n\t\t// AlphaChoice.OPTIMISED parameters\n\t\tpointAtFOVCentre =\n\t\t\t\tnew Vector3D(0, 0, 8);\t// straight in front\n//\t\t\t\tapertureCentre;\t// always optimised for camera position\n//\t\t\t\tnew Vector3D(0, 0, -1000);\t// 45 degrees off to the right\n\t\tparallelityParameter = 0;\n\n\n\t\t\n\t\tSystem.out.println(\"TransmissionCoefficientVisualiser::TransmissionCoefficientVisualiser: F-numbers are as follows:\" +\n\t\t\t\t\"N_1u=\" + 1/sigma1U +\n\t\t\t\t\", N_1v=\" + 1/sigma1V +\n\t\t\t\t\", N_2u=\" + Math.abs(etaU)/sigma2U +\n\t\t\t\t\", N_2v=\" + Math.abs(etaV)/sigma2V\n\t\t\t);\n\t\t\n\t\t// boring parameters\n\t\tnonInteractiveTIMAction = NonInteractiveTIMActionEnum.INTERACTIVE;\n\n\t\t// for movie version\n\t\tnumberOfFrames = 50;\n\t\tfirstFrame = 0;\n\t\tlastFrame = numberOfFrames-1;\n\t\t\n\t\t// camera parameters are set in populateStudio() method\n\t\t\n\t\t// blur quality if test = false; make this better in the non-interactive version, as this is used to produce publication-quality images\n\t\t// standardCameraBlurQuality = (interactive?QualityType.GOOD:QualityType.SUPER);\t// this is the camera's blur quality if test=false\n\t\t\n\t\t// for interactive version\n\t\twindowTitle = \"Dr TIM's telescope-window transmission-coefficient visualiser\";\n\t\twindowWidth = 1200;\n\t\twindowHeight = 650;\n\t}", "public void setTaux(final float newTaux) {\r\n\tthis.taux = newTaux;\r\n}", "protected boolean setBathWaterVolumeSetting1(byte[] edt) {return false;}", "public void step() {\n // method 1 of Temperature randomness\n enPrice = 1.1 * enPrice;\n\n TempChange = Temperature * (0.1 * (1 - 2 * r.nextDouble()));\n // method 2 of Temperature\n// TempChange = temperature_list.get(count);\n// count+=1;\n\n Temperature += TempChange;\n year_num+=1;\n }", "public static void CheckPressure()\n {\n //Only start the compressor if we neeed air\n if(_isRuning && _compressor.getPressureSwitchValue())\n {\n _compressor.stop();\n _isRuning = false;\n }\n else if (!_isRuning && !_compressor.getPressureSwitchValue())\n {\n _compressor.start();\n _isRuning = true;\n }\n }", "protected abstract boolean setTemperatureSetting2(byte[] edt);", "public void step() {\n hasMoved = new boolean[simulationSize][simulationSize]; // Initializing the array and populating it with false values\n\n for(int i = 0; i < hasMoved.length; i++)\n Arrays.fill(hasMoved[i], false);\n\n moveFluid();\n\n yVelocityModifier.add(gravity);\n for(int i = 0; i < simulationSize; i++) { // Iterating through every grid space\n for(int j = 0; j < simulationSize; j++) {\n if(fluidGrid[i][j][0] == EMPTY_VALUE) // If the current space is empty don't use it\n continue;\n\n for(float xModifier : xVelocityModifier) {\n fluidGrid[i][j][0] += xModifier;\n }\n\n for(float yModifier : yVelocityModifier) {\n fluidGrid[i][j][1] += yModifier;\n }\n }\n }\n\n xVelocityModifier.clear();\n yVelocityModifier.clear();\n }", "protected static void makeSingleWave (double f, byte[] out)\n {\n double period = (double) SAMPLE_RATE / f;\n for (int i = 0; i < out.length; i++)\n {\n double angle = 2d * Math.PI * i / period;\n out[i] = (byte) (Math.sin (angle) * 127f);\n }\n }", "public static void configureTalonFX(WPI_TalonFX talonFX, boolean setInverted, boolean setSensorPhase, double kF,\n double kP, double kI, double kD) \n {\n /* Factory default to reset TalonFX and prevent unexpected behavior. */\n talonFX.configFactoryDefault();\n\n /* Configure Sensor Source for Primary PID. */\n talonFX.configSelectedFeedbackSensor(FeedbackDevice.IntegratedSensor, Constants.K_PID_LOOP_IDX,\n Constants.K_TIMEOUT_MS);\n\n /* Configure TalonFX to drive forward when LED is green. */\n talonFX.setInverted(setInverted);\n /* Configure TalonFX's sensor to increment its value as it moves forward. */\n talonFX.setSensorPhase(setSensorPhase);\n\n /**\n * Configure the nominal and peak output forward/reverse.\n * \n * Nominal Output: minimal/weakest motor output allowed during closed-loop. Peak\n * Output: maximal/strongest motor output allowed during closed-loop.\n */\n talonFX.configNominalOutputForward(0, Constants.K_TIMEOUT_MS);\n talonFX.configNominalOutputReverse(0, Constants.K_TIMEOUT_MS);\n talonFX.configPeakOutputForward(1, Constants.K_TIMEOUT_MS);\n talonFX.configPeakOutputReverse(-1, Constants.K_TIMEOUT_MS);\n\n /* Set the Velocity gains (FPID) in slot0. */\n talonFX.selectProfileSlot(Constants.K_SLOT_IDX, Constants.K_PID_LOOP_IDX);\n talonFX.config_kF(Constants.K_SLOT_IDX, kF, Constants.K_TIMEOUT_MS);\n talonFX.config_kP(Constants.K_SLOT_IDX, kP, Constants.K_TIMEOUT_MS);\n talonFX.config_kI(Constants.K_SLOT_IDX, kI, Constants.K_TIMEOUT_MS);\n talonFX.config_kD(Constants.K_SLOT_IDX, kD, Constants.K_TIMEOUT_MS);\n\n /**\n * Reset/zero the TalonFX's sensor. Will be required for implementation into\n * chassis (position considered), but not launcher (velocity only).\n */\n talonFX.setSelectedSensorPosition(0, Constants.K_PID_LOOP_IDX, Constants.K_TIMEOUT_MS);\n }", "@Override\n\tpublic void update(float temp, float humidity, float pressure) {\n\n\t}", "private static void processRegatta(String name) {\n\t\tr = new Regatta(name);\n\n\t\t// Getting wind type.\n\t\tString windType = fileInput.nextLine().toLowerCase();\n\t\tif(!(windType.equals(\"low\") || windType.equals(\"high\"))) {\n\t\t\tthrow new IllegalStateException(\"Invalid wind condition\");\n\t\t}\n\n\t\t// Reading in boats from input file.\n\t\twhile(fileInput.hasNextLine()){\n\t\t\tString[] split = fileInput.nextLine().split(\":\");\n\t\t\tr.addBoat(split[0], split[1] + windType, split[2]);\n\t\t}\n\t\t\n\t\tfileInput.close();\n\t\tSystem.out.println(\"\\nFinished processing regatta. Use podium to see results\");\n\t}", "@Override\n public void drawHeatFlux() {\n }", "private void setTEMiosFromConfig(){\n\t\t\n\t\t//model I/O options\n\t\tTEM.runcht.califilein = config.califilein; //switch to read-in calibrated parameters from Jcalinput.txt\t\t\t\n\t\tTEM.runcht.califile = config.califile;\n\t\t\n\t\tTEM.runcht.usecalirestart = config.ccdfilein; //switch to read-in Env. driver for equilibrim-run from calirestart.nc \n\t\tTEM.runcht.outcalirestart = false; //only valid if 'usecalirestart' above is set to false\n\t\tTEM.runcht.ccdfile = config.ccdfile;\n\t\t\n\t\tTEM.runcht.outmodes.OSITER = config.OSITE;\n\t\tTEM.runcht.outmodes.ODAY = config.OSDLY;\n\t\tTEM.runcht.outmodes.OMONTH = config.OSMLY;\n\t\tTEM.runcht.outmodes.OYEAR = config.OSYLY;\n\t\tTEM.runcht.outmodes.OREGNER = config.OREGN;\t\t\t\t\t\n\t\n\t\t//plotters when NO output file\n\t\tTEM.runcht.GUIgraphic = config.OGRAPH;\n\t\tif (TEM.runcht.GUIgraphic) {\n\n\t\t\tbvplotter =new BioVariablePlotter();\t\t\t\n\t\t\tpvplotter =new PhyVariablePlotter();\n\t\t\t\n\t\t\tTEM.runcht.plotting.setPlotter(bvplotter);\n\t\t\tTEM.runcht.plotting.setPlotter2(pvplotter);\n\t\t\t\n\t\t\tif (config.OBGRAPH) {\n\t\t\t\tBioVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tBioVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t\tif (config.OPGRAPH) {\n\t\t\t\tPhyVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tPhyVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tprotected void uGenerate(float[] channels) \n\t{\n\t\tif (!isTurnedOn)\n\t\t{\n\t\t\tfor(int i = 0; i < channelCount(); i++)\n\t\t\t{\n\t\t\t\tchannels[i] = beforeAmplitude*audio.getLastValues()[i];\n\t\t\t}\n\t\t}\n\t\t// after the envelope, just output the afterAmplitude*audio\n\t\telse if (timeFromOff > releaseTime)\n\t\t{\n\t\t\tfor(int i = 0; i < channelCount(); i++)\n\t\t\t{\n\t\t\t\tchannels[i] = afterAmplitude*audio.getLastValues()[i];\n\t\t\t}\t\n\t\t\tif ( unpatchAfterRelease )\n\t\t\t{\n\t\t\t if ( output != null )\n\t\t\t {\n\t\t\t unpatch( output );\n\t\t\t output = null;\n\t\t\t }\n\t\t\t if ( ugenOutput != null )\n\t\t\t {\n\t\t\t unpatch( ugenOutput );\n\t\t\t ugenOutput = null;\n\t\t\t }\n\t\t\t unpatchAfterRelease = false;\n\t\t\t}\n\t\t}\n\t\t// inside the envelope\n\t\telse\n\t\t{\n\t\t\tif ((isTurnedOn) && (!isTurnedOff))\n\t\t\t{\n\t\t\t\t// ATTACK\n\t\t\t\tif (timeFromOn <= attackTime)\n\t\t\t\t{\n\t\t\t\t\t// use time remaining until maxAmplitude to change amplitude\n\t\t\t\t\tfloat timeRemain = (attackTime - timeFromOn);\n\t\t\t\t\tamplitude += (maxAmplitude - amplitude)*timeStepSize/timeRemain;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// DECAY\n\t\t\t\telse if ((timeFromOn > attackTime) && (timeFromOn <= (attackTime+decayTime)))\n\t\t\t\t{\n\t\t\t\t\t// use time remaining until sustain to change to sustain level\n\t\t\t\t\tfloat timeRemain = (attackTime + decayTime - timeFromOn);\n\t\t\t\t\tamplitude += (sustainLevel*maxAmplitude - amplitude)*timeStepSize/timeRemain;\t\t\t\n\t\t\t\t}\n\t\t\t\t// SUSTAIN\n\t\t\t\telse if (timeFromOn > (attackTime+decayTime))\n\t\t\t\t{\n\t\t\t\t\t// hold the sustain level\n\t\t\t\t\tamplitude = sustainLevel*maxAmplitude;\n\t\t\t\t}\n\t\t\t\ttimeFromOn += timeStepSize;\n\t\t\t}\n\t\t\t// RELEASE\n\t\t\telse //isTurnedOn and isTurnedOFF and timeFromOff < releaseTime\n\t\t\t{\n\t\t\t\t// use remaining time to get to afterAmplitude\n\t\t\t\tfloat timeRemain = (releaseTime - timeFromOff);\n\t\t\t\tamplitude += (afterAmplitude - amplitude)*timeStepSize/timeRemain;\n\t\t\t\ttimeFromOff += timeStepSize;\n\t\t\t}\n\t\t\t// finally multiply the input audio to generate the output\n\t\t\tfor(int i = 0; i < channelCount(); i++)\n\t\t\t{\n\t\t\t\tchannels[i] = amplitude*audio.getLastValues()[i];\n\t\t\t}\t\t\n\t\t}\n\t}", "public void onTriggerChange() {\n findViewById(R.id.temp).post(new Runnable() {\n public void run() {\n ConsumerIrManager mCIR = ScaryUtil.getConsumerIRService(getApplicationContext());\n if (m_Inst.power) {\n TransmissionCode data = ScaryUtil.getIRCode(m_Inst.sequence, m_Inst.temp); // (TransmissionCode)samsung.get(m_Inst.temp);\n ScaryUtil.transmit(getApplicationContext(),data);\n }\n }\n });\n }", "void getFreeStream () { \n /* MODS 19 Jan 00 whole routine*/\n double rgas = 1716.; /* ft2/sec2 R */\n double gama = 1.4;\n double height_m = alt_val/lconv;\n double mu0 = .000000362;\n double g0 = 32.2;\n\n switch (planet) {\n case 0: // Earth standard day\n if (height_m <= 36152.) { // Troposphere\n ts0 = 518.6 - 3.56 * height_m/1000.;\n ps0 = 2116. * Math.pow(ts0/518.6,5.256);\n } else if (height_m >= 36152. && height_m <= 82345.) { // Stratosphere\n ts0 = 389.98;\n ps0 = 2116. * .2236 *\n Math.exp((36000.-height_m)/(53.35*389.98));\n } else if (height_m >= 82345.) {\n ts0 = 389.98 + 1.645 * (height_m-82345)/1000.;\n ps0 = 2116. *.02456 * Math.pow(ts0/389.98,-11.388);\n }\n \n { \n double temf = ts0 - 459.6;\n if (temf <= 0.0) temf = 0.0; \n rho_EN = ps0/(rgas * ts0);\n rho_SI = 1.225; // kg/m3\n \n /* Eq 1:6A Domasch - effect of humidity \n */\n double pvap = rlhum*(2.685+.00354*Math.pow(temf,2.245))/100.;\n rho_EN = (ps0 - .379*pvap)/(rgas * ts0); \n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n }\n break;\n\n case 1: // Mars - curve fit of orbiter data\n rgas = 1149.; /* ft2/sec2 R */\n gama = 1.29;\n rlhum = 0.0;\n\n if (height_m <= 22960.) {\n ts0 = 434.02 - .548 * height_m/1000.;\n ps0 = 14.62 * Math.pow(2.71828,-.00003 * height_m);\n }\n if (height_m > 22960.) {\n ts0 = 449.36 - 1.217 * height_m/1000.;\n ps0 = 14.62 * Math.pow(2.71828,-.00003 * height_m);\n }\n rho_EN = ps0/(rgas*ts0);\n rho_SI = 515.378819 * rho_EN;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n break;\n\n case 2: // water -- constant density\n height_m = -alt_val/lconv;\n rlhum = 100.;\n\n ts0 = 520.;\n // for oceanic water (it is 1027 kg/m3). FoilSimIII has it as 1.9927 slug/ft3\n // One slug has a mass of 32.174049 lb or 14.593903 kg \n rho_EN = 1.9927; \n rho_SI = 1027; // this is rho_EN * 515.378819\n\n ps0 = (2116. - rho_EN * g0 * height_m);\n mu0 = .0000272;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n break;\n case 3: // specify air temp and pressure \n rho_EN = ps0/(rgas*ts0);\n // reiplot_trace_counto temf\n {\n double temf = ts0 - 459.6;\n double pvap = rlhum*(2.685+.00354*Math.pow(temf,2.245))/100.;\n rho_EN = (ps0 - .379*pvap)/(rgas * ts0); \n }\n\n rho_SI = 515.378819 * rho_EN;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n break;\n\n case 4: // specify fluid density and viscosity\n rlhum = 0.0;\n ps0 = 2116.;\n break;\n\n case 5: // Venus - surface conditions\n rgas = 1149.; \n gama = 1.29;\n rlhum = 0.0;\n\n ts0 = 1331.6;\n ps0 = 194672.;\n\n rho_EN = ps0/(rgas*ts0);\n rho_SI = 515.378819 * rho_EN;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n default:\n }\n\n set_q0();\n // pt0 = ps0 + q0_EN;\n\n return;\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "public void adjust_FineFuelMoisture(){\r\n\t// If FFM is one or less we set it to one\t\t\r\n\tif ((FFM-1)<=0){\r\n\t\tFFM=1;\r\n\t}else{\r\n\t\t//add 5 percent FFM for each Herb stage greater than one\r\n\t\tFFM=FFM+(iherb-1)*5;\r\n\t}\r\n}", "public static void main(String[] args) {\n double T = Double.parseDouble(args[0]);\n double deltaT = Double.parseDouble(args[1]);\n \n // declares double t, sets to 0\n double t = 0.0;\n \n // declares and sets gravitational constant\n double g = 6.67e-11;\n \n // declares string \"background\" for background image\n String background = \"starfield.jpg\";\n \n // read the first 2 input values from the input\n int N = StdIn.readInt();\n double R = StdIn.readDouble();\n \n // sets the size of the universe\n setUniverse(R);\n \n // declare arrays for each category, each of which has\n // N elements, one for each particle\n double[] px = new double[N]; // array for position of x\n double[] py = new double[N]; // array for position of y\n double[] vx = new double[N]; // array for velocity of x\n double[] vy = new double[N]; // array for velocity of y\n double[] mass = new double[N]; // array for mass\n String[] picture = new String[N]; // array for pictures of particles\n \n \n // fills each array with input information\n for (int i = 0; i < N; i++) {\n \n px[i] = StdIn.readDouble();\n py[i] = StdIn.readDouble();\n vx[i] = StdIn.readDouble();\n vy[i] = StdIn.readDouble();\n mass[i] = StdIn.readDouble();\n picture[i] = StdIn.readString();\n \n }\n \n // draw the universe background\n drawUniverse(background);\n \n // draw each particle in its initial position:\n for (int i = 0; i < N; i++) {\n StdDraw.picture(px[i], py[i], picture[i]);\n }\n \n// Part 3: Update the universe at each time-step\n \n // The following while loop will allow us to calculate the\n // change in position for each particle (based on the force\n // from all other particles), and then redraw the background\n // and particles. The loop also tallies how much \"time\" \n // has gone by so that once the time has summed to T, \n // the program stops executing.\n \n while (t < T) {\n \n // declare new arrays forcex and forcey for the\n // x and y components of the force for each planet\n _______________________________;\n _______________________________;\n \n // In the next section, we want to calculate the force that each\n // body experiences, from all the other bodies combined. To do this,\n // we will need to use a double for loop. It is your job to figure\n // out what happens in each for loop.\n \n // For each body x, for each body y, you'll want to calculate the force\n // that y exerts on x, which is a function of the distance between\n // x and y and the size of x and y. You'll calculate both the force\n // in the x direction and the force in the y direction.\n \n // fills the arrays, with each element\n // corresponding to a different particle\n for (______________________) {\n \n // Runs through the particles, calculating the force\n // from each particle j on the particle i in question\n for (______________________) {\n \n // declares variables for x and y distances between the bodies\n double dx = _______________;\n double dy = _______________;\n \n // calculates the distance between planets i and j\n // note: you can use a method for this!\n double distance = _____________________;\n \n // calculates the overall force between i and j\n double forcej = _______________;\n \n // calculates x and y components of force between i and j\n double forcejx = ______________________;\n double forcejy = ______________________;\n \n // keep track of the net force on particle i \n // in both x and y directions\n forcex[i] = ______________________;\n forcey[i] = ______________________;\n \n }\n }\n \n // draw the universe background\n _______________________________;\n \n // calculate the new velocity and position for each particle\n for (int i = 0; i < N; i++) {\n \n // calculates acceleration in x and y directions\n double ax = _____________________________;\n double ay = _____________________________;\n \n // calculates velocity in x and y directions\n vx[i] = _____________________________;\n vy[i] = _____________________________;\n \n // calculates new x and y coordinates\n // to determine position\n px[i] = _____________________________;\n py[i] = _____________________________;\n \n // draws each particle in its new position\n _____________________________________;\n \n }\n \n // waits 40 milliseconds before continuing\n StdDraw.show();\n StdDraw.pause(20);\n \n // increments t by deltaT\n t = t + deltaT;\n \n }\n \n \n \n \n }", "public void run() {\r\n /*try {\r\n AudioSystem.write(m_audioInputStream, m_targetType, outFile);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //diagram.display();\r\n \r\n final java.util.List<Double> samples=new ArrayList<Double>();\r\n int nBytesRead=0;\r\n final int EXTERNAL_BUFFER_SIZE=(int)Math.pow(2, 13); //128000;\r\n byte[] abData=new byte[EXTERNAL_BUFFER_SIZE];\r\n //boolean isOn=false;\r\n while(nBytesRead != -1 && !stopped) {\r\n try {\r\n nBytesRead=m_audioInputStream.read(abData, 0, abData.length);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n if(nBytesRead > 0) {\r\n //System.err.println(\"data captured: \"+nBytesRead);\r\n final double[] in=new double[nBytesRead / 2+1]; // >>> 16 bit\r\n int j=0;\r\n for(int i=0; i < nBytesRead - 1; i+=2) {\r\n byte left=abData[i];\r\n int right=abData[i + 1];\r\n right<<=8;\r\n right|=(left & 0xFF);\r\n in[j+1]=right / 65536.0; // >>>65535=2^16\r\n j++;\r\n }\r\n\r\n double averageIntensity=0;\r\n try {\r\n final Sound intensitySound=Sound.Sound_createSimple(1, (in.length-1) / (double)SAMPLE_RATE, SAMPLE_RATE);\r\n intensitySound.z[1]=in;\r\n final SoundEditor edit=SoundEditor.SoundEditor_create(\"\", intensitySound);\r\n edit.computeIntensity();\r\n averageIntensity=edit.computeAverageIntensity();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n continue; //>>>?\r\n }\r\n final double ai=averageIntensity;\r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(IntensityListener lis: itenListener) {\r\n lis.gotIntensity(ai); //notify listeners\r\n }\r\n }\r\n });\r\n\r\n /*if(INTENSITY_THRESHOLD<0) {\r\n INTENSITY_THRESHOLD=(int)ai+20;\r\n System.err.println(\"t:\"+ai);\r\n } else {*/\r\n//System.err.println(ai);\r\n if(ai>=settings.noiseLevel) { //filter weak noises\r\n //>>> too long? \r\n for(int i=1; i<in.length; i++) {\r\n samples.add(in[i]);\r\n }\r\n } else {\r\n analyzePitch(samples);\r\n samples.clear();\r\n }\r\n //}\r\n }\r\n }\r\n //System.err.println(\"got sample\");\r\n \r\n \r\n//System.err.println(\"done\");\r\n }" ]
[ "0.5411312", "0.5383954", "0.53598857", "0.53410983", "0.51947886", "0.5163683", "0.5156472", "0.5125527", "0.50417584", "0.49954605", "0.49869782", "0.49731785", "0.4967702", "0.49635085", "0.49541855", "0.49518135", "0.49499786", "0.4946747", "0.49320394", "0.49319822", "0.49119577", "0.4886967", "0.4879839", "0.48543733", "0.4847406", "0.48370254", "0.48369113", "0.4828805", "0.47958192", "0.47816896", "0.47717154", "0.47702798", "0.47580466", "0.47528762", "0.4752349", "0.4747059", "0.47338867", "0.47331268", "0.47283512", "0.47154891", "0.47128505", "0.4704263", "0.46959877", "0.468419", "0.46781737", "0.4676445", "0.4666037", "0.4664974", "0.46619347", "0.46561313", "0.46506384", "0.4650436", "0.4646119", "0.4643735", "0.46425995", "0.46405894", "0.46357268", "0.463553", "0.46142086", "0.46111703", "0.46093333", "0.46074945", "0.46064705", "0.46013445", "0.46012586", "0.45970407", "0.45921287", "0.45901403", "0.45811912", "0.45745715", "0.45599052", "0.45569697", "0.4541984", "0.4537795", "0.45325804", "0.45283228", "0.45248848", "0.4523824", "0.45232198", "0.45194897", "0.45116577", "0.45102376", "0.45026177", "0.45024166", "0.45016906", "0.4497322", "0.44946915", "0.44933608", "0.44928876", "0.44904774", "0.44861248", "0.44845113", "0.44840184", "0.44814342", "0.44798005", "0.44737118", "0.44711146", "0.44647625", "0.44637692", "0.44621283" ]
0.54883313
0
Creates new form latihanIV
public latihanIV() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public Latihan2() {\n initComponents();\n }", "FORM createFORM();", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "public DisciplinaForm() {\n initComponents();\n }", "public FGlavna() {\n initComponents();\n pripremiFormu();\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public FormInserir() {\n initComponents();\n }", "public JajarGenjang() {\n initComponents();\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public frmTaquilla() {\n initComponents();\n \n objSalaSecundaria.setCapacidad(250);\n objSalaSecundaria.setPrecioEntrada(180.0);//esto equivale a asignar los valores a través de de los metodos set\n libres1.setText(\"LIBRES \" + objSalaCentral.getCapacidad());\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public Pasien(String nama, String alamat, String tempatLahir, int tanggalLahir, int bulanLahir, int tahunLahir, String NIK) {\r\n this.nama = nama;\r\n this.alamat = alamat;\r\n this.tempatLahir = tempatLahir;\r\n this.NIK = NIK;\r\n this.tanggalLahir = tanggalLahir;\r\n this.bulanLahir = bulanLahir;\r\n this.tahunLahir = tahunLahir;\r\n }", "public FIzaberiPutnika() {\n initComponents();\n \n setLocationRelativeTo(null);\n popuniTabelu();\n prepareTableForSort();\n pripremiFormu(FormMode.PRETRAZI);\n }", "public FormUtama() {\n initComponents();\n setUkuranLokasiFrame(0.85, true);\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n setTanggal();\n setJam();\n setIp();\n tampilKonek();\n }", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "public Karyawan() {\n initComponents();\n setResizable(false);\n tampilkan_data();\n kosong_form();\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }", "public FormPlanetZirboin() {\n initComponents();\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "public formdatamahasiswa() {\n initComponents();\n }", "public void praticien_zone(){\n\n JLabel lbl_Praticien = new JLabel(\"Praticien :\");\n lbl_Praticien.setBounds(40, 50, 119, 16);\n add(lbl_Praticien);\n\n\n\n JTextField praticien = new JTextField();\n praticien.setBounds(200, 50, 200, 22);\n praticien.setEditable(false);\n try {\n praticien.setText((DAO_Praticien.nomPraticien(rapport_visite.elementAt(DAO_Rapport.indice)[1])));\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n add(praticien);\n\n }", "private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }", "public telaAddPedidoII() {\n initComponents();\n }", "public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}", "public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }", "public frm_tutor_subida_prueba() {\n }", "Vaisseau_longueur createVaisseau_longueur();", "private void btnTambahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTambahActionPerformed\n tambahUbah = 1;\n TambahUbahTIK t = new TambahUbahTIK();\n t.setVisible(true);\n this.dispose();\n }", "public CrearQuedadaVista() {\n }", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "public abstract void creationGrille();", "public FrmIntPasienLama() {\n initComponents();\n\n /* Memberi nilai isian pasien dari form penambahan pasien (FormInternal) */\n txtNoRm.setText(FrmIntPasienBaru.ID);\n txtNamaPasien.setText(FrmIntPasienBaru.nama);\n txtAlamat.setText(FrmIntPasienBaru.alamat);\n txtJenkel.setText(FrmIntPasienBaru.jk);\n txtTglLahir.setText(FrmIntPasienBaru.tglLahir);\n\n /* Mengisi comboBox pilihPoliTujuan dari database */\n tms.setData(ss.serviceGetAllSpesialis());\n int a = tms.getRowCount();\n pilihPoliTujuan.setModel(new javax.swing.DefaultComboBoxModel(ss.serviceGetAllNamaSpesialis(a)));\n\n /* Mengisi comboBox pilihJaminan dari database */\n tmj.setData(js.serviceGetAllJaminan());\n int b = tmj.getRowCount();\n pilihJaminan.setModel(new javax.swing.DefaultComboBoxModel(js.serviceGetAllIdJaminan(b)));\n\n tmsf.setData(sfs.serviceGetAllStaf());\n int c = tmsf.getRowCount();\n pilihStaf.setModel(new javax.swing.DefaultComboBoxModel(sfs.serviceGetAllNamaStaf(c)));\n\n Date dt = new Date();\n tglPendaftaran.setDate(dt);\n\n /* Mengisi pilihan dokter berdasarkan pilihan spesialis */\n //isiPilihanDokter();\n\n /* Menampilkan konfirmasi apabila form pendaftaran ini di-close */\n this.addInternalFrameListener(new InternalFrameAdapter() {\n\n @Override\n public void internalFrameClosing(InternalFrameEvent e) {\n if (txtNamaPasien.getText() == null ? \"\" == null : txtNamaPasien.getText().equals(\"\")) {\n dispose();\n } else {\n int pilih = JOptionPane.showConfirmDialog(rootPane,\n \"Yakin ingin membatalkan pendaftaran ke Poliklinik?\",\n \"Konfirmasi\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (pilih == JOptionPane.OK_OPTION) {\n dispose();\n /* Menghilangan nilai dari form penambahan pasien (internal) */\n FrmIntPasienBaru.ID = \"\";\n FrmIntPasienBaru.nama = \"\";\n FrmIntPasienBaru.alamat = \"\";\n FrmIntPasienBaru.jk = \"\";\n FrmIntPasienBaru.tglLahir = \"\";\n }\n }\n }\n });\n\n /* Apabila pilihan poli tujuan berubah, maka pilihan dokter akan ikut berubah */\n pilihPoliTujuan.addItemListener(new ItemListener() {\n\n public void itemStateChanged(ItemEvent e) {\n try {\n isiPilihanDokter();\n } catch (Throwable t) {\n }\n }\n });\n\n\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public NhanVien_Form_PhieuXuat() {\n\t\tinitialize();\n\t}", "public FormPemilihan() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "Vaisseau_positionner createVaisseau_positionner();", "public TorneoForm() {\n initComponents();\n }", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public AvtekOkno() {\n initComponents();\n }", "public Perumahan() {\n initComponents();\n aturModelTabel();\n Tipe();\n showForm(false);\n showData(\"\");\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public FrmKashidashi() {\n initComponents();\n }", "public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }", "public Form_Rincian_Hitung() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n getData();\n }", "public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }", "public add_karyawan() {\n initComponents();\n showTable();\n randomNumber();\n setLocation(500, 200);\n }", "public Tarifa() {\n initComponents();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public NovaContaFisica() {\n initComponents();\n }", "public QLNhanVien(){\n \n }", "public CrearPedidos() {\n initComponents();\n }", "public Creacion() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public asignatura() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public Pantalla_Registro_Platos() {\n initComponents();\n }", "private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\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\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}", "public AntrianPasien() {\r\n\r\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public VistaTrabaja() {\n initComponents();\n }", "public Transaksi() {\n initComponents();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public KullaniciSil() {\n initComponents();\n }", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "public VistaCrearEmpleado() {\n\t\tsetClosable(true);\n\t\tsetFrameIcon(new ImageIcon(VistaCrearEmpleado.class.getResource(\"/com/mordor/mordorLloguer/recursos/account_circle24dp.png\")));\n\t\tsetBounds(100, 100, 467, 435);\n\t\tgetContentPane().setLayout(new MigLayout(\"\", \"[152px][235px]\", \"[19px][19px][19px][19px][19px][19px][45px][24px][19px][25px]\"));\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI: \");\n\t\tgetContentPane().add(lblDni, \"cell 0 0,growx,aligny center\");\n\t\t\n\t\ttxtDNI = new JTextField();\n\t\tgetContentPane().add(txtDNI, \"cell 1 0,growx,aligny top\");\n\t\ttxtDNI.setColumns(10);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre: \");\n\t\tgetContentPane().add(lblNombre, \"cell 0 1,growx,aligny center\");\n\t\t\n\t\ttxtNombre = new JTextField();\n\t\tgetContentPane().add(txtNombre, \"cell 1 1,growx,aligny top\");\n\t\ttxtNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos: \");\n\t\tgetContentPane().add(lblApellidos, \"cell 0 2,growx,aligny center\");\n\t\t\n\t\ttxtApellidos = new JTextField();\n\t\tgetContentPane().add(txtApellidos, \"cell 1 2,growx,aligny top\");\n\t\ttxtApellidos.setColumns(10);\n\t\t\n\t\tJLabel lblDomicilio = new JLabel(\"Domicilio:\");\n\t\tgetContentPane().add(lblDomicilio, \"cell 0 3,growx,aligny center\");\n\t\t\n\t\ttxtDomicilio = new JTextField();\n\t\tgetContentPane().add(txtDomicilio, \"cell 1 3,growx,aligny top\");\n\t\ttxtDomicilio.setColumns(10);\n\t\t\n\t\tJLabel lblCp = new JLabel(\"CP:\");\n\t\tgetContentPane().add(lblCp, \"cell 0 4,growx,aligny center\");\n\t\t\n\t\ttxtCp = new JTextField();\n\t\tgetContentPane().add(txtCp, \"cell 1 4,growx,aligny top\");\n\t\ttxtCp.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tgetContentPane().add(lblEmail, \"cell 0 5,growx,aligny center\");\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\tgetContentPane().add(txtEmail, \"cell 1 5,growx,aligny top\");\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJLabel lblFechaDeNacimiento = new JLabel(\"Fecha de Nacimiento:\");\n\t\tgetContentPane().add(lblFechaDeNacimiento, \"cell 0 6,alignx left,aligny center\");\n\t\t\n\t\ttxtDate = new WebDateField();\n\t\tgetContentPane().add(txtDate, \"cell 1 6,growx,aligny top\");\n\t\t\n\t\tJLabel lblCargo = new JLabel(\"Cargo:\");\n\t\tgetContentPane().add(lblCargo, \"cell 0 7,growx,aligny center\");\n\t\t\n\t\tcomboBoxCargo= new JComboBox<String> ();\n\t\tgetContentPane().add(comboBoxCargo, \"cell 1 7,growx,aligny top\");\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"Contraseña:\");\n\t\tgetContentPane().add(lblContrasea, \"cell 0 8,growx,aligny center\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tgetContentPane().add(passwordField, \"cell 1 8,growx,aligny top\");\n\t\t\n\t\tbtnAdd = new JButton(\"Add\");\n\t\tgetContentPane().add(btnAdd, \"cell 0 9,growx,aligny top\");\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(btnCancel, \"cell 1 9,growx,aligny top\");\n\n\t}", "public Cgg_jur_anticipo(){}", "public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }", "public IfrViagem() {\n initComponents();\n v = new Viagem();\n criarViagem();\n\n Formatacao.formatarData(ftfDataSaida);\n Formatacao.formatarHora(ftfHoraSaida);\n Formatacao.formatarData(ftfDataRetorno);\n Formatacao.formatarHora(ftfHoraRetorno);\n Formatacao.formatarReal(ftfValorViagem);\n\n }", "public void motif_zone(){\n\n JLabel lbl_Motif = new JLabel(\"Motif du Rapport :\");\n lbl_Motif.setBounds(40, 130, 119, 16);\n add(lbl_Motif);\n\n motif_content = new JTextField();\n motif_content.setBounds(200, 130, 200, 22);\n motif_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[4]);\n motif_content.setEditable(false);\n add(motif_content);\n\n\n\n }", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "private void jBtn_AjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_AjouterActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n Formulaire_Client creaClient = new Formulaire_Client();\n creaClient.setVisible(true);\n this.setVisible(false);\n \n }\n else{\n Formulaire_Prospect creaProspect = new Formulaire_Prospect();\n creaProspect.setVisible(true);\n this.setVisible(false);\n } \n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public InfoPartidaNormal() {\n initComponents();\n \n Volver.addActionListener(this);\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 hesapekrani() {\n initComponents();\n getedits();\n \n \n }", "public quanlixe_form() {\n initComponents();\n }", "public NhanVien()\n {\n }", "Position_ordonnee createPosition_ordonnee();", "public frmPengembalian() {\n initComponents();\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblKembali.setModel(model);\n model.addColumn(\"NAMA\");\n model.addColumn(\"ALAMAT\");\n model.addColumn(\"NO. HP\");\n model.addColumn(\"NAMA KAMERA\");\n model.addColumn(\"KODE KAMERA\");\n model.addColumn(\"TANGGAL DISEWAKAN\");\n model.addColumn(\"TANGGAL DIKEMBALIKAN\");\n model.addColumn(\"TERLAMBAT\");\n\n \n //fungsi ambil data\n getDataKategori();\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public Consultar_Cita() {\n initComponents();\n this.setLocationRelativeTo(null);\n mostrartabla(\"\");\n //Llenar();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }" ]
[ "0.6243488", "0.62220925", "0.6215574", "0.61476487", "0.6143139", "0.6113486", "0.60150224", "0.6007698", "0.5972852", "0.59565943", "0.59368724", "0.593108", "0.5928742", "0.58766055", "0.5869295", "0.58612806", "0.583827", "0.58194554", "0.58165437", "0.57876694", "0.5751617", "0.5732846", "0.5731685", "0.57171416", "0.5714385", "0.571203", "0.5711088", "0.57082874", "0.5707409", "0.57011485", "0.56840914", "0.568387", "0.5678044", "0.56728244", "0.5651663", "0.56390357", "0.56387067", "0.56125426", "0.5609532", "0.5602488", "0.55996495", "0.55948824", "0.55920464", "0.55869627", "0.55763257", "0.55738205", "0.5565965", "0.55620646", "0.5558569", "0.55569607", "0.55534935", "0.5541958", "0.5539547", "0.55386823", "0.55362535", "0.5533797", "0.5527105", "0.55268896", "0.5515381", "0.55126476", "0.55048424", "0.5499821", "0.5499444", "0.54974604", "0.54972154", "0.5496307", "0.5494143", "0.5482588", "0.5476285", "0.5475174", "0.5461717", "0.5457491", "0.5454171", "0.54522806", "0.5451701", "0.5447849", "0.54465044", "0.54371214", "0.54365855", "0.5431036", "0.5429818", "0.54268366", "0.54254526", "0.54153657", "0.54139954", "0.5412885", "0.54088646", "0.54055196", "0.54048735", "0.5400829", "0.53984016", "0.5397861", "0.5393355", "0.53882354", "0.5384181", "0.53817415", "0.53781325", "0.5376046", "0.53756404", "0.53706884" ]
0.65259045
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); Nama = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); Kelas = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); rb1 = new javax.swing.JRadioButton(); rb2 = new javax.swing.JRadioButton(); baca = new javax.swing.JCheckBox(); tulis = new javax.swing.JCheckBox(); jLabel5 = new javax.swing.JLabel(); renang = new javax.swing.JCheckBox(); lari = new javax.swing.JCheckBox(); btnSubmit = new javax.swing.JButton(); btnHapus = new javax.swing.JButton(); btnKeluar = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); TAHasil = new javax.swing.JTextArea(); jPanel1 = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(null); jLabel1.setText("Biodata Siswa"); getContentPane().add(jLabel1); jLabel1.setBounds(150, 10, 90, 20); jLabel2.setText("Nama : "); getContentPane().add(jLabel2); jLabel2.setBounds(70, 40, 50, 14); Nama.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { NamaActionPerformed(evt); } }); getContentPane().add(Nama); Nama.setBounds(130, 40, 140, 30); jLabel3.setText("Kelas : "); getContentPane().add(jLabel3); jLabel3.setBounds(70, 80, 50, 14); Kelas.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { KelasActionPerformed(evt); } }); getContentPane().add(Kelas); Kelas.setBounds(130, 80, 140, 30); jLabel4.setText("Jurusan :"); getContentPane().add(jLabel4); jLabel4.setBounds(70, 110, 70, 14); buttonGroup1.add(rb1); rb1.setText("RPL"); rb1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rb1ActionPerformed(evt); } }); getContentPane().add(rb1); rb1.setBounds(130, 110, 60, 23); buttonGroup1.add(rb2); rb2.setText("TKJ"); rb2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { rb2ActionPerformed(evt); } }); getContentPane().add(rb2); rb2.setBounds(210, 110, 60, 23); baca.setText("Membaca"); getContentPane().add(baca); baca.setBounds(130, 140, 80, 23); tulis.setText("Menulis"); tulis.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tulisActionPerformed(evt); } }); getContentPane().add(tulis); tulis.setBounds(130, 170, 80, 23); jLabel5.setText("Hobi : "); getContentPane().add(jLabel5); jLabel5.setBounds(70, 140, 50, 14); renang.setText("Berenang"); getContentPane().add(renang); renang.setBounds(220, 140, 80, 23); lari.setText("Berlari"); lari.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lariActionPerformed(evt); } }); getContentPane().add(lari); lari.setBounds(220, 170, 70, 23); btnSubmit.setText("Submit"); btnSubmit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSubmitActionPerformed(evt); } }); getContentPane().add(btnSubmit); btnSubmit.setBounds(60, 200, 80, 23); btnHapus.setText("Hapus"); btnHapus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnHapusActionPerformed(evt); } }); getContentPane().add(btnHapus); btnHapus.setBounds(150, 200, 70, 23); btnKeluar.setText("Keluar"); btnKeluar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnKeluarActionPerformed(evt); } }); getContentPane().add(btnKeluar); btnKeluar.setBounds(223, 200, 80, 23); TAHasil.setColumns(20); TAHasil.setRows(5); jScrollPane1.setViewportView(TAHasil); getContentPane().add(jScrollPane1); jScrollPane1.setBounds(60, 250, 250, 130); jPanel1.setBackground(new java.awt.Color(153, 255, 153)); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 390, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 420, Short.MAX_VALUE) ); getContentPane().add(jPanel1); jPanel1.setBounds(0, 0, 390, 420); setBounds(0, 0, 400, 460); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7319396", "0.7290941", "0.7290941", "0.7290941", "0.7285927", "0.7248002", "0.72139066", "0.72086275", "0.71958303", "0.718997", "0.7184516", "0.7159095", "0.71481097", "0.709288", "0.70806605", "0.70578784", "0.6986726", "0.6977067", "0.6955257", "0.6954392", "0.6945326", "0.69436216", "0.6935779", "0.69320637", "0.6928225", "0.6924907", "0.69248605", "0.6911609", "0.6911109", "0.6892906", "0.6892066", "0.68918383", "0.6891177", "0.6889087", "0.6883209", "0.6882372", "0.6880651", "0.68782973", "0.6876634", "0.6874696", "0.68711734", "0.6859314", "0.68565166", "0.6855607", "0.68552643", "0.6854565", "0.68534696", "0.68530536", "0.68530536", "0.6843682", "0.6836637", "0.6836613", "0.6829145", "0.68281287", "0.682634", "0.6824281", "0.68238854", "0.681735", "0.6816949", "0.6811127", "0.68091583", "0.6808792", "0.680855", "0.6808137", "0.6802665", "0.67954504", "0.67941535", "0.6793186", "0.6791855", "0.67899567", "0.67891306", "0.678766", "0.67817825", "0.67669976", "0.67660517", "0.6764966", "0.67571455", "0.6755968", "0.6752885", "0.6751322", "0.6742087", "0.6739845", "0.673701", "0.6736383", "0.67338026", "0.6727401", "0.67262983", "0.67209303", "0.67158926", "0.6715857", "0.67147917", "0.67091477", "0.6708007", "0.6704485", "0.6701657", "0.67003953", "0.6699588", "0.6698673", "0.66944015", "0.6690715", "0.6689867" ]
0.0
-1
return the gui folder with settings
public GuiStem getGuiFolderWithSettings() { if (this.grouperObjectTypesAttributeValue == null) { return null; } String stemId = this.grouperObjectTypesAttributeValue.getObjectTypeOwnerStemId(); Stem stem = GrouperDAOFactory.getFactory().getStem().findByUuid(stemId, false); if (stem == null) { return null; } return new GuiStem(stem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }", "private static JMenuItem getDirInEditor(){\n return new JMenuItem(NcStrGUILabel.DIR_IN_INDEX.getStr());\n }", "public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }", "public File getFileChooserDirectory() {\n\n\t\tFile dir = null;\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(diffuseBaseValueControl.getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(specularBaseValueControl.getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(((TextField) textureInputLayout.lookup(\"tex_path\")).getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\treturn dir;\n\t}", "public String getDialogPath() {\n return getCurrentDirectory().getAbsolutePath();\n }", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "public static String getSettingsPath(User user){\r\n File file = (File)userDirs.get(user);\r\n return file == null ? null : file.getAbsolutePath();\r\n // Not 100% sure we should use the absolute path...\r\n }", "Preferences systemRoot();", "@Override\n public void onChosenDir(String chosenDir) {\n ((EditTextPreference)preference).setText(chosenDir);\n try {\n SettingsActivity.createWorkingDir(getActivity(), new File(chosenDir));\n } catch (Exception ex) {\n Toast.makeText(getActivity(), ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n AvnLog.i(Constants.LOGPRFX, \"select work directory \" + chosenDir);\n }", "abstract public String getTopResourcesDir();", "private static JMenuItem getDirOutEditor(){\n return new JMenuItem(NcStrGUILabel.DIR_OUT_INDEX.getStr());\n }", "void getSettings(ControlsSettings settings);", "private void loadSettings() {\n\t\ttry {\n\t\t\tFile file = new File(SETTINGS_CONF);\n\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file));\n\t\t\tObject[] o = (Object[]) in.readObject();\n\n\t\t\tJob[] jobs = (Job[]) o[0];\n\t\t\tfileOne.setText((String) o[1]);\n\t\t\tsettings.getRarPath().setText((String) o[2]);\n\t\t\tsettings.getBasePath().setText((String) o[3]);\n\t\t\ttrackers.getList().setItems((String[]) o[4]);\n\n\t\t\tTreeItem root = tree.getItem(0);\n\n\t\t\tfor (Job job : jobs) {\n\t\t\t\tif (job != null) {\n\t\t\t\t\t// job.printAll();\n\t\t\t\t\tTreeItem item = new TreeItem(root, SWT.NATIVE);\n\t\t\t\t\t\n\t\t\t\t\titem.setText(job.getName());\n\t\t\t\t\titem.setData(job);\n\t\t\t\t\titem.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (job.isEnabled() ? GEAR_ICON : GEAR_DISABLED_ICON)));\n\t\t\t\t\t\n\t\t\t\t\tif(!(job.getPrefix() == null || job.getPrefix().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getPrefix());\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (UNDERSCORE_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getPassword() == null || job.getPassword().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(\"[with password]\");\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\t}\n\t\t\t\t\tif(!(job.getFileTwo() == null || job.getFileTwo().isEmpty())) {\n\t\t\t\t\t\tTreeItem i = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\t\ti.setText(job.getFileTwo());\t\t\t\t\t\n\t\t\t\t\t\ti.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\tTreeItem iprefix = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ipassword = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tTreeItem ifileTwo = new TreeItem(item, SWT.NATIVE);\n\t\t\t\t\tiprefix.setText(job.getPrefix() == null || job.getPrefix().isEmpty() ? \"[no prefix]\" : job.getPrefix());\n\t\t\t\t\tipassword.setText(job.getPassword() == null || job.getPassword().isEmpty() ? \"[no password]\" : \"[with password]\");\n\t\t\t\t\t\n\t\t\t\t\tipassword.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (PASSWORD_ICON)));\n\t\t\t\t\tiprefix.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\tifileTwo.setImage(new Image (getShell().getDisplay(), Start.class.getResourceAsStream (FILE_ICON)));\n\t\t\t\t\t\n\t\t\t\t\t// ifileOne.setText(job.getFileOne() == null ||\n\t\t\t\t\t// job.getFileOne().isEmpty() ? \"[no file]\" :\n\t\t\t\t\t// job.getFileOne());\n\t\t\t\t\tifileTwo.setText(job.getFileTwo() == null || job.getFileTwo().isEmpty() ? \"[no file]\" : job.getFileTwo());\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static String GetLoLFolder() {\n\t\tFile file = null;\n String path = null;\n\t\ttry {\n\n JFileChooser chooser = new JFileChooser();\n chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n chooser.setDialogTitle(\"Please set your Location of \\\"lol.launcher.exe\\\"\");\n chooser.setBackground(Gui.myColor);\n chooser.setForeground(Color.LIGHT_GRAY);\n chooser.setFileFilter(new FileFilter() {\n public boolean accept(File f) {\n return f.getName().toLowerCase().endsWith(\"lol.launcher.exe\")\n || f.isDirectory();\n }\n\n public String getDescription() {\n return \"lol.launcher.exe(*.exe)\";\n }\n });\n int rueckgabeWert = chooser.showOpenDialog(null);\n if (rueckgabeWert == JFileChooser.APPROVE_OPTION) {\n file = chooser.getSelectedFile();\n if (file.getName().contains(\"lol.launcher.exe\")) {\n System.out.println(\"- Found League of Legends Installation\");\n path = chooser.getSelectedFile().getParent();\n File FilePath = new File(\"Path\");\n FileWriter writer;\n writer = new FileWriter(FilePath);\n writer.write(path);\n writer.flush();\n writer.close();\n } else {\n System.out\n .println(\"- No League of Legends Installation found :(\");\n path = \"No installation found\";\n }\n }\n } catch (IOException e)\n {\n logger.error(\"Write Error\");\n }\n\t\treturn path;\n\t}", "public JTextFieldOperator txtOutputFolder() {\n if (_txtOutputFolder==null) {\n _txtOutputFolder = new JTextFieldOperator((JTextField)lblOutputFolderOrJAR().getLabelFor());\n }\n return _txtOutputFolder;\n }", "public static String getPreferenceDirectory() {\n\t\treturn PREF_DIR;\n\t}", "public abstract String getConfigurationFolderKey();", "public static void GetApplicationSettingsFile() {\n\t\t// Get the current path where the application (.jar) was launched from\n\t\tString path = \"\";\n\t\ttry {\n\t\t\tpath = Main.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath();\n\t\t}\n\t\tcatch (URISyntaxException e) { e.printStackTrace(); }\n\t\t// Handle result\n\t\tif (path.length() > 0) {\n\t\t\t// Handle leading \"/\"\n\t\t\tif (path.startsWith(\"/\")) {\n\t\t\t\tpath = path.substring(1);\n\t\t\t}\n\t\t\t// Check for settings file\n\t\t\tBoolean exists = new File(path + \"settings.xml\").exists();\n\t\t\t// Handle existence\n\t\t\tif (exists) {\n\t\t\t\t// Load the file into memory\n\t\t\t\tapplicationSettingsFile = Utilities.LoadDocumentFromFilePath(path + \"settings.xml\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Create the file\n\t\t\t\tapplicationSettingsFile = Utilities.CreateDocument();\n\t\t\t\t// Create the root element node\n\t\t\t org.w3c.dom.Element root = applicationSettingsFile.createElement(\"root\");\n\t\t\t applicationSettingsFile.appendChild(root);\n\t\t\t // Write the document to disk\n\t\t\t Utilities.writeDocumentToFile(applicationSettingsFile, new File(path + \"settings.xml\"));\n\t\t\t}\n\t\t\t// Store a reference to the file path\n\t\t applicationSettingsFilePath = path + \"settings.xml\";\n\t\t}\n\t}", "String folderPath();", "public static File getPreferencesDirectory() {\n\t\treturn PREFERENCES_DIRECTORY;\n\t}", "IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();", "private void preferences() {\n final Preferences prefs = Preferences.userNodeForPackage(DesktopPane.class);\n final JFileChooser chooser = new JFileChooser(prefs.get(SCREENSHOT_DIRECTORY_PREFS, null));\n chooser.setDialogTitle(\"Output directory for screenshots\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n switch (chooser.showOpenDialog(this)) {\n case JFileChooser.APPROVE_OPTION: {\n final File directory = chooser.getSelectedFile();\n if (directory != null) {\n prefs.put(SCREENSHOT_DIRECTORY_PREFS, directory.getPath());\n }\n break;\n }\n }\n }", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}", "String getDir();", "public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }", "Preferences userRoot();", "public static String getCurrentFolderPath(){\n\t\treturn currentFolderPath;\n\t}", "public String getSettings();", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\r\n\t\tsetMessage(\"Exchange have to save data to a local directory\");\r\n\t\tsetTitleImage(ResourceManager.getPluginImage(\"com.munch.exchange\", \"icons/login_dialog.gif\"));\r\n\t\tsetTitle(\"Select a workspace\");\r\n\t\tComposite area = (Composite) super.createDialogArea(parent);\r\n\t\tComposite container = new Composite(area, SWT.NONE);\r\n\t\tGridLayout gl_container = new GridLayout(3, false);\r\n\t\tgl_container.marginHeight = 15;\r\n\t\tcontainer.setLayout(gl_container);\r\n\t\tcontainer.setLayoutData(new GridData(GridData.FILL_BOTH));\r\n\t\t\r\n\t\tLabel lblWorkspace = new Label(container, SWT.NONE);\r\n\t\tlblWorkspace.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblWorkspace.setText(\"Workspace:\");\r\n\t\t\r\n\t\tcombo = new Combo(container, SWT.NONE);\r\n\t\tcombo.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\tif(button==null)return;\r\n\t\t\t\tFile dir=new File(combo.getText());\r\n\t\t\t\tbutton.setEnabled(dir.isDirectory());\r\n\t\t\t\tif(workspaces.contains(combo.getText())){\r\n\t\t\t\t\tworkspaces.remove(combo.getText());\r\n\t\t\t\t\tworkspaces.addFirst(combo.getText());\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});\r\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tint i=0;\r\n\t\tfor(String w_s:this.workspaces){\r\n\t\t\tcombo.add(w_s);\r\n\t\t\tif(w_s.equals(workspace)){\r\n\t\t\t\tcombo.select(i);\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tButton btnBrowse = new Button(container, SWT.NONE);\r\n\t\tbtnBrowse.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tDirectoryDialog dialog= new DirectoryDialog(getShell(),SWT.OPEN );\r\n\t\t\t\tif(getLastWorkspace()!=null){\r\n\t\t\t\t\tdialog.setFilterPath(getLastWorkspace());\r\n\t\t\t\t}\r\n\t\t\t\t//dialog.\r\n\t\t\t\tString path=dialog.open();\r\n\t\t\t\tif(path!=null && !path.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile dir=new File(path);\r\n\t\t\t\t\tif(dir.isDirectory()){\r\n\t\t\t\t\t\tcombo.add(path, 0);\r\n\t\t\t\t\t\tcombo.select(0);\r\n\t\t\t\t\t\tif(!workspaces.contains(path))\r\n\t\t\t\t\t\t\tworkspaces.addFirst(path);\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});\r\n\t\tbtnBrowse.setText(\"Browse...\");\r\n\t\t\r\n\t\treturn area;\r\n\t}", "public static String getFolderStartMenu(){\r\n\t\ttry {\r\n\t\t\treturn RegistryUtils.readString(RegistryUtils.HKEY_CURRENT_USER, \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Shell Folders\", \"Programs\");\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getOutputFolder() {\n return txtOutputFolder().getText();\n }", "abstract public String getMspluginsDir();", "Path getManageMeFilePath();", "public static Path getPluginsDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null)).resolve(PLUGINS_DIR);\n\t}", "private JPanel getDirectoryPanel() {\n\t\tif (directoryPanel == null) {\n\t\t\tdirectoryPanel = new JPanel();\n\t\t\tdirectoryPanel.add(getBtnCreateDirectory());\n\t\t\tdirectoryPanel.add(getBtnRenameDirectory());\n\t\t}\n\t\treturn directoryPanel;\n\t}", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "public GuiConfigMod(GuiScreen parent)\n {\n super(parent,\n getConfigElements(),\n MainMod.MODID,\n false,\n false,\n Utilities.stringToGolden(\"Play The Way You Want\", 7));\n titleLine2 = ModConfig.configFile.getAbsolutePath();\n }", "public ConfigurationAppGUI() {\n super(\"TalkBox\");\n player = new SoundEngine();\n String[] audioFileNames = findFiles(AUDIO_DIR, null);\n try {\n UIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\n if(sounds.exists()) {\n //Deserialization\n SaveData data = (SaveData) ResourceManager.load(fileName);\n //Populating InitialList from TalkBoxConfig.save file.\n initialListModel = new DefaultListModel();\n initialList = new JList(initialListModel);\n\n for (int i = 0; i < data.finalList.getModel().getSize(); i++)\n initialListModel.addElement(data.finalList.getModel().getElementAt(i));\n\n //Populating Order ComboBox from TalkBoxConfig.save file.\n orderModel = new DefaultComboBoxModel();\n order = new JComboBox<>(orderModel);\n for (int i = 0; i < data.order.getModel().getSize(); i++)\n orderModel.addElement(data.order.getModel().getElementAt(i));\n }\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (UnsupportedLookAndFeelException e) {\n e.printStackTrace();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n makeFrame(audioFileNames);\n\n //--Testing interface methods.\n// this.getNumberOfAudioButtons();\n// this.getNumberOfAudioSets();\n// this.getTotalNumberOfButtons();\n// this.getRelativePathToAudioFiles();\n// this.getAudioFileNames();\n }", "public String getDir();", "public static String getGameFolder() {\n\t\treturn gameFolder;\n\t}", "private File getFolder() throws FileNotFoundException, IOException {\n File folder = getConfigurationFolder(new File(\".\").getCanonicalFile());\n if (!folder.isDirectory()) {\n folder = getConfigurationFolder(new File(getInstallationFolder().getPath())\n .getCanonicalFile().getParentFile().getParentFile());\n }\n\n return folder;\n }", "private String setFolderPath(int selection) {\n\t\tString directory = \"\";\n\t\tswitch (selection) {\n\t\tcase 1:\n\t\t\tdirectory = \"\\\\art\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tdirectory = \"\\\\mikons_1\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tdirectory = \"\\\\mikons_2\";\n\t\t\tbreak;\n\t\t}\n\t\treturn directory;\n\t}", "Gui getGui();", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "abstract public String getRingResourcesDir();", "public CommandLineBuilderPanel() {\n initComponents();\n buildCommandLine();\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\n }", "private static File getUserFolderConfFile() {\n String confFileName = UserPreferences.getAppName() + CONFIG_FILE_EXTENSION;\n File userFolder = PlatformUtil.getUserDirectory();\n File userEtcFolder = new File(userFolder, ETC_FOLDER_NAME);\n if (!userEtcFolder.exists()) {\n userEtcFolder.mkdir();\n }\n return new File(userEtcFolder, confFileName);\n }", "@Override\r\n\tprotected void setSavedDirectoriesIntoControls() {\n\r\n\t}", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "abstract public String getDataResourcesDir();", "public static Path getTextsDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null)).resolve(TEXTS_DIR);\n\t}", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "private void setLabtainersDir() throws IOException{\n String newLabtainersPath = LabtainersDirTextfield.getText();\n \n // check if labtainers path exist\n if(new File(newLabtainersPath).isDirectory()){\n pathValidLabel.setVisible(false);\n \n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"labtainersPath\", newLabtainersPath);\n\n labtainerPath = newLabtainersPath;\n updateLabtainersPath();\n \n LabtainersDirDialog.setVisible(false);\n }\n else{\n pathValidLabel.setVisible(true);\n } \n }", "private ArrayList<String> getFullDir() {\r\n\t\tArrayList<String> fullDir = new ArrayList<String>();\r\n\r\n\t\t// We go through all the modules in the model and connect the selDir and full\r\n\t\t// top module together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tPanelInstMod panel = helperInstMod.model.getElementAt(i);\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\t// We add one more as a buffer for the top module when configuring the modules\r\n\t\t\t\t// (DialogWire).\r\n\t\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t\t}\r\n\t\t\tfullDir.add(panel.getSelDir() + \"\\\\\" + panel.getFullTopMod());\r\n\t\t}\r\n\t\treturn fullDir;\r\n\t}", "public String getAssetDirectory() {\n return String.format(\"plugin-webapp/%s\", getId());\n }", "public void updateLabtainersPath(){\n labsPath = new File(labtainerPath + File.separator + \"labs\");\n labChooser.setCurrentDirectory(labsPath); \n }", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "public String promptForFolder( Component parent )\n\t{\n\t JFileChooser fc = new JFileChooser();\n\t fc.setFileSelectionMode( JFileChooser.FILES_AND_DIRECTORIES);\n\n\t if( fc.showOpenDialog( parent ) == JFileChooser.APPROVE_OPTION )\n\t {\n\t return fc.getSelectedFile().getAbsolutePath();\n\t }\n\n\t return null;\n\t}", "public static File getSettingsfile() {\n return settingsfile;\n }", "public String getProjectDir() {\n return (String) data[GENERAL_PROJECT_DIR][PROP_VAL_VALUE];\n }", "public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "private JPanel buildMainPanel() {\n\t\t\n\t\tint row;\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel main;\n\t\tJLabel label;\t\t\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tmain = new JPanel(layout);\n\t\trow = 0;\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CURRENT_CONFIGURATION)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, label = new JLabel(userPrefs.getConfiguration()), \n\t\t\t\tlayout, constraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tlabel.setForeground(Color.BLUE);\t\t\n\t\tGUIUtils.add(main, new JSeparator(), layout, constraints, row++, 0, 1, \n\t\t\t\t2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CONFIGURATION_NAME)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.NORTHEAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, new JScrollPane(configurationName = \n\t\t\t\tnew JTextField(20)), layout, constraints, row++, 1, 1, 1, \n\t\t\t\tGridBagConstraints.WEST, GridBagConstraints.NONE, \n\t\t\t\tGUIUtils.SMALL_INSETS);\t\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_MAKE_DEFAULT)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, makeDefault = new JCheckBox(), layout, \n\t\t\t\tconstraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\treturn main;\n\t}", "String getConfigFileName();", "private Pane createSettings() {\n HBox row = new HBox(20);\n row.setAlignment(Pos.CENTER);\n Label langIcon = createIcon(\"icons/language.png\");\n Label themeIcon = createIcon(\"icons/theme.png\");\n\n ComboBox<Language> langSelect = new ComboBox<>();\n langSelect.getItems().addAll(UIController.Language.values());\n langSelect.setValue(UIController.Language.values()[0]);\n langSelect.setOnAction(e -> changeLanguage(langSelect.getValue()));\n\n ComboBox<Theme> themeSelect = new ComboBox<>();\n themeSelect.getItems().addAll(UIController.Theme.values());\n themeSelect.setValue(UIController.Theme.values()[0]);\n themeSelect.setOnAction(e -> changeTheme(themeSelect.getValue()));\n\n row.getChildren().addAll(langIcon, langSelect, themeIcon, themeSelect);\n\n return row;\n }", "private String getOptionsGoldenFile() {\n String dataDir = \"\";\n try {\n dataDir = getDataDir().getCanonicalPath();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return dataDir + File.separator + \"permanentUI\" + File.separator + \"options\" + File.separator + \"options-categories.txt\";\n }", "static Path getSavegame() {\r\n\t\tPath savegame = null;\r\n\r\n\t\t// current version querk, only works if only a single steam profile is used to\r\n\t\t// play DS:R on the same machine. will fix later.\r\n\t\tif (defaultPath.toFile().listFiles().length > 1) {\r\n\t\t\tSystem.out.println(\"The Default Savegame directory has more than one player profile directory.\");\r\n\t\t\tSystem.out.println(\"These profile directories are named numerical, e.g. \\\"0123456789\\\".\");\r\n\t\t\tSystem.out.println(\"Please choose the Savegame you want to backup.\");\r\n\r\n\t\t\treturn savegame;\r\n\t\t}\r\n\r\n\t\tPath saveDirectory = defaultPath.toFile().listFiles()[0].toPath();\r\n\t\t// test if directory was found\r\n\t\tif (Files.isDirectory(saveDirectory)) {\r\n\t\t\tSystem.out.println(\"Savegame directory found...\");\r\n\r\n\t\t\t// searches for the current save and writes location into Path object\r\n\t\t\tfor (File f : saveDirectory.toFile().listFiles()) {\r\n\t\t\t\tif (f.isFile() && f.getName().equals(\"DRAKS0005.sl2\")) {\r\n\t\t\t\t\tsavegame = f.toPath();\r\n\t\t\t\t\tSystem.out.println(\"Savegame found...\");\r\n\t\t\t\t\tcheckPath = true;\r\n\t\t\t\t\twindow.pathField.setText(savegame.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (savegame == null) {\r\n\t\t\tSystem.out.println(\"Savegame not found..\");\r\n\t\t\tSystem.out.println(\"Select DS:R Savegame!\");\r\n\t\t\tsavegame = window.getSavegame();\r\n\t\t}\r\n\t\treturn savegame;\r\n\t}", "public JButton getChooseConfigFileButton() {\n\t\treturn this.btnOpenFileConfig;\n\t}", "private void showDestinationDirChooser() {\r\n\t\tDirectoryChooser chooser = new DirectoryChooser();\r\n\t\tchooser.setTitle(\"Pick destination directory for split DARs. Hint: use a folder on TeacherShare.\");\r\n\t\tFile defaultDirectory = new File(System.getenv(\"userprofile\") + \"\\\\Desktop\");\r\n\t\tchooser.setInitialDirectory(defaultDirectory);\r\n\t\tFile selectedDirectory = chooser.showDialog(null);\r\n\r\n\t\tif (selectedDirectory != null) {\r\n\t\t\tString messageS = null;\r\n\t\t\tmessageS = selectedDirectory.getAbsolutePath();\r\n\t\t\tpreferences.setProperty(prefOutputPath, messageS);\r\n\t\t\tdestinationDirFX.update();\r\n\t\t}\r\n\t}", "public void setSettings(UserPrefs prefs) {\n tfDataPath.setText(prefs.getProperty(UserPrefs.DATA_ROOT));\n // Save this for a comparison later\n existingDataPath = prefs.getProperty(UserPrefs.DATA_ROOT);\n\n String backup = prefs.getProperty(UserPrefs.BACKUP_FOLDER);\n // Nothing there, so add default based on username - this is OK\n if(backup == null || backup.length() == 0) {\n backup = DataFiler.getDefaultBackupFolder(prefs.getUserName());\n }\n tfBackupPath.setText(backup);\n\n cbBackUpOnExit.setSelected(prefs.getBooleanProperty(UserPrefs.BACKUP));\n\n tfNagSave.setText(prefs.getProperty(UserPrefs.SAVE_NAG_MINS));\n\n cbIncludeText.setSelected(prefs.getBooleanProperty(UserPrefs.MESSAGE_QUOTE));\n\n // L&F\n String lf = prefs.getProperty(UserPrefs.APP_LOOK_FEEL);\n cbLookAndFeel.setSelectedItem(lf);\n\n UIManager.LookAndFeelInfo[] systemLookAndFeels = UIManager.getInstalledLookAndFeels();\n for(int i = 0; i < systemLookAndFeels.length; i++) {\n if(systemLookAndFeels[i].getClassName().equals(lf)) {\n cbLookAndFeel.setSelectedIndex(i);\n break;\n }\n }\n\n cbShowStatusMessages.setSelected(prefs.getBooleanProperty(UserPrefs.STATUS_MESSAGES));\n }", "private static File getProjectsPath() {\n File projectsPath = loadFilePath();\n if (projectsPath == null) {\n JFileChooser fc = createFileChooser();\n if (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n return fc.getSelectedFile();\n }\n }\n return projectsPath;\n }", "public static String getOutputFolderName() {\n\t\treturn PropertiesFile.getSystemRoot()+PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t}", "public String getResourcePath();", "public String getResourcePath() {\n return appPathField.getText().trim();\n }", "public static synchronized void getSettingsWindow() {\n if (WINDOW == null) {\n WINDOW = new JFrame(\"Settings\");\n WINDOW.setContentPane(new SettingsWindow().settingsPanel);\n WINDOW.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n WINDOW.pack();\n }\n WINDOW.setVisible(true);\n WINDOW.requestFocus();\n }", "private void initialize() {\n\t\tfrmSettings = new JFrame();\n\t\tfrmSettings.setTitle(\"Settings\");\n\t\tfrmSettings.setBounds(100, 100, 594, 420);\n\t\tfrmSettings.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmSettings.getContentPane().setLayout(null);\n\n\t\tJLabel lblSettings = new JLabel(\"Check the appropriate checkbox to change the values\");\n\t\tlblSettings.setBounds(10, 8, 558, 14);\n\t\tfrmSettings.getContentPane().add(lblSettings);\n\n\t\tstorage_panel = new JPanel();\n\t\tstorage_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Storage\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tstorage_panel.setBounds(20, 33, 548, 65);\n\t\tfrmSettings.getContentPane().add(storage_panel);\n\t\tstorage_panel.setLayout(null);\n\n\t\tJLabel lblDefaultPathfor = new JLabel(\"Default path (for reports):\");\n\t\tlblDefaultPathfor.setBounds(10, 27, 149, 14);\n\t\tstorage_panel.add(lblDefaultPathfor);\n\n\t\treport_path = new JTextField();\n\t\treport_path.setText(AppConfigInfo.getDefaultStorage());\n\t\treport_path.setBounds(171, 23, 367, 20);\n\t\tstorage_panel.add(report_path);\n\t\treport_path.setColumns(10);\n\n\t\twork_hours_panel = new JPanel();\n\t\twork_hours_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Work-hours\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\twork_hours_panel.setBounds(20, 112, 548, 90);\n\t\tfrmSettings.getContentPane().add(work_hours_panel);\n\t\twork_hours_panel.setLayout(null);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Full-day hours (hh:mm:ss):\");\n\t\tlblNewLabel.setBounds(10, 26, 161, 14);\n\t\twork_hours_panel.add(lblNewLabel);\n\n\t\tJLabel lblHalfdayHours = new JLabel(\"Half-day hours (hh:mm:ss):\");\n\t\tlblHalfdayHours.setBounds(10, 54, 161, 14);\n\t\twork_hours_panel.add(lblHalfdayHours);\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tDate df = new Date(), dh = new Date();\n\t\ttry {\n\t\t\tdf = sdf.parse(AppConfigInfo.getFullWorkingHours());\n\t\t\tdh = sdf.parse(AppConfigInfo.getHalfWorkingHours());\n\t\t} catch (Exception ex) {\n\n\t\t}\n\t\tfull_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\tfull_day_spinner.setEditor(new JSpinner.DateEditor(full_day_spinner, sdf.toPattern()));\n\t\tfull_day_spinner.setValue(df);\n\t\tfull_day_spinner.setBounds(171, 23, 122, 20);\n\t\twork_hours_panel.add(full_day_spinner);\n\n\t\thalf_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\thalf_day_spinner.setEditor(new JSpinner.DateEditor(half_day_spinner, sdf.toPattern()));\n\t\thalf_day_spinner.setValue(dh);\n\t\thalf_day_spinner.setBounds(171, 51, 122, 20);\n\t\twork_hours_panel.add(half_day_spinner);\n\n\t\tadmin_profile_panel = new JPanel();\n\t\tadmin_profile_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Admin profile\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tadmin_profile_panel.setBounds(20, 211, 548, 123);\n\t\tfrmSettings.getContentPane().add(admin_profile_panel);\n\t\tadmin_profile_panel.setLayout(null);\n\n\t\tlblNewLabel_1 = new JLabel(\"Existing password:\");\n\t\tlblNewLabel_1.setBounds(10, 28, 151, 14);\n\t\tadmin_profile_panel.add(lblNewLabel_1);\n\n\t\tlblNewPassword = new JLabel(\"New password:\");\n\t\tlblNewPassword.setBounds(10, 54, 151, 14);\n\t\tadmin_profile_panel.add(lblNewPassword);\n\n\t\tlblReenterPassword = new JLabel(\"Re-enter password:\");\n\t\tlblReenterPassword.setBounds(10, 79, 151, 14);\n\t\tadmin_profile_panel.add(lblReenterPassword);\n\n\t\texisting_password = new JPasswordField();\n\t\texisting_password.setBounds(171, 25, 159, 20);\n\t\tadmin_profile_panel.add(existing_password);\n\n\t\tnew_password = new JPasswordField();\n\t\tnew_password.setBounds(171, 51, 159, 20);\n\t\tadmin_profile_panel.add(new_password);\n\n\t\tre_entered_password = new JPasswordField();\n\t\tre_entered_password.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif (!re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"Password does not match.\");\n\t\t\t\t} else if (re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tre_entered_password.setBounds(171, 76, 159, 20);\n\t\tadmin_profile_panel.add(re_entered_password);\n\n\t\tpassword_status_label = new JLabel(\"\");\n\t\tpassword_status_label.setBounds(340, 79, 198, 14);\n\t\tadmin_profile_panel.add(password_status_label);\n\n\t\tstorage_check = new JCheckBox(\"\");\n\t\tstorage_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tstorage_panel.setEnabled(true);\n\t\t\t\t\tenableReportPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tstorage_panel.setEnabled(false);\n\t\t\t\t\tdisableReportPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tstorage_check.setBounds(0, 56, 21, 23);\n\t\tfrmSettings.getContentPane().add(storage_check);\n\n\t\twork_hours_check = new JCheckBox(\"\");\n\t\twork_hours_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\twork_hours_panel.setEnabled(true);\n\t\t\t\t\tenableWorkHourPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\twork_hours_panel.setEnabled(false);\n\t\t\t\t\tdisableWorkHourPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\twork_hours_check.setBounds(0, 149, 21, 23);\n\t\tfrmSettings.getContentPane().add(work_hours_check);\n\n\t\tadmin_profile_check = new JCheckBox(\"\");\n\t\tadmin_profile_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tadmin_profile_panel.setEnabled(true);\n\t\t\t\t\tenableAdminProfilePanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tadmin_profile_panel.setEnabled(false);\n\t\t\t\t\tdisableAdminProfilePanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadmin_profile_check.setBounds(0, 263, 21, 23);\n\t\tfrmSettings.getContentPane().add(admin_profile_check);\n\n\t\tapply_button = new JButton(\"Apply\");\n\t\tapply_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tif (report_path.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the storage path.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treport_status = UpdateAppSettings.updateStoragePath(report_path.getText());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\tif (full_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the full day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (half_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the half day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twork_hours_status = UpdateAppSettings.updateWorkigHours((Date) full_day_spinner.getValue(),\n\t\t\t\t\t\t\t\t(Date) half_day_spinner.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tif (existing_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter your existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (new_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please re-enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (!new_password.getText().equals(re_entered_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Re-entered password does not match.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(existing_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings,\n\t\t\t\t\t\t\t\t\"New password cannot be same as the existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadmin_password_status = UpdateAppSettings.updateAdminPassword(existing_password.getText(),\n\t\t\t\t\t\t\t\tre_entered_password.getText());\n\t\t\t\t\t\tif (!admin_password_status) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Wrong password entered.\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (report_status || work_hours_status || admin_password_status) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Settings applied successfully.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tapply_button.setBounds(239, 348, 89, 23);\n\t\tfrmSettings.getContentPane().add(apply_button);\n\n\t\tlabel = new JLabel(\"\\u00A9 Copyright 2017. Saraswat Infotech Ltd\");\n\t\tlabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 9));\n\t\tlabel.setBounds(363, 368, 205, 14);\n\t\tfrmSettings.getContentPane().add(label);\n\t}", "@Override\n public Pair<String, String> getMenuLocation() {\n return CONFIG_TAB.getMenuLocation();\n }", "public File getConfigRoot()\r\n\t{\n\t\treturn file.getParentFile();\r\n\t}", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public String getFolderPath(){\n\t\treturn folderPath;\n\t}", "File getPluginDirectory(String pluginId);", "public String getSavingLocation()\n {\n return Environment.getExternalStorageDirectory() + File.separator + getResources().getString(R.string.app_name);\n }" ]
[ "0.70236975", "0.70236975", "0.70236975", "0.70236975", "0.70236975", "0.70236975", "0.70236975", "0.6402591", "0.61258626", "0.6121375", "0.596304", "0.595693", "0.59562814", "0.59358567", "0.59027445", "0.58897424", "0.581588", "0.57596016", "0.5754654", "0.57453966", "0.5729067", "0.5713931", "0.5679745", "0.56795", "0.56681967", "0.5665253", "0.56648463", "0.56625444", "0.5661009", "0.5655786", "0.5637191", "0.5610725", "0.56071526", "0.55973595", "0.5582626", "0.5580238", "0.55577564", "0.55524945", "0.5549958", "0.55394495", "0.55389214", "0.5537436", "0.552837", "0.5528368", "0.55254495", "0.5501393", "0.54976773", "0.5496658", "0.54878485", "0.545854", "0.5443084", "0.54413295", "0.5428067", "0.54221106", "0.54178", "0.540218", "0.539925", "0.53969246", "0.5391495", "0.5367276", "0.5367276", "0.5367276", "0.5367276", "0.5367276", "0.5367276", "0.5367276", "0.53601", "0.53546536", "0.53526044", "0.53425795", "0.53337187", "0.5328729", "0.5324737", "0.532396", "0.53212917", "0.5320251", "0.53168297", "0.5316329", "0.5315194", "0.5311191", "0.5308716", "0.5305338", "0.529917", "0.52770156", "0.5266711", "0.5264934", "0.52596784", "0.5257237", "0.5249264", "0.524818", "0.52443224", "0.5235845", "0.52334696", "0.52331597", "0.52250737", "0.52134883", "0.5213366", "0.52093166", "0.52014434", "0.5197555" ]
0.63176596
8
Counter for loop labels
protected FunctionNode(AbstractNode parent, FunctionOrMethod function) { super(parent); loopCounter = 0; children = new ArrayList<AbstractNode>(); variables = new HashSet<String>(); params = loadParams(function.type()); this.name = function.name(); //Add label to variables variables.add(LABEL_VAR); //Function is going to have various subnodes which now need to be parsed, and strung together for (Code code : function.body().bytecodes()){ children.addAll(createNodeFromCode(code, this)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getLabelsCount();", "int getLabelsCount();", "int getLabelsCount();", "int getLabelsCount();", "public void incrementLoopCount() {\n this.loopCount++;\n }", "private void displayCount() {\n\t\tlabel.setText(String.format(\"%2d\", game.getCount()));\n\t}", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "public void print_documents_per_label_count() {\n\t\tSystem.out.println(\"SPORTS=\" + m_sports_count);\n\t\tSystem.out.println(\"BUSINESS=\" + m_business_count);\n\t}", "public Integer getLoopCounter(Loop lp){\n\t\treturn loopCounter.get(lp);\n\t}", "public void print_words_per_label_count() {\n\t\tSystem.out.println(\"SPORTS=\" + m_sports_word_count);\n\t\tSystem.out.println(\"BUSINESS=\" + m_business_word_count);\n\t}", "public void ball_counter()\n {\n ballot_count=0;\n for (HashMap.Entry<String,Ballot> set : allBallots.entrySet())\n {\n ballot_count++;\n }\n }", "private static void setCounter() {++counter;}", "private static void updateCounters() {\n\t\tongoingProjectsLabel.setText(\"Ongoing Projects (\" + portfolio.getOngoingCount() + \")\");\n\t\tfinishedProjectsLabel.setText(\"Finished Projects (\" + portfolio.getFinishedCount() + \")\");\n\t}", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "int getLabelAnnotationsCount();", "int getLabelAnnotationsCount();", "static IterV<String, Integer> counter() {\n return cont(count.f(0));\n }", "public void setDataCounterLabel()\n\t{\n\t\tcurrentDataIndex= table.getCurrentDataIndex();\n\n\t\tnavPanel.setDataCounterLabel();\n\n\t\tfor (TablePanel subTablePanel:\tSubTablePanels.values()) {\n\t\t\ttry {\n\t\t\t\tsubTablePanel.parentIDChanged(table.getCurrentDataID());\n\t\t\t\tsubTablePanel.navPanel.updateControls();\n\t\t\t} catch (Exception e) {\n\t\t\t\tMainUIFrame.setStatusMessage(\"Error Updating data index: \"+e.getMessage());\n\t\t\t\tlogger.error(\"Error Updating data index: \",e);\n\t\t\t}\n\t\t}\n\t}", "public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }", "void incrementCount();", "private void startCounter() {\n\t\tThread t = new Thread(new Runnable(){\n\t\t\t//@Override\n\t\t\tpublic void run() {\n\t\t\t\tInteger counter = 0;\n\t\t\t\tint step = 1;\n\t\t\t\twhile (true) {\n\t\t\t\t\tjLabel3.setText(counter.toString());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t/* Put thread to sleep for 1 sec */\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tcounter = counter + step;\n\t\t\t\t\tif (counter == 0 || counter == 9)\n\t\t\t\t\t\tstep = step * -1;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tt.start();\n\t}", "@Override\npublic String toString() {\nreturn \"\" + counter;\n}", "public void incrementCount() {\n\t\tcount++;\n\t}", "public void incrementCount() {\n count++;\n }", "public void label() {\n\n /**Iterate through all voxels in the specified volume - This should be done\n * once for making sure all voxels become labelled */\n for (int iX = bX; iX < tX; iX++) {\n for (int iY = bY; iY < tY; iY++) {\n for (int iZ = bZ; iZ < tZ; iZ++) {\n\n // Index3D tempIndex3D = new Index3D(iX, iY, iZ);\n\n /**If an unlabelled voxel is found add it onto the stack */\n if (imageMask.isTrue(iX, iY, iZ) && labelledVolume.intValue(iX, iY, iZ) < startingLabel) {\n voxelStack.push(new Index3D(iX, iY, iZ));\n\n /**Continue to recurse through sub-volumes for label voxels\n * until the queue is empty */\n while (!voxelStack.isEmpty()) {\n Index3D center = voxelStack.pop();\n labelRecursive(center, center);\n }\n\n //Increment the label for the next unlabelled component\n currentLabel = currentLabel + 10;\n diffLabels++;\n }\n }\n }\n }\n\n }", "public void incCount() { }", "public void addCount()\n {\n \tcount++;\n }", "static String newLabel() {\n return \"_\" + (nextLabel++);\n }", "public int getLabelRecordCount() {\n\t\treturn front_label_size / record_length;\n\t}", "private String makeLabel(String label)\n {\n \treturn label + \"$\" + Integer.toString(labelCount++);\n }", "private String getTextCount(int conut, String name) {\n for (int i = 0; i < conut; i++) {\r\n name = name + \" \";\r\n }\r\n return name;\r\n }", "public void count() {\n\t\talgae = -1;\n\t\tcrab = -1;\n\t\tbigFish = -1;\n\t\tfor(GameObjects o: objects) {\n\t\t\tswitch(o.toString()) {\n\t\t\tcase \"algae\":\n\t\t\t\talgae +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"crab\":\n\t\t\t\tcrab +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"big fish\":\n\t\t\t\tbigFish +=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }", "@Override\n\tpublic void countChanged(MyCounter paramMyCounter) {\n\n\t\tint numToReturnX = paramMyCounter.count;\n\t\tString newCount = String.valueOf(numToReturnX);\n\n\t\tlabel.setText(newCount);\n\t}", "public void incCounter()\n {\n counter++;\n }", "public Countable(){\n counter++;\n objectName = \"Countable \" + counter;\n// System.out.println(objectName);\n }", "public void drawCounter() {\n\t\tcounterColumn.clear();\n\t\tint currentRowCount = getCounter();\n\t\tfor (int i = 1; i <= currentRowCount; i++) {\n\t\t\tcounterColumn.appendText(String.valueOf(i) + \"\\n\");\n\t\t}\n\t}", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "private void labelNames(){\n VBox holder = labelContainer.get(containerIndex);\n for(int i = 0; i < group.size(); ++i){\n Label s = (Label)holder.getChildren().get(i);\n s.setText(racers.get(group.get(i))[0] + \":\");\n }\n }", "public void incrementCount(){\n count+=1;\n }", "private void setLabelCount(String key, int value) {\r\n if (isXKey(key)) {\r\n mRenderer.setXLabels(value);\r\n } else {\r\n mRenderer.setYLabels(value);\r\n }\r\n }", "public int counter (){\n return currentID;\n }", "@Override\n\tpublic int countIndex() {\n\t\treturn logoMapper.selectCountLogo()+headbannerMapper.selecCountHB()+succefulMapper.selecCountSucc()+solutionMapper.selecCountSolu();\n\t}", "public void incCounter(){\n counter++;\n }", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "@Override\n public void update(LabeledText labeledText){\n super.update(labeledText);\n\n /* FILL IN HERE */\n classCounts[labeledText.label]++;\n for (String ng: labeledText.text.ngrams) { \n \tfor (int h=0;h< nbOfHashes;h++) {\n \t\tcounts[labeledText.label][h][hash(ng,h)]++; \n \t}\n \t//System.out.println(\"Hash: \" + hash(ng) + \" Label : \" + labeledText.label + \" Update: \" + counts[labeledText.label][hash(ng)]);\n }\n \n }", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}", "public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }", "public JLabel getQuestionCounter()\n {\n return questionCounter;\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public int\ngetLabels() {\n\treturn labels;\n}", "private void buildLabelLocs() {\n this.labelLocs = new HashMap<String, Integer>();\n for (int n = 0; n < this.code.size(); n++) {\n TACOp op = this.code.get(n);\n if (op.getType() == TACOpType.LABEL) {\n this.labelLocs.put(op.getLabel(), n);\n }\n }\n }", "void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }", "void getCounter(){// wazifeye in mthod, shomaresh ast.\n selectedCellCounter=0;\n emptyCellCounter=0;\n charCounter=0;\n for(int i=0; i<30;i++)\n for(int j=0; j<26;j++){\n if(jtf[i][j].getText().length()==0)\n ++emptyCellCounter;\n else\n charCounter+=jtf[i][j].getText().length();\n if(jtf[i][j].getBackground()==Color.blue || jtf[i][j].getBackground()==Color.green)\n ++selectedCellCounter;\n }\n }", "public void updateCounts() {\n\n Map<Feel, Integer> counts_of = new HashMap<>();\n\n for (Feel feeling : Feel.values()) {\n counts_of.put(feeling, 0);\n }\n\n for (FeelingRecord record : this.records) {\n counts_of.put(record.getFeeling(), counts_of.get(record.getFeeling()) + 1);\n }\n\n this.angry_count.setText(\"Anger: \" + counts_of.get(Feel.ANGER).toString());\n this.fear_count.setText(\"Fear: \" + counts_of.get(Feel.FEAR).toString());\n this.joyful_count.setText(\"Joy: \" + counts_of.get(Feel.JOY).toString());\n this.love_count.setText(\"Love: \" + counts_of.get(Feel.LOVE).toString());\n this.sad_count.setText(\"Sad:\" + counts_of.get(Feel.SADNESS).toString());\n this.suprise_count.setText(\"Suprise: \" + counts_of.get(Feel.SURPRISE).toString());\n }", "@Override\n\tpublic Map<Label, Integer> getDocumentsCountPerLabel(List<Instance> trainData) {\n\t\t// TODO : Implement\n\t\tint pSize = 0;\n\t\tint nSize = 0;\n\t\tfor(Instance data: trainData) {\n\t\t\tif(data.label.equals(Label.POSITIVE))\n\t\t\t\tpSize++;\n\t\t\telse\n\t\t\t\tnSize++;\n\t\t}\n\t\t\n\t\tdocCount.put(Label.POSITIVE, pSize);\n\t\tdocCount.put(Label.NEGATIVE, nSize);\n\t\treturn docCount;\n\t}", "public String getCounter() {\n counter = Integer.valueOf(counterInt++).toString();\n return counter;\n }", "public void sinkCounterMap(){\n for(int i=1; i<(sinkCounter+1); i++){\n sinkCounterMap.put(i,1); //sink is included in basin count;\n \n }\n }", "int getRepeatCount();", "private void count(int[] counts , int index) {\n\n char color = light[index];\n\n if (color == '0') {\n counts[0]++;\n }\n else if (color == '1') {\n counts[1]++;\n }\n else if (color == '2') {\n counts[2]++;\n }\n else if (color == '3') {\n counts[3]++;\n }\n else if (color == '4') {\n counts[4]++;\n }\n else if (color == '5') {\n counts[5]++;\n }\n else if (color == '6') {\n counts[6]++;\n }\n else if (color == '7') {\n counts[7]++;\n }\n else if (color == '8') {\n counts[8]++;\n }\n else if (color == '9') {\n counts[9]++;\n }\n\n }", "public static int getCounter() {return counter;}", "@Override\n\tpublic void count() {\n\t\t\n\t}", "public BasicCounter() {\n count = 0;\n }", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public int getLoopCount() {\n return this.loopCount;\n }", "public void increaseCount(){\n myCount++;\n }", "public int sizeOfLabels()\r\n {\r\n return this.labels.size();\r\n }", "private void updateCounter(int currentQuestionNumber){\n\t\tString labelText = \"Question: \" + currentQuestionNumber + \" / \" + maxNumQuestions;\n\t\tJLabel label = new JLabel(\"<HTML><div align=\\\"right\\\">\" + labelText + \"</div><HTML>\");\n\t\tlabel.setForeground(Color.BLACK);\n\t\tlabel.setFont(counterFont);\n\t\tlabel.setAlignmentX(Component.RIGHT_ALIGNMENT);\n\t\tint xOrigin = ((questionCounter.getSize().width - label.getPreferredSize().width) / 2);\n\t\tint yOrigin = ((questionCounter.getSize().height - label.getPreferredSize().height) / 2);\n\t\tquestionCounter.removeAll();\n\t\tquestionCounter.addComponent(label, xOrigin, yOrigin);\n\t\tquestionCounter.reDraw();\n\t}", "public void incrementLoopCounter() throws EndTaskException {\n\t\tgoToBeeperStock();\n\t\tpickBeeper();\n\t\tgoToLoopCounter();\n\t\tputBeeper();\n\t}", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "public int getCycles();", "public void counter(MetricCounter<Integer> metric, int value);", "public void increment() {\n\t\tsynchronized (this) {\n\t\t\tCounter.count++;\n\t\t\tSystem.out.print(Counter.count + \" \");\n\t\t}\n\t\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.increment();\n\t\t\t\t}", "public void setLabel()\r\n {\r\n int i = Converter(Input);\r\n \r\n if(j<i && label.getText().equals(\"Player 1\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n \r\n }else if(j<i && label.getText().equals(\"Player 2\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j<i && label.getText().equals(\"Player 3\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j==i && label.getText().equals(\"Player \"+j))\r\n {\r\n j=1;\r\n label.setText(\"Player \"+j);\r\n }\r\n \r\n \r\n }", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "private void determineCounts( )\n {\n for( int r = 0; r < rows; r++ )\n {\n for( int c = 0; c < cols; c++ )\n {\n if( theMines[ r ][ c ] == 1 )\n theCounts[ r ] [ c ] = 9;\n else\n count( r, c );\n }\n }\n }", "private JLabel numberLabel(int i) {\n\t\tJLabel label = new JLabel();\n\t\tlabel.setIcon(Icon.returnIcon(Integer.toString(i)));\n\t\tlabel.setOpaque(true);\n\t\tlabel.setBackground(labelBackground);\n\t\t\n\t\treturn label;\t\n\t}", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "public long getNumInstructions();", "void writeRepetitionCount(int count);", "void incCount() {\n ++refCount;\n }", "public static void main(String[] args) {\n\t\tCounterChild c= new CounterChild();\r\n\t\tfor(String n:c.name)\r\n\t\t{\r\n\t\t\tif(n==\"Rishabh\")\r\n\t\t\t{\r\n\t\t\t\tc.updateCount();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(c.getCount());\r\n\t}", "public myCounter() {\n\t\tcounter = 1;\n\t}", "public int getCounter() {\r\n return counter;\r\n }", "public int getLabel() throws Exception {\t\t\n\t\tint l = 0;\n\t\tfor (int i = 0; i < this.expectedOutputs.length; i ++) {\n\t\t\tif (this.expectedOutputs[i] > this.expectedOutputs[l]) l = i;\n\t\t}\n\t\t\n\t\treturn l;\n\t}", "@Override\n\tpublic int getCounter() {\n\t\treturn counter;\n\t}", "public int size(String label){\n\t\treturn classIndex(label).size();\n\t}", "protected void setCounts(int doWhat){\n\tswitch(doWhat){\n\tcase 0: numPlayers++;\n\t break;\n\tcase 1: numPlayers--;\n\t break;\n\tcase 2: numNPCs++;\n\t break;\n\tcase 3: numNPCs--;\n\t break;\n\tdefault: break;\n\t}\n\t\n\tif (debug) System.out.println(\"# of Players= \" + numPlayers\n\t\t\t\t + \"# of NPCs = \" + numNPCs);\n }", "public int getcounter() {\n\t\treturn counter;\r\n\t}", "manExp15(){ \r\n\r\n\tcount++; \r\n\r\n\tSystem.out.println(count); \r\n\r\n\t}", "public Counter() {\r\n this.count = 0;\r\n }", "public void increment(){\n\t\twordCount += 1;\n\t}", "public JLabel getTotalLabel(){\n\t\treturn this.totalLabel;\n\t}", "public ClickCounter() {\n System.out.println(\"Click constructor: \" + count);\n \n }", "public final int getNumberOfLabels() {\n return this.labels.length;\n }", "public Label(String n, boolean shouldEnumerate) {\n name = n;\n if (shouldEnumerate) {\n name += (count++);\n }\n }", "public int numberOfOccorrence();", "public void setCounter(int counter) {\n this.counter = counter;\n }", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}" ]
[ "0.70403826", "0.70403826", "0.70403826", "0.70403826", "0.64960057", "0.63587475", "0.6318133", "0.62979233", "0.6265745", "0.62566066", "0.6203827", "0.6180267", "0.6139535", "0.60951155", "0.6088244", "0.60775447", "0.60775447", "0.6058147", "0.60503817", "0.60341156", "0.6027607", "0.6015549", "0.600043", "0.5993262", "0.59912175", "0.597872", "0.59468997", "0.5946536", "0.5946412", "0.59426695", "0.59407055", "0.59218204", "0.5899303", "0.5891987", "0.5890235", "0.5856596", "0.5847175", "0.5841294", "0.5838954", "0.5838502", "0.5825871", "0.5796568", "0.5788207", "0.57789624", "0.57629186", "0.575477", "0.57470304", "0.57359064", "0.57240623", "0.5711445", "0.57063794", "0.5700989", "0.5680831", "0.5674629", "0.56646043", "0.56634754", "0.5658509", "0.56568885", "0.5642539", "0.5635631", "0.56325656", "0.56069165", "0.55977917", "0.55815333", "0.55778337", "0.55753237", "0.55677366", "0.55658615", "0.5563663", "0.55456096", "0.5545334", "0.5541025", "0.55324185", "0.5527151", "0.5524864", "0.55242586", "0.55090064", "0.5499407", "0.5497222", "0.54897654", "0.54866683", "0.5483477", "0.54807496", "0.5478706", "0.5460304", "0.54575425", "0.5454263", "0.54533875", "0.54524785", "0.5447911", "0.54436475", "0.54421574", "0.54343253", "0.5423916", "0.5421971", "0.54198045", "0.5419637", "0.5415209", "0.540675", "0.539251", "0.5389867" ]
0.0
-1
Returns the parameters available for a function
private static List<String> loadParams(Type.FunctionOrMethod function){ int numParams = function.params().size(); List<String >params = new ArrayList<String>(); //Params are numbered in order, so just put in the variable names for (int i = 0; i < numParams; i++){ params.add(String.format("$%d", i)); } return params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map getFuncParams() {\r\n\t\treturn funcParams;\r\n\t}", "public FunctionParameters getFunctionParameters() {\n return (FunctionParameters) get(FUNCTION_PARAMETERS_NAME);\n }", "public Parameters getParameters();", "@Override\n public FunctionParameters getParameters() {\n return _parameters;\n }", "ParameterList getParameters();", "public Variable[] getParameters();", "public Map getParameters();", "String [] getParameters();", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "IParameterCollection getParameters();", "Map<String, String> getParameters();", "public void getParameters(Parameters parameters) {\n\n }", "public LinkedHashMap<String, FunctionParameter> inputParameters(){\n return new LinkedHashMap<String, FunctionParameter>();\n }", "@Override\n public List<KParameter> getParameters() {\n return getReflected().getParameters();\n }", "public String getParamDefs() {\n return super.getParamDefs() + \", \" + PlainValueFunction.paramNameTypes;\n }", "@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }", "Nary<ExecutableParameter> parameters();", "String extractParameters ();", "@Override\n\tpublic ParameterSet requiredParameters()\n\t{\n\t\t// Parameter p0 = new\n\t\t// Parameter(\"Dummy Parameter\",\"Lets user know that the function has been selected.\",FormLine.DROPDOWN,new\n\t\t// String[] {\"true\"},0);\n\t\tParameter p0 = getNumThreadsParameter(10, 4);\n\t\tParameter p1 = new Parameter(\"Old Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p2 = new Parameter(\"Old Max\", \"Image Intensity Value\", \"4095.0\");\n\t\tParameter p3 = new Parameter(\"New Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p4 = new Parameter(\"New Max\", \"Image Intensity Value\", \"65535.0\");\n\t\tParameter p5 = new Parameter(\"Gamma\", \"0.1-5.0, value of 1 results in no change\", \"1.0\");\n\t\tParameter p6 = new Parameter(\"Output Bit Depth\", \"Depth of the outputted image\", Parameter.DROPDOWN, new String[] { \"8\", \"16\", \"32\" }, 1);\n\t\t\n\t\t// Make an array of the parameters and return it\n\t\tParameterSet parameterArray = new ParameterSet();\n\t\tparameterArray.addParameter(p0);\n\t\tparameterArray.addParameter(p1);\n\t\tparameterArray.addParameter(p2);\n\t\tparameterArray.addParameter(p3);\n\t\tparameterArray.addParameter(p4);\n\t\tparameterArray.addParameter(p5);\n\t\tparameterArray.addParameter(p6);\n\t\treturn parameterArray;\n\t}", "public void getParameters(Parameters parameters) {\n\n\t}", "FormalParameterProvider getFormalParameters();", "@TestMethod(value=\"testGetParameterNames\")\n public String[] getParameterNames() {\n \tString[] params = new String[3];\n params[0] = \"maxIterations\";\n params[1] = \"lpeChecker\";\n params[2] = \"maxResonStruc\";\n return params;\n }", "public List<IParam> getParams();", "public List<IParam> getParams();", "private void findParameters(InstructionContext ins)\n\t{\n\t\tif (!(ins.getInstruction() instanceof InvokeInstruction))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tList<Method> methods = ((InvokeInstruction) ins.getInstruction()).getMethods();\n\t\tif (methods.isEmpty())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tfindConstantParameter(methods, ins);\n\t}", "public ITypeInfo[] getParameters();", "public String[] getParameters() {\r\n return scope != null? scope.getParameters() : null;\r\n }", "public ParameterList getAdjustableParams();", "public Map<String, Parameter<?>> getParameterInfo(Name name) {\n Method method = method(name.getLocalPart());\n Map<String, Parameter<?>> input = new LinkedHashMap<String, Parameter<?>>();\n Annotation[][] params = method.getParameterAnnotations();\n Class<?>[] paramTypes = method.getParameterTypes();\n for (int i = 0; i < paramTypes.length; i++) {\n if (!(ProgressListener.class.isAssignableFrom(paramTypes[i]))) {\n Parameter<?> param = paramInfo(method.getDeclaringClass(), i, paramTypes[i], params[i]);\n input.put(param.key, param);\n }\n }\n return input;\n }", "List<PowreedCommandParameter> getParameters();", "ActionParameterTypes getFormalParameterTypes();", "@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[1];\n params[0] = maxIterations;\n return params;\n }", "INDArray getParams();", "public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}", "public Map<String, Expression> getParameters() {\r\n \t\treturn parameters;\r\n \t}", "int getNumParameters();", "public Parameter[] getParameters()\r\n {\r\n return m_params;\r\n }", "boolean hasParameters();", "public abstract ImmutableMap<String, ParamInfo> getParamInfos();", "private void listParameters(String methodName, JavaSamplerContext context) {\n\t\tIterator<String> iter = context.getParameterNamesIterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tString name = iter.next();\n\t\t\tlog.debug(\"inside {}, name {} = {}\",\n\t\t\t\t\tnew Object[] { methodName, name, context.getParameter(name) });\n\t\t}\n\t}", "public Iterator getParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameters() \");\n Via via=(Via)sipHeader;\n \n Iterator iterator= via.getParameters(); \n if ( iterator==null) return null;\n if ( iterator.hasNext() ) return iterator;\n else return null; \n }", "java.util.List<gen.grpc.hospital.examinations.Parameter> \n getParameterList();", "public Parameters getParameters() {\r\n return params;\r\n }", "public Map getParameters()\n\t{\n\t\tMap returnValue = null;\n\n\t\tif (params == null)\n\t\t{\n\t\t\treturnValue = new HashMap();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = params;\n\t\t}\n\n\t\treturn returnValue;\n\t}", "public String[] getParameters() {\r\n return parameters;\r\n }", "String getExampleParameters();", "@Override\n public Parameters getParams() {\n return parameters;\n }", "int getParametersCount();", "int getParametersCount();", "public Collection<String> getParamNames();", "private void listParameters(JavaSamplerContext context)\n {\n if (getLogger().isDebugEnabled())\n {\n Iterator argsIt = context.getParameterNamesIterator();\n while (argsIt.hasNext())\n {\n String name = (String) argsIt.next();\n getLogger().debug(name + \"=\" + context.getParameter(name));\n }\n }\n }", "public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }", "public String[] getParameters() {\n\t\treturn parameters;\n\t}", "@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}", "public String[] getParameters() {\n return parameters;\n }", "@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.LoadParameter[] getParameterNameValuePairs();", "public int[] getParams()\n\t{\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}", "public Parameter[] getParameters() {\n return values;\n }", "@Override\n public String getParameters() {\n return parameters;\n }", "java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();", "public List<ParameterDefinition> getParameterList() {\n if (this.telemetryName != null) {\n TelemetryChartDefinition teleDef = \n this.getTelemetrys().get(telemetryName);\n if (teleDef == null) {\n TelemetryClient client = ProjectBrowserSession.get().getTelemetryClient();\n try {\n teleDef = client.getChartDefinition(this.telemetryName);\n this.getTelemetrys().put(telemetryName, teleDef);\n return teleDef.getParameterDefinition();\n }\n catch (TelemetryClientException e) {\n this.feedback = \"Exception when retrieving Telemetry chart definition: \" + e.getMessage();\n }\n }\n else {\n return teleDef.getParameterDefinition();\n }\n }\n return new ArrayList<ParameterDefinition>();\n }", "int getParamsCount();", "Iterable<ActionParameterTypes> getParameterTypeAlternatives();", "public int getNumberParameters() { return parameters.length; }", "public boolean isParameterProvided();", "java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();", "public LinkedHashMap<String, FunctionParameter> outputParameters(){\n return new LinkedHashMap<String, FunctionParameter>();\n }", "public List<Parameter> getParameter( )\n {\n return _parameter;\n }", "int getParameterCount();", "public String[] getParamTypeNames()\n/* */ {\n/* 353 */ return this.parameterTypeNames;\n/* */ }", "@TestMethod(value=\"testGetParameterNames\")\n public String[] getParameterNames() {\n String[] params = new String[1];\n params[0] = \"maxIterations\";\n return params;\n }", "public ParameterList getParameters() {\n\t\treturn _parameters;\n\t}", "public String[] getParameterNames() {\r\n return parameterNames;\r\n }", "public Parameters getParameters() {\n Parameters p = new Parameters();\n String s = native_getParameters();\n Log.e(TAG, \"_getParameters: \" + s);\n p.unflatten(s);\n return p;\n }", "Collection<Parameter> getTypedParameters();", "public Parameters getParameters() {\n \treturn parameters;\n }", "public List<ModuleArgumentItem> getParams() {\n return params;\n }", "public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}", "List<InferredStandardParameter> getOriginalParameterTypes();", "public CParam[] getParameters() {\r\n\t\treturn parameters.toArray(new CParamImpl[parameters.size()]);\r\n\t}", "com.google.protobuf.ByteString getParams();", "Map<ActionParameterTypes, List<InferredStandardParameter>> getInferredParameterTypes();", "public Collection<SPParameter> getParameters(){\n return mapOfParameters.values();\n }", "@Override\n public List<ParameterAssignment> getParameters()\n {\n return parameters;\n }", "public Map getParams() {\n\t\treturn _params;\n\t}", "public List<Parameter> parameters() {\n if (_params != null && !_params.isEmpty()) {\n return new ArrayList<Parameter>(_params.values());\n }\n return null;\n }", "@Override\n\t\tpublic Enumeration getParameterNames() {\n\t\t\treturn null;\n\t\t}", "public Object[] getParameters() {\n \t// return the parameters as used for the rule validation\n Object[] params = new Object[1];\n params[0] = charge;\n return params;\n }", "String getArguments();", "Parameter getParameter();", "@Parameters\n public static Collection<Object[]> testParameters() {\n Collection<Object[]> params = new ArrayList<Object[]>();\n\n for (OPT opt: OPT.values()) {\n Object[] par = new Object[2];\n par[0] = opt;\n par[1] = opt.name();\n\n params.add( par );\n }\n\n return params;\n }", "public String[] getParameters(String signature) {\n StringBuilder sb = new StringBuilder();\n String[] tokens = (signature.split(\"\\\\s\"));\n for (int i = 1; i < tokens.length; i++)\n sb.append(tokens[i]);\n String fullParamString = sb.toString().substring(sb.indexOf(\"(\") + 1, sb.indexOf(\")\"));\n String[] params = getParams(fullParamString);\n return params;\n }", "@NonNull\n public Map<String, Object> getParameters() {\n return parameters;\n }", "public List<ConstraintParameter> getParameters() {\n\t\t// TODO send out a copy..not the reference to our actual data\n\t\treturn m_parameters;\n\t}", "public Set<Parameter> getSearchedParameters() {\n\t\treturn new HashSet<Parameter>(parameterEntries.keySet());\n\t}", "@DISPID(1610940429) //= 0x6005000d. The runtime will prefer the VTID if present\n @VTID(35)\n Parameters parameters();", "public DataType[] getParameters() {\n return parameters;\n }" ]
[ "0.72511053", "0.7221615", "0.7178857", "0.717343", "0.71161014", "0.7060542", "0.7014588", "0.68261343", "0.67072785", "0.67072785", "0.6700454", "0.66924405", "0.6685695", "0.6608028", "0.64928484", "0.6483376", "0.6479077", "0.64328897", "0.6405189", "0.63780105", "0.63377416", "0.6330044", "0.630416", "0.6303215", "0.6303215", "0.6297951", "0.62895966", "0.6248875", "0.6239301", "0.62267494", "0.6185862", "0.61812776", "0.6179329", "0.6142044", "0.6141372", "0.61404896", "0.61074835", "0.60898316", "0.60676944", "0.6066077", "0.60635006", "0.6056658", "0.6055037", "0.60396665", "0.6033134", "0.6031102", "0.60245484", "0.6022661", "0.60211813", "0.60211813", "0.5997423", "0.5996086", "0.59779125", "0.59669745", "0.5951066", "0.5947909", "0.5946379", "0.59452796", "0.59235346", "0.5917424", "0.5908632", "0.5903881", "0.5903829", "0.59021264", "0.5881249", "0.5872455", "0.58633214", "0.58605605", "0.5858577", "0.5854526", "0.5837546", "0.5833341", "0.582594", "0.5825833", "0.5812641", "0.58047456", "0.57994145", "0.57911015", "0.5776465", "0.57702374", "0.5767419", "0.57627255", "0.5762179", "0.5760594", "0.5760499", "0.57551295", "0.57551146", "0.5746833", "0.5740925", "0.57351327", "0.5732199", "0.5726751", "0.5726136", "0.5726118", "0.57196575", "0.5717116", "0.570747", "0.5704271", "0.57033813", "0.5693646" ]
0.71137345
5
set view height using data binding
@BindingAdapter({"layout_height"}) public static void setHeight(View view, int height) { view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeight(int height);", "public void setHeight(int height);", "public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);", "public void setHeight(int newValue)\n {\n height = newValue;\n }", "public void setHeight(int value) {\n this.height = value;\n }", "void setHeight(int height);", "void setHeight(int height);", "void setHeight(VariableAmount height);", "public void setHeight(int h)\n {\n height = h;\n }", "public void setPrefHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getPrefHeight()) return;\n firePropertyChange(\"PrefHeight\", put(\"PrefHeight\", h), h, -1);\n}", "public void setHeight(double value) {\n this.height = value;\n }", "@Override\n protected void setHeight(Context context, Integer heightInDp) {\n }", "public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }", "public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }", "public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }", "public void setHeight(int l){\n \theight = l;\n }", "public void setHeight(int h) {\n this.H = h;\n }", "public abstract int layoutHeight();", "@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}", "private void setHeight(float height){\n this.height = height;\n }", "public void setHeight(double height){\n h=height;\r\n }", "public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}", "public void setHeight(int height) {\r\n this.height = height;\r\n }", "@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }", "@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}", "private void setRecyclerViewHeight() {\n\n if (isCalculateRVHeight||myRV == null) return;\n\n isCalculateRVHeight = true;\n\n// Get ItemView height\n RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) myItemView.getLayoutParams();\n// Get ItemView num\n int itemCount = getItemCount();\n int recyclerViewHeight = layoutParams.height*itemCount;\n// Set recyclerView height\n LinearLayout.LayoutParams recyclerViewLayoutParams = (LinearLayout.LayoutParams) myRV.getLayoutParams();\n recyclerViewLayoutParams.height = recyclerViewHeight;\n myRV.setLayoutParams(recyclerViewLayoutParams);\n }", "public void setHeight(double aValue)\n{\n if(_height==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Height\", _height, _height = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}", "public void setHeight(double height) {\r\n this.height = height;\r\n }", "public void setHeight(double height) {\n this.height = height;\n }", "private void initializeView() {\n mBinding = DataBindingUtil.setContentView(this, R.layout.activity_product_details);\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n mBinding.vPPdpProductImages.getLayoutParams().height = displayMetrics.widthPixels;\n mBinding.vPPdpProductImages.requestFocus();\n }", "public S<T> heightDp(int height){\n\t\t((View)t).getLayoutParams().height = (int) pxToDp(height);\n\t\treturn this;\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(int height) {\n this.height = height;\n }", "@Override\n\tpublic void setHeight(float height) {\n\n\t}", "void setFitHeight(short height);", "public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;", "@Override\n\tpublic double getRenderHeight() {\n\t\treturn height;\n\t}", "public S<T> height(int height){\n\t\t((View)t).getLayoutParams().height = height;\n\t\treturn this;\n\t}", "public void setHeight(double height) {\n this.height = height;\n }", "public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }", "double getNewHeight();", "public void setHeight(final String value)\n {\n height = value;\n }", "private int viewHeight(View view) {\n view.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);\n return view.getMeasuredHeight();\n }", "private void binding(){\n\t\trectangle1.widthProperty().bind(employeer.widthProperty().subtract(10));\n\t\trectangle1.heightProperty().bind(employeer.heightProperty().subtract(10));\n\t\t\n\t\trectangle2.widthProperty().bind(hbox.widthProperty());\n\t\t\n\t\tuserNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t\tuserLastNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t}", "public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }", "public int getCurrentHeight();", "public void setHeight(int newValue) {\n seatHeight = newValue;\n }", "public Builder setHeight(long value) {\n copyOnWrite();\n instance.setHeight(value);\n return this;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\r\n public void changeSocialWindowHeight(int newHeight) {\r\n\r\n ViewGroup.LayoutParams layoutParams = unifiedSocialWindowView.getLayoutParams();\r\n layoutParams.height = newHeight;\r\n unifiedSocialWindowView.setLayoutParams(layoutParams);\r\n }", "public void setHeight(int newHeight) {\n roomHeight = newHeight;\n }", "@Override\r\n public int getHeight() {\r\n if(mBaseView != null)\r\n return mBaseView.getHeight();\r\n else\r\n return 0;\r\n }", "default void setHeight(int height) {\n setHeight(VariableAmount.fixed(height));\n }", "public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}", "public void setItemHeight(int height) {\n if (height == mItemHeight) {\n return;\n }\n// mItemHeight = height;\n// mImageViewLayoutParams = new RelativeLayout.LayoutParams(\n// ViewGroup.LayoutParams.MATCH_PARENT, mItemHeight);\n notifyDataSetChanged();\n }", "@Override\r\n public void setHeight(String height) {\n }", "@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}", "public void setViewPortHeight(double viewPortHeight) {\n this.viewPortHeight = viewPortHeight;\n }", "public int Height(){\r\n return height;\r\n }", "public int getHeight() {return height;}", "private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }", "public int getPanelHeight() {\n return height;\n }", "public int getHeight() { return height; }", "public void setHeight( int height ) {\n\t\t_height = height;\n\t}", "public void setCurrentHeight(final int currentHeight);", "public abstract Builder setOutputHeight(int value);", "@Override\n public int getHeight() {\n return this.height;\n }", "public final int getHeight(){\n return height_;\n }", "Builder height(VariableAmount height);", "private void refreshHeight() {\n\t\tint lines = Math.min(maxLineCount, Math.max(minLineCount, text\n\t\t\t\t.getLineCount()));\n\t\tint newHeight = lines * text.getLineHeight();\n\n\t\tGridData data = (GridData) text.getLayoutData();\n\t\tif (data.heightHint != newHeight) {\n\t\t\tdata.heightHint = newHeight;\n\t\t\tlayout();\n\t\t}\n\t}", "public void setHeight(int height) {\n\tthis.height = height;\n\tcalculateHeightRatio();\n }", "private int getViewableHeight() {\r\n\t\treturn MAX_CELL_COUNT * CELL_SIZE_Y;\r\n\t}", "double getOldHeight();", "@DISPID(-2147417101)\n @PropGet\n int offsetHeight();", "@Override\n\t\tpublic void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {\n\t\t\t\n\t\t\tif (isExpanded ()) {\n\t\t\t\t\n\t\t\t\t// Calculate entire height by providing a very large height hint.\n\t\t\t\t// View.MEASURED_SIZE_MASK represents the largest height possible.\n\t\t\t\t\n\t\t\t\tint expandSpec = MeasureSpec.makeMeasureSpec (/*MEASURED_SIZE_MASK*/ 0x00ffffff, MeasureSpec.AT_MOST); // SUPPORT 11\n\t\t\t\t\n\t\t\t\tsuper.onMeasure (widthMeasureSpec, expandSpec);\n\t\t\t\t\n\t\t\t\tViewGroup.LayoutParams params = getLayoutParams ();\n\t\t\t\tparams.height = getMeasuredHeight ();\n\t\t\t\t\n\t\t\t} else super.onMeasure (widthMeasureSpec, heightMeasureSpec);\n\t\t\t\n\t\t}", "public static int getViewHeight(@NonNull View view) {\n view.measure(\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));\n return view.getMeasuredHeight();\n }", "@java.lang.Override\n public long getHeight() {\n return height_;\n }", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public abstract int getDisplayHeight();", "public int getHeight() {\n return (int) (this.height * ViewHandlerImpl.getScaleModifier());\n }", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public int getHeight(){\n return height;\n }", "public int getHeight(){\n return this.height;\n }", "public void setHeight(double height) {\n\t\t this.height = height;\n\t }", "private void syncPinnedHeight() {\n pinnedView.setMinHeight(MIN_PINNED_LANE_HEIGHT);\n pinnedView.setMaxHeight(pinnedLane.maxVScrollProperty().get() + 30);\n }", "public int getHeight()\n {return height;}", "private void updateMapViewHeight() {\n\t\tint screenHeight = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getHeight();\n\n\t\tint coordinatesContainerHeight = 0;\n\t\tif (mEditMode) {\n\t\t\tmDiveSiteCoordinatesEditContainer.measure(MeasureSpec.UNSPECIFIED,\n\t\t\t\t\tMeasureSpec.UNSPECIFIED);\n\t\t\tcoordinatesContainerHeight = mDiveSiteCoordinatesEditContainer\n\t\t\t\t\t.getMeasuredHeight();\n\t\t}\n\n\t\tmMapView.getLayoutParams().height = screenHeight - getTitleBarHeight()\n\t\t\t\t- getStatusBarHeight() - coordinatesContainerHeight\n\t\t\t\t- MAPVIEW_HEIGHT_BUFFER;\n\t}", "public void SetHeightWidth(View view, double width, double height) {\n try {\n if (width == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.height = (int) ((appsingleton.deviceheight) * height);\n } else if (height == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * height);\n } else {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * width);\n params.height = (int) ((appsingleton.deviceheight) * height);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic int getHeight() {\n\t\treturn delegate.getHeight();\n\t}", "public void recomputeHeight() {\n setVisibility(View.GONE);\n setupAnimators();\n }", "public int getHeight(){\n \treturn height;\n }", "public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }", "private void setHeightInCollapse()\n {\n ViewGroup.LayoutParams icom=incompleteRv.getLayoutParams();\n icom.height=0;\n incompleteRv.setLayoutParams(icom);\n\n ViewGroup.LayoutParams actual=movieRecyclerView.getLayoutParams();\n actual.height = actual.MATCH_PARENT;\n movieRecyclerView.setLayoutParams(actual);\n }", "public void setHeight(Short height) {\r\n this.height = height;\r\n }" ]
[ "0.6855721", "0.6855721", "0.6787676", "0.67456216", "0.6712472", "0.6679681", "0.6679681", "0.66473216", "0.6638206", "0.6517029", "0.65069485", "0.64486724", "0.64385307", "0.6400112", "0.6380439", "0.6373592", "0.63616127", "0.6341751", "0.6288713", "0.62751323", "0.62620765", "0.62578255", "0.6250225", "0.62243646", "0.6219744", "0.62086385", "0.62003857", "0.6186025", "0.6172562", "0.6163658", "0.61583185", "0.6151856", "0.61466837", "0.6146309", "0.6146309", "0.6133378", "0.61196417", "0.6112754", "0.609449", "0.6094367", "0.6077432", "0.6073558", "0.60699314", "0.60534793", "0.60419834", "0.60120094", "0.6005791", "0.59996814", "0.599282", "0.598032", "0.59678996", "0.59678996", "0.59660023", "0.5963035", "0.596289", "0.5958871", "0.59526974", "0.5951647", "0.5941602", "0.5934547", "0.59272605", "0.591251", "0.59043425", "0.5903167", "0.58969617", "0.58853805", "0.58736813", "0.5873499", "0.5870026", "0.5866303", "0.5866064", "0.5857654", "0.58560663", "0.58545995", "0.58288395", "0.5828423", "0.5807943", "0.5805248", "0.58052474", "0.58019525", "0.58005947", "0.58005947", "0.58005947", "0.5797373", "0.5785509", "0.57834667", "0.57834667", "0.5781311", "0.57804585", "0.5778128", "0.5775912", "0.5775757", "0.57646936", "0.5763029", "0.5762805", "0.57534534", "0.5751197", "0.5749558", "0.5748498", "0.57385266" ]
0.7579133
0
set view height using data binding
@BindingAdapter({"layout_width"}) public static void setWidth(View view, int width) { view.getLayoutParams().width = Math.round(width * view.getContext().getResources().getDisplayMetrics().density); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BindingAdapter({\"layout_height\"})\n public static void setHeight(View view, int height) {\n view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density);\n }", "public void setHeight(int height);", "public void setHeight(int height);", "public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);", "public void setHeight(int newValue)\n {\n height = newValue;\n }", "public void setHeight(int value) {\n this.height = value;\n }", "void setHeight(int height);", "void setHeight(int height);", "void setHeight(VariableAmount height);", "public void setHeight(int h)\n {\n height = h;\n }", "public void setPrefHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getPrefHeight()) return;\n firePropertyChange(\"PrefHeight\", put(\"PrefHeight\", h), h, -1);\n}", "public void setHeight(double value) {\n this.height = value;\n }", "@Override\n protected void setHeight(Context context, Integer heightInDp) {\n }", "public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }", "public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }", "public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }", "public void setHeight(int l){\n \theight = l;\n }", "public void setHeight(int h) {\n this.H = h;\n }", "public abstract int layoutHeight();", "@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}", "private void setHeight(float height){\n this.height = height;\n }", "public void setHeight(double height){\n h=height;\r\n }", "public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}", "public void setHeight(int height) {\r\n this.height = height;\r\n }", "@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }", "@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}", "private void setRecyclerViewHeight() {\n\n if (isCalculateRVHeight||myRV == null) return;\n\n isCalculateRVHeight = true;\n\n// Get ItemView height\n RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) myItemView.getLayoutParams();\n// Get ItemView num\n int itemCount = getItemCount();\n int recyclerViewHeight = layoutParams.height*itemCount;\n// Set recyclerView height\n LinearLayout.LayoutParams recyclerViewLayoutParams = (LinearLayout.LayoutParams) myRV.getLayoutParams();\n recyclerViewLayoutParams.height = recyclerViewHeight;\n myRV.setLayoutParams(recyclerViewLayoutParams);\n }", "public void setHeight(double aValue)\n{\n if(_height==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Height\", _height, _height = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}", "public void setHeight(double height) {\r\n this.height = height;\r\n }", "public void setHeight(double height) {\n this.height = height;\n }", "private void initializeView() {\n mBinding = DataBindingUtil.setContentView(this, R.layout.activity_product_details);\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n mBinding.vPPdpProductImages.getLayoutParams().height = displayMetrics.widthPixels;\n mBinding.vPPdpProductImages.requestFocus();\n }", "public S<T> heightDp(int height){\n\t\t((View)t).getLayoutParams().height = (int) pxToDp(height);\n\t\treturn this;\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(int height) {\n this.height = height;\n }", "@Override\n\tpublic void setHeight(float height) {\n\n\t}", "void setFitHeight(short height);", "public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;", "@Override\n\tpublic double getRenderHeight() {\n\t\treturn height;\n\t}", "public S<T> height(int height){\n\t\t((View)t).getLayoutParams().height = height;\n\t\treturn this;\n\t}", "public void setHeight(double height) {\n this.height = height;\n }", "public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }", "double getNewHeight();", "public void setHeight(final String value)\n {\n height = value;\n }", "private int viewHeight(View view) {\n view.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);\n return view.getMeasuredHeight();\n }", "private void binding(){\n\t\trectangle1.widthProperty().bind(employeer.widthProperty().subtract(10));\n\t\trectangle1.heightProperty().bind(employeer.heightProperty().subtract(10));\n\t\t\n\t\trectangle2.widthProperty().bind(hbox.widthProperty());\n\t\t\n\t\tuserNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t\tuserLastNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t}", "public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }", "public int getCurrentHeight();", "public void setHeight(int newValue) {\n seatHeight = newValue;\n }", "public Builder setHeight(long value) {\n copyOnWrite();\n instance.setHeight(value);\n return this;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\r\n public void changeSocialWindowHeight(int newHeight) {\r\n\r\n ViewGroup.LayoutParams layoutParams = unifiedSocialWindowView.getLayoutParams();\r\n layoutParams.height = newHeight;\r\n unifiedSocialWindowView.setLayoutParams(layoutParams);\r\n }", "public void setHeight(int newHeight) {\n roomHeight = newHeight;\n }", "@Override\r\n public int getHeight() {\r\n if(mBaseView != null)\r\n return mBaseView.getHeight();\r\n else\r\n return 0;\r\n }", "default void setHeight(int height) {\n setHeight(VariableAmount.fixed(height));\n }", "public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}", "public void setItemHeight(int height) {\n if (height == mItemHeight) {\n return;\n }\n// mItemHeight = height;\n// mImageViewLayoutParams = new RelativeLayout.LayoutParams(\n// ViewGroup.LayoutParams.MATCH_PARENT, mItemHeight);\n notifyDataSetChanged();\n }", "@Override\r\n public void setHeight(String height) {\n }", "@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}", "public void setViewPortHeight(double viewPortHeight) {\n this.viewPortHeight = viewPortHeight;\n }", "public int Height(){\r\n return height;\r\n }", "public int getHeight() {return height;}", "private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }", "public int getPanelHeight() {\n return height;\n }", "public int getHeight() { return height; }", "public void setHeight( int height ) {\n\t\t_height = height;\n\t}", "public void setCurrentHeight(final int currentHeight);", "public abstract Builder setOutputHeight(int value);", "@Override\n public int getHeight() {\n return this.height;\n }", "public final int getHeight(){\n return height_;\n }", "Builder height(VariableAmount height);", "private void refreshHeight() {\n\t\tint lines = Math.min(maxLineCount, Math.max(minLineCount, text\n\t\t\t\t.getLineCount()));\n\t\tint newHeight = lines * text.getLineHeight();\n\n\t\tGridData data = (GridData) text.getLayoutData();\n\t\tif (data.heightHint != newHeight) {\n\t\t\tdata.heightHint = newHeight;\n\t\t\tlayout();\n\t\t}\n\t}", "public void setHeight(int height) {\n\tthis.height = height;\n\tcalculateHeightRatio();\n }", "private int getViewableHeight() {\r\n\t\treturn MAX_CELL_COUNT * CELL_SIZE_Y;\r\n\t}", "double getOldHeight();", "@DISPID(-2147417101)\n @PropGet\n int offsetHeight();", "@Override\n\t\tpublic void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {\n\t\t\t\n\t\t\tif (isExpanded ()) {\n\t\t\t\t\n\t\t\t\t// Calculate entire height by providing a very large height hint.\n\t\t\t\t// View.MEASURED_SIZE_MASK represents the largest height possible.\n\t\t\t\t\n\t\t\t\tint expandSpec = MeasureSpec.makeMeasureSpec (/*MEASURED_SIZE_MASK*/ 0x00ffffff, MeasureSpec.AT_MOST); // SUPPORT 11\n\t\t\t\t\n\t\t\t\tsuper.onMeasure (widthMeasureSpec, expandSpec);\n\t\t\t\t\n\t\t\t\tViewGroup.LayoutParams params = getLayoutParams ();\n\t\t\t\tparams.height = getMeasuredHeight ();\n\t\t\t\t\n\t\t\t} else super.onMeasure (widthMeasureSpec, heightMeasureSpec);\n\t\t\t\n\t\t}", "public static int getViewHeight(@NonNull View view) {\n view.measure(\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));\n return view.getMeasuredHeight();\n }", "@java.lang.Override\n public long getHeight() {\n return height_;\n }", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public abstract int getDisplayHeight();", "public int getHeight() {\n return (int) (this.height * ViewHandlerImpl.getScaleModifier());\n }", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public int getHeight(){\n return height;\n }", "public int getHeight(){\n return this.height;\n }", "public void setHeight(double height) {\n\t\t this.height = height;\n\t }", "private void syncPinnedHeight() {\n pinnedView.setMinHeight(MIN_PINNED_LANE_HEIGHT);\n pinnedView.setMaxHeight(pinnedLane.maxVScrollProperty().get() + 30);\n }", "public int getHeight()\n {return height;}", "private void updateMapViewHeight() {\n\t\tint screenHeight = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getHeight();\n\n\t\tint coordinatesContainerHeight = 0;\n\t\tif (mEditMode) {\n\t\t\tmDiveSiteCoordinatesEditContainer.measure(MeasureSpec.UNSPECIFIED,\n\t\t\t\t\tMeasureSpec.UNSPECIFIED);\n\t\t\tcoordinatesContainerHeight = mDiveSiteCoordinatesEditContainer\n\t\t\t\t\t.getMeasuredHeight();\n\t\t}\n\n\t\tmMapView.getLayoutParams().height = screenHeight - getTitleBarHeight()\n\t\t\t\t- getStatusBarHeight() - coordinatesContainerHeight\n\t\t\t\t- MAPVIEW_HEIGHT_BUFFER;\n\t}", "public void SetHeightWidth(View view, double width, double height) {\n try {\n if (width == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.height = (int) ((appsingleton.deviceheight) * height);\n } else if (height == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * height);\n } else {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * width);\n params.height = (int) ((appsingleton.deviceheight) * height);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic int getHeight() {\n\t\treturn delegate.getHeight();\n\t}", "public void recomputeHeight() {\n setVisibility(View.GONE);\n setupAnimators();\n }", "public int getHeight(){\n \treturn height;\n }", "public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }", "private void setHeightInCollapse()\n {\n ViewGroup.LayoutParams icom=incompleteRv.getLayoutParams();\n icom.height=0;\n incompleteRv.setLayoutParams(icom);\n\n ViewGroup.LayoutParams actual=movieRecyclerView.getLayoutParams();\n actual.height = actual.MATCH_PARENT;\n movieRecyclerView.setLayoutParams(actual);\n }", "public void setHeight(Short height) {\r\n this.height = height;\r\n }" ]
[ "0.7579133", "0.6855721", "0.6855721", "0.6787676", "0.67456216", "0.6712472", "0.6679681", "0.6679681", "0.66473216", "0.6638206", "0.6517029", "0.65069485", "0.64486724", "0.64385307", "0.6400112", "0.6380439", "0.6373592", "0.63616127", "0.6341751", "0.6288713", "0.62751323", "0.62620765", "0.62578255", "0.6250225", "0.62243646", "0.6219744", "0.62086385", "0.62003857", "0.6186025", "0.6172562", "0.6163658", "0.61583185", "0.6151856", "0.61466837", "0.6146309", "0.6146309", "0.6133378", "0.61196417", "0.6112754", "0.609449", "0.6094367", "0.6077432", "0.6073558", "0.60699314", "0.60534793", "0.60419834", "0.60120094", "0.6005791", "0.59996814", "0.599282", "0.598032", "0.59678996", "0.59678996", "0.59660023", "0.5963035", "0.596289", "0.5958871", "0.59526974", "0.5951647", "0.5941602", "0.5934547", "0.59272605", "0.591251", "0.59043425", "0.5903167", "0.58969617", "0.58853805", "0.58736813", "0.5873499", "0.5870026", "0.5866303", "0.5866064", "0.5857654", "0.58560663", "0.58545995", "0.58288395", "0.5828423", "0.5807943", "0.5805248", "0.58052474", "0.58019525", "0.58005947", "0.58005947", "0.58005947", "0.5797373", "0.5785509", "0.57834667", "0.57834667", "0.5781311", "0.57804585", "0.5778128", "0.5775912", "0.5775757", "0.57646936", "0.5763029", "0.5762805", "0.57534534", "0.5751197", "0.5749558", "0.5748498", "0.57385266" ]
0.0
-1
set view height using data binding
@BindingAdapter({"layout_marginTop"}) public static void setmarginTop(View view, int marginTop) { ViewGroup.MarginLayoutParams marginParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams(); marginParams.setMargins(marginParams.leftMargin, Math.round(marginTop * view.getContext().getResources().getDisplayMetrics().density), marginParams.rightMargin, marginParams.bottomMargin); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BindingAdapter({\"layout_height\"})\n public static void setHeight(View view, int height) {\n view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density);\n }", "public void setHeight(int height);", "public void setHeight(int height);", "public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);", "public void setHeight(int newValue)\n {\n height = newValue;\n }", "public void setHeight(int value) {\n this.height = value;\n }", "void setHeight(int height);", "void setHeight(int height);", "void setHeight(VariableAmount height);", "public void setHeight(int h)\n {\n height = h;\n }", "public void setPrefHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getPrefHeight()) return;\n firePropertyChange(\"PrefHeight\", put(\"PrefHeight\", h), h, -1);\n}", "public void setHeight(double value) {\n this.height = value;\n }", "@Override\n protected void setHeight(Context context, Integer heightInDp) {\n }", "public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }", "public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }", "public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }", "public void setHeight(int l){\n \theight = l;\n }", "public void setHeight(int h) {\n this.H = h;\n }", "public abstract int layoutHeight();", "@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}", "private void setHeight(float height){\n this.height = height;\n }", "public void setHeight(double height){\n h=height;\r\n }", "public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}", "public void setHeight(int height) {\r\n this.height = height;\r\n }", "@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }", "@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}", "private void setRecyclerViewHeight() {\n\n if (isCalculateRVHeight||myRV == null) return;\n\n isCalculateRVHeight = true;\n\n// Get ItemView height\n RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) myItemView.getLayoutParams();\n// Get ItemView num\n int itemCount = getItemCount();\n int recyclerViewHeight = layoutParams.height*itemCount;\n// Set recyclerView height\n LinearLayout.LayoutParams recyclerViewLayoutParams = (LinearLayout.LayoutParams) myRV.getLayoutParams();\n recyclerViewLayoutParams.height = recyclerViewHeight;\n myRV.setLayoutParams(recyclerViewLayoutParams);\n }", "public void setHeight(double aValue)\n{\n if(_height==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Height\", _height, _height = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}", "public void setHeight(double height) {\r\n this.height = height;\r\n }", "public void setHeight(double height) {\n this.height = height;\n }", "private void initializeView() {\n mBinding = DataBindingUtil.setContentView(this, R.layout.activity_product_details);\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n mBinding.vPPdpProductImages.getLayoutParams().height = displayMetrics.widthPixels;\n mBinding.vPPdpProductImages.requestFocus();\n }", "public S<T> heightDp(int height){\n\t\t((View)t).getLayoutParams().height = (int) pxToDp(height);\n\t\treturn this;\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(int height) {\n this.height = height;\n }", "@Override\n\tpublic void setHeight(float height) {\n\n\t}", "void setFitHeight(short height);", "public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;", "@Override\n\tpublic double getRenderHeight() {\n\t\treturn height;\n\t}", "public S<T> height(int height){\n\t\t((View)t).getLayoutParams().height = height;\n\t\treturn this;\n\t}", "public void setHeight(double height) {\n this.height = height;\n }", "public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }", "double getNewHeight();", "public void setHeight(final String value)\n {\n height = value;\n }", "private int viewHeight(View view) {\n view.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);\n return view.getMeasuredHeight();\n }", "private void binding(){\n\t\trectangle1.widthProperty().bind(employeer.widthProperty().subtract(10));\n\t\trectangle1.heightProperty().bind(employeer.heightProperty().subtract(10));\n\t\t\n\t\trectangle2.widthProperty().bind(hbox.widthProperty());\n\t\t\n\t\tuserNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t\tuserLastNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t}", "public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }", "public int getCurrentHeight();", "public void setHeight(int newValue) {\n seatHeight = newValue;\n }", "public Builder setHeight(long value) {\n copyOnWrite();\n instance.setHeight(value);\n return this;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\r\n public void changeSocialWindowHeight(int newHeight) {\r\n\r\n ViewGroup.LayoutParams layoutParams = unifiedSocialWindowView.getLayoutParams();\r\n layoutParams.height = newHeight;\r\n unifiedSocialWindowView.setLayoutParams(layoutParams);\r\n }", "public void setHeight(int newHeight) {\n roomHeight = newHeight;\n }", "@Override\r\n public int getHeight() {\r\n if(mBaseView != null)\r\n return mBaseView.getHeight();\r\n else\r\n return 0;\r\n }", "default void setHeight(int height) {\n setHeight(VariableAmount.fixed(height));\n }", "public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}", "public void setItemHeight(int height) {\n if (height == mItemHeight) {\n return;\n }\n// mItemHeight = height;\n// mImageViewLayoutParams = new RelativeLayout.LayoutParams(\n// ViewGroup.LayoutParams.MATCH_PARENT, mItemHeight);\n notifyDataSetChanged();\n }", "@Override\r\n public void setHeight(String height) {\n }", "@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}", "public void setViewPortHeight(double viewPortHeight) {\n this.viewPortHeight = viewPortHeight;\n }", "public int Height(){\r\n return height;\r\n }", "public int getHeight() {return height;}", "private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }", "public int getPanelHeight() {\n return height;\n }", "public int getHeight() { return height; }", "public void setHeight( int height ) {\n\t\t_height = height;\n\t}", "public void setCurrentHeight(final int currentHeight);", "public abstract Builder setOutputHeight(int value);", "@Override\n public int getHeight() {\n return this.height;\n }", "public final int getHeight(){\n return height_;\n }", "Builder height(VariableAmount height);", "private void refreshHeight() {\n\t\tint lines = Math.min(maxLineCount, Math.max(minLineCount, text\n\t\t\t\t.getLineCount()));\n\t\tint newHeight = lines * text.getLineHeight();\n\n\t\tGridData data = (GridData) text.getLayoutData();\n\t\tif (data.heightHint != newHeight) {\n\t\t\tdata.heightHint = newHeight;\n\t\t\tlayout();\n\t\t}\n\t}", "public void setHeight(int height) {\n\tthis.height = height;\n\tcalculateHeightRatio();\n }", "private int getViewableHeight() {\r\n\t\treturn MAX_CELL_COUNT * CELL_SIZE_Y;\r\n\t}", "double getOldHeight();", "@DISPID(-2147417101)\n @PropGet\n int offsetHeight();", "@Override\n\t\tpublic void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {\n\t\t\t\n\t\t\tif (isExpanded ()) {\n\t\t\t\t\n\t\t\t\t// Calculate entire height by providing a very large height hint.\n\t\t\t\t// View.MEASURED_SIZE_MASK represents the largest height possible.\n\t\t\t\t\n\t\t\t\tint expandSpec = MeasureSpec.makeMeasureSpec (/*MEASURED_SIZE_MASK*/ 0x00ffffff, MeasureSpec.AT_MOST); // SUPPORT 11\n\t\t\t\t\n\t\t\t\tsuper.onMeasure (widthMeasureSpec, expandSpec);\n\t\t\t\t\n\t\t\t\tViewGroup.LayoutParams params = getLayoutParams ();\n\t\t\t\tparams.height = getMeasuredHeight ();\n\t\t\t\t\n\t\t\t} else super.onMeasure (widthMeasureSpec, heightMeasureSpec);\n\t\t\t\n\t\t}", "public static int getViewHeight(@NonNull View view) {\n view.measure(\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));\n return view.getMeasuredHeight();\n }", "@java.lang.Override\n public long getHeight() {\n return height_;\n }", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public abstract int getDisplayHeight();", "public int getHeight() {\n return (int) (this.height * ViewHandlerImpl.getScaleModifier());\n }", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public int getHeight(){\n return height;\n }", "public int getHeight(){\n return this.height;\n }", "public void setHeight(double height) {\n\t\t this.height = height;\n\t }", "private void syncPinnedHeight() {\n pinnedView.setMinHeight(MIN_PINNED_LANE_HEIGHT);\n pinnedView.setMaxHeight(pinnedLane.maxVScrollProperty().get() + 30);\n }", "public int getHeight()\n {return height;}", "private void updateMapViewHeight() {\n\t\tint screenHeight = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getHeight();\n\n\t\tint coordinatesContainerHeight = 0;\n\t\tif (mEditMode) {\n\t\t\tmDiveSiteCoordinatesEditContainer.measure(MeasureSpec.UNSPECIFIED,\n\t\t\t\t\tMeasureSpec.UNSPECIFIED);\n\t\t\tcoordinatesContainerHeight = mDiveSiteCoordinatesEditContainer\n\t\t\t\t\t.getMeasuredHeight();\n\t\t}\n\n\t\tmMapView.getLayoutParams().height = screenHeight - getTitleBarHeight()\n\t\t\t\t- getStatusBarHeight() - coordinatesContainerHeight\n\t\t\t\t- MAPVIEW_HEIGHT_BUFFER;\n\t}", "public void SetHeightWidth(View view, double width, double height) {\n try {\n if (width == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.height = (int) ((appsingleton.deviceheight) * height);\n } else if (height == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * height);\n } else {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * width);\n params.height = (int) ((appsingleton.deviceheight) * height);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic int getHeight() {\n\t\treturn delegate.getHeight();\n\t}", "public void recomputeHeight() {\n setVisibility(View.GONE);\n setupAnimators();\n }", "public int getHeight(){\n \treturn height;\n }", "public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }", "private void setHeightInCollapse()\n {\n ViewGroup.LayoutParams icom=incompleteRv.getLayoutParams();\n icom.height=0;\n incompleteRv.setLayoutParams(icom);\n\n ViewGroup.LayoutParams actual=movieRecyclerView.getLayoutParams();\n actual.height = actual.MATCH_PARENT;\n movieRecyclerView.setLayoutParams(actual);\n }", "public void setHeight(Short height) {\r\n this.height = height;\r\n }" ]
[ "0.7579133", "0.6855721", "0.6855721", "0.6787676", "0.67456216", "0.6712472", "0.6679681", "0.6679681", "0.66473216", "0.6638206", "0.6517029", "0.65069485", "0.64486724", "0.64385307", "0.6400112", "0.6380439", "0.6373592", "0.63616127", "0.6341751", "0.6288713", "0.62751323", "0.62620765", "0.62578255", "0.6250225", "0.62243646", "0.6219744", "0.62086385", "0.62003857", "0.6186025", "0.6172562", "0.6163658", "0.61583185", "0.6151856", "0.61466837", "0.6146309", "0.6146309", "0.6133378", "0.61196417", "0.6112754", "0.609449", "0.6094367", "0.6077432", "0.6073558", "0.60699314", "0.60534793", "0.60419834", "0.60120094", "0.6005791", "0.59996814", "0.599282", "0.598032", "0.59678996", "0.59678996", "0.59660023", "0.5963035", "0.596289", "0.5958871", "0.59526974", "0.5951647", "0.5941602", "0.5934547", "0.59272605", "0.591251", "0.59043425", "0.5903167", "0.58969617", "0.58853805", "0.58736813", "0.5873499", "0.5870026", "0.5866303", "0.5866064", "0.5857654", "0.58560663", "0.58545995", "0.58288395", "0.5828423", "0.5807943", "0.5805248", "0.58052474", "0.58019525", "0.58005947", "0.58005947", "0.58005947", "0.5797373", "0.5785509", "0.57834667", "0.57834667", "0.5781311", "0.57804585", "0.5778128", "0.5775912", "0.5775757", "0.57646936", "0.5763029", "0.5762805", "0.57534534", "0.5751197", "0.5749558", "0.5748498", "0.57385266" ]
0.0
-1
set view height using data binding
@BindingAdapter(value = {"backgroundRes", "backgroundColor"}, requireAll = false) public static void setBackground(View view, @DrawableRes int backgroundRes, @ColorInt int backgroundColor) { if (backgroundRes != 0) { view.setBackgroundResource(backgroundRes); return; } view.setBackgroundColor(backgroundColor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BindingAdapter({\"layout_height\"})\n public static void setHeight(View view, int height) {\n view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density);\n }", "public void setHeight(int height);", "public void setHeight(int height);", "public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);", "public void setHeight(int newValue)\n {\n height = newValue;\n }", "public void setHeight(int value) {\n this.height = value;\n }", "void setHeight(int height);", "void setHeight(int height);", "void setHeight(VariableAmount height);", "public void setHeight(int h)\n {\n height = h;\n }", "public void setPrefHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getPrefHeight()) return;\n firePropertyChange(\"PrefHeight\", put(\"PrefHeight\", h), h, -1);\n}", "public void setHeight(double value) {\n this.height = value;\n }", "@Override\n protected void setHeight(Context context, Integer heightInDp) {\n }", "public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }", "public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }", "public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }", "public void setHeight(int l){\n \theight = l;\n }", "public void setHeight(int h) {\n this.H = h;\n }", "public abstract int layoutHeight();", "@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}", "private void setHeight(float height){\n this.height = height;\n }", "public void setHeight(double height){\n h=height;\r\n }", "public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}", "public void setHeight(int height) {\r\n this.height = height;\r\n }", "@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }", "@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}", "private void setRecyclerViewHeight() {\n\n if (isCalculateRVHeight||myRV == null) return;\n\n isCalculateRVHeight = true;\n\n// Get ItemView height\n RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) myItemView.getLayoutParams();\n// Get ItemView num\n int itemCount = getItemCount();\n int recyclerViewHeight = layoutParams.height*itemCount;\n// Set recyclerView height\n LinearLayout.LayoutParams recyclerViewLayoutParams = (LinearLayout.LayoutParams) myRV.getLayoutParams();\n recyclerViewLayoutParams.height = recyclerViewHeight;\n myRV.setLayoutParams(recyclerViewLayoutParams);\n }", "public void setHeight(double aValue)\n{\n if(_height==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Height\", _height, _height = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}", "public void setHeight(double height) {\r\n this.height = height;\r\n }", "public void setHeight(double height) {\n this.height = height;\n }", "private void initializeView() {\n mBinding = DataBindingUtil.setContentView(this, R.layout.activity_product_details);\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n mBinding.vPPdpProductImages.getLayoutParams().height = displayMetrics.widthPixels;\n mBinding.vPPdpProductImages.requestFocus();\n }", "public S<T> heightDp(int height){\n\t\t((View)t).getLayoutParams().height = (int) pxToDp(height);\n\t\treturn this;\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(int height) {\n this.height = height;\n }", "@Override\n\tpublic void setHeight(float height) {\n\n\t}", "void setFitHeight(short height);", "public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;", "@Override\n\tpublic double getRenderHeight() {\n\t\treturn height;\n\t}", "public S<T> height(int height){\n\t\t((View)t).getLayoutParams().height = height;\n\t\treturn this;\n\t}", "public void setHeight(double height) {\n this.height = height;\n }", "public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }", "double getNewHeight();", "public void setHeight(final String value)\n {\n height = value;\n }", "private int viewHeight(View view) {\n view.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);\n return view.getMeasuredHeight();\n }", "private void binding(){\n\t\trectangle1.widthProperty().bind(employeer.widthProperty().subtract(10));\n\t\trectangle1.heightProperty().bind(employeer.heightProperty().subtract(10));\n\t\t\n\t\trectangle2.widthProperty().bind(hbox.widthProperty());\n\t\t\n\t\tuserNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t\tuserLastNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t}", "public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }", "public int getCurrentHeight();", "public void setHeight(int newValue) {\n seatHeight = newValue;\n }", "public Builder setHeight(long value) {\n copyOnWrite();\n instance.setHeight(value);\n return this;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public int getHeight() {\n return height;\n }", "@Override\r\n public void changeSocialWindowHeight(int newHeight) {\r\n\r\n ViewGroup.LayoutParams layoutParams = unifiedSocialWindowView.getLayoutParams();\r\n layoutParams.height = newHeight;\r\n unifiedSocialWindowView.setLayoutParams(layoutParams);\r\n }", "public void setHeight(int newHeight) {\n roomHeight = newHeight;\n }", "@Override\r\n public int getHeight() {\r\n if(mBaseView != null)\r\n return mBaseView.getHeight();\r\n else\r\n return 0;\r\n }", "default void setHeight(int height) {\n setHeight(VariableAmount.fixed(height));\n }", "public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}", "public void setItemHeight(int height) {\n if (height == mItemHeight) {\n return;\n }\n// mItemHeight = height;\n// mImageViewLayoutParams = new RelativeLayout.LayoutParams(\n// ViewGroup.LayoutParams.MATCH_PARENT, mItemHeight);\n notifyDataSetChanged();\n }", "@Override\r\n public void setHeight(String height) {\n }", "@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}", "public void setViewPortHeight(double viewPortHeight) {\n this.viewPortHeight = viewPortHeight;\n }", "public int Height(){\r\n return height;\r\n }", "public int getHeight() {return height;}", "private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }", "public int getPanelHeight() {\n return height;\n }", "public int getHeight() { return height; }", "public void setHeight( int height ) {\n\t\t_height = height;\n\t}", "public void setCurrentHeight(final int currentHeight);", "public abstract Builder setOutputHeight(int value);", "@Override\n public int getHeight() {\n return this.height;\n }", "public final int getHeight(){\n return height_;\n }", "Builder height(VariableAmount height);", "private void refreshHeight() {\n\t\tint lines = Math.min(maxLineCount, Math.max(minLineCount, text\n\t\t\t\t.getLineCount()));\n\t\tint newHeight = lines * text.getLineHeight();\n\n\t\tGridData data = (GridData) text.getLayoutData();\n\t\tif (data.heightHint != newHeight) {\n\t\t\tdata.heightHint = newHeight;\n\t\t\tlayout();\n\t\t}\n\t}", "public void setHeight(int height) {\n\tthis.height = height;\n\tcalculateHeightRatio();\n }", "private int getViewableHeight() {\r\n\t\treturn MAX_CELL_COUNT * CELL_SIZE_Y;\r\n\t}", "double getOldHeight();", "@DISPID(-2147417101)\n @PropGet\n int offsetHeight();", "@Override\n\t\tpublic void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {\n\t\t\t\n\t\t\tif (isExpanded ()) {\n\t\t\t\t\n\t\t\t\t// Calculate entire height by providing a very large height hint.\n\t\t\t\t// View.MEASURED_SIZE_MASK represents the largest height possible.\n\t\t\t\t\n\t\t\t\tint expandSpec = MeasureSpec.makeMeasureSpec (/*MEASURED_SIZE_MASK*/ 0x00ffffff, MeasureSpec.AT_MOST); // SUPPORT 11\n\t\t\t\t\n\t\t\t\tsuper.onMeasure (widthMeasureSpec, expandSpec);\n\t\t\t\t\n\t\t\t\tViewGroup.LayoutParams params = getLayoutParams ();\n\t\t\t\tparams.height = getMeasuredHeight ();\n\t\t\t\t\n\t\t\t} else super.onMeasure (widthMeasureSpec, heightMeasureSpec);\n\t\t\t\n\t\t}", "public static int getViewHeight(@NonNull View view) {\n view.measure(\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),\n View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));\n return view.getMeasuredHeight();\n }", "@java.lang.Override\n public long getHeight() {\n return height_;\n }", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public abstract int getDisplayHeight();", "public int getHeight() {\n return (int) (this.height * ViewHandlerImpl.getScaleModifier());\n }", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public int getHeight(){\n return height;\n }", "public int getHeight(){\n return this.height;\n }", "public void setHeight(double height) {\n\t\t this.height = height;\n\t }", "private void syncPinnedHeight() {\n pinnedView.setMinHeight(MIN_PINNED_LANE_HEIGHT);\n pinnedView.setMaxHeight(pinnedLane.maxVScrollProperty().get() + 30);\n }", "public int getHeight()\n {return height;}", "private void updateMapViewHeight() {\n\t\tint screenHeight = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getHeight();\n\n\t\tint coordinatesContainerHeight = 0;\n\t\tif (mEditMode) {\n\t\t\tmDiveSiteCoordinatesEditContainer.measure(MeasureSpec.UNSPECIFIED,\n\t\t\t\t\tMeasureSpec.UNSPECIFIED);\n\t\t\tcoordinatesContainerHeight = mDiveSiteCoordinatesEditContainer\n\t\t\t\t\t.getMeasuredHeight();\n\t\t}\n\n\t\tmMapView.getLayoutParams().height = screenHeight - getTitleBarHeight()\n\t\t\t\t- getStatusBarHeight() - coordinatesContainerHeight\n\t\t\t\t- MAPVIEW_HEIGHT_BUFFER;\n\t}", "public void SetHeightWidth(View view, double width, double height) {\n try {\n if (width == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.height = (int) ((appsingleton.deviceheight) * height);\n } else if (height == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * height);\n } else {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * width);\n params.height = (int) ((appsingleton.deviceheight) * height);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic int getHeight() {\n\t\treturn delegate.getHeight();\n\t}", "public void recomputeHeight() {\n setVisibility(View.GONE);\n setupAnimators();\n }", "public int getHeight(){\n \treturn height;\n }", "public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }", "private void setHeightInCollapse()\n {\n ViewGroup.LayoutParams icom=incompleteRv.getLayoutParams();\n icom.height=0;\n incompleteRv.setLayoutParams(icom);\n\n ViewGroup.LayoutParams actual=movieRecyclerView.getLayoutParams();\n actual.height = actual.MATCH_PARENT;\n movieRecyclerView.setLayoutParams(actual);\n }", "public void setHeight(Short height) {\r\n this.height = height;\r\n }" ]
[ "0.7579133", "0.6855721", "0.6855721", "0.6787676", "0.67456216", "0.6712472", "0.6679681", "0.6679681", "0.66473216", "0.6638206", "0.6517029", "0.65069485", "0.64486724", "0.64385307", "0.6400112", "0.6380439", "0.6373592", "0.63616127", "0.6341751", "0.6288713", "0.62751323", "0.62620765", "0.62578255", "0.6250225", "0.62243646", "0.6219744", "0.62086385", "0.62003857", "0.6186025", "0.6172562", "0.6163658", "0.61583185", "0.6151856", "0.61466837", "0.6146309", "0.6146309", "0.6133378", "0.61196417", "0.6112754", "0.609449", "0.6094367", "0.6077432", "0.6073558", "0.60699314", "0.60534793", "0.60419834", "0.60120094", "0.6005791", "0.59996814", "0.599282", "0.598032", "0.59678996", "0.59678996", "0.59660023", "0.5963035", "0.596289", "0.5958871", "0.59526974", "0.5951647", "0.5941602", "0.5934547", "0.59272605", "0.591251", "0.59043425", "0.5903167", "0.58969617", "0.58853805", "0.58736813", "0.5873499", "0.5870026", "0.5866303", "0.5866064", "0.5857654", "0.58560663", "0.58545995", "0.58288395", "0.5828423", "0.5807943", "0.5805248", "0.58052474", "0.58019525", "0.58005947", "0.58005947", "0.58005947", "0.5797373", "0.5785509", "0.57834667", "0.57834667", "0.5781311", "0.57804585", "0.5778128", "0.5775912", "0.5775757", "0.57646936", "0.5763029", "0.5762805", "0.57534534", "0.5751197", "0.5749558", "0.5748498", "0.57385266" ]
0.0
-1
Constructor: Don't forget to set variables!
public Email() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Pitonyak_09_02() {\r\n }", "public PSRelation()\n {\n }", "public Chick() {\n\t}", "private TMCourse() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "public Cohete() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tpublic void init() {}", "public Chauffeur() {\r\n\t}", "@Override\n public void init() {}", "public Lanceur() {\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 Coche() {\n super();\n }", "@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 public void init()\n\t\t{\n\t\t}", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Curso() {\r\n }", "public CSSTidier() {\n\t}", "public _355() {\n\n }", "@Override\n protected void init() {\n }", "public Tbdtokhaihq3() {\n super();\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public Pasien() {\r\n }", "public Anschrift() {\r\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void init() {\n }", "public Trening() {\n }", "public void init() {\n \n }", "@Override\n public void init() {\n }", "public Phl() {\n }", "public AirAndPollen() {\n\n\t}", "@Override\n void init() {\n }", "public Odontologo() {\n }", "public void init() {\r\n\t\t// to override\r\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 }", "@Override\n\tprotected void initialize() {\n\n\t}", "public Ov_Chipkaart() {\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 public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void init() {\n\n\t}", "public JSFOla() {\n }", "public Rook()\n {\n super();\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public Mitarbeit() {\r\n }", "public SlanjePoruke() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public Tbdcongvan36() {\n super();\n }", "public Magazzino() {\r\n }", "@Override\n\tpublic void init() {\n\t}", "public Demo() {\n\t\t\n\t}", "public Orbiter() {\n }", "private void init() {\n\n\n\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void initialize() {\n \n }", "public EnsembleLettre() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public Husdjurshotell(){}", "public Libro() {\r\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "public void init() {\n\t\t\n\t}", "public Sandwich()\n\t{super();\n \n\t\t\n\t}", "public Mannschaft() {\n }", "private void init() {\n }", "@Override\n\tpublic void initialize() {\n\t\t\n\t}", "public Soil()\n\t{\n\n\t}", "public Aanbieder() {\r\n\t\t}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "private Main() {\n\n super();\n }", "public Excellon ()\n {}", "protected Asignatura()\r\n\t{}", "public ExamMB() {\n }", "@Override\r\n public void initialize()\r\n {\n }", "public void init() {\r\n\r\n\t}", "public void initialize()\n {\n }", "public AntrianPasien() {\r\n\r\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }" ]
[ "0.85226715", "0.77848583", "0.73238885", "0.7299575", "0.7258378", "0.7236827", "0.7180204", "0.7175385", "0.7175127", "0.7132976", "0.71236914", "0.71233714", "0.7086688", "0.70766723", "0.70724446", "0.7067131", "0.7067131", "0.7067131", "0.7062119", "0.70601153", "0.70601153", "0.70601153", "0.70601153", "0.70601153", "0.7053879", "0.7047686", "0.7047296", "0.7041992", "0.70391613", "0.703669", "0.7035273", "0.701943", "0.7015992", "0.7012951", "0.699511", "0.699511", "0.69794905", "0.697908", "0.69746065", "0.69685197", "0.6967381", "0.69525516", "0.69483525", "0.69481975", "0.6947954", "0.69271004", "0.6924949", "0.6924949", "0.6924949", "0.6924949", "0.6924949", "0.6924949", "0.69201267", "0.6914791", "0.69065684", "0.69065684", "0.69065684", "0.69038814", "0.6895607", "0.6895607", "0.68939877", "0.68880045", "0.6878898", "0.6877392", "0.6865289", "0.6862741", "0.686244", "0.6861984", "0.6860307", "0.6853283", "0.684804", "0.684523", "0.68375564", "0.6836781", "0.68328923", "0.68328923", "0.6832625", "0.682592", "0.6820205", "0.681807", "0.6813478", "0.680962", "0.6808758", "0.67972475", "0.6789163", "0.67889005", "0.67879885", "0.67844224", "0.678249", "0.6781863", "0.67754763", "0.67724496", "0.6768217", "0.67634135", "0.6761081", "0.6761059", "0.67598844", "0.6758849", "0.6757522", "0.6757522", "0.6757522" ]
0.0
-1
Convenience Constructor: The bare minimum information you need to send an email.
public Email(String from, String to, String subject, String body) { this.from = from; this.to.add(to); this.subject = subject; this.body = body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Email(){}", "public MailSender() {\r\n }", "public EmailSender()\r\n {\r\n this(\"javaemailsender\" ,\"sendtestemail\");\r\n }", "public Email() {\n\t}", "public MailMessage() {\n }", "public EmailObj(String to, String from, String subject, String body) {\n this(to, from, subject, body, \"localhost\");\n }", "public Email(String firstname,String lastname)\r\n\t{\r\n\t\tthis.firstname=firstname;\r\n\t\tthis.lastname=lastname;\r\n\t\t//System.out.println(\"EMAIL CREATED:\"+this.firstname+this.lastname);\r\n\t\t//create a method asking for department\r\n\t\tthis.department=setDepartment();\r\n\t\t//System.out.println(\"Deaprtment:\"+this.department);\r\n\t\t//call a method to create default password\r\n\t\tthis.password=setRandompassword(defaultpasswordlength);\r\n\t\t//System.out.println(\"Your Password is:\"+this.password);\r\n\t\temail=firstname.toLowerCase()+\".\"+lastname+\"@\"+\".\"+department+\".com\";\r\n\t\t//System.out.println(\"Your emailid is: \"+email);\r\n\t\t\r\n\t}", "public SMTPEmailTransport()\n throws EmailException\n {\n this(\"localhost\");\n }", "public OutMail () {\r\n\t\tsuper();\r\n\t}", "public EmailUtil(String host) {\n\t\tsuper();\n\n\t\t // Get system properties\n\t\t Properties properties = System.getProperties();\n\n\t\t // Setup mail server\n\t\t properties.setProperty(\"mail.smtp.host\", host);\n\n\t\t // Get the Session object.\n\t\t session = Session.getInstance(properties);\n\t}", "public Mail() {\n this.login();\n this.setMessages();\n }", "public Email(String firstName, String lastName) {\r\n\t\tthis.firstName=firstName;\r\n\t\tthis.lastName=lastName;\r\n\t\t\r\n\t\t\r\n\t//Call a method asking for the department - return the department\r\n\tthis.department = setDepartment();\r\n\t\t\r\n\t\r\n\t//Call a method that returns a random password\r\n\tthis.password=randomPassword(defaultPasswordLength);\r\n\t\tSystem.out.println(\"Your password is: \" + this.password);\r\n\t\t\r\n\t\t\r\n\t//Combine elements to generate email\r\n\temail=firstName.toLowerCase() + \".\" + lastName.toLowerCase() + \"@\" + department + \".\" + companySuffix;\r\n\t\t\r\n\t}", "public MailHelper()\n {\n\n }", "public Mail(String password, String recipient) {\n this.password = password;\n this.recipient = recipient;\n }", "public MailSender(Logger logger, String subject, String htmlBody, String textBody, Collection<File> attachments, String recipient, String sender, List<String> cc, List<String> bcc, boolean deliveryReceipt, boolean readReceipt, String host, long port, String securityProtocol, String user, String password)\n {\n _logger = logger;\n _subject = subject;\n _htmlBody = htmlBody;\n _textBody = textBody;\n _attachments = attachments;\n _recipient = recipient;\n _sender = sender;\n _cc = cc;\n _bcc = bcc;\n _deliveryReceipt = deliveryReceipt;\n _readReceipt = readReceipt;\n _host = host;\n _port = port;\n _securityProtocol = securityProtocol;\n _user = user;\n _password = password;\n }", "private EMailUtil() {}", "public Email(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String body) {\n\t\tthis.from = from;\n\t\tthis.to = to;\n\t\tthis.cc = cc;\n\t\tthis.bcc = bcc;\n\t\tthis.subject = subject;\n\t\tthis.body = body;\n\t}", "public InvalidEmail() {\n super();\n this.setSubject(invalidEmailSubject);\n this.setBody(invalidEmailBody);\n }", "public MailCommand() {\n this(\"\");\n }", "public EmailException()\n {\n super();\n }", "public SmtpConfiguration() {\n }", "public EmailDailyReportOfZA() {\n\t}", "public Email(Application application, Student student){\n setRecipient(student.getEmail());\n setContent(application.getTitle(),student.getFirstname() + \" \" +student.getLastname(),\n application.getId(), application.getStatus());\n setSubject(\"Application Notification\");\n type = application.getStatus();\n }", "public MailSendObj() {\n\t\t// TODO Auto-generated constructor stub\n\t\tprops.setProperty(\"mail.transport.protocol\", \"smtp\"); // 使用的协议(JavaMail规范要求) \n props.put(\"mail.smtp.host\", \"smtp.office365.com\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\",\"true\");\n props.put(\"mail.smtp.auth\", \"true\"); \n\t\t\n\t}", "public MailSender(String recepientEmail, String senderEmail, String subject) {\n\t\tif(recepientEmail == null)\n\t\t\tthrow new IllegalArgumentException(\"recepientEmail can not be null\");\n\t\tif(senderEmail == null)\n\t\t\tthrow new IllegalArgumentException(\"senderEmail can not be null\");\n\n\t\tthis.recepientEmail = recepientEmail;\n\t\tthis.senderEmail = senderEmail;\n\t\tthis.subject = subject;\n\t}", "SendEmail() {\t\n\t}", "public Email(String firstName, String lastName){\r\n\t\tthis.firstName = firstName;\r\n\t\tthis.lastName = lastName;\r\n\t\t\r\n\t\t//Call a method asking for the department - return the department.\r\n\t\tthis.department = setDepartment();\r\n\t\t\r\n\t\t//Call a method for generating password - return the password.\r\n\t\tthis.password = randomPassword(defaultPasswordLength);\r\n\t\t\r\n\t\t//Combine elements to generate Email.\r\n\t\temail = this.firstName.toLowerCase()+\".\"+this.lastName.toLowerCase()+\"@\"+this.department+\".\"+companySuffix;\r\n\t}", "public Email(String from, List<String> replyTo, List<String> to, List<String> cc, List<String> bcc, String subject, String body, boolean html, List<MimeBodyPart> bodyParts) {\n\t\tthis.from = from;\n\t\tthis.replyTo = replyTo;\n\t\tthis.to = to;\n\t\tthis.cc = cc;\n\t\tthis.bcc = bcc;\n\t\tthis.subject = subject;\n\t\tthis.body = body;\n\t\tthis.html = html;\n\t\tthis.bodyParts = bodyParts;\n\t}", "public XMLEmail(String senderName, String replyAddress, String bodyText, String receiverAddress, String subject, String senderIdentification)\r\n\t{\r\n\t\tm_senderName = senderName;\r\n\t\tm_replyAddress = replyAddress;\r\n\t\tm_bodyText = bodyText;\r\n\t\tm_receiverAddress = receiverAddress;\r\n\t\tm_subject = subject;\r\n\t\tm_senderIdentification = senderIdentification;\r\n\t\tsetDefaultValues();\r\n\t\tm_docTheEmail = XMLUtil.createDocument();\r\n\t\tm_docTheEmail.appendChild(internal_toXmlElement(m_docTheEmail));\r\n\r\n\t}", "public MailHelper(String recipientEmail, String message) {\n this.recipientEmail = recipientEmail;\n this.message = message;\n }", "public MailMessage(String from, String to, String subject, String text) {\n this.from = from;\n this.to = asList(to);\n this.subject = subject;\n this.text = text;\n }", "public SentMail(String date, String to, String subject/*,String body*/) {\n this.date = new SimpleStringProperty(date);\n this.to = new SimpleStringProperty(to);\n this.Subject = new SimpleStringProperty(subject);\n //this.body = new SimpleStringProperty(body);\n }", "public EmailSender(String us,String pw)\r\n {\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtp.starttls.enable\",\"true\" );\r\n props.put(\"mail.smtp.host\",\"smtp.gmail.com\");\r\n props.put(\"mail.smtp.auth\", \"true\" );\r\n props.put(\"mail.smtp.port\", \"587\");\r\n final String username = us;\r\n final String password = pw;\r\n Authenticator auth;\r\n auth = new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }};\r\n session = Session.getInstance(props, auth);\r\n }", "public XMLEmail(String senderName, String replyAddress, String bodyText, String senderIdentification)\r\n\t{\r\n\t\tm_senderName = senderName;\r\n\t\tm_replyAddress = replyAddress;\r\n\t\tm_bodyText = bodyText;\r\n\t\tm_senderIdentification = senderIdentification;\r\n\t\tsetDefaultValues();\r\n\t\tm_docTheEmail = XMLUtil.createDocument();\r\n\t\tm_docTheEmail.appendChild(internal_toXmlElement(m_docTheEmail));\r\n\t}", "public MailFactory(MailAddress address) {\n this.address = address;\n }", "public Mail(String msg) {\n\t\tthis.msg = msg;\n\t}", "protected EmailHandler(String addresses, String mailServer, String fromAddress, String subject, Level severity,\n String username, String password)\n {\n _addresses = TextUtils.removeExtraSpaces( addresses.trim() );\n _mailServer = mailServer;\n setLevel(severity);\n if (fromAddress != null) fromAddress = TextUtils.removeExtraSpaces( fromAddress.trim() );\n _fromAddress = fromAddress;\n _subject = subject;\n _username = username;\n _password = password;\n }", "public EmailHandler(String sendr, String usrname, String passwd, String host, String hostname) {\r\n\t\tsender = sendr;\r\n\t\tusername = usrname;\r\n\t\tpassword = passwd;\r\n\t\tmailHost = host;\r\n\t\tmailHostname = hostname;\r\n\t}", "private S_NewMail(Builder builder) {\n super(builder);\n }", "public MailItem(String from, String to, String message, String subject)\r\n {\r\n this.from = from;\r\n this.to = to;\r\n this.message = message;\r\n this.subject = subject;\r\n }", "public EmailDetails(EmailDetailsMessage emailDetailsMessage) {\n userId = emailDetailsMessage.getUserId();\n name = emailDetailsMessage.getName();\n email = emailDetailsMessage.getEmail();\n }", "public Delivery(String recieverFirstname,String recieverLastname, String recieverPhonenumber,\n String recieverEmail, String building, String unit, String deliveryStreet, String deliveryCity, \n String deliveryPostalCode, String deliveryProvince, String deliveryNote, String deliveryMethod)\n {\n this.recieverFirstname = recieverFirstname;\n this.recieverLastname = recieverLastname;\n this.recieverEmail = recieverEmail;\n this.building = building;\n this.unit = unit;\n this.deliveryStreet = deliveryStreet;\n this.deliveryCity = deliveryCity;\n this.deliveryPostalCode = deliveryPostalCode;\n this.deliveryProvince = deliveryProvince;\n this.deliveryNote = deliveryNote;\n this.deliveryMethod = deliveryMethod;\n }", "public EmailService() {\n }", "public TycoAgent() {\n\n\t\t// Initialize the Gmail, clear its emails via initialize(), initialize\n\t\t// the whole map with the init message, then initialize the new map,\n\t\t// dummy databse, auth users, and auth threads\n\t\tjciEmail = GmailAuthorize.getGmailService();\n\t\t// initialize();\n\t\trecentMailMap = new HashMap<String, Mail>();\n\n\t}", "public SendMail(BodyBlock bbRequest, BodyBlock bbResponse, IEmailIOConfiguration iecConfig)\r\n {\r\n this(bbRequest, bbResponse, iecConfig, false);\r\n }", "private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}", "public Email(Application application, Manager manager){\n setRecipient(manager.getEmail());\n setContent(application.getTitle(),manager.getFirstname() + \" \" +manager.getLastname(),\n application.getId(), ASSIGNED);\n setSubject(\"Application Notification\");\n type = ASSIGNED;\n }", "public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }", "protected EmailHandler(String addresses, String mailServer, String fromAddress, String subject, Level severity)\n {\n this (addresses, mailServer, fromAddress, subject, severity, null, null);\n }", "public MailProvider(ProviderProperties providerProperties) {\n super(providerProperties);\n }", "public Notification()\n\t{\n\t\t// Start of user code constructor for Notification)\n\t\tsuper();\n\t\t// End of user code\n\t}", "public MailCommand(@Nonnull final String sender) {\n this(sender, null);\n }", "public EmailException(String msg)\n {\n super(msg);\n }", "public static void main(String[] args) throws EmailException {\n\n\t\tString text= \"<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>\";\n\t\tEmail email=new SimpleEmail();\n\t\t//MailMessage mail = new MailMessage();\n\t\t\n\t\temail.setHostName(\"smtp.googlemail.com\");\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\", \"\"));\n\t\temail.setSSL(true);\n\t\temail.setFrom(\"[email protected]\");\n\t\temail.setSubject(\"TestMail\");\n\t\temail.setMsg(text);\n\t\t\n\t\temail.addTo(\"[email protected]\");\n\t\temail.send();\n\t\t\n\t\tSystem.out.println(\"Email Sent Sucessfully\");\n\t\t\n}", "public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }", "public MJEasyEmail email() {\n return new MJEasyEmail(this, new MailjetRequest(Email.resource));\n }", "private SimpleAttachment() {\n }", "public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }", "public Message(Account accountSend) {\r\n\t\tm_accountSend = accountSend;\r\n\t\tformatTime();\r\n\t}", "public VelocityEmailException()\n {\n super();\n }", "public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }", "public Message(){}", "void send(Email email);", "public SMTPEmailTransport(String smtpHost)\n throws EmailException\n {\n this(\"localhost\", null);\n }", "public EmailAddNoSendServlet() {\r\n\t\tsuper();\r\n\t}", "public Message () {\n\t\tthis.setCreationtime(Calendar.getInstance().getTimeInMillis());\n\t\tsetTimestamp();\n\t}", "public Message(String sender,String recipient){\n setSender(sender);\n setRecipient(recipient);\n }", "public Compositor(String username){\n\t\tthis.username = username;\n\n\t\tsmtphost = \"smtp.gmail.com\";\n\t\t// Step 1: Set all Properties\n\t\t// Get system properties\n\t\tProperties props = System.getProperties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", smtphost);\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\t\t\n\t\t JPasswordField pwd = new JPasswordField(10); \n int action = JOptionPane.showConfirmDialog(null, pwd,\"Enter Password\",JOptionPane.OK_CANCEL_OPTION); \n if(action < 0) {\n JOptionPane.showMessageDialog(null,\"Cancel, X or escape key selected\");\n System.exit(0);\n }\n else\n this.password = new String(pwd.getPassword()); \n\n\t\t// Set Property with username and password for authentication \n\t\tprops.setProperty(\"mail.user\", username);\n\t\tprops.setProperty(\"mail.password\", password);\n\n\t\t//Step 2: Establish a mail session (java.mail.Session)\n\t\tsession = Session.getDefaultInstance(props);\n\t}", "public static void main(String[] args) throws AddressException, MessagingException, IOException {\n MonitoringMail mail = new MonitoringMail();\n mail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, TestConfig.messageBody, TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}", "public static void main(String[] args) {\n\t\tEmail email1 = new Email(\"Monis\",\"Saeed\");\r\n\t\temail1.SetAlternateEmail(\"[email protected]\");\r\n\t\temail1.SetMailBoxCapacity(500);\r\n\t\t\r\n\t\tSystem.out.println(email1.ShowInfo());\r\n\t}", "public Controller(ConnectionInformation connectionInfo)\r\n\t{\r\n\t\tthis.server = new EmailServer(connectionInfo);\r\n\t\tthis.server.start();\r\n\t}", "public MailCommand(@Nonnull final Collection<MailParameter> mailParameters) {\n this(\"\", mailParameters);\n }", "public MailClient(MailServer server, String user)\n {\n this.server = server;\n this.user = user;\n this.recibidos = 0;\n this.enviados = 0;\n this.mensajeMasLargo = new MailItem(\"\",\"\",\"\",\"\");\n }", "public Message() {\n\t\tsuper();\n\t}", "public Modify_MAIL() {\n initComponents();\n }", "public EmailerClientGUI() {\r\n\t\t//dblogic.load();\r\n\t\tsetupEmailStorage();\r\n\t\tinitialize();\r\n\t\tsetupFrameSaveFeature();\r\n\t\tsetupServerSettings();\r\n\t\tsetupCredentials();\r\n\t\tsetupBackup();\r\n\t\tsetupImport();\r\n\t\tsetupEditAndTemplate();\r\n\t\tconfigurePromo();\r\n\t\tsetupTimer();\r\n\t\tsetupDismiss();\r\n\t\tsetupExit();\r\n\t\tsetTemplateButtons();\r\n\t\tconfigureEnableButtons();\r\n\t\t\r\n\t\tsetupSender();\r\n\t\r\n\t}", "public Message(Account accountSend, String timestamp) {\r\n\t\tm_accountSend = accountSend;\r\n\t\tm_timeSent = timestamp;\r\n\t}", "public MailCommand(@Nonnull final String sender, @Nullable final Collection<MailParameter> mailParameters) {\n super(MAIL);\n this.sender = sender;\n this.mailParameters = mailParameters;\n }", "public PDContactSend() {\n this.email = new ArrayList<>();\n this.phone = new ArrayList<>();\n this.active_flag = true;\n }", "public Person(String username, String email) {\n this.username = username;\n this.email = email;\n }", "public Contact() {\n super();\n }", "public static void main(String[] args) {\n\t\tSendEmail sendEmail = new SendEmail();\n\t\tSystem.out.println(\"Welcome\");\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter your email address: \");\n\t\tString emailAddress = sc.nextLine(); //read input till enter\n\t\t\n\t\tSystem.out.println(\"Now email To: \");\n\t\tString to = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"What about the Subject: \");\n\t\tString subject = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Finally write your email/letter: \");\n\t\tString text = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"From: \" + emailAddress);\n\t\tSystem.out.println(\"To: \" + to);\n\t\tSystem.out.println(\"Subject: \" + subject);\n\t\tSystem.out.println(\"Text: \" + text);\n\t\tString pass = \"\";\n Console console = System.console();\n if (console == null) { //BUG IN IDEs console from .readPassword\n System.out.println(\"Parece que estas usando un IDE asi que cuando escribas la contraseña SERÁ visible: \");\n pass = sc.nextLine();\n sc.close();\n }\n\t else { //Outside Eclipse IDE\n pass = new String(console.readPassword(\"Password: \"));\n\t } \n\t\tsc.close();\n\t\t\n\t\ttry {\n\t\t\tsendEmail.send(emailAddress, to, subject, text, pass);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Message(String type, String content, String status, Long date, String sender) {\n if (type == null || type.isEmpty()) {\n throw new IllegalArgumentException(\"Type cannot be null or empty\");\n }\n if (!type.equals(\"text\") && !type.equals(\"image\") && !type.equals(\"location\")) {\n throw new IllegalArgumentException(\"Message object needs type of text, image or location\");\n }\n if (content == null || content.isEmpty()) {\n throw new IllegalArgumentException(\"Content cannot be null or empty\");\n }\n if (status == null || status.isEmpty()) {\n throw new IllegalArgumentException(\"Status cannot be null or empty\");\n }\n if (!status.equals(\"read\") && !status.equals(\"unread\")){\n throw new IllegalArgumentException(\"Message object needs a status of read or unread\");\n }\n if (date == null) {\n throw new IllegalArgumentException(\"Date cannot be null\");\n }\n if (sender == null || sender.isEmpty()) {\n throw new IllegalArgumentException(\"Sender cannot be null or empty\");\n }\n\n this.type = type;\n this.content = content;\n this.status = status;\n this.date = date;\n this.sender = sender;\n }", "public FIXMessageUtil() {\r\n }", "public InviteEmail_1() {\n initComponents();\n }", "public NewMember(String username, String password, String email) {\n this.username = username;\n this.password = password;\n this.email = email;\n this.has_role = \"User\";\n this.signingDate = new Date(System.currentTimeMillis());\n }", "public Person(String name, String phoneNumber, String email){\n setName(name);\n setPhoneNumber(phoneNumber);\n setEmail(email);\n }", "private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}", "public Person(String name, String address, String phoneNumber, String emailAddress)\n {\n this.name = name;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.emailAddress = emailAddress;\n }", "public Notifications() {\n \n \t}", "ClientMessageSender() {\n\n\t}", "public MailMessage(JsonObject json) {\n Objects.requireNonNull(json);\n bounceAddress = json.getString(\"bounceAddress\");\n from = json.getString(\"from\");\n to = getKeyAsStringOrList(json, \"to\");\n cc = getKeyAsStringOrList(json, \"cc\");\n bcc = getKeyAsStringOrList(json, \"bcc\");\n subject = json.getString(\"subject\");\n text = json.getString(\"text\");\n html = json.getString(\"html\");\n if (json.containsKey(\"attachment\")) {\n List<MailAttachment> list;\n Object object = json.getValue(\"attachment\");\n if (object instanceof JsonObject) {\n list = Collections.singletonList(new MailAttachment((JsonObject) object));\n } else if (object instanceof JsonArray) {\n list = new ArrayList<>();\n for (Object attach : (JsonArray) object) {\n list.add(new MailAttachment((JsonObject) attach));\n }\n } else {\n throw new IllegalArgumentException(\"invalid attachment type\");\n }\n attachment = list;\n }\n if (json.containsKey(\"headers\")) {\n headers = jsonToMultiMap(json);\n }\n }", "public void sendEmail() {\n\t\tSystem.out.println(\"Loading session and Authenticating\");\n\t\tfinal Session session = Session.getInstance(getProtocolProporties(PROTOCOL_SEND), new Authenticator() {\n\n\t\t\t@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(getProperty(\"username\"), getPassword());\n\t\t\t}\n\n\t\t});\n\t\tif(null == session) {\n\t\t\tSystem.err.println(\"Session is null, cann't proceed\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Authenticated, will try to send an email\");\n\n\t\ttry {\n\t\t\tfinal Message message = new MimeMessage(session) {\n\t\t\t\t//Print the message to console\n\t\t\t\t@Override\n\t\t\t\tpublic String toString() {\n\t\t\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"From : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getFrom())\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"To : \").append(\"\\n\");\n\t\t\t\t\t\tfor (Address address : this.getRecipients(Message.RecipientType.TO))\n\t\t\t\t\t\t\tstringBuilder.append(address).append(\"\\n\");\n\t\t\t\t\t\tstringBuilder.append(\"Subject : \").append(\"\\n\").append(this.getSubject());\n\t\t\t\t\t\tstringBuilder.append(\"\\n\").append(\"Sent Date : \").append(this.getSentDate());\n\t\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\treturn stringBuilder.toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t//Get Mail field details\n\t\t\tmessage.setFrom(new InternetAddress(getProperty(\"username\")));\n\t\t\tmessage.setRecipient(Message.RecipientType.TO, new InternetAddress(getUserInput(\"to\")));\n\t\t\tmessage.setSubject(getUserInput(\"subject\"));\n\t\t\tmessage.setText(getUserInput(\"messageContent\"));\n\t\t\tmessage.setSentDate(new Date());\n\t\t\tSystem.out.println(\"Sending the mail as details below :\");\n\t\t\tSystem.out.println(message);\n\t\t\t\n\t\t\t//Send email here, this throws exception if fails\n\t\t\tTransport.send(message);\n\t\t\t\n\t\t\tSystem.out.println(\"Email Sent\");\n\t\t} catch (final MessagingException ex) {\n\t\t\tSystem.err.println(\"Error: \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public EmailLogger(DbUserSession user) {\n \tsuper(user);\n }", "public Mail make() {\n\n MailerMail mail = null;\n if(mailInstance != null) {\n mail = new MailerMail(mailInstance);\n } else {\n mail = new MailerMail();\n }\n\n if(mailer.getUser() != null) {\n mail.setFrom(mailer.getUser());\n }\n if(this.from != null) {\n mail.setFrom(this.from);\n }\n\n if(this.toList.size() == 0 || mail.getFrom() == null) {\n return new NullMail();\n }\n\n mail.setToList(toList);\n mail.setCcList(ccList);\n mail.setBccList(bccList);\n mail.setSubject(subject);\n mail.setBody(body);\n mail.setAttachments(attachments);\n mail.setMailer(mailer);\n\n return mail;\n }", "public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"[email protected]\";\n }", "public void sendMail(String to, String cc, String bcc, String templateName, Object... parameters);", "public Notification()\n\t{\n\t\t\n\t}", "public AmqpMessage() {}", "public Emailer(Context page, String email, String subject, String key) {\n this.lContext = page;\n this.email = email;\n this.subject = subject;\n this.message = key;\n\n checkConnection();\n }" ]
[ "0.727833", "0.72441757", "0.7190312", "0.70505583", "0.6904634", "0.689538", "0.68604547", "0.68109256", "0.6775626", "0.6764764", "0.6722615", "0.67186755", "0.6710817", "0.66198474", "0.65784377", "0.657643", "0.6569413", "0.6455452", "0.6452451", "0.63683635", "0.633829", "0.63245505", "0.6323016", "0.6303642", "0.62908304", "0.6278868", "0.6259401", "0.62378466", "0.62368697", "0.62288857", "0.6216259", "0.61964774", "0.61695445", "0.61631936", "0.61367553", "0.6109148", "0.6055771", "0.60412645", "0.6014699", "0.60124564", "0.6011553", "0.5993766", "0.59889174", "0.59839964", "0.5954945", "0.5947018", "0.5942958", "0.591101", "0.5910783", "0.59106934", "0.58742726", "0.58562547", "0.5855082", "0.58506805", "0.5841986", "0.5835243", "0.5835204", "0.5831567", "0.58213514", "0.58188707", "0.5798383", "0.5768827", "0.57681006", "0.57653373", "0.5761536", "0.57589746", "0.57562685", "0.5754137", "0.5737627", "0.5729699", "0.57292753", "0.5726772", "0.57227796", "0.5718366", "0.5697453", "0.56857187", "0.56732607", "0.5670008", "0.56690145", "0.56667536", "0.56565577", "0.5655413", "0.5647741", "0.56437796", "0.5639776", "0.56288785", "0.56105995", "0.5591131", "0.5588782", "0.5584859", "0.5583028", "0.55778104", "0.55735785", "0.55617815", "0.5558927", "0.5553542", "0.5552217", "0.5551637", "0.5543833", "0.5537349" ]
0.6420437
19
Constructor: Use for emails without attachments
public Email(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String body) { this.from = from; this.to = to; this.cc = cc; this.bcc = bcc; this.subject = subject; this.body = body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SimpleAttachment() {\n }", "public MailMessage() {\n }", "public Email(){}", "public Email() {\n\t}", "public PurchaseRequestAttachment() {\r\n }", "public PurchaseRequestAttachmentContent() {\r\n }", "public MimeMultipart() {\n/* 163 */ this(\"mixed\");\n/* */ }", "private EMailUtil() {}", "public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }", "public MailSender() {\r\n }", "public MimeMessage createEmptyMessage();", "public OutMail () {\r\n\t\tsuper();\r\n\t}", "public MailHelper()\n {\n\n }", "@Override\n\tpublic List<File> getEmailAttachments() {\n\t\treturn null;\n\t}", "public MailSender(Logger logger, String subject, String htmlBody, String textBody, Collection<File> attachments, String recipient, String sender, List<String> cc, List<String> bcc, boolean deliveryReceipt, boolean readReceipt, String host, long port, String securityProtocol, String user, String password)\n {\n _logger = logger;\n _subject = subject;\n _htmlBody = htmlBody;\n _textBody = textBody;\n _attachments = attachments;\n _recipient = recipient;\n _sender = sender;\n _cc = cc;\n _bcc = bcc;\n _deliveryReceipt = deliveryReceipt;\n _readReceipt = readReceipt;\n _host = host;\n _port = port;\n _securityProtocol = securityProtocol;\n _user = user;\n _password = password;\n }", "public MimeMultipart(DataSource ds) throws MessagingException {\n/* 206 */ if (ds instanceof MessageAware) {\n/* 207 */ MessageContext mc = ((MessageAware)ds).getMessageContext();\n/* 208 */ setParent(mc.getPart());\n/* */ } \n/* */ \n/* 211 */ if (ds instanceof MultipartDataSource) {\n/* */ \n/* 213 */ setMultipartDataSource((MultipartDataSource)ds);\n/* */ \n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 219 */ this.parsed = false;\n/* 220 */ this.ds = ds;\n/* 221 */ this.contentType = ds.getContentType();\n/* */ }", "public Message(){\n this.body = null;\n this.contact = null;\n }", "public EmailException()\n {\n super();\n }", "public InvalidEmail() {\n super();\n this.setSubject(invalidEmailSubject);\n this.setBody(invalidEmailBody);\n }", "public MailcapFile() {\n/* 113 */ if (LogSupport.isLoggable()) {\n/* 114 */ LogSupport.log(\"new MailcapFile: default\");\n/* */ }\n/* */ }", "public EmailService() {\n }", "public Mail() {\n this.login();\n this.setMessages();\n }", "public MailMessage(JsonObject json) {\n Objects.requireNonNull(json);\n bounceAddress = json.getString(\"bounceAddress\");\n from = json.getString(\"from\");\n to = getKeyAsStringOrList(json, \"to\");\n cc = getKeyAsStringOrList(json, \"cc\");\n bcc = getKeyAsStringOrList(json, \"bcc\");\n subject = json.getString(\"subject\");\n text = json.getString(\"text\");\n html = json.getString(\"html\");\n if (json.containsKey(\"attachment\")) {\n List<MailAttachment> list;\n Object object = json.getValue(\"attachment\");\n if (object instanceof JsonObject) {\n list = Collections.singletonList(new MailAttachment((JsonObject) object));\n } else if (object instanceof JsonArray) {\n list = new ArrayList<>();\n for (Object attach : (JsonArray) object) {\n list.add(new MailAttachment((JsonObject) attach));\n }\n } else {\n throw new IllegalArgumentException(\"invalid attachment type\");\n }\n attachment = list;\n }\n if (json.containsKey(\"headers\")) {\n headers = jsonToMultiMap(json);\n }\n }", "public ImMessage() {\r\n }", "public MailCommand() {\n this(\"\");\n }", "public SignedMessagePart(){\n }", "public Message(){}", "protected EmailMessageSchema() {\n\t\tsuper();\n\t}", "public EmailObj(String to, String from, String subject, String body) {\n this(to, from, subject, body, \"localhost\");\n }", "public interface SMTPAttachment extends SMTPComponent {\n\n // Attribute names\n public static final String ATTR_ATTACHMENT_CONTENT_PART = \"attachmentContentPart\";\n public static final String ATTR_ATTACHMENT_FILE_NAME_PART = \"attachmentFileNamePart\";\n public static final String ATTR_READ_FROM_FILE = \"readFromFile\";\n public static final String ATTR_CONTENT_TYPE = \"contentType\";\n public static final String ATTR_DISPOSITION = \"disposition\";\n\n public void setAttachmentContentPart(String attachmentContentPart);\n\n public String getAttachmentContentPart();\n\n public void setAttachmentFileNamePart(String attachmentFileNamePart);\n\n public String getAttachmentFileNamePart();\n\n public void setReadFromFile(String filePath);\n\n public String getReadFromFile();\n\n public void setContentType(String contentType);\n\n public String getContentType();\n\n public void setDisposition(String disposition);\n\n public String getDisposition();\n}", "public Message() {}", "public Message() {}", "public ExchangeInfo() {\n super();\n }", "public EmailFragment() {\n }", "public EmailDailyReportOfZA() {\n\t}", "public EmailSender()\r\n {\r\n this(\"javaemailsender\" ,\"sendtestemail\");\r\n }", "public AmqpMessage() {}", "public EmailAddNoSendServlet() {\r\n\t\tsuper();\r\n\t}", "protected abstract ExtensionAttachment instantiateExtensionAttachment();", "protected FileMessage(MessageWireType wireId) {\n super(wireId);\n }", "public VoiceMail(Document document, String ser) {\r\n\t\tsuper(document, ser);\r\n\t}", "public PromoMessages() {\n }", "public FeedbackMessages()\n\t{\n\t}", "public MultiChannelMessageImpl() {\n }", "public MessageRequest() {\n\t}", "public Message() {\n\t\tsuper();\n\t}", "public Message() {\n }", "public ContactedUsComments() {\r\n }", "public Notifications() {\n \n \t}", "public Message() {\n }", "public Message() {\n }", "@Override\n\tpublic List<InlineAttachment> getEmailInline() {\n\t\treturn null;\n\t}", "public MultiPart(){}", "@Override\r\n\tpublic Notification createEmailNotification() {\n\t\treturn null;\r\n\t}", "public Subject() {\n\t}", "public Invitation(){}", "public MailItem(String from, String to, String message, String subject)\r\n {\r\n this.from = from;\r\n this.to = to;\r\n this.message = message;\r\n this.subject = subject;\r\n }", "private S_NewMail(Builder builder) {\n super(builder);\n }", "public ActHiAttachmentDao() {\n super(ActHiAttachment.ACT_HI_ATTACHMENT, cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment.class);\n }", "public CaixaDeEntrada() {\n this.emails = new ArrayList<Mensagem>();\n this.emptyMessage = new Mensagem(\"\", \"\");\n }", "public SMTPEmailTransport()\n throws EmailException\n {\n this(\"localhost\");\n }", "public Contact() {\n super();\n }", "public PurchaseRequestAttachment(Integer id) {\r\n super(id);\r\n }", "public ReplicateObjectMessageFactory() {\n super(null);\n }", "public VelocityEmailException()\n {\n super();\n }", "public MimeMessage build() throws MessagingException, IOException {\n\n if (attachments != null && !attachments.isEmpty()) {\n MimeMultipart multipart = new MimeMultipart();\n MimeBodyPart body = new MimeBodyPart();\n setMessageContent(body);\n multipart.addBodyPart(body);\n String[] attachFiles = attachments.split(\",\");\n for (String filePath : attachFiles) {\n addAttachment(multipart, filePath);\n }\n message.setContent(multipart, MULTIPART_TYPE);\n } else {\n setMessageContent(message);\n }\n return message;\n }", "public EmptyMessageProcessor() {\n\n }", "public EmailUtil(String host) {\n\t\tsuper();\n\n\t\t // Get system properties\n\t\t Properties properties = System.getProperties();\n\n\t\t // Setup mail server\n\t\t properties.setProperty(\"mail.smtp.host\", host);\n\n\t\t // Get the Session object.\n\t\t session = Session.getInstance(properties);\n\t}", "public Invitation() {\n }", "private static MimeMessage createEmailWithAttachment(String from, String fromName, String subject,\n String bodyPlainText, String bodyHtmlText, String fileDir, String filename, String contentType, Date dateSent, String... to) throws IOException, MessagingException {\n final Properties props = new Properties();\n final Session session = Session.getDefaultInstance(props, null);\n\n final MimeMessage email = new MimeMessage(session);\n\n final InternetAddress fAddress = new InternetAddress(from, fromName);\n email.setFrom(fAddress);\n\n for(String toString : to) {\n final InternetAddress tAddress = new InternetAddress(toString);\n email.addRecipient(javax.mail.Message.RecipientType.TO, tAddress);\n }\n\n email.setSubject(subject);\n email.setSentDate(dateSent);\n\n final Multipart multipartMixed = new MimeMultipart(\"mixed\");\n\n final MimeBodyPart mixedPart = new MimeBodyPart();\n Multipart multipart = new MimeMultipart(\"alternative\");\n mixedPart.setContent(multipart);\n\n // Plain text message\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyPlainText, \"text/plain\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/plain; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n // HTML message\n mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyHtmlText, \"text/html\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/html; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n multipartMixed.addBodyPart(mixedPart);\n\n if(fileDir != null && filename != null) {\n // Attachment\n mimeBodyPart = new MimeBodyPart();\n DataSource source = new FileDataSource(fileDir + \"/\" + filename);\n mimeBodyPart.setDataHandler(new DataHandler(source));\n mimeBodyPart.setFileName(filename);\n mimeBodyPart.setHeader(\"Content-Type\", contentType + \"; name=\\\"\" + filename + \"\\\"\");\n mimeBodyPart.setHeader(\"Content-Transfer-Encoding\", \"binary\");\n multipartMixed.addBodyPart(mimeBodyPart);\n }\n\n email.setContent(multipartMixed);\n\n return email;\n }", "public MessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "void sendMessageWithAttachment (EmailObject object, String pathToAttachment) throws Exception;", "public Email(String from, List<String> replyTo, List<String> to, List<String> cc, List<String> bcc, String subject, String body, boolean html, List<MimeBodyPart> bodyParts) {\n\t\tthis.from = from;\n\t\tthis.replyTo = replyTo;\n\t\tthis.to = to;\n\t\tthis.cc = cc;\n\t\tthis.bcc = bcc;\n\t\tthis.subject = subject;\n\t\tthis.body = body;\n\t\tthis.html = html;\n\t\tthis.bodyParts = bodyParts;\n\t}", "public FileObject() {\n\t}", "public WebmailLogo() {\n\n }", "public Contact() {\n\t}", "public SmtpConfiguration() {\n }", "public Modify_MAIL() {\n initComponents();\n }", "public PDContactSend() {\n this.email = new ArrayList<>();\n this.phone = new ArrayList<>();\n this.active_flag = true;\n }", "public Notification()\n\t{\n\t\t\n\t}", "protected MimeBodyPart createMimeBodyPart(InputStream is) throws MessagingException {\n/* 1217 */ return new MimeBodyPart(is);\n/* */ }", "public MailMessage(String from, String to, String subject, String text) {\n this.from = from;\n this.to = asList(to);\n this.subject = subject;\n this.text = text;\n }", "private Message(){\n // default constructor\n }", "protected MeetingRequest(ItemAttachment parentAttachment) throws Exception {\n\t\tsuper(parentAttachment);\n\t}", "private Message createMessageWithEmail(MimeMessage email) throws MessagingException, IOException {\n\t\tByteArrayOutputStream bytes = new ByteArrayOutputStream();\n\t\temail.writeTo(bytes);\n\t\tString encodedEmail = Base64.encodeBase64URLSafeString(bytes.toByteArray());\n\t\tMessage message = new Message();\n\t\tmessage.setRaw(encodedEmail);\n\t\treturn message;\n\n\t}", "@Override\n\tpublic void createDigestEmail() {\n\n\t}", "public XmlAdaptedReminder() {}", "public Contact(){}", "public ExchangeDesk(){\n }", "public void createNoSubject() {\n\n }", "public SimpleAttachment build() {\n \t\treturn new SimpleAttachment(this);\n \t}", "public MessageEntity() {\n }", "public MassMsgFrame() {\n\t}", "public Message(MessageKey key, String data) {\n\tthis.key = key;\n\tthis.data = data;\n\n\tattachment = null;\n }", "public MessageTran() {\n\t}", "public MailSendObj() {\n\t\t// TODO Auto-generated constructor stub\n\t\tprops.setProperty(\"mail.transport.protocol\", \"smtp\"); // 使用的协议(JavaMail规范要求) \n props.put(\"mail.smtp.host\", \"smtp.office365.com\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\",\"true\");\n props.put(\"mail.smtp.auth\", \"true\"); \n\t\t\n\t}", "public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }", "private FileUtility() {\r\n\t}", "public MailProvider(ProviderProperties providerProperties) {\n super(providerProperties);\n }", "public ExternalFileMgrImpl()\r\n \t{\r\n \t\t\r\n \t}" ]
[ "0.7610495", "0.70935255", "0.7021509", "0.6989137", "0.6978029", "0.6945904", "0.6902395", "0.68970525", "0.68595105", "0.68006027", "0.67184645", "0.6637451", "0.6410448", "0.63937825", "0.6326652", "0.6271227", "0.626121", "0.620039", "0.615309", "0.61075217", "0.6092517", "0.60917604", "0.60528296", "0.6037768", "0.59558994", "0.5933734", "0.59227276", "0.5919749", "0.5892972", "0.5872363", "0.58692497", "0.58692497", "0.5847634", "0.5840531", "0.58084995", "0.58032596", "0.57877874", "0.57872", "0.57703125", "0.57640487", "0.5748551", "0.5738063", "0.5734274", "0.57237", "0.57023823", "0.5699339", "0.5685516", "0.56702524", "0.56656724", "0.5650993", "0.5650993", "0.5642734", "0.5636733", "0.5634877", "0.56306976", "0.56283355", "0.56277454", "0.5610726", "0.56082964", "0.55968684", "0.55956495", "0.5588162", "0.5575984", "0.55748814", "0.55718255", "0.5562588", "0.555894", "0.5550876", "0.554186", "0.55384433", "0.55354923", "0.55168635", "0.5513921", "0.55061954", "0.55052084", "0.55003554", "0.54955006", "0.5488462", "0.54843795", "0.54822636", "0.5481049", "0.5451012", "0.54457164", "0.54423195", "0.5439165", "0.5426826", "0.5420149", "0.5419215", "0.5416633", "0.5407942", "0.54074764", "0.54063046", "0.5402681", "0.5393551", "0.53919274", "0.5391361", "0.53899205", "0.53818095", "0.5378785", "0.53785425" ]
0.5457612
81
Full Constructor: Use for emails with attachments
public Email(String from, List<String> replyTo, List<String> to, List<String> cc, List<String> bcc, String subject, String body, boolean html, List<MimeBodyPart> bodyParts) { this.from = from; this.replyTo = replyTo; this.to = to; this.cc = cc; this.bcc = bcc; this.subject = subject; this.body = body; this.html = html; this.bodyParts = bodyParts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SimpleAttachment() {\n }", "public PurchaseRequestAttachment() {\r\n }", "public PurchaseRequestAttachmentContent() {\r\n }", "public MimeMultipart() {\n/* 163 */ this(\"mixed\");\n/* */ }", "public MimeMultipart(DataSource ds) throws MessagingException {\n/* 206 */ if (ds instanceof MessageAware) {\n/* 207 */ MessageContext mc = ((MessageAware)ds).getMessageContext();\n/* 208 */ setParent(mc.getPart());\n/* */ } \n/* */ \n/* 211 */ if (ds instanceof MultipartDataSource) {\n/* */ \n/* 213 */ setMultipartDataSource((MultipartDataSource)ds);\n/* */ \n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 219 */ this.parsed = false;\n/* 220 */ this.ds = ds;\n/* 221 */ this.contentType = ds.getContentType();\n/* */ }", "public MailMessage() {\n }", "public MailSender(Logger logger, String subject, String htmlBody, String textBody, Collection<File> attachments, String recipient, String sender, List<String> cc, List<String> bcc, boolean deliveryReceipt, boolean readReceipt, String host, long port, String securityProtocol, String user, String password)\n {\n _logger = logger;\n _subject = subject;\n _htmlBody = htmlBody;\n _textBody = textBody;\n _attachments = attachments;\n _recipient = recipient;\n _sender = sender;\n _cc = cc;\n _bcc = bcc;\n _deliveryReceipt = deliveryReceipt;\n _readReceipt = readReceipt;\n _host = host;\n _port = port;\n _securityProtocol = securityProtocol;\n _user = user;\n _password = password;\n }", "public Email() {\n\t}", "public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }", "public Email(){}", "public MailSender() {\r\n }", "protected abstract ExtensionAttachment instantiateExtensionAttachment();", "private EMailUtil() {}", "public MailMessage(JsonObject json) {\n Objects.requireNonNull(json);\n bounceAddress = json.getString(\"bounceAddress\");\n from = json.getString(\"from\");\n to = getKeyAsStringOrList(json, \"to\");\n cc = getKeyAsStringOrList(json, \"cc\");\n bcc = getKeyAsStringOrList(json, \"bcc\");\n subject = json.getString(\"subject\");\n text = json.getString(\"text\");\n html = json.getString(\"html\");\n if (json.containsKey(\"attachment\")) {\n List<MailAttachment> list;\n Object object = json.getValue(\"attachment\");\n if (object instanceof JsonObject) {\n list = Collections.singletonList(new MailAttachment((JsonObject) object));\n } else if (object instanceof JsonArray) {\n list = new ArrayList<>();\n for (Object attach : (JsonArray) object) {\n list.add(new MailAttachment((JsonObject) attach));\n }\n } else {\n throw new IllegalArgumentException(\"invalid attachment type\");\n }\n attachment = list;\n }\n if (json.containsKey(\"headers\")) {\n headers = jsonToMultiMap(json);\n }\n }", "public SignedMessagePart(){\n }", "public interface SMTPAttachment extends SMTPComponent {\n\n // Attribute names\n public static final String ATTR_ATTACHMENT_CONTENT_PART = \"attachmentContentPart\";\n public static final String ATTR_ATTACHMENT_FILE_NAME_PART = \"attachmentFileNamePart\";\n public static final String ATTR_READ_FROM_FILE = \"readFromFile\";\n public static final String ATTR_CONTENT_TYPE = \"contentType\";\n public static final String ATTR_DISPOSITION = \"disposition\";\n\n public void setAttachmentContentPart(String attachmentContentPart);\n\n public String getAttachmentContentPart();\n\n public void setAttachmentFileNamePart(String attachmentFileNamePart);\n\n public String getAttachmentFileNamePart();\n\n public void setReadFromFile(String filePath);\n\n public String getReadFromFile();\n\n public void setContentType(String contentType);\n\n public String getContentType();\n\n public void setDisposition(String disposition);\n\n public String getDisposition();\n}", "protected FileMessage(MessageWireType wireId) {\n super(wireId);\n }", "public MultiPart(){}", "private static MimeMessage createEmailWithAttachment(String from, String fromName, String subject,\n String bodyPlainText, String bodyHtmlText, String fileDir, String filename, String contentType, Date dateSent, String... to) throws IOException, MessagingException {\n final Properties props = new Properties();\n final Session session = Session.getDefaultInstance(props, null);\n\n final MimeMessage email = new MimeMessage(session);\n\n final InternetAddress fAddress = new InternetAddress(from, fromName);\n email.setFrom(fAddress);\n\n for(String toString : to) {\n final InternetAddress tAddress = new InternetAddress(toString);\n email.addRecipient(javax.mail.Message.RecipientType.TO, tAddress);\n }\n\n email.setSubject(subject);\n email.setSentDate(dateSent);\n\n final Multipart multipartMixed = new MimeMultipart(\"mixed\");\n\n final MimeBodyPart mixedPart = new MimeBodyPart();\n Multipart multipart = new MimeMultipart(\"alternative\");\n mixedPart.setContent(multipart);\n\n // Plain text message\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyPlainText, \"text/plain\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/plain; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n // HTML message\n mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyHtmlText, \"text/html\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/html; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n multipartMixed.addBodyPart(mixedPart);\n\n if(fileDir != null && filename != null) {\n // Attachment\n mimeBodyPart = new MimeBodyPart();\n DataSource source = new FileDataSource(fileDir + \"/\" + filename);\n mimeBodyPart.setDataHandler(new DataHandler(source));\n mimeBodyPart.setFileName(filename);\n mimeBodyPart.setHeader(\"Content-Type\", contentType + \"; name=\\\"\" + filename + \"\\\"\");\n mimeBodyPart.setHeader(\"Content-Transfer-Encoding\", \"binary\");\n multipartMixed.addBodyPart(mimeBodyPart);\n }\n\n email.setContent(multipartMixed);\n\n return email;\n }", "public MailcapFile() {\n/* 113 */ if (LogSupport.isLoggable()) {\n/* 114 */ LogSupport.log(\"new MailcapFile: default\");\n/* */ }\n/* */ }", "void sendMessageWithAttachment (EmailObject object, String pathToAttachment) throws Exception;", "public MimeMessage build() throws MessagingException, IOException {\n\n if (attachments != null && !attachments.isEmpty()) {\n MimeMultipart multipart = new MimeMultipart();\n MimeBodyPart body = new MimeBodyPart();\n setMessageContent(body);\n multipart.addBodyPart(body);\n String[] attachFiles = attachments.split(\",\");\n for (String filePath : attachFiles) {\n addAttachment(multipart, filePath);\n }\n message.setContent(multipart, MULTIPART_TYPE);\n } else {\n setMessageContent(message);\n }\n return message;\n }", "public MailHelper()\n {\n\n }", "public SimpleAttachment build() {\n \t\treturn new SimpleAttachment(this);\n \t}", "public PurchaseRequestAttachment(Integer id) {\r\n super(id);\r\n }", "public abstract AttachmentPart createAttachmentPart();", "public Message(MessageKey key, String data, Object attachment) {\n\tthis.key = key;\n\tthis.data = data;\n\n\tthis.attachment = attachment;\n }", "public OutMail () {\r\n\t\tsuper();\r\n\t}", "public EmailObj(String to, String from, String subject, String body) {\n this(to, from, subject, body, \"localhost\");\n }", "public VoiceMail(Document document, String ser) {\r\n\t\tsuper(document, ser);\r\n\t}", "@Override\n\tpublic MimeMessage createEmailWithAttachment(String to, String from, String subject, String bodyText,\n\t\t\tFile attachment,String mimeType) throws Exception {\n\t\tProperties props = new Properties();\n\t\tSession session = Session.getDefaultInstance(props, null);\n\n\t\tMimeMessage email = new MimeMessage(session);\n\t\tInternetAddress tAddress = new InternetAddress(to);\n\t\tInternetAddress fAddress = new InternetAddress(from);\n\n\t\temail.setFrom(fAddress);\n\t\temail.addRecipient(javax.mail.Message.RecipientType.TO, tAddress);\n\t\temail.setSubject(subject);\n\n\t\tMimeBodyPart mimeBodyPart = new MimeBodyPart();\n\t\tmimeBodyPart.setContent(bodyText, \"text/plain\");\n\t\tmimeBodyPart.setHeader(\"Content-Type\", \"text/plain; charset=\\\"UTF-8\\\"\");\n\n\t\tMultipart multipart = new MimeMultipart();\n\t\tmultipart.addBodyPart(mimeBodyPart);\n\n\t\tmimeBodyPart = new MimeBodyPart();\n\n\t\tDataSource source = new FileDataSource (attachment);\n\t\tDataHandler dh = new DataHandler(source);\n\t\t\n\t\tmimeBodyPart.setDataHandler(dh);\n\t\tmimeBodyPart.setFileName(attachment.getName());\n\n\t\tmimeBodyPart.setHeader(\"Content-Type\", mimeType + \"; name=\\\"\" + attachment.getName() + \"\\\"\");\n\t\tmimeBodyPart.setHeader(\"Content-Transfer-Encoding\", \"base64\");\n\n\t\tmultipart.addBodyPart(mimeBodyPart);\n\n\t\temail.setContent(multipart);\n\n\t\treturn email;\n\t}", "private ExcelAttachment(T attachment){\n\t\tthis.attachment=attachment;\n\t}", "public MimeMultipart(String subtype) {\n/* 179 */ String boundary = UniqueValue.getUniqueBoundaryValue();\n/* 180 */ ContentType cType = new ContentType(\"multipart\", subtype, null);\n/* 181 */ cType.setParameter(\"boundary\", boundary);\n/* 182 */ this.contentType = cType.toString();\n/* */ }", "public ImMessage() {\r\n }", "public PurchaseRequestAttachmentContent(Integer id) {\r\n super(id);\r\n }", "public FileObject() {\n\t}", "public EmailException()\n {\n super();\n }", "public EmailSender()\r\n {\r\n this(\"javaemailsender\" ,\"sendtestemail\");\r\n }", "protected MimeMultipart addAttachment(Multipart multipart, String filename, MimeBodyPart messageBodyPart )\r\n\t{\r\n\t\r\n\t\tDataSource source = new FileDataSource(filename);\r\n\t\tMimeMultipart multipart1 = (MimeMultipart) multipart;\r\n\t\ttry {\r\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(source));\r\n\t\t\tmessageBodyPart.setFileName(filename);\r\n\t\t\tmultipart1.addBodyPart(messageBodyPart);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\tlog.error(\"Problemas con archivo adjunto \"+filename +\" \"+ e);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn multipart1;\r\n\t}", "protected MimeBodyPart createMimeBodyPart(InputStream is) throws MessagingException {\n/* 1217 */ return new MimeBodyPart(is);\n/* */ }", "public Mail() {\n this.login();\n this.setMessages();\n }", "public MailItem(String from, String to, String message, String subject)\r\n {\r\n this.from = from;\r\n this.to = to;\r\n this.message = message;\r\n this.subject = subject;\r\n }", "protected MeetingRequest(ItemAttachment parentAttachment) throws Exception {\n\t\tsuper(parentAttachment);\n\t}", "public ActHiAttachmentDao() {\n super(ActHiAttachment.ACT_HI_ATTACHMENT, cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment.class);\n }", "public AncFile() {\n }", "public FileMessageFactory(Session session, String filename) throws MessageFactoryException\n {\n try\n {\n _filename = filename;\n _payload = FileUtils.readFileAsString(filename);\n _session = session;\n }\n catch (Exception e)\n {\n MessageFactoryException mfe = new MessageFactoryException(e.toString(), e);\n throw mfe;\n }\n }", "public MailcapFile(InputStream is) throws IOException {\n/* 104 */ if (LogSupport.isLoggable())\n/* 105 */ LogSupport.log(\"new MailcapFile: InputStream\"); \n/* 106 */ parse(new BufferedReader(new InputStreamReader(is, \"iso-8859-1\")));\n/* */ }", "private S_NewMail(Builder builder) {\n super(builder);\n }", "public ContactList(String inFileName)\n {\n filename = inFileName;\n }", "public MultipartHolder(List<File> files, MediaType fileMediaType, E payload) {\n\t\tthis.filesToSend = files;\n\t\tthis.payload = payload;\n\t\tthis.fileMediaType = fileMediaType;\n\t}", "public FileInvitationInfo(String contact, long filesize,\n String filename, String sessionId) {\n mContact = contact;\n mFileSize = filesize;\n mLastFileName = filename;\n mLastSessionId = sessionId;\n }", "public MailMessage(String from, String to, String subject, String text) {\n this.from = from;\n this.to = asList(to);\n this.subject = subject;\n this.text = text;\n }", "public Message(MessageKey key, String data) {\n\tthis.key = key;\n\tthis.data = data;\n\n\tattachment = null;\n }", "private static void addAttachment(Multipart multipart, String filepath) throws MessagingException {\r\n\t\tDataSource source = new FileDataSource(filepath);\r\n\t\tBodyPart messageBodyPart = new MimeBodyPart();\r\n\t\tmessageBodyPart.setDataHandler(new DataHandler(source));\r\n\t\tString fileName = \"\";\r\n\t\t\tfileName = filepath.substring(filepath.lastIndexOf(new Character(File.separatorChar).toString())+1,filepath.length());\r\n\t\t\tSystem.out.println(fileName);\r\n\t\tmessageBodyPart.setFileName(fileName);\r\n\t\tmultipart.addBodyPart(messageBodyPart);\r\n\t}", "public FileDicomBaseInner() {}", "private void addAttachments(Multipart multipart) throws MessagingException {\n\t\tEnumeration<?> properties = props.keys();\n\n\t\twhile (properties.hasMoreElements()) {\n\t\t\tString key = (String) properties.nextElement();\n\n\t\t\tif ((props.getPropertyMime(key) == null) || (key.equals(Email.MAIL_CONTENT)) || (key.equals(Email.MAIL_SUBJECT))|| (props.getPropertyPrivacy(key) == true)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbyte[] emailAttachment = props.getPropertyAttachment(key);\n\t\t\tString emailAttachmentName = null;\n\n\t\t\tif (emailAttachment == null) {\n\t\t\t\ttry {\n\t\t\t\t\temailAttachment = props.getProperty(key).getBytes(\"UTF-8\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ((emailAttachment == null) || (emailAttachment.length == 0)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (props.getPropertyAlternateName(key) != null) {\n\t\t\t\temailAttachmentName = props.getPropertyAlternateName(key);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\temailAttachmentName = key;\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINE)) {\n\t\t\t\tlogger.fine(Emit.messages.getString(\"AddAttachment\") + \" \" + emailAttachmentName + \",property:\" + key + \",MIME:\" + props.getPropertyMime(key) + \",length:\" + emailAttachment.length);\n\t\t\t}\n\n\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tByteArrayDataSource bads = new ByteArrayDataSource(emailAttachment, props.getPropertyMime(key));\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(bads));\n\t\t\tmessageBodyPart.setFileName(emailAttachmentName);\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\t\t}\n\t}", "private void addAttachment(MimeMultipart multipart, String filePath) throws MessagingException, IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n Tika tika = new Tika();\n String fileContentType = tika.detect(file);\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin,\n fileContentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "public Email(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String body) {\n\t\tthis.from = from;\n\t\tthis.to = to;\n\t\tthis.cc = cc;\n\t\tthis.bcc = bcc;\n\t\tthis.subject = subject;\n\t\tthis.body = body;\n\t}", "private Message createMessageWithEmail(MimeMessage email) throws MessagingException, IOException {\n\t\tByteArrayOutputStream bytes = new ByteArrayOutputStream();\n\t\temail.writeTo(bytes);\n\t\tString encodedEmail = Base64.encodeBase64URLSafeString(bytes.toByteArray());\n\t\tMessage message = new Message();\n\t\tmessage.setRaw(encodedEmail);\n\t\treturn message;\n\n\t}", "protected EmailHandler(String addresses, String mailServer, String fromAddress, String subject, Level severity)\n {\n this (addresses, mailServer, fromAddress, subject, severity, null, null);\n }", "@TransactionAttribute(REQUIRES_NEW)\n public void sendEmailWithAttachment(String[] to_addresses, String[] bc_addresses, String[] cc_addresses, String subject, String message, List<File> attachedFiles) throws AddressException,\n MessagingException {\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(prop.getProperty(\"smtp.username\"), prop.getProperty(\"smtp.password\"));\n }\n };\n\n session = Session.getInstance(getProperties(), auth);\n // creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(prop.getProperty(\"smtp.username\")));\n\n InternetAddress[] bcAddresses, ccAddresses;\n InternetAddress[] toAddresses = new InternetAddress[to_addresses.length];\n\n if (bc_addresses != null) {\n bcAddresses = new InternetAddress[bc_addresses.length];\n for (int x = 0; x < bc_addresses.length; x++) {\n bcAddresses[x] = new InternetAddress(bc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.BCC, bcAddresses);\n }\n\n if (cc_addresses != null) {\n ccAddresses = new InternetAddress[cc_addresses.length];\n for (int x = 0; x < cc_addresses.length; x++) {\n ccAddresses[x] = new InternetAddress(cc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.CC, ccAddresses);\n }\n\n for (int x = 0; x < to_addresses.length; x++) {\n toAddresses[x] = new InternetAddress(to_addresses[x]);\n }\n\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(subject);\n msg.setSentDate(new Date());\n\n // creates message part\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setContent(message, \"text/html\");\n\n // creates multi-part\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n\n // adds attachments\n if (attachedFiles != null && attachedFiles.size() > 0) {\n for (File aFile : attachedFiles) {\n MimeBodyPart attachPart = new MimeBodyPart();\n\n try {\n attachPart.attachFile(aFile);\n } catch (IOException ex) {\n Logger.getLogger(EmailSender.class.getName()).log(Level.SEVERE, \"Attching file failed\", ex);\n }\n\n multipart.addBodyPart(attachPart);\n }\n }\n\n // sets the multi-part as e-mail's content\n msg.setContent(multipart);\n\n // sends the e-mail\n Transport.send(msg);\n\n }", "public FileReceiver(String filename) {\r\n _fileName = filename;\r\n }", "public interface BlossomMailAttachment {\n void appendTo(MimeMessageHelper mimeMessageHelper) throws MessagingException;\n}", "protected EmailMessageSchema() {\n\t\tsuper();\n\t}", "public EmailService() {\n }", "private FSArquivo(Construtor construtor) {\n nome = construtor.nome;\n tipoMedia = construtor.tipoMedia;\n base = construtor.base;\n prefixo = construtor.prefixo;\n sufixo = construtor.sufixo;\n }", "public Message(){}", "private C_ReceiveAttachment(Builder builder) {\n super(builder);\n }", "private static void sendAttachmentEmail(Session session, String toEmail, String subject, String body) {\n try {\n MimeMessage msg = new MimeMessage(session);\n msg.addHeader(\"Content-type\", \"text/HTML; charset=UTF-8\");\n msg.addHeader(\"format\", \"flowed\");\n msg.addHeader(\"Content-Transfer-Encoding\", \"8bit\");\n msg.setFrom(new InternetAddress(\"[email protected]\", \"NoReply-JD\"));\n msg.setReplyTo(InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(subject, \"UTF-8\");\n msg.setSentDate(new Date());\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail, false));\n // Create the message body part\n BodyPart messageBodyPart = new MimeBodyPart();\n // Fill the message\n messageBodyPart.setText(body);\n // Create a multipart message for attachment\n Multipart multipart = new MimeMultipart();\n // Set text message part\n multipart.addBodyPart(messageBodyPart);\n // Second part is attachment\n messageBodyPart = new MimeBodyPart();\n String filename = \"abc.txt\";\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n multipart.addBodyPart(messageBodyPart);\n // Send the complete message parts\n msg.setContent(multipart);\n // Send message\n Transport.send(msg);\n System.out.println(\"EMail Sent Successfully with attachment!!\");\n } catch (MessagingException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "private S_ReceiveAttachment(Builder builder) {\n super(builder);\n }", "protected AbstractMessage(byte[] content, UserModel receiver) {\n this.content = content;\n this.sender = receiver;\n this.timestamp = System.currentTimeMillis();\n }", "public Message(String type, String content, String status, Long date, String sender) {\n if (type == null || type.isEmpty()) {\n throw new IllegalArgumentException(\"Type cannot be null or empty\");\n }\n if (!type.equals(\"text\") && !type.equals(\"image\") && !type.equals(\"location\")) {\n throw new IllegalArgumentException(\"Message object needs type of text, image or location\");\n }\n if (content == null || content.isEmpty()) {\n throw new IllegalArgumentException(\"Content cannot be null or empty\");\n }\n if (status == null || status.isEmpty()) {\n throw new IllegalArgumentException(\"Status cannot be null or empty\");\n }\n if (!status.equals(\"read\") && !status.equals(\"unread\")){\n throw new IllegalArgumentException(\"Message object needs a status of read or unread\");\n }\n if (date == null) {\n throw new IllegalArgumentException(\"Date cannot be null\");\n }\n if (sender == null || sender.isEmpty()) {\n throw new IllegalArgumentException(\"Sender cannot be null or empty\");\n }\n\n this.type = type;\n this.content = content;\n this.status = status;\n this.date = date;\n this.sender = sender;\n }", "@Override\n public AttachmentType addAttachment() {\n \treturn this;\n }", "private static Message createMessageWithEmail(MimeMessage emailContent)\n throws MessagingException, IOException {\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n emailContent.writeTo(buffer);\n byte[] bytes = buffer.toByteArray();\n String encodedEmail = Base64.encodeBase64URLSafeString(bytes);\n Message message = new Message();\n message.setRaw(encodedEmail);\n return message;\n }", "public MailCommand() {\n this(\"\");\n }", "public MessageBuilder withAttachments(String attachments) {\n\n if (StringUtils.isNotEmpty(attachments)) {\n this.attachments = attachments;\n }\n return this;\n }", "void sendAttachMail(String to, String subject, String content);", "public MailcapFile(String new_fname) throws IOException {\n/* 83 */ if (LogSupport.isLoggable())\n/* 84 */ LogSupport.log(\"new MailcapFile: file \" + new_fname); \n/* 85 */ FileReader reader = null;\n/* */ try {\n/* 87 */ reader = new FileReader(new_fname);\n/* 88 */ parse(new BufferedReader(reader));\n/* */ } finally {\n/* 90 */ if (reader != null) {\n/* */ try {\n/* 92 */ reader.close();\n/* 93 */ } catch (IOException ex) {}\n/* */ }\n/* */ } \n/* */ }", "protected EmailHandler(String addresses, String mailServer, String fromAddress, String subject, Level severity,\n String username, String password)\n {\n _addresses = TextUtils.removeExtraSpaces( addresses.trim() );\n _mailServer = mailServer;\n setLevel(severity);\n if (fromAddress != null) fromAddress = TextUtils.removeExtraSpaces( fromAddress.trim() );\n _fromAddress = fromAddress;\n _subject = subject;\n _username = username;\n _password = password;\n }", "public MimeMessage createEmptyMessage();", "public EmbedPhotoFormatter() {\n\t}", "public FeedbackMessages()\n\t{\n\t}", "public WebmailLogo() {\n\n }", "public Email(String from, String to, String subject, String body) {\n\t\tthis.from = from;\n\t\tthis.to.add(to);\n\t\tthis.subject = subject;\n\t\tthis.body = body;\n\t}", "public EmailUtil(String host) {\n\t\tsuper();\n\n\t\t // Get system properties\n\t\t Properties properties = System.getProperties();\n\n\t\t // Setup mail server\n\t\t properties.setProperty(\"mail.smtp.host\", host);\n\n\t\t // Get the Session object.\n\t\t session = Session.getInstance(properties);\n\t}", "@Override\n\tpublic List<File> getEmailAttachments() {\n\t\treturn null;\n\t}", "public ExternalFileMgrImpl()\r\n \t{\r\n \t\t\r\n \t}", "public InvalidEmail() {\n super();\n this.setSubject(invalidEmailSubject);\n this.setBody(invalidEmailBody);\n }", "public EmailDetails(EmailDetailsMessage emailDetailsMessage) {\n userId = emailDetailsMessage.getUserId();\n name = emailDetailsMessage.getName();\n email = emailDetailsMessage.getEmail();\n }", "public MultiChannelMessageImpl() {\n }", "public FileContentBody(String filePath) {\n mFilePath = filePath;\n }", "public Message(String messgeType, String contentLocation, String contentType){\n\t\tthis.messageInfo[0] = messgeType; \t// Request Type\n\t\tthis.messageInfo[1] = contentLocation;\t// Content URL\n\t\tthis.messageInfo[2] = contentType;\t// Content Type\n\n\t\theaderLines = new ArrayList<ArrayList<String>>();\n\t\tentity = new byte[0];\n\t}", "private FileEntry() {\n // intentionally empty\n }", "public MessageRequest() {\n\t}", "public AmqpMessage() {}", "@Override\n public Attachment loadAttachment(PeerResponse response) throws IdentifierException, NumberFormatException, NxtException {\n return new ArbitraryMessage(response);\n }", "private FileUtility() {\r\n\t}", "public SendFiles(String desIp) {\n this.init(desIp);\n }", "public ActionFile() {\n }", "public Message(){\n this.body = null;\n this.contact = null;\n }" ]
[ "0.787139", "0.72234637", "0.72201", "0.72072685", "0.69854885", "0.6694467", "0.65946066", "0.6552022", "0.65404636", "0.6474758", "0.64404976", "0.6400231", "0.6390039", "0.63645416", "0.63608766", "0.63477534", "0.63354445", "0.62957656", "0.6248563", "0.6177017", "0.61677456", "0.6147399", "0.6129382", "0.6108533", "0.6100632", "0.6071277", "0.6066799", "0.602463", "0.60151404", "0.6013519", "0.5941201", "0.5940094", "0.5928006", "0.58868", "0.5857564", "0.5851532", "0.5848309", "0.5838281", "0.5818187", "0.580104", "0.5800016", "0.57963", "0.5791098", "0.57594156", "0.5731135", "0.5729255", "0.57242334", "0.57176965", "0.5713135", "0.5708598", "0.5707339", "0.5697578", "0.56969804", "0.56860787", "0.5681666", "0.5676343", "0.56668794", "0.56538016", "0.5637566", "0.5629042", "0.562317", "0.56076384", "0.56017303", "0.5596072", "0.5595613", "0.5591129", "0.55754185", "0.55745953", "0.55718935", "0.55580616", "0.5551645", "0.5550454", "0.5546575", "0.554248", "0.55345035", "0.55241674", "0.5514771", "0.551435", "0.55139214", "0.5513534", "0.550234", "0.55000615", "0.549143", "0.5481398", "0.5479286", "0.54683983", "0.54644", "0.54610234", "0.5460545", "0.5457313", "0.5455905", "0.5453778", "0.54472095", "0.5443328", "0.54359686", "0.54356813", "0.5434282", "0.5423736", "0.54185945", "0.5413795" ]
0.5647518
58
Convenience method. Allows adding of many attachments on one method call. Does not allow you to handle your own exceptions.
public List<EmailAttachment> addEmailAttachments(EmailAttachment... attachment) { List<EmailAttachment> failedAttachments = new ArrayList<EmailAttachment>(); for (EmailAttachment emailAttachment : attachment) { try { boolean success = addEmailAttachment(emailAttachment); if (!success) { failedAttachments.add(emailAttachment); } } catch (Exception ex) { failedAttachments.add(emailAttachment); } } return failedAttachments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addAttachments(Multipart multipart) throws MessagingException {\n\t\tEnumeration<?> properties = props.keys();\n\n\t\twhile (properties.hasMoreElements()) {\n\t\t\tString key = (String) properties.nextElement();\n\n\t\t\tif ((props.getPropertyMime(key) == null) || (key.equals(Email.MAIL_CONTENT)) || (key.equals(Email.MAIL_SUBJECT))|| (props.getPropertyPrivacy(key) == true)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbyte[] emailAttachment = props.getPropertyAttachment(key);\n\t\t\tString emailAttachmentName = null;\n\n\t\t\tif (emailAttachment == null) {\n\t\t\t\ttry {\n\t\t\t\t\temailAttachment = props.getProperty(key).getBytes(\"UTF-8\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ((emailAttachment == null) || (emailAttachment.length == 0)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (props.getPropertyAlternateName(key) != null) {\n\t\t\t\temailAttachmentName = props.getPropertyAlternateName(key);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\temailAttachmentName = key;\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINE)) {\n\t\t\t\tlogger.fine(Emit.messages.getString(\"AddAttachment\") + \" \" + emailAttachmentName + \",property:\" + key + \",MIME:\" + props.getPropertyMime(key) + \",length:\" + emailAttachment.length);\n\t\t\t}\n\n\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tByteArrayDataSource bads = new ByteArrayDataSource(emailAttachment, props.getPropertyMime(key));\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(bads));\n\t\t\tmessageBodyPart.setFileName(emailAttachmentName);\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\t\t}\n\t}", "@Override\n public AttachmentType addAttachment() {\n \treturn this;\n }", "void onAddAttachments();", "org.hl7.fhir.Attachment addNewValueAttachment();", "private void addAttachment() {\n Intent intentFromGallery = new Intent();\n if (Build.VERSION.SDK_INT < 19) {\n intentFromGallery = new Intent(Intent.ACTION_GET_CONTENT);\n intentFromGallery.setType(\"image/*\");\n } else {\n intentFromGallery = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n }\n\n try {\n startActivityForResult(Intent.createChooser(intentFromGallery, \"请选择要上传的图片\"), ADD_ATTACHMENT);\n// 这个是进行裁剪\n// startActivityForResult(intentFromGallery, IMAGE_REQUEST_CODE);\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(this, \"无法选择文件,请先安装文件管理器\", Toast.LENGTH_SHORT).show();\n }\n }", "public abstract void addAttachmentPart(AttachmentPart attachmentpart);", "private void addAttachment(MimeMultipart multipart, String filePath) throws MessagingException, IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n Tika tika = new Tika();\n String fileContentType = tika.detect(file);\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin,\n fileContentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "private void getArticleAttachments(){\n\t\ttry{\n\t\t\tIN_ARTICLE_DETAILS = dataProvider.getArticleAttachemnts(IN_CATEGORYID, IN_ARTICLEID);\n\t\t\tIN_FILELIST = iCaching.parseData(new JSONArray(IN_ARTICLE_DETAILS.get(0).get(MEDIAATTACHMENT)));\n\t\t}catch(Exception e){\n\t\t\tIN_FILELIST = null;\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (IN_FILELIST !=null && IN_FILELIST.size()>0) {\n\t\t\t//prepare attachment list\n\t\t\tprepareFileList(IN_FILELIST,false);\n\t\t\tfileListAdapter = getFileListAdapter();\n\t\t\tlstAttachments.setAdapter(fileListAdapter);\n\t\t}\n\t}", "protected MimeMultipart addAttachment(Multipart multipart, String filename, MimeBodyPart messageBodyPart )\r\n\t{\r\n\t\r\n\t\tDataSource source = new FileDataSource(filename);\r\n\t\tMimeMultipart multipart1 = (MimeMultipart) multipart;\r\n\t\ttry {\r\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(source));\r\n\t\t\tmessageBodyPart.setFileName(filename);\r\n\t\t\tmultipart1.addBodyPart(messageBodyPart);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\tlog.error(\"Problemas con archivo adjunto \"+filename +\" \"+ e);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn multipart1;\r\n\t}", "private static void addAttachment(Multipart multipart, String filepath) throws MessagingException {\r\n\t\tDataSource source = new FileDataSource(filepath);\r\n\t\tBodyPart messageBodyPart = new MimeBodyPart();\r\n\t\tmessageBodyPart.setDataHandler(new DataHandler(source));\r\n\t\tString fileName = \"\";\r\n\t\t\tfileName = filepath.substring(filepath.lastIndexOf(new Character(File.separatorChar).toString())+1,filepath.length());\r\n\t\t\tSystem.out.println(fileName);\r\n\t\tmessageBodyPart.setFileName(fileName);\r\n\t\tmultipart.addBodyPart(messageBodyPart);\r\n\t}", "public void addAttachement(Attachment attachment) {\n if (attachments == null) {\n attachments = new ArrayList<Attachment>();\n }\n attachments.add(attachment);\n }", "public abstract Iterator getAttachments();", "List<Attachment> getAttachmentList(ContentIdentifier id);", "void sendMessageWithAttachment (EmailObject object, String pathToAttachment) throws Exception;", "private void addAttachment(MimeMultipart multipart, String filePath, String contentType) throws MessagingException,\n IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin, contentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "private void addAttachments(String attachments){\n if (attachments.isEmpty()){\n return;\n }\n\n String[] ids = attachments.split(\",\");\n for (String s : ids){\n Button b = constructCreationLinkButton(UUID.fromString(s));\n if (b != null){\n attachmentContainer.getChildren().add(b);\n }\n }\n }", "private HttpRequest applyMultipartDataTo(HttpRequest httpRequest, Report report) {\n httpRequest.part(\"report[identifier]\", report.getIdentifier());\n if (report.getFiles().length == 1) {\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding single file \" + report.getFileName() + \" to report \" + report.getIdentifier());\n return httpRequest.part(\"report[file]\", report.getFileName(), \"application/octet-stream\", report.getFile());\n }\n int n = 0;\n File[] arrfile = report.getFiles();\n int n2 = arrfile.length;\n int n3 = 0;\n do {\n Object object = httpRequest;\n if (n3 >= n2) return object;\n object = arrfile[n3];\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding file \" + ((File)object).getName() + \" to report \" + report.getIdentifier());\n httpRequest.part(\"report[file\" + n + \"]\", ((File)object).getName(), \"application/octet-stream\", (File)object);\n ++n;\n ++n3;\n } while (true);\n }", "public IAttachment attachFile()\n throws OculusException;", "public void buildAttachments(Connection db) throws SQLException {\n\t messageAttachments = new MessageAttachmentList(db,Constants.MESSAGE_FILE_ATTACHMENTS,this.getId());\n\t attachmentList = new ArrayList();\n\t}", "public abstract Iterator getAttachments(MimeHeaders headers);", "private void setAttachmentPart(final String[] attachmentPaths, final MimeMultipart related, final MimeMultipart attachment,\n final String body, final boolean htmlText)\n throws MessagingException {\n for (int i = 0; i < attachmentPaths.length; ++i) {\n // Creation du fichier e inclure\n final MimeBodyPart messageFilePart = new MimeBodyPart();\n final DataSource source = new FileDataSource(attachmentPaths[i]);\n final String fileName = source.getName();\n messageFilePart.setDataHandler(new DataHandler(source));\n messageFilePart.setFileName(fileName);\n // Image e inclure dans un texte au format HTML ou piece jointe\n if (htmlText && null != body && body.matches(\n \".*<img[^>]*src=[\\\"|']?cid:([\\\"|']?\" + fileName + \"[\\\"|']?)[^>]*>.*\")) {\n // \" <-- pour eviter une coloration syntaxique desastreuse...\n messageFilePart.setDisposition(\"inline\");\n messageFilePart.setHeader(\"Content-ID\", '<' + fileName + '>');\n related.addBodyPart(messageFilePart);\n } else {\n messageFilePart.setDisposition(\"attachment\");\n attachment.addBodyPart(messageFilePart);\n }\n }\n }", "public void setAttachments(List<Attachment> attachments) {\n this.attachments = null;\n\n if (attachments != null) {\n // Make sure the IDs are set correctly\n for (Attachment attachment : attachments) {\n addAttachement(attachment);\n }\n }\n }", "public abstract void removeAllAttachments();", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.ATTACH,\n adderName = \"attachment\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setAttachments(final Set<BwAttachment> val) {\n attachments = val;\n }", "@TransactionAttribute(REQUIRES_NEW)\n public void sendEmailWithAttachment(String[] to_addresses, String[] bc_addresses, String[] cc_addresses, String subject, String message, List<File> attachedFiles) throws AddressException,\n MessagingException {\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(prop.getProperty(\"smtp.username\"), prop.getProperty(\"smtp.password\"));\n }\n };\n\n session = Session.getInstance(getProperties(), auth);\n // creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(prop.getProperty(\"smtp.username\")));\n\n InternetAddress[] bcAddresses, ccAddresses;\n InternetAddress[] toAddresses = new InternetAddress[to_addresses.length];\n\n if (bc_addresses != null) {\n bcAddresses = new InternetAddress[bc_addresses.length];\n for (int x = 0; x < bc_addresses.length; x++) {\n bcAddresses[x] = new InternetAddress(bc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.BCC, bcAddresses);\n }\n\n if (cc_addresses != null) {\n ccAddresses = new InternetAddress[cc_addresses.length];\n for (int x = 0; x < cc_addresses.length; x++) {\n ccAddresses[x] = new InternetAddress(cc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.CC, ccAddresses);\n }\n\n for (int x = 0; x < to_addresses.length; x++) {\n toAddresses[x] = new InternetAddress(to_addresses[x]);\n }\n\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(subject);\n msg.setSentDate(new Date());\n\n // creates message part\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setContent(message, \"text/html\");\n\n // creates multi-part\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n\n // adds attachments\n if (attachedFiles != null && attachedFiles.size() > 0) {\n for (File aFile : attachedFiles) {\n MimeBodyPart attachPart = new MimeBodyPart();\n\n try {\n attachPart.attachFile(aFile);\n } catch (IOException ex) {\n Logger.getLogger(EmailSender.class.getName()).log(Level.SEVERE, \"Attching file failed\", ex);\n }\n\n multipart.addBodyPart(attachPart);\n }\n }\n\n // sets the multi-part as e-mail's content\n msg.setContent(multipart);\n\n // sends the e-mail\n Transport.send(msg);\n\n }", "public interface BlossomMailAttachment {\n void appendTo(MimeMessageHelper mimeMessageHelper) throws MessagingException;\n}", "public void setAttachmentsList(Connection db, String[] params) throws SQLException {\n \t if (params != null) {\n\t\t messageAttachments = new MessageAttachmentList();\n\t\t for (int i = 0; i < Arrays.asList(params).size(); i++) {\n\t\t\t\tint fileId = Integer.parseInt((String) Arrays.asList(params).get(i));\n\t\t\t\tmessageAttachments.addItem(fileId);\n\t\t\t}\n } else {\n \tmessageAttachments = new MessageAttachmentList();\n }\n }", "public IFileColl getAttachedFiles()\n throws OculusException;", "boolean hasHaveAttachment();", "public Object getAttachments() {\n return this.attachments;\n }", "public DocumentItem addAttachment(DocumentItemType type, Date date, String title, String mimeType, String body, String href) {\n final WindowViewer w = Platform.getWindowViewer();\n RenderableDataItem row = w.createRow(5, true);\n\n row.get(0).setValue(type.toString().toLowerCase(Locale.US));\n row.get(1).setValue(title);\n\n RenderableDataItem item = row.get(2);\n\n item.setType(RenderableDataItem.TYPE_DATETIME);\n item.setValue(date);\n row.get(3).setValue(\"false\");\n row.get(4).setValue(href);\n\n DocumentItem di = new DocumentItem(body, mimeType, type);\n\n di.rowData = row;\n\n if (docAttachments == null) {\n docAttachments = new ArrayList<Document.DocumentItem>(5);\n }\n\n docAttachments.add(di);\n return di;\n }", "public MailMessage setAttachment(List<MailAttachment> attachment) {\n this.attachment = attachment;\n return this;\n }", "private void addFilesInRequestEntity(MultipartEntity reqEntity) {\n if (filePath_image != null && filePath_image.length > 0) {\n\n for (int i = 0; i < filePath_image.length; i++) {\n if (filePath_image[i] != null) {\n File file = new File(filePath_image[i]);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileImage + i, fileBodyVideo);\n System.out.println(keyForUploadFileImage + i + \" RestClient: File \" + file);\n }\n }\n }\n if (filePath_video != null && filePath_video.length() > 0) {\n File file = new File(filePath_video);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileVideo, fileBodyVideo);\n System.out.println(keyForUploadFileVideo + \" RestClient: File \" + file);\n }\n }", "void add(MediaItem... items);", "public void setAttachmentList(ArrayList attachmentList) {\n this.attachmentList = attachmentList;\n }", "public List<Attachment> getAttachments(int requestId) {\n\t\tList<Attachment> list = new ArrayList<>();\n\t\t\n\t\tString sql = \"SELECT * FROM ATTACHMENT WHERE \" + ColumnNames.REQUESTIDENTIFIER + \" = ?\";\n\t\tPreparedStatement ps = prepareStatement(sql);\n\t\ttry {\n\t\t\tps.setInt(1, requestId);\n\t\t\tlist = preparedIterator(ps);\n\t\t} catch (SQLException ex) {\n\t\t\tlogger.error(\"Exception in getAttachments - Check your SQL params\", ex);\n\t\t}\n\t\treturn list;\n\t}", "private void dotheattachmentpart(int value, String urlNewString) {\n\n\t\tfor (int i = 0; i < value; i++) {\n\t\t\tSystem.out.println(\"attachment\" + i);\n\t\t\tJSONObject object = new JSONObject();\n\t\t\ttry {\n\t\t\t\tobject.put(\"filename\", \"Attachment\");\n\t\t\t\tobject.put(\"displayname\", \"Attachment\");\n\t\t\t\tobject.put(\"showAsImage\", true);\n\t\t\t\tobject.put(\"isUnrestricted\", false);\n\t\t\t\t// content value contains base64 value of bitmap\n\t\t\t\tSystem.out.println(\"encoded value is:\" + encode.get(i).path);\n\t\t\t\tobject.put(\"content\", encode.get(i).path);\n\t\t\t\t// doin background thread for request\n\t\t\t\tint j = DBAdpter.sendRequestforAttachment(object, urlNewString,\n\t\t\t\t\t\tMyApplication.getToken());\n\t\t\t\tif (j == 5) {\n\t\t\t\t\tLog.v(\"Results\", \"Successfully Uploaded\");\n\t\t\t\t} else if (j == 1) {\n\t\t\t\t\tLog.v(\"Results\", \"Error\");\n\t\t\t\t\tmakediallog(\"Error\", \"CannotUpload the file\");\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tencode.clear();\n\t\tqueueItemforApproval.clear();\n\t}", "private static <T> void addDumpsAttachments(List<T> from, Function<T, String> textMapper, List<Attachment> container) {\n int size = Math.min(from.size(), 20);\n int step = from.size() / size;\n for (int i = 0; i < size; i++) {\n Attachment attachment = new Attachment(DUMP_PREFIX + \"-\" + i + \".txt\", textMapper.apply(from.get(i * step)));\n attachment.setIncluded(true);\n container.add(attachment);\n }\n }", "public IFileColl getAttachedFiles(IDataSet args)\n throws OculusException;", "public void addAttachment(DocumentItemType type, Date date, String title, String href) {\n addAttachment(type, date, title, null, null, href);\n }", "public static void writeEnclosedExtensionAttachments(PSGenerator gen,\n Collection attachmentCollection) throws IOException {\n Iterator iter = attachmentCollection.iterator();\n while (iter.hasNext()) {\n PSExtensionAttachment attachment = (PSExtensionAttachment)iter.next();\n if (attachment != null) {\n writeEnclosedExtensionAttachment(gen, attachment);\n }\n iter.remove();\n }\n }", "public MimeMessage build() throws MessagingException, IOException {\n\n if (attachments != null && !attachments.isEmpty()) {\n MimeMultipart multipart = new MimeMultipart();\n MimeBodyPart body = new MimeBodyPart();\n setMessageContent(body);\n multipart.addBodyPart(body);\n String[] attachFiles = attachments.split(\",\");\n for (String filePath : attachFiles) {\n addAttachment(multipart, filePath);\n }\n message.setContent(multipart, MULTIPART_TYPE);\n } else {\n setMessageContent(message);\n }\n return message;\n }", "TrackerAttachments getTrackerAttachments(final Integer id);", "public abstract AttachmentPart createAttachmentPart();", "public boolean addEmailAttachment(EmailAttachment attachment) throws Exception {\n\t\tif (attachment.getBodyPart() == null) {\n\t\t\tboolean success = attachment.generateMimeBodyPart();\n\t\t\tif (!success) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tbodyParts.add(attachment.getBodyPart());\n\t\treturn true;\n\t}", "public void setAttachmentList(String[] criteriaString) {\n \t if (criteriaString != null) {\n\t\t messageAttachments = new MessageAttachmentList();\n\t\t for (int i = 0; i < Arrays.asList(criteriaString).size(); i++) {\n\t\t\t\tint fileId = Integer.parseInt((String) Arrays.asList(criteriaString).get(i));\n\t\t\t\tmessageAttachments.addItem(fileId);\n\t\t\t}\n } else {\n \tmessageAttachments = new MessageAttachmentList();\n }\n }", "TrackerAttachments loadTrackerAttachments(final Integer id);", "private static void drainResponseAttachments(RestLiResponseAttachments responseAttachments, Throwable e)\n {\n //Drop all attachments to send back on the ground as well.\n if (responseAttachments != null)\n {\n responseAttachments.getMultiPartMimeWriterBuilder().build().abortAllDataSources(e);\n }\n }", "public ArrayList getAttachmentList() {\n return attachmentList;\n }", "public List<File> getAttachments() {\r\n\t\treturn attachments;\r\n\t}", "public MessageBuilder withAttachments(String attachments) {\n\n if (StringUtils.isNotEmpty(attachments)) {\n this.attachments = attachments;\n }\n return this;\n }", "public void addExtensionAttachment(ExtensionAttachment attachment) {\n if (attachment == null) {\n throw new NullPointerException(\"Parameter attachment must not be null\");\n }\n if (extensionAttachments == null) {\n extensionAttachments = new java.util.ArrayList();\n }\n if (log.isDebugEnabled()) {\n getLogger().debug(\"ExtensionAttachment of category \" + attachment.getCategory() \n + \" added to \" + getName() + \": \" + attachment);\n }\n extensionAttachments.add(attachment);\n }", "public IFileColl getAttachedFiles(IDataSet args, boolean edit)\n throws OculusException;", "@Override\n\tpublic List<File> getEmailAttachments() {\n\t\treturn null;\n\t}", "boolean hasAttachment();", "public Object attachment(Object key);", "public abstract int countAttachments();", "private static MimeMessage createEmailWithAttachment(String from, String fromName, String subject,\n String bodyPlainText, String bodyHtmlText, String fileDir, String filename, String contentType, Date dateSent, String... to) throws IOException, MessagingException {\n final Properties props = new Properties();\n final Session session = Session.getDefaultInstance(props, null);\n\n final MimeMessage email = new MimeMessage(session);\n\n final InternetAddress fAddress = new InternetAddress(from, fromName);\n email.setFrom(fAddress);\n\n for(String toString : to) {\n final InternetAddress tAddress = new InternetAddress(toString);\n email.addRecipient(javax.mail.Message.RecipientType.TO, tAddress);\n }\n\n email.setSubject(subject);\n email.setSentDate(dateSent);\n\n final Multipart multipartMixed = new MimeMultipart(\"mixed\");\n\n final MimeBodyPart mixedPart = new MimeBodyPart();\n Multipart multipart = new MimeMultipart(\"alternative\");\n mixedPart.setContent(multipart);\n\n // Plain text message\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyPlainText, \"text/plain\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/plain; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n // HTML message\n mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyHtmlText, \"text/html\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/html; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n multipartMixed.addBodyPart(mixedPart);\n\n if(fileDir != null && filename != null) {\n // Attachment\n mimeBodyPart = new MimeBodyPart();\n DataSource source = new FileDataSource(fileDir + \"/\" + filename);\n mimeBodyPart.setDataHandler(new DataHandler(source));\n mimeBodyPart.setFileName(filename);\n mimeBodyPart.setHeader(\"Content-Type\", contentType + \"; name=\\\"\" + filename + \"\\\"\");\n mimeBodyPart.setHeader(\"Content-Transfer-Encoding\", \"binary\");\n multipartMixed.addBodyPart(mimeBodyPart);\n }\n\n email.setContent(multipartMixed);\n\n return email;\n }", "@Override\n\tpublic ArrayList<Attachment> getAttachment(String docType, int seq) {\n\t\treturn aDao.getAttachment(docType, seq);\n\t}", "public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo addNewAttachmentInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo)get_store().add_element_user(ATTACHMENTINFO$0);\n return target;\n }\n }", "@SuppressWarnings(\"unused\") private VeemContextBuilder attachmentApi(AttachmentApi a) {return this; }", "private void addFilesToWriter()\n throws Exception {\n Set<Map.Entry<String, Map.Entry<String, byte[]>>> set = files.entrySet();\n for (Map.Entry<String, Map.Entry<String, byte[]>> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\n \"Content-Disposition: form-data; name=\\\"\" + me.getKey()\n + \"\\\"; filename=\\\"\" + me.getValue().getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\n \"Content-Type: \"\n + URLConnection.guessContentTypeFromName(me.getValue().getKey()))\n .append(LINE_FEED);\n writer.append(LINE_FEED);\n writer.flush();\n\n outputStream.write(me.getValue().getValue(), 0, me.getValue().getValue().length);\n outputStream.flush();\n\n writer.append(LINE_FEED);\n writer.flush();\n }\n }", "protected void addAttachmentFiles(final IPath path, final String[] fileNames) {\n\t\t// Examples:\n\t\t// path: /Users/Marc/Downloads\n\t\t// name: motogp.bmp\n\t\t// filePath: /Users/Marc/Downloads/motogp.bmp\n\n\t\tattachments = new AttachmentInput[fileNames.length];\n\n\t\tint index = 0;\n\t\tfor (String name : fileNames) {\n\t\t\tIPath filePath = path.append(name);\n\t\t\tString uniqueFileName = createUniqueFileName(name);\n\t\t\tAttachment a;\n\t\t\ttry {\n\t\t\t\ta = new Attachment(filePath.toOSString(), \"\");\n\t\t\t\ta.setFilename(uniqueFileName);\n\t\t\t\tInputStream inputStream = new FileInputStream(\n\t\t\t\t\t\tfilePath.toOSString());\n\t\t\t\tattachments[index] = new AttachmentInput(uniqueFileName,\n\t\t\t\t\t\tinputStream);\n\t\t\t\tTableItem item = new TableItem(tableAttachments, SWT.NONE);\n\t\t\t\titem.setText(0, uniqueFileName);\n\t\t\t\titem.setText(1, \"\");\n\t\t\t\titem.setData(a);\n\t\t\t\tindex++;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public void setCombinedAttachments(com.sforce.soap.enterprise.QueryResult combinedAttachments) {\r\n this.combinedAttachments = combinedAttachments;\r\n }", "@Override\r\n\tpublic UserAttachment addUserAttachment(UserAttachment userAttachment) {\n\t\treturn null;\r\n\t}", "public MultipartHolder(List<File> files, MediaType fileMediaType, E payload) {\n\t\tthis.filesToSend = files;\n\t\tthis.payload = payload;\n\t\tthis.fileMediaType = fileMediaType;\n\t}", "private void addFilesInRequestEntity(MultipartEntity reqEntity, String keyForUploadFile, String filePath) {\n System.out.println(\"RestClient: FilePath \" + filePath);\n if (filePath != null && !\"\".equals(filePath)) {\n File file = new File(filePath);\n System.out.println(\"RestClient: File \" + file);\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFile, fileBodyVideo);\n }\n }", "private static void drainRequestAttachments(RestLiAttachmentReader requestAttachmentReader)\n {\n //Since this is eventually sent back as a success, we need to\n //drain any request attachments as well as any response attachments.\n //Normally this is done by StreamResponseCallbackAdaptor's onError, but\n //this is sent back as a success so we handle it here instead.\n if (requestAttachmentReader != null && !requestAttachmentReader.haveAllAttachmentsFinished())\n {\n try\n {\n //Here we simply call drainAllAttachments. At this point the current callback assigned is likely the\n //TopLevelReaderCallback in RestLiServer. When this callback is notified that draining is completed (via\n //onDrainComplete()), then no action is taken (which is what is desired).\n //\n //We can go ahead and send the error back to the client while we continue to drain the\n //bytes in the background. Note that it could be the case that even though there is an exception thrown,\n //that application code could still be reading these attachments. In such a case we would not be able to call\n //drainAllAttachments() successfully. Therefore we handle this exception and swallow.\n requestAttachmentReader.drainAllAttachments();\n }\n catch (RestLiAttachmentReaderException readerException)\n {\n //Swallow here.\n //It could be the case that the application code is still absorbing attachments.\n //We back off and send the original response to the client. If the application code is not doing this,\n //there is a chance for a resource leak. In such a case the framework can do nothing else.\n }\n }\n }", "public void addAttachment(String tiid, IAttachment attachment)\n throws HumanTaskManagerException {\n try {\n sdap.beginTx();\n TaskStructure taskStructure = new TaskStructure(tiid);\n taskStructure.addSelectedTaskAttachment(attachment);\n sdap.commitTx();\n } catch (HumanTaskManagerException e) {\n sdap.rollbackTx();\n throw new HumanTaskManagerException(e);\n } finally {\n sdap.close();\n }\n }", "default public <T> T attachment(Class<T> type) {\n return type.cast(attachment((Object) type));\n }", "public void uploadMultipart() {\n //getting the actual path of the image\n String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, \"todo\")\n .addFileToUpload(path, \"image\") //Adding file\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "public boolean addAttachment(String filePath, String attachmentName) {\n Assert.hasText(filePath, \"Path cannot be null or empty\");\n\n if(this.attachments == null)\n this.attachments = new LinkedList<>();\n\n File file = new File(filePath);\n Assert.notNull(file, \"File object could not be created from path\");\n\n String name = file.getName();\n\n\n if(StringUtils.hasText(attachmentName)) {\n char separator = '.';\n String extension;\n int extensionIndex = name.lastIndexOf(separator);\n if (extensionIndex > 0) {\n extension = separator + name.substring(extensionIndex + 1);\n name = attachmentName + extension;\n } else {\n name = attachmentName;\n }\n }\n\n this.attachments.add(new Attachment(name, file));\n\n return true;\n }", "public int addAttachment(Attachment attachment) {\n\t\tPreparedStatement ps = prepareInsert(attachment);\n\t\ttry {\n\t\t\treturn ps.executeUpdate();\n\t\t} catch (SQLException ex) {\n\t\t\tlogger.error(\"Exception in addAttachment - Problem in your SQL Insert query\", ex);\n\t\t\treturn 0;\n\t\t}\n\t}", "public com.sforce.soap.enterprise.QueryResult getCombinedAttachments() {\r\n return combinedAttachments;\r\n }", "public void setMessageAttachments(MessageAttachmentList attachments) {\n this.messageAttachments = attachments;\n }", "public IFileColl getAttachedFiles(boolean edit)\n throws OculusException;", "boolean hasHaveReceiveAttachment();", "public void addFile(MultipartFile multipartFile, String username) throws IOException {\n InputStream fis = multipartFile.getInputStream();\n // create an output buffer\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n // write data to the output buffer\n int nRead;\n byte[] data = new byte[1024];\n while ((nRead = fis.read(data, 0, data.length)) != -1) {\n buffer.write(data, 0, nRead);\n }\n buffer.flush();\n\n Integer userID = usersMapper.getUser(username).getUserID();\n String fileName = multipartFile.getOriginalFilename();\n Integer fileID = 0;\n String contentType = multipartFile.getContentType();\n String fileSize = String.valueOf(multipartFile.getSize());\n byte[] fileData = buffer.toByteArray();\n\n Files file = new Files(fileID, fileName, contentType,\n fileSize, userID, fileData);\n filesMapper.insertFile(file);\n }", "private boolean updateShareIntent() {\n boolean foundAllAttachments = false;\n\n if (shareProvider != null) {\n String to = getResources().getString(R.string.email_to);\n String subject = String.format(getResources().getString(R.string.email_subject), DeviceInfo.getDeviceID());\n String text = getResources().getString(R.string.email_body);\n\n // Set text fields\n Intent emailIntent = new Intent(Intent.ACTION_SEND_MULTIPLE);\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { to });\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n emailIntent.putExtra(Intent.EXTRA_TEXT, text);\n\n // Set attachments\n File tarAttachment = dataWriter.getDataTar();\n ArrayList<Uri> uris = new ArrayList<Uri>();\n\n if (tarAttachment.exists()) {\n Uri uri = FileProvider.getUriForFile(this, \"com.dell.research.touchscreenlogger.fileprovider\", tarAttachment);\n uris.add(uri);\n }\n\n if (!uris.isEmpty()) {\n foundAllAttachments = tarAttachment.exists();\n\n emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);\n shareProvider.setShareIntent(emailIntent);\n }\n }\n\n return foundAllAttachments;\n }", "int setAttachment(Attachment attachment) throws NotAuthorizedException;", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n switch (requestCode) {\n case (REQUEST_IMAGE_FROM_CAMERA):\n addAttach(mFile, ChatMessageAttachment.ChatMessageAttachmentType_image);\n break;\n case (REQUEST_IMAGE_FROM_GALLERY):\n addAttach(new File(getRealPathFromURI(data.getData())), ChatMessageAttachment.ChatMessageAttachmentType_image);\n break;\n case (REQUEST_VIDEO_FROM_CAMERA):\n addAttach(mFile, ChatMessageAttachment.ChatMessageAttachmentType_video);\n break;\n case (REQUEST_VIDEO_FROM_GALLERY):\n addAttach(new File(getRealPathFromURI(data.getData())), ChatMessageAttachment.ChatMessageAttachmentType_video);\n break;\n default:\n return;\n }\n }\n }", "@Override\r\n\tpublic List<UserAttachment> getAllUserAttachment() {\n\t\treturn null;\r\n\t}", "public interface AttachmentCommunicator {\n void postFileAttachment(Controller controller, Activity activity, String ticket_id, String user_id, FileAttachment fileAttachment, Controller.MethodTypes methodTypes);\n void getFileAttachmentList(Controller controller, Activity activity, String ticket_id, String user_id, Controller.MethodTypes methodTypes);\n void deleteFile(Controller controller, Activity activity, FileAttachment fileAttachment, Controller.MethodTypes methodTypes);\n}", "public void PDFAttachGenericFile(PDDocument doc, String filename, String relationship, String description,\n\t\t\t\t\t\t\t\t\t String subType, byte[] data) throws IOException {\n\t\tfileAttached = true;\n\n\t\tPDComplexFileSpecification fs = new PDComplexFileSpecification();\n\t\tfs.setFile(filename);\n\n\t\tCOSDictionary dict = fs.getCOSObject();\n\t\tdict.setName(\"AFRelationship\", relationship);\n\t\tdict.setString(\"UF\", filename);\n\t\tdict.setString(\"Desc\", description);\n\n\t\tByteArrayInputStream fakeFile = new ByteArrayInputStream(data);\n\t\tPDEmbeddedFile ef = new PDEmbeddedFile(doc, fakeFile);\n//\t\tef.addCompression();\n\t\tef.setSubtype(subType);\n\t\tef.setSize(data.length);\n\t\tef.setCreationDate(new GregorianCalendar());\n\n\t\tef.setModDate(GregorianCalendar.getInstance());\n\n\t\tfs.setEmbeddedFile(ef);\n\n\t\t// In addition make sure the embedded file is set under /UF\n\t\tdict = fs.getCOSObject();\n\t\tCOSDictionary efDict = (COSDictionary) dict.getDictionaryObject(COSName.EF);\n\t\tCOSBase lowerLevelFile = efDict.getItem(COSName.F);\n\t\tefDict.setItem(COSName.UF, lowerLevelFile);\n\n\t\t// now add the entry to the embedded file tree and set in the document.\n\t\tPDDocumentNameDictionary names = new PDDocumentNameDictionary(doc.getDocumentCatalog());\n\t\tPDEmbeddedFilesNameTreeNode efTree = names.getEmbeddedFiles();\n\t\tif (efTree == null) {\n\t\t\tefTree = new PDEmbeddedFilesNameTreeNode();\n\t\t}\n\n\t\tMap<String, PDComplexFileSpecification> namesMap = new HashMap<>();\n\n\t\tMap<String, PDComplexFileSpecification> oldNamesMap = efTree.getNames();\n\t\tif (oldNamesMap != null) {\n\t\t\tfor (String key : oldNamesMap.keySet()) {\n\t\t\t\tnamesMap.put(key, oldNamesMap.get(key));\n\t\t\t}\n\t\t}\n\t\tnamesMap.put(filename, fs);\n\t\tefTree.setNames(namesMap);\n\n\t\tnames.setEmbeddedFiles(efTree);\n\t\tdoc.getDocumentCatalog().setNames(names);\n\n\t\t// AF entry (Array) in catalog with the FileSpec\n\t\tCOSBase AFEntry = (COSBase) doc.getDocumentCatalog().getCOSObject().getItem(\"AF\");\n\t\tif ((AFEntry == null)) {\n\t\t\tCOSArray cosArray = new COSArray();\n\t\t\tcosArray.add(fs);\n\t\t\tdoc.getDocumentCatalog().getCOSObject().setItem(\"AF\", cosArray);\n\t\t} else if (AFEntry instanceof COSArray) {\n\t\t\tCOSArray cosArray = (COSArray) AFEntry;\n\t\t\tcosArray.add(fs);\n\t\t\tdoc.getDocumentCatalog().getCOSObject().setItem(\"AF\", cosArray);\n\t\t} else if ((AFEntry instanceof COSObject) &&\n\t\t\t\t((COSObject) AFEntry).getObject() instanceof COSArray) {\n\t\t\tCOSArray cosArray = (COSArray) ((COSObject) AFEntry).getObject();\n\t\t\tcosArray.add(fs);\n\t\t} else {\n\t\t\tthrow new IOException(\"Unexpected object type for PDFDocument/Catalog/COSDictionary/Item(AF)\");\n\t\t}\n\t}", "public java.util.List<AttachmentsSource> getAttachments() {\n if (attachments == null) {\n attachments = new com.amazonaws.internal.SdkInternalList<AttachmentsSource>();\n }\n return attachments;\n }", "public List<MailAttachment> getAttachment() {\n return attachment;\n }", "public static void sendEmailWithAttachments(final String address, final String subject, final String message, final ArrayList<String> attachments, final String userName, final String password)\r\n throws AddressException, MessagingException {\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.host\", host);\r\n properties.put(\"mail.smtp.port\", port);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.user\", userName);\r\n properties.put(\"mail.password\", password);\r\n \r\n // creates a new session with an authenticator\r\n Authenticator auth = new Authenticator() {\r\n public PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(userName, password);\r\n }\r\n };\r\n Session session = Session.getInstance(properties, auth);\r\n \r\n // creates a new e-mail message\r\n Message msg = new MimeMessage(session);\r\n \r\n msg.setFrom(new InternetAddress(userName));\r\n InternetAddress[] toAddresses = { new InternetAddress(address) };\r\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\r\n msg.setSubject(subject);\r\n msg.setSentDate(new Date());\r\n \r\n // creates message part\r\n MimeBodyPart messageBodyPart = new MimeBodyPart();\r\n messageBodyPart.setContent(message, \"text/html\");\r\n \r\n // creates multi-part\r\n Multipart multipart = new MimeMultipart();\r\n multipart.addBodyPart(messageBodyPart);\r\n \r\n // adds attachments\r\n if (attachments != null && attachments.size() > 0) {\r\n for (String filePath : attachments) {\r\n MimeBodyPart attachPart = new MimeBodyPart();\r\n \r\n try {\r\n attachPart.attachFile(filePath);\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n \r\n multipart.addBodyPart(attachPart);\r\n }\r\n }\r\n \r\n // sets the multi-part as e-mail's content\r\n msg.setContent(multipart);\r\n \r\n // sends the e-mail\r\n Transport.send(msg);\r\n \r\n }", "public void send(String message, MailFileEntry... attachments) throws SenderException {\n\t\tMultiPartMailMessage mail = new MultiPartMailMessage();\n\t\t\n\t\tmail.setSender(senderEmail);\n\t\tmail.setRecipient(recepientEmail);\n\t\t\n\t\tif(subject != null)\n\t\t\tmail.setSubject(subject);\n\t\t\n\t\tmail.setMessage(message);\n\n\t\tfor(MailFileEntry attachment : attachments)\n\t\t\tmail.addFile(attachment);\n\t\t\n\t\ttry {\n\t\t\tservice.sendMessage(mail);\n\t\t\tLOG.info(\"message to \" + recepientEmail + \" has been sent: \" + message);\n\t\t} catch(Exception e) {\n\t\t\tthrow new SenderException(\"sending message to \" + recepientEmail + \" failed\", e);\n\t\t}\n\t}", "public static void email(Context context, String emailTo, String emailCC,\n String subject, String emailText, List<String> filePaths)\n {\n final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,\n new String[]{emailTo});\n emailIntent.putExtra(android.content.Intent.EXTRA_CC,\n new String[]{emailCC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n \n ArrayList<String> extra_text = new ArrayList<String>();\n extra_text.add(emailText);\n emailIntent.putStringArrayListExtra(Intent.EXTRA_TEXT, extra_text);\n //emailIntent.putExtra(Intent.EXTRA_TEXT, emailText);\n \n //has to be an ArrayList\n ArrayList<Uri> uris = new ArrayList<Uri>();\n //convert from paths to Android friendly Parcelable Uri's\n for (String file : filePaths)\n {\n File fileIn = new File(file);\n Uri u = Uri.fromFile(fileIn);\n uris.add(u);\n }\n emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);\n context.startActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n }", "public com.sforce.soap.enterprise.QueryResult getAttachments() {\r\n return attachments;\r\n }", "public interface ArtMasterAttachmentManager {\n Map saveArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception;\n\n Map deleteArtMasterAttachment(HttpServletRequest request, LogBean logBean) throws Exception;\n}", "@Test\n public void testAddAndRemoveAttachment() throws Exception {\n Asset asset = assetManager.getRandomAsset(AssetType.jpg);\n File file = new File(asset.getAbsolutePath());\n String callbackHtml = chronosApi.updateEventWithAttachments( //@formatter:off\n createdEvent.getFolder(), createdEvent.getId(), now(),\n prepareJsonForFileUpload(createdEvent.getId(),\n null == createdEvent.getFolder() ? defaultFolderId : createdEvent.getFolder(), asset.getFilename()),\n file, null, null, null, null, null); //@formatter:on\n assertNotNull(callbackHtml);\n assertTrue(\"Should contain attachment name: \" + asset.getFilename(), callbackHtml.contains(\"\\\"filename\\\":\\\"\" + asset.getFilename() + \"\\\"\"));\n\n /*\n * Check constrains\n */\n int sequenceId = 0;\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL, sequenceId);\n\n /*\n * Accept changes and check if attachment has been added to the event\n */\n update(apiClientC2, constructBody(receiveIMip(apiClientC2, userResponseC1.getData().getEmail1(), summary, sequenceId, SchedulingMethod.REQUEST)));\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment has a new attachment\");\n AnalysisChangeCurrentEvent current = analyzeResponse.getData().get(0).getChanges().get(0).getCurrentEvent();\n\n EventData eventData = eventManagerC2.getEvent(current.getFolder(), current.getId());\n rememberForCleanup(eventData);\n assertEquals(createdEvent.getUid(), eventData.getUid());\n assertAttendeePartStat(eventData.getAttendees(), replyingAttendee.getEmail(), PartStat.ACCEPTED.getStatus());\n /*\n * check if attachment was imported correctly\n */\n List<ChronosAttachment> attachments = eventData.getAttachments();\n assertTrue(null != attachments && 1 == attachments.size());\n ChronosAttachment attachment = attachments.get(0);\n assertEquals(asset.getFilename(), attachment.getFilename());\n assertEquals(\"image/jpeg\", attachment.getFmtType());\n byte[] attachmentData = eventManagerC2.getAttachment(eventData.getId(), i(attachment.getManagedId()), eventData.getFolder());\n assertNotNull(attachmentData);\n\n /*\n * Remove attachment as organizer\n */\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setAttachments(Collections.emptyList());\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Lookup that event has been removed\n */\n EventData updated = eventManager.getEvent(createdEvent.getFolder(), createdEvent.getId());\n assertThat(\"Should not contain attachments\", updated.getAttachments(), empty());\n\n /*\n * Receive update as attendee and accept changes\n */\n MailData iMip = receiveIMip(apiClientC2, userResponseC1.getData().getEmail1(), summary, 1, SchedulingMethod.REQUEST);\n rememberMail(apiClientC2, iMip);\n analyzeResponse = analyze(apiClientC2, iMip);\n analyze(analyzeResponse, CustomConsumers.ALL);\n change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The attachment <i>\"+ asset.getFilename() + \"</i> was removed\");\n ActionResponse actionResponse = update(apiClientC2, constructBody(iMip));\n updated = actionResponse.getData().get(0);\n updated = eventManagerC2.getEvent(updated.getFolder(), updated.getId());\n assertThat(\"Should not contain attachments\", updated.getAttachments(), empty());\n }", "@SysLogMethod(\"测试记录上传附件\")\n @ApiOperation(\"申请单测试记录批量保存附件\")\n @PostMapping(value = \"/saveAttachmentList\")\n public Result saveAttachmentList(@RequestBody List<ApplyNoteTestRecordAttachment> applyNoteTestRecordAttachments) {\n boolean result = iApplyNoteTestRecordAttachmentService.saveAttachmentList(applyNoteTestRecordAttachments);\n if (result) {\n return OK;\n }\n return new Result(ResultCode.FAIL);\n }", "public MultipartHolder(Representation representation, Class<E> payloadClass) throws FileUploadException {\n\t\tList<FileItem> files = MultipartHolder.getFiles(representation);\n\t\treceivedFiles = new ArrayList<>();\n\t\tfor (FileItem file : files) {\n\t\t\tif (file.getFieldName().startsWith(MULTIPART_FILE_PART)) {\n\t\t\t\treceivedFiles.add(file);\n\t\t\t} else if (file.getFieldName().equals(MULTIPART_PARAMS_PART)) {\n\t\t\t\tString json = file.getString();\n\t\t\t\tthis.payload = new Gson().fromJson(json, payloadClass);\n\t\t\t}\n\t\t}\n\t}", "public interface AttachmentService {\n\n /**\n * Save a attachment.\n *\n * @param attachmentDTO the entity to save\n * @return the persisted entity\n */\n AttachmentDTO save(AttachmentDTO attachmentDTO);\n\n /**\n * Get all the attachments.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<AttachmentDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" attachment.\n *\n * @param id the id of the entity\n * @return the entity\n */\n AttachmentDTO findOne(Long id);\n\n /**\n * Delete the \"id\" attachment.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n *根据转运编码获取转运上传的图片\n * @param code\n * @param request\n * @return\n */\n List<AttachmentDTO> findFilesByTranshipCode(String code, HttpServletRequest request);\n\n /**\n * 修改附件的基本信息\n * @param attachmentDTO\n * @return\n */\n AttachmentDTO updateAttachment(AttachmentDTO attachmentDTO);\n}", "public Collection<EventAttachment> parseAndGetEventAttachment(String jsProgram) {\n MutateVisitorBuilder builder = MutateVisitor.emptyBuilder();\n builder.setEventAttacherDetectors(\n ImmutableSet.<EventAttacherDetector>of(new AddEventListenerDetector()));\n MutateVisitor visitor = builder.build();\n AstRoot ast = parseAstRoot(jsProgram);\n ast.visit(visitor);\n return visitor.getEventAttachments();\n }", "public void testGetAllAttachmentsFromWikiPage() {\r\n\t\tInteger wikiPageId = 1045617;\r\n\t\tList<PnWikiAttachment> pnWikiAttachmentList = new ArrayList<PnWikiAttachment>();\r\n\t\tpnWikiAttachmentList.add(new PnWikiAttachment(1));\r\n\t\tpnWikiAttachmentList.add(new PnWikiAttachment(2));\r\n\t\t\r\n\t\texpect(mockDao.getAllAttachmentsFromWikiPage(wikiPageId)).andReturn(pnWikiAttachmentList);\r\n\t\treplay(mockDao);\r\n\t\t\r\n\t\tList<PnWikiAttachment> pnWikiAttachmentList2 = service.getAllAttachmentsFromWikiPage(wikiPageId);\r\n\t\tassertEquals(1, pnWikiAttachmentList2.get(0).getWikiAttachmentId().intValue());\r\n\t\tassertEquals(2, pnWikiAttachmentList2.get(1).getWikiAttachmentId().intValue());\r\n\t\tverify(mockDao);\r\n\t}", "private Attachment createAttachment(String assetId, String name, Attachment originalAttachmentMetadata, String contentType,\n InputStream attachmentContentStream, UriInfo uriInfo) throws InvalidJsonAssetException, AssetPersistenceException, NonExistentArtefactException {\n try {\n persistenceBean.retrieveAsset(assetId);\n } catch (NonExistentArtefactException e) {\n // The message from the PersistenceLayer is unhelpful in this context, so send back a better one\n throw new NonExistentArtefactException(\"The parent asset for this attachment (id=\"\n + assetId + \") does not exist in the repository.\");\n }\n\n Attachment attachmentMetadata = new Attachment(originalAttachmentMetadata);\n\n // Add necessary fields to the attachment (JSON) metadata\n if (attachmentMetadata.get_id() == null) {\n attachmentMetadata.set_id(persistenceBean.allocateNewId());\n }\n attachmentMetadata.setAssetId(assetId);\n if (contentType != null) {\n attachmentMetadata.setContentType(contentType);\n }\n attachmentMetadata.setName(name);\n attachmentMetadata.setUploadOn(IsoDate.format(new Date()));\n\n // Create the attachment content\n if (attachmentContentStream != null) {\n AttachmentContentMetadata contentMetadata = persistenceBean.createAttachmentContent(name, contentType, attachmentContentStream);\n\n // TODO perhaps we should try to clean up after ourselves and delete the attachmentMetadata\n // TODO seriously, this is one of the places where we reaslise that using a DB that doesn't\n // support transactions means we don't get some of the guarantees that we might be used to.\n\n attachmentMetadata.setGridFSId(contentMetadata.filename);\n attachmentMetadata.setSize(contentMetadata.length);\n }\n\n Attachment returnedAttachment = persistenceBean.createAttachmentMetadata(attachmentMetadata);\n\n computeAttachmentURL(returnedAttachment, uriInfo);\n\n return returnedAttachment;\n }", "protected abstract ExtensionAttachment instantiateExtensionAttachment();", "public interface AttachmentsListener {\n\n /**\n * Fires when user presses 'add' button.\n */\n void onAddAttachments();\n}" ]
[ "0.68213093", "0.6820942", "0.65540236", "0.6360502", "0.63283557", "0.62918806", "0.62650365", "0.6231524", "0.61909777", "0.6179576", "0.6097113", "0.6079531", "0.60408396", "0.60373753", "0.59850645", "0.5974519", "0.5944906", "0.592722", "0.5851937", "0.5841446", "0.5740779", "0.5732119", "0.570758", "0.5680366", "0.56440574", "0.5642654", "0.55988204", "0.55898637", "0.5589762", "0.5588447", "0.55711484", "0.5564311", "0.55626434", "0.5526691", "0.5520781", "0.5503179", "0.5487802", "0.54840016", "0.5481164", "0.54673946", "0.54413456", "0.54291046", "0.54162025", "0.54136926", "0.53976536", "0.53936744", "0.5391741", "0.5386926", "0.5370609", "0.5368448", "0.536701", "0.5354637", "0.5345244", "0.5331102", "0.531564", "0.53018934", "0.52946717", "0.5284558", "0.527556", "0.52642995", "0.5253943", "0.52475715", "0.5245166", "0.5219313", "0.5215149", "0.5183771", "0.5174127", "0.51710486", "0.5150838", "0.5140658", "0.51235443", "0.51157767", "0.51133287", "0.5083165", "0.50784415", "0.50605345", "0.5059386", "0.50450844", "0.50435984", "0.50375086", "0.50366783", "0.50342995", "0.50336856", "0.5029867", "0.5029413", "0.502605", "0.50199425", "0.50193644", "0.5003072", "0.49990094", "0.4995331", "0.4986741", "0.49822786", "0.49735084", "0.49713388", "0.49689296", "0.49609816", "0.4953154", "0.49504644", "0.49241963" ]
0.6550632
3
Adds the given attachment as a body part. First checks whether the attachment has bytes already. This allows you to give an email attachment which has bytes in memory and doesn't have an actual file. If the bytes are null it reads the bytes from the file. If the file is null no attachment is added.
public boolean addEmailAttachment(EmailAttachment attachment) throws Exception { if (attachment.getBodyPart() == null) { boolean success = attachment.generateMimeBodyPart(); if (!success) { return false; } } bodyParts.add(attachment.getBodyPart()); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void addAttachmentPart(AttachmentPart attachmentpart);", "private void addAttachment(MimeMultipart multipart, String filePath) throws MessagingException, IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n Tika tika = new Tika();\n String fileContentType = tika.detect(file);\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin,\n fileContentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "@Override\n public AttachmentType addAttachment() {\n \treturn this;\n }", "protected MimeMultipart addAttachment(Multipart multipart, String filename, MimeBodyPart messageBodyPart )\r\n\t{\r\n\t\r\n\t\tDataSource source = new FileDataSource(filename);\r\n\t\tMimeMultipart multipart1 = (MimeMultipart) multipart;\r\n\t\ttry {\r\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(source));\r\n\t\t\tmessageBodyPart.setFileName(filename);\r\n\t\t\tmultipart1.addBodyPart(messageBodyPart);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\tlog.error(\"Problemas con archivo adjunto \"+filename +\" \"+ e);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn multipart1;\r\n\t}", "private void addAttachment(MimeMultipart multipart, String filePath, String contentType) throws MessagingException,\n IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin, contentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }", "private void addBody(Multipart multipart) throws MessagingException {\n\t\tif (props.getProperty(MAIL_CONTENT) == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tBodyPart mimeBodyPart = new MimeBodyPart();\n\n\t\tif (props.getPropertyMime(MAIL_CONTENT) == null) {\n\t\t\t// If the MIME has not being specified, set the default\n\t\t\tif (props.getProperty(MAIL_CONTENT).startsWith(\"<\")) {\n\t\t\t\tprops.setPropertyMime(MAIL_CONTENT, MAIL_CONTENT_MIME_HTML_DEFAULT);\n\n\t\t\t} else {\n\t\t\t\tprops.setPropertyMime(MAIL_CONTENT, MAIL_CONTENT_MIME_TEXT_DEFAULT);\n\t\t\t}\n\t\t}\n\n\t\tmimeBodyPart.setContent(props.getProperty(MAIL_CONTENT), props.getPropertyMime(MAIL_CONTENT));\n\t\tmultipart.addBodyPart(mimeBodyPart);\n\t}", "private static void addAttachment(Multipart multipart, String filepath) throws MessagingException {\r\n\t\tDataSource source = new FileDataSource(filepath);\r\n\t\tBodyPart messageBodyPart = new MimeBodyPart();\r\n\t\tmessageBodyPart.setDataHandler(new DataHandler(source));\r\n\t\tString fileName = \"\";\r\n\t\t\tfileName = filepath.substring(filepath.lastIndexOf(new Character(File.separatorChar).toString())+1,filepath.length());\r\n\t\t\tSystem.out.println(fileName);\r\n\t\tmessageBodyPart.setFileName(fileName);\r\n\t\tmultipart.addBodyPart(messageBodyPart);\r\n\t}", "public void addAttachement(Attachment attachment) {\n if (attachments == null) {\n attachments = new ArrayList<Attachment>();\n }\n attachments.add(attachment);\n }", "private void addAttachments(Multipart multipart) throws MessagingException {\n\t\tEnumeration<?> properties = props.keys();\n\n\t\twhile (properties.hasMoreElements()) {\n\t\t\tString key = (String) properties.nextElement();\n\n\t\t\tif ((props.getPropertyMime(key) == null) || (key.equals(Email.MAIL_CONTENT)) || (key.equals(Email.MAIL_SUBJECT))|| (props.getPropertyPrivacy(key) == true)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbyte[] emailAttachment = props.getPropertyAttachment(key);\n\t\t\tString emailAttachmentName = null;\n\n\t\t\tif (emailAttachment == null) {\n\t\t\t\ttry {\n\t\t\t\t\temailAttachment = props.getProperty(key).getBytes(\"UTF-8\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ((emailAttachment == null) || (emailAttachment.length == 0)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (props.getPropertyAlternateName(key) != null) {\n\t\t\t\temailAttachmentName = props.getPropertyAlternateName(key);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\temailAttachmentName = key;\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINE)) {\n\t\t\t\tlogger.fine(Emit.messages.getString(\"AddAttachment\") + \" \" + emailAttachmentName + \",property:\" + key + \",MIME:\" + props.getPropertyMime(key) + \",length:\" + emailAttachment.length);\n\t\t\t}\n\n\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tByteArrayDataSource bads = new ByteArrayDataSource(emailAttachment, props.getPropertyMime(key));\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(bads));\n\t\t\tmessageBodyPart.setFileName(emailAttachmentName);\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\t\t}\n\t}", "@Override\r\n\tpublic UserAttachment addUserAttachment(UserAttachment userAttachment) {\n\t\treturn null;\r\n\t}", "public synchronized void addBodyPart(BodyPart part) throws MessagingException {\n/* 327 */ parse();\n/* 328 */ super.addBodyPart(part);\n/* */ }", "public byte[] getByteAttachment() {\n\t\treturn byteAttachment;\n\t}", "public abstract AttachmentPart createAttachmentPart();", "public MailMessage setAttachment(List<MailAttachment> attachment) {\n this.attachment = attachment;\n return this;\n }", "@Override\n public boolean hasAttachment() {\n return this.getAdvanceTravelPayment().isAttachmentCode();\n }", "private static void sendAttachmentEmail(Session session, String toEmail, String subject, String body) {\n try {\n MimeMessage msg = new MimeMessage(session);\n msg.addHeader(\"Content-type\", \"text/HTML; charset=UTF-8\");\n msg.addHeader(\"format\", \"flowed\");\n msg.addHeader(\"Content-Transfer-Encoding\", \"8bit\");\n msg.setFrom(new InternetAddress(\"[email protected]\", \"NoReply-JD\"));\n msg.setReplyTo(InternetAddress.parse(\"[email protected]\", false));\n msg.setSubject(subject, \"UTF-8\");\n msg.setSentDate(new Date());\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail, false));\n // Create the message body part\n BodyPart messageBodyPart = new MimeBodyPart();\n // Fill the message\n messageBodyPart.setText(body);\n // Create a multipart message for attachment\n Multipart multipart = new MimeMultipart();\n // Set text message part\n multipart.addBodyPart(messageBodyPart);\n // Second part is attachment\n messageBodyPart = new MimeBodyPart();\n String filename = \"abc.txt\";\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n multipart.addBodyPart(messageBodyPart);\n // Send the complete message parts\n msg.setContent(multipart);\n // Send message\n Transport.send(msg);\n System.out.println(\"EMail Sent Successfully with attachment!!\");\n } catch (MessagingException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "public void setAttachment(String attachment) {\n this.attachment = attachment == null ? null : attachment.trim();\n }", "org.hl7.fhir.Attachment addNewValueAttachment();", "public interface BlossomMailAttachment {\n void appendTo(MimeMessageHelper mimeMessageHelper) throws MessagingException;\n}", "public void addAttachment(String tiid, IAttachment attachment)\n throws HumanTaskManagerException {\n try {\n sdap.beginTx();\n TaskStructure taskStructure = new TaskStructure(tiid);\n taskStructure.addSelectedTaskAttachment(attachment);\n sdap.commitTx();\n } catch (HumanTaskManagerException e) {\n sdap.rollbackTx();\n throw new HumanTaskManagerException(e);\n } finally {\n sdap.close();\n }\n }", "public boolean hasAttachment() {\n\t\treturn Objects.nonNull(attachment);\n\t}", "public Object getAttachment() {\n\treturn attachment;\n }", "void sendMessageWithAttachment (EmailObject object, String pathToAttachment) throws Exception;", "@Override\n public String persistAttachmentBinary(HttpServletRequest request, Attachment attachment)\n throws PersistenceException {\n if (request == null) {\n return null;\n }\n\n String path = getAttachmentAbsolutePath(attachment, request);\n try {\n FileUtil.write(path, attachment.getData());\n } catch (IOException e) {\n throw new PersistenceException(\"Unable to persist file \" + attachment.getFilename()\n + \"to path \" + path, e);\n }\n\n final String context = request.getContextPath();\n final String urlPath = context + PATH_FORMAT.format(new Object[]{ attachment.getGuid(),attachment.getFilename()});\n return urlPath;\n }", "public boolean isAttachment() {\n return isAttachment;\n }", "public Object getAttachment() {\n\t\treturn attachment;\n\t}", "public void attachToBody(Body body);", "private void setAttachmentPart(final String[] attachmentPaths, final MimeMultipart related, final MimeMultipart attachment,\n final String body, final boolean htmlText)\n throws MessagingException {\n for (int i = 0; i < attachmentPaths.length; ++i) {\n // Creation du fichier e inclure\n final MimeBodyPart messageFilePart = new MimeBodyPart();\n final DataSource source = new FileDataSource(attachmentPaths[i]);\n final String fileName = source.getName();\n messageFilePart.setDataHandler(new DataHandler(source));\n messageFilePart.setFileName(fileName);\n // Image e inclure dans un texte au format HTML ou piece jointe\n if (htmlText && null != body && body.matches(\n \".*<img[^>]*src=[\\\"|']?cid:([\\\"|']?\" + fileName + \"[\\\"|']?)[^>]*>.*\")) {\n // \" <-- pour eviter une coloration syntaxique desastreuse...\n messageFilePart.setDisposition(\"inline\");\n messageFilePart.setHeader(\"Content-ID\", '<' + fileName + '>');\n related.addBodyPart(messageFilePart);\n } else {\n messageFilePart.setDisposition(\"attachment\");\n attachment.addBodyPart(messageFilePart);\n }\n }\n }", "@Override\n\tpublic MimeMessage createEmailWithAttachment(String to, String from, String subject, String bodyText,\n\t\t\tFile attachment,String mimeType) throws Exception {\n\t\tProperties props = new Properties();\n\t\tSession session = Session.getDefaultInstance(props, null);\n\n\t\tMimeMessage email = new MimeMessage(session);\n\t\tInternetAddress tAddress = new InternetAddress(to);\n\t\tInternetAddress fAddress = new InternetAddress(from);\n\n\t\temail.setFrom(fAddress);\n\t\temail.addRecipient(javax.mail.Message.RecipientType.TO, tAddress);\n\t\temail.setSubject(subject);\n\n\t\tMimeBodyPart mimeBodyPart = new MimeBodyPart();\n\t\tmimeBodyPart.setContent(bodyText, \"text/plain\");\n\t\tmimeBodyPart.setHeader(\"Content-Type\", \"text/plain; charset=\\\"UTF-8\\\"\");\n\n\t\tMultipart multipart = new MimeMultipart();\n\t\tmultipart.addBodyPart(mimeBodyPart);\n\n\t\tmimeBodyPart = new MimeBodyPart();\n\n\t\tDataSource source = new FileDataSource (attachment);\n\t\tDataHandler dh = new DataHandler(source);\n\t\t\n\t\tmimeBodyPart.setDataHandler(dh);\n\t\tmimeBodyPart.setFileName(attachment.getName());\n\n\t\tmimeBodyPart.setHeader(\"Content-Type\", mimeType + \"; name=\\\"\" + attachment.getName() + \"\\\"\");\n\t\tmimeBodyPart.setHeader(\"Content-Transfer-Encoding\", \"base64\");\n\n\t\tmultipart.addBodyPart(mimeBodyPart);\n\n\t\temail.setContent(multipart);\n\n\t\treturn email;\n\t}", "public void setAttachment(Object attachment) {\n\t\tthis.attachment = attachment;\n\t}", "boolean hasAttachment();", "public String getAttachment() {\n return attachment;\n }", "public void setAttachment(Object attachment) {\n\tthis.attachment = attachment;\n }", "public IAttachment attachFile()\n throws OculusException;", "protected MimeBodyPart createMimeBodyPart(InputStream is) throws MessagingException {\n/* 1217 */ return new MimeBodyPart(is);\n/* */ }", "public int addAttachment(Attachment attachment) {\n\t\tPreparedStatement ps = prepareInsert(attachment);\n\t\ttry {\n\t\t\treturn ps.executeUpdate();\n\t\t} catch (SQLException ex) {\n\t\t\tlogger.error(\"Exception in addAttachment - Problem in your SQL Insert query\", ex);\n\t\t\treturn 0;\n\t\t}\n\t}", "boolean hasHaveAttachment();", "public void PDFAttachGenericFile(String filename, String relationship, String description,\n\t\t\t\t\t\t\t\t\t String subType, byte[] data) throws IOException {\n\t\tPDFAttachGenericFile(this.doc, filename, relationship, description, subType, data);\n\t}", "@Override\r\n\tpublic DishAttachment addDishAttachment(DishAttachment dishAttachment) {\n\t\treturn null;\r\n\t}", "public Attachment attachment(String owner, String repo, long id, long attachmentId) {\n return apiClient.deserialize(apiClient.get(String.format(\"/repos/%s/%s/releases/%d/assets/%d\", owner, repo, id, attachmentId)),\n Attachment.class);\n }", "public DocumentItem addAttachment(DocumentItemType type, Date date, String title, String mimeType, String body, String href) {\n final WindowViewer w = Platform.getWindowViewer();\n RenderableDataItem row = w.createRow(5, true);\n\n row.get(0).setValue(type.toString().toLowerCase(Locale.US));\n row.get(1).setValue(title);\n\n RenderableDataItem item = row.get(2);\n\n item.setType(RenderableDataItem.TYPE_DATETIME);\n item.setValue(date);\n row.get(3).setValue(\"false\");\n row.get(4).setValue(href);\n\n DocumentItem di = new DocumentItem(body, mimeType, type);\n\n di.rowData = row;\n\n if (docAttachments == null) {\n docAttachments = new ArrayList<Document.DocumentItem>(5);\n }\n\n docAttachments.add(di);\n return di;\n }", "public void PDFAttachGenericFile(PDDocument doc, String filename, String relationship, String description,\n\t\t\t\t\t\t\t\t\t String subType, byte[] data) throws IOException {\n\t\tfileAttached = true;\n\n\t\tPDComplexFileSpecification fs = new PDComplexFileSpecification();\n\t\tfs.setFile(filename);\n\n\t\tCOSDictionary dict = fs.getCOSObject();\n\t\tdict.setName(\"AFRelationship\", relationship);\n\t\tdict.setString(\"UF\", filename);\n\t\tdict.setString(\"Desc\", description);\n\n\t\tByteArrayInputStream fakeFile = new ByteArrayInputStream(data);\n\t\tPDEmbeddedFile ef = new PDEmbeddedFile(doc, fakeFile);\n//\t\tef.addCompression();\n\t\tef.setSubtype(subType);\n\t\tef.setSize(data.length);\n\t\tef.setCreationDate(new GregorianCalendar());\n\n\t\tef.setModDate(GregorianCalendar.getInstance());\n\n\t\tfs.setEmbeddedFile(ef);\n\n\t\t// In addition make sure the embedded file is set under /UF\n\t\tdict = fs.getCOSObject();\n\t\tCOSDictionary efDict = (COSDictionary) dict.getDictionaryObject(COSName.EF);\n\t\tCOSBase lowerLevelFile = efDict.getItem(COSName.F);\n\t\tefDict.setItem(COSName.UF, lowerLevelFile);\n\n\t\t// now add the entry to the embedded file tree and set in the document.\n\t\tPDDocumentNameDictionary names = new PDDocumentNameDictionary(doc.getDocumentCatalog());\n\t\tPDEmbeddedFilesNameTreeNode efTree = names.getEmbeddedFiles();\n\t\tif (efTree == null) {\n\t\t\tefTree = new PDEmbeddedFilesNameTreeNode();\n\t\t}\n\n\t\tMap<String, PDComplexFileSpecification> namesMap = new HashMap<>();\n\n\t\tMap<String, PDComplexFileSpecification> oldNamesMap = efTree.getNames();\n\t\tif (oldNamesMap != null) {\n\t\t\tfor (String key : oldNamesMap.keySet()) {\n\t\t\t\tnamesMap.put(key, oldNamesMap.get(key));\n\t\t\t}\n\t\t}\n\t\tnamesMap.put(filename, fs);\n\t\tefTree.setNames(namesMap);\n\n\t\tnames.setEmbeddedFiles(efTree);\n\t\tdoc.getDocumentCatalog().setNames(names);\n\n\t\t// AF entry (Array) in catalog with the FileSpec\n\t\tCOSBase AFEntry = (COSBase) doc.getDocumentCatalog().getCOSObject().getItem(\"AF\");\n\t\tif ((AFEntry == null)) {\n\t\t\tCOSArray cosArray = new COSArray();\n\t\t\tcosArray.add(fs);\n\t\t\tdoc.getDocumentCatalog().getCOSObject().setItem(\"AF\", cosArray);\n\t\t} else if (AFEntry instanceof COSArray) {\n\t\t\tCOSArray cosArray = (COSArray) AFEntry;\n\t\t\tcosArray.add(fs);\n\t\t\tdoc.getDocumentCatalog().getCOSObject().setItem(\"AF\", cosArray);\n\t\t} else if ((AFEntry instanceof COSObject) &&\n\t\t\t\t((COSObject) AFEntry).getObject() instanceof COSArray) {\n\t\t\tCOSArray cosArray = (COSArray) ((COSObject) AFEntry).getObject();\n\t\t\tcosArray.add(fs);\n\t\t} else {\n\t\t\tthrow new IOException(\"Unexpected object type for PDFDocument/Catalog/COSDictionary/Item(AF)\");\n\t\t}\n\t}", "public List<EmailAttachment> addEmailAttachments(EmailAttachment... attachment) {\n\t\tList<EmailAttachment> failedAttachments = new ArrayList<EmailAttachment>();\n\t\tfor (EmailAttachment emailAttachment : attachment) {\n\t\t\ttry {\n\t\t\t\tboolean success = addEmailAttachment(emailAttachment);\n\t\t\t\tif (!success) {\n\t\t\t\t\tfailedAttachments.add(emailAttachment);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tfailedAttachments.add(emailAttachment);\n\t\t\t}\n\t\t}\n\t\treturn failedAttachments;\n\t}", "private void checkAttachment(Attachment attachment) throws BngProgrammableException {\n if (attachment.type() != Attachment.AttachmentType.PPPoE) {\n throw new BngProgrammableException(\n \"Attachment {} is not a PPPoE Attachment\");\n }\n }", "private static MimeMessage createEmailWithAttachment(String from, String fromName, String subject,\n String bodyPlainText, String bodyHtmlText, String fileDir, String filename, String contentType, Date dateSent, String... to) throws IOException, MessagingException {\n final Properties props = new Properties();\n final Session session = Session.getDefaultInstance(props, null);\n\n final MimeMessage email = new MimeMessage(session);\n\n final InternetAddress fAddress = new InternetAddress(from, fromName);\n email.setFrom(fAddress);\n\n for(String toString : to) {\n final InternetAddress tAddress = new InternetAddress(toString);\n email.addRecipient(javax.mail.Message.RecipientType.TO, tAddress);\n }\n\n email.setSubject(subject);\n email.setSentDate(dateSent);\n\n final Multipart multipartMixed = new MimeMultipart(\"mixed\");\n\n final MimeBodyPart mixedPart = new MimeBodyPart();\n Multipart multipart = new MimeMultipart(\"alternative\");\n mixedPart.setContent(multipart);\n\n // Plain text message\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyPlainText, \"text/plain\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/plain; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n // HTML message\n mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(bodyHtmlText, \"text/html\");\n mimeBodyPart.setHeader(\"Content-Type\", \"text/html; charset=UTF-8\");\n multipart.addBodyPart(mimeBodyPart);\n\n multipartMixed.addBodyPart(mixedPart);\n\n if(fileDir != null && filename != null) {\n // Attachment\n mimeBodyPart = new MimeBodyPart();\n DataSource source = new FileDataSource(fileDir + \"/\" + filename);\n mimeBodyPart.setDataHandler(new DataHandler(source));\n mimeBodyPart.setFileName(filename);\n mimeBodyPart.setHeader(\"Content-Type\", contentType + \"; name=\\\"\" + filename + \"\\\"\");\n mimeBodyPart.setHeader(\"Content-Transfer-Encoding\", \"binary\");\n multipartMixed.addBodyPart(mimeBodyPart);\n }\n\n email.setContent(multipartMixed);\n\n return email;\n }", "@Override\r\n\tpublic UserAttachment getUserAttachment(Long id) {\n\t\treturn null;\r\n\t}", "public boolean addAttachment(String filePath, String attachmentName) {\n Assert.hasText(filePath, \"Path cannot be null or empty\");\n\n if(this.attachments == null)\n this.attachments = new LinkedList<>();\n\n File file = new File(filePath);\n Assert.notNull(file, \"File object could not be created from path\");\n\n String name = file.getName();\n\n\n if(StringUtils.hasText(attachmentName)) {\n char separator = '.';\n String extension;\n int extensionIndex = name.lastIndexOf(separator);\n if (extensionIndex > 0) {\n extension = separator + name.substring(extensionIndex + 1);\n name = attachmentName + extension;\n } else {\n name = attachmentName;\n }\n }\n\n this.attachments.add(new Attachment(name, file));\n\n return true;\n }", "public CelestialBody add(CelestialBody body)\n throws UnhandledCelestialBodyException;", "boolean hasHaveReceiveAttachment();", "private void setContent(final Message message, final MimeMultipart alternative, final MimeMultipart attachment,\n final String body)\n throws MessagingException {\n if (0 != attachment.getCount()) {\n // Contenu mixte: Pieces jointes + texte\n if (0 != alternative.getCount() || null != body) {\n // Texte alternatif = texte + texte html\n final MimeBodyPart tmp = new MimeBodyPart();\n tmp.setContent(alternative);\n attachment.addBodyPart(tmp, 0);\n } else {\n // Juste du texte\n final BodyPart plainText = new MimeBodyPart();\n plainText.setContent(body, \"text/plain; \" + CHARSET);\n attachment.addBodyPart(plainText, 0);\n }\n message.setContent(attachment);\n } else {\n // Juste un message texte\n if (0 != alternative.getCount()) {\n // Texte alternatif = texte + texte html\n message.setContent(alternative);\n } else {\n // Texte\n message.setText(body);\n }\n }\n }", "public void addAttachment(DocumentItemType type, Date date, String title, String href) {\n addAttachment(type, date, title, null, null, href);\n }", "protected abstract void addBodyImpl( Body body );", "public static AbstractContentBody createBody(HTTPPart part) throws IOException {\n if (part instanceof FileHTTPPart) {\n FileHTTPPart file = (FileHTTPPart)part;\n return new StreamingFileBody(file.getInputStream(), file.getFilename(), file.getMimeType(),\n file.getLength());\n } else {\n return new StringBody(part.getBody());\n }\n }", "public void addExtensionAttachment(ExtensionAttachment attachment) {\n if (attachment == null) {\n throw new NullPointerException(\"Parameter attachment must not be null\");\n }\n if (extensionAttachments == null) {\n extensionAttachments = new java.util.ArrayList();\n }\n if (log.isDebugEnabled()) {\n getLogger().debug(\"ExtensionAttachment of category \" + attachment.getCategory() \n + \" added to \" + getName() + \": \" + attachment);\n }\n extensionAttachments.add(attachment);\n }", "void setValueAttachment(org.hl7.fhir.Attachment valueAttachment);", "public void setAttachmentId(java.lang.Long attachmentId) {\n this.attachmentId = attachmentId;\n }", "public synchronized void addBodyPart(BodyPart part, int index) throws MessagingException {\n/* 347 */ parse();\n/* 348 */ super.addBodyPart(part, index);\n/* */ }", "public List<MailAttachment> getAttachment() {\n return attachment;\n }", "public MessageBuilder withAttachments(String attachments) {\n\n if (StringUtils.isNotEmpty(attachments)) {\n this.attachments = attachments;\n }\n return this;\n }", "public Attachment loadAttachment(PeerResponse response) throws IdentifierException, NumberFormatException, NxtException {\n return null;\n }", "public void setNoteAttachment(Set<NoteAttachment> aNoteAttachment) {\n noteAttachment = aNoteAttachment;\n }", "public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo addNewAttachmentInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo)get_store().add_element_user(ATTACHMENTINFO$0);\n return target;\n }\n }", "int setAttachment(Attachment attachment) throws NotAuthorizedException;", "@Override\n public void setContent(final InputStream is) throws IOException\n {\n this.getAttachment().setAttachment_content(null);\n this.getAttachment().setContent(is);\n }", "void sendAttachMail(String to, String subject, String content);", "protected String getEncodedFileContent() throws IOException\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n Path path = Paths.get(fullAttachmentFilename);\n byte[] byteArray = Files.readAllBytes(path);\n Base64 x = new Base64();\n String encodedFileContent = x.encodeAsString(byteArray);\n return encodedFileContent;\n }", "Boolean doesExistAttachment(Artifact artifact);", "private ExcelAttachment(T attachment){\n\t\tthis.attachment=attachment;\n\t}", "private C_ReceiveAttachment(Builder builder) {\n super(builder);\n }", "public void sendEmailWithAttachment(String email) throws MessagingException, IOException{\n MimeMessage msg = javaMailSender.createMimeMessage();\n\n MimeMessageHelper helper = new MimeMessageHelper(msg, true);\n\n helper.setTo(email);\n\n helper.setSubject(\"My traveling reservation\");\n\n helper.setText(\"<h1>Thank you for making your reservation!<h1>\", true);\n\n helper.addAttachment(\"my_travel.jpeg\", new PathResource(\"../tourist-agency-back/src/main/resources/travel.jpg\"));\n\n javaMailSender.send(msg);\n }", "@Override\n\tpublic Attachment getAttachment(RepositoryModel repository, long ticketId, String filename) {\n\t\treturn null;\n\t}", "public synchronized BodyPart getBodyPart(String CID) throws MessagingException {\n/* 270 */ parse();\n/* */ \n/* 272 */ int count = getCount();\n/* 273 */ for (int i = 0; i < count; i++) {\n/* 274 */ MimeBodyPart part = (MimeBodyPart)getBodyPart(i);\n/* 275 */ String s = part.getContentID();\n/* 276 */ if (s != null && s.equals(CID))\n/* 277 */ return part; \n/* */ } \n/* 279 */ return null;\n/* */ }", "@Override\n public Attachment loadAttachment(PeerResponse response) throws IdentifierException, NumberFormatException, NxtException {\n return new ArbitraryMessage(response);\n }", "public void testAppendBytesNullPointerException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.appendBytes(null, new byte[0]);\r\n fail(\"if fileCreationId is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.appendBytes(\"valid\", null);\r\n fail(\"if bytes is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "private S_ReceiveAttachment(Builder builder) {\n super(builder);\n }", "public static void writeEnclosedExtensionAttachment(PSGenerator gen,\n PSExtensionAttachment attachment) throws IOException {\n if (attachment instanceof PSCommentBefore) {\n gen.commentln(\"%\" + attachment.getContent());\n } else if (attachment instanceof PSCommentAfter) {\n gen.commentln(\"%\" + attachment.getContent());\n } else {\n String info = \"\";\n if (attachment instanceof PSSetupCode) {\n PSSetupCode setupCodeAttach = (PSSetupCode)attachment;\n String name = setupCodeAttach.getName();\n if (name != null) {\n info += \": (\" + name + \")\";\n }\n }\n String type = attachment.getType();\n gen.commentln(\"%FOPBegin\" + type + info);\n LineNumberReader reader = new LineNumberReader(\n new java.io.StringReader(attachment.getContent()));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n if (line.length() > 0) {\n gen.writeln(line);\n }\n }\n gen.commentln(\"%FOPEnd\" + type);\n }\n }", "void handleOutOfBandAttachment(final Document doc, final iFormViewer fv, final DocumentItem item) {\n final WindowViewer w = Platform.getWindowViewer();\n String href = item.getHREF();\n\n try {\n String id = href;\n int n = href.lastIndexOf('/');\n\n if (n != -1) {\n id = href.substring(n + 1);\n }\n\n n = id.lastIndexOf('.');\n\n if (n == -1) {\n href += \".html\";\n } else {\n id = id.substring(0, n);\n }\n\n ActionLink link = new ActionLink(fv.getURL(href));\n final Document ndoc = new Document(fv, link, id);\n\n ndoc.load(new iFunctionCallback() {\n @Override\n public void finished(boolean canceled, Object returnValue) {\n w.hideWaitCursor();\n\n if (returnValue instanceof Throwable) {\n Utils.handleError((Throwable) returnValue);\n return;\n } else if (canceled || fv.isDisposed()) {\n return;\n }\n\n ndoc.mainDocument.rowData = item.rowData;\n\n if (ndoc.getAttachmentCount() == 0) {\n doc.populateViewer(fv, ndoc.mainDocument);\n } else {\n StackPaneViewer sp = Utils.getStackPaneViewer(fv);\n GridPaneViewer gp = createDocumentViewer(sp, true);\n iWidget field = gp.getWidget(\"backButton\");\n\n if (field != null) {\n field.setVisible(true);\n }\n\n int pos = sp.addViewer(null, gp);\n\n ndoc.populateViewer(gp);\n sp.switchTo(pos);\n }\n }\n });\n w.showWaitCursor();\n } catch(MalformedURLException e) {\n Utils.handleError(e);\n }\n }", "@TransactionAttribute(REQUIRES_NEW)\n public void sendEmailWithAttachment(String[] to_addresses, String[] bc_addresses, String[] cc_addresses, String subject, String message, List<File> attachedFiles) throws AddressException,\n MessagingException {\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(prop.getProperty(\"smtp.username\"), prop.getProperty(\"smtp.password\"));\n }\n };\n\n session = Session.getInstance(getProperties(), auth);\n // creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(prop.getProperty(\"smtp.username\")));\n\n InternetAddress[] bcAddresses, ccAddresses;\n InternetAddress[] toAddresses = new InternetAddress[to_addresses.length];\n\n if (bc_addresses != null) {\n bcAddresses = new InternetAddress[bc_addresses.length];\n for (int x = 0; x < bc_addresses.length; x++) {\n bcAddresses[x] = new InternetAddress(bc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.BCC, bcAddresses);\n }\n\n if (cc_addresses != null) {\n ccAddresses = new InternetAddress[cc_addresses.length];\n for (int x = 0; x < cc_addresses.length; x++) {\n ccAddresses[x] = new InternetAddress(cc_addresses[x]);\n }\n msg.setRecipients(Message.RecipientType.CC, ccAddresses);\n }\n\n for (int x = 0; x < to_addresses.length; x++) {\n toAddresses[x] = new InternetAddress(to_addresses[x]);\n }\n\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(subject);\n msg.setSentDate(new Date());\n\n // creates message part\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setContent(message, \"text/html\");\n\n // creates multi-part\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n\n // adds attachments\n if (attachedFiles != null && attachedFiles.size() > 0) {\n for (File aFile : attachedFiles) {\n MimeBodyPart attachPart = new MimeBodyPart();\n\n try {\n attachPart.attachFile(aFile);\n } catch (IOException ex) {\n Logger.getLogger(EmailSender.class.getName()).log(Level.SEVERE, \"Attching file failed\", ex);\n }\n\n multipart.addBodyPart(attachPart);\n }\n }\n\n // sets the multi-part as e-mail's content\n msg.setContent(multipart);\n\n // sends the e-mail\n Transport.send(msg);\n\n }", "public void EnviarWithAdjunto(String destino, String asunto, String cuerpo, byte[] adjunto)\n {\n /*\n * \n email: [email protected]\n pasword: Comer2010\n * Servidor de correo saliente (SMTP): smtp.redmoon.es\n * Servidor de correo entrante (POP/IMAP/IMAP SSL): mail.redmoon.es\n */\n \n\n // Get system properties\n Properties propiedades = new Properties();\n \n // Setup mail server\n \n propiedades.setProperty(\"mail.smtp.host\", host);\n propiedades.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n propiedades.setProperty(\"mail.smtp.auth\", \"true\");\n propiedades.setProperty(\"mail.user\", \"[email protected]\");\n propiedades.setProperty(\"mail.password\", \"Comer2010\");\n propiedades.setProperty(\"mail.smtp.port\", \"25\");\n \n // no estoy seguro\n //propiedades.setProperty(\"mail.mime.multipart.ignoreexistingboundaryparameter\", \"true\");\n \n // creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(usuario, passwd);\n }\n };\n \n // Get the default Session object.\n Session session = Session.getInstance(propiedades, auth);\n\n \n \n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n //message.setHeader(\"Content-Type\",\"multipart/mixed; boundary=\\\"frontera\\\"\");\n \n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(destino));\n\n // Set Subject: header field\n message.setSubject(asunto);\n\n // Create the message part \n BodyPart messageBodyPart = new MimeBodyPart();\n\n // Fill the message\n messageBodyPart.setText(cuerpo);\n \n // Create a multipar message\n Multipart multipart = new MimeMultipart();\n\n \n // Set text message part\n multipart.addBodyPart(messageBodyPart);\n\n // Part two is attachment\n //messageBodyPart = new MimeBodyPart();\n //String filename = \"myTabla.pdf\";\n \n // Type of mail, only sopported types related (html) and mixed.\n DataSource ds = new ByteArrayDataSource(adjunto, \"multipart/mixed\");\n //DataSource ds = new ByteArrayDataSource(bytes, \"multipart/\"+type);\n\n\tMimeMultipart mp = new MimeMultipart(ds);\n \n\tMimeMultipart multiPart = new MimeMultipart(\"mixed\");\n\n\tfor (int i = 0; i < mp.getCount(); i ++) {\n multiPart.addBodyPart(mp.getBodyPart(i));\n\t}\n\n /*DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(filename);\n \n multipart.addBodyPart(messageBodyPart);*/\n\n // Send the complete message parts\n message.setContent(multipart);\n\n // Send message\n Transport.send(message);\n //System.out.println(\"Sent message successfully....\");\n \n }catch (MessagingException mex) {\n Logger.getLogger(SendEmail.class.getName()).log(Level.SEVERE, null, mex);\n }\n }", "protected MimeBodyPart createMimeBodyPart(InternetHeaders headers, byte[] content) throws MessagingException {\n/* 1201 */ return new MimeBodyPart(headers, content);\n/* */ }", "public void addBody(Body body) throws SAXException, WingException,\n UIException, SQLException, IOException, AuthorizeException\n {\n \tif(this.editFile!=null)\n {\n editFile.addBody(body);\n return;\n }\n else if(editBitstreamPolicies!=null && isAdvancedFormEnabled){\n editBitstreamPolicies.addBody(body);\n return;\n }\n else if(editPolicy!=null && isAdvancedFormEnabled){\n editPolicy.addBody(body);\n return;\n }\n \n // Get a list of all files in the original bundle\n\t\tItem item = submission.getItem();\n\t\tCollection collection = submission.getCollection();\n\t\tString actionURL = contextPath + \"/handle/\"+collection.getHandle() + \"/submit/\" + knot.getId() + \".continue\";\n\t\tboolean disableFileEditing = (submissionInfo.isInWorkflow()) && !ConfigurationManager.getBooleanProperty(\"workflow\", \"reviewer.file-edit\");\n\t\tBundle[] bundles = item.getBundles(\"ORIGINAL\");\n\t\tBitstream[] bitstreams = new Bitstream[0];\n\t\tif (bundles.length > 0)\n\t\t{\n\t\t\tbitstreams = bundles[0].getBitstreams();\n\t\t}\n\t\t\n\t\t// Part A: \n\t\t// First ask the user if they would like to upload a new file (may be the first one)\n \tDivision div = body.addInteractiveDivision(\"submit-upload\", actionURL, Division.METHOD_MULTIPART, \"primary submission\");\n \tdiv.setHead(T_submission_head);\n \taddSubmissionProgressList(div);\n \t\n \t\n \tList upload = null;\n \tif (!disableFileEditing)\n \t{\n \t\t// Only add the upload capabilities for new item submissions\n\t \tupload = div.addList(\"submit-upload-new\", List.TYPE_FORM);\n\t upload.setHead(T_head); \n\t \n\t File file = upload.addItem().addFile(\"file\");\n\t file.setLabel(T_file);\n\t file.setHelp(T_file_help);\n\t file.setRequired();\n\t \n\t // if no files found error was thrown by processing class, display it!\n\t if (this.errorFlag==org.dspace.submit.step.UploadWithEmbargoStep.STATUS_NO_FILES_ERROR)\n\t {\n file.addError(T_file_error);\n }\n\n // if an upload error was thrown by processing class, display it!\n if (this.errorFlag == org.dspace.submit.step.UploadWithEmbargoStep.STATUS_UPLOAD_ERROR)\n {\n file.addError(T_upload_error);\n }\n\n // if virus checking was attempted and failed in error then let the user know\n if (this.errorFlag == org.dspace.submit.step.UploadWithEmbargoStep.STATUS_VIRUS_CHECKER_UNAVAILABLE)\n {\n file.addError(T_virus_checker_error);\n }\n\n // if virus checking was attempted and a virus found then let the user know\n if (this.errorFlag == org.dspace.submit.step.UploadWithEmbargoStep.STATUS_CONTAINS_VIRUS)\n {\n file.addError(T_virus_error);\n }\n\t \t\n\t Text description = upload.addItem().addText(\"description\");\n\t description.setLabel(T_description);\n\t description.setHelp(T_description_help);\n\n\n // if AdvancedAccessPolicy=false: add simpleForm in UploadWithEmbargoStep\n if(!isAdvancedFormEnabled){\n AccessStepUtil asu = new AccessStepUtil(context);\n // if the item is embargoed default value will be displayed.\n asu.addEmbargoDateSimpleForm(item, upload, errorFlag);\n asu.addReason(null, upload, errorFlag);\n }\n\n\t Button uploadSubmit = upload.addItem().addButton(\"submit_upload\");\n\t uploadSubmit.setValue(T_submit_upload);\n\n \t}\n\n make_sherpaRomeo_submission(item, div);\n \n // Part B:\n // If the user has already uploaded files provide a list for the user.\n if (bitstreams.length > 0 || disableFileEditing)\n\t\t{\n\t Table summary = div.addTable(\"submit-upload-summary\",(bitstreams.length * 2) + 2,7);\n\t summary.setHead(T_head2);\n\t \n\t Row header = summary.addRow(Row.ROLE_HEADER);\n\t header.addCellContent(T_column0); // primary bitstream\n\t header.addCellContent(T_column1); // select checkbox\n\t header.addCellContent(T_column2); // file name\n\t header.addCellContent(T_column3); // size\n\t header.addCellContent(T_column4); // description\n\t header.addCellContent(T_column5); // format\n\t header.addCellContent(T_column6); // edit button\n\t \n\t for (Bitstream bitstream : bitstreams)\n\t {\n\t \tint id = bitstream.getID();\n\t \tString name = bitstream.getName();\n\t \tString url = makeBitstreamLink(item, bitstream);\n\t \tlong bytes = bitstream.getSize();\n\t \tString desc = bitstream.getDescription();\n\t \tString algorithm = bitstream.getChecksumAlgorithm();\n\t \tString checksum = bitstream.getChecksum();\n\n\t \t\n\t \tRow row = summary.addRow();\n\n\t // Add radio-button to select this as the primary bitstream\n Radio primary = row.addCell().addRadio(\"primary_bitstream_id\");\n primary.addOption(String.valueOf(id));\n \n // If this bitstream is already marked as the primary bitstream\n // mark it as such.\n if(bundles[0].getPrimaryBitstreamID() == id) {\n primary.setOptionSelected(String.valueOf(id));\n }\n\t \t\n\t \tif (!disableFileEditing)\n\t \t{\n\t \t\t// Workflow users can not remove files.\n\t\t CheckBox remove = row.addCell().addCheckBox(\"remove\");\n\t\t remove.setLabel(\"remove\");\n\t\t remove.addOption(id);\n\t \t}\n\t \telse\n\t \t{\n\t \t\trow.addCell();\n\t \t}\n\t \t\n\t row.addCell().addXref(url,name);\n\t row.addCellContent(bytes + \" bytes\");\n\t if (desc == null || desc.length() == 0)\n {\n row.addCellContent(T_unknown_name);\n }\n\t else\n {\n row.addCellContent(desc);\n }\n\t \n BitstreamFormat format = bitstream.getFormat();\n\t if (format == null)\n\t {\n\t \trow.addCellContent(T_unknown_format);\n\t }\n\t else\n\t {\n int support = format.getSupportLevel();\n\t \tCell cell = row.addCell();\n\t \tcell.addContent(format.getMIMEType());\n\t \tcell.addContent(\" \");\n\t \tswitch (support)\n\t \t{\n\t \tcase 1:\n\t \t\tcell.addContent(T_supported);\n\t \t\tbreak;\n\t \tcase 2:\n\t \t\tcell.addContent(T_known);\n\t \t\tbreak;\n\t \tcase 3:\n\t \t\tcell.addContent(T_unsupported);\n\t \t\tbreak;\n\t \t}\n\t }\n\t \n\t Button edit = row.addCell().addButton(\"submit_edit_\"+id);\n\t edit.setValue(T_submit_edit);\n\n if(isAdvancedFormEnabled){\n Button policy = row.addCell().addButton(\"submit_editPolicy_\"+id);\n policy.setValue(T_submit_policy);\n }\n\n Row checksumRow = summary.addRow();\n\t checksumRow.addCell();\n\t Cell checksumCell = checksumRow.addCell(null, null, 0, 6, null);\n\t checksumCell.addHighlight(\"bold\").addContent(T_checksum);\n\t checksumCell.addContent(\" \");\n\t checksumCell.addContent(algorithm + \":\" + checksum);\n\t }\n\t \n\t if (!disableFileEditing)\n\t {\n\t \t// Workflow users can not remove files.\n\t\t Row actionRow = summary.addRow();\n\t\t actionRow.addCell();\n\t\t Button removeSeleceted = actionRow.addCell(null, null, 0, 6, null).addButton(\"submit_remove_selected\");\n\t\t removeSeleceted.setValue(T_submit_remove);\n\t }\n\t \n\t upload = div.addList(\"submit-upload-new-part2\", List.TYPE_FORM);\n\n\t\t}\n\n // Part C:\n // add standard control/paging buttons\n addControlButtons(upload);\n }", "public void testAppendBytesFilePersistenceException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.appendBytes(\"NotExist\", new byte[10]);\r\n fail(\"if no open output stream associate with the fileCreationId, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "void addMessageBody(ByteBuffer msgBody);", "private Attachment createAttachment(String assetId, String name, Attachment originalAttachmentMetadata, String contentType,\n InputStream attachmentContentStream, UriInfo uriInfo) throws InvalidJsonAssetException, AssetPersistenceException, NonExistentArtefactException {\n try {\n persistenceBean.retrieveAsset(assetId);\n } catch (NonExistentArtefactException e) {\n // The message from the PersistenceLayer is unhelpful in this context, so send back a better one\n throw new NonExistentArtefactException(\"The parent asset for this attachment (id=\"\n + assetId + \") does not exist in the repository.\");\n }\n\n Attachment attachmentMetadata = new Attachment(originalAttachmentMetadata);\n\n // Add necessary fields to the attachment (JSON) metadata\n if (attachmentMetadata.get_id() == null) {\n attachmentMetadata.set_id(persistenceBean.allocateNewId());\n }\n attachmentMetadata.setAssetId(assetId);\n if (contentType != null) {\n attachmentMetadata.setContentType(contentType);\n }\n attachmentMetadata.setName(name);\n attachmentMetadata.setUploadOn(IsoDate.format(new Date()));\n\n // Create the attachment content\n if (attachmentContentStream != null) {\n AttachmentContentMetadata contentMetadata = persistenceBean.createAttachmentContent(name, contentType, attachmentContentStream);\n\n // TODO perhaps we should try to clean up after ourselves and delete the attachmentMetadata\n // TODO seriously, this is one of the places where we reaslise that using a DB that doesn't\n // support transactions means we don't get some of the guarantees that we might be used to.\n\n attachmentMetadata.setGridFSId(contentMetadata.filename);\n attachmentMetadata.setSize(contentMetadata.length);\n }\n\n Attachment returnedAttachment = persistenceBean.createAttachmentMetadata(attachmentMetadata);\n\n computeAttachmentURL(returnedAttachment, uriInfo);\n\n return returnedAttachment;\n }", "public java.lang.Long getAttachmentId() {\n return attachmentId;\n }", "MailMessageAttachementPart createInlineImagePart(String contentType, File file) throws MailException, IOException;", "public Attachment attachment(String owner, String repo, long id, long attachmentId, EditAttachmentOptions options) {\n return apiClient.deserialize(apiClient.patch(String.format(\"/repos/%s/%s/releases/%d/assets/%d\", owner, repo, id, attachmentId),\n options),\n Attachment.class);\n }", "public interface SMTPAttachment extends SMTPComponent {\n\n // Attribute names\n public static final String ATTR_ATTACHMENT_CONTENT_PART = \"attachmentContentPart\";\n public static final String ATTR_ATTACHMENT_FILE_NAME_PART = \"attachmentFileNamePart\";\n public static final String ATTR_READ_FROM_FILE = \"readFromFile\";\n public static final String ATTR_CONTENT_TYPE = \"contentType\";\n public static final String ATTR_DISPOSITION = \"disposition\";\n\n public void setAttachmentContentPart(String attachmentContentPart);\n\n public String getAttachmentContentPart();\n\n public void setAttachmentFileNamePart(String attachmentFileNamePart);\n\n public String getAttachmentFileNamePart();\n\n public void setReadFromFile(String filePath);\n\n public String getReadFromFile();\n\n public void setContentType(String contentType);\n\n public String getContentType();\n\n public void setDisposition(String disposition);\n\n public String getDisposition();\n}", "private static void addToCompanyEmails(Email email, InputStream resourceEmail) throws IOException, JSONException {\n\t\tInputStreamReader isr = new InputStreamReader(resourceEmail);\n\t\tBufferedReader reader = new BufferedReader(isr);\n\t\tString lineEmail = \"\";\n\t\t\n\t\t// We read the file line by line\n\t\twhile ((lineEmail = reader.readLine()) != null) {\n\t\t\temail.addTo(lineEmail); //Adds the email to where it will be sent\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic DishAttachment getDishAttachment(Long id) {\n\t\treturn null;\r\n\t}", "@POST\n\t\t\t@Path(\"/formdata\")\n\t\t\t@Consumes(MediaType.MULTIPART_FORM_DATA)\n\t\t\t@Produces({MediaType.APPLICATION_XML})\n\t\t\tpublic Rows postFormDataAttachment(@Context UriInfo uriInfo,@Context HttpHeaders header,@FormDataParam(\"body\") String xml) {\n\t\t\t\tRows rows = null;\n\t\t\t\tAttachmentDao post;\n\t\t\t\ttry {\n\t\t\t\t\tpost=new AttachmentDao(uriInfo,header);\n\t\t\t\t\tpost.setPostXml(xml.trim());\n\t\t\t\t\tpost.postAttachmentContainer();\n\t\t\t\t\trows=post.getAttachmentRowModified();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (DaoException d) {\n\t\t\t\t\t d.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "private void buildMessage(String subject, String message,\r\n\t\t\tString attachment, Message msg) throws MessagingException {\n\t\tmsg.addHeader(\"Alert\", \"Alert\");\r\n\t\tmsg.setSubject(subject);\r\n\t\t// create and fill the first message part\r\n\t\tMimeBodyPart mbp1 = new MimeBodyPart();\r\n\t\tmbp1.setContent(message, \"text/html\");\r\n\t\t// create the Multipart and add its parts to it\r\n\t\tMultipart mp = new MimeMultipart();\r\n\t\tmp.addBodyPart(mbp1);\r\n\t\tif(attachment != null) {\r\n\t\t // create the second message part\r\n\t\t MimeBodyPart mbp2 = new MimeBodyPart();\r\n\t\t // attach the file to the message\r\n\t\t FileDataSource fds = new FileDataSource(attachment);\r\n\t\t mbp2.setDataHandler(new DataHandler(fds));\r\n\t\t mbp2.setFileName(fds.getName());\r\n\t\t\tmp.addBodyPart(mbp2);\r\n\t\t}\r\n\t\t// add the Multipart to the message\r\n\t\tmsg.setContent(mp);\r\n\t}", "public Builder setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }", "public void setIsAttachment(boolean isAttachment) {\n this.isAttachment = isAttachment;\n }", "public final void addBody( Body body )\n {\n if ( !this.bodies.contains( body ) )\n {\n this.bodies.add( body );\n addBodyImpl( body );\n }\n }", "protected void deleteAttachmentFile()\n {\n try\n {\n if (deleteAttachmentAfterSend && fullAttachmentFilename != null)\n {\n File attFile = new File(fullAttachmentFilename);\n if (log.isDebugEnabled())\n {\n log.debug(\"Delete attachment file: \" + attFile.getCanonicalPath());\n }\n attFile.delete();\n }\n } catch (Exception e)\n {\n log.warn(\"Unable to delete \" + fullAttachmentFilename + \" : \" + e.getMessage());\n }\n }", "private HttpRequest applyMultipartDataTo(HttpRequest httpRequest, Report report) {\n httpRequest.part(\"report[identifier]\", report.getIdentifier());\n if (report.getFiles().length == 1) {\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding single file \" + report.getFileName() + \" to report \" + report.getIdentifier());\n return httpRequest.part(\"report[file]\", report.getFileName(), \"application/octet-stream\", report.getFile());\n }\n int n = 0;\n File[] arrfile = report.getFiles();\n int n2 = arrfile.length;\n int n3 = 0;\n do {\n Object object = httpRequest;\n if (n3 >= n2) return object;\n object = arrfile[n3];\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding file \" + ((File)object).getName() + \" to report \" + report.getIdentifier());\n httpRequest.part(\"report[file\" + n + \"]\", ((File)object).getName(), \"application/octet-stream\", (File)object);\n ++n;\n ++n3;\n } while (true);\n }", "public void setAttachmentPath(String attachmentPath) {\n\t\tthis.attachmentPath = attachmentPath;\n\t}", "@Override\n public void onSaveAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(attachment).saveAttachment();\n }", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.ATTACH,\n adderName = \"attachment\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setAttachments(final Set<BwAttachment> val) {\n attachments = val;\n }" ]
[ "0.6588256", "0.6336871", "0.60481906", "0.60119003", "0.5875642", "0.5807076", "0.569519", "0.56254745", "0.56162316", "0.55486465", "0.5503851", "0.537432", "0.5348328", "0.5292826", "0.5247045", "0.5190541", "0.5169242", "0.51494884", "0.5125271", "0.5110268", "0.51036716", "0.5090281", "0.5077672", "0.50775206", "0.507501", "0.5061838", "0.5043591", "0.5043489", "0.5012105", "0.499156", "0.49871412", "0.49870968", "0.4984537", "0.4950426", "0.49481377", "0.49360073", "0.49347734", "0.4909254", "0.4904757", "0.48901498", "0.48654816", "0.48305887", "0.48096308", "0.47936565", "0.47860318", "0.47779542", "0.4756933", "0.473368", "0.47330782", "0.47172228", "0.47162762", "0.47055686", "0.46736073", "0.4671828", "0.46677572", "0.4662124", "0.46609697", "0.4649568", "0.46435982", "0.46089727", "0.45873994", "0.45759967", "0.4566809", "0.45577765", "0.45263892", "0.4515565", "0.45147368", "0.4514564", "0.4513187", "0.4510496", "0.45104665", "0.45025694", "0.45014054", "0.44969746", "0.44677013", "0.44675103", "0.44594336", "0.4457757", "0.44547993", "0.44432688", "0.4440358", "0.44389683", "0.4437099", "0.4429751", "0.43900982", "0.43850207", "0.43799478", "0.43756974", "0.43611756", "0.4344351", "0.4338045", "0.4329912", "0.4323849", "0.4305596", "0.4305079", "0.42923084", "0.42876115", "0.4278153", "0.4260792", "0.42595366" ]
0.6973483
0
Gets the body body part with proper encoding
public MimeBodyPart getContentBodyPart() throws MessagingException { MimeBodyPart contentBodyPart = new MimeBodyPart(); if (html) { contentBodyPart.setHeader("Content-Type", "text/html"); contentBodyPart.setContent(body, "text/html"); } else { contentBodyPart.setContent(body, "text/plain"); } return contentBodyPart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBody();", "public String getBodyString()\r\n\t{\r\n\t\tString charsetName = this.request.getCharacterEncoding();\r\n\t\tif (charsetName == null || charsetName == \"\")\r\n\t\t\tcharsetName = \"UTF-8\";\r\n\t\t\r\n\t\treturn this.getBodyString(charsetName);\r\n\t}", "public byte[] getBodyBytes() throws UnsupportedEncodingException {\n if (getBodyString() == null) {\n return \"\".getBytes();\n }\n\n return getBodyString().getBytes(\"UTF-8\");\n }", "String getBody();", "String getBody();", "String getBody();", "String getBody();", "com.google.protobuf.ByteString\n getBodyBytes();", "com.google.protobuf.ByteString\n getBodyBytes();", "public byte[] getBody(){\n Map<String,String> params=getParams();\n if (params!=null&&params.size()>0){\n return encodeParameters(params,getParamsEncoding());\n }\n return null;\n }", "DBody getBody();", "private ByteArrayEntity prepareBody() throws UnsupportedEncodingException {\n return new ByteArrayEntity(context.getBody().getBytes(\"UTF-8\"));\n }", "public java.lang.String getBody() {\n return body_;\n }", "public byte[] getBody() {\n return body;\n }", "@Override\n public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract Body getBody();", "public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n }\n return s;\n }\n }", "public String getBody() {\n\t\tif(body == null) {\n\t\t\ttry {\n\t\t\t\tbody = streamToString(response.getEntity().getContent());\n\t\t\t\treturn body;\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(Integrum.TAG, e.getStackTrace().toString());\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn body;\n\t\t}\n\t}", "public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBodyString() {\n return this.bodyString;\n }", "public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getBody()\n {\n return body;\n }", "public String getBody() {\r\n return body;\r\n }", "public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n }\n }", "public String getBody() {\n Object ref = body_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getBodyBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(body_);\n }", "@Override\n public String getBody() {\n Object ref = body_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBody () {\n\t\treturn body;\n\t}", "public byte[] getBody() {\n\t\treturn body;\n\t}", "public String getBody() {\n return body;\n }", "public String getBody() {\n return body;\n }", "public String getBody() {\n return body;\n }", "public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBody(){\n return body;\n }", "public String getBody_() {\n return body_;\n }", "public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}", "public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getBodyAsString() throws IOException {\n\t\treturn ServletUtil.toString(this.wrappedOut.getBytes(), getContentType(), getCharacterEncoding());\n\t}", "public String getBody() {\r\n\t\treturn mBody;\r\n\t}", "Body getBody();", "public String getBody() {\n\t\treturn Body;\n\t}", "public Body getBody() {\n return body;\n }", "public String getBody()\n {\n return super.getBody();\n }", "public Object getBody() {\n return body;\n }", "public java.lang.String getBody() {\n return instance.getBody();\n }", "@Override\n public byte[] getBody() throws AuthFailureError {\n try {\n return mRequestBody == null ? null : mRequestBody.getBytes(\"utf-8\");\n } catch (UnsupportedEncodingException uee) {\n VolleyLog.wtf(\"Unsupported Encoding while trying to get the bytes of %s using %s\", mRequestBody, \"utf-8\");\n return null;\n }\n }", "public String body() {\n return request.content().toString(StandardCharsets.UTF_8);\n }", "public synchronized String getBodyString(String charsetName)\r\n\t{\r\n\t\tif (this.bodyString == null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tthis.bodyString = new String(this.bodyBytes, charsetName);\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.bodyString;\r\n\t}", "private String getBody(CloseableHttpResponse response) throws IOException {\n HttpEntity entity = response.getEntity();\n return EntityUtils.toString(entity, \"UTF-8\");\n }", "private String getBody(InputStream stream) throws IOException {\r\n\t\t// retrieve response body\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tString line;\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tbuffer.append(line);\r\n\t\t\t}\r\n\r\n\t\t\treturn buffer.toString();\r\n\t\t} finally {\r\n\t\t\tif (br != null) {\r\n\t\t\t\tbr.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public HttpEntity body() {\n return body;\n }", "static String readRequestBody(HttpExchange t) throws IOException {\n InputStream is = t.getRequestBody();\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }", "@Override\n public String getBodyContentType() {\n return \"application/x-www-form-urlencoded; charset=UTF-8\";\n }", "public com.google.protobuf.ByteString\n getBodyBytes() {\n return instance.getBodyBytes();\n }", "public InputStream body() {\n return body;\n }", "SmilBody getBody();", "public static String getBody(HttpServletRequest request) throws IOException {\n\n String body = null;\n StringBuilder stringBuilder = new StringBuilder();\n BufferedReader bufferedReader = null;\n\n try {\n InputStream inputStream = request.getInputStream();\n if (inputStream != null) {\n bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n char[] charBuffer = new char[128];\n int bytesRead = -1;\n while ((bytesRead = bufferedReader.read(charBuffer)) > 0) {\n stringBuilder.append(charBuffer, 0, bytesRead);\n }\n } else {\n stringBuilder.append(\"\");\n }\n } catch (IOException ex) {\n throw ex;\n } finally {\n if (bufferedReader != null) {\n try {\n bufferedReader.close();\n } catch (IOException ex) {\n throw ex;\n }\n }\n }\n\n body = stringBuilder.toString();\n return body;\n}", "public String getContent() throws IOException {\n ContentType type = getContentType();\n \n if(type == null) {\n return body.getContent(\"UTF-8\");\n } \n return getContent(type);\n }", "ByteBuf getMessageBody();", "public synchronized BodyPart getBodyPart(int index) throws MessagingException {\n/* 257 */ parse();\n/* 258 */ return super.getBodyPart(index);\n/* */ }", "public Body getBody() {\n return new BufferBody(buffer);\n }", "public AgentBody getBody() {\n\t\treturn body;\n\t}", "public InputStream getBody()\r\n/* 82: */ throws IOException\r\n/* 83: */ {\r\n/* 84:108 */ if (isFormPost(this.servletRequest)) {\r\n/* 85:109 */ return getBodyFromServletRequestParameters(this.servletRequest);\r\n/* 86: */ }\r\n/* 87:112 */ return this.servletRequest.getInputStream();\r\n/* 88: */ }", "public String getBodyText() {\n return bodyText;\n }", "@Override\n public String getBodyContentType() {\n return (mBodyContentType != null) ? mBodyContentType : super.getBodyContentType();\n }", "public UserModel getBody() {\n return localBody;\n }", "public UserModel getBody() {\n return localBody;\n }", "protected String getBody(VitroRequest vreq, Map<String, Object> body, Configuration config) {\n return \"\";\n }", "public String getBody(){\n return bodiesText;\n }", "@Override\n public String getBody() {\n return mSubject; /*mFile.toString();*/\n }", "public static String getBody(final Bundle bundle) {\n return bundle.getString(Constants.BUNDLE_STRING_BODY, null);\n }", "public String getContentBody() {\n return contentBody;\n }", "public InputStream getInputStream() throws IOException {\n return body.getInputStream();\n }", "Term getBody();", "public String getBodyContentType() {\n return mContentType;\n }", "@Override\n\tpublic java.lang.String getBody() {\n\t\treturn _news_Blogs.getBody();\n\t}", "public static AbstractContentBody createBody(HTTPPart part) throws IOException {\n if (part instanceof FileHTTPPart) {\n FileHTTPPart file = (FileHTTPPart)part;\n return new StreamingFileBody(file.getInputStream(), file.getFilename(), file.getMimeType(),\n file.getLength());\n } else {\n return new StringBody(part.getBody());\n }\n }", "@Override\n public Object getBody() {\n return null;\n }", "public GHFrom getBody() {\n return body;\n }", "public static String getBody(HttpServletRequest request) throws IOException {\n\t String body = null;\n\t StringBuilder stringBuilder = new StringBuilder();\n\t BufferedReader bufferedReader = null;\n\n\t try {\n\t InputStream inputStream = request.getInputStream();\n\t if (inputStream != null) {\n\t bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n\t char[] charBuffer = new char[128];\n\t int bytesRead = -1;\n\t while ((bytesRead = bufferedReader.read(charBuffer)) > 0) {\n\t stringBuilder.append(charBuffer, 0, bytesRead);\n\t }\n\t } else {\n\t stringBuilder.append(\"\");\n\t }\n\t } catch (IOException ex) {\n\t throw ex;\n\t } finally {\n\t if (bufferedReader != null) {\n\t try {\n\t bufferedReader.close();\n\t } catch (IOException ex) {\n\t throw ex;\n\t }\n\t }\n\t }\n\n\t body = stringBuilder.toString();\n\t return body;\n\t}", "public String getPostBody() {\n return postBody;\n }", "public abstract SOAPBody getSOAPBody() throws SOAPException;", "public static String getBodyToString(StringBuffer body){\n String stringBody = body.toString();\n\n /**\n * if the string buffer is empty, we just return the empty string\n */\n if (stringBody.strip().equals(\"\")){\n return stringBody;\n }\n\n /**\n * else we clean up the body and then return it.\n * this was done before we had a separate clean method\n */\n String[] splitBody = stringBody.split(\"=\", 2);\n return splitBody[1];\n }", "public Body getBody1() {\r\n\t\treturn body1;\r\n\t}", "BodyHandler getBodyHandler();", "public byte[] getRawContent() {\n try {\n if (this.messageContent == null &&\n this.messageContentBytes == null &&\n this.messageContentObject == null) {\n return null;\n } else if (this.messageContentObject != null ) {\n String messageContent = this.messageContentObject.toString();\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes = messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else if ( this.messageContent != null ) {\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes =\n this.messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else {\n return messageContentBytes;\n }\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n return null;\n }\n }", "public Header getContentEncoding() {\n/* 89 */ return this.contentEncoding;\n/* */ }", "@Override\n public EmailBody getBody(String BodyType) {\n if(BodyType == null){\n return null;\n }\n if(BodyType.equalsIgnoreCase(\"VipBody\")){\n return new VipBody();\n } else return null;\n\n }", "void readBody(ByteBuf bb, TranscoderContext context) throws Exception;", "public ClassBodyNode getBody()throws ClassCastException;", "String getContentEncoding();", "public String getContent(ContentType type) throws IOException {\n String charset = type.getCharset();\n \n if(charset == null) {\n charset = \"UTF-8\";\n }\n return body.getContent(charset);\n }", "public Body getBody() {\n if (jBody == null) {\n throw new RuntimeException(\"No jimplification happened yet, no body available.\");\n }\n return jBody;\n }", "public synchronized BodyPart getBodyPart(String CID) throws MessagingException {\n/* 270 */ parse();\n/* */ \n/* 272 */ int count = getCount();\n/* 273 */ for (int i = 0; i < count; i++) {\n/* 274 */ MimeBodyPart part = (MimeBodyPart)getBodyPart(i);\n/* 275 */ String s = part.getContentID();\n/* 276 */ if (s != null && s.equals(CID))\n/* 277 */ return part; \n/* */ } \n/* 279 */ return null;\n/* */ }", "private Charset getCharset(ResponseBody body) {\n MediaType contentType = body.contentType();\n return contentType != null ? contentType.charset(Util.UTF_8) : Util.UTF_8;\n }", "private String readResponseBody() {\n try {\n StringBuilder s_buffer = new StringBuilder();\n InputStream is = new BufferedInputStream(httpConn.getInputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n String inputLine;\n while ((inputLine = br.readLine()) != null) {\n s_buffer.append(inputLine);\n }\n return s_buffer.toString();\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n return null;\n }\n }", "CompoundSt getBody () { return body; }" ]
[ "0.76843643", "0.74766284", "0.74566126", "0.7347177", "0.7347177", "0.7347177", "0.7347177", "0.7026362", "0.7026362", "0.70245486", "0.70209795", "0.69957155", "0.69606113", "0.6939723", "0.6934014", "0.6929634", "0.691949", "0.69186884", "0.6899188", "0.6865617", "0.6860348", "0.68573636", "0.6851317", "0.6826945", "0.6821622", "0.6819688", "0.6812467", "0.681138", "0.6791867", "0.6790136", "0.6786168", "0.678097", "0.678097", "0.678097", "0.67780685", "0.6768077", "0.6762633", "0.6755475", "0.6715287", "0.6696571", "0.66935956", "0.66340566", "0.6616433", "0.6608949", "0.6562859", "0.65498996", "0.6535504", "0.65335965", "0.6497547", "0.64969236", "0.6447168", "0.64227515", "0.6329732", "0.6281967", "0.6275511", "0.6245159", "0.6226581", "0.62151456", "0.6174724", "0.6142092", "0.6078854", "0.6077114", "0.6066794", "0.6057148", "0.604128", "0.6020326", "0.5935704", "0.5933306", "0.5903584", "0.5903584", "0.5896335", "0.58897936", "0.5881905", "0.58805656", "0.58772695", "0.58356017", "0.5824643", "0.5811191", "0.5810812", "0.5804616", "0.5796536", "0.57947576", "0.5779901", "0.5779201", "0.5759415", "0.57517666", "0.57505876", "0.5712949", "0.5674651", "0.5670808", "0.566055", "0.5637275", "0.56339824", "0.5619309", "0.56079865", "0.5589383", "0.5565332", "0.555801", "0.5539645", "0.5535981" ]
0.5601345
95
Returns information about the email object.
public String getEmailInString() { String shortenedBody = StringHelper.shortenString(body, 75, .5); String indentedBody = "\t" + shortenedBody.replace(StringHelper.newline, StringHelper.newline + "\t"); String bodyLine = "(Shortened) Body (html >>> " + html + "):" + StringHelper.newline + indentedBody; StringBuilder bodyPartBuilder = new StringBuilder("bodyParts:"); for (MimeBodyPart mimeBodyPart : bodyParts) { bodyPartBuilder.append(StringHelper.newline).append("\t"); try { bodyPartBuilder.append(mimeBodyPart.getFileName()); } catch (Throwable ex) { //We don't care if this error is thrown. We don't want this to break anything. bodyPartBuilder.append("N/A"); } } return StringHelper.splitBy(StringHelper.newline, "from: " + from, "replyTo: " + StringHelper.splitBy(", ", replyTo), "to: " + StringHelper.splitBy(", ", to), "cc: " + StringHelper.splitBy(", ", cc), "bcc: " + StringHelper.splitBy(", ", bcc), "subject: " + subject, bodyLine, bodyPartBuilder.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEmail() {\r\n // Bouml preserved body begin 00040D82\r\n\t System.out.println(email);\r\n\t return email;\r\n // Bouml preserved body end 00040D82\r\n }", "public Email getEmail() {\n return email;\n }", "public Email getEmail() { return this.email; }", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "protected String getMailDebugInfo()\n {\n StringBuffer str = new StringBuffer();\n str.append(\"Email Details:\").append(\"\\n\");\n str.append(\"konakartAPI = \").append(konakartAPI).append(\"\\n\");\n str.append(\"storeOwner = \").append(storeOwner).append(\"\\n\");\n str.append(\"storeOwnerEmailAddr = \").append(storeOwnerEmailAddr).append(\"\\n\");\n str.append(\"storeName = \").append(storeName).append(\"\\n\");\n str.append(\"storeId = \").append(storeId).append(\"\\n\");\n str.append(\"imageBaseUrl = \").append(imageBaseUrl).append(\"\\n\");\n str.append(\"templateBase = \").append(templateBase).append(\"\\n\");\n str.append(\"displayPricesWithTax = \").append(displayPricesWithTax).append(\"\\n\");\n str.append(\"emailSubject = \").append(emailSubject).append(\"\\n\");\n str.append(\"destinationEmailAddr = \").append(emailAddr).append(\"\\n\");\n str.append(\"fromAddress = \").append(fromAddressStr).append(\"\\n\");\n str.append(\"fromAddressName = \").append(fromName).append(\"\\n\");\n str.append(\"replyToAddress = \").append(replyToAddressStr).append(\"\\n\");\n str.append(\"replyToAddressName = \").append(replyToName).append(\"\\n\");\n if (bccEmailsStrArray != null && bccEmailsStrArray.length > 0)\n {\n for (int i = 0; i < bccEmailsStrArray.length; i++)\n {\n String bccEmail = bccEmailsStrArray[i];\n str.append(\"bccEmail = \").append(bccEmail).append(\"\\n\");\n }\n }\n str.append(\"contentType = \").append(contentType).append(\"\\n\");\n str.append(\"doBlindCopy = \").append(doBlindCopy).append(\"\\n\");\n str.append(\"fullAttachmentFilename = \").append(fullAttachmentFilename).append(\"\\n\");\n str.append(\"isAsync = \").append(isAsync).append(\"\\n\");\n str.append(\"countryCode = \").append(countryCode).append(\"\\n\");\n str.append(\"templateName = \").append(templateName).append(\"\\n\");\n str.append(\"customerName = \").append(customerName).append(\"\\n\");\n if (newPassword != null)\n {\n str.append(\"newPassword = \").append(\"YES\").append(\"\\n\");\n str.append(\"expiryMins = \").append(expiryMins).append(\"\\n\");\n }\n if (productName != null)\n {\n str.append(\"productName = \").append(productName).append(\"\\n\");\n str.append(\"productQuantity = \").append(productQuantity).append(\"\\n\");\n str.append(\"productId = \").append(productId).append(\"\\n\");\n str.append(\"sku = \").append(sku).append(\"\\n\");\n }\n\n str.append(\"emailBody = \").append(emailBody).append(\"\\n\");\n if (appCustomer != null)\n {\n str.append(\"customer = \").append(appCustomer.toString()).append(\"\\n\");\n } else if (adminCustomer != null)\n {\n str.append(\"customer = \").append(adminCustomer.toString()).append(\"\\n\");\n } else\n {\n str.append(\"customer is null\").append(\"\\n\");\n }\n if (appOrder != null)\n {\n str.append(\"order = \").append(appOrder.toString()).append(\"\\n\");\n } else if (adminOrder != null)\n {\n str.append(\"order = \").append(adminOrder.toString()).append(\"\\n\");\n } else\n {\n str.append(\"order is null\").append(\"\\n\");\n }\n if (vendorOrders != null && vendorOrders.length > 0)\n {\n for (int i = 0; i < vendorOrders.length; i++)\n {\n Order vOrder = vendorOrders[i];\n str.append(\"vendor order = \").append(vOrder.toString()).append(\"\\n\");\n }\n }\n return str.toString();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getEmail() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EMAIL_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getEmail() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(EMAIL_PROP.get());\n }", "public java.lang.String getEMail () {\r\n\t\treturn eMail;\r\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Email getEmail() {\r\n return email;\r\n }", "public String getEmail() {return email; }", "public java.lang.String getEmail() {\r\n return email;\r\n }", "public String getEmail()\n\t{\n\t\treturn this._email;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "public String getEmail()\r\n {\r\n return email;\r\n }", "public java.lang.String getEmail () {\n\t\treturn email;\n\t}", "public String getEmail()\n {\n return this.email;\n }", "public String getEmail()\n {\n return email;\n }", "public String getEmail()\n {\n return email;\n }", "public String getFromEMail() {\n return fromEMail;\n }", "public String getEmail()\n\t{\n\t\treturn this.email;\n\t}", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\r\n\t}", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String geteMail() {\n return eMail;\n }", "public String geteMail() {\n return eMail;\n }", "public String getEmail() { return email; }", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmailAddress() {\r\n return email;\r\n }", "public String getEmailAddress() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public Mail getMail() {\n return mail;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public java.lang.String getMail() {\n return mail;\n }", "public String getEmailBodyString() {\r\n return this.emailBodyString;\r\n }" ]
[ "0.66129994", "0.64671934", "0.6466612", "0.64541066", "0.64541066", "0.64541066", "0.64541066", "0.64541066", "0.64541066", "0.6441778", "0.6434917", "0.6412183", "0.6346008", "0.6325424", "0.6317075", "0.6299361", "0.62992865", "0.6292762", "0.62916875", "0.628282", "0.62809443", "0.6274915", "0.6274915", "0.62663037", "0.62603366", "0.6257791", "0.6255111", "0.6255111", "0.6255111", "0.6255111", "0.6253104", "0.6253104", "0.6253104", "0.6253104", "0.6250226", "0.6250226", "0.6239837", "0.6231238", "0.6231238", "0.62246674", "0.6214585", "0.6213345", "0.6213345", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.62128335", "0.6198947", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6195704", "0.6173584", "0.61681706" ]
0.0
-1
Adds the given address(es) to the to list
public void addTo(String... address) { to.addAll(java.util.Arrays.asList(address)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTo(List<String> addresses) {\n\t\tto.addAll(addresses);\n\t}", "public String addAddressList(BufferedReader address);", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "public void addCc(List<String> addresses) {\n\t\tcc.addAll(addresses);\n\t}", "public abstract List<String> associateAddresses(NodeMetadata node);", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void addAddress(String Address, Coord coord);", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "List<?> getAddress();", "void addHasAddress(String newHasAddress);", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "private List<Messages.Address> mapModelAddressToWireAddress(List<byte[]> addresses) {\n return addresses.stream().map(address -> Messages.Address.newBuilder()\n .setPort(6565)\n .setIpAddress(ByteString.copyFrom(address))\n .build())\n .collect(Collectors.toList());\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public FakeDns addresses(List<InetAddress> addresses) {\n this.addresses = new ArrayList<>(addresses);\n return this;\n }", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "@Override\n public void abreIntentEnderecos(ArrayList lstAddresses) {\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }", "public RTWLocation append(Object... list);", "public AdressBook() {\r\n addressEntryList = new LinkedList<>();\r\n }", "public List getAddressList() {\r\n System.out.println(\"List Elements :\" + addressList);\r\n return addressList;\r\n }", "public StringList lookupAddresses(String name) throws UnknownHostException\n {\n StringList names=new StringList(); \n // cached lookup \n InetAddress[] addres = lookup(name); \n \n for (InetAddress addr:addres)\n {\n // only add unique address\n names.add(addr.getHostAddress(),true); // getHostName()); \n }\n \n return names; \n }", "public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public List<Address> getAllAddressesByName(String user_name) {\n\t\tList<Address> address = new ArrayList<>();\r\n\t\taddressdao.findByUserUsername(user_name)\r\n\t\t.forEach(address::add);\r\n\t\treturn address;\r\n\t}", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void addReplyTo(List<String> addresses) {\n\t\treplyTo.addAll(addresses);\n\t}", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "public AddressListAdapter(final List<Address> addresses, final OnAddressClickedListener listener) {\n mAddresses = addresses;\n mListener = listener;\n }", "private String[] convertToList(List<String> lstAddresses) {\r\n\t\tString[] arrayAddresses = new String[lstAddresses.size()];\r\n\t\tint index=0;\r\n\t\tfor(String strAddress: lstAddresses) {\r\n\t\t\tarrayAddresses[index++] = strAddress;\r\n\t\t}\r\n\t\treturn arrayAddresses;\r\n\t}", "public void testAddAddresses() throws Exception {\r\n try {\r\n this.dao.addAddresses(new Address[]{null}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@NotNull\n List<Balance> balances(@NotNull List<String> addresses) throws EtherScanException;", "private static List<Address> parseAddress(String source) throws IOException {\n FileReader file = new FileReader(source);\n reader = new BufferedReader(file);\n List<Address> addresses = new ArrayList<>();\n String line;\n\n while((line = reader.readLine()) != null){\n int length = 0;\n String number = line.substring(0, line.indexOf(\" \"));\n length += number.length() + 1;\n String street = line.substring(length, line.indexOf(\",\"));\n length += street.length() + 2;\n String city = line.substring(length, line.indexOf(\",\", length));\n length += city.length() + 2;\n String zip = line.substring(length);\n\n addresses.add(new Address(city, zip, number, street));\n }\n\n reader.close();\n return addresses;\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "boolean hasAddressList();", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "private List<Address> collectLocationAddresses(APDataCollection apData) {\n\t\tint numLocations = apData.getCount(ICommlAutoConstants.LOCATION_XPATH);\n\t\tList<Address> addresses = new ArrayList<Address>(numLocations);\n\n\t\t// Loop through the Location aggregates in the ap data\n\t\tfor (int locationIndex = 0; locationIndex < numLocations; locationIndex++) {\n\n\t\t\t// Create an Address object for each one (containing just the\n\t\t\t// address information.\n\t\t\tAddress address = new Address(apData, ICommlAutoConstants.LOCATION_XPATH, new int[] { locationIndex });\n\t\t\tString id = apData.getFieldValue(ICommlAutoConstants.LOCATION_ID_XPATH, locationIndex, \"\");\n\n\t\t\t// add an id to any location missing one. We need id's on the\n\t\t\t// location so we can link\n\t\t\t// the vehicles back to them.\n\t\t\tif (isEmpty(id)) {\n\t\t\t\tid = apData.generateUID();\n\t\t\t\tapData.setFieldValue(ICommlAutoConstants.LOCATION_ID_XPATH, locationIndex, id);\n\t\t\t}\n\t\t\taddress.setID(id);\n\t\t\taddresses.add(address);\n\t\t}\n\t\treturn addresses;\n\t}", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public org.xmlsoap.schemas.wsdl.soap.TAddress addNewAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n return target;\n }\n }", "@Override\n\tpublic List<Address> FindAllAddress() {\n\t\treturn ab.FindAll();\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList();", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public void listing() {\r\n int count = 1;\r\n for (AdressEntry i : addressEntryList) {\r\n System.out.print(count + \": \");\r\n System.out.println(i);\r\n count++;\r\n }\r\n System.out.println();\r\n }", "private static void addCardsToList(ArrayList<Card> destination , String[] listOfNames , String type)\n {\n for (String name : listOfNames) {\n Card card = new Card(type, name);\n destination.add(card);\n }\n\n }", "int insert(Addresses record);", "void add_to_network(Town town, List<Town> connectedTowns);", "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}", "private Response getAddressList( String term )\n {\n\n ReferenceList list = null;\n try\n {\n if ( \"RestAddressService\".equals( AddressServiceProvider.getInstanceClass( ) ) )\n {\n list = AddressServiceProvider.searchAddress( null, term );\n }\n\n }\n catch( RemoteException e )\n {\n AppLogService.error( e );\n }\n\n if ( list == null )\n {\n _logger.error( Constants.ERROR_NOT_FOUND_RESOURCE );\n return Response.status( Response.Status.NOT_FOUND )\n .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), MSG_ERROR_GET_ADDRESSES ) ) ).build( );\n }\n\n return Response.status( Response.Status.OK ).entity( JsonUtil.buildJsonResponse( new JsonResponse( list ) ) ).build( );\n }", "public List<Address> listAddress()\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address order by address.id asc\").list();\n\n return result;\n }", "public void addBliingAddress(Hashtable<String, String> data,AppiumActions action) throws Throwable{\n\t\taction.click(topupCardPageAndroid.addressLine1Label, \"addressLine1\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine1,\"#302459 Block P\", \"addressLine1\");\n\t\taction.click(topupCardPageAndroid.addressLine2Label, \"addressLine2\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine2,\"Avalon Fremont\", \"addressLine2\");\n\t\taction.click(topupCardPageAndroid.townLabel, \"town\");\n\t\taction.sendKeys(topupCardPageAndroid.town,\"Fremont\", \"town\");\n\t\taction.click(topupCardPageAndroid.countryLabel, \"country\");\n\t\taction.sendKeys(topupCardPageAndroid.country,\"USA\", \"country\");\n\t\taction.click(topupCardPageAndroid.postCodeLabel, \"postCode\");\n\t\taction.sendKeys(topupCardPageAndroid.postCode,\"543953\", \"caexpipostCoderyDaterdNumber\");\n\t\taction.click(topupCardPageAndroid.nextBtn, \"nextBtn\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.waitForElementPresent(topupCardPageAndroid.topupCard, \"topupCard\");\n\t\t\n\t}", "public List<Address> listAddressByAddressOne(String addressOne)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.addressOne = :addressone order by address.id asc\").setParameter(\"addressone\", addressOne).list();\n\n return result;\n }", "public void addDetourStreet( Street s)\r\n {\r\n detour_streets.add(s);\r\n }", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "public void resolveAddress(){\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof LabelCode){\n LabelCode code = (LabelCode)byteCodeList.get(i);\n labels.put(code.getLabel(), i);\n }else if(byteCodeList.get(i) instanceof LineCode){\n LineCode code = (LineCode)byteCodeList.get(i);\n lineNums.add(code.n);\n }\n }\n \n //walk through byteCodeList and assgin proper address\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof GoToCode){\n GoToCode code = (GoToCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof FalseBranchCode){\n FalseBranchCode code = (FalseBranchCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof CallCode){\n CallCode code = (CallCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getFuncName()));\n }\n }\n }", "public boolean addVendorAddress(VendorAddress vaddress);", "public Adresses(String houseNo, String address, String postCode) {\n this.houseNo = houseNo;\n this.address = address;\n this.postCode = postCode;\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public boolean addEmployeeToBillToLocation(Employee emp, String name, String street) {\r\n\t\tfor(int i = 0; i < companyDirectory.size(); i++) {\r\n\t\t\tfor(int j = 0; j < companyDirectory.get(i).getLocations().size(); j++) {\r\n\t\t\t\tif(companyDirectory.get(i).getLocations().get(j) instanceof BillTo &&\r\n\t\t\t\tcompanyDirectory.get(i).getName().equals(name) && \r\n\t\t\t\tcompanyDirectory.get(i).getLocations().get(j).getAddress1().equals(street) ) {\r\n\t\t\t\t\treturn companyDirectory.get(i).getLocations().get(j).getEmployees().add(emp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void parseAddresses(JSONObject addresses) {\n try {\n Gson gson = new Gson();\n Type type = new TypeToken<List<Address>>(){}.getType();\n List<Address> newAddresses = gson.fromJson(addresses.getJSONArray(\"data\").toString(), type);\n mAdapter.addAll(newAddresses);\n if(newAddresses.size() < PAGE_SIZE) {\n isLastPage = true;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "@Override\r\n\tpublic List<UserAddress> viewUserAddressList() {\r\n\t\tList<UserAddress> result = new ArrayList<UserAddress>();\r\n useraddressrepository.findAll().forEach(UserAddress1 -> result.add(UserAddress1));\r\n return result;\r\n\t}", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "public String getAddresses()\n {\n return _addresses;\n }", "public void addMoteToList(SwapMote mote)\n {\n swapMotes.addElement(\"Addr: \" + mote.getAddress() + \" Prod: \" + mote.getProduct());\n }", "public List<Address> getAllAddresses() throws BackendException;", "public static void addAddressToCart(Cart cart, Addresses address) {\n\n cart.setAddress(address);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public List<Address> getAllAddresses(long id) {\n\t\tList<Address> address = new ArrayList<>();\r\n\t\taddressdao.findByUserUId(id)\r\n\t\t.forEach(address::add);\r\n\t\treturn address;\r\n\t}", "public void addNeighbours(int...preds){\n ArrayList adds = new ArrayList();\n if (preds.length>0){\n for (int address : preds) {\n adds.add(address);\n }\n }\n setNeighbors(adds);\n }", "public void listAll(List<Address> AddressList) {\n for (Address a : AddressList) {\n console.promptForPrintPrompt(a.toString());\n }\n }", "public LinkedList<Address> getInputAddressList() {\n assert(invariant());\n return inputAddressList;\n }", "public void testAddAddresses_BatchOperationException()\r\n throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getCountry().setId(10);\r\n this.dao.addAddresses(new Address[]{this.getAddress(), address}, false);\r\n fail(\"BatchOperationException expected\");\r\n } catch (BatchOperationException e) {\r\n //good\r\n }\r\n }", "public List<UrlAddress> searchDBUrl() {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"find all url address\");\n List<UrlAddress> all = urlRepository.findAll();\n return all;\n }", "public void setAddress(String address) { this.address = address; }", "public DnsRrSet addIpAddressesItem(DnsARdata ipAddressesItem) {\n if (this.ipAddresses == null) {\n this.ipAddresses = new ArrayList<DnsARdata>();\n }\n this.ipAddresses.add(ipAddressesItem);\n return this;\n }", "private void loadAddresses() {\n\t\ttry {\n\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\tsession.beginTransaction();\n\t\t\taddresses = session.createCriteria(Address.class).list();\n\t\t\tsession.getTransaction().commit();\n\t\t\tSystem.out.println(\"Retrieved addresses from database:\"\n\t\t\t\t\t+ addresses.size());\n\t\t} catch (Throwable ex) {\n\t\t\tSystem.err.println(\"Can't retrieve address!\" + ex);\n\t\t\tex.printStackTrace();\n\t\t\t// Initialize the message queue anyway\n\t\t\tif (addresses == null) {\n\t\t\t\taddresses = new ArrayList<Address>();\n\t\t\t}\n\t\t}\n\t}", "public Vector<NetworkAddress> getHostAddresses(int type) {return addressesChecker.getAllMyAddresses(type); }", "private void storeHostAddresses() {\n savedHostAddresses.clear();\n /* port */\n savedPort = portComboBox.getStringValue();\n /* addresses */\n for (final Host host : getBrowser().getClusterHosts()) {\n final GuiComboBox cb = addressComboBoxHash.get(host);\n final String address = cb.getStringValue();\n if (address == null || \"\".equals(address)) {\n savedHostAddresses.remove(host);\n } else {\n savedHostAddresses.put(host, address);\n }\n host.getBrowser().getDrbdVIPortList().add(savedPort);\n }\n }", "public interface Address {\n public static final String ADDRESS = \"ADDR\";\n public static final String CONTINUATION = \"CONT\";\n public static final String ADDRESS_LINE1 = \"ADR1\";\n public static final String ADDRESS_LINE2 = \"ADR2\";\n public static final String CITY = \"CITY\";\n public static final String STATE = \"STAE\";\n public static final String POSTAL_CODE = \"POST\";\n public static final String COUNTRY = \"CTRY\";\n public static final String PHONE = \"PHON\";\n\n public List getAddressLines(); // List of String\n\n public void setAddressLines(List addressLines);\n\n public String getAddressLine1();\n\n public void setAddressLine1(String line1);\n\n public String getAddressLine2();\n\n public void setAddressLine2(String line2);\n\n public String getCity();\n\n public void setCity(String city);\n\n public String getState();\n\n public void setState(String state);\n\n public String getPostalCode();\n\n public void setPostalCode(String postalCode);\n\n public String getCountry();\n\n public void setCountry(String country);\n\n public String getPhoneNumber();\n\n public void setPhoneNumber(String phoneNumber);\n\n public List getPhoneNumbers(); // List of String\n\n public void setPhoneNumbers(List phoneNumbers);\n}", "public boolean addAddress(Address address) {\n\t\tList<Address> addresslist = addressdao.findByUserUId(address.getUser().getId());\r\n\t\tif(addresslist.size() == 0){\r\n\t\t\taddressdao.save(address);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tpublic List<Map<String, String>> selectAddressList() {\n\t\treturn ado.selectAddressList();\r\n\t}", "public void addFriendList(FriendList list);", "@Override\n public boolean setOrderAddresses(User user, String address, ArrayList<String> shoppickup) {\n if(!setShippingAddress(user, address)){\n return false;\n }\n // aggiorno indirizzo ritiro per tutti e soli quelli nella lista shoppickup\n for (String rit: shoppickup) {\n String[] prod_shop = rit.split(\"_\");\n\n if (prod_shop.length != 2 || !setShopPickup(user, prod_shop[0], prod_shop[1])) {\n // errore inserimento nel database o stringa passata errata\n return false;\n }\n }\n\n\n return true;\n }", "int insertSelective(Addresses record);", "@Override\n\tpublic List<Address> getAddressListByUserid(int userid) {\n\t\treturn sqlSessionTemplate.selectList(sqlId(\"getAddressByUserId\"),userid);\n\t}" ]
[ "0.7738898", "0.75967145", "0.69051677", "0.6865089", "0.67962027", "0.67524433", "0.67304176", "0.66289407", "0.6613895", "0.65302205", "0.6435231", "0.6431233", "0.6427784", "0.64256793", "0.6398467", "0.63809216", "0.6341057", "0.6325121", "0.6288929", "0.62677675", "0.6228768", "0.6218618", "0.6215973", "0.610712", "0.6073787", "0.60402423", "0.5998252", "0.5988432", "0.5974884", "0.5939116", "0.5900088", "0.58813244", "0.58798426", "0.58695346", "0.5863134", "0.5845512", "0.5841459", "0.5830152", "0.5825203", "0.5825084", "0.5813556", "0.5803765", "0.57599074", "0.5732188", "0.57240605", "0.57216597", "0.57188404", "0.5715787", "0.57040375", "0.5691635", "0.5691469", "0.5680686", "0.56804127", "0.5676473", "0.56673825", "0.5643688", "0.5633251", "0.5626996", "0.56179464", "0.56046337", "0.55806804", "0.5575284", "0.5566698", "0.5547375", "0.5544923", "0.55418015", "0.5539971", "0.55388683", "0.553374", "0.5517697", "0.5513962", "0.54974866", "0.5496323", "0.54933465", "0.5481545", "0.5472391", "0.5459855", "0.5459192", "0.5455511", "0.54499674", "0.54443294", "0.5443818", "0.54158074", "0.5415606", "0.54126346", "0.5409502", "0.5387489", "0.5375828", "0.53724384", "0.5367368", "0.5360836", "0.53584915", "0.5356403", "0.5354041", "0.53458923", "0.5336766", "0.53305566", "0.5322429", "0.53122926", "0.53080916" ]
0.7685869
1
Adds the given address(es) to the cc list
public void addCc(String... address) { cc.addAll(java.util.Arrays.asList(address)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCc(List<String> addresses) {\n\t\tcc.addAll(addresses);\n\t}", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}", "public void addCc(String cc) {\n if(this.cc == null)\n this.cc = new HashSet<>();\n if(StringUtils.hasLength(cc))\n this.cc.add(cc);\n }", "public void addTo(List<String> addresses) {\n\t\tto.addAll(addresses);\n\t}", "public String addAddressList(BufferedReader address);", "public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "public void setCc(Collection<Address> cc) {\n setAddressList(FieldName.CC, cc);\n }", "public void addCc(String cc, String key) throws CreditCardAPIException;", "public void addAddress(String Address, Coord coord);", "@Test\n\t\tpublic void testAddBcc() throws Exception{\n\t\t\temail.addBcc(TEST_EMAILS);\n\t\t\tassertEquals(3, email.getBccAddresses().size());\t\n\t\t}", "public static void addCC(CuboidClipboard cc) {\n\t\t\n\t}", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "public void setCc(Address cc) {\n setAddressList(FieldName.CC, cc);\n }", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public static void addAddressToCart(Cart cart, Addresses address) {\n\n cart.setAddress(address);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "void addHasAddress(String newHasAddress);", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public void addBcc(String bcc) {\n if(this.bcc == null)\n this.bcc = new HashSet<>();\n if(StringUtils.hasLength(bcc))\n this.bcc.add(bcc);\n }", "@Override\r\n\tpublic void add(CreditCard ...t) {\n\t\tfor(CreditCard card:t)\r\n\t\t this.cardList.add(card);\r\n\t}", "private static void addCardsToList(ArrayList<Card> destination , String[] listOfNames , String type)\n {\n for (String name : listOfNames) {\n Card card = new Card(type, name);\n destination.add(card);\n }\n\n }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public AddressList getCc() {\n return getAddressList(FieldName.CC);\n }", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "public void uponSuccessfulRegistration(String[] emailCCList){\n \tSimpleMailMessage[] mailMessageArray = new SimpleMailMessage[1];\r\n Iterator iterator = userEmailIds.iterator();\r\n // for (int index = 0; iterator.hasNext(); index ++){\r\n SimpleMailMessage message = new SimpleMailMessage();\r\n String toAddress = (String)iterator.next();\r\n message.setFrom(\"[email protected]\");\r\n message.setTo(\"[email protected]\");\r\n message.setSubject(\"With CC\");\r\n message.setCc(emailCCList);\r\n message.setText(\"Mail Sent from @[email protected]\");\r\n mailMessageArray[0] = message;\r\n// }\r\n mailSender.send(mailMessageArray);\r\n }", "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }", "public List<String> getCc() {\n return cc;\n }", "Object getCclist();", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public abstract List<String> associateAddresses(NodeMetadata node);", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "void addContact(String name, String number);", "void addContact(String name,String number);", "void add_to_network(Town town, List<Town> connectedTowns);", "public void addReplyTo(List<String> addresses) {\n\t\treplyTo.addAll(addresses);\n\t}", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public Builder addAllContactAddress(\n java.lang.Iterable<? extends kr.pik.message.Profile.ProfileMessage.ContactAddress> values) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, contactAddress_);\n onChanged();\n } else {\n contactAddressBuilder_.addAllMessages(values);\n }\n return this;\n }", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "@GenIgnore\n public MailMessage setCc(String cc) {\n List<String> ccList = new ArrayList<String>();\n ccList.add(cc);\n this.cc = ccList;\n return this;\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public static void addContact ( LinkedList contactsList ) { \n\t\tSystem.out.print ( \"\\n\" + \"Enter the contact's first and last name: \" ); // prompt\n\t\tString [ ] firstAndLastName = CheckInput.getString( ).split( \" \" ); // split the name into first and last\n\t\tString firstName = firstAndLastName [ 0 ]; // assign\n\t\tString lastName = firstAndLastName [ 1 ];\n\t\tSystem.out.print ( \"Enter the contact's phone number: \" );\n\t\tString phoneNumber = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's address: \" );\n\t\tString address = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's city: \" );\n\t\tString city = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's zip code: \" );\n\t\tString zip = CheckInput.getString( );\n\t\tcontactsList.add ( new Contact ( firstName, lastName, phoneNumber, address, city, zip ) );\n\t\t// adds to the LinkedList a new contact with the user given information\n\t\tSystem.out.print ( \"\\n\" );\n\t}", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public Builder addContactAddress(kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(value);\n }\n return this;\n }", "private void addContact(Contact contact) {\n contactList.add(contact);\n System.out.println(\"contact added whose name is : \" + contact.getFirstName() + \" \" + contact.getLastName());\n\n }", "public FakeDns addresses(List<InetAddress> addresses) {\n this.addresses = new ArrayList<>(addresses);\n return this;\n }", "public boolean addVendorAddress(VendorAddress vaddress);", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();", "public List<com.generator.tables.pojos.CreditChain> fetchByAddress(String... values) {\n return fetch(CreditChain.CREDIT_CHAIN.ADDRESS, values);\n }", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "public Builder addContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(index, value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(index, value);\n }\n return this;\n }", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "public void addAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO contact_info (`person_id`, `contact_date`, `address_line_1`, `address_line_2`, `city`, `state`, `country`, `zipcode`) values (?, curdate(), ?, ?, ?, ?, ?, ?)\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t //stmt.setDate(2, new java.sql.Date(DateUtility.getDateObj(address.getContactDate()).getTime()));\n\t\t stmt.setString(2, address.getAddress1());\n\t\t stmt.setString(3, address.getAddress2());\n\t\t stmt.setString(4, address.getCity());\n\t\t stmt.setString(5, address.getState());\n\t\t stmt.setString(6, address.getCountry());\n\t\t stmt.setString(7, address.getZip());\n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t // Interaction with Other Two Tables \n\t\t addPhoneNumber(address);\n\t\t addEmailAddress(address);\n\t\t \n\t\t\t\n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public void setBcc(Collection<Address> bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void increment(String address) {\n\t\tString cc = this.countryCode(address);\n\t\tint i = findIndex(cc);\n\t\tif (i != -1) {\n\t\t\tCountry c1 = this.countries.get(i);\n\t\t\tc1.increment();\n\t\t} else {\n\t\t\ti = this.nextAvailable++;\n\t\t\tCountry c1 = new Country(cc);\n\t\t\tthis.countries.add(i, c1);\n\t\t}\n\t\tthis.totalCount++;\n\t}", "public boolean addAddress(Address address) {\n\t\tList<Address> addresslist = addressdao.findByUserUId(address.getUser().getId());\r\n\t\tif(addresslist.size() == 0){\r\n\t\t\taddressdao.save(address);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "public void addContact(Contact contactToAdd)\n {\n for (Contact contact: mContacts)\n {\n if (contact.getEmail().equals(contactToAdd.getEmail()))\n {\n //exit if contact exists in the list\n return;\n }\n }\n mContacts.add(contactToAdd);\n }", "void addContact(String name, int number)\r\n\t{\r\n\t\t\r\n\t\tContact a = new Contact(number,name);\r\n\t\tthis.add(a);\r\n\t}", "public void addContact() {\n\t\tif (contactCounter == contactList.length) {\n\t\t\tSystem.err.println(\"Maximum contacts reached. \"\n\t\t\t\t\t\t\t\t+ \"No more contact can be added\");\n\t\treturn;\n\t\t}\n\t\t\n\t\treadContactInfo();\t\n\t}", "public void addContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Add Contact ]--%n\");\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.printf(\"%nFirst Name: \");\n\t\tString firstName = s.next();\n\t\tSystem.out.printf(\"%nLast Name: \");\n\t\tString lastName = s.next();\n\t\tSystem.out.printf(\"%nPhone Number: \");\n\t\tString phoneNumber = s.next();\n\t\tSystem.out.printf(\"%nEmail Address: \");\n\t\tString emailAddress = s.next();\n\t\tSystem.out.printf(\"%nCompany: \");\n\t\tString company = s.next();\n\t\tBusinessContact b = new BusinessContact(firstName, lastName,\n\t\t\t\tphoneNumber, emailAddress, company);\n\t\tcontacts.add(b);\n\t}", "public MessageBuilder cc(String ccAddresses) throws MessagingException {\n\n this.setRecipient(ccAddresses, this.message, Message.RecipientType.CC);\n return this;\n }", "public MailMessage setCc(List<String> cc) {\n this.cc = cc;\n return this;\n }", "public void setBcc(Address... bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void addContact() throws IOException {\n\t\t\n\t\tContact contact = Contact.getContact();\n\t\twhile (checkPhone(contact.getPhone()) != -1) {\n\t\t\tSystem.out.println(\"Phone already exits. Please input again!\");\n\t\t\tcontact.setPhone(getString(\"phone\"));\n\t\t}\n\t\tlist.add(contact);\n\t\tSystem.out.println(\"---Added\");\n\t}", "public void addEmailAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO email_id_info (`person_id`, `email_id`, `created_date`) values (?, ?, curdate())\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t stmt.setString(2,address.getEmailAddress());\n\t\t \n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t ResultSet rs = stmt.getGeneratedKeys();\n\t\t if (rs.next()) {\n\t\t int newId = rs.getInt(1);\n\t\t address.setEmailAddressId(String.valueOf(newId));\n\t\t }\n\t\t \n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Emaail Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public void append(CPoint cpoint) {\n\tcplist.add(cpoint);\n }", "public void testCC() throws Throwable {\n\n long ts = System.currentTimeMillis();\n String summary = \"somary\" + ts;\n String id = TestUtil.createIssue(getRepository(), summary);\n BugzillaIssue issue = (BugzillaIssue) getRepository().getIssue(id);\n openTask(issue);\n assertEquals(summary, issue.getFieldValue(IssueField.SUMMARY));\n\n resetStatusValues(issue);\n\n BugzillaRepository repository = getRepository();\n BugzillaRepositoryConnector brc = new BugzillaRepositoryConnector(new File(getWorkDir().getAbsolutePath(), \"bugzillaconfiguration\"));\n NbTask task = BugzillaUtil.getTask(repository, id, false);\n TaskData td = task.getTaskDataState().getRepositoryData();\n\n // add a cc\n assertNotSame(REPO_USER, issue.getFieldValue(IssueField.CC));\n setFieldValue(td, IssueField.NEWCC, REPO_USER);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n \n assertEquals(REPO_USER, issue.getFieldValue(IssueField.CC));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n\n // add new cc\n td = task.getTaskDataState().getRepositoryData();\n setFieldValue(td, IssueField.NEWCC, REPO_USER2);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n\n List<String> ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(2, ccs.size());\n assertTrue(ccs.contains(REPO_USER));\n assertTrue(ccs.contains(REPO_USER2));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n \n // add two cc-s at once\n td = task.getTaskDataState().getRepositoryData();\n setFieldValue(td, IssueField.NEWCC, REPO_USER3 + \", \" + REPO_USER4);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n\n ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(4, ccs.size());\n assertTrue(ccs.contains(REPO_USER));\n assertTrue(ccs.contains(REPO_USER2));\n assertTrue(ccs.contains(REPO_USER3));\n assertTrue(ccs.contains(REPO_USER4));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n\n // remove a cc\n td = task.getTaskDataState().getRepositoryData();\n ccs = new ArrayList<String>();\n ccs.add(REPO_USER4);\n ccs.add(REPO_USER);\n setFieldValues(td, IssueField.REMOVECC, ccs);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n\n ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(2, ccs.size());\n assertTrue(ccs.contains(REPO_USER2));\n assertTrue(ccs.contains(REPO_USER3));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n\n // remove all\n td = task.getTaskDataState().getRepositoryData();\n ccs = new ArrayList<String>();\n ccs.add(REPO_USER3);\n ccs.add(REPO_USER2); \n setFieldValues(td, IssueField.REMOVECC, ccs);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(0, ccs.size());\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n }", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "public synchronized static void toCrawlList_add(ArrayList<String> _toCrawlList,String url)\n\t{\n\n\t\tif(!(arrayList_contain(_toCrawlList,url)) && _toCrawlList.size() < ARRAYLIST_SIZE)\n\t\t\t_toCrawlList.add(url);\n\t}", "public void AddContact(View view){\n Utils.Route_Start(ListContact.this,Contato.class);\n // Notificar, para atualizar a lista.\n\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "Object getBcclist();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }", "public static void addContacts(ContactFormData formData) {\n long idValue = formData.id;\n if (formData.id == 0) {\n idValue = ++currentIdValue;\n }\n Contact contact = new Contact(idValue, formData.firstName, formData.lastName, formData.telephone);\n contacts.put(idValue, contact);\n }", "public void addBliingAddress(Hashtable<String, String> data,AppiumActions action) throws Throwable{\n\t\taction.click(topupCardPageAndroid.addressLine1Label, \"addressLine1\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine1,\"#302459 Block P\", \"addressLine1\");\n\t\taction.click(topupCardPageAndroid.addressLine2Label, \"addressLine2\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine2,\"Avalon Fremont\", \"addressLine2\");\n\t\taction.click(topupCardPageAndroid.townLabel, \"town\");\n\t\taction.sendKeys(topupCardPageAndroid.town,\"Fremont\", \"town\");\n\t\taction.click(topupCardPageAndroid.countryLabel, \"country\");\n\t\taction.sendKeys(topupCardPageAndroid.country,\"USA\", \"country\");\n\t\taction.click(topupCardPageAndroid.postCodeLabel, \"postCode\");\n\t\taction.sendKeys(topupCardPageAndroid.postCode,\"543953\", \"caexpipostCoderyDaterdNumber\");\n\t\taction.click(topupCardPageAndroid.nextBtn, \"nextBtn\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.waitForElementPresent(topupCardPageAndroid.topupCard, \"topupCard\");\n\t\t\n\t}", "public Call inviteAddress(Address addr);", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "@Override\n\tpublic void add(cp_company cp) {\n\t\t\n\t}", "public void add(Cards cs) {\r\n\t\tfor (int i = 0; i < cs.getSize(); i++) {\r\n\t\t\tcards.addCard(cs.getCard(i));\r\n\t\t}\r\n\t\tseedCards.add(cs);\r\n\t}", "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 }", "public void addCreditCard(CreditCard creditCard) {\r\n\t\tcreditCards.add(creditCard);\r\n\t}", "public Builder addContactAddress(\n kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder builderForValue) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n contactAddress_.add(builderForValue.build());\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public void testAddAddresses() throws Exception {\r\n try {\r\n this.dao.addAddresses(new Address[]{null}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }" ]
[ "0.8256242", "0.75205034", "0.7235217", "0.71030444", "0.6870639", "0.6716262", "0.6588964", "0.6299704", "0.61981875", "0.6160412", "0.6118592", "0.6017918", "0.59946644", "0.59833974", "0.5979356", "0.5898834", "0.5811455", "0.57815063", "0.57708865", "0.5764422", "0.572467", "0.56889313", "0.56770104", "0.56730783", "0.56474155", "0.5631614", "0.5629576", "0.5624078", "0.56229484", "0.559331", "0.5579113", "0.55386645", "0.55292547", "0.5526599", "0.55217487", "0.5517788", "0.55112016", "0.54668945", "0.54602385", "0.54487115", "0.54231805", "0.54119474", "0.5410493", "0.53979075", "0.5378777", "0.5374406", "0.537103", "0.53622305", "0.5359118", "0.5336737", "0.5335754", "0.53355247", "0.5323567", "0.5309806", "0.52931905", "0.52600545", "0.52534217", "0.52460015", "0.5240078", "0.5238834", "0.5224831", "0.52143705", "0.520019", "0.5197498", "0.51880294", "0.517258", "0.5172483", "0.516167", "0.5158509", "0.5157598", "0.51476026", "0.5139917", "0.51358247", "0.5120894", "0.5107986", "0.5106359", "0.5099261", "0.5091878", "0.5090222", "0.5089733", "0.508621", "0.5080905", "0.50773543", "0.5074803", "0.504686", "0.50451654", "0.50414795", "0.5032095", "0.50249344", "0.5022536", "0.5021469", "0.50144696", "0.50102115", "0.5008349", "0.50053257", "0.49937403", "0.49764892", "0.4974489", "0.4971469", "0.49694377" ]
0.84319615
0
Adds the given address(es) to the bcc list
public void addBcc(String... address) { bcc.addAll(java.util.Arrays.asList(address)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addCc(List<String> addresses) {\n\t\tcc.addAll(addresses);\n\t}", "public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}", "public String addAddressList(BufferedReader address);", "public void addTo(List<String> addresses) {\n\t\tto.addAll(addresses);\n\t}", "public void addBcc(String bcc) {\n if(this.bcc == null)\n this.bcc = new HashSet<>();\n if(StringUtils.hasLength(bcc))\n this.bcc.add(bcc);\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "@Test\n\t\tpublic void testAddBcc() throws Exception{\n\t\t\temail.addBcc(TEST_EMAILS);\n\t\t\tassertEquals(3, email.getBccAddresses().size());\t\n\t\t}", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "public void addAddress(String Address, Coord coord);", "public void setBcc(Collection<Address> bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setBcc(Address... bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public void addCc(String cc) {\n if(this.cc == null)\n this.cc = new HashSet<>();\n if(StringUtils.hasLength(cc))\n this.cc.add(cc);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "void addHasAddress(String newHasAddress);", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "Object getBcclist();", "@NotNull\n List<Balance> balances(@NotNull List<String> addresses) throws EtherScanException;", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public boolean addVendorAddress(VendorAddress vaddress);", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void setBcc(Address bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void addBliingAddress(Hashtable<String, String> data,AppiumActions action) throws Throwable{\n\t\taction.click(topupCardPageAndroid.addressLine1Label, \"addressLine1\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine1,\"#302459 Block P\", \"addressLine1\");\n\t\taction.click(topupCardPageAndroid.addressLine2Label, \"addressLine2\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine2,\"Avalon Fremont\", \"addressLine2\");\n\t\taction.click(topupCardPageAndroid.townLabel, \"town\");\n\t\taction.sendKeys(topupCardPageAndroid.town,\"Fremont\", \"town\");\n\t\taction.click(topupCardPageAndroid.countryLabel, \"country\");\n\t\taction.sendKeys(topupCardPageAndroid.country,\"USA\", \"country\");\n\t\taction.click(topupCardPageAndroid.postCodeLabel, \"postCode\");\n\t\taction.sendKeys(topupCardPageAndroid.postCode,\"543953\", \"caexpipostCoderyDaterdNumber\");\n\t\taction.click(topupCardPageAndroid.nextBtn, \"nextBtn\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.waitForElementPresent(topupCardPageAndroid.topupCard, \"topupCard\");\n\t\t\n\t}", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void setCc(Collection<Address> cc) {\n setAddressList(FieldName.CC, cc);\n }", "public List<String> getBcc() {\n return bcc;\n }", "public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }", "public abstract List<String> associateAddresses(NodeMetadata node);", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void addCc(String cc, String key) throws CreditCardAPIException;", "public static void addAddressToCart(Cart cart, Addresses address) {\n\n cart.setAddress(address);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "public void setBillingAddressInCart(Address addr);", "public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }", "public void addAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO contact_info (`person_id`, `contact_date`, `address_line_1`, `address_line_2`, `city`, `state`, `country`, `zipcode`) values (?, curdate(), ?, ?, ?, ?, ?, ?)\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t //stmt.setDate(2, new java.sql.Date(DateUtility.getDateObj(address.getContactDate()).getTime()));\n\t\t stmt.setString(2, address.getAddress1());\n\t\t stmt.setString(3, address.getAddress2());\n\t\t stmt.setString(4, address.getCity());\n\t\t stmt.setString(5, address.getState());\n\t\t stmt.setString(6, address.getCountry());\n\t\t stmt.setString(7, address.getZip());\n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t // Interaction with Other Two Tables \n\t\t addPhoneNumber(address);\n\t\t addEmailAddress(address);\n\t\t \n\t\t\t\n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public AddressList getBcc() {\n return getAddressList(FieldName.BCC);\n }", "void add_to_network(Town town, List<Town> connectedTowns);", "private List<Messages.Address> mapModelAddressToWireAddress(List<byte[]> addresses) {\n return addresses.stream().map(address -> Messages.Address.newBuilder()\n .setPort(6565)\n .setIpAddress(ByteString.copyFrom(address))\n .build())\n .collect(Collectors.toList());\n }", "@Override\r\n\tpublic void add(CreditCard ...t) {\n\t\tfor(CreditCard card:t)\r\n\t\t this.cardList.add(card);\r\n\t}", "public boolean addAddress(Address address) {\n\t\tList<Address> addresslist = addressdao.findByUserUId(address.getUser().getId());\r\n\t\tif(addresslist.size() == 0){\r\n\t\t\taddressdao.save(address);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "@GenIgnore\n public MailMessage setBcc(String bcc) {\n List<String> bccList = new ArrayList<String>();\n bccList.add(bcc);\n this.bcc = bccList;\n return this;\n }", "public static void addCC(CuboidClipboard cc) {\n\t\t\n\t}", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public AdressBook() {\r\n addressEntryList = new LinkedList<>();\r\n }", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "public Builder addAllContactAddress(\n java.lang.Iterable<? extends kr.pik.message.Profile.ProfileMessage.ContactAddress> values) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, contactAddress_);\n onChanged();\n } else {\n contactAddressBuilder_.addAllMessages(values);\n }\n return this;\n }", "private static void addBoatToList(Boat b) {\n\t\tboats.add(b);\n\t}", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "public BsAddressExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "public void testAddAddresses_BatchOperationException()\r\n throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getCountry().setId(10);\r\n this.dao.addAddresses(new Address[]{this.getAddress(), address}, false);\r\n fail(\"BatchOperationException expected\");\r\n } catch (BatchOperationException e) {\r\n //good\r\n }\r\n }", "public void addEmailAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO email_id_info (`person_id`, `email_id`, `created_date`) values (?, ?, curdate())\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t stmt.setString(2,address.getEmailAddress());\n\t\t \n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t ResultSet rs = stmt.getGeneratedKeys();\n\t\t if (rs.next()) {\n\t\t int newId = rs.getInt(1);\n\t\t address.setEmailAddressId(String.valueOf(newId));\n\t\t }\n\t\t \n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Emaail Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public Builder addContactAddress(kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(value);\n }\n return this;\n }", "List<?> getAddress();", "public boolean addStudentAddress(StudentAddress studentAddress) {\n\t\treturn false;\r\n\t}", "private static void addCardsToList(ArrayList<Card> destination , String[] listOfNames , String type)\n {\n for (String name : listOfNames) {\n Card card = new Card(type, name);\n destination.add(card);\n }\n\n }", "public void testAddAddresses() throws Exception {\r\n try {\r\n this.dao.addAddresses(new Address[]{null}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public List<com.generator.tables.pojos.CreditChain> fetchByAddress(String... values) {\n return fetch(CreditChain.CREDIT_CHAIN.ADDRESS, values);\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public void addBuses(int[] vbuses)\n\t{\n\t\tfor (int v : vbuses) _list[v] = Empty;\n\t}", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public Adresses(String houseNo, String address, String postCode) {\n this.houseNo = houseNo;\n this.address = address;\n this.postCode = postCode;\n }", "public void setCc(Address cc) {\n setAddressList(FieldName.CC, cc);\n }", "public MailMessage setBcc(List<String> bcc) {\n this.bcc = bcc;\n return this;\n }", "public void setAddress(String address) { this.address = address; }", "public org.xmlsoap.schemas.wsdl.soap.TAddress addNewAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n return target;\n }\n }", "public void resolveAddress(){\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof LabelCode){\n LabelCode code = (LabelCode)byteCodeList.get(i);\n labels.put(code.getLabel(), i);\n }else if(byteCodeList.get(i) instanceof LineCode){\n LineCode code = (LineCode)byteCodeList.get(i);\n lineNums.add(code.n);\n }\n }\n \n //walk through byteCodeList and assgin proper address\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof GoToCode){\n GoToCode code = (GoToCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof FalseBranchCode){\n FalseBranchCode code = (FalseBranchCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof CallCode){\n CallCode code = (CallCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getFuncName()));\n }\n }\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();", "@Override\n\tpublic Result addComBorrowings(ComBorrowings record) {\n\t\tif (comBorrowingsMapper.insert(record) == 0) {\n\t\t\treturn Result.build(500, \"ÐÂÔöʧ°Ü£¡\");\n\t\t}\n\t\treturn Result.ok();\n\t}", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public Builder addContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(index, value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(index, value);\n }\n return this;\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "Builder setAddress(String address);", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyAddressDescription addNewBank()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyAddressDescription target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyAddressDescription)get_store().add_element_user(BANK$0);\n return target;\n }\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "boolean hasAddressList();", "public IndividualAddress(final byte[] address)\n\t{\n\t\tsuper(address);\n\t}", "public static List<Address> listAddressBillingByIdCustomer(int a) throws SQLException, NamingException {\n List<Address> result = new ArrayList<Address>();\n Database database = Database.getInstance();\n Connection connection;\n connection = database.getConnection();\n PreparedStatement statement = connection.prepareStatement(viewAddressBillingByIdCustomer);\n statement.setInt(1, a);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n Address address = new Address(\n rs.getInt(\"ADDRESS_ID\"),\n rs.getString(\"ADDRESS_COMPANY_NAME\"),\n rs.getString(\"ADDRESS_L_NAME\"),\n rs.getString(\"ADDRESS_F_NAME\"),\n rs.getString(\"ADDRESS_STREET\"),\n rs.getString(\"ADDRESS_STREET_EXTRA\"),\n rs.getString(\"ADDRESS_POSTCODE\"),\n rs.getString(\"ADDRESS_CITY\"),\n rs.getString(\"ADDRESS_PHONE\"),\n rs.getString(\"ADDRESS_PHONE_EXTRA\"));\n result.add(address);\n }\n return result;\n }", "boolean addAllPCs(List<PCDevice> pcs);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "@Override\r\n\tpublic Address addAddress(Address address, int companyId) {\n\t\treturn getAddressDAO().addAddress(address,companyId);\r\n\t}", "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}" ]
[ "0.8015306", "0.7775167", "0.76416254", "0.707476", "0.68524617", "0.66562575", "0.6357455", "0.6326261", "0.63000625", "0.6209517", "0.6104788", "0.6081975", "0.6064125", "0.60369015", "0.60263366", "0.6015618", "0.6000326", "0.59545714", "0.59461486", "0.5849626", "0.57852775", "0.576132", "0.5759898", "0.57571995", "0.5741328", "0.57384336", "0.5726748", "0.5675367", "0.5663355", "0.5656004", "0.56399167", "0.55969805", "0.5592747", "0.5590527", "0.5578807", "0.5568643", "0.55439985", "0.5536532", "0.5535178", "0.55272907", "0.552727", "0.5512936", "0.5511563", "0.54677856", "0.54626507", "0.5417009", "0.5401927", "0.54006666", "0.5396922", "0.5386949", "0.5362621", "0.5342439", "0.5342007", "0.53396744", "0.53347594", "0.5319233", "0.53007656", "0.52952373", "0.5294693", "0.5264474", "0.5258215", "0.52531606", "0.524526", "0.52083933", "0.5206237", "0.5197381", "0.51926845", "0.51843584", "0.5181687", "0.5167706", "0.51655674", "0.5154551", "0.515355", "0.51532257", "0.5151118", "0.51477796", "0.51412076", "0.5139011", "0.51378006", "0.51233196", "0.51110625", "0.5111048", "0.5109153", "0.51076794", "0.5102407", "0.5097868", "0.5092734", "0.5082727", "0.5064515", "0.5064089", "0.50640327", "0.50615275", "0.5058567", "0.50571895", "0.50561184", "0.50480646", "0.50443906", "0.50443906", "0.50415283", "0.50332135" ]
0.8223671
0
Adds the given address(es) to the replyTo list
public void addReplyTo(String... address) { replyTo.addAll(java.util.Arrays.asList(address)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addReplyTo(List<String> addresses) {\n\t\treplyTo.addAll(addresses);\n\t}", "public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}", "public void addTo(List<String> addresses) {\n\t\tto.addAll(addresses);\n\t}", "public void setReplyTo(Collection<Address> replyTo) {\n setAddressList(FieldName.REPLY_TO, replyTo);\n }", "public void setReplyTo(Address... replyTo) {\n setAddressList(FieldName.REPLY_TO, replyTo);\n }", "public String addAddressList(BufferedReader address);", "@Test\n\t\tpublic void testAddReplyTo() throws Exception\n\t\t{\n\t\t\temail.addReplyTo(TEST_EMAILS[2], \"SOME_NAME\");\n\t\t\tassertNotNull(email.getReplyToAddresses());\n\t\t}", "public void setReplyTo(Address replyTo) {\n setAddressList(FieldName.REPLY_TO, replyTo);\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public void addCc(List<String> addresses) {\n\t\tcc.addAll(addresses);\n\t}", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "private String _getAddressString(Address[] replyToAddresses)\n {\n\n StringBuffer to = new StringBuffer(100);\n\n for (int i = 0; i < replyToAddresses.length; i++)\n {\n if (i > 0)\n to.append(\",\");\n to.append(((InternetAddress)replyToAddresses[i]).getAddress());\n }\n\n return to.toString();\n\n }", "public void setReplyTo(String tmp) {\n this.replyTo = tmp;\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void setTo(Address... to) {\n setAddressList(FieldName.TO, to);\n }", "public void setReceivers(String[] address) throws MessagingException\r\n {\r\n int size = address.length;\r\n receivers = new InternetAddress[size];\r\n for(int i=0;i<address.length;i++)\r\n {\r\n receivers[i] = new InternetAddress(address[i]);\r\n }\r\n }", "public abstract List<String> associateAddresses(NodeMetadata node);", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void setMessageAddress(String address);", "private void setRecipients(MimeMessage msg,\n Message.RecipientType recipientType,\n Collection addresses)\n throws MessagingException\n {\n InternetAddress[] recipients;\n Iterator it;\n int i;\n\n if (addresses.size() > 0)\n {\n recipients = new InternetAddress[addresses.size()];\n\n for (i = 0, it = addresses.iterator(); it.hasNext(); i++)\n {\n EmailAddress addr = (EmailAddress) it.next();\n recipients[i] = addr.getInternetAddress();\n }\n\n msg.setRecipients(recipientType, recipients);\n }\n }", "public FakeDns addresses(List<InetAddress> addresses) {\n this.addresses = new ArrayList<>(addresses);\n return this;\n }", "public void setTo(Collection<Address> to) {\n setAddressList(FieldName.TO, to);\n }", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public AddressList getReplyTo() {\n return getAddressList(FieldName.REPLY_TO);\n }", "@Override\r\n\tpublic void addReply(ReplyDTO replyDTO) {\n\t\tlog.info(\"replyDTO:\"+replyDTO);\r\n\t\treplyMapper.create(replyDTO);\r\n\t}", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "private void addOutgoing(String to, String subject, String text, Message m){\n\t\tMyMessage mess = new MyMessage(m, \"Eddian\", to, subject, text,\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime());\n\t\toutgoingList.add(mess);\n\t}", "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "byte[] getReplyAddress();", "public Call inviteAddress(Address addr);", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public void addedToRouteTable(long idNode, Address address){\r\n\t\t\r\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "private List<Messages.Address> mapModelAddressToWireAddress(List<byte[]> addresses) {\n return addresses.stream().map(address -> Messages.Address.newBuilder()\n .setPort(6565)\n .setIpAddress(ByteString.copyFrom(address))\n .build())\n .collect(Collectors.toList());\n }", "@Override\n public void abreIntentEnderecos(ArrayList lstAddresses) {\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }", "public void setTo(Address to) {\n setAddressList(FieldName.TO, to);\n }", "@java.lang.Deprecated public Builder addListeningAddresses(\n int index, io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(index, value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void addRecipient(){\n //mRATable.insert();\n }", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 1;\n add_address_handler.sendMessage(msg);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 0;\n add_address_handler.sendMessage(msg);\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "@Test\n public void testReplyToRequestForUs() {\n Ip4Address theirIp = Ip4Address.valueOf(\"10.0.1.254\");\n Ip4Address ourFirstIp = Ip4Address.valueOf(\"10.0.1.1\");\n Ip4Address ourSecondIp = Ip4Address.valueOf(\"10.0.2.1\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID1, MAC1, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID1)).andReturn(requestor);\n replay(hostService);\n replay(interfaceService);\n\n Ethernet arpRequest = buildArp(ARP.OP_REQUEST, VLAN1, MAC1, null, theirIp, ourFirstIp);\n\n proxyArp.reply(arpRequest, LOC1);\n\n assertEquals(1, packetService.packets.size());\n Ethernet arpReply = buildArp(ARP.OP_REPLY, VLAN1, firstMac, MAC1, ourFirstIp, theirIp);\n verifyPacketOut(arpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n arpRequest = buildArp(ARP.OP_REQUEST, VLAN1, MAC1, null, theirIp, ourSecondIp);\n\n proxyArp.reply(arpRequest, LOC1);\n\n assertEquals(1, packetService.packets.size());\n arpReply = buildArp(ARP.OP_REPLY, VLAN1, secondMac, MAC1, ourSecondIp, theirIp);\n verifyPacketOut(arpReply, LOC1, packetService.packets.get(0));\n }", "void addHasAddress(String newHasAddress);", "public void addAddress(String Address, Coord coord);", "public Builder addAllContactAddress(\n java.lang.Iterable<? extends kr.pik.message.Profile.ProfileMessage.ContactAddress> values) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, contactAddress_);\n onChanged();\n } else {\n contactAddressBuilder_.addAllMessages(values);\n }\n return this;\n }", "public void invite(String userAddress, String reason)\n {\n assertConnected();\n\n if (logger.isInfoEnabled())\n logger.info(\"Inviting \" + userAddress + \" for reason: \" + reason);\n\n if (chatRoomSession.getState().equals(ChatSessionState.INROOM))\n chatRoomSession.invite(new Screenname(userAddress), reason);\n else\n inviteUserList.put(userAddress, reason);\n }", "void transferOwnerShipToUser(List<String> list, String toEmail);", "public void addMoteToList(SwapMote mote)\n {\n swapMotes.addElement(\"Addr: \" + mote.getAddress() + \" Prod: \" + mote.getProduct());\n }", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public static Boolean addAutoReply(String to, String message) {\r\n\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(TO, to);\r\n\t\tvalues.put(MESSAGE, message);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// Perform insert into Database\r\n\t\t\tdb.insert(DbHelper.TABLE_AUTO_REPLY, null, values);\r\n\t\t\t//Log.d(\"AUTO_REPLY INSERT\", \"Record inserted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"AUTO_REPLY INSERT\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "public static void pinAddresses(HashMap<String, Object> argVals, HashMap<String, Object> retVals){\n\t\t\n\t\tLinkedList<String> addresses = (LinkedList<String>)argVals.get(\"address\");\n\t\tLinkedList<String> comments = (LinkedList<String>) argVals.get(\"addressInfo\");\n\t\tshowMap(addresses,comments,false);\t\n\t}", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "List<?> getAddress();", "public List<String> findReplyToByEntryId(Long entryId) {\n\t\treturn null;\n\t}", "public final void ruleAddress() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:101:2: ( ( ( rule__Address__Alternatives ) ) )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:102:1: ( ( rule__Address__Alternatives ) )\n {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:102:1: ( ( rule__Address__Alternatives ) )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:103:1: ( rule__Address__Alternatives )\n {\n before(grammarAccess.getAddressAccess().getAlternatives()); \n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:104:1: ( rule__Address__Alternatives )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:104:2: rule__Address__Alternatives\n {\n pushFollow(FollowSets000.FOLLOW_rule__Address__Alternatives_in_ruleAddress154);\n rule__Address__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAddressAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "public AddressListAdapter(final List<Address> addresses, final OnAddressClickedListener listener) {\n mAddresses = addresses;\n mListener = listener;\n }", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public org.xmlsoap.schemas.wsdl.soap.TAddress addNewAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n return target;\n }\n }", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.MessageDestinationType addNewTo();", "public void setReceiver(String address) throws MessagingException\r\n {\r\n String[] re = {address};\r\n setReceivers(re);\r\n }", "public MessageBuilder replyTo(String replyTo) throws MessagingException {\n\n if (StringUtils.isNotEmpty(replyTo)) {\n message.setReplyTo(InternetAddress.parse(replyTo));\n }\n return this;\n }", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public void insertReply() {\n\r\n\t}", "public Builder addContactAddress(kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(value);\n }\n return this;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "@Test\n public void testReplyToRequestFromUs() {\n Ip4Address ourIp = Ip4Address.valueOf(\"10.0.1.1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip4Address theirIp = Ip4Address.valueOf(\"10.0.1.100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(ourIp, IpPrefix.valueOf(\"10.0.1.1/24\"))),\n ourMac, VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet arpRequest = buildArp(ARP.OP_REQUEST, VLAN1, ourMac, null, ourIp, theirIp);\n //Ensure the packet is allowed through (it is not to an internal port)\n\n proxyArp.reply(arpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(arpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(arpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n public void addRecipient(String newRecipient) {\n System.out.println(\"Invalid request cannot add \"\n + newRecipient\n + \" to any mailing list\");\n }", "public void addNewID(AddressDetails address) {\n address.setMessageID(newID());\n }", "public MessageBuilder to(String toAddresses) throws MessagingException {\n\n this.setRecipient(toAddresses, this.message, Message.RecipientType.TO);\n return this;\n }", "public String getReplyTo() {\n return replyTo;\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public void service(Mail mail) throws MessagingException {\n if (mail.getAttribute(MARKER) != null) {\n mail.removeAttribute(MARKER);\n return;\n }\n\n Collection<MailAddress> recipientsToRemove = new HashSet<MailAddress>();\n Collection<MailAddress> recipientsToAddLocal = new ArrayList<MailAddress>();\n Collection<MailAddress> recipientsToAddForward = new ArrayList<MailAddress>();\n\n Collection<MailAddress> recipients = mail.getRecipients();\n Map<MailAddress, String> recipientsMap = new HashMap<MailAddress, String>(recipients.size());\n\n for (MailAddress address : recipients) {\n // Assume all addresses are non-virtual at start\n recipientsMap.put(address, null);\n }\n\n mapRecipients(recipientsMap);\n\n for (MailAddress source : recipientsMap.keySet()) {\n String targetString = recipientsMap.get(source);\n\n // Only non-null mappings are translated\n if (targetString != null) {\n if (targetString.startsWith(\"error:\")) {\n // Mark this source address as an address to remove from the\n // recipient list\n recipientsToRemove.add(source);\n processDSN(mail, source, targetString);\n } else {\n StringTokenizer tokenizer = new StringTokenizer(targetString, getSeparator(targetString));\n\n while (tokenizer.hasMoreTokens()) {\n String targetAddress = tokenizer.nextToken().trim();\n\n // log(\"Attempting to map from \" + source + \" to \" +\n // targetAddress);\n\n if (targetAddress.startsWith(\"regex:\")) {\n try {\n targetAddress = RecipientRewriteTableUtil.regexMap(source, targetAddress);\n } catch (PatternSyntaxException e) {\n log(\"Exception during regexMap processing: \", e);\n }\n if (targetAddress == null)\n continue;\n }\n\n try {\n MailAddress target = (targetAddress.indexOf('@') < 0) ? new MailAddress(targetAddress, domainList.getDefaultDomain()) : new MailAddress(targetAddress);\n\n // Mark this source address as an address to remove\n // from the recipient list\n recipientsToRemove.add(source);\n\n // We need to separate local and remote\n // recipients. This is explained below.\n if (getMailetContext().isLocalServer(target.getDomain())) {\n recipientsToAddLocal.add(target);\n } else {\n recipientsToAddForward.add(target);\n }\n\n String buf = \"Translating virtual user \" + source + \" to \" + target;\n log(buf);\n\n } catch (ParseException pe) {\n // Don't map this address... there's an invalid\n // address mapping here\n String exceptionBuffer = \"There is an invalid map from \" + source + \" to \" + targetAddress;\n log(exceptionBuffer);\n } catch (DomainListException e) {\n log(\"Unable to access DomainList\", e);\n }\n }\n }\n }\n }\n\n // Remove mapped recipients\n recipients.removeAll(recipientsToRemove);\n\n // Add mapped recipients that are local\n recipients.addAll(recipientsToAddLocal);\n\n // We consider an address that we map to be, by definition, a\n // local address. Therefore if we mapped to a remote address,\n // then we want to make sure that the mail can be relayed.\n // However, the original e-mail would typically be subjected to\n // relay testing. By posting a new mail back through the\n // system, we have a locally generated mail, which will not be\n // subjected to relay testing.\n\n // Forward to mapped recipients that are remote\n if (recipientsToAddForward.size() != 0) {\n // Can't use this ... some mappings could lead to an infinite loop\n // getMailetContext().sendMail(mail.getSender(),\n // recipientsToAddForward, mail.getMessage());\n\n // duplicates the Mail object, to be able to modify the new mail\n // keeping the original untouched\n MailImpl newMail = new MailImpl(mail);\n try {\n try {\n newMail.setRemoteAddr(dns.getLocalHost().getHostAddress());\n } catch (UnknownHostException e) {\n newMail.setRemoteAddr(\"127.0.0.1\");\n }\n try {\n newMail.setRemoteHost(dns.getLocalHost().getHostName());\n } catch (UnknownHostException e) {\n newMail.setRemoteHost(\"localhost\");\n }\n\n newMail.setRecipients(recipientsToAddForward);\n newMail.setAttribute(MARKER, Boolean.TRUE);\n getMailetContext().sendMail(newMail);\n } finally {\n newMail.dispose();\n }\n }\n\n // If there are no recipients left, Ghost the message\n if (recipients.size() == 0) {\n mail.setState(Mail.GHOST);\n }\n }", "@Override\n public void memberJoined(@NotNull final Address address) {\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "public void addToFollowedUsers(List<String> followedUsers);", "private void messageHandler(Message message, ArrayList<Message> from,\t\n\t\t\tArrayList<Message> to) {\n\t\tassert (message != null);\n\t\tassert (from != null);\n\t\tassert (to != null);\n\t\tif (from.size() > 0) {\n\t\t\tMessage responderMessage = from.remove(0);\n\t\t\ttry {\n\t\t\t\tchannel.sendMessage(\n\t\t\t\t\t\tnew Message(Message.Type.Assigned, message.getInfo(),\n\t\t\t\t\t\t\t\tresponderMessage.getClientID()).toString(),\n\t\t\t\t\t\tresponderMessage.getClientID());\n \n\t\t\t\tchannel.sendMessage(new Message(Message.Type.Assigned,\n\t\t\t\t\t\tresponderMessage.getInfo(), message.getClientID())\n\t\t\t\t\t\t.toString(), message.getClientID());\n\t\t\t\tmethods.add(responderMessage.getType().toString()); // adds the type of request to the methods array to store it \n\t\t\t \n\t\t\t\t\n\t\t\t\n\t\t\t} catch (ChannelException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else {\n\t\t\tto.add(message);\n\t\t\ttry {\n\t\t\t\tchannel.sendMessage(new Message(Message.Type.Searching, \"\",\n\t\t\t\t\t\tmessage.getClientID()).toString(), message\n\t\t\t\t\t\t.getClientID());\n\t\t\t} catch (ChannelException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "public MessageBuilder fromAddresses(String fromAddresses) throws MessagingException {\n\n this.message.addFrom(InternetAddress.parse(fromAddresses));\n return this;\n }", "public Builder addContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(index, value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public Builder addContactAddress(\n kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder builderForValue) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n contactAddress_.add(builderForValue.build());\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public void xsetFromAddress(org.apache.xmlbeans.XmlString fromAddress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FROMADDRESS$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FROMADDRESS$6);\n }\n target.set(fromAddress);\n }\n }", "public boolean addAttendees(ArrayList<String> usernames) {\n return this.usernames.addAll(usernames);\n }", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "@java.lang.Deprecated public Builder setListeningAddresses(\n int index, io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.set(index, value);\n onChanged();\n } else {\n listeningAddressesBuilder_.setMessage(index, value);\n }\n return this;\n }", "@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.Address.Builder addListeningAddressesBuilder(\n int index) {\n return getListeningAddressesFieldBuilder().addBuilder(\n index, io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance());\n }", "public void appendToFollowedUsers(List<String> followedUsers);" ]
[ "0.79559654", "0.7030389", "0.6908478", "0.6631021", "0.65272725", "0.63304347", "0.60863674", "0.6049305", "0.59712976", "0.59031165", "0.58790237", "0.58425707", "0.58200926", "0.577557", "0.57498366", "0.5707965", "0.56896144", "0.568713", "0.56589377", "0.5650595", "0.5642081", "0.5624194", "0.5557506", "0.5527727", "0.55123246", "0.5505796", "0.54904884", "0.5463827", "0.54599524", "0.5454849", "0.5453756", "0.5439737", "0.5435967", "0.5371564", "0.53640187", "0.53586584", "0.5357267", "0.5317548", "0.53112316", "0.530534", "0.525359", "0.52527934", "0.52507764", "0.5237555", "0.52364916", "0.522188", "0.5208569", "0.5200521", "0.5199311", "0.5197486", "0.5169392", "0.51678115", "0.5101041", "0.5097082", "0.5081375", "0.50725603", "0.50475514", "0.50459874", "0.50433004", "0.50324947", "0.50231767", "0.5013159", "0.50098294", "0.5000705", "0.49816865", "0.49755985", "0.49725002", "0.49669674", "0.49581534", "0.49507812", "0.49501994", "0.4934561", "0.49321246", "0.4929665", "0.49274576", "0.4925966", "0.4921052", "0.49202713", "0.490681", "0.4901359", "0.48984188", "0.48984024", "0.4895692", "0.48933205", "0.48921993", "0.48842204", "0.48840657", "0.48689923", "0.48600847", "0.48594314", "0.4848385", "0.4838536", "0.48377424", "0.48248073", "0.48238474", "0.48003587", "0.47812825", "0.4773046", "0.47621846", "0.47618595" ]
0.7991939
0
Adds the given address(es) to the to list
public void addTo(List<String> addresses) { to.addAll(addresses); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}", "public String addAddressList(BufferedReader address);", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "public void addCc(List<String> addresses) {\n\t\tcc.addAll(addresses);\n\t}", "public abstract List<String> associateAddresses(NodeMetadata node);", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void addAddress(String Address, Coord coord);", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "List<?> getAddress();", "void addHasAddress(String newHasAddress);", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "private List<Messages.Address> mapModelAddressToWireAddress(List<byte[]> addresses) {\n return addresses.stream().map(address -> Messages.Address.newBuilder()\n .setPort(6565)\n .setIpAddress(ByteString.copyFrom(address))\n .build())\n .collect(Collectors.toList());\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public FakeDns addresses(List<InetAddress> addresses) {\n this.addresses = new ArrayList<>(addresses);\n return this;\n }", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "@Override\n public void abreIntentEnderecos(ArrayList lstAddresses) {\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }", "public RTWLocation append(Object... list);", "public AdressBook() {\r\n addressEntryList = new LinkedList<>();\r\n }", "public List getAddressList() {\r\n System.out.println(\"List Elements :\" + addressList);\r\n return addressList;\r\n }", "public StringList lookupAddresses(String name) throws UnknownHostException\n {\n StringList names=new StringList(); \n // cached lookup \n InetAddress[] addres = lookup(name); \n \n for (InetAddress addr:addres)\n {\n // only add unique address\n names.add(addr.getHostAddress(),true); // getHostName()); \n }\n \n return names; \n }", "public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public List<Address> getAllAddressesByName(String user_name) {\n\t\tList<Address> address = new ArrayList<>();\r\n\t\taddressdao.findByUserUsername(user_name)\r\n\t\t.forEach(address::add);\r\n\t\treturn address;\r\n\t}", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void addReplyTo(List<String> addresses) {\n\t\treplyTo.addAll(addresses);\n\t}", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "public AddressListAdapter(final List<Address> addresses, final OnAddressClickedListener listener) {\n mAddresses = addresses;\n mListener = listener;\n }", "private String[] convertToList(List<String> lstAddresses) {\r\n\t\tString[] arrayAddresses = new String[lstAddresses.size()];\r\n\t\tint index=0;\r\n\t\tfor(String strAddress: lstAddresses) {\r\n\t\t\tarrayAddresses[index++] = strAddress;\r\n\t\t}\r\n\t\treturn arrayAddresses;\r\n\t}", "public void testAddAddresses() throws Exception {\r\n try {\r\n this.dao.addAddresses(new Address[]{null}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@NotNull\n List<Balance> balances(@NotNull List<String> addresses) throws EtherScanException;", "private static List<Address> parseAddress(String source) throws IOException {\n FileReader file = new FileReader(source);\n reader = new BufferedReader(file);\n List<Address> addresses = new ArrayList<>();\n String line;\n\n while((line = reader.readLine()) != null){\n int length = 0;\n String number = line.substring(0, line.indexOf(\" \"));\n length += number.length() + 1;\n String street = line.substring(length, line.indexOf(\",\"));\n length += street.length() + 2;\n String city = line.substring(length, line.indexOf(\",\", length));\n length += city.length() + 2;\n String zip = line.substring(length);\n\n addresses.add(new Address(city, zip, number, street));\n }\n\n reader.close();\n return addresses;\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "boolean hasAddressList();", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "private List<Address> collectLocationAddresses(APDataCollection apData) {\n\t\tint numLocations = apData.getCount(ICommlAutoConstants.LOCATION_XPATH);\n\t\tList<Address> addresses = new ArrayList<Address>(numLocations);\n\n\t\t// Loop through the Location aggregates in the ap data\n\t\tfor (int locationIndex = 0; locationIndex < numLocations; locationIndex++) {\n\n\t\t\t// Create an Address object for each one (containing just the\n\t\t\t// address information.\n\t\t\tAddress address = new Address(apData, ICommlAutoConstants.LOCATION_XPATH, new int[] { locationIndex });\n\t\t\tString id = apData.getFieldValue(ICommlAutoConstants.LOCATION_ID_XPATH, locationIndex, \"\");\n\n\t\t\t// add an id to any location missing one. We need id's on the\n\t\t\t// location so we can link\n\t\t\t// the vehicles back to them.\n\t\t\tif (isEmpty(id)) {\n\t\t\t\tid = apData.generateUID();\n\t\t\t\tapData.setFieldValue(ICommlAutoConstants.LOCATION_ID_XPATH, locationIndex, id);\n\t\t\t}\n\t\t\taddress.setID(id);\n\t\t\taddresses.add(address);\n\t\t}\n\t\treturn addresses;\n\t}", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public org.xmlsoap.schemas.wsdl.soap.TAddress addNewAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n return target;\n }\n }", "@Override\n\tpublic List<Address> FindAllAddress() {\n\t\treturn ab.FindAll();\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }", "io.envoyproxy.envoy.data.dns.v3.DnsTable.AddressList getAddressList();", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public void listing() {\r\n int count = 1;\r\n for (AdressEntry i : addressEntryList) {\r\n System.out.print(count + \": \");\r\n System.out.println(i);\r\n count++;\r\n }\r\n System.out.println();\r\n }", "private static void addCardsToList(ArrayList<Card> destination , String[] listOfNames , String type)\n {\n for (String name : listOfNames) {\n Card card = new Card(type, name);\n destination.add(card);\n }\n\n }", "int insert(Addresses record);", "void add_to_network(Town town, List<Town> connectedTowns);", "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}", "private Response getAddressList( String term )\n {\n\n ReferenceList list = null;\n try\n {\n if ( \"RestAddressService\".equals( AddressServiceProvider.getInstanceClass( ) ) )\n {\n list = AddressServiceProvider.searchAddress( null, term );\n }\n\n }\n catch( RemoteException e )\n {\n AppLogService.error( e );\n }\n\n if ( list == null )\n {\n _logger.error( Constants.ERROR_NOT_FOUND_RESOURCE );\n return Response.status( Response.Status.NOT_FOUND )\n .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), MSG_ERROR_GET_ADDRESSES ) ) ).build( );\n }\n\n return Response.status( Response.Status.OK ).entity( JsonUtil.buildJsonResponse( new JsonResponse( list ) ) ).build( );\n }", "public List<Address> listAddress()\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address order by address.id asc\").list();\n\n return result;\n }", "public void addBliingAddress(Hashtable<String, String> data,AppiumActions action) throws Throwable{\n\t\taction.click(topupCardPageAndroid.addressLine1Label, \"addressLine1\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine1,\"#302459 Block P\", \"addressLine1\");\n\t\taction.click(topupCardPageAndroid.addressLine2Label, \"addressLine2\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine2,\"Avalon Fremont\", \"addressLine2\");\n\t\taction.click(topupCardPageAndroid.townLabel, \"town\");\n\t\taction.sendKeys(topupCardPageAndroid.town,\"Fremont\", \"town\");\n\t\taction.click(topupCardPageAndroid.countryLabel, \"country\");\n\t\taction.sendKeys(topupCardPageAndroid.country,\"USA\", \"country\");\n\t\taction.click(topupCardPageAndroid.postCodeLabel, \"postCode\");\n\t\taction.sendKeys(topupCardPageAndroid.postCode,\"543953\", \"caexpipostCoderyDaterdNumber\");\n\t\taction.click(topupCardPageAndroid.nextBtn, \"nextBtn\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.waitForElementPresent(topupCardPageAndroid.topupCard, \"topupCard\");\n\t\t\n\t}", "public List<Address> listAddressByAddressOne(String addressOne)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.addressOne = :addressone order by address.id asc\").setParameter(\"addressone\", addressOne).list();\n\n return result;\n }", "public void addDetourStreet( Street s)\r\n {\r\n detour_streets.add(s);\r\n }", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "public void resolveAddress(){\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof LabelCode){\n LabelCode code = (LabelCode)byteCodeList.get(i);\n labels.put(code.getLabel(), i);\n }else if(byteCodeList.get(i) instanceof LineCode){\n LineCode code = (LineCode)byteCodeList.get(i);\n lineNums.add(code.n);\n }\n }\n \n //walk through byteCodeList and assgin proper address\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof GoToCode){\n GoToCode code = (GoToCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof FalseBranchCode){\n FalseBranchCode code = (FalseBranchCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof CallCode){\n CallCode code = (CallCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getFuncName()));\n }\n }\n }", "public boolean addVendorAddress(VendorAddress vaddress);", "public Adresses(String houseNo, String address, String postCode) {\n this.houseNo = houseNo;\n this.address = address;\n this.postCode = postCode;\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public boolean addEmployeeToBillToLocation(Employee emp, String name, String street) {\r\n\t\tfor(int i = 0; i < companyDirectory.size(); i++) {\r\n\t\t\tfor(int j = 0; j < companyDirectory.get(i).getLocations().size(); j++) {\r\n\t\t\t\tif(companyDirectory.get(i).getLocations().get(j) instanceof BillTo &&\r\n\t\t\t\tcompanyDirectory.get(i).getName().equals(name) && \r\n\t\t\t\tcompanyDirectory.get(i).getLocations().get(j).getAddress1().equals(street) ) {\r\n\t\t\t\t\treturn companyDirectory.get(i).getLocations().get(j).getEmployees().add(emp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void parseAddresses(JSONObject addresses) {\n try {\n Gson gson = new Gson();\n Type type = new TypeToken<List<Address>>(){}.getType();\n List<Address> newAddresses = gson.fromJson(addresses.getJSONArray(\"data\").toString(), type);\n mAdapter.addAll(newAddresses);\n if(newAddresses.size() < PAGE_SIZE) {\n isLastPage = true;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "@Override\r\n\tpublic List<UserAddress> viewUserAddressList() {\r\n\t\tList<UserAddress> result = new ArrayList<UserAddress>();\r\n useraddressrepository.findAll().forEach(UserAddress1 -> result.add(UserAddress1));\r\n return result;\r\n\t}", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "public String getAddresses()\n {\n return _addresses;\n }", "public void addMoteToList(SwapMote mote)\n {\n swapMotes.addElement(\"Addr: \" + mote.getAddress() + \" Prod: \" + mote.getProduct());\n }", "public List<Address> getAllAddresses() throws BackendException;", "public static void addAddressToCart(Cart cart, Addresses address) {\n\n cart.setAddress(address);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public List<Address> getAllAddresses(long id) {\n\t\tList<Address> address = new ArrayList<>();\r\n\t\taddressdao.findByUserUId(id)\r\n\t\t.forEach(address::add);\r\n\t\treturn address;\r\n\t}", "public void addNeighbours(int...preds){\n ArrayList adds = new ArrayList();\n if (preds.length>0){\n for (int address : preds) {\n adds.add(address);\n }\n }\n setNeighbors(adds);\n }", "public void listAll(List<Address> AddressList) {\n for (Address a : AddressList) {\n console.promptForPrintPrompt(a.toString());\n }\n }", "public LinkedList<Address> getInputAddressList() {\n assert(invariant());\n return inputAddressList;\n }", "public void testAddAddresses_BatchOperationException()\r\n throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getCountry().setId(10);\r\n this.dao.addAddresses(new Address[]{this.getAddress(), address}, false);\r\n fail(\"BatchOperationException expected\");\r\n } catch (BatchOperationException e) {\r\n //good\r\n }\r\n }", "public List<UrlAddress> searchDBUrl() {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"find all url address\");\n List<UrlAddress> all = urlRepository.findAll();\n return all;\n }", "public void setAddress(String address) { this.address = address; }", "public DnsRrSet addIpAddressesItem(DnsARdata ipAddressesItem) {\n if (this.ipAddresses == null) {\n this.ipAddresses = new ArrayList<DnsARdata>();\n }\n this.ipAddresses.add(ipAddressesItem);\n return this;\n }", "private void loadAddresses() {\n\t\ttry {\n\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\tsession.beginTransaction();\n\t\t\taddresses = session.createCriteria(Address.class).list();\n\t\t\tsession.getTransaction().commit();\n\t\t\tSystem.out.println(\"Retrieved addresses from database:\"\n\t\t\t\t\t+ addresses.size());\n\t\t} catch (Throwable ex) {\n\t\t\tSystem.err.println(\"Can't retrieve address!\" + ex);\n\t\t\tex.printStackTrace();\n\t\t\t// Initialize the message queue anyway\n\t\t\tif (addresses == null) {\n\t\t\t\taddresses = new ArrayList<Address>();\n\t\t\t}\n\t\t}\n\t}", "public Vector<NetworkAddress> getHostAddresses(int type) {return addressesChecker.getAllMyAddresses(type); }", "private void storeHostAddresses() {\n savedHostAddresses.clear();\n /* port */\n savedPort = portComboBox.getStringValue();\n /* addresses */\n for (final Host host : getBrowser().getClusterHosts()) {\n final GuiComboBox cb = addressComboBoxHash.get(host);\n final String address = cb.getStringValue();\n if (address == null || \"\".equals(address)) {\n savedHostAddresses.remove(host);\n } else {\n savedHostAddresses.put(host, address);\n }\n host.getBrowser().getDrbdVIPortList().add(savedPort);\n }\n }", "public interface Address {\n public static final String ADDRESS = \"ADDR\";\n public static final String CONTINUATION = \"CONT\";\n public static final String ADDRESS_LINE1 = \"ADR1\";\n public static final String ADDRESS_LINE2 = \"ADR2\";\n public static final String CITY = \"CITY\";\n public static final String STATE = \"STAE\";\n public static final String POSTAL_CODE = \"POST\";\n public static final String COUNTRY = \"CTRY\";\n public static final String PHONE = \"PHON\";\n\n public List getAddressLines(); // List of String\n\n public void setAddressLines(List addressLines);\n\n public String getAddressLine1();\n\n public void setAddressLine1(String line1);\n\n public String getAddressLine2();\n\n public void setAddressLine2(String line2);\n\n public String getCity();\n\n public void setCity(String city);\n\n public String getState();\n\n public void setState(String state);\n\n public String getPostalCode();\n\n public void setPostalCode(String postalCode);\n\n public String getCountry();\n\n public void setCountry(String country);\n\n public String getPhoneNumber();\n\n public void setPhoneNumber(String phoneNumber);\n\n public List getPhoneNumbers(); // List of String\n\n public void setPhoneNumbers(List phoneNumbers);\n}", "public boolean addAddress(Address address) {\n\t\tList<Address> addresslist = addressdao.findByUserUId(address.getUser().getId());\r\n\t\tif(addresslist.size() == 0){\r\n\t\t\taddressdao.save(address);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tpublic List<Map<String, String>> selectAddressList() {\n\t\treturn ado.selectAddressList();\r\n\t}", "public void addFriendList(FriendList list);", "@Override\n public boolean setOrderAddresses(User user, String address, ArrayList<String> shoppickup) {\n if(!setShippingAddress(user, address)){\n return false;\n }\n // aggiorno indirizzo ritiro per tutti e soli quelli nella lista shoppickup\n for (String rit: shoppickup) {\n String[] prod_shop = rit.split(\"_\");\n\n if (prod_shop.length != 2 || !setShopPickup(user, prod_shop[0], prod_shop[1])) {\n // errore inserimento nel database o stringa passata errata\n return false;\n }\n }\n\n\n return true;\n }", "int insertSelective(Addresses record);", "@Override\n\tpublic List<Address> getAddressListByUserid(int userid) {\n\t\treturn sqlSessionTemplate.selectList(sqlId(\"getAddressByUserId\"),userid);\n\t}" ]
[ "0.7685869", "0.75967145", "0.69051677", "0.6865089", "0.67962027", "0.67524433", "0.67304176", "0.66289407", "0.6613895", "0.65302205", "0.6435231", "0.6431233", "0.6427784", "0.64256793", "0.6398467", "0.63809216", "0.6341057", "0.6325121", "0.6288929", "0.62677675", "0.6228768", "0.6218618", "0.6215973", "0.610712", "0.6073787", "0.60402423", "0.5998252", "0.5988432", "0.5974884", "0.5939116", "0.5900088", "0.58813244", "0.58798426", "0.58695346", "0.5863134", "0.5845512", "0.5841459", "0.5830152", "0.5825203", "0.5825084", "0.5813556", "0.5803765", "0.57599074", "0.5732188", "0.57240605", "0.57216597", "0.57188404", "0.5715787", "0.57040375", "0.5691635", "0.5691469", "0.5680686", "0.56804127", "0.5676473", "0.56673825", "0.5643688", "0.5633251", "0.5626996", "0.56179464", "0.56046337", "0.55806804", "0.5575284", "0.5566698", "0.5547375", "0.5544923", "0.55418015", "0.5539971", "0.55388683", "0.553374", "0.5517697", "0.5513962", "0.54974866", "0.5496323", "0.54933465", "0.5481545", "0.5472391", "0.5459855", "0.5459192", "0.5455511", "0.54499674", "0.54443294", "0.5443818", "0.54158074", "0.5415606", "0.54126346", "0.5409502", "0.5387489", "0.5375828", "0.53724384", "0.5367368", "0.5360836", "0.53584915", "0.5356403", "0.5354041", "0.53458923", "0.5336766", "0.53305566", "0.5322429", "0.53122926", "0.53080916" ]
0.7738898
0
Adds the given address(es) to the cc list
public void addCc(List<String> addresses) { cc.addAll(addresses); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}", "public void addCc(String cc) {\n if(this.cc == null)\n this.cc = new HashSet<>();\n if(StringUtils.hasLength(cc))\n this.cc.add(cc);\n }", "public void addTo(List<String> addresses) {\n\t\tto.addAll(addresses);\n\t}", "public String addAddressList(BufferedReader address);", "public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "public void setCc(Collection<Address> cc) {\n setAddressList(FieldName.CC, cc);\n }", "public void addCc(String cc, String key) throws CreditCardAPIException;", "public void addAddress(String Address, Coord coord);", "@Test\n\t\tpublic void testAddBcc() throws Exception{\n\t\t\temail.addBcc(TEST_EMAILS);\n\t\t\tassertEquals(3, email.getBccAddresses().size());\t\n\t\t}", "public static void addCC(CuboidClipboard cc) {\n\t\t\n\t}", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "public void setCc(Address cc) {\n setAddressList(FieldName.CC, cc);\n }", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public static void addAddressToCart(Cart cart, Addresses address) {\n\n cart.setAddress(address);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "void addHasAddress(String newHasAddress);", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public void addBcc(String bcc) {\n if(this.bcc == null)\n this.bcc = new HashSet<>();\n if(StringUtils.hasLength(bcc))\n this.bcc.add(bcc);\n }", "@Override\r\n\tpublic void add(CreditCard ...t) {\n\t\tfor(CreditCard card:t)\r\n\t\t this.cardList.add(card);\r\n\t}", "private static void addCardsToList(ArrayList<Card> destination , String[] listOfNames , String type)\n {\n for (String name : listOfNames) {\n Card card = new Card(type, name);\n destination.add(card);\n }\n\n }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public AddressList getCc() {\n return getAddressList(FieldName.CC);\n }", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "public void uponSuccessfulRegistration(String[] emailCCList){\n \tSimpleMailMessage[] mailMessageArray = new SimpleMailMessage[1];\r\n Iterator iterator = userEmailIds.iterator();\r\n // for (int index = 0; iterator.hasNext(); index ++){\r\n SimpleMailMessage message = new SimpleMailMessage();\r\n String toAddress = (String)iterator.next();\r\n message.setFrom(\"[email protected]\");\r\n message.setTo(\"[email protected]\");\r\n message.setSubject(\"With CC\");\r\n message.setCc(emailCCList);\r\n message.setText(\"Mail Sent from @[email protected]\");\r\n mailMessageArray[0] = message;\r\n// }\r\n mailSender.send(mailMessageArray);\r\n }", "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }", "public List<String> getCc() {\n return cc;\n }", "Object getCclist();", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public abstract List<String> associateAddresses(NodeMetadata node);", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "void addContact(String name, String number);", "void addContact(String name,String number);", "void add_to_network(Town town, List<Town> connectedTowns);", "public void addReplyTo(List<String> addresses) {\n\t\treplyTo.addAll(addresses);\n\t}", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public Builder addAllContactAddress(\n java.lang.Iterable<? extends kr.pik.message.Profile.ProfileMessage.ContactAddress> values) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, contactAddress_);\n onChanged();\n } else {\n contactAddressBuilder_.addAllMessages(values);\n }\n return this;\n }", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "@GenIgnore\n public MailMessage setCc(String cc) {\n List<String> ccList = new ArrayList<String>();\n ccList.add(cc);\n this.cc = ccList;\n return this;\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public static void addContact ( LinkedList contactsList ) { \n\t\tSystem.out.print ( \"\\n\" + \"Enter the contact's first and last name: \" ); // prompt\n\t\tString [ ] firstAndLastName = CheckInput.getString( ).split( \" \" ); // split the name into first and last\n\t\tString firstName = firstAndLastName [ 0 ]; // assign\n\t\tString lastName = firstAndLastName [ 1 ];\n\t\tSystem.out.print ( \"Enter the contact's phone number: \" );\n\t\tString phoneNumber = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's address: \" );\n\t\tString address = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's city: \" );\n\t\tString city = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's zip code: \" );\n\t\tString zip = CheckInput.getString( );\n\t\tcontactsList.add ( new Contact ( firstName, lastName, phoneNumber, address, city, zip ) );\n\t\t// adds to the LinkedList a new contact with the user given information\n\t\tSystem.out.print ( \"\\n\" );\n\t}", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public Builder addContactAddress(kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(value);\n }\n return this;\n }", "private void addContact(Contact contact) {\n contactList.add(contact);\n System.out.println(\"contact added whose name is : \" + contact.getFirstName() + \" \" + contact.getLastName());\n\n }", "public FakeDns addresses(List<InetAddress> addresses) {\n this.addresses = new ArrayList<>(addresses);\n return this;\n }", "public boolean addVendorAddress(VendorAddress vaddress);", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();", "public List<com.generator.tables.pojos.CreditChain> fetchByAddress(String... values) {\n return fetch(CreditChain.CREDIT_CHAIN.ADDRESS, values);\n }", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "public Builder addContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(index, value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(index, value);\n }\n return this;\n }", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "public void addAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO contact_info (`person_id`, `contact_date`, `address_line_1`, `address_line_2`, `city`, `state`, `country`, `zipcode`) values (?, curdate(), ?, ?, ?, ?, ?, ?)\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t //stmt.setDate(2, new java.sql.Date(DateUtility.getDateObj(address.getContactDate()).getTime()));\n\t\t stmt.setString(2, address.getAddress1());\n\t\t stmt.setString(3, address.getAddress2());\n\t\t stmt.setString(4, address.getCity());\n\t\t stmt.setString(5, address.getState());\n\t\t stmt.setString(6, address.getCountry());\n\t\t stmt.setString(7, address.getZip());\n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t // Interaction with Other Two Tables \n\t\t addPhoneNumber(address);\n\t\t addEmailAddress(address);\n\t\t \n\t\t\t\n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public void setBcc(Collection<Address> bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void increment(String address) {\n\t\tString cc = this.countryCode(address);\n\t\tint i = findIndex(cc);\n\t\tif (i != -1) {\n\t\t\tCountry c1 = this.countries.get(i);\n\t\t\tc1.increment();\n\t\t} else {\n\t\t\ti = this.nextAvailable++;\n\t\t\tCountry c1 = new Country(cc);\n\t\t\tthis.countries.add(i, c1);\n\t\t}\n\t\tthis.totalCount++;\n\t}", "public boolean addAddress(Address address) {\n\t\tList<Address> addresslist = addressdao.findByUserUId(address.getUser().getId());\r\n\t\tif(addresslist.size() == 0){\r\n\t\t\taddressdao.save(address);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "public void addContact(Contact contactToAdd)\n {\n for (Contact contact: mContacts)\n {\n if (contact.getEmail().equals(contactToAdd.getEmail()))\n {\n //exit if contact exists in the list\n return;\n }\n }\n mContacts.add(contactToAdd);\n }", "void addContact(String name, int number)\r\n\t{\r\n\t\t\r\n\t\tContact a = new Contact(number,name);\r\n\t\tthis.add(a);\r\n\t}", "public void addContact() {\n\t\tif (contactCounter == contactList.length) {\n\t\t\tSystem.err.println(\"Maximum contacts reached. \"\n\t\t\t\t\t\t\t\t+ \"No more contact can be added\");\n\t\treturn;\n\t\t}\n\t\t\n\t\treadContactInfo();\t\n\t}", "public void addContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Add Contact ]--%n\");\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.printf(\"%nFirst Name: \");\n\t\tString firstName = s.next();\n\t\tSystem.out.printf(\"%nLast Name: \");\n\t\tString lastName = s.next();\n\t\tSystem.out.printf(\"%nPhone Number: \");\n\t\tString phoneNumber = s.next();\n\t\tSystem.out.printf(\"%nEmail Address: \");\n\t\tString emailAddress = s.next();\n\t\tSystem.out.printf(\"%nCompany: \");\n\t\tString company = s.next();\n\t\tBusinessContact b = new BusinessContact(firstName, lastName,\n\t\t\t\tphoneNumber, emailAddress, company);\n\t\tcontacts.add(b);\n\t}", "public MessageBuilder cc(String ccAddresses) throws MessagingException {\n\n this.setRecipient(ccAddresses, this.message, Message.RecipientType.CC);\n return this;\n }", "public MailMessage setCc(List<String> cc) {\n this.cc = cc;\n return this;\n }", "public void setBcc(Address... bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void addContact() throws IOException {\n\t\t\n\t\tContact contact = Contact.getContact();\n\t\twhile (checkPhone(contact.getPhone()) != -1) {\n\t\t\tSystem.out.println(\"Phone already exits. Please input again!\");\n\t\t\tcontact.setPhone(getString(\"phone\"));\n\t\t}\n\t\tlist.add(contact);\n\t\tSystem.out.println(\"---Added\");\n\t}", "public void addEmailAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO email_id_info (`person_id`, `email_id`, `created_date`) values (?, ?, curdate())\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t stmt.setString(2,address.getEmailAddress());\n\t\t \n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t ResultSet rs = stmt.getGeneratedKeys();\n\t\t if (rs.next()) {\n\t\t int newId = rs.getInt(1);\n\t\t address.setEmailAddressId(String.valueOf(newId));\n\t\t }\n\t\t \n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Emaail Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public void append(CPoint cpoint) {\n\tcplist.add(cpoint);\n }", "public void testCC() throws Throwable {\n\n long ts = System.currentTimeMillis();\n String summary = \"somary\" + ts;\n String id = TestUtil.createIssue(getRepository(), summary);\n BugzillaIssue issue = (BugzillaIssue) getRepository().getIssue(id);\n openTask(issue);\n assertEquals(summary, issue.getFieldValue(IssueField.SUMMARY));\n\n resetStatusValues(issue);\n\n BugzillaRepository repository = getRepository();\n BugzillaRepositoryConnector brc = new BugzillaRepositoryConnector(new File(getWorkDir().getAbsolutePath(), \"bugzillaconfiguration\"));\n NbTask task = BugzillaUtil.getTask(repository, id, false);\n TaskData td = task.getTaskDataState().getRepositoryData();\n\n // add a cc\n assertNotSame(REPO_USER, issue.getFieldValue(IssueField.CC));\n setFieldValue(td, IssueField.NEWCC, REPO_USER);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n \n assertEquals(REPO_USER, issue.getFieldValue(IssueField.CC));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n\n // add new cc\n td = task.getTaskDataState().getRepositoryData();\n setFieldValue(td, IssueField.NEWCC, REPO_USER2);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n\n List<String> ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(2, ccs.size());\n assertTrue(ccs.contains(REPO_USER));\n assertTrue(ccs.contains(REPO_USER2));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n \n // add two cc-s at once\n td = task.getTaskDataState().getRepositoryData();\n setFieldValue(td, IssueField.NEWCC, REPO_USER3 + \", \" + REPO_USER4);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n\n ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(4, ccs.size());\n assertTrue(ccs.contains(REPO_USER));\n assertTrue(ccs.contains(REPO_USER2));\n assertTrue(ccs.contains(REPO_USER3));\n assertTrue(ccs.contains(REPO_USER4));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n\n // remove a cc\n td = task.getTaskDataState().getRepositoryData();\n ccs = new ArrayList<String>();\n ccs.add(REPO_USER4);\n ccs.add(REPO_USER);\n setFieldValues(td, IssueField.REMOVECC, ccs);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n\n ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(2, ccs.size());\n assertTrue(ccs.contains(REPO_USER2));\n assertTrue(ccs.contains(REPO_USER3));\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n resetStatusValues(issue);\n\n // remove all\n td = task.getTaskDataState().getRepositoryData();\n ccs = new ArrayList<String>();\n ccs.add(REPO_USER3);\n ccs.add(REPO_USER2); \n setFieldValues(td, IssueField.REMOVECC, ccs);\n getRepository().getExecutor().execute(new SubmitCommand(brc, getRepository().getTaskRepository(), td));\n issue.refresh();\n ccs = issue.getFieldValues(IssueField.CC);\n assertEquals(0, ccs.size());\n assertStatus(BugzillaIssue.FIELD_STATUS_MODIFIED, issue, IssueField.CC);\n\n }", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "public synchronized static void toCrawlList_add(ArrayList<String> _toCrawlList,String url)\n\t{\n\n\t\tif(!(arrayList_contain(_toCrawlList,url)) && _toCrawlList.size() < ARRAYLIST_SIZE)\n\t\t\t_toCrawlList.add(url);\n\t}", "public void AddContact(View view){\n Utils.Route_Start(ListContact.this,Contato.class);\n // Notificar, para atualizar a lista.\n\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "Object getBcclist();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }", "public static void addContacts(ContactFormData formData) {\n long idValue = formData.id;\n if (formData.id == 0) {\n idValue = ++currentIdValue;\n }\n Contact contact = new Contact(idValue, formData.firstName, formData.lastName, formData.telephone);\n contacts.put(idValue, contact);\n }", "public void addBliingAddress(Hashtable<String, String> data,AppiumActions action) throws Throwable{\n\t\taction.click(topupCardPageAndroid.addressLine1Label, \"addressLine1\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine1,\"#302459 Block P\", \"addressLine1\");\n\t\taction.click(topupCardPageAndroid.addressLine2Label, \"addressLine2\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine2,\"Avalon Fremont\", \"addressLine2\");\n\t\taction.click(topupCardPageAndroid.townLabel, \"town\");\n\t\taction.sendKeys(topupCardPageAndroid.town,\"Fremont\", \"town\");\n\t\taction.click(topupCardPageAndroid.countryLabel, \"country\");\n\t\taction.sendKeys(topupCardPageAndroid.country,\"USA\", \"country\");\n\t\taction.click(topupCardPageAndroid.postCodeLabel, \"postCode\");\n\t\taction.sendKeys(topupCardPageAndroid.postCode,\"543953\", \"caexpipostCoderyDaterdNumber\");\n\t\taction.click(topupCardPageAndroid.nextBtn, \"nextBtn\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.waitForElementPresent(topupCardPageAndroid.topupCard, \"topupCard\");\n\t\t\n\t}", "public Call inviteAddress(Address addr);", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "@Override\n\tpublic void add(cp_company cp) {\n\t\t\n\t}", "public void add(Cards cs) {\r\n\t\tfor (int i = 0; i < cs.getSize(); i++) {\r\n\t\t\tcards.addCard(cs.getCard(i));\r\n\t\t}\r\n\t\tseedCards.add(cs);\r\n\t}", "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 }", "public void addCreditCard(CreditCard creditCard) {\r\n\t\tcreditCards.add(creditCard);\r\n\t}", "public Builder addContactAddress(\n kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder builderForValue) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n contactAddress_.add(builderForValue.build());\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public void testAddAddresses() throws Exception {\r\n try {\r\n this.dao.addAddresses(new Address[]{null}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }" ]
[ "0.84319615", "0.75205034", "0.7235217", "0.71030444", "0.6870639", "0.6716262", "0.6588964", "0.6299704", "0.61981875", "0.6160412", "0.6118592", "0.6017918", "0.59946644", "0.59833974", "0.5979356", "0.5898834", "0.5811455", "0.57815063", "0.57708865", "0.5764422", "0.572467", "0.56889313", "0.56770104", "0.56730783", "0.56474155", "0.5631614", "0.5629576", "0.5624078", "0.56229484", "0.559331", "0.5579113", "0.55386645", "0.55292547", "0.5526599", "0.55217487", "0.5517788", "0.55112016", "0.54668945", "0.54602385", "0.54487115", "0.54231805", "0.54119474", "0.5410493", "0.53979075", "0.5378777", "0.5374406", "0.537103", "0.53622305", "0.5359118", "0.5336737", "0.5335754", "0.53355247", "0.5323567", "0.5309806", "0.52931905", "0.52600545", "0.52534217", "0.52460015", "0.5240078", "0.5238834", "0.5224831", "0.52143705", "0.520019", "0.5197498", "0.51880294", "0.517258", "0.5172483", "0.516167", "0.5158509", "0.5157598", "0.51476026", "0.5139917", "0.51358247", "0.5120894", "0.5107986", "0.5106359", "0.5099261", "0.5091878", "0.5090222", "0.5089733", "0.508621", "0.5080905", "0.50773543", "0.5074803", "0.504686", "0.50451654", "0.50414795", "0.5032095", "0.50249344", "0.5022536", "0.5021469", "0.50144696", "0.50102115", "0.5008349", "0.50053257", "0.49937403", "0.49764892", "0.4974489", "0.4971469", "0.49694377" ]
0.8256242
1
Adds the given address(es) to the bcc list
public void addBcc(List<String> addresses) { bcc.addAll(addresses); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addCc(List<String> addresses) {\n\t\tcc.addAll(addresses);\n\t}", "public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}", "public String addAddressList(BufferedReader address);", "public void addTo(List<String> addresses) {\n\t\tto.addAll(addresses);\n\t}", "public void addBcc(String bcc) {\n if(this.bcc == null)\n this.bcc = new HashSet<>();\n if(StringUtils.hasLength(bcc))\n this.bcc.add(bcc);\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "@Test\n\t\tpublic void testAddBcc() throws Exception{\n\t\t\temail.addBcc(TEST_EMAILS);\n\t\t\tassertEquals(3, email.getBccAddresses().size());\t\n\t\t}", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "public void addAddress(String Address, Coord coord);", "public void setBcc(Collection<Address> bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setBcc(Address... bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "public void addCc(String cc) {\n if(this.cc == null)\n this.cc = new HashSet<>();\n if(StringUtils.hasLength(cc))\n this.cc.add(cc);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "void addHasAddress(String newHasAddress);", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "Object getBcclist();", "@NotNull\n List<Balance> balances(@NotNull List<String> addresses) throws EtherScanException;", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public boolean addVendorAddress(VendorAddress vaddress);", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "public void setCc(Address... cc) {\n setAddressList(FieldName.CC, cc);\n }", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void setBcc(Address bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void addBliingAddress(Hashtable<String, String> data,AppiumActions action) throws Throwable{\n\t\taction.click(topupCardPageAndroid.addressLine1Label, \"addressLine1\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine1,\"#302459 Block P\", \"addressLine1\");\n\t\taction.click(topupCardPageAndroid.addressLine2Label, \"addressLine2\");\n\t\taction.sendKeys(topupCardPageAndroid.addressLine2,\"Avalon Fremont\", \"addressLine2\");\n\t\taction.click(topupCardPageAndroid.townLabel, \"town\");\n\t\taction.sendKeys(topupCardPageAndroid.town,\"Fremont\", \"town\");\n\t\taction.click(topupCardPageAndroid.countryLabel, \"country\");\n\t\taction.sendKeys(topupCardPageAndroid.country,\"USA\", \"country\");\n\t\taction.click(topupCardPageAndroid.postCodeLabel, \"postCode\");\n\t\taction.sendKeys(topupCardPageAndroid.postCode,\"543953\", \"caexpipostCoderyDaterdNumber\");\n\t\taction.click(topupCardPageAndroid.nextBtn, \"nextBtn\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.click(topupCardPageAndroid.addCard, \"addCard\");\n\t\taction.waitForElementPresent(topupCardPageAndroid.topupCard, \"topupCard\");\n\t\t\n\t}", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void addContacts(List<Contact> contactList){\n for(Contact contact:contactList){\n addContact(contact);\n }\n }", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void setCc(Collection<Address> cc) {\n setAddressList(FieldName.CC, cc);\n }", "public List<String> getBcc() {\n return bcc;\n }", "public void addAddress(String street, String city) {\n this.address.add(street);\n this.address.add(city);\n }", "public abstract List<String> associateAddresses(NodeMetadata node);", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void addCc(String cc, String key) throws CreditCardAPIException;", "public static void addAddressToCart(Cart cart, Addresses address) {\n\n cart.setAddress(address);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "public void setBillingAddressInCart(Address addr);", "public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }", "public void addAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO contact_info (`person_id`, `contact_date`, `address_line_1`, `address_line_2`, `city`, `state`, `country`, `zipcode`) values (?, curdate(), ?, ?, ?, ?, ?, ?)\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t //stmt.setDate(2, new java.sql.Date(DateUtility.getDateObj(address.getContactDate()).getTime()));\n\t\t stmt.setString(2, address.getAddress1());\n\t\t stmt.setString(3, address.getAddress2());\n\t\t stmt.setString(4, address.getCity());\n\t\t stmt.setString(5, address.getState());\n\t\t stmt.setString(6, address.getCountry());\n\t\t stmt.setString(7, address.getZip());\n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t // Interaction with Other Two Tables \n\t\t addPhoneNumber(address);\n\t\t addEmailAddress(address);\n\t\t \n\t\t\t\n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public AddressList getBcc() {\n return getAddressList(FieldName.BCC);\n }", "void add_to_network(Town town, List<Town> connectedTowns);", "private List<Messages.Address> mapModelAddressToWireAddress(List<byte[]> addresses) {\n return addresses.stream().map(address -> Messages.Address.newBuilder()\n .setPort(6565)\n .setIpAddress(ByteString.copyFrom(address))\n .build())\n .collect(Collectors.toList());\n }", "@Override\r\n\tpublic void add(CreditCard ...t) {\n\t\tfor(CreditCard card:t)\r\n\t\t this.cardList.add(card);\r\n\t}", "public boolean addAddress(Address address) {\n\t\tList<Address> addresslist = addressdao.findByUserUId(address.getUser().getId());\r\n\t\tif(addresslist.size() == 0){\r\n\t\t\taddressdao.save(address);\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "@GenIgnore\n public MailMessage setBcc(String bcc) {\n List<String> bccList = new ArrayList<String>();\n bccList.add(bcc);\n this.bcc = bccList;\n return this;\n }", "public static void addCC(CuboidClipboard cc) {\n\t\t\n\t}", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public AdressBook() {\r\n addressEntryList = new LinkedList<>();\r\n }", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "public Builder addAllContactAddress(\n java.lang.Iterable<? extends kr.pik.message.Profile.ProfileMessage.ContactAddress> values) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, contactAddress_);\n onChanged();\n } else {\n contactAddressBuilder_.addAllMessages(values);\n }\n return this;\n }", "private static void addBoatToList(Boat b) {\n\t\tboats.add(b);\n\t}", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "public BsAddressExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "public void testAddAddresses_BatchOperationException()\r\n throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getCountry().setId(10);\r\n this.dao.addAddresses(new Address[]{this.getAddress(), address}, false);\r\n fail(\"BatchOperationException expected\");\r\n } catch (BatchOperationException e) {\r\n //good\r\n }\r\n }", "public void addEmailAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"INSERT INTO email_id_info (`person_id`, `email_id`, `created_date`) values (?, ?, curdate())\");\n\t\t \n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t stmt.setString(2,address.getEmailAddress());\n\t\t \n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t ResultSet rs = stmt.getGeneratedKeys();\n\t\t if (rs.next()) {\n\t\t int newId = rs.getInt(1);\n\t\t address.setEmailAddressId(String.valueOf(newId));\n\t\t }\n\t\t \n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Inserting into Emaail Address Object \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "public Builder addContactAddress(kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(value);\n }\n return this;\n }", "List<?> getAddress();", "public boolean addStudentAddress(StudentAddress studentAddress) {\n\t\treturn false;\r\n\t}", "private static void addCardsToList(ArrayList<Card> destination , String[] listOfNames , String type)\n {\n for (String name : listOfNames) {\n Card card = new Card(type, name);\n destination.add(card);\n }\n\n }", "public void testAddAddresses() throws Exception {\r\n try {\r\n this.dao.addAddresses(new Address[]{null}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public List<com.generator.tables.pojos.CreditChain> fetchByAddress(String... values) {\n return fetch(CreditChain.CREDIT_CHAIN.ADDRESS, values);\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public void addBuses(int[] vbuses)\n\t{\n\t\tfor (int v : vbuses) _list[v] = Empty;\n\t}", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public Adresses(String houseNo, String address, String postCode) {\n this.houseNo = houseNo;\n this.address = address;\n this.postCode = postCode;\n }", "public void setCc(Address cc) {\n setAddressList(FieldName.CC, cc);\n }", "public MailMessage setBcc(List<String> bcc) {\n this.bcc = bcc;\n return this;\n }", "public void setAddress(String address) { this.address = address; }", "public org.xmlsoap.schemas.wsdl.soap.TAddress addNewAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n return target;\n }\n }", "public void resolveAddress(){\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof LabelCode){\n LabelCode code = (LabelCode)byteCodeList.get(i);\n labels.put(code.getLabel(), i);\n }else if(byteCodeList.get(i) instanceof LineCode){\n LineCode code = (LineCode)byteCodeList.get(i);\n lineNums.add(code.n);\n }\n }\n \n //walk through byteCodeList and assgin proper address\n for(int i = 0; i < byteCodeList.size(); i++){\n if(byteCodeList.get(i) instanceof GoToCode){\n GoToCode code = (GoToCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof FalseBranchCode){\n FalseBranchCode code = (FalseBranchCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getLabel()));\n }else if(byteCodeList.get(i) instanceof CallCode){\n CallCode code = (CallCode)byteCodeList.get(i);\n code.setNum((Integer)labels.get(code.getFuncName()));\n }\n }\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();", "@Override\n\tpublic Result addComBorrowings(ComBorrowings record) {\n\t\tif (comBorrowingsMapper.insert(record) == 0) {\n\t\t\treturn Result.build(500, \"ÐÂÔöʧ°Ü£¡\");\n\t\t}\n\t\treturn Result.ok();\n\t}", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public Builder addContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(index, value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(index, value);\n }\n return this;\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "Builder setAddress(String address);", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyAddressDescription addNewBank()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyAddressDescription target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyAddressDescription)get_store().add_element_user(BANK$0);\n return target;\n }\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "boolean hasAddressList();", "public IndividualAddress(final byte[] address)\n\t{\n\t\tsuper(address);\n\t}", "public static List<Address> listAddressBillingByIdCustomer(int a) throws SQLException, NamingException {\n List<Address> result = new ArrayList<Address>();\n Database database = Database.getInstance();\n Connection connection;\n connection = database.getConnection();\n PreparedStatement statement = connection.prepareStatement(viewAddressBillingByIdCustomer);\n statement.setInt(1, a);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n Address address = new Address(\n rs.getInt(\"ADDRESS_ID\"),\n rs.getString(\"ADDRESS_COMPANY_NAME\"),\n rs.getString(\"ADDRESS_L_NAME\"),\n rs.getString(\"ADDRESS_F_NAME\"),\n rs.getString(\"ADDRESS_STREET\"),\n rs.getString(\"ADDRESS_STREET_EXTRA\"),\n rs.getString(\"ADDRESS_POSTCODE\"),\n rs.getString(\"ADDRESS_CITY\"),\n rs.getString(\"ADDRESS_PHONE\"),\n rs.getString(\"ADDRESS_PHONE_EXTRA\"));\n result.add(address);\n }\n return result;\n }", "boolean addAllPCs(List<PCDevice> pcs);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "@Override\r\n\tpublic Address addAddress(Address address, int companyId) {\n\t\treturn getAddressDAO().addAddress(address,companyId);\r\n\t}", "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}" ]
[ "0.8223671", "0.7775167", "0.76416254", "0.707476", "0.68524617", "0.66562575", "0.6357455", "0.6326261", "0.63000625", "0.6209517", "0.6104788", "0.6081975", "0.6064125", "0.60369015", "0.60263366", "0.6015618", "0.6000326", "0.59545714", "0.59461486", "0.5849626", "0.57852775", "0.576132", "0.5759898", "0.57571995", "0.5741328", "0.57384336", "0.5726748", "0.5675367", "0.5663355", "0.5656004", "0.56399167", "0.55969805", "0.5592747", "0.5590527", "0.5578807", "0.5568643", "0.55439985", "0.5536532", "0.5535178", "0.55272907", "0.552727", "0.5512936", "0.5511563", "0.54677856", "0.54626507", "0.5417009", "0.5401927", "0.54006666", "0.5396922", "0.5386949", "0.5362621", "0.5342439", "0.5342007", "0.53396744", "0.53347594", "0.5319233", "0.53007656", "0.52952373", "0.5294693", "0.5264474", "0.5258215", "0.52531606", "0.524526", "0.52083933", "0.5206237", "0.5197381", "0.51926845", "0.51843584", "0.5181687", "0.5167706", "0.51655674", "0.5154551", "0.515355", "0.51532257", "0.5151118", "0.51477796", "0.51412076", "0.5139011", "0.51378006", "0.51233196", "0.51110625", "0.5111048", "0.5109153", "0.51076794", "0.5102407", "0.5097868", "0.5092734", "0.5082727", "0.5064515", "0.5064089", "0.50640327", "0.50615275", "0.5058567", "0.50571895", "0.50561184", "0.50480646", "0.50443906", "0.50443906", "0.50415283", "0.50332135" ]
0.8015306
1
Adds the given address(es) to the replyTo list
public void addReplyTo(List<String> addresses) { replyTo.addAll(addresses); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}", "public void addTo(String... address) {\n\t\tto.addAll(java.util.Arrays.asList(address));\n\t}", "public void addTo(List<String> addresses) {\n\t\tto.addAll(addresses);\n\t}", "public void setReplyTo(Collection<Address> replyTo) {\n setAddressList(FieldName.REPLY_TO, replyTo);\n }", "public void setReplyTo(Address... replyTo) {\n setAddressList(FieldName.REPLY_TO, replyTo);\n }", "public String addAddressList(BufferedReader address);", "@Test\n\t\tpublic void testAddReplyTo() throws Exception\n\t\t{\n\t\t\temail.addReplyTo(TEST_EMAILS[2], \"SOME_NAME\");\n\t\t\tassertNotNull(email.getReplyToAddresses());\n\t\t}", "public void setReplyTo(Address replyTo) {\n setAddressList(FieldName.REPLY_TO, replyTo);\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public void addCc(List<String> addresses) {\n\t\tcc.addAll(addresses);\n\t}", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "private String _getAddressString(Address[] replyToAddresses)\n {\n\n StringBuffer to = new StringBuffer(100);\n\n for (int i = 0; i < replyToAddresses.length; i++)\n {\n if (i > 0)\n to.append(\",\");\n to.append(((InternetAddress)replyToAddresses[i]).getAddress());\n }\n\n return to.toString();\n\n }", "public void setReplyTo(String tmp) {\n this.replyTo = tmp;\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void setTo(Address... to) {\n setAddressList(FieldName.TO, to);\n }", "public void setReceivers(String[] address) throws MessagingException\r\n {\r\n int size = address.length;\r\n receivers = new InternetAddress[size];\r\n for(int i=0;i<address.length;i++)\r\n {\r\n receivers[i] = new InternetAddress(address[i]);\r\n }\r\n }", "public abstract List<String> associateAddresses(NodeMetadata node);", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }", "public void addCc(String... address) {\n\t\tcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void setMessageAddress(String address);", "private void setRecipients(MimeMessage msg,\n Message.RecipientType recipientType,\n Collection addresses)\n throws MessagingException\n {\n InternetAddress[] recipients;\n Iterator it;\n int i;\n\n if (addresses.size() > 0)\n {\n recipients = new InternetAddress[addresses.size()];\n\n for (i = 0, it = addresses.iterator(); it.hasNext(); i++)\n {\n EmailAddress addr = (EmailAddress) it.next();\n recipients[i] = addr.getInternetAddress();\n }\n\n msg.setRecipients(recipientType, recipients);\n }\n }", "public FakeDns addresses(List<InetAddress> addresses) {\n this.addresses = new ArrayList<>(addresses);\n return this;\n }", "public void setTo(Collection<Address> to) {\n setAddressList(FieldName.TO, to);\n }", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public AddressList getReplyTo() {\n return getAddressList(FieldName.REPLY_TO);\n }", "@Override\r\n\tpublic void addReply(ReplyDTO replyDTO) {\n\t\tlog.info(\"replyDTO:\"+replyDTO);\r\n\t\treplyMapper.create(replyDTO);\r\n\t}", "@java.lang.Deprecated public Builder addListeningAddresses(io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(value);\n }\n return this;\n }", "private void addOutgoing(String to, String subject, String text, Message m){\n\t\tMyMessage mess = new MyMessage(m, \"Eddian\", to, subject, text,\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime());\n\t\toutgoingList.add(mess);\n\t}", "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "public void addAddresses(Addresses address) {\n\t\tif(addressesRepository.findOne(address.getAddress_id())==null)\r\n\t\t\taddressesRepository.save(address);\r\n\t}", "byte[] getReplyAddress();", "public Call inviteAddress(Address addr);", "public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }", "public void addedToRouteTable(long idNode, Address address){\r\n\t\t\r\n\t}", "public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }", "private List<Messages.Address> mapModelAddressToWireAddress(List<byte[]> addresses) {\n return addresses.stream().map(address -> Messages.Address.newBuilder()\n .setPort(6565)\n .setIpAddress(ByteString.copyFrom(address))\n .build())\n .collect(Collectors.toList());\n }", "@Override\n public void abreIntentEnderecos(ArrayList lstAddresses) {\n Intent openShowAddressActivity = new Intent(MainActivity.this, ShowAddressesActivity.class);\n openShowAddressActivity.putStringArrayListExtra(\"addresses_list\", lstAddresses);\n startActivity(openShowAddressActivity);\n }", "public void setTo(Address to) {\n setAddressList(FieldName.TO, to);\n }", "@java.lang.Deprecated public Builder addListeningAddresses(\n int index, io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.add(index, value);\n onChanged();\n } else {\n listeningAddressesBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void addRecipient(){\n //mRATable.insert();\n }", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 1;\n add_address_handler.sendMessage(msg);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 0;\n add_address_handler.sendMessage(msg);\n }", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "@Test\n public void testReplyToRequestForUs() {\n Ip4Address theirIp = Ip4Address.valueOf(\"10.0.1.254\");\n Ip4Address ourFirstIp = Ip4Address.valueOf(\"10.0.1.1\");\n Ip4Address ourSecondIp = Ip4Address.valueOf(\"10.0.2.1\");\n MacAddress firstMac = MacAddress.valueOf(1L);\n MacAddress secondMac = MacAddress.valueOf(2L);\n\n Host requestor = new DefaultHost(PID, HID1, MAC1, VLAN1, LOC1,\n Collections.singleton(theirIp));\n\n expect(hostService.getHost(HID1)).andReturn(requestor);\n replay(hostService);\n replay(interfaceService);\n\n Ethernet arpRequest = buildArp(ARP.OP_REQUEST, VLAN1, MAC1, null, theirIp, ourFirstIp);\n\n proxyArp.reply(arpRequest, LOC1);\n\n assertEquals(1, packetService.packets.size());\n Ethernet arpReply = buildArp(ARP.OP_REPLY, VLAN1, firstMac, MAC1, ourFirstIp, theirIp);\n verifyPacketOut(arpReply, LOC1, packetService.packets.get(0));\n\n // Test a request for the second address on that port\n packetService.packets.clear();\n arpRequest = buildArp(ARP.OP_REQUEST, VLAN1, MAC1, null, theirIp, ourSecondIp);\n\n proxyArp.reply(arpRequest, LOC1);\n\n assertEquals(1, packetService.packets.size());\n arpReply = buildArp(ARP.OP_REPLY, VLAN1, secondMac, MAC1, ourSecondIp, theirIp);\n verifyPacketOut(arpReply, LOC1, packetService.packets.get(0));\n }", "void addHasAddress(String newHasAddress);", "public void addAddress(String Address, Coord coord);", "public Builder addAllContactAddress(\n java.lang.Iterable<? extends kr.pik.message.Profile.ProfileMessage.ContactAddress> values) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, contactAddress_);\n onChanged();\n } else {\n contactAddressBuilder_.addAllMessages(values);\n }\n return this;\n }", "public void invite(String userAddress, String reason)\n {\n assertConnected();\n\n if (logger.isInfoEnabled())\n logger.info(\"Inviting \" + userAddress + \" for reason: \" + reason);\n\n if (chatRoomSession.getState().equals(ChatSessionState.INROOM))\n chatRoomSession.invite(new Screenname(userAddress), reason);\n else\n inviteUserList.put(userAddress, reason);\n }", "void transferOwnerShipToUser(List<String> list, String toEmail);", "public void addMoteToList(SwapMote mote)\n {\n swapMotes.addElement(\"Addr: \" + mote.getAddress() + \" Prod: \" + mote.getProduct());\n }", "@Override\n\tpublic int addAddress(Address address) {\n\t\treturn sqlSessionTemplate.insert(sqlId(\"addFullAddress\"),address);\n\t}", "public static final void addNewUserByIP(final String address) {\n final PairVector<String, Long> DV = p().newusersByIP;\n synchronized (DV) {\n DV.addElement(address, Long.valueOf(System.currentTimeMillis() + TimeManager.MILI_DAY));\n }\n }", "public static Boolean addAutoReply(String to, String message) {\r\n\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(TO, to);\r\n\t\tvalues.put(MESSAGE, message);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// Perform insert into Database\r\n\t\t\tdb.insert(DbHelper.TABLE_AUTO_REPLY, null, values);\r\n\t\t\t//Log.d(\"AUTO_REPLY INSERT\", \"Record inserted!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"AUTO_REPLY INSERT\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "public static void pinAddresses(HashMap<String, Object> argVals, HashMap<String, Object> retVals){\n\t\t\n\t\tLinkedList<String> addresses = (LinkedList<String>)argVals.get(\"address\");\n\t\tLinkedList<String> comments = (LinkedList<String>) argVals.get(\"addressInfo\");\n\t\tshowMap(addresses,comments,false);\t\n\t}", "public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic List<Studentbean2> Addaddress(List<AddressBean> findAllAddress) {\n\t\tfor(AddressBean a:findAllAddress)\n\t\t\tfor(Studentbean2 e:stu2)\n\t\t\t{ \n\t\t\t\tif(e.getId()==a.getId())\n\t\t\t\t{ \n\t\t\t\t\te.setA(a);\n\t\t\t\t}\n\t\t\t}\n\t\treturn stu2;\n\t}", "List<?> getAddress();", "public List<String> findReplyToByEntryId(Long entryId) {\n\t\treturn null;\n\t}", "public final void ruleAddress() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:101:2: ( ( ( rule__Address__Alternatives ) ) )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:102:1: ( ( rule__Address__Alternatives ) )\n {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:102:1: ( ( rule__Address__Alternatives ) )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:103:1: ( rule__Address__Alternatives )\n {\n before(grammarAccess.getAddressAccess().getAlternatives()); \n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:104:1: ( rule__Address__Alternatives )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:104:2: rule__Address__Alternatives\n {\n pushFollow(FollowSets000.FOLLOW_rule__Address__Alternatives_in_ruleAddress154);\n rule__Address__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAddressAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}", "public AddressListAdapter(final List<Address> addresses, final OnAddressClickedListener listener) {\n mAddresses = addresses;\n mListener = listener;\n }", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public org.xmlsoap.schemas.wsdl.soap.TAddress addNewAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n return target;\n }\n }", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.MessageDestinationType addNewTo();", "public void setReceiver(String address) throws MessagingException\r\n {\r\n String[] re = {address};\r\n setReceivers(re);\r\n }", "public MessageBuilder replyTo(String replyTo) throws MessagingException {\n\n if (StringUtils.isNotEmpty(replyTo)) {\n message.setReplyTo(InternetAddress.parse(replyTo));\n }\n return this;\n }", "private String parseAddresses(Address[] address) {\n String listAddress = \"\";\n\n if (address != null) {\n for (int i = 0; i < address.length; i++) {\n listAddress += address[i].toString() + \", \";\n }\n }\n if (listAddress.length() > 1) {\n listAddress = listAddress.substring(0, listAddress.length() - 2);\n }\n\n return listAddress;\n }", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public void insertReply() {\n\r\n\t}", "public Builder addContactAddress(kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(value);\n }\n return this;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "@Test\n public void testReplyToRequestFromUs() {\n Ip4Address ourIp = Ip4Address.valueOf(\"10.0.1.1\");\n MacAddress ourMac = MacAddress.valueOf(1L);\n Ip4Address theirIp = Ip4Address.valueOf(\"10.0.1.100\");\n\n expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());\n expect(interfaceService.getInterfacesByIp(ourIp))\n .andReturn(Collections.singleton(new Interface(getLocation(1),\n Collections.singleton(new InterfaceIpAddress(ourIp, IpPrefix.valueOf(\"10.0.1.1/24\"))),\n ourMac, VLAN1)));\n expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);\n replay(hostService);\n replay(interfaceService);\n\n // This is a request from something inside our network (like a BGP\n // daemon) to an external host.\n Ethernet arpRequest = buildArp(ARP.OP_REQUEST, VLAN1, ourMac, null, ourIp, theirIp);\n //Ensure the packet is allowed through (it is not to an internal port)\n\n proxyArp.reply(arpRequest, getLocation(5));\n assertEquals(1, packetService.packets.size());\n verifyPacketOut(arpRequest, getLocation(1), packetService.packets.get(0));\n\n // The same request from a random external port should fail\n packetService.packets.clear();\n proxyArp.reply(arpRequest, getLocation(2));\n assertEquals(0, packetService.packets.size());\n }", "private AddressList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n public void addRecipient(String newRecipient) {\n System.out.println(\"Invalid request cannot add \"\n + newRecipient\n + \" to any mailing list\");\n }", "public void addNewID(AddressDetails address) {\n address.setMessageID(newID());\n }", "public MessageBuilder to(String toAddresses) throws MessagingException {\n\n this.setRecipient(toAddresses, this.message, Message.RecipientType.TO);\n return this;\n }", "public String getReplyTo() {\n return replyTo;\n }", "java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();", "public void service(Mail mail) throws MessagingException {\n if (mail.getAttribute(MARKER) != null) {\n mail.removeAttribute(MARKER);\n return;\n }\n\n Collection<MailAddress> recipientsToRemove = new HashSet<MailAddress>();\n Collection<MailAddress> recipientsToAddLocal = new ArrayList<MailAddress>();\n Collection<MailAddress> recipientsToAddForward = new ArrayList<MailAddress>();\n\n Collection<MailAddress> recipients = mail.getRecipients();\n Map<MailAddress, String> recipientsMap = new HashMap<MailAddress, String>(recipients.size());\n\n for (MailAddress address : recipients) {\n // Assume all addresses are non-virtual at start\n recipientsMap.put(address, null);\n }\n\n mapRecipients(recipientsMap);\n\n for (MailAddress source : recipientsMap.keySet()) {\n String targetString = recipientsMap.get(source);\n\n // Only non-null mappings are translated\n if (targetString != null) {\n if (targetString.startsWith(\"error:\")) {\n // Mark this source address as an address to remove from the\n // recipient list\n recipientsToRemove.add(source);\n processDSN(mail, source, targetString);\n } else {\n StringTokenizer tokenizer = new StringTokenizer(targetString, getSeparator(targetString));\n\n while (tokenizer.hasMoreTokens()) {\n String targetAddress = tokenizer.nextToken().trim();\n\n // log(\"Attempting to map from \" + source + \" to \" +\n // targetAddress);\n\n if (targetAddress.startsWith(\"regex:\")) {\n try {\n targetAddress = RecipientRewriteTableUtil.regexMap(source, targetAddress);\n } catch (PatternSyntaxException e) {\n log(\"Exception during regexMap processing: \", e);\n }\n if (targetAddress == null)\n continue;\n }\n\n try {\n MailAddress target = (targetAddress.indexOf('@') < 0) ? new MailAddress(targetAddress, domainList.getDefaultDomain()) : new MailAddress(targetAddress);\n\n // Mark this source address as an address to remove\n // from the recipient list\n recipientsToRemove.add(source);\n\n // We need to separate local and remote\n // recipients. This is explained below.\n if (getMailetContext().isLocalServer(target.getDomain())) {\n recipientsToAddLocal.add(target);\n } else {\n recipientsToAddForward.add(target);\n }\n\n String buf = \"Translating virtual user \" + source + \" to \" + target;\n log(buf);\n\n } catch (ParseException pe) {\n // Don't map this address... there's an invalid\n // address mapping here\n String exceptionBuffer = \"There is an invalid map from \" + source + \" to \" + targetAddress;\n log(exceptionBuffer);\n } catch (DomainListException e) {\n log(\"Unable to access DomainList\", e);\n }\n }\n }\n }\n }\n\n // Remove mapped recipients\n recipients.removeAll(recipientsToRemove);\n\n // Add mapped recipients that are local\n recipients.addAll(recipientsToAddLocal);\n\n // We consider an address that we map to be, by definition, a\n // local address. Therefore if we mapped to a remote address,\n // then we want to make sure that the mail can be relayed.\n // However, the original e-mail would typically be subjected to\n // relay testing. By posting a new mail back through the\n // system, we have a locally generated mail, which will not be\n // subjected to relay testing.\n\n // Forward to mapped recipients that are remote\n if (recipientsToAddForward.size() != 0) {\n // Can't use this ... some mappings could lead to an infinite loop\n // getMailetContext().sendMail(mail.getSender(),\n // recipientsToAddForward, mail.getMessage());\n\n // duplicates the Mail object, to be able to modify the new mail\n // keeping the original untouched\n MailImpl newMail = new MailImpl(mail);\n try {\n try {\n newMail.setRemoteAddr(dns.getLocalHost().getHostAddress());\n } catch (UnknownHostException e) {\n newMail.setRemoteAddr(\"127.0.0.1\");\n }\n try {\n newMail.setRemoteHost(dns.getLocalHost().getHostName());\n } catch (UnknownHostException e) {\n newMail.setRemoteHost(\"localhost\");\n }\n\n newMail.setRecipients(recipientsToAddForward);\n newMail.setAttribute(MARKER, Boolean.TRUE);\n getMailetContext().sendMail(newMail);\n } finally {\n newMail.dispose();\n }\n }\n\n // If there are no recipients left, Ghost the message\n if (recipients.size() == 0) {\n mail.setState(Mail.GHOST);\n }\n }", "@Override\n public void memberJoined(@NotNull final Address address) {\n }", "public ResourceAddress add(ResourceAddress address) {\n if (address != null) {\n for (Property property : address.asPropertyList()) {\n add(property.getName(), property.getValue().asString());\n }\n }\n return this;\n }", "public void addToFollowedUsers(List<String> followedUsers);", "private void messageHandler(Message message, ArrayList<Message> from,\t\n\t\t\tArrayList<Message> to) {\n\t\tassert (message != null);\n\t\tassert (from != null);\n\t\tassert (to != null);\n\t\tif (from.size() > 0) {\n\t\t\tMessage responderMessage = from.remove(0);\n\t\t\ttry {\n\t\t\t\tchannel.sendMessage(\n\t\t\t\t\t\tnew Message(Message.Type.Assigned, message.getInfo(),\n\t\t\t\t\t\t\t\tresponderMessage.getClientID()).toString(),\n\t\t\t\t\t\tresponderMessage.getClientID());\n \n\t\t\t\tchannel.sendMessage(new Message(Message.Type.Assigned,\n\t\t\t\t\t\tresponderMessage.getInfo(), message.getClientID())\n\t\t\t\t\t\t.toString(), message.getClientID());\n\t\t\t\tmethods.add(responderMessage.getType().toString()); // adds the type of request to the methods array to store it \n\t\t\t \n\t\t\t\t\n\t\t\t\n\t\t\t} catch (ChannelException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else {\n\t\t\tto.add(message);\n\t\t\ttry {\n\t\t\t\tchannel.sendMessage(new Message(Message.Type.Searching, \"\",\n\t\t\t\t\t\tmessage.getClientID()).toString(), message\n\t\t\t\t\t\t.getClientID());\n\t\t\t} catch (ChannelException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "public MessageBuilder fromAddresses(String fromAddresses) throws MessagingException {\n\n this.message.addFrom(InternetAddress.parse(fromAddresses));\n return this;\n }", "public Builder addContactAddress(\n int index, kr.pik.message.Profile.ProfileMessage.ContactAddress value) {\n if (contactAddressBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactAddressIsMutable();\n contactAddress_.add(index, value);\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public Builder addContactAddress(\n kr.pik.message.Profile.ProfileMessage.ContactAddress.Builder builderForValue) {\n if (contactAddressBuilder_ == null) {\n ensureContactAddressIsMutable();\n contactAddress_.add(builderForValue.build());\n onChanged();\n } else {\n contactAddressBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public void xsetFromAddress(org.apache.xmlbeans.XmlString fromAddress)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FROMADDRESS$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FROMADDRESS$6);\n }\n target.set(fromAddress);\n }\n }", "public boolean addAttendees(ArrayList<String> usernames) {\n return this.usernames.addAll(usernames);\n }", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "@java.lang.Deprecated public Builder setListeningAddresses(\n int index, io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.set(index, value);\n onChanged();\n } else {\n listeningAddressesBuilder_.setMessage(index, value);\n }\n return this;\n }", "@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.Address.Builder addListeningAddressesBuilder(\n int index) {\n return getListeningAddressesFieldBuilder().addBuilder(\n index, io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance());\n }", "public void appendToFollowedUsers(List<String> followedUsers);" ]
[ "0.7991939", "0.7030389", "0.6908478", "0.6631021", "0.65272725", "0.63304347", "0.60863674", "0.6049305", "0.59712976", "0.59031165", "0.58790237", "0.58425707", "0.58200926", "0.577557", "0.57498366", "0.5707965", "0.56896144", "0.568713", "0.56589377", "0.5650595", "0.5642081", "0.5624194", "0.5557506", "0.5527727", "0.55123246", "0.5505796", "0.54904884", "0.5463827", "0.54599524", "0.5454849", "0.5453756", "0.5439737", "0.5435967", "0.5371564", "0.53640187", "0.53586584", "0.5357267", "0.5317548", "0.53112316", "0.530534", "0.525359", "0.52527934", "0.52507764", "0.5237555", "0.52364916", "0.522188", "0.5208569", "0.5200521", "0.5199311", "0.5197486", "0.5169392", "0.51678115", "0.5101041", "0.5097082", "0.5081375", "0.50725603", "0.50475514", "0.50459874", "0.50433004", "0.50324947", "0.50231767", "0.5013159", "0.50098294", "0.5000705", "0.49816865", "0.49755985", "0.49725002", "0.49669674", "0.49581534", "0.49507812", "0.49501994", "0.4934561", "0.49321246", "0.4929665", "0.49274576", "0.4925966", "0.4921052", "0.49202713", "0.490681", "0.4901359", "0.48984188", "0.48984024", "0.4895692", "0.48933205", "0.48921993", "0.48842204", "0.48840657", "0.48689923", "0.48600847", "0.48594314", "0.4848385", "0.4838536", "0.48377424", "0.48248073", "0.48238474", "0.48003587", "0.47812825", "0.4773046", "0.47621846", "0.47618595" ]
0.79559654
1
Get all patient information from the database and add them to the patient table
private void loadPatient() { patient = PatientsDatabaseAccessObject.getInstance().getPatients(); table.getItems().clear(); for (int i = 0; i < patient.size(); ++i) { table.getItems().add(patient.get(i)); } table.refresh(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Patient> getPatientList()\n {\n ArrayList<Patient> patientList = new ArrayList<Patient>();\n Connection con = getConnection();\n String query = \"SELECT * FROM patients\";\n \n java.sql.Statement st;\n ResultSet rs;\n try {\n \n st = con.createStatement();\n rs = st.executeQuery(query);\n Patient patient;\n \n while(rs.next())\n {\n patient = new Patient(rs.getInt(\"id\"),rs.getString(\"name\"),rs.getString(\"sex\"),rs.getString(\"age\"),rs.getString(\"contact\"),\n rs.getString(\"address\"),rs.getString(\"patient_Type\"),rs.getString(\"doctor\"),rs.getBytes(\"image\"),rs.getString(\"modified_Date\"),\n rs.getString(\"modified_Time\"));\n patientList.add(patient);\n }\n } catch (SQLException ex) {\n Logger.getLogger(Patients_Data_Frame.class.getName()).log(Level.SEVERE, null, ex);\n }\n return patientList;\n }", "private void savePatientToDatabase(Patient patient){\n DatabaseAdapter cateDB = new DatabaseAdapter(AddPatientActivity.this);\n try {\n cateDB.openDatabaseForRead();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n patient.printPatient();\n cateDB.insertPatient(patient);\n\n cateDB.closeDatabase();\n }", "@Override\n @Transactional\n public List<Patient> allPatients() {\n return patientDAO.allPatients();\n }", "public List<Patient> getPatients() {\n List<Patient> patients = new ArrayList<>();\n String query = \"SELECT * FROM PATIENTS\";\n try (PreparedStatement ps = this.transaction.prepareStatement(query); ResultSet rs = ps.executeQuery()) {\n while (rs.next()) {\n patients.add(new Patient(rs));\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n\n return patients;\n }", "public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= results.getInt(1)+\"\";\r\n\t\t\t\trow[1]= results.getString(2);\r\n\t\t\t\trow[2]= results.getString(3);\r\n\t\t\t\trow[3]= results.getString(4);\r\n\t\t\t\trow[4]= results.getString(5);\r\n\t\t\t\trow[5]= results.getInt(6)+\"\";\r\n\t\t\t\tmodelHostory.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "@Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);", "List<Patient> findAllPatients();", "public void insertPatient(Patient p) {\n String query = \"INSERT INTO PATIENTS(patient_id, name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query)) {\n pst.setInt(1, p.getPatientId());\n pst.setString(2, p.getName());\n pst.setBoolean(3, p.isGender());\n pst.setDate(4, p.getBirth());\n pst.setString(5, p.getDpi());\n pst.setString(6, p.getPhone());\n pst.setDouble(7, p.getWeight());\n pst.setString(8, p.getBlood());\n pst.setString(9, p.getEmail());\n pst.setString(10, p.getPass());\n pst.executeUpdate();\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n }", "public void readPatient() {\n\t\tBufferedReader br;\n\t\tString s;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"patients.txt\"));\n\n\t\t\twhile ((s = br.readLine()) != null) {\n\t\t\t\tString[] fields = s.split(\", \");\n\n\t\t\t\tString ssn = fields[0];\n\t\t\t\tString name = fields[1];\n\t\t\t\tString address = fields[2];\n\t\t\t\tString phoneNum = fields[3];\n\t\t\t\tString insurance = fields[4];\n\t\t\t\tString currentMeds = fields[5];\n\t\t\t\tPatient patient = new Patient(ssn, name, address, phoneNum, insurance, currentMeds);\n\t\t\t\tpat.add(patient);\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "public void addPatient(Patient P)\r\n {\r\n\t int age =0;\r\n\t String secQ =\"What is your favorite food?\";\r\n\t String newPat = \"INSERT INTO PATIENTDATA (FIRSTNAME,LASTNAME,AGE,USERNAME,PASSWORD,SECURITYQN,SECURITYANS,\"+\r\n\t\t\t \t\t \"SYMPTOM1,SYMPTOM2,SYMPTOM3,SYMPTOM4,SYMPTOM5,SYMPTOM6,SYMPTOM7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM1_1,PrevSYMPTOM1_2,PrevSYMPTOM1_3,PrevSYMPTOM1_4,PrevSYMPTOM1_5,PrevSYMPTOM1_6,PrevSYMPTOM1_7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM2_1,PrevSYMPTOM2_2,PrevSYMPTOM2_3,PrevSYMPTOM2_4,PrevSYMPTOM2_5,PrevSYMPTOM2_6,PrevSYMPTOM2_7,\"+\r\n\t\t\t \t\t \"SYMPTOM1Thresh,SYMPTOM2Thresh,SYMPTOM3Thresh,SYMPTOM4Thresh,SYMPTOM5Thresh,SYMPTOM6Thresh,SYMPTOM7Thresh, DOCTORSNAME, NOTIFICATION ) \"; //added notification\r\n\t newPat = newPat+\"VALUES ('\"+P.firstName+\"', '\"+P.lastName+\"', \"+age+\", '\"+P.userName+\"', '\"+P.password+\"', '\"+secQ+\"', '\"+P.securityQuestionAnswer+\"',\"\r\n\t\t\t \t\t +P.getEnterSymptomLevel()[0]+\",\"+P.getEnterSymptomLevel()[1]+\",\"+P.getEnterSymptomLevel()[2]+\",\"+P.getEnterSymptomLevel()[3]+\",\"+P.getEnterSymptomLevel()[4]+\",\"+P.getEnterSymptomLevel()[5]+\",\"+P.getEnterSymptomLevel()[6]+\r\n\t\t\t \t\t\t\",\" +P.getPreviousSymptomLevel1()[0]+\",\"+P.getPreviousSymptomLevel1()[1]+\",\"+P.getPreviousSymptomLevel1()[2]+\",\"+P.getPreviousSymptomLevel1()[3]+\",\"+P.getPreviousSymptomLevel1()[4]+\",\"+P.getPreviousSymptomLevel1()[5]+\",\"+P.getPreviousSymptomLevel1()[6]+\",\"\r\n\t\t\t \t\t\t+P.getPreviousSymptomLevel2()[0]+\",\"+P.getPreviousSymptomLevel2()[1]+\",\"+P.getPreviousSymptomLevel2()[2]+\",\"+P.getPreviousSymptomLevel2()[3]+\",\"+P.getPreviousSymptomLevel2()[4]+\",\"+P.getPreviousSymptomLevel2()[5]+\",\"+P.getPreviousSymptomLevel2()[6]+\",\"\r\n\t\t\t \t\t\t+P.getSymptomsThreshold()[0]+\",\"+P.getSymptomsThreshold()[1]+\",\"+P.getSymptomsThreshold()[2]+\",\"+P.getSymptomsThreshold()[3]+\",\"+P.getSymptomsThreshold()[4]+\",\"+P.getSymptomsThreshold()[5]+\",\"+P.getSymptomsThreshold()[6]+\",'\"+P.getPatientsDoctor()+\"',0);\";\r\n\t \r\n\t try {\r\n\t\tstmt.executeUpdate(newPat);\r\n\t} catch (SQLException e) {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "@Override\n\tpublic List<Patient> findAll() {\n\t\t// setting logger info\n\t\tlogger.info(\"Find the details of the patient\");\n\t\treturn patientRepo.findAll();\n\t}", "@Override\n\tpublic void addPatients(String name, int id, Long mobilenumber, int age) {\n\t\t\n\t}", "private void populatePatientData() {\n\n // Set the activity title\n setTitle(mPatient.getName());\n\n int urgency = mPatient.getUrgency();\n String urgencyFormat;\n if (urgency <= 1)\n urgencyFormat = \"Non-urgent (%d)\";\n else if (urgency == 2)\n urgencyFormat = \"Less urgent (%d)\";\n else\n urgencyFormat = \"Urgent (%d)\";\n setText(mUrgencyView, getString(R.string.urgency), String.format(urgencyFormat, urgency));\n\n // Populate the Vital Signs section with the patient's temperature, blood pressure, and heart rate.\n String[] patientVitalSignsLabels = getResources().getStringArray(R.array.patient_vital_signs_labels);\n\n VitalSigns vitalSigns = mPatient.getLatestVitalSigns();\n String temperature, bloodPressure, heartRate;\n if (vitalSigns != null) {\n temperature = String.format(\"%.1f\", vitalSigns.getTemperature());\n bloodPressure = String.format(\"%.0f / %.0f\", vitalSigns.getSystolicBloodPressure(), vitalSigns.getDiastolicBloodPressure());\n heartRate = String.format(\"%.0f\", vitalSigns.getHeartRate());\n } else {\n temperature = getString(R.string.none_recorded);\n bloodPressure = getString(R.string.none_recorded);\n heartRate = getString(R.string.none_recorded);\n }\n\n setText(mTemperatureView, patientVitalSignsLabels[0], temperature);\n setText(mBloodPressureView, patientVitalSignsLabels[1], bloodPressure);\n setText(mHeartRateView, patientVitalSignsLabels[2], heartRate);\n\n // Populate the Info section with the patient's name, birth date, health card number, arrival time and symptoms.\n String[] patientInfoLabels = getResources().getStringArray(R.array.patient_info_labels);\n\n String formattedBirthDate = dateFormat.format(mPatient.getBirthDate().getTime());\n String formattedArrivalTime = dateTimeFormat.format(mPatient.getArrivalTime().getTime());\n\n setText(mNameView, patientInfoLabels[0], mPatient.getName());\n setText(mBirthDateView, patientInfoLabels[1], formattedBirthDate);\n setText(mHealthCardNumberView, patientInfoLabels[2], mPatient.getHealthCardNumber());\n setText(mArrivalTimeView, patientInfoLabels[3], formattedArrivalTime);\n\n // Populate the Symptoms section\n String symptoms = mPatient.getLatestSymptoms();\n TextView symptomsTextView = (TextView) mSymptomsView.findViewById(android.R.id.text1);\n if (symptoms != null)\n symptomsTextView.setText(symptoms);\n else\n symptomsTextView.setText(getString(R.string.none_recorded));\n\n // Populate the prescriptions section\n List<String> prescription = mPatient.getLatestPrescription();\n if (prescription != null)\n setText(mPrescriptionsView, prescription.get(0), prescription.get(1));\n else {\n String placeholder = getString(R.string.none_recorded);\n setText(mPrescriptionsView, placeholder, placeholder);\n }\n\n SimpleDateFormat timeDateFormat = new SimpleDateFormat(\"h:mma, EEE, MMM d, yyyy\");\n String fLastSeenByDoctor;\n if (mPatient.hasBeenSeenByDoctor()) {\n Calendar lastSeenByDoctor = mPatient.getLastSeenByDoctor();\n fLastSeenByDoctor = timeDateFormat.format(lastSeenByDoctor.getTime());\n } else\n fLastSeenByDoctor = getString(R.string.none_recorded);\n TextView doctorTextView = (TextView) mDoctorView.findViewById(android.R.id.text1);\n doctorTextView.setText(fLastSeenByDoctor);\n }", "private void getAllPatients () throws MqttException {\n MqttMessage message = new MqttMessage(new Gson().toJson(dao.getAllPatients()).getBytes());\n message.setQos(0);\n publishThread(\"patient\", message, UniMed.mqttClient);\n }", "@Override\n @Transactional\n public List<Patient> selectPatientsByAttendingDoctor(String doctorFullname) {\n return patientDAO.getByAttendingDoctor(doctorFullname);\n }", "public ArrayList<MedicalRecord> getPatientRecords(String patient) {\n if (database.containsKey(patient)) {\n return database.get(patient);\n } else {\n System.out.println(\"No such patient found\");\n return null;\n }\n }", "Collection<Patient> findAll();", "@Override\n @Transactional\n public void addPatient(Patient patient) {\n patientDAO.addPatient(patient);\n }", "@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();", "public List<String> getPatientDetails(int id){\n List<String> patientList = new ArrayList<String>();\n try{\n DbConnection connection = new DbConnection();\n ResultSet data = connection.getData(\"SELECT * FROM patient WHERE patient.num='\"+id+\"'\");\n System.out.println(connection);\n while(data.next()){\n patientList.add(\"<div class=\\\"divtext\\\"> INITIALS : \"+data.getString(3)+\"</div><div class=\\\"divtext\\\"> SURNAME : \"+data.getString(4)+\"</div><div class=\\\"divtext\\\"> NAME OF THE GUARDIAN : \" +data.getString(5)+ \"</div><div class=\\\"divtext\\\"> GUARDIAN'S NIC NO : \" +data.getString(2)+ \"</div><div class=\\\"divtext\\\"> AGE : \"+data.getString(6)+\"</div><div class=\\\"divtext\\\"> PHONE NO : \"+data.getString(7)+\"</div>\");\n patientList.add(\"<div class=\\\"divtext\\\"></div>\");\n patientList.add(\"<div class=\\\"divtext\\\">________________________________________________________</div>\");\n patientList.add(\"<div class=\\\"divtext\\\"></div>\");\n } \n } catch(ClassNotFoundException | SQLException e){\n e.printStackTrace();\n }\n return patientList;\n}", "public static void initializeDatabase()\r\n\t{\r\n\t\t\r\n\t con = dbConnection();\r\n\t stmt = null;\r\n\r\n try \r\n {\r\n ///////Creating the Patient Database Table if not already there.\t\r\n \t stmt = con.createStatement();\r\n\t String sql1 = \"CREATE TABLE IF NOT EXISTS PATIENTDATA \" +\r\n \"(FIRSTNAME TEXT NOT NULL, \" + \"LASTNAME TEXT NOT NULL, \" +\r\n \" AGE INT NOT NULL, \" +\" USERNAME TEXT, \" + \" PASSWORD TEXT,\"+ \r\n \t\t\t \" SECURITYQN TEXT,\"+\" SECURITYANS TEXT,\"+\" SYMPTOM1 INT DEFAULT -1,\"+ \r\n \t\t\t \" SYMPTOM2 INT DEFAULT -1,\"+ \" SYMPTOM3 INT DEFAULT -1,\"+ \" SYMPTOM4 INT DEFAULT -1,\"+\r\n \t\t\t \" SYMPTOM5 INT DEFAULT -1,\"+\" SYMPTOM6 INT DEFAULT -1,\"+\" SYMPTOM7 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM1_1 INT DEFAULT -1,\"+ \" PrevSYMPTOM1_2 INT DEFAULT -1,\"+ \" PrevSYMPTOM1_3 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM1_4 INT DEFAULT -1,\"+\" PrevSYMPTOM1_5 INT DEFAULT -1,\"+\" PrevSYMPTOM1_6 INT DEFAULT -1,\"+\r\n \t\t\t \" PrevSYMPTOM1_7 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM2_1 INT DEFAULT -1,\"+ \" PrevSYMPTOM2_2 INT DEFAULT -1,\"+ \" PrevSYMPTOM2_3 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM2_4 INT DEFAULT -1,\"+\" PrevSYMPTOM2_5 INT DEFAULT -1,\"+\" PrevSYMPTOM2_6 INT DEFAULT -1,\"+\r\n \t\t\t \" PrevSYMPTOM2_7 INT DEFAULT -1,\"+ \r\n \t\t\t \" SYMPTOM1Thresh INT DEFAULT 10,\"+ \" SYMPTOM2Thresh INT DEFAULT 10,\"+ \r\n \t\t\t \" SYMPTOM3Thresh INT DEFAULT 10,\"+\" SYMPTOM4Thresh INT DEFAULT 10,\"+\r\n \t\t\t \" SYMPTOM5Thresh INT DEFAULT 10,\"+\" SYMPTOM6Thresh INT DEFAULT 10,\"+\r\n \t\t\t \" SYMPTOM7Thresh INT DEFAULT 10, DOCTORSNAME TEXT, NOTIFICATION INT DEFAULT 0)\";\r\n\t \r\n stmt.executeUpdate(sql1);\r\n\r\n //Creating Doctors Database Table if not there \r\n sql1 = \"CREATE TABLE IF NOT EXISTS DOCTORDATA \" +\r\n \"(FIRSTNAME TEXT NOT NULL, \" + \"LASTNAME TEXT NOT NULL, \" +\r\n \"USERNAME TEXT, \" + \" PASSWORD TEXT,\"+ \r\n\t\t\t \" SECURITYQN TEXT,\"+\" SECURITYANS TEXT)\";\r\n stmt.executeUpdate(sql1);\r\n \r\n \r\n\r\n\t }\r\n catch (SQLException e) \r\n {\r\n\t\t// TODO Auto-generated catch block\r\n \t e.printStackTrace();\r\n\t }\r\n\t\t\r\n\t\t\r\n\t}", "private void getPatientInfo(String patientId){\n mFirestore.collection(\"users\")\n .document(patientId)\n .addSnapshotListener(new EventListener<DocumentSnapshot>() {\n @Override\n public void onEvent(@Nullable DocumentSnapshot snapshot,\n @Nullable FirebaseFirestoreException e) {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n return;\n }\n\n String source = snapshot != null && snapshot.getMetadata().hasPendingWrites()\n ? \"Local\" : \"Server\";\n\n if (snapshot != null && snapshot.exists()) {\n Log.d(TAG, source + \" data: \" + snapshot.getData());\n\n User existingPatient = localUser.getPatientById(snapshot.getId());\n if(existingPatient!=null){\n localUser.changeExistingPatient(existingPatient, setPatientData(snapshot));\n } else {\n localUser.addPatient(setPatientData(snapshot));\n }\n\n // TODO add PatientChangeListener\n //localUser.getIUserDataChangeListener().onUserDataChanged(null);\n\n } else {\n Log.d(TAG, source + \" data: null\");\n }\n }\n });\n }", "PatientInfo getPatientInfo(int patientId);", "protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}", "public void CRUD(patient r1) {\n\t\t// TODO Auto-generated method stub\n\t\tString query1 = \"INSERT INTO pmohan_medicine (medicineName, review,pid,pname,Did) VALUES ( ?, ?, ?,?,?) ;\";\n\t\t\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query1))\n\t\t{ \n\t\t\tstatement.setString(1, r1.getMedcineName());\n\t\t\tstatement.setString(2, r1.getReview());\t\n\t\t\tstatement.setString(4, r1.getPatientName());\n\t\t\tstatement.setInt(3, r1.getPid());\n\t\t\tstatement.setInt(5, r1.getDocId());\n\t\t\tstatement.executeUpdate();\n\t\t}\n\t\t\n\tcatch(Exception e){\n\tSystem.out.println(e.getMessage());\t\n\t}\n}", "public void addPatientPersoanlRecords(String pat_id, String doctor_id, String doc_membership_id, String patient_info_type_form,\n String pat_first_name, String pat_middle_name, String pat_last_name, String pat_gender,\n String pat_date_of_birth, String pat_age, String pat_mobile_no, String pat_address,\n String pat_city_town, String pat_pincode, String pat_district, String pref_lang,\n String photo_name, String consent, String special_instruction, String added_by,\n String added_on, String addedTime, String modified_by, String modified_on,\n String is_disabled, String disabled_by, String disabled_on, String is_deleted,\n String deleted_by, String deleted_on, String flag, String status, String email, String phoneType, String isdCode, String alternateNumber, String alternatePhoneType, String uid, String uidType, String alternateNoIsd) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n try {\n ContentValues contentValue = new ContentValues();\n\n contentValue.put(KEY_PATIENT_ID, pat_id);\n contentValue.put(DOCTOR_ID, doctor_id);\n contentValue.put(DOCTOR_MEMBERSHIP_ID, doc_membership_id);\n contentValue.put(PATIENT_INFO_TYPE_FORM, patient_info_type_form);\n contentValue.put(FIRST_NAME, pat_first_name);\n contentValue.put(MIDDLE_NAME, pat_middle_name);\n contentValue.put(LAST_NAME, pat_last_name);\n\n contentValue.put(GENDER, pat_gender);\n contentValue.put(DOB, pat_date_of_birth);\n contentValue.put(AGE, pat_age);\n contentValue.put(PHONE_NUMBER, pat_mobile_no);\n contentValue.put(PATIENT_ADDRESS, pat_address);\n contentValue.put(PATIENT_CIT_CITY_TOWN, pat_city_town);\n\n contentValue.put(PIN_CODE, pat_pincode);\n contentValue.put(DISTRICT, pat_district);\n contentValue.put(LANGUAGE, pref_lang);\n contentValue.put(PHOTO, photo_name);\n contentValue.put(CONSENT, consent);\n contentValue.put(SPECIAL_INSTRUCTION, special_instruction);\n\n contentValue.put(ADDED_BY, added_by);\n contentValue.put(ADDED_ON, added_on);\n contentValue.put(ADDED_TIME, addedTime);\n contentValue.put(MODIFIED_BY, modified_by);\n contentValue.put(MODIFIED_ON, modified_on);\n contentValue.put(IS_DISABLED, is_disabled);\n contentValue.put(DISABLED_BY, disabled_by);\n\n contentValue.put(DISABLED_ON, disabled_on);\n contentValue.put(IS_DELETED, is_deleted);\n contentValue.put(DELETED_BY, deleted_by);\n contentValue.put(DELETED_ON, deleted_on);\n contentValue.put(SYCHRONIZED, flag);\n\n contentValue.put(KEY_EMAIL, email);\n contentValue.put(PHONE_TYPE, phoneType);\n contentValue.put(ISD_CODE, isdCode);\n contentValue.put(ALTERNATE_PHONE_NO, alternateNumber);\n contentValue.put(ALTERNATE_PHONE_TYPE, alternatePhoneType);\n contentValue.put(ATERNATE_NO_ISD_CODE, alternateNoIsd);\n contentValue.put(UID, uid);\n contentValue.put(UIDTYPE, uidType);\n contentValue.put(STATUS, status);\n\n db.delete(TABLE_PATIENT, KEY_PATIENT_ID + \" = ?\" + \" AND \" + DOB + \" = ? \" + \" AND \" + PHONE_NUMBER + \" = ? \" + \" AND \" + ADDED_ON + \" = ? \", new String[]{pat_id, pat_date_of_birth, pat_mobile_no, added_on});\n // Inserting Row\n db.insert(TABLE_PATIENT, null, contentValue);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }", "@Override\n\tpublic List<Patientstreatments> getallpatienttreat() {\n\t\treturn patreatrep.findAll();\n\t}", "public ResultSet getPatientDetailsByPatientId(int patientId) {\n\t\treturn dbObject.select(\"SELECT * FROM patients where patientId=\"+patientId);\n\n\t}", "public void addAll() throws SQLException {\r\n DbHandler dbHandler = new DbHandler();\r\n\r\n ResultSet resultSet = dbHandler.getAll();\r\n while (resultSet.next()) {\r\n Photographer photographer = new Photographer();\r\n photographer.setId(resultSet.getString(1));\r\n System.out.println(photographer.getId());\r\n photographer.setName(resultSet.getString(2));\r\n System.out.println(photographer.getName());\r\n photographer.setSurname(resultSet.getString(3));\r\n System.out.println(photographer.getSurname());\r\n photographer.setStage(resultSet.getString(4));\r\n System.out.println(photographer.getStage());\r\n photographer.setPortfolio(resultSet.getString(5));\r\n System.out.println(photographer.getPortfolio());\r\n photographer.setLocation_(resultSet.getString(6));\r\n System.out.println(photographer.getLocation_());\r\n readersList.add(photographer);\r\n }\r\n }", "public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;", "List<MedicalRecord> getAllPatientMedicalRecords(HttpSession session, int patientId);", "public Patient getPatientByID(int pid) {\r\n\t\tPatient patient=null;\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients WHERE id = ? \";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, pid);\r\n\t\t\tResultSet results= pStatement.executeQuery();\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\t//Patient table\r\n\t\t\t\tint idPatient= results.getInt(1);\r\n\t\t\t\tString fname= results.getString(2);\r\n\t\t\t\tString lname= results.getString(3);\r\n\t\t\t\tString gender= results.getString(4);\r\n\t\t\t\tint age= results.getInt(5);\r\n\t\t\t\tString phone= results.getString(6);\r\n\t\t\t\tString villege= results.getString(7);\r\n\t\t\t\tString commune= results.getString(8);\r\n\t\t\t\tString city= results.getString(9);\r\n\t\t\t\tString province= results.getString(10);\r\n\t\t\t\tString country= results.getString(11);\r\n\t\t\t\tAddress address= new Address(villege, commune, city, province, country);\r\n\t\t\t\tString type= results.getString(12);\r\n\t\t\t\t\r\n\t\t\t\tpatient= new Patient(idPatient, fname, lname, gender, age, phone, address, type);\r\n\t\t\t\tSystem.out.println(\"Get Patients succeed From DatabasePatient\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\t\r\n\t\treturn patient;\r\n\t}", "public void populateVitals() {\n try {\n Statement stmt = con.createStatement();\n\n ResultSet rs = stmt.executeQuery(\"select * from device\");\n while (rs.next()) {\n\n String guid = rs.getString(\"DeviceGUID\");\n int deviceId = rs.getInt(\"DeviceID\");\n int deviceTypeId = rs.getInt(\"DeviceTypeID\");\n int locationId = rs.getInt(\"LocationID\");\n float deviceProblem = rs.getFloat(\"ProblemPercentage\");\n\n String dateService = rs.getString(\"DateOfInitialService\");\n\n Device device = new Device();\n device.setDateOfInitialService(dateService);\n device.setDeviceGUID(guid);\n device.setDeviceID(deviceId);\n device.setDeviceTypeID(deviceTypeId);\n device.setLocationID(locationId);\n device.setProblemPercentage(deviceProblem);\n\n deviceList.add(device);\n\n }\n } catch (SQLException e) {\n log.error(\"Error populating devices\", e);\n }\n\n }", "@PostMapping(value = \"/insert\", produces = \"application/json\")\n void insert(@RequestBody Patient patient);", "public void displayPatients() {\n DefaultTableModel dm = new DefaultTableModel(0, 0);\n String header[] = new String[]{\"\", \"Nom:\", \"Prénom:\", \"Dg:\", \"Séance:\", \"Date visit\"};\n dm.setColumnIdentifiers(header);\n jTable1.setModel(dm);\n\n \n \n //set the data in the table =>rows\n\n for (int i = 0; i < patients.size(); i++) {\n Patient patient = patients.get(i);\n\n Vector<Object> data = new Vector<Object>();\n data.add(patient.getId());\n data.add(patient.getNom());\n data.add(patient.getPrenom());\n data.add(patient.getDg());\n data.add(patient.getNombre_seance());\n data.add(patient.getDate_visit());\n dm.addRow(data);\n \n }\n }", "public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }", "public interface PatientDAO {\n\n List<Patient> getPatient();\n\n\n void addPatient(Patient patient);\n\n public Patient getPatient(int patientId);\n\n List<Patient> getPatientsByLastName(String lastName);\n\n void deletePatient(int theId);\n}", "public void addPatient(String name,String lasname, int age, String unam, String pas, String sec, String secAns, int sympt[],int prevSm1[],int prevSm2[],int threshold[], String dname)\r\n {\r\n\t String newPat = \"INSERT INTO PATIENTDATA (FIRSTNAME,LASTNAME,AGE,USERNAME,PASSWORD,SECURITYQN,SECURITYANS,\"+\r\n\t\t\t \t\t \"SYMPTOM1,SYMPTOM2,SYMPTOM3,SYMPTOM4,SYMPTOM5,SYMPTOM6,SYMPTOM7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM1_1,PrevSYMPTOM1_2,PrevSYMPTOM1_3,PrevSYMPTOM1_4,PrevSYMPTOM1_5,PrevSYMPTOM1_6,PrevSYMPTOM1_7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM2_1,PrevSYMPTOM2_2,PrevSYMPTOM2_3,PrevSYMPTOM2_4,PrevSYMPTOM2_5,PrevSYMPTOM2_6,PrevSYMPTOM2_7,\"+\r\n\t\t\t \t\t \"SYMPTOM1Thresh,SYMPTOM2Thresh,SYMPTOM3Thresh,SYMPTOM4Thresh,SYMPTOM5Thresh,SYMPTOM6Thresh,SYMPTOM7Thresh, DOCTORSNAME, NOTIFICATION) \";\r\n\t newPat = newPat+\"VALUES ('\"+name+\"', '\"+lasname+\"', \"+age+\", '\"+unam+\"', '\"+pas+\"', '\"+sec+\"', '\"+secAns+\"',\"\r\n\t\t\t \t\t +sympt[0]+\",\"+sympt[1]+\",\"+sympt[2]+\",\"+sympt[3]+\",\"+sympt[4]+\",\"+sympt[5]+\",\"+sympt[6]+\r\n\t\t\t \t\t\t\",\" +prevSm1[0]+\",\"+prevSm1[1]+\",\"+prevSm1[2]+\",\"+prevSm1[3]+\",\"+prevSm1[4]+\",\"+prevSm1[5]+\",\"+prevSm1[6]+\",\"\r\n\t\t\t \t\t\t+prevSm2[0]+\",\"+prevSm2[1]+\",\"+prevSm2[2]+\",\"+prevSm2[3]+\",\"+prevSm2[4]+\",\"+prevSm2[5]+\",\"+prevSm2[6]+\",\"\r\n\t\t\t \t\t\t+threshold[0]+\",\"+threshold[1]+\",\"+threshold[2]+\",\"+threshold[3]+\",\"+threshold[4]+\",\"+threshold[5]+\",\"+threshold[6]+\",'\"+dname+\"',0);\";\r\n\t \r\n\t try {\r\n\t\tstmt.executeUpdate(newPat);\r\n\t\t\r\n\t\t\r\n\t} catch (SQLException e) {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n\t \r\n }", "@GetMapping(\"/patient\")\r\n\t@ApiOperation(value = \"To list Patient Directory\")\r\n\t// @Cacheable(value = \"getRecordWithDat\", key = \"#root.methodName\")\r\n\tpublic List<PatientRecord> getAllPatientRecords() {\r\n\t\tlogger.info(\"listAllPatient {}\", patientService.getAll());\r\n\t\t// kafkaTemplate.send(\"kafkaExample\",\r\n\t\t// patientService.getAll().stream().findAny());\r\n\t\treturn patientService.getAll();\r\n\t}", "public void addPatient()\n {\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Enter name of patient\");\n String name=sc.nextLine();\n int pos,id;\n\n do\n {\n System.out.println(\"Enter doctor id to assign to\");\n id=sc.nextInt();\n pos=checkDoctor(id);\n if(pos==-1)\n System.out.println(\"Invalid doctor id\");\n }\n while(pos==-1);\n String docname=doc.get(pos).getName();\n Patient p=new Patient(name,id,docname);\n pt.add(p);\n\n }", "public boolean createPatient(Patient patient,PatientRecord patientRecord) {\r\n\t\tboolean isCreated= false;\r\n\t\tString[] row= new String[9];\r\n\t\ttry {\r\n\t\t\tString query = \"INSERT INTO patients VALUES (?,?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, patient.getId());\r\n\t\t\tpStatement.setString(2, patient.getFirstName());\r\n\t\t\tpStatement.setString(3, patient.getLastName());\r\n\t\t\tpStatement.setString(4, patient.getGender());\r\n\t\t\tpStatement.setInt(5, patient.getAge());\r\n\t\t\tpStatement.setString(6, patient.getPhone());\r\n\t\t\tpStatement.setString(7, patient.getAddress().getVillege());\r\n\t\t\tpStatement.setString(8, patient.getAddress().getCommune());\r\n\t\t\tpStatement.setString(9, patient.getAddress().getCity());\r\n\t\t\tpStatement.setString(10, patient.getAddress().getProvince());\r\n\t\t\tpStatement.setString(11, patient.getAddress().getCountry());\r\n\t\t\tpStatement.setString(12, patient.getType());\r\n\t\t\t\r\n\t\t\tif(pStatement.executeUpdate() > 0) {\r\n\t\t\t\tpatientID.add(patient.getId());\r\n\t\t\t\trow[0]= patient.getId()+\"\";\r\n\t\t\t\trow[1]= patient.getFirstName();\r\n\t\t\t\trow[2]= patient.getLastName();\r\n\t\t\t\trow[3]= patient.getGender();\r\n\t\t\t\trow[4]= patient.getAge()+\"\";\r\n\t\t\t\trow[5]= patientRecord.getDate()+\"\";\r\n\t\t\t\trow[6]= patient.getPhone();\r\n\t\t\t\tmodelPatient.addRow(row);\r\n\t\t\t\tisCreated= true;\r\n\t\t\t\tSystem.out.println(\"You have insert a patient record\");\r\n\t\t\t\t\r\n\t\t\t};\r\n\t\t}catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn isCreated;\r\n\t}", "void AddPatiant(Patient p) throws Exception;", "public void createAll() {\n SQLFormater SQLFormaterMoods = new SQLFormater(MOODS_TABLE_NAME, ID_FIELD); // objects help to form sql strings for creating tables\n SQLFormater SQLFormaterAnswers = new SQLFormater(ANSWERS_TABLE_NAME, ID_FIELD);\n\n String[] answersTableFields = {ANSWERS_FIELD, ID_MOODS_FIELD}; // ordered fields\n String[] moodsTableFields = {MOODS_FIELD, HI_FIELD, BYBY_FIELD};\n\n SQLFormaterMoods.setNewField(MOODS_FIELD, STRING_TYPE, \"NOT NULL\"); // creating tables\n SQLFormaterMoods.setNewField(HI_FIELD, STRING_TYPE, null);\n SQLFormaterMoods.setNewField(BYBY_FIELD, STRING_TYPE, null);\n dbConnection.execute(SQLFormaterMoods.getStringToCreateDB(null));\n\n SQLFormaterAnswers.setNewField(ANSWERS_FIELD, STRING_TYPE, \"NOT NULL\");\n SQLFormaterAnswers.setNewField(ID_MOODS_FIELD, INTEGER_TYPE, null);\n String reference = \"FOREIGN KEY (\" + ID_MOODS_FIELD + \")\" +\n \" REFERENCES \" + MOODS_TABLE_NAME +\n \"(\" + ID_FIELD + \")\";\n dbConnection.execute(SQLFormaterAnswers.getStringToCreateDB(reference)); // create table with reference\n\n insertTableValues(SQLFormaterMoods, moodsTableFields, getMoodsTableValues()); // inserting ordered values into tables\n insertTableValues(SQLFormaterAnswers, answersTableFields, getAnswersTableValues());\n }", "public void insertPatientShortInfo(PatientShortInfo patient) throws DataAccessException {\n\t\tjdbcTemplate.update(\n\t\t \"INSERT INTO patient (id, name, second_name, surname, born_date, id_number, \"\n\t\t\t\t+ \"sex, phone_number, nationality, insurance_number, home_address, health_status, \"\n\t\t\t\t+ \"disease, medicines, allergies) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\",\n\t\t\t\tpatient.getId(), patient.getName(), patient.getSecondName(), patient.getSurname(),\n\t\t\t\tpatient.getBornDate(), patient.getIdNumber(), patient.getSex(), patient.getPhoneNumber(),\n\t\t\t\tpatient.getNationality(), patient.getInsuranceNumber(), patient.getHomeAddress(),\n\t\t\t\tpatient.getHealthStatus(), patient.getDisease(), patient.getMedicines(), patient.getAllergies());\n\t}", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "Patient save(Patient patient);", "private void setThePatient() {\n String ppsn = mPPSN.getText().toString();\n thePatient.set_id(ppsn.substring(ppsn.indexOf(\":\")+1).trim());\n\n String name = mName.getText().toString();\n thePatient.setName(name.substring(name.indexOf(\":\")+1).trim());\n\n String illness = mCondition.getText().toString();\n thePatient.setIllness(illness.substring(illness.indexOf(\":\")+1).trim());\n\n Address a = new Address();\n String addressLine1 = mAddressLine1.getText().toString();\n a.setAddressLine1(addressLine1.substring(addressLine1.indexOf(\":\")+1).trim());\n\n String addressLine2 = mAddressLine2.getText().toString();\n a.setAddressLine2(addressLine2.substring(addressLine2.indexOf(\":\")+1).trim());\n\n String city = mCity.getText().toString();\n a.setCity(city.substring(city.indexOf(\":\")+1).trim());\n\n String county = mCounty.getText().toString();\n a.setCounty(county.substring(county.indexOf(\":\")+1).trim());\n\n String country = mCountry.getText().toString();\n a.setCountry(country.substring(country.indexOf(\":\")+1).trim());\n\n String postcode = mPostCode.getText().toString();\n a.setPostCode(postcode.substring(postcode.indexOf(\":\")+1).trim());\n\n thePatient.setAddress(a);\n }", "@Override\n @Transactional\n public Patient getPatientById(int id) {\n return patientDAO.getById(id);\n }", "public List<Patient> listAllPatient() {\n\t\treturn null;\n\t}", "public static ResultSet getPatientInfo(int id) {\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Patient WHERE ID =?;\");\r\n\t\t\tstmt.setString(1, String.valueOf(id));\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private void addPatient(Patient patient) {\n Location location = mLocationTree.findByUuid(patient.locationUuid);\n if (location != null) { // shouldn't be null, but better to be safe\n if (!mPatientsByLocation.containsKey(location)) {\n mPatientsByLocation.put(location, new ArrayList<Patient>());\n }\n mPatientsByLocation.get(location).add(patient);\n }\n }", "public static Long importPregnancy(Connection conn, Map queries, Pregnancy pregnancy, Long patientId) throws ServletException, SQLException {\r\n \tLong pregnancyId;\r\n \tString sqlCreatePregnancy = (String) queries.get(\"SQL_CREATE_PREGNANCY_IMPORT\");\r\n \tArrayList pregnancyValues = new ArrayList();\r\n \t// add patient_id to pregnancyValues\r\n \tpregnancyValues.add(patientId);\r\n \t// add date_visit to pregnancyValues\r\n \tpregnancyValues.add(pregnancy.getDatePregnancyBegin());\r\n \tpregnancyValues.add(pregnancy.getPregnancyBeginEncounterId());\r\n \tpregnancyValues.add(pregnancy.getDatePregnancyEnd());\r\n \tpregnancyValues.add(pregnancy.getPregnancyEndEncounterId());\r\n \tpregnancyValues.add(pregnancy.getDateLabourAdmission());\r\n \tpregnancyValues.add(pregnancy.getLabourAdmissionEncounterId());\r\n\t // last modified\r\n \tpregnancyValues.add(pregnancy.getLastModified());\r\n\t // created\r\n \tpregnancyValues.add(pregnancy.getCreated());\r\n\t // last_modified_by\r\n \tpregnancyValues.add(pregnancy.getLastModifiedBy());\r\n\t // created_by\r\n \tpregnancyValues.add(pregnancy.getCreatedBy());\r\n\t // site_id\r\n \tpregnancyValues.add(pregnancy.getSiteId());\r\n \t// import_pregnancy_id\r\n \tpregnancyValues.add(pregnancy.getId());\r\n \t// adds uuid\r\n \tpregnancyValues.add(pregnancy.getUuid());\r\n \t// created_site_id\r\n \tpregnancyValues.add(pregnancy.getSiteId());\r\n \tpregnancyValues.add(pregnancy.getPregnancyBeginEncounterUuid());\r\n \tpregnancyValues.add(pregnancy.getPregnancyEndEncounterUuid());\r\n \tpregnancyValues.add(pregnancy.getLabourAdmissionEncounterUuid());\r\n \tpregnancyId = (Long) DatabaseUtils.create(conn, sqlCreatePregnancy, pregnancyValues.toArray());\r\n \treturn pregnancyId;\r\n }", "public ResultSet getPatientHistory(int patientId) {\n\t\treturn dbObject.select(\"SELECT `time` as Time, `bglValue` as BGL, injectedUnits FROM `patientHistory` \"); //WHERE patientId=\"+patientId);\n\t}", "Patient update(Patient patient);", "public ArrayList<Patient> getPatientList(String DocName)\r\n {\n\t ArrayList<Patient> names = new ArrayList<Patient>();\r\n\t \r\n\t try \r\n\t {\r\n\t\tResultSet rs = stmt.executeQuery( \"SELECT * FROM PATIENTDATA;\" );\r\n\t\tint i =0;\r\n\t\twhile (rs.next())\r\n\t\t{\r\n\t\t\tString fname = rs.getString(\"firstname\");\r\n\t\t\tString lname = rs.getString(\"lastname\");\r\n\t\t\tString userName = rs.getString(\"username\");\r\n\t\t\tString passWord = rs.getString(\"password\");\r\n\t\t\tString secAns = rs.getString(\"securityans\");\r\n\t\t\tString check = rs.getString(\"doctorsname\");\r\n\t\t\tint Notify = rs.getInt(\"notification\");\r\n\t\t\t// if the name matches the doctor's name, then Add to the Patient Arraylist.\r\n\t\t\tif (check.equals(DocName))\t\r\n\t\t\t{\r\n\t\t\t\tint symp[]= new int[7];\r\n\t\t\t\tint pr1[]=new int[7];\r\n\t\t\t\tint pr2[]=new int[7];\r\n\t\t\t\tint thrs[]=new int[7]; \r\n\t\t\t\t\r\n\t\t\t\tsymp[0] = rs.getInt(\"SYMPTOM1\");\r\n\t\t\t\tsymp[1] = rs.getInt(\"SYMPTOM2\");\r\n\t\t\t\tsymp[2] = rs.getInt(\"SYMPTOM3\");\r\n\t\t\t\tsymp[3] = rs.getInt(\"SYMPTOM4\");\r\n\t\t\t\tsymp[4] = rs.getInt(\"SYMPTOM5\");\r\n\t\t\t\tsymp[5] = rs.getInt(\"SYMPTOM6\");\r\n\t\t\t\tsymp[6] = rs.getInt(\"SYMPTOM7\");\r\n\t\t\t\t\r\n\t\t\t\tpr1[0] = rs.getInt(\"PrevSYMPTOM1_1\");\r\n\t\t\t\tpr1[1] = rs.getInt(\"PrevSYMPTOM1_2\");\r\n\t\t\t\tpr1[2] = rs.getInt(\"PrevSYMPTOM1_3\");\r\n\t\t\t\tpr1[3] = rs.getInt(\"PrevSYMPTOM1_4\");\r\n\t\t\t\tpr1[4] = rs.getInt(\"PrevSYMPTOM1_5\");\r\n\t\t\t\tpr1[5] = rs.getInt(\"PrevSYMPTOM1_6\");\r\n\t\t\t\tpr1[6] = rs.getInt(\"PrevSYMPTOM1_7\");\r\n\t\t\t\t\r\n\t\t\t\tpr2[0] = rs.getInt(\"PrevSYMPTOM2_1\");\r\n\t\t\t\tpr2[1] = rs.getInt(\"PrevSYMPTOM2_2\");\r\n\t\t\t\tpr2[2] = rs.getInt(\"PrevSYMPTOM2_3\");\r\n\t\t\t\tpr2[3] = rs.getInt(\"PrevSYMPTOM2_4\");\r\n\t\t\t\tpr2[4] = rs.getInt(\"PrevSYMPTOM2_5\");\r\n\t\t\t\tpr2[5] = rs.getInt(\"PrevSYMPTOM2_6\");\r\n\t\t\t\tpr2[6] = rs.getInt(\"PrevSYMPTOM2_7\");\r\n\r\n\t\t\t\t\r\n\t\t\t\tthrs[0] = rs.getInt(\"SYMPTOM1Thresh\");\r\n\t\t\t\tthrs[1] = rs.getInt(\"SYMPTOM2Thresh\");\r\n\t\t\t\tthrs[2] = rs.getInt(\"SYMPTOM3Thresh\");\r\n\t\t\t\tthrs[3] = rs.getInt(\"SYMPTOM4Thresh\");\r\n\t\t\t\tthrs[4] = rs.getInt(\"SYMPTOM5Thresh\");\r\n\t\t\t\tthrs[5] = rs.getInt(\"SYMPTOM6Thresh\");\r\n\t\t\t\tthrs[6] = rs.getInt(\"SYMPTOM7Thresh\");\r\n\t\t\t\t\r\n\t\t\t\t//make new Patient object with the patient informations.\r\n\t\t\t\tPatient P1 = new Patient(fname,lname,userName,passWord,secAns,DocName,symp,pr1,pr2,thrs);\r\n\t\t\t\tP1.setFlag(Notify);\r\n\t\t\t\tnames.add(P1); //Added to the Patient Arraylist\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn names; // Return list of patients\r\n\t\t\r\n\t\t\r\n\t } \r\n\t catch (SQLException e) \r\n\t {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t }\r\n\t \r\n\t return names;\r\n\t \r\n\t \r\n }", "public void add(String patient, MedicalRecord m) {\n if (!database.containsKey(patient)) {\n database.put(patient, new ArrayList<MedicalRecord>());\n }\n database.get(patient).add(m);\n }", "public void generatePatientSQL(HttpServletResponse response, String ids, Integer pid){\n\t\tresponse.setHeader( \"Content-Disposition\", \"attachment;filename=\"+\"patientExportSummary\"+\".sql\");\n\t\ttry{\n\t\t\tStringBuffer sb = new StringBuffer(\"\");\n\n\t\t\tList<PersonAttributeType> pat = getSavedPersonAttributeList(pid);\n\t\t\tList<Integer> idsList = multipleIds(ids);\n\t\t\tPatientService ps = Context.getPatientService();\n\t\t\tfor(int j=0 ; j<idsList.size();j++){\n\t\t\t\tPatient pt = ps.getPatient(idsList.get(j));\n\t\t\t\tfor(int i=0; i<pat.size();i++){\n\t\t\t\t\tPersonAttribute pa = pt.getAttribute(pat.get(i));\n\t\t\t\t\tif(pa!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tsb.append(\"insert into person_attribute (person_id, value,person_attribute_type_id,creator,date_created,changed_by,date_changed,voided, voided_by,date_voided, void_reason,uuid ) values(\");\n\t\t\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\t\t\t\t\tDate d = new Date();\n\t\t\t\t\t\tsb.append( pt.getId().toString()+ \",'\" + pa.getValue().toString()+ \"',\" + pat.get(i).getId().toString() + \",\"+ \"1\"+ \",'\" +dateFormat.format(d) +\"',null,null,0,null,null,null,null\" +\" );\\n\\n\" );\n\t\t\t\t\t\tsb.append(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\n\t\t\t\tsb.append(\"insert into person_name (preferred,person_id,prefix,given_name, middle_name,family_name_prefix,family_name, family_name2, family_name_suffix, degree, creator, date_created,voided, voided_by,date_voided, void_reason,changed_by,date_changed, uuid ) values(\");\n\t\t\t\tsb.append(\"1,\" + pt.getId().toString()+ \",\" + \"null\" +\",'\" + pt.getGivenName().toString()+ \"','\" + pt.getMiddleName().toString() + \"',\" +\"null\" + \",'\" +pt.getFamilyName() +\"',\" +\"null\" +\",\" + \"null\" +\",\" + \"null\" + \",\" +\"1\" +\",'\" + dateFormat.format(date) + \"',0,null,null,null,null,null,null,\" + \" );\\n\\n\" );\n\t\t\t\tsb.append(\"\");\n\n\t\t\t\tsb.append(\"insert into person (gender,birthdate, birthdate_estimated,dead,death_date,cause_of_death,creator, date_created,changed_by,date_changed,voided, voided_by,date_voided, void_reason, uuid,deathdate_estimated) values(\");\n\t\t\t\tsb.append( \"'\" + pt.getGender().toString() +\"','\" + pt.getBirthdate().toString() + \"',0,0,null,null,1,'\");\n\t\t\t\tsb.append(dateFormat.format(date)+ \"',null,null,0,null,null,null,null,0\" + \");\\n\\n\" );\n\t\t\t\tsb.append(\"\");\n\n\n\t\t\t\tList<Obs> obs1 = new ArrayList<Obs>();\n\t\t\t\tContext.clearSession();\n\t\t\t\tObsService obsService = Context.getObsService();\n\t\t\t\tList<Obs> ob = getOriginalObsList(pt, obsService);\n\t\t\t\tobs1 = getEncountersOfPatient(pt,ob,pid); //New obs list - updated\n\t\t\t\tList<ConceptSource> cs = getConceptMapping(obs1);\n\t\t\t\tfor(int i=0; i<obs1.size();i++){\n\n\n\t\t\t\t\tsb.append(\"insert into obs (person_id,concept_id, encounter_id, order_id, obs_datetime, location_id, obs_group_id, accession_number, value_group_id,value_boolean,value_coded, value_coded_name_id,value_drug,value_datetime,value_numeric,value_modifier,value_text,value_complex, comments, creator, date_created,voided, voided_by,date_voided, void_reason, uuid,previous_version) values(\");\n\t\t\t\t\tsb.append(pt.getId().toString() );\n\t\t\t\t\tsb.append(\",\" + obs1.get(i).getConcept().getConceptId().toString());\n\t\t\t\t\tsb.append(\",\" + obs1.get(i).getEncounter().getEncounterId().toString());\n\t\t\t\t\tsb.append( \",null,'\" + obs1.get(i).getObsDatetime().toString() );\n\t\t\t\t\tsb.append( \"',null,null,null,null,\" );\n\t\t\t\t\tif(obs1.get(i).getValueBoolean() != null)\n\t\t\t\t\t\tsb.append(obs1.get(i).getValueBoolean().toString());\n\t\t\t\t\telse\n\t\t\t\t\t\tsb.append(\"null\");\n\t\t\t\t\tsb.append( \",\" );\n\t\t\t\t\tif(obs1.get(i).getValueCoded() != null)\n\t\t\t\t\t\tsb.append(obs1.get(i).getValueCoded().toString());\n\t\t\t\t\telse\n\t\t\t\t\t\tsb.append(\"null\");\n\n\n\t\t\t\t\tsb.append(\",null,null,null,\" );\n\t\t\t\t\tif(obs1.get(i).getValueNumeric() != null)\n\t\t\t\t\t\tsb.append(obs1.get(i).getValueNumeric().toString());\n\t\t\t\t\telse\n\t\t\t\t\t\tsb.append(\"null\");\n\n\t\t\t\t\tsb.append( \",null,null,null,null,1,'\" + dateFormat.format(date) +\"',0,null,null,null,null,null\" + \" );\\n\\n\" );\n\t\t\t\t\tsb.append(\"\");\n\n\n\t\t\t\t\tsb.append(\"insert into encounter (encounter_type, patient_id, location_id, form_id, encounter_datetime, creator, date_created,voided, voided_by,date_voided, void_reason, changed_by, date_changed,visit_id, uuid) values(\");\n\t\t\t\t\tsb.append(obs1.get(i).getEncounter().getEncounterType().getEncounterTypeId().toString() + \",\");\n\t\t\t\t\tsb.append(pt.getId().toString() + \",null,null,'\");\n\t\t\t\t\tsb.append(dateFormat.format(obs1.get(i).getEncounter().getEncounterDatetime()).toString() + \"',1,'\");\n\t\t\t\t\tsb.append(dateFormat.format(date) + \"',0,null,null,null,null,null,null,null);\\n\\n\");\n\t\t\t\t\tsb.append(\"\");\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tString a = sb.toString();\n\t\t\t// Finally, send the response\n\t\t\tbyte[] res = a.getBytes(Charset.forName(\"UTF-8\"));\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\tresponse.getOutputStream().write(res);\n\t\t\tresponse.flushBuffer();\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlog.error(\"IO Exception in generating SQL\", e);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlog.error(\"Exception in generating SQL\", e);\n\t\t}\n\n\t}", "static void fillData() {\n\n try {\n // Class.forName(\"org.sqlite.JDBC\");\n connection = DriverManager.getConnection(\"jdbc:sqlite:CarServiceDatabase.db\");\n \n Statement stmt = null;\n\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * from Car_Info;\");\n\n // adding Cars to the Software store\n while (rs.next()) {\n\n String model = rs.getString(\"car_model\");\n String make = rs.getString(\"car_make\");\n String VIN = rs.getString(\"car_VIN\");\n int year = rs.getInt(\"car_year\");\n int mileage = rs.getInt(\"car_mileage\");\n String serviceDate = null;\n\n String owner = connection.createStatement().executeQuery(\"select owner_firstName from Car_Owner where owner_ID = \" + rs.getInt(\"owner_ID\")).getString(\"owner_firstName\");\n owner = owner + connection.createStatement().executeQuery(\"select owner_lastName from Car_Owner where owner_ID = \" + rs.getInt(\"owner_ID\")).getString(\"owner_lastName\");\n Cars.add(new Car(VIN, make, model, year, mileage, serviceDate, owner));\n\n }\n\n rs = stmt.executeQuery(\"SELECT * FROM Dealership;\");\n\n // adding Dealer to the Software store\n while (rs.next()) {\n String dealer_Name = rs.getString(\"dealer_name\");\n String dealer_address = rs.getString(\"dealer_address\");\n String dealer_phoneNum = rs.getString(\"dealer_phoneNum\");\n dealerships.add(new Dealership(dealer_Name, dealer_address, dealer_phoneNum));\n }\n\n rs = stmt.executeQuery(\"SELECT * FROM Service_Techs;\");\n\n // adding TECHS to the Software store\n while (rs.next()) {\n int dealer_ID = rs.getInt(\"dealer_ID\");\n String techName = rs.getString(\"tech_Name\");\n\n ServiceTechs.add(dealerships.get(dealer_ID - 1).new ServiceTech(dealer_ID, techName));\n }\n\n // adding Service_Info to the Software store\n rs = stmt.executeQuery(\"SELECT * FROM Service_Info;\");\n\n while (rs.next()) {\n String serviceDate = null;\n int techID = rs.getInt(\"tech_ID\");\n int dealershipID = rs.getInt(\"dealer_ID\");\n String carVIN = rs.getString(\"car_VIN\");\n\n String partsUsed = rs.getString(\"parts_used\");\n String serviceDesc = rs.getString(\"service_description\");\n double partsCost = rs.getDouble(\"cost_of_parts\");\n double totalCost = rs.getDouble(\"cost_of_service\");\n double laborHours = rs.getDouble(\"labor_hours\");\n\n serviceOrders.add(new ServiceOrder(carVIN, serviceDesc, serviceDate, partsUsed, techID, dealershipID,\n partsCost, totalCost, laborHours));\n\n }\n\n rs = stmt.executeQuery(\"SELECT * FROM Car_Owner;\");\n\n // adding Dealer to the Software store\n while (rs.next()) {\n String ownerFirstName = rs.getString(\"owner_firstName\");\n String ownerLastName = rs.getString(\"owner_lastName\");\n String ownerPhoneNumer = rs.getString(\"phone_num\");\n String ownerEmail = rs.getString(\"owner_email\");\n owners.add(new Owner(ownerFirstName, ownerLastName, ownerPhoneNumer, ownerEmail));\n }\n\n rs.close();\n stmt.close();\n\n } catch (Exception e) {\n Alert a = new Alert(AlertType.ERROR);\n a.setContentText(\"Something is wrong when accessing the database\");\n\n // show the dialog\n a.show();\n }\n\n }", "public void addPatientHistoryRecords(String visit_id, String pat_id, String ailment, String visit_date, String follow_up_date,\n String follow_up_days, String follow_up_weeks, String follow_up_months,\n String act_follow_up_date, String notes, String added_by, String added_on, String addedTime,\n String modified_by, String modified_on, String is_disabled, String disabled_by,\n String disabled_on, String is_deleted, String deleted_by, String deleted_on, String flag, String patient_info_type_form,\n String precription, String weight, String pulse, String bphigh, String bplow, String temparature, String sugar, String symptoms, String dignosis, String tests, String drugs, String doc_mem_id, String doc_id,\n String height, String bmi, String recordSource, String sugarFast, String referredBy, String referredTo) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues contentValue = new ContentValues();\n\n contentValue.put(KEY_VISIT_ID, visit_id);\n contentValue.put(KEY_PATIENT_ID, pat_id);\n contentValue.put(AILMENT, ailment);\n contentValue.put(VISIT_DATE, visit_date);\n contentValue.put(FOLLOW_UP_DATE, follow_up_date);\n contentValue.put(DAYS, follow_up_days);\n contentValue.put(WEEKS, follow_up_weeks);\n contentValue.put(MONTHS, follow_up_months);\n contentValue.put(ACTUAL_FOLLOW_UP_DATE, act_follow_up_date);\n contentValue.put(CLINICAL_NOTES, notes);\n contentValue.put(ADDED_BY, added_by);\n contentValue.put(ADDED_ON, added_on);\n contentValue.put(ADDED_TIME, addedTime);\n contentValue.put(MODIFIED_BY, modified_by);\n contentValue.put(MODIFIED_ON, modified_on);\n contentValue.put(IS_DISABLED, is_disabled);\n contentValue.put(DISABLED_BY, disabled_by);\n\n contentValue.put(DISABLED_ON, disabled_on);\n contentValue.put(IS_DELETED, is_deleted);\n contentValue.put(DELETED_BY, deleted_by);\n contentValue.put(DELETED_ON, deleted_on);\n contentValue.put(SYCHRONIZED, flag);\n contentValue.put(PATIENT_INFO_TYPE_FORM, patient_info_type_form);\n contentValue.put(WEIGHT, weight);\n contentValue.put(PRESCRIPTION, precription);\n contentValue.put(PULSE, pulse);\n contentValue.put(BP, bphigh);\n contentValue.put(BP_LOW, bplow);\n contentValue.put(TEMP, temparature);\n contentValue.put(SUGAR, sugar);\n contentValue.put(SYMPTOMS, symptoms);\n contentValue.put(DIGNOSIS, dignosis);\n contentValue.put(TESTS, tests);\n contentValue.put(DRUGS, drugs);\n contentValue.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n contentValue.put(DOCTOR_ID, doc_id);\n\n contentValue.put(HEIGHT, height);\n contentValue.put(BMI, bmi);\n contentValue.put(RECORD_SOURCE, recordSource);\n contentValue.put(SUGAR_FASTING, sugarFast);\n contentValue.put(REFERED_BY, referredBy);\n contentValue.put(REFERED_TO, referredTo);\n\n db.delete(TABLE_PATIENT_HISTORY, KEY_PATIENT_ID + \" = ?\" + \" AND \" + KEY_VISIT_ID + \" = ? \", new String[]{pat_id, visit_id});\n // Inserting Row\n db.insert(TABLE_PATIENT_HISTORY, null, contentValue);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public void savePatientDetails(View view){\r\n\t\tsaveToSQLite();\r\n createCalendarEntry();\r\n\t\tToast.makeText(this, \"Saved. Reminder created.\", Toast.LENGTH_SHORT).show();\r\n\t}", "public int createNewPatient(Patient p) {\n int id = 0;\n String query = \"INSERT INTO PATIENTS(name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query, PreparedStatement.RETURN_GENERATED_KEYS)) {\n pst.setString(1, p.getName());\n pst.setBoolean(2, p.isGender());\n pst.setDate(3, p.getBirth());\n pst.setString(4, p.getDpi());\n pst.setString(5, p.getPhone());\n pst.setDouble(6, p.getWeight());\n pst.setString(7, p.getBlood());\n pst.setString(8, p.getEmail());\n pst.setString(9, p.getPass());\n pst.executeUpdate();\n \n ResultSet rs = pst.getGeneratedKeys();\n if(rs.next()) {\n id = rs.getInt(1);\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n return id;\n }", "Response selectAllBasicInfo() throws IOException, SQLException {\n CassandraConnector client = new CassandraConnector();\n Session session = client.getSession();\n ResultSet result = session.execute(\"SELECT * FROM BasicInfo\");\n System.out.println(result.toString());\n String body = \"\";\n String row = \"\";\n String tab = \"\\t\";\n String response = \"\";\n String heading = \"<H2>Patient Information Table</H2>\" +\n \"<body><table><col width=\\\"80\\\">\\n\" +\n \" <col width=\\\"150\\\"><tr>\" +\n \" <col width=\\\"150\\\"><tr>\" +\n \" <col width=\\\"180\\\"><tr>\" +\n \" <col width=\\\"180\\\"><tr>\" +\n \" <col width=\\\"180\\\"><tr>\" +\n \" <col width=\\\"180\\\"><tr>\" +\n \" <th> PatientID </th>\" +\n \"<th>Patient Name </th>\" +\n \"<th>Address </th>\"\n + \"<th>Gender</th>\" +\n \"<th>Status</th>\" +\n \"<th>Last Visited</th>\" +\n \"<th>Date Of Birth</th> </tr>\";\n try {\n while (!result.isExhausted()) {\n Row ri = result.one();\n int patientID = ri.getInt(\"patientid\");\n row = \"<tr><td>\" + patientID + \"</td>\";\n String patientName = ri.getString(\"patientname\");\n row = row + \"<td>\" + patientName + \"</td>\";\n String address = ri.getString(\"address\");\n row = row + \"<td>\" + address + \"</td>\";\n String gender = ri.getString(\"gender\");\n row = row + \"<td>\" + gender + \"</td>\";\n String status = ri.getString(\"status\");\n row = row + \"<td>\" + status + \"</td>\";\n Date lastVisit = ri.getTimestamp(\"lastvisited\");\n row = row + \"<td>\" + lastVisit + \"</td>\";\n Date dob = ri.getTimestamp(\"dob\");\n row = row + \"<td>\" + dob + \"</td></tr>\";\n System.out.println(row);\n body = body + row;\n }\n response = heading + body + \"</table></body>\";\n System.out.println(response);\n } catch (Exception e) {\n e.printStackTrace();\n client.close();\n return Response.status(404).entity(\"404 Not Found\").build();\n }\n client.close();\n return Response.status(200).entity(response).build();\n }", "@Override\n\tpublic List<PatientTelephone> fetchAll(Patient patient) {\n\t\treturn this.sessionFactory.getCurrentSession()\n\t\t\t\t.createCriteria(PatientTelephone.class)\n\t\t\t\t.add(Restrictions.eq(\"patient\", \"patient\"))\n\t\t\t\t.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY)\n\t\t\t\t.list();\n\t\t\n\t}", "private List<Obs> getEncountersOfPatient(Patient patient, List<Obs> patientObsList, Integer pid){\n\t\tpatientObsList = getFinalObsList(patient, patientObsList, pid);\t\t\n\t\tList<Encounter> randomizedEncounterList = randomizeEncounterDates(patientObsList);\n\t\tList<Date> randomizedEncounterDateList= new ArrayList<Date>();\n\t\tfor(Encounter e : randomizedEncounterList){\n\t\t\trandomizedEncounterDateList.add(e.getEncounterDatetime());\n\t\t}\n\t\tfor(int i=0; i<randomizedEncounterDateList.size();i++){\n\t\t\tEncounter e = patientObsList.get(i).getEncounter();\n\t\t\te.setEncounterDatetime(randomizedEncounterDateList.get(i));\n\t\t\tpatientObsList.get(i).setEncounter(e);\n\t\t}\n\t\tfor(int i=0; i<patientObsList.size();i++){\n\t\t\tLocation loc = new Location();\n\t\t\tloc.setAddress1(accessLocationPropFile());\n\t\t\tpatientObsList.get(i).setLocation(loc);\n\t\t}\n\t\treturn patientObsList;\n\t}", "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 }", "public void addPatientPersonalfromLocal(@NonNull int patient_id, @NonNull String doctor_id, @NonNull String first_name, String middle_name, @NonNull String last_name, String sex, String strdate_of_birth, String current_age, String phone_number, String selectedLanguage, String patientImagePath, String create_date, String doctor_membership_number, String flag, String patientInfoType, String addedTime, String added_by, String action,\n String address, String city, String district, String pinno, String state, String phoneType, String alternatePhone_no, String selectedPhoneTypealternate_no, String uid, String uidType, String selectedIsd_codeType, String alternate_no_isdcode, String email, String mOccupation, String mReligion, String strFamilyHistory, String strHospitalizationSurgery, String boloodGroup, String maritalStatus, String incomeRange, int sendSmsFlag, int days_dob, int month_dob, int year_dob) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_PATIENT_ID, patient_id);\n values.put(DOCTOR_ID, doctor_id);\n values.put(FIRST_NAME, first_name); // Name\n values.put(MIDDLE_NAME, middle_name);\n values.put(LAST_NAME, last_name);\n values.put(GENDER, sex);\n\n values.put(DOB, strdate_of_birth);\n values.put(AGE, current_age);\n\n values.put(PHONE_NUMBER, phone_number);\n values.put(LANGUAGE, selectedLanguage);\n values.put(PHOTO, patientImagePath);\n\n values.put(ADDED_ON, create_date);\n\n values.put(DOCTOR_MEMBERSHIP_ID, doctor_membership_number);\n values.put(SYCHRONIZED, flag);\n values.put(PATIENT_INFO_TYPE_FORM, patientInfoType);\n values.put(ADDED_TIME, addedTime);\n values.put(ADDED_BY, added_by);\n values.put(ACTION, action);\n values.put(PATIENT_ADDRESS, address);\n values.put(PATIENT_CIT_CITY_TOWN, city);\n values.put(DISTRICT, district);\n values.put(PIN_CODE, pinno);\n values.put(PATIENT_STATE, state);\n values.put(PHONE_TYPE, phoneType);\n values.put(ALTERNATE_PHONE_NO, alternatePhone_no);\n values.put(ALTERNATE_PHONE_TYPE, selectedPhoneTypealternate_no);\n values.put(UID, uid);\n values.put(UIDTYPE, uidType);\n values.put(ISD_CODE, selectedIsd_codeType);\n values.put(ATERNATE_NO_ISD_CODE, alternate_no_isdcode);\n values.put(KEY_EMAIL, email);\n values.put(OCCUPATION, mOccupation);\n values.put(RELIGION, mReligion);\n values.put(FAMILY_HISTORT, strFamilyHistory);\n values.put(HOSPITALIZATION_SUREGERY, strHospitalizationSurgery);\n values.put(BLOOD_GROUP, boloodGroup);\n values.put(MARITIAL_STATUS, maritalStatus);\n values.put(INCOME_RANGE, incomeRange);\n values.put(CONSENT, sendSmsFlag);\n\n values.put(DAYS_DOB, days_dob);\n values.put(MONTH_DOB, month_dob);\n values.put(YEAR_DOB, year_dob);\n\n\n // Inserting Row\n // db.insert(TABLE_PATIENT, null, values);\n db.insertWithOnConflict(TABLE_PATIENT, null, values, SQLiteDatabase.CONFLICT_REPLACE);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public static void addPatientObservation( Patient patient, Observation obs, ObservationType ot, String observations ) {\n\t\tConnection conn = null;\n\t\tConnection conn2 = null;\n PreparedStatement ps = null;\n PreparedStatement ps2 = null;\n ResultSet rs = null;\n try {\n \t// Get a connection to the specified JDBC URL.\n \tdouble oid = -1;\n \t\tconn = JDBCConnection.getConnection();\n \t\tconn2 = JDBCConnection.getConnection();\n \t\tString query = \"INSERT INTO observations ( pid, type_id, date_observed, time_observed, date_recorded, time_recorded ) \";\n \t\tquery += \"VALUES ( ?, ?, ?, ?, ?, ? )\";\n // Create a Statement object for sending SQL statements to the database.\n \t\t// Statement: The object used for executing a static SQL statement and returning the results it produces.\n \t\tps = conn.prepareStatement(query, new String[] {\"oid\"} );\n \t\tps.setDouble( 1, patient.getPid() );\n \t\tps.setInt( 2, ot.getType_id());\n \t\tps.setDate( 3, obs.getDate_observed());\n \t\tps.setString( 4, obs.getHours() +\":\"+obs.getMinutes());\n \t\tps.setDate(5, obs.getDate_recorded());\n \t\tps.setString( 6, obs.getTime_recorded());\n \t\tps.executeUpdate();\n \t\trs = ps.getGeneratedKeys();\n \t\tif ( rs != null && rs.next() ) {\n \t\t\toid = rs.getDouble(1);\n \t\t\tString names[] = parseColumnNames( ot.getColumn_names_types() );\n \t\t\tString types[] = parseColumnTypes( ot.getColumn_names_types() );\n \t\t\tquery = \"INSERT INTO \"+ ot.getTable_name() +\" ( oid\";\n \t\t\tfor ( int i = 0; i < names.length; i++ ) {\n \t\t\t\tquery += \", \" + names[i];\n \t\t\t}\n \t\t\tquery += \" ) VALUES ( ?\";\n \t\t\tfor ( int i = 0; i < types.length; i++ ) {\n \t\t\t\tquery += \", ?\";\n \t\t\t}\n \t\t\tquery += \" )\";\n \t\t\tps2 = conn2.prepareStatement(query);\n \t\t\tps2.setDouble(1, oid);\n \t\t\tString observationColumn[] = parseColumnNames( observations );\n \t\t\tString observationValues[] = parseColumnTypes( observations );\n \t\t\tfor ( int i = 0; i < observationColumn.length; i++ ) {\n \t\t\t\tfor ( int j = 0; j < observationColumn.length; j++ ) {\n \t\t\t\t\tif ( names[i].equals(observationColumn[j])) {\n \t\t\t\t\t\tif ( types[i].equals(\"String\")) {\n \t\t\t\t\t\t\tps2.setString((i+2), observationValues[j]);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tps2.setInt((i+2), Integer.valueOf(observationValues[j]));\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\tps2.execute();\n \t\t}\n \t} catch(SQLException e) {\n \te.printStackTrace();\n } finally {\n\t\t\tJDBCConnection.closeConnection(conn, ps, rs);\n\t\t\tJDBCConnection.closeConnection(conn2, ps2, null);\n\t\t}\n\t}", "List<Patient> findPatients(Employee nurse_id);", "private void fillUpAnimalsTable() {\n\t\tfillUpAnimalsTable(Calendar.getInstance().getTime());\n\t}", "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 }", "@Transactional(value = \"cleia-txm\")\n public List<Patient> findPatientsByMedicalId(Long id) throws Exception {\n Medical medical = entityManager.find(Medical.class, id);\n \n if (medical == null) {\n throw new Exception(\"Error. El medico no existe\");\n }\n \n medical.getPatients().size();\n \n return medical.getPatients();\n }", "public void populateFilmListFromDatabase() throws SQLException {\r\n ArrayList<Film> films = this.film_database_controller.getFilms();\r\n\r\n for(Film current_film : films){\r\n this.addFilm(current_film);\r\n }\r\n }", "private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "Response addPatientInfo(String request) throws Exception {\n CassandraConnector client = new CassandraConnector();\n Session session = client.getSession();\n try {\n String idQuery=\"SELECT MAX(patientid) FROM BasicInfo\";\n ResultSet result=session.execute(idQuery);\n Row r=result.one();\n int lastID=r.getInt(\"system.max(patientid)\");\n PatientBasicInfo newRecord=new PatientBasicInfo(request,lastID+1);\n String query = \"INSERT INTO BasicInfo (id,patientid,address,createddate,dob,gender,lastvisited,\" +\n \"patientname,phonenumber,status,symptom,diagnosis,treatment) VALUES (\";\n query = query+newRecord.getPatientID()+\",\"+newRecord.getPatientID()+\",'\"+newRecord.getAddress()+\"','\"+\n newRecord.getCreatedDate()+\"','\"+newRecord.getDoB()+\"','\"+newRecord.getGender()+\"','\"+\n newRecord.getLastVisted()+\"','\"+newRecord.getPatientName()+\"',\"+newRecord.getPhoneNumber()\n +\",'\"+newRecord.getStatus()+\"','\"+newRecord.getSymptom()+\"','\"+newRecord.getDiagnosis()+\"','\"+newRecord.getTreatment()+\"')\";\n System.out.println(query);\n session.execute(query);\n result=session.execute(idQuery);\n r=result.one();\n int newlastID=r.getInt(\"system.max(patientid)\");\n System.out.println(newlastID);\n updateCache(\"New Record Added\");\n if(newlastID>lastID){\n client.close();\n return Response.status(200).entity(\"Patient Added! Patient ID is \"+newlastID).build();\n }\n client.close();\n return Response.status(405).entity(\"Unable to added New patient Record\").build();\n } catch(Exception e)\n {\n e.printStackTrace();\n client.close();\n return Response.status(405).entity(\"Unable to added New patient Record\").build();\n }\n }", "public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }", "public void addNewPatient(View v) {\n\tDataHandler dh;\n\ttry {\n\t dh = new DataHandler(this.getApplicationContext().getFilesDir(),\n\t\t DataHandler.PATIENT_DATA);\n\t vitalSigns\n\t\t .put(new Date(),\n\t\t\t new VitalSigns(\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.temperature_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.heartRate_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t new BloodPressure(\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_systolic_field))\n\t\t\t\t\t\t .getText().toString()),\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_diastolic_field))\n\t\t\t\t\t\t .getText().toString()))));\n\t Patient pat = new Patient(personalData, vitalSigns, symptoms,\n\t\t new Date(), new Prescription());\n\n\t dh.appendNewPatient(pat);\n\t try {\n\t\tdh.savePatientsToFile(this\n\t\t\t.getApplicationContext()\n\t\t\t.openFileOutput(DataHandler.PATIENT_DATA, MODE_PRIVATE));\n\t } catch (FileNotFoundException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t }\n\t} catch (NumberFormatException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\n\tIntent newIntent = new Intent(this, DisplayActivityNurse.class);\n\tstartActivity(newIntent);\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\r\n public ArrayList<Object> getRecords(String criteria) throws SQLException {\r\n\r\n ArrayList<Object> rows = new ArrayList<>();\r\n\r\n String sql = \"select * from patient\";\r\n\r\n //append any search criteria\r\n if (criteria != null) {\r\n sql += criteria;\r\n }\r\n \r\n logger.info(\"Search patient: \" + sql);\r\n \r\n try (PreparedStatement pStatement = connection.prepareStatement(sql);\r\n ResultSet resultSet = pStatement.executeQuery();) {\r\n while (resultSet.next()) {\r\n PatientBean pb = new PatientBean();\r\n pb.setPatientID(resultSet.getLong(\"PatientID\"));\r\n pb.setLastName(resultSet.getString(\"LastName\"));\r\n pb.setFirstName(resultSet.getString(\"FirstName\"));\r\n pb.setDiagnosis(resultSet.getString(\"Diagnosis\"));\r\n pb.setAdmissionDate(resultSet.getTimestamp(\"AdmissionDate\"));\r\n pb.setReleaseDate(resultSet.getTimestamp(\"ReleaseDate\"));\r\n\r\n ArrayList<Object> ib = inpatientDAOImpl.getRecords(\" where patientID = \" + pb.getPatientID());\r\n if (ib != null && ib.size() > 0) {\r\n pb.setIb(ib);\r\n }\r\n\r\n ArrayList<Object> sb = surgicalDAOImpl.getRecords(\" where patientID = \" + pb.getPatientID());\r\n if (sb != null && sb.size() > 0) {\r\n pb.setSb(sb);\r\n }\r\n\r\n ArrayList<Object> mb = medicationDAOImpl.getRecords(\" where patientID = \" + pb.getPatientID());\r\n if (mb != null && mb.size() > 0) {\r\n pb.setMb(mb);\r\n }\r\n\r\n rows.add(pb);\r\n }\r\n }\r\n\r\n logger.info(\"patient records have been saved to ArrayList, size: \" + rows.size());\r\n\r\n return rows;\r\n\r\n }", "public static boolean insertPatient(String id,String title,String forename,String surname, String bdate,String phone,String plan,String hn,String str,String dst,String city,String p){\r\n\t\tboolean planValid = false;\r\n\t\ttry{\r\n\t\t\t// this is how you connect\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\t// in here you create a statement to execute different queries \r\n\t\t\tif(plan.isEmpty()||plan == \"null\"){\r\n\t\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Address WHERE House_number= ? AND Postcode= ?;\");\r\n\t\t\t\tstmt.setString(1, hn);\r\n\t\t\t\tstmt.setString(2, p);\r\n\t\t\t\tdata = stmt.executeQuery();\r\n\t\t\t\tif(!data.isBeforeFirst()){\r\n\t\t\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Address VALUES(?,?,?,?,?);\");\r\n\t\t\t\t\tstmt.setString(1, hn);\r\n\t\t\t\t\tstmt.setString(2, str);\r\n\t\t\t\t\tstmt.setString(3, dst);\r\n\t\t\t\t\tstmt.setString(4, city);\r\n\t\t\t\t\tstmt.setString(5, p);\r\n\t\t\t\t\tstmt.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Patient VALUES(?,?,?,?,?,?,?,?,?);\");\r\n\t\t\t\t\tstmt.setString(1, id);\r\n\t\t\t\t\tstmt.setString(2, title);\r\n\t\t\t\t\tstmt.setString(3, forename);\r\n\t\t\t\t\tstmt.setString(4, surname);\r\n\t\t\t\t\tstmt.setString(5, bdate);\r\n\t\t\t\t\tstmt.setString(6, phone);\r\n\t\t\t\t\tstmt.setString(7, \"null\");\r\n\t\t\t\t\tstmt.setString(8, hn);\r\n\t\t\t\t\tstmt.setString(9, p);\r\n\t\t\t\t\tstmt.executeUpdate();\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Patient VALUES(?,?,?,?,?,?,?,?,?);\");\r\n\t\t\t\t\tstmt.setString(1, id);\r\n\t\t\t\t\tstmt.setString(2, title);\r\n\t\t\t\t\tstmt.setString(3, forename);\r\n\t\t\t\t\tstmt.setString(4, surname);\r\n\t\t\t\t\tstmt.setString(5, bdate);\r\n\t\t\t\t\tstmt.setString(6, phone);\r\n\t\t\t\t\tstmt.setString(7, \"null\");\r\n\t\t\t\t\tstmt.setString(8, hn);\r\n\t\t\t\t\tstmt.setString(9, p);\r\n\t\t\t\t\tstmt.executeUpdate();\r\n\t\t\t\t}\r\n\t\t\t\tplanValid = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tplanValid = true;\r\n\t\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Plan WHERE name=?;\");\r\n\t\t\t\tstmt.setString(1, plan);\r\n\t\t\t\tdata = stmt.executeQuery();\r\n\t\t\t\tif(!data.isBeforeFirst()){\r\n\t\t\t\t\tplanValid = false;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tstmt = connection.prepareStatement( \"SELECT * FROM Address WHERE House_number= ? AND Postcode= ? ;\");\r\n\t\t\t\t\tstmt.setString(1, String.valueOf(hn));\r\n\t\t\t\t\tstmt.setString(2, String.valueOf(p));\r\n\t\t\t\t\tdata = stmt.executeQuery();\r\n\t\t\t\t\tif(!data.isBeforeFirst()){\r\n\t\t\t\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Address VALUES(?,?,?,?,?);\");\r\n\t\t\t\t\t\tstmt.setString(1, hn);\r\n\t\t\t\t\t\tstmt.setString(2, str);\r\n\t\t\t\t\t\tstmt.setString(3, dst);\r\n\t\t\t\t\t\tstmt.setString(4, city);\r\n\t\t\t\t\t\tstmt.setString(5, p);\r\n\t\t\t\t\t\tstmt.executeUpdate();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Patient VALUES(?,?,?,?,?,?,?,?,?);\");\r\n\t\t\t\t\t\tstmt.setString(1, id);\r\n\t\t\t\t\t\tstmt.setString(2, title);\r\n\t\t\t\t\t\tstmt.setString(3, forename);\r\n\t\t\t\t\t\tstmt.setString(4, surname);\r\n\t\t\t\t\t\tstmt.setString(5, bdate);\r\n\t\t\t\t\t\tstmt.setString(6, phone);\r\n\t\t\t\t\t\tstmt.setString(7, plan);\r\n\t\t\t\t\t\tstmt.setString(8, hn);\r\n\t\t\t\t\t\tstmt.setString(9, p);\r\n\t\t\t\t\t\tstmt.executeUpdate();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Patient VALUES(?,?,?,?,?,?,?,?,?);\");\r\n\t\t\t\t\t\tstmt.setString(1, id);\r\n\t\t\t\t\t\tstmt.setString(2, title);\r\n\t\t\t\t\t\tstmt.setString(3, forename);\r\n\t\t\t\t\t\tstmt.setString(4, surname);\r\n\t\t\t\t\t\tstmt.setString(5, bdate);\r\n\t\t\t\t\t\tstmt.setString(6, phone);\r\n\t\t\t\t\t\tstmt.setString(7, plan);\r\n\t\t\t\t\t\tstmt.setString(8, hn);\r\n\t\t\t\t\t\tstmt.setString(9, p);\r\n\t\t\t\t\t\tstmt.executeUpdate();\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 (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn planValid;\r\n\t}", "public void populateCustomerTable() throws SQLException {\n\n try {\n\n PreparedStatement populateCustomerTableview = DBConnection.getConnection().prepareStatement(\"SELECT * from customers\");\n ResultSet resultSet = populateCustomerTableview.executeQuery();\n allCustomers.removeAll();\n\n while (resultSet.next()) {\n\n int customerID = resultSet.getInt(\"Customer_ID\");\n String name = resultSet.getString(\"Customer_Name\");\n String address = resultSet.getString(\"Address\");\n String postal = resultSet.getString(\"Postal_Code\");\n String phone = resultSet.getString(\"Phone\");\n String created = resultSet.getString(\"Create_Date\");\n String createdBy = resultSet.getString(\"Created_By\");\n String lastUpdate = resultSet.getString(\"Last_Update\");\n String updatedBy = resultSet.getString(\"Last_Updated_By\");\n String divisionID = resultSet.getString(\"Division_ID\");\n\n Customer newCustomer = new Customer(customerID, name, address, postal, phone, created, createdBy, lastUpdate,\n updatedBy, divisionID);\n\n allCustomers.add(newCustomer);\n }\n\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "public boolean addPaient(Patient patient) throws TooManyExceptions;", "@POST\n @Path(\"patients\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(\"application/json\")\n public Patient newPatient(Patient pat){\n serv.editPatient(pat);\n return pat;\n }", "public static Long updatePregnancy(Connection conn, Map queries, Pregnancy pregnancy, Long patientId, String uuid) throws ServletException, SQLException {\r\n \tLong pregnancyId;\r\n \tString sqlCreatePregnancy = (String) queries.get(\"SQL_UPDATE_PREGNANCY_IMPORT\");\r\n \tArrayList pregnancyValues = new ArrayList();\r\n \t// add patient_id to pregnancyValues\r\n \tpregnancyValues.add(patientId);\r\n \t// add date_visit to pregnancyValues\r\n \tpregnancyValues.add(pregnancy.getDatePregnancyBegin());\r\n \tpregnancyValues.add(pregnancy.getPregnancyBeginEncounterId());\r\n \tpregnancyValues.add(pregnancy.getDatePregnancyEnd());\r\n \tpregnancyValues.add(pregnancy.getPregnancyEndEncounterId());\r\n \tpregnancyValues.add(pregnancy.getDateLabourAdmission());\r\n \tpregnancyValues.add(pregnancy.getLabourAdmissionEncounterId());\r\n \t// last modified\r\n \tpregnancyValues.add(pregnancy.getLastModified());\r\n \t// created\r\n \tpregnancyValues.add(pregnancy.getCreated());\r\n \t// last_modified_by\r\n \tpregnancyValues.add(pregnancy.getLastModifiedBy());\r\n \t// created_by\r\n \tpregnancyValues.add(pregnancy.getCreatedBy());\r\n \t// site_id\r\n \tpregnancyValues.add(pregnancy.getSiteId());\r\n \t// import_pregnancy_id\r\n \tpregnancyValues.add(pregnancy.getImportPregnancyId());\r\n \t// adds uuid\r\n \tpregnancyValues.add(pregnancy.getUuid());\r\n \t// created_site_id\r\n \tpregnancyValues.add(pregnancy.getSiteId());\r\n \tpregnancyValues.add(pregnancy.getPregnancyBeginEncounterUuid());\r\n \tpregnancyValues.add(pregnancy.getPregnancyEndEncounterUuid());\r\n \tpregnancyValues.add(pregnancy.getLabourAdmissionEncounterUuid());\r\n \tpregnancyValues.add(pregnancy.getId());\r\n \tpregnancyId = (Long) DatabaseUtils.create(conn, sqlCreatePregnancy, pregnancyValues.toArray());\r\n \treturn pregnancyId;\r\n }", "public void fillPatientsTable()\r\n\t{\r\n\t\tdata = FXCollections.observableArrayList();\r\n\r\n\t\tResultSet patients = databaseHandler.execQuery(\"select adrID, patID, ID, name, gender, phoneNum, dateOfBirth from patients\");\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tTableColumn<ObservableList, String> pID = new TableColumn<>(\"pID\");\r\n\t\t\tpID.setMinWidth(30);\r\n\t\t\tpID.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(0).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> ID = new TableColumn<>(\"ID\");\r\n\t\t\tID.setMinWidth(90);\r\n\t\t\tID.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(1).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> name = new TableColumn<>(\"Name\");\r\n\t\t\tname.setMinWidth(120);\r\n\t\t\tname.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(2).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> gender = new TableColumn<>(\"Gender\");\r\n\t\t\tgender.setMinWidth(55);\r\n\t\t\tgender.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(3).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> sim = new TableColumn<>(\"Phone Number\");\r\n\t\t\tsim.setMinWidth(120);\r\n\t\t\tsim.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(4).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> dob = new TableColumn<>(\"Date of birth\");\r\n\t\t\tdob.setMinWidth(60);\r\n\t\t\tdob.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(5).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> city = new TableColumn<>(\"City\");\r\n\t\t\tcity.setMinWidth(110);\r\n\t\t\tcity.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(6).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> street = new TableColumn<>(\"Street\");\r\n\t\t\tstreet.setMinWidth(110);\r\n\t\t\tstreet.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(7).toString()));\r\n\r\n\t\t\tTableColumn<ObservableList, String> building = new TableColumn<>(\"Building\");\r\n\t\t\tbuilding.setMinWidth(102);\r\n\t\t\tbuilding.setCellValueFactory(param -> new SimpleStringProperty(param.getValue().get(7).toString()));\r\n\r\n\t\t\tpatientsTable.getColumns().addAll(ID, pID, name, gender, sim, dob, city, street, building);\r\n\r\n\t\t\twhile(patients.next())\r\n\t\t\t{\r\n\t\t\t\tObservableList<String> row = FXCollections.observableArrayList();\r\n\r\n\t\t\t\tfor(int i = 2; i <= patients.getMetaData().getColumnCount(); i++)\r\n\t\t\t\t\trow.add(patients.getString(i));\r\n\r\n\t\t\t\tResultSet address = databaseHandler.execQuery(\"select cID, street, building from addresses where adrID = \" + patients.getString(1));\r\n\t\t\t\taddress.first();\r\n\r\n\t\t\t\tResultSet cityName = databaseHandler.execQuery(\"select name from cities where cID = \" + address.getString(1));\r\n\t\t\t\tcityName.first();\r\n\r\n\t\t\t\trow.add(cityName.getString(1));\r\n\r\n\t\t\t\tfor(int i = 2; i <= address.getMetaData().getColumnCount(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\trow.add(address.getString(i));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdata.add(row);\r\n\t\t\t}\r\n\r\n\t\t\tpatientsTable.setItems(data);\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void loadData() {\r\n\t\t// Get Session\r\n\r\n\t\tSession ses = HibernateUtil.getSession();\r\n\r\n\t\tQuery query = ses.createQuery(\"FROM User\");\r\n\r\n\t\tList<User> list = null;\r\n\t\tSet<PhoneNumber> phone = null;\r\n\t\tlist = query.list();\r\n\t\tfor (User u : list) {\r\n\t\t\tSystem.out.println(\"Users are \" + u);\r\n\t\t\t// Getting phones for for a particular user Id\r\n\t\t\tphone = u.getPhone();\r\n\t\t\tfor (PhoneNumber ph : phone) {\r\n\t\t\t\tSystem.out.println(\"Phones \" + ph);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public List<PrsMain> listPatients() {\n Log.info(LifeCARDAdmin.class.getName() + \":listPatients()\");\n\n List<PrsMain> list;\n String sql = \"SELECT p.* FROM prs_main p where p.prsid IN (SELECT l.prsid FROM lc_main l where l.prsid>0 and l.prsid is not null)\";\n Query query = em.createNativeQuery(sql, PrsMain.class);\n try {\n list = query.getResultList();\n } catch (PersistenceException pe) {\n Log.warning(LifeCARDAdmin.class.getName() + \":listPatients():\" + pe.getMessage());\n return null;\n }\n return list;\n }", "@Override\n public List<PatientCaseDto> getAllByPatient(Long patientId) {\n return null;\n }", "public void getPatientFromDatabase(String nhi) throws SQLException \n {\n DefaultTableModel model = new DefaultTableModel();\n DatabaseConnection dbc = new DatabaseConnection();\n //static final String tableName = \"ADMIN1.PATIENTS\"; \n \n try \n {\n PreparedStatement prepstmt = dbc.getConnectionPatients().prepareStatement(\"SELECT * FROM PATIENTS WHERE NHI = \" + \"\\'\" +nhi.toLowerCase()+ \"\\'\");\n ResultSet rs = prepstmt.executeQuery();\n\n\n while (rs.next()) \n {\n model.addRow(new Object[]{rs.getString(3), rs.getString(1), rs.getString(2), rs.getInt(11), rs.getInt(4),\n rs.getString(5), rs.getString(6), rs.getString(7), rs.getString(8), rs.getString(9), rs.getString(10)});\n }\n } \n catch (SQLException e) \n {\n e.printStackTrace();\n }\n }", "public ArrayList<Patient> getPatients() {\n return this.patients;\n }", "private void saveAT() \n {\n // get DatabaseConnector to interact with the SQLite database\n\t AnimalDatabase db = new AnimalDatabase(this);\n\t AnimalList al = new AnimalList (db);\n\t \n // insert the contact information into the database\n al.Update(id, amount, comments);\n\n }", "@Override\r\n\tpublic void patientDisease() {\n\t\t\r\n\t\tSystem.out.println(\"Here I have attached the patients information\");\r\n\t\t\r\n\t}", "@RequestMapping(method = RequestMethod.GET, path = \"/patients\")\n @Secured({\"ROLE_DOCTOR\"})\n @ResponseStatus(HttpStatus.OK)\n public List<User> fetchAllPatients(Principal principal) {\n log.info(\"Fetching all patients using user with Id [{}]\", principal.getName());\n return userService.fetchAllPatients(\"ROLE_PATIENT\");\n }", "@Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);", "public void addHistoryPatientRecords(int visit_id, int patient_id, String usersellectedDate, String daysSel, String fowSel, String monthSel, String prescriptionImgPath, String clinical_note, String added_on_date, String visit_date, String doc_id, String doc_mem_id, String flag, String addedTime, String patientInfoType, String added_by, String action,\n String weight, String pulse, String bphigh, String bplow, String temparature, String symptoms, String dignosis, String strHeight, String bmi, String referedBy, String referedto, String rec_source, String strSpo2, String strRespirationRate, String obesity) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_VISIT_ID, visit_id);\n values.put(KEY_PATIENT_ID, patient_id);\n values.put(ACTUAL_FOLLOW_UP_DATE, usersellectedDate);\n\n values.put(DAYS, daysSel);\n values.put(WEEKS, fowSel);\n\n values.put(MONTHS, monthSel);\n values.put(PRESCRIPTION, prescriptionImgPath);\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(ADDED_ON, added_on_date);\n values.put(VISIT_DATE, visit_date);\n values.put(DOCTOR_ID, doc_id);\n values.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n values.put(SYCHRONIZED, flag);\n values.put(ADDED_TIME, addedTime);\n values.put(PATIENT_INFO_TYPE_FORM, patientInfoType);\n values.put(ACTION, action);\n values.put(ADDED_BY, added_by);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bphigh);\n values.put(BP_LOW, bplow);\n values.put(TEMP, temparature);\n\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n\n values.put(HEIGHT, strHeight);\n values.put(BMI, bmi);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedto);\n values.put(RECORD_SOURCE, rec_source);\n values.put(SPO2, strSpo2);\n values.put(RESPIRATION, strRespirationRate);\n values.put(OBESITY, obesity);\n\n db.insert(TABLE_PATIENT_HISTORY, null, values);\n\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public List<String> getPatientOtherDetails(int id){\n List<String> patientList = new ArrayList<String>();\n try{\n DbConnection connection = new DbConnection();\n ResultSet data = connection.getData(\"SELECT * FROM patient WHERE patient.num='\"+id+\"'\");\n System.out.println(connection);\n while(data.next()){\n patientList.add(\"<div class=\\\"divtext\\\"> DIAGNOSIS : \"+data.getString(8)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> P:CO : \"+data.getString(9)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> HX:P:CO : \" +data.getString(10)+ \"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> PMHX : \" +data.getString(11)+ \"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> PSHX : \"+data.getString(12)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> AIHX : \"+data.getString(13)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> DRUGHX : \"+data.getString(14)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> IMMUNIZATIONHX : \"+data.getString(15)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> SOCIALHX : \"+data.getString(16)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> FAMILYHX : \"+data.getString(17)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> EXAMINATION : \"+data.getString(18)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> SYSTEM : \"+data.getString(19)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> IX : \"+data.getString(20)+\"</div><div class=\\\"divtext\\\">________________________________________________________</div><div class=\\\"divtext\\\"> MX : \"+data.getString(21)+\"</div>\");\n \n } \n } catch(ClassNotFoundException | SQLException e){\n e.printStackTrace();\n }\n return patientList;\n}", "private void storePatient(final Patient patient) {\n\n\t\ttry {\n\t\t\tpatients.put(patient.getIdentifierFirstRep().getValue(), patient);\n\t\t\t// if storing is successful the notify the listeners that listens on\n\t\t\t// any patient => patient/*\n\n\t\t\tfinal String bundleToString = currentPatientsAsJsonString();\n\n\t\t\tbroadcaster\n\t\t\t\t\t.broadcast(new OutboundEvent.Builder().name(\"patients\").data(String.class, bundleToString).build());\n\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void addHistoryPatientRecords(int visit_id, int patient_id, String usersellectedDate, String follow_up_dates, String daysSel, String fowSel, String monthSel, String prescriptionImgPath, String clinical_note, String added_on_date, String visit_date, String doc_id, String doc_mem_id, String flag, String addedTime, String patientInfoType, String added_by, String action,\n String weight, String pulse, String bphigh, String bplow, String temparature, String sugar, String symptoms, String dignosis, String tests, String drugs, String strHeight, String bmi, String strSugarFasting, String referedBy, String referedto, String rec_source) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_VISIT_ID, visit_id);\n values.put(KEY_PATIENT_ID, patient_id);\n values.put(ACTUAL_FOLLOW_UP_DATE, usersellectedDate);\n values.put(FOLLOW_UP_DATE, follow_up_dates);\n values.put(DAYS, daysSel);\n values.put(WEEKS, fowSel);\n\n values.put(MONTHS, monthSel);\n values.put(PRESCRIPTION, prescriptionImgPath);\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(ADDED_ON, added_on_date);\n values.put(VISIT_DATE, visit_date);\n values.put(DOCTOR_ID, doc_id);\n values.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n values.put(SYCHRONIZED, flag);\n values.put(ADDED_TIME, addedTime);\n values.put(PATIENT_INFO_TYPE_FORM, patientInfoType);\n values.put(ACTION, action);\n values.put(ADDED_BY, added_by);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bphigh);\n values.put(BP_LOW, bplow);\n values.put(TEMP, temparature);\n values.put(SUGAR, sugar);\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n values.put(TESTS, tests);\n values.put(DRUGS, drugs);\n values.put(HEIGHT, strHeight);\n values.put(BMI, bmi);\n values.put(SUGAR_FASTING, strSugarFasting);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedto);\n values.put(RECORD_SOURCE, rec_source);\n\n\n db.insert(TABLE_PATIENT_HISTORY, null, values);\n // Log.e(\"id\",\" \"+id);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "public String patientsOn10A(){\n String sql = \"SELECT a.patient_id \" +\n \" FROM orders a \" +\n \" JOIN drug_order b ON(a.order_id=b.order_id) \" +\n \" JOIN drug c ON(b.drug_inventory_id=c.drug_id) \" +\n \" JOIN cpad_regimen_drug d ON(c.drug_id=d.drug_id) \" +\n \" JOIN cpad_regimen e ON(d.regimen_id=e.regimen_id) \" +\n \" WHERE (e.name='10A=AZT(300)+DDL(125)+IDV/r (400/100)')\"+\n \" and a.date_created between (:startDate) and (:endDate) \";\n\n return sql;\n }", "@Override\n @Transactional\n public List<ReportView> getForAllPatients(UUID therapistId) {\n List<User> patients = userRepository.findAllByTherapistId(therapistId);\n List<ReportView> reports = new ArrayList<>(patients.size());\n\n patients.forEach(patient -> reports.add(getHistoryForPatientId(patient.getId())));\n return reports;\n }", "public void addPatientForLocalUser(final String patientTz, final Context context){\n db.collection(Constants.PATIENTS_COLLECTION_FIELD).whereEqualTo(Constants.TZ_FIELD, patientTz).get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n boolean patientExists = false;\n for (QueryDocumentSnapshot myDoc : task.getResult()) {\n patientExists = true;\n final Patient patient = myDoc.toObject(Patient.class);\n // return if user already treats/follows this patient\n if (localUser.getPatientIds().contains(patient.getId())){\n Toast.makeText(context, context.getString(R.string.already_following_patient_message), Toast.LENGTH_LONG).show();\n return;\n }\n // add as caregiver iff user is patient's caregiver\n if (patient.hasCaregiverWithId(localUser.getId()) && !localUser.getPatientIds().contains(patient.getId())){\n Toast.makeText(context, context.getString(R.string.added_patient_as_caregiver_message), Toast.LENGTH_LONG).show();\n localUser.addPatientId(patient.getId());\n updateUserInDatabase(localUser);\n }\n // add as friend iff user is patient's friend\n if (patient.hasFriendWithId(localUser.getId()) && !localUser.getPatientIds().contains(patient.getId())){\n Toast.makeText(context, context.getString(R.string.added_patient_as_friend_message), Toast.LENGTH_LONG).show();\n localUser.addPatientId(patient.getId());\n updateUserInDatabase(localUser);\n }\n // display error message if user isn't treating/following this patient\n else {\n String message = context.getString(R.string.friend_unable_to_add_patient_message);\n if (localUser.isCareGiver()){\n message = context.getString(R.string.caregiver_unable_to_add_patient_message);\n }\n Toast.makeText(context, message, Toast.LENGTH_LONG).show();\n }\n }\n if (!patientExists){\n // caregivers can create new patients\n if (localUser.isCareGiver()){\n ((PatientsListActivity)context).openActivityAddPatient(patientTz);\n }\n }\n }\n }\n });\n }" ]
[ "0.66046846", "0.66032916", "0.65875924", "0.653469", "0.65063906", "0.63689315", "0.625237", "0.6216556", "0.6139798", "0.6128931", "0.6112417", "0.6083567", "0.60384", "0.6028058", "0.6014432", "0.59774363", "0.5926901", "0.58940727", "0.58822703", "0.58417845", "0.58352643", "0.5825537", "0.5825531", "0.5814448", "0.5808802", "0.5791671", "0.5788078", "0.57551825", "0.57214874", "0.57177645", "0.5716152", "0.5705095", "0.5700117", "0.5691536", "0.5649922", "0.5640713", "0.5638203", "0.5635669", "0.56291866", "0.56209224", "0.5619372", "0.5611135", "0.560579", "0.55967873", "0.5596123", "0.5593734", "0.5585981", "0.55843407", "0.5564633", "0.556059", "0.55570596", "0.55274", "0.5512414", "0.5511514", "0.55080825", "0.55039674", "0.54979086", "0.5453907", "0.5453445", "0.54527056", "0.5447684", "0.54207987", "0.54145586", "0.5409559", "0.54001784", "0.5389614", "0.53861934", "0.5383433", "0.53783756", "0.53776205", "0.53773123", "0.53630346", "0.5360067", "0.53531677", "0.5345075", "0.534482", "0.5341798", "0.5338153", "0.5332201", "0.53229016", "0.5320878", "0.53116786", "0.5311325", "0.53017807", "0.5294184", "0.52840173", "0.5281635", "0.52480537", "0.5246595", "0.5244451", "0.5237556", "0.5237271", "0.5236624", "0.5235376", "0.5229552", "0.52290285", "0.52182335", "0.5217016", "0.52159584", "0.52101815" ]
0.68092716
0
Create a child stage for current window
private Stage getChildStage(Stage parent) { Stage child = new Stage(); child.initOwner(parent); child.initModality(Modality.WINDOW_MODAL); return child; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createStage(Stage stage){\n\t\tstage.setHeight(background.getHeight()+25);//displays full image (1)\r\n\t\tstage.setWidth(background.getWidth());\r\n\t\tshowBackground.setFitWidth(stage.getWidth());\r\n\t\tshowBackground.setFitHeight(stage.getHeight()-23);//displays full image (1)\r\n\t\r\n\t\tstage.setAlwaysOnTop(true);\r\n\t\tstage.setResizable(false);\r\n\t\t\r\n\t\t//launches first window in center of screen. \r\n\t\tstage.centerOnScreen();\r\n\t\tstage.setScene(mainScene);\r\n\t\tstage.setTitle(\"Don't Play Games in Class\");\r\n\t\t//supposed to prevent window from being moved\r\n\t\t\r\n\t\t//removes minimize, maximize and close buttons\r\n\t\t//unused because replacing the \r\n\t\t//stage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\t//removes minimize and maximize button\r\n\t\tstage.initStyle(StageStyle.UTILITY);\r\n\t\t\r\n\t\t//replaces the closed window in the center of the screen.\r\n\t\tRespawn launch = new Respawn();\r\n\t\tstage.setOnCloseRequest(launch);\r\n\t}", "private void setStage() {\n\t\tstage = new Stage();\n\t\tstage.setScene(myScene);\n\t\tstage.setTitle(title);\n\t\tstage.show();\n\t\tstage.setResizable(false);\n//\t\tstage.setOnCloseRequest(e -> {\n//\t\t\te.consume();\n//\t\t});\n\t}", "public void openNewWindow(boolean setResizable, String stageName, String fxmlName) throws IOException {\r\n Stage stage = new Stage();\r\n // create a new window using FirstLaw gui\r\n try {\r\n Parent root = FXMLLoader.load(getClass().getResource(fxmlName));\r\n Scene scene = new Scene(root);\r\n stage.setScene(scene);\r\n // temp fixed min size of the stage\r\n stage.setMinWidth((1276 * 500)/ 716);\r\n stage.setMinHeight(500);\r\n //stage.setMaximized(true);\r\n stage.setResizable(setResizable);\r\n stage.initModality(Modality.APPLICATION_MODAL); // prevent from using the main windows\r\n stage.setTitle(stageName);\r\n stage.show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "private void showCreateNewPlayer(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/CreateNewPlayer.fxml\"));\n AnchorPane janela = (AnchorPane) loader.load();\n \n Stage createNewPlayerStage = new Stage();\n createNewPlayerStage.setTitle(\"Create new player\");\n createNewPlayerStage.initModality(Modality.WINDOW_MODAL);\n createNewPlayerStage.initOwner(primaryStage);\n Scene scene = new Scene(janela);\n createNewPlayerStage.setScene(scene);\n \n CreateNewPlayerController controller = loader.getController();\n controller.setGame(this);\n controller.setCreateNewPlayerStage(createNewPlayerStage); \n \n createNewPlayerStage.showAndWait();\n }catch(IOException e){\n }\n }", "public void openGamePane() {\n\t\tParent root;\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(GAMEPANELOCATION));\n\t\t\tloader.setController(this);\n\t\t\troot = loader.load();\n\t\t\tScene scene = new Scene(root);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tgamePane.setBackground(new Background(new BackgroundFill(new Color(195/256.0,222/256.0,250/256.0,1),CornerRadii.EMPTY, Insets.EMPTY)));\n\t\tgameObjects=new HashMap<Integer,GameObjectVisualComponent>();\n\t\tpodium=new ArrayList<Text>();\n\t\tpodium.add(new Text(gamePane.getWidth()-100,15,\"TOP\"));\n\t\tgamePane.getChildren().add(podium.get(0));\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n Rectangle2D screenBounds = Screen.getPrimary().getBounds();\n SCREEN_WIDTH = screenBounds.getWidth();\n SCREEN_HEIGHT = screenBounds.getHeight();\n // Obtain the scales\n SCREEN_WIDTH_SCALE = SCREEN_WIDTH / DEFAULT_SCREEN_WIDTH;\n SCREEN_HEIGHT_SCALE = SCREEN_HEIGHT / DEFAULT_SCREEN_HEIGHT;\n COMBINED_SCALE = (SCREEN_WIDTH_SCALE + SCREEN_HEIGHT_SCALE) / 2;\n\n // Create the stage which has set stage style transparent\n final Stage stage = new Stage(StageStyle.TRANSPARENT);\n // Create the root node of scene\n Group rootGroup = new Group();\n\n // Create scene with the width, height and color\n Scene scene = new Scene(rootGroup, SCREEN_WIDTH, SCREEN_HEIGHT, Color.TRANSPARENT);\n scene.setCursor(Cursor.NONE);\n stage.setScene(scene);\n stage.centerOnScreen();\n stage.setFullScreen(true);\n stage.show();\n\n // Press F/f to toggle full screen\n // Press Q/q to terminate the application\n rootGroup.setOnKeyPressed(keyEvent -> {\n if (keyEvent.getCode() != null) {\n switch (keyEvent.getCode()) {\n case F:\n stage.setFullScreen(!stage.isFullScreen());\n break;\n case Q:\n Platform.exit();\n System.exit(0);\n default:\n break;\n }\n }\n });\n\n // Create the background with desired size\n Rectangle dragger = new Rectangle(SCREEN_WIDTH, SCREEN_HEIGHT);\n dragger.setFill(Color.BLACK);\n // Create the UI and everything\n Building building = new Building(\n BuildingConfig.newConfig(BuildingConfig.SCENARIO_RESIDENCE_I));\n\n // Add all nodes to main root group\n rootGroup.getChildren().addAll(dragger, building);\n rootGroup.requestFocus();\n }", "@Override\r\n public void start(Stage primaryStage) throws Exception{\n primaryStage.setTitle(\"Color switch\");\r\n Gameplay obj1 = new Gameplay();\r\n obj1.mainmenu(primaryStage);\r\n// pane.getChildren().add(new Polygon(10,20,30,10,20,30));\r\n\r\n }", "public void createMainStage(){\n mainStage = new Stage();\n BorderPane mainPageBp = new BorderPane();\n \n String headerTextMain = \"Main menu\";\n setBorderPaneTop(mainPageBp, headerTextMain, mainStage);\n setBorderPaneCenterMain(mainPageBp);\n setBorderPaneBottomMain(mainPageBp);\n \n Scene sceneMain = new Scene(mainPageBp,Constants.SCENEWIDTH, Constants.SCENEHEIGHT);\n sceneMain.getStylesheets().add(\"/styles/aitBank.css\");// add connection to stylesheet per scene\n mainStage.setTitle(bankName);\n mainStage.setScene(sceneMain);\n }", "public void launchProcWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbProcRoot = new ProcController(this);\n\t\t\tScene scene = new Scene(dbProcRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t} catch(IOException e ) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "@Override\n\tpublic void start( Stage stage ) throws Exception {\n\t\tpstage= stage;\n\t\tif( _SysConfig.maxWindowOnStart() ){\n\t\t\tstage.setMaximized( true );\n\t\t}else{\n\t\t\tstage.setWidth( currentBoard.getDim().getX() );\n\t\t\tstage.setHeight( currentBoard.getDim().getY() );\n\t\t}\n\t\t//\n\t\tstage.setScene( currentBoard.refreshRoot() );\n\t\tswitchWallPaperMode();\n\t\tstage.show();\n\t\tcurrentBoard.setWindowSizeChange();\n\t\t//\n\t\tstage.getIcons().add( new Image( \"file:\" + _SysConfig.getSysFolderName() +\n\t\t\t\tFile.separatorChar + \"icon.png\" ) );\n\t\tstage.setOnCloseRequest( new EventHandler <WindowEvent>() {\n\t\t\tpublic void handle( WindowEvent we ) {\n\t\t\t\tp.p( \"System closing\" );\n\t\t\t\tcloseApp();\n\t\t\t\tSystem.exit( 0 );\n\t\t\t}\n\t\t} );\n\t\t//\n\t\tstage.widthProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tcurrentBoard.setWindowSizeChange();\n\t\t} );\n\t\tstage.heightProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tcurrentBoard.setWindowSizeChange();\n\t\t} );\n\t\tstage.xProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tif( wallpaperMode )\n\t\t\t\tstage.setX( 0.0 );\n\t\t} );\n\t\tstage.yProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tif( wallpaperMode )\n\t\t\t\tstage.setY( 0.0 );\n\t\t} );\n\t\tstage.setFullScreenExitHint( \"\" );\n\t}", "void createScene(){\n\t\tmainScene = new Scene(mainPane);\r\n\t\t\r\n\t\t//If keyEvent is not focussed on a node on the scene, you can attach\r\n\t\t//a keyEvent to a scene to be consumed by the screen itself.\r\n\t\tCloser closer = new Closer();\r\n\t\tmainScene.setOnKeyPressed(closer);\r\n\t}", "public void start() {\n BorderPane borderPane = new BorderPane();\n VBox centerPane = new VBox();\n\n borderPane.setTop(lobbyMenu());\n\n String TITLE = \"Connect 4\";\n Text title = new Text(TITLE);\n title.setFont(Font.font(\"Arial\", FontWeight.BOLD, 30));\n centerPane.getChildren().add(title);\n centerPane.getChildren().add(lobbyButtons());\n centerPane.setAlignment(Pos.CENTER);\n\n borderPane.setCenter(centerPane);\n\n Scene scene = new Scene(borderPane, 520, 360);\n\n stage.setTitle(TITLE);\n stage.setScene(scene);\n }", "public void createChequeStage(){\n chequeStage = new Stage();\n BorderPane chequePageBp = new BorderPane();\n \n String headerTextMain = \"Cheque Account\";\n setBorderPaneTop(chequePageBp, headerTextMain, chequeStage);\n setBorderPaneCenterCheque(chequePageBp);\n setBorderPaneBottomCheque(chequePageBp, chequeStage);\n \n Scene sceneCheque = new Scene(chequePageBp,Constants.SCENEWIDTH, Constants.SCENEHEIGHT);\n sceneCheque.getStylesheets().add(\"/styles/aitBank.css\");// add connection to stylesheet per scene\n chequeStage.setTitle(bankName);\n chequeStage.setScene(sceneCheque);\n }", "@Override\r\n\tpublic void start(Stage stage) throws Exception {\r\n\t\t\r\n\t\tthis.stage = stage;\r\n\t\t\r\n\t\tstage.setTitle(windowName);\r\n\r\n\t\tPlatform.setImplicitExit(false);\r\n\r\n\t\tFXMLLoader loader = new FXMLLoader();\r\n\r\n\t\tloader.setClassLoader(this.getClass().getClassLoader());\r\n\t\t\r\n\t\tParent box = loader.load(new ByteArrayInputStream(fxml.getBytes()));\r\n\t\t\r\n\t\tcontroller = loader.getController();\r\n\t\t\r\n\t\tcontroller.setGUI(this);\r\n\r\n\t\tscene = new Scene(box);\r\n\t\t\r\n\t\tscene.setFill(Color.TRANSPARENT);\r\n\r\n\t\tif (this.customTitleBar)\r\n\t\t\tstage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\tif (this.css != null)\r\n\t\t\tscene.getStylesheets().add(this.css.toExternalForm());\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\tstage.setResizable(false);\r\n\r\n\t\tstage.setOnCloseRequest(new EventHandler<WindowEvent>() {\r\n\r\n\t @Override\r\n\t public void handle(WindowEvent event) {\r\n\t Platform.runLater(new Runnable() {\r\n\r\n\t @Override\r\n\t public void run() {\r\n\t endScript();\r\n\t }\r\n\t });\r\n\t }\r\n\t });\r\n\t\t\r\n\t}", "public void createWindow() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"adminEditorWindow.fxml\"));\n AnchorPane root = (AnchorPane) loader.load();\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setScene(scene);\n stage.setTitle(\"Administrative Password Editor\");\n stage.getIcons().add(new Image(\"resources/usm seal icon.png\"));\n stage.show();\n\t}", "private void createScene() {\r\n imageView.setFitWidth(400);\r\n imageView.setFitHeight(300);\r\n\r\n Scene scene = new Scene(rootScene(), 700, 600);\r\n\r\n primaryStage.setTitle(TITLE);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }", "private void createScene() \n {\n PlatformImpl.startup(\n new Runnable() {\n public void run() { \n Group root = new Group(); \n Scene scene = new Scene(root, 80, 20); \n SizeView sizeview = createSizeView(scene);\n root.getChildren().add(sizeview);\n jfxPanel.setScene(scene); \n } \n }); \n }", "private void initStage() {\n stage = new Stage();\n stage.setTitle(\"Attentions\");\n stage.setScene(new Scene(root));\n stage.sizeToScene();\n }", "public void rename_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,false);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}", "public Scene Window(){\n Area.setPrefHeight(177);\n Area.setPrefWidth(650);\n Area.setOpacity(0.5);\n Area.setEditable(false);\n Area.setText(\"\\n\\nThe application is used for PV(photovoltaics) sizing to power a RO(Reverse osmosis) desalination unit\" +\n \"\\nThe system depends on batteries to store energy.\" +\n \"\\n\\nTo use this application without problems, you must have the following information\\n\" +\n \"\\t*The location of the desalination unit;\\n\" +\n \"\\t*Amount of power required to operate the unit in kilowatts;\\n\" +\n \"\\t*Time of operating for RO;\\n\" +\n \"\\t*Detailed specification information of the pv modules;\\n\" +\n \"\\t*The number of people the Ro unit will provide water for,and the average water consumption for regular person\");\n\n boxPane.setPrefHeight(44);\n boxPane.setPrefWidth(650);\n\n //Go user map selection interface\n nextWindow.setPrefHeight(30);\n nextWindow.setPrefWidth(300);\n nextWindow.setMnemonicParsing(false);\n nextWindow.setText(\"NEXT\");\n\n\n //HBox.setMargin(nextWindow, new Insets(5,0,5,0));\n // boxPane.getChildren().addAll(nextWindow);\n boxPane.setAlignment(Pos.CENTER);\n\n //Load text area and button to the container\n rootPane.setCenter(Area);\n rootPane.setBottom(boxPane);\n\n scene = new Scene(rootPane,640,300);\n return scene;\n }", "@Override // Override the start method in the Application class\r\n /**\r\n * Start method for layout building\r\n */\r\n public void start(Stage primaryStage)\r\n {\n Scene scene = new Scene(pane, 370, 200);\r\n primaryStage.setTitle(\"Sales Conversion\"); // Set the stage title\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.show(); // Display the stage\r\n }", "public void startWindow() {\r\n \r\n \tfirstBorderWindow = new BorderPane();\r\n \tScene scene = new Scene(firstBorderWindow,600,600);\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\t//MenuBar\r\n\t\tMenuBar mb = new MenuBar();\r\n\t\tMenu topMenu = new Menu(\"Impostazioni\");\r\n\t\t\r\n\t\tMenuItem regole = new MenuItem(\"Regole\");\r\n\t\tMenuItem esci = new MenuItem(\"Esci\");\r\n\t\ttopMenu.getItems().addAll(esci, regole);\r\n\t\tmb.getMenus().add(topMenu);\r\n\t\t\r\n\t\tEventHandler<ActionEvent> MEHandler = new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tString nome = ((MenuItem)event.getTarget()).getText();\r\n\t\t\t\tif (nome.equals(\"Esci\")) Platform.exit();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tesci.setOnAction(MEHandler);\r\n\t\t\r\n\t\tfirstBorderWindow.setTop(mb);\r\n\t\t// Show the scene\r\n\t\tstage.show();\r\n }", "@Override\r\n public void start(Stage stage){\n Text msg = new Text(\"Hola JavaFX\");\r\n \r\n //toplevel node\r\n VBox root = new VBox();\r\n \r\n //add the child node to VBox root node\r\n root.getChildren().add(msg);\r\n \r\n //Create a scene\r\n Scene scene = new Scene(root, 300, 50);\r\n \r\n //set the scene to the stage\r\n stage.setScene(scene);\r\n \r\n //set a title for the stage\r\n stage.setTitle(\"Hola Aplicación JavaFX\");\r\n \r\n //show the stage\r\n stage.show();\r\n }", "@Override\n public void show() {\n stage = new Stage(new FitViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT), batch);\n Gdx.input.setInputProcessor(stage);\n\n background = game.getAssetManager().get(\"startscreen.png\");\n bgViewPort = new StretchViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT);\n\n fonts = new Fonts();\n fonts.createSmallestFont();\n fonts.createSmallFont();\n fonts.createMediumFont();\n fonts.createLargeFont();\n fonts.createTitleFont();\n\n createButtons();\n }", "public void start(Stage stage) {\n Layout layout = new Layout();\n Scene scene = new Scene(layout, 400, 400); \n stage.setScene(scene);\n layout.bindToScene(scene);\n new AppController(layout);\n stage.show();\n showInstructions();\n }", "public GameWindow(){\n setSize(1012,785);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n setLayout(null);\n\n JLabel sun = new JLabel(\"SUN\");\n sun.setLocation(37,80);\n sun.setSize(60,20);\n\n GamePanel gp = new GamePanel(sun);\n gp.setLocation(0,0);\n getLayeredPane().add(gp,new Integer(0));\n \n PlantCard sunflower = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_sunflower.png\")).getImage());\n sunflower.setLocation(110,8);\n sunflower.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Sunflower;\n });\n getLayeredPane().add(sunflower,new Integer(3));\n\n PlantCard peashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_peashooter.png\")).getImage());\n peashooter.setLocation(175,8);\n peashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Peashooter;\n });\n getLayeredPane().add(peashooter,new Integer(3));\n\n PlantCard freezepeashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_freezepeashooter.png\")).getImage());\n freezepeashooter.setLocation(240,8);\n freezepeashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.FreezePeashooter;\n });\n getLayeredPane().add(freezepeashooter,new Integer(3));\n\n\n\n getLayeredPane().add(sun,new Integer(2));\n setResizable(false);\n setVisible(true);\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"MainForm.fxml\"));\n primaryStage.setTitle(\"Inventory Management System\");\n primaryStage.setMinHeight(500);\n primaryStage.setMinWidth(800);\n primaryStage.setScene(new Scene(root, 1280, 720));\n primaryStage.show();\n\n\n }", "@Override\n public void start(Stage primaryStage) {\n\n // Creates the scene and displays it to the main window\n Scene withDrawPaneSetup = new Scene(withDrawPaneSetup(primaryStage), 1024, 768);\n primaryStage.setScene(withDrawPaneSetup);\n }", "public void newGame() throws IOException {\n label.getScene().getWindow().hide();\n\n Stage newStage = new Stage();\n Parent root = FXMLLoader.load(getClass().getResource(\"playerName.fxml\"));\n newStage.setTitle(\"Enter Players\");\n newStage.setScene(new Scene(root));\n newStage.show();\n }", "@Override\n public void start(Stage stage) throws Exception{\n BorderPane border = new BorderPane();\n\n// HBox hbox = addHBox();\n// border.setTop(hbox);\n border.setLeft(addVBox());\n\n// hbox.setStyle(\"\");\n// addStackPane(hbox);\n border.setCenter(addAnchorPane(addGridPane()));\n\n Scene scene = new Scene(border);\n stage.setScene(scene);\n stage.setTitle(\"Wally Save\");\n stage.show();\n }", "@Override\n public void start(Stage primaryStage) {\n\n pStage = primaryStage;\n\n try {\n\n\n Parent root = FXMLLoader.load(getClass().getResource(\"/GUI.fxml\"));\n\n Scene scene = new Scene(root, 600, 400);\n\n primaryStage.setTitle(\"Shopper 5000 Ultimate\");\n\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.show();\n\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start (Stage stage) throws IOException {\n init.start(stage);\n myScene = view.makeScene(50,50);\n stage.setScene(myScene);\n stage.show();\n }", "@Override\r\n public void start(Stage primaryStage) {\n VFlow flow = FlowFactory.newFlow();\r\n\r\n // make it visible\r\n flow.setVisible(true);\r\n\r\n // create two nodes:\r\n // one leaf node and one subflow which is returned by createNodes\r\n createFlow(flow, 3, 6);\r\n\r\n // show the main stage/window\r\n showFlow(flow, primaryStage, \"VWorkflows Tutorial 05: View 1\");\r\n }", "@Override\n public void start( Stage window ) throws Exception\n {\n FXMLLoader loader = new FXMLLoader( Scrabble.class.getResource( \"/openingWindow.fxml\" ) );\n // Creating an instance of the controller of openingWindow.fxml to pass the object references\n OpeningWindowController OWController = new OpeningWindowController( Board, Pool, PlayerOne, PlayerTwo );\n loader.setController( OWController ); // setting the controller for openingWindow.fxml\n Parent root = (Parent) loader.load();\n window.setTitle( \"Scrabble\" );\n window.setScene( new Scene( root, 1028, 500 ) );\n window.setResizable( false ); // making the window fixed in size and not-resizable\n window.show();\n }", "public void initAndShowStage(Parent root) {\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.setScene(scene);\n stage.setTitle(\"Ayuda para la Gestion de Usuarios\");\n stage.setResizable(false);\n stage.setMinWidth(800);\n stage.setMinHeight(600);\n stage.setOnShowing(this::handleWindowShowing);\n stage.show();\n }", "@Override // Override the start method in the Application class\r\n public void start(Stage primaryStage) {\n BorderPane bPane = new BorderPane();\r\n bPane.setBottom(this.getHBox());\r\n bPane.setCenter(this.getGPane());\r\n Scene scene = new Scene(bPane);\r\n primaryStage.setTitle(\"Search Window\"); // Set the stage title\r\n primaryStage.initModality(Modality.APPLICATION_MODAL);\r\n primaryStage.setResizable(false);\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.showAndWait(); // Display the stage\r\n }", "public void start(Stage stage) {\n stage.setScene(\n //create scene with root and size 250 x 100\n new Scene(\n //add circle to a new Group named root\n new Group(\n //create circle of radius = 30 at x=40, y=40\n new Circle(40, 40, 30)\n ), 250, 100)\n );\n stage.setTitle(\"My JavaFX Application\"); //set the stage\n stage.show();\t\t\t\t\t\t\t\t //made stage visible\n }", "void createWindow();", "public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }", "private void initWindow(String windowTitle) {\n // SET THE WINDOW TITLE\n primaryStage.setTitle(windowTitle);\n\n // GET THE SIZE OF THE SCREEN\n Screen screen = Screen.getPrimary();\n Rectangle2D bounds = screen.getVisualBounds();\n\n // AND USE IT TO SIZE THE WINDOW\n primaryStage.setX(bounds.getMinX());\n primaryStage.setY(bounds.getMinY());\n primaryStage.setWidth(bounds.getWidth());\n primaryStage.setHeight(bounds.getHeight());\n\n // ADD THE TOOLBAR ONLY, NOTE THAT THE WORKSPACE\n // HAS BEEN CONSTRUCTED, BUT WON'T BE ADDED UNTIL\n // THE USER STARTS EDITING A COURSE\n draftPane = new BorderPane();\n draftPane.setTop(fileToolbarPane);\n primaryScene = new Scene(draftPane);\n\n // NOW TIE THE SCENE TO THE WINDOW, SELECT THE STYLESHEET\n // WE'LL USE TO STYLIZE OUR GUI CONTROLS, AND OPEN THE WINDOW\n primaryScene.getStylesheets().add(PRIMARY_STYLE_SHEET);\n primaryStage.setScene(primaryScene);\n primaryStage.show();\n }", "@FXML\n private void startGame(){\n AnchorPane anchorPane = new AnchorPane();\n Scene gameScene = new Scene(anchorPane, 800, 600);\n Stage gameStage = new Stage();\n GameView gameView = new GameView(anchorPane, gameScene, gameStage);\n gameView.gameStart();\n }", "public void backToStartScene(ActionEvent event) throws IOException {\r\n Parent startView = FXMLLoader.load(Main.class.getResource(\"fxml/StartScene.fxml\"));\r\n Scene startViewScene = new Scene(startView);\r\n\r\n // This line gets the Stage information (no Stage is passed in)\r\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\r\n\r\n window.setScene(startViewScene);\r\n window.show();\r\n }", "private void createNameSubScene() {\n\t\tnameSubScene = new ViewSubScene();\n\t\tthis.mainPane.getChildren().add(nameSubScene);\n\t\tInfoLabel enterName = new InfoLabel(\"ENTER YOU NAME\");\n\t\tenterName.setLayoutX(20);\n\t\tenterName.setLayoutY(40);\n\t\t\n\t\tinputName = new TextField();\n\t\tinputName.setLayoutX(120);\n\t\tinputName.setLayoutY(150);\n\t\t\n\t\tnameSubScene.getPane().getChildren().add(enterName);\n\t\tnameSubScene.getPane().getChildren().add(inputName);\n\t\tnameSubScene.getPane().getChildren().add(createLinkButton());\n\t}", "@Override\r\n\tpublic void handle(WindowEvent event) {\n\t\tStage stage = new Stage();\r\n\t\ttry {\r\n\t\t\twindow.start(stage);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstage.setScene(window.mainScene);\r\n\t\tstage.centerOnScreen();\r\n\t\tstage.setAlwaysOnTop(true);\r\n\t\tstage.show();\r\n\t}", "@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tSideMenu sidemenu = new SideMenu(canvas);\n\t\tgridpane.add(sidemenu, 0, 0);\n\t\tgridpane.add(canvas, 1, 0);\n\t\t\n\t\tScene scene = new Scene(gridpane);\n\t\t\n\t\tstage.setScene(scene);\n\t\tstage.sizeToScene();\n\t\t\n\t\tstage.setTitle(\"Make your own Dot Drawing - By Joeri\");\n\t\tstage.show();\n\t\t\n\t\tstage.setMinWidth(stage.getWidth());\n\t\tstage.setMinHeight(stage.getHeight());\n\t}", "@Override\n public void start(Stage stage) throws IOException {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(MainScreen.class.getResource(\"MainScreen.fxml\"));\n\n\n Parent root = fxmlLoader.load();\n MainScreen mainScreen = fxmlLoader.getController();\n Scene scene = new Scene(root);\n\n stage.setTitle(\"Inventory Management System\");\n stage.setScene(scene);\n stage.show();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public final void start(final Stage primaryStage) {\n Scene scene = new Scene(getPane(), PANE_WIDTH, PANE_HEIGHT);\n primaryStage.setTitle(\"Tic-Tak-Toe\"); // Set the stage title.\n primaryStage.setScene(scene); // Place the scene in the stage.\n primaryStage.show(); // Display the stage.\n }", "@Override\r\n\tpublic void start(Stage s) throws Exception {\n\t\tc=new Container();\r\n\t\tthis.st=s;\r\n\t\tc.setFs(new FirstScreen(st,c));\r\n\t\tthis.sc=new Scene(c.getFs(), 800,600);\r\n\t\tst.setScene(sc);\r\n\t\tst.setTitle(\"Main Window\");\r\n\t\tst.show();\r\n\t}", "@Override\n public void start( Stage primaryStage ) throws Exception {\n primaryStage.setTitle(\"Battleship\");\n primaryStage.setScene(createScene());\n primaryStage.show();\n }", "public void start(Stage stage) {\r\n // Setting our primaryStage variable to the stage given to us by init()\r\n primaryStage = stage;\r\n // Retrieving the primary scene (the first thing we want the user to see)\r\n Scene primaryScene = getPrimaryScene();\r\n // Setting the title of the stage, basically what the window says on the top left\r\n primaryStage.setTitle(\"SeinfeldMemeCycler\");\r\n // Setting the scene\r\n primaryStage.setScene(primaryScene);\r\n // Displaying the stage\r\n primaryStage.show();\r\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tthis.stage = primaryStage;\r\n\t\tprimaryStage.setResizable(false);\r\n\t\tthis.stage.setTitle(\"Forza 4\");\r\n\t\t\r\n\t\tstartWindow();\r\n\t\thomeStage();\r\n\t\t\r\n\t}", "public void makeWindow(JFrame frame,JPanel panel,JPanel centerPanel,String stage)\n {\n super.makeWindow(frame,panel,centerPanel,stage);\n Container contentPane = frame.getContentPane();\n if(stage.equals(\"b1\")){\n bit1Modules(contentPane);\n }else{\n bit2Modules(contentPane);\n }\n frame.revalidate();\n frame.repaint();\n //frame.setResizable(false);\n frame.pack();\n frame.setVisible(true);\n }", "private void start (final Stage stage) throws IOException{\n Parent pa = FXMLLoader.load(getClass().getResource(\"/toeicapp/EditQuestion.fxml\"));\n Scene scene = new Scene(pa);\n scene.setFill(Color.TRANSPARENT);\n stage.setTitle(\"Cập nhật Câu hỏi\"); \n stage.setScene(scene);\n stage.show();\n }", "public void addChildFrame(JFrame frame);", "@Override\n public void start(Stage primaryStage) throws Exception{\n //Cargar primer escena\n Stage inicio = primaryStage;\n Parent rootInicio = FXMLLoader.load(getClass().getResource(\"vistas/inicio.fxml\"));\n inicio.setTitle(\"Baúl de los recuerdos\");\n inicio.setScene(new Scene(rootInicio, 790, 790));\n inicio.setResizable(false);\n //inicio.setResizable(false);\n inicio.show();\n\n }", "public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}", "@FXML\n public void New_List(ActionEvent actionEvent) {\n\n //Here we are going to open a window to create a list.\n //Working!!\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewTodolist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New List\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Stage getWindow() {\n return primaryStage;\n }", "public void Scene() {\n Scene scene = new Scene(this.root);\n this.stage.setScene(scene);\n this.stage.show();\n }", "public void delete_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,true);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}", "@FXML\n public void clicAceptar() {\n Stage stage= new Stage();\n stage = (Stage) botonAceptar.getScene().getWindow();\n stage.close();\n }", "public DifferentVehicleOwnerWindow() {\n stage = new Stage();\n person = null;\n\n birthNoLabel = new Label(\"Fødselsnummer:\");\n firstNameLabel = new Label(\"Fornavn:\");\n lastNameLabel = new Label(\"Etternavn:\");\n telephoneNoLabel = new Label(\"Telefonnummer:\");\n emailLabel = new Label(\"Email:\");\n zipCodeLabel = new Label(\"Postnummer:\");\n streetAddressLabel = new Label(\"Adresse:\");\n\n birthNoField = new TextField();\n firstNameField = new TextField();\n lastNameField = new TextField();\n telephoneNoField = new TextField();\n emailField = new TextField();\n zipCodeField = new TextField();\n streetAddressField = new TextField();\n\n registerOwnerButton = new Button(\"Registrer eier\");\n\n container = new GridPane();\n container.addColumn(0, birthNoLabel, firstNameLabel, lastNameLabel,\n telephoneNoLabel, emailLabel, zipCodeLabel,\n streetAddressLabel);\n container.addColumn(1, birthNoField, firstNameField, lastNameField,\n telephoneNoField, emailField, zipCodeField, streetAddressField,\n registerOwnerButton);\n container.backgroundProperty().setValue(\n new Background(new BackgroundFill(Color.web(\"D7EBE6\"),\n CornerRadii.EMPTY, Insets.EMPTY)));\n scene = new Scene(container);\n\n stage.setScene(scene);\n }", "@FXML\r\n public void inventario(ActionEvent e) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Inventario/Inventario.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.setTitle(\"MEVECOM <>\");\r\n stage.setResizable(false);\r\n stage.show();\r\n //Cerrar ventana actual\r\n Stage actual = (Stage) btnSalir.getScene().getWindow();\r\n actual.close();\r\n }", "public WindowLoader(Stage primaryStage) {\n\t\tw = primaryStage;\n\t}", "@Override\n public void start(Stage stage) throws Exception \n {\n \n FXMLLoader appMainLoader = new FXMLLoader(getClass().getResource(Resources.app_main));\n\n Parent root = (Parent)appMainLoader.load();\n root.prefHeight(600);\n root.prefWidth(1100);\n\n AppMainController appMainController = appMainLoader.getController();\n appMainController.setAppLauncher(this);\n\n// stage.initStyle(StageStyle.UNDECORATED);\n stage.setResizable(false);\n stage.setMaxHeight(600);\n stage.setMaxWidth(1000);\n\n Scene scene = new Scene(root, Color.TRANSPARENT);\n scene.getStylesheets().add(Resources.app_css);\n \n stage.setTitle(\"Hims-Lab Equipment Interface\");\n stage.setScene(scene);\n stage.show();\n //init();\n }", "public void start_game() throws IOException, JAXBException {\n savetoxml();\n logger.trace(\"starting the game now...\");\n primarystage.setResizable(false);\n primarystage.setScene(game_scene);\n primarystage.show();\n\n }", "void start(Stage primaryStage);", "@Override\n public void start(Stage primaryStage) {\n try {\n stage = primaryStage;\n stage.setTitle(\"Indie Airways\");\n stage.setMinWidth(WINDOW_WIDTH);\n stage.setMinHeight(WINDOW_HEIGHT);\n gotoLogin();\n //gotoMenu();\n primaryStage.show(); \n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void Stage(ActionEvent actionEvent) {\n this.stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n this.Scene();\n }", "public Stage_3()\n {\n super();\n super.stageLevel = 3;\n\n this.designAttributes = new DesignAttributes();\n this.drawingPanel = new DrawingPanel();\n this.drawingPanel.setBackground(Color.BLACK);\n this.drawingPanel.setFocusable(true);\n \n // Set up the JButtons\n section1 = new JButton();\n section2 = new JButton();\n section3 = new JButton();\n batButton = new JButton();\n dagButton = new JButton();\n macButton = new JButton();\n \n this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), \"Escape\");\n // Customized Action for pressing Escape\n Action escapeAction = new AbstractAction()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n CardLayout cl = (CardLayout) (PanelManager.menuCardPanel.getLayout());\n cl.show(PanelManager.menuCardPanel, \"MIDGAMEMENU\");\n }\n };\n \n // Adding an escape action map to the action map\n this.getActionMap().put(\"Escape\", escapeAction);\n \n updateStagePlayer();\n\n add(this.drawingPanel);\n }", "public void onShowMain(ActionEvent event) {\n try {\n Stage stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n Parent scene = FXMLLoader.load(getClass().getResource(\"/App/View/MainScreenView.fxml\"));\n stage.setTitle(\"Customer Schedule\");\n stage.setScene(new Scene(scene));\n stage.show();\n }\n catch (Exception e){\n System.out.println(e.getMessage());\n }\n }", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "@Override\n\tpublic void start(Stage primaryStage) throws IOException {\n\t\t// Create the root of the graph scene. It is mainly used in the updateScene() method.\n\t\troot = new Group();\n\n\t\t// Create a simulation with N elements\n\t\tsimulation = new Simulation();\n\n\t\t// Configure and start periodic scene update: after PERIOD_MS ms, updateScene() is called.\n\t\ttimeline = new Timeline(new KeyFrame(PERIOD_MS, ae -> {\n\t\t\tupdateScene();\n\t\t})); // \"->\" is a Java 8 specific construction\n\t\ttimeline.setCycleCount(Animation.INDEFINITE);\n\t\ttimeline.play();\n\n\n\t\t/** Allows the window to be dragged by the mouse */\n\t root.setOnMousePressed(new EventHandler<MouseEvent>() {\n\t \t@Override\n\t public void handle(MouseEvent event) {\n\t xOffset = primaryStage.getX() - event.getScreenX();\n\t yOffset = primaryStage.getY() - event.getScreenY();\n\t }\n\t });\t \n\t root.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n \tprimaryStage.setX(event.getScreenX() + xOffset);\n\t primaryStage.setY(event.getScreenY() + yOffset);\n\t }\n\t });\n\t \n\t \n\t /** Adds the stylesheet for visual effect */\n\t root.getStylesheets().add(\"/stylesheet.css\");\n\t root.getStyleClass().add(\"rootPane\");\n\t \n\t /** Adds icon */\n\t primaryStage.getIcons().add(new Image(\"/icon.png\"));\n\t \n\t Scene scene = new Scene(root, Simulation.SPACE_SIZE, Simulation.SPACE_SIZE, Simulation.BACKGROUND); \n\t primaryStage.setScene(scene);\n \tprimaryStage.setTitle(\"Gabriel's Land\");\n \tprimaryStage.setResizable(false);\n\t primaryStage.getScene().setCursor(Cursor.HAND);\n\t primaryStage.show();\n\n\t}", "@Override\n public void start(Stage primaryStage) {\n// if (screenWidth >= 414) {\n// screenWidth = 414;\n// }\n// if (screenHeight >= 736) {\n// screenHeight = 736;\n// }//preset stage/scene size\n\n //System.out.println(Integer.toString(screenWidth) + Integer.toString(screenHeight));\n System.out.print(\"Default:\");\n gameController = new GameController(1, 4);//default player and map size\n// gameController.newMapPane();//preload a Map Pane\n\n ScreenController mainContainer = new ScreenController();\n mainContainer.loadScreen(GroupGame.homeScreenID, GroupGame.homeScreenFile);\n mainContainer.loadScreen(GroupGame.newOptionID, GroupGame.newOptionFile);\n mainContainer.loadScreen(GroupGame.createPlayerID, GroupGame.createPlayerFile);\n mainContainer.loadScreen(GroupGame.MapScreenID, GroupGame.MapScreenFile);\n mainContainer.setScreen(GroupGame.homeScreenID);\n\n Group root = new Group();\n root.getChildren().addAll(mainContainer);\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "public void launchNormalWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbRoot = new DBController(this);\n\t\t\tScene scene = new Scene(dbRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "protected Scene buildScene() throws FileNotFoundException, NoSuchObjectException {\n SplitPane split = new SplitPane();\n Scene myGameScene = new Scene(split, 800, 600);\n split.setDividerPositions(0.35f, 0.6f);\n attachStyle(myGameScene, \"GameView\");\n\n Pane leftPane = getPane(myGameResourceBundle.getString(\"LeftPaneCss\"));\n buildLeftSplitPane(leftPane);\n SplitPane.setResizableWithParent(leftPane, Boolean.FALSE);\n Pane rightPane = getPane(myGameResourceBundle.getString(\"RightPaneCss\"));\n Entity player = getPlayerEntity();\n background = new ImageView(new Image(new FileInputStream(levelInfoParser.getBackgroundImage())));\n cameraView = new CameraView(player, myGameScene.heightProperty(), myGameScene.widthProperty());\n buildRightSplitPane(rightPane);\n cameraView.bindBackgroundImage(background);\n ImageView playerDisplay = cameraView.createPlayerDisplay(player);\n setUpGameOver(player);\n rightPane.getChildren().add(playerDisplay);\n split.getItems().addAll(leftPane, rightPane);\n SplitPane.setResizableWithParent(leftPane, Boolean.FALSE);\n myGameScene.setOnKeyPressed(e -> handleKeyPressed(e));\n cameraView.handleCamera(rightPane, playerDisplay,background);\n myGameScene.setOnKeyReleased(e->handleKeyReleased(e));\n rightPane.requestFocus();\n rightPane.setFocusTraversable(true);\n return myGameScene;\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"Main.fxml\"));\n primaryStage.setTitle(\"Faulkner Kiosk\");\n primaryStage.setScene(new Scene(root, 600, 400));\n primaryStage.show();\n\n }", "public void start(Stage selectionStage) {\n Button Stage1Btn = new Button();\n Stage1Btn.setText(\"Stage 1\");\n Stage1Btn.setFont(Font.font(\"Lucida Console\",ITALIC ,25));\n Stage1Btn.setPrefSize(150,150);\n Stage1Btn.setOnAction(new EventHandler<ActionEvent>() {\n \n @Override\n public void handle(ActionEvent event) {\n selectionStage.close();\n GameStage1 gs1= new GameStage1();\n Stage gameStage = new Stage();\n gs1.start(gameStage);\n }\n });\n \n //Create button link to Stage 2\n Button Stage2Btn = new Button();\n Stage2Btn.setText(\"Stage 2\");\n Stage2Btn.setFont(Font.font(\"Lucida Console\",ITALIC ,25));\n Stage2Btn.setPrefSize(150,150);\n Stage2Btn.setOnAction(new EventHandler<ActionEvent>() {\n \n @Override\n public void handle(ActionEvent event) {\n selectionStage.close();\n GameStage2 gs2= new GameStage2();\n Stage gameStage2 = new Stage();\n gs2.start(gameStage2);\n }\n });\n \n //Create button link to Stage 3\n Button Stage3Btn = new Button();\n Stage3Btn.setText(\"Stage 3\");\n Stage3Btn.setFont(Font.font(\"Lucida Console\",ITALIC ,25));\n Stage3Btn.setPrefSize(150,150);\n Stage3Btn.setOnAction(new EventHandler<ActionEvent>() {\n \n @Override\n public void handle(ActionEvent event) {\n selectionStage.close();\n GameStage3 gs3= new GameStage3();\n Stage gameStage3 = new Stage();\n gs3.start(gameStage3);\n }\n });\n \n //Create button link to Stage 4\n Button Stage4Btn = new Button();\n Stage4Btn.setText(\"Stage 4\");\n Stage4Btn.setFont(Font.font(\"Lucida Console\",ITALIC ,25));\n Stage4Btn.setPrefSize(150,150);\n Stage4Btn.setOnAction(new EventHandler<ActionEvent>() {\n \n @Override\n public void handle(ActionEvent event) {\n selectionStage.close();\n GameStage4 gs4= new GameStage4();\n Stage gameStage4 = new Stage();\n gs4.start(gameStage4);\n }\n });\n \n //Create button link to Stage 5\n Button Stage5Btn = new Button();\n Stage5Btn.setText(\"Stage 5\");\n Stage5Btn.setFont(Font.font(\"Lucida Console\",ITALIC ,25));\n Stage5Btn.setPrefSize(150,150);\n Stage5Btn.setOnAction(new EventHandler<ActionEvent>() {\n \n @Override\n public void handle(ActionEvent event) {\n selectionStage.close();\n GameStage5 gs5= new GameStage5();\n Stage gameStage5 = new Stage();\n gs5.start(gameStage5);\n }\n });\n //Create a HBox to insert multiple button and arrange them horizontally\n HBox mainBtn = new HBox();\n mainBtn.setPadding(new Insets(15, 12, 15, 12));\n mainBtn.setSpacing(10);\n mainBtn.setAlignment(Pos.CENTER);\n \n //Create Main Menu button\n Button MainMenuBtn = new Button();\n MainMenuBtn.setText(\"Main Menu\");\n MainMenuBtn.setFont(Font.font(\"Lucida Console\",ITALIC ,40));\n MainMenuBtn.setPrefSize(300,80);\n MainMenuBtn.setOnAction((ActionEvent ae) -> {\n\n //Create a confirmation dialog\n Alert MainMenuAlert = new Alert(Alert.AlertType.CONFIRMATION);\n MainMenuAlert.initStyle(StageStyle.UTILITY);\n MainMenuAlert.setTitle(\"Confirmation\");\n MainMenuAlert.setHeaderText(\"Do you want to back to Main Menu?\");\n MainMenuAlert.setContentText(\"Click OK to confirm\");\n\n Optional<ButtonType> result = MainMenuAlert.showAndWait();\n if (result.get() == ButtonType.OK){\n selectionStage.close();\n MainScreenStage mss = new MainScreenStage();\n mss.start(selectionStage);\n// if user chose OK this window will closed and Main Interface will opened\n } \n });\n\n //Create button to close program\n Button QuitBtn = new Button();\n QuitBtn.setText(\"Quit Game\");\n QuitBtn.setFont(Font.font(\"Lucida Console\",ITALIC ,40));\n QuitBtn.setPrefSize(300,80);\n QuitBtn.setOnAction((ActionEvent ae) -> {\n\n //Create a confirmation dialog\n Alert QuitAlert = new Alert(Alert.AlertType.CONFIRMATION);\n QuitAlert.initStyle(StageStyle.UTILITY);\n QuitAlert.setTitle(\"Confirmation\");\n QuitAlert.setHeaderText(\"Do you want to quit game?\");\n QuitAlert.setContentText(\"Click OK to confirm\");\n\n Optional<ButtonType> result = QuitAlert.showAndWait();\n if (result.get() == ButtonType.OK){\n Platform.exit();// ... user chose OK\n } else {\n // ... user chose CANCEL or closed the dialog\n }\n\n });\n //Create HBox to add button\n HBox selectionBtns = new HBox();\n selectionBtns.setSpacing(10);\n selectionBtns.setAlignment(Pos.CENTER);\n selectionBtns.getChildren().addAll(Stage1Btn, Stage2Btn, Stage3Btn, Stage4Btn, Stage5Btn);\n mainBtn.getChildren().addAll(MainMenuBtn,QuitBtn);\n \n BorderPane root = new BorderPane();\n root.setCenter(selectionBtns);\n root.setBottom(mainBtn);\n \n Scene scene = new Scene(root, 1200, 800);\n \n selectionStage.setTitle(\"Shapes\");\n selectionStage.setScene(scene);\n selectionStage.show();\n }", "private void StageAdjustment() {\n addFoodPane.getChildren().addAll(fiberLabel, caloriesLabel, fatLabel, carbohydrateLabel,\n proteinLabel, name, nameLabel, fiber, calories, fat, carbohydrate, protein, confirm, cancel,\n id, idLabel);\n // create a new scene with the size 300x350 based on addFoodPane\n this.addFoodScene = new Scene(addFoodPane, 300, 350);\n this.setScene(addFoodScene);\n this.setTitle(\"Add Food\");// set the title of the stage\n this.setResizable(false);// fix the size of the stage\n // protects user from accidentally click other session\n this.initModality(Modality.APPLICATION_MODAL);\n }", "public void goToAddPartScene(ActionEvent event) throws IOException {\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"AddPart.fxml\"));\n Scene addPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(addPartScene);\n window.show();\n }", "public void start(Stage myStage) { \n \n System.out.println(\"Inside the start() method.\"); \n \n // Give the stage a title. \n myStage.setTitle(\"JavaFX Skeleton.\"); \n \n // Create a root node. In this case, a flow layout \n // is used, but several alternatives exist. \n FlowPane rootNode = new FlowPane(); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 200); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public void start(Stage stage) {\n game = new Game();\n\n Scene gameScene = new Scene(game.getVisual().getRoot(), MainGUI.WIDTH, MainGUI.HEIGHT);\n gameScene.setOnKeyPressed(new PressHandler());\n gameScene.setOnKeyReleased(new ReleaseHandler());\n\n createMenu(stage, gameScene);\n Scene menuScene = new Scene(root, MainGUI.WIDTH, MainGUI.HEIGHT);\n stage.setScene(menuScene);\n\n }", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "@Override\n public void start(Stage stage) throws Exception {\n window = stage;\n rootPane = new BorderPane(); //Spans the entire window.\n clientID = 1; //THE CLIENT ID IS OFFICIALLY 1\n //displayedLocationPane = new BorderPane(); //A displayedLocationPane\n //displayedLocationPane.setStyle(\"-fx-background-color: pink\");\n World guiWorld = new WorldImpl(); //This is the different world.\n GUIWorldManager worldManager = new GUIWorldManager(guiWorld);\n worldManager.makeCharactersInWorld(guiWorld);\n clientChar = guiWorld.getCharacter(clientID);\n LocationHome home = new LocationHome(clientChar); //Note: GUILocationPane\n\n //Creating characters\n for(PlayerCharacter each : guiWorld.getCharacters().values()) {\n guiCharacters.put(each.getId(), each); //Put the characters in a data structure so that they can be kept track of\n home.placePlayer(each); //home.placePlayer initially places a sprite on the board.\n each.addMovementListener(new MovementListener() {\n @Override\n public void thingMoved(int thingId, Position position) {\n //System.out.println(\"Movemade\");\n\n Platform.runLater(() -> {\n try {\n home.relocatePlayer(guiCharacters.get(thingId));\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n });\n }\n });\n }\n\n\n\n System.out.println(\"Client Id: \" + clientID);\n clientChar = guiCharacters.get(clientID);\n home.attachDialoguePane();\n //rootPane.setStyle(\"-fx-background-color: pink\");\n //home.setStyle(\"-fx-background-color: pink\");\n //home.setStyle(\"-fx-background-color: green\");\n //displayedLocationPane.getChildren().addAll(home);\n rootPane.getChildren().addAll(home);\n Scene currScene = new Scene( rootPane, 1024, 1024 );//Passing the rootPane/group to currScene\n currScene.getStylesheets().add(\"/spoonstyle.css\");\n stage.setScene(currScene); //Make currScene contents visible\n GUIMovementKeys keyInputObj = new GUIMovementKeys(currScene);\n keyInputObj.addMovementKeysToScene(currScene, clientChar); //Makes the current scene capable of accepting input and moving the client player\n keyInputObj.setClientSprite(home.getClientSprite());\n keyInputObj.setAllSprites(home.getAllPlayerSpritesInLocation());\n stage.setTitle(\"Spoon Game\");\n stage.show();\n// System.out.println(\"rootPane width and height: \" + rootPane.getWidth() + \" \" + rootPane.getHeight());\n// System.out.println(\"home width and height: \" + home.getWidth() + \" \" + home.getHeight());\n// System.out.println(\"displayablelocation width and height: \" + displayedLocationPane.getWidth() + \" \" + displayedLocationPane.getHeight());\n\n //LocationHome home = new LocationHome(guiCharacters.get(1));\n\n\n //#TODO: How does the backend know its client's player?\n new Timer().schedule(\n new TimerTask() {\n\n @Override\n public void run() {\n guiWorld.timestep();\n }\n }, 0, 5);\n\n\n //worldManager.backendTimeStep(guiWorld);\n\n }", "public void start(Stage primaryStage2) throws FileNotFoundException, NoSuchObjectException {\n primaryStage = primaryStage2;\n myGameOverView = new GameOverView(language, primaryStage);\n primaryStage2.setScene(buildScene());\n }", "@Override\n public void start(Stage primaryStage)\n throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {\n makeMainGrid();\n Scene myHomeScene = new Scene(myMainGrid, WINDOW_WIDTH, WINDOW_HEIGHT);\n primaryStage.setScene(myHomeScene);\n primaryStage.show();\n }", "public void start(Stage myStage) { \n \n // Give the stage a title. \n myStage.setTitle(\"Use a JavaFX label.\"); \n \n // Use a FlowPane for the root node. \n FlowPane rootNode = new FlowPane(); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 200); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Create a label. \n Label myLabel = new Label(\"JavaFX is a powerful GUI\"); \n \n // Add the label to the scene graph. \n rootNode.getChildren().add(myLabel); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public CustomPopUp(String lblText, String titleText, String btnText, int height, int width) \r\n {\r\n \r\n stage = new Stage();\r\n btn = new Button(btnText);\r\n prompt = new Label(lblText);\r\n pane = new VBox();\r\n pane.getChildren().addAll(prompt,btn);\r\n pane.setAlignment(Pos.CENTER);\r\n scene = new Scene(pane,height,width);\r\n stage.setTitle(titleText);\r\n stage.setScene(scene);\r\n \r\n btn.setOnAction(event ->\r\n {\r\n this.stage.close();\r\n }); \r\n \r\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"Scene.fxml\"));\n primaryStage.setTitle(\"Project 3\");\n primaryStage.setScene(new Scene(root, 600, 600));\n primaryStage.show();\n }", "public void start(Stage primaryStage)\n {\n \tint wid = 520;\n int hei = 200;\n Text hello = new Text(50, 50, \"Hello, JavaFX!\");\n Text question = new Text(120, 80, \"How's it going?\");\n Text question2 = new Text(120, 160, \"Are you getting any ideas?\");\n \n Line simpleLine = new Line(0, 0, 520, 200);\n \n Circle simpleCircle = new Circle(260,100,20);\n Rectangle simpleRectangle = new Rectangle(200,100,20,30);\n Ellipse e = new Ellipse(200, 30, 10,20);\n \n Group root = new Group(e,simpleRectangle, hello, question, question2, simpleLine, simpleCircle); \n Scene scene = new Scene(root, 520, 200, Color.ANTIQUEWHITE);\n \n primaryStage.setTitle(\"A JavaFX Program\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tStackPane pane = new StackPane();\n\t\tScene scene = new Scene(pane);\n\t\tfirstLevel();\n\t\tpane.getChildren().add(mRoot);\n\t\tstage.setScene(scene);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void buildStageByStyle(Stage stage, BaseController root) {\n\t\t\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n Button playBtn = new Button(\"Start!!\");\n playBtn.setMinSize(150, 35);\n\n playBtn.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n Application configStage = new GameConfiguration(config);\n try {\n configStage.start(primaryStage);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n Button helpBtn = new Button(\"Help!!\");\n helpBtn.setMinSize(110, 30);\n\n VBox panelButtons = new VBox(20);\n panelButtons.setAlignment(Pos.CENTER);\n panelButtons.getChildren().addAll(playBtn, helpBtn);\n\n String GAME_TITLE = \"Mates Rapidas Game\";\n Text title = new Text(GAME_TITLE);\n title.setFont(new Font(30));\n\n VBox panelMain = new VBox(10);\n panelMain.setAlignment(Pos.CENTER);\n panelMain.getChildren().addAll(title, panelButtons);\n\n StackPane canvas = new StackPane();\n canvas.setPadding(new Insets(30));\n canvas.getChildren().add(panelMain);\n\n Scene principal = new Scene(canvas, 400, 400);\n\n primaryStage.setTitle(GAME_TITLE);\n primaryStage.setScene(principal);\n primaryStage.setResizable(false);\n primaryStage.show();\n }", "@FXML\r\n\tvoid openCreateUser(ActionEvent event) {\r\n\t\tParent root = null;\r\n\t\tnewWindow = new Stage();\r\n\t\ttry {\r\n\t\t\troot = FXMLLoader.load(getClass().getResource(\"3.1-AddISUsersScreen.fxml\"));\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tISUsers = new Scene(root);\r\n\t\tnewWindow.setTitle(\"Create IS User\");\r\n\t\tnewWindow.setScene(ISUsers);\r\n\t\tnewWindow.setResizable(false);\r\n\t\tnewWindow.initOwner((Stage) ((Node) event.getSource()).getScene().getWindow());\r\n\t\tnewWindow.initModality(Modality.WINDOW_MODAL);\r\n\t\tnewWindow.show();\r\n\t}", "public WindowLoader(Node window) {\n w = (Stage) window.getScene().getWindow();\n }", "@Override\r\n\tpublic void start(final Stage stagew) throws Exception {\n\t\tpane\t=\tnew\tAnchorPane();\r\n\t\tpane.setPrefSize(800, 600);\r\n\t\tScene scene = new Scene(pane);\r\n\t\tstagew.setScene(scene);\r\n\t\tstagew.setResizable(false);\r\n\t\t\r\n\t\t\r\n\t\tBackgroundImage backg= new BackgroundImage(new Image(\"https://i2.wp.com/obscenidadedigital.com/wp-content/uploads/2017/10/gradiente.png\",900,800,false,true),\r\n\t\tBackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT,\r\n\t\tBackgroundSize.DEFAULT);\r\n\t\t//then you set to your node\r\n\t\tpane.setBackground(new Background(backg));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tTextField CodFornecedor = new TextField(\"Codigo Do Fornecedor\");\r\n\t\tCodFornecedor.setLayoutX(20);\r\n\t\tCodFornecedor.setLayoutY(190);\r\n\t\t\r\n\t\tTextField NomeFornecedor = new TextField(\"Nome\");\r\n\t\tNomeFornecedor.setLayoutX(250);\r\n\t\tNomeFornecedor.setLayoutY(190);\r\n\t\t\r\n\t\t\r\n\t\tTextField CNPJFornecedor = new TextField(\"CNPJ\");\r\n\t\tCNPJFornecedor.setLayoutX(20);\r\n\t\tCNPJFornecedor.setLayoutY(250);\r\n\t\t\r\n\t\t\r\n\t\tTextField PrecoprodutoFornecedor = new TextField(\"Preço Do Produto\");\r\n\t\tPrecoprodutoFornecedor.setLayoutX(250);\r\n\t\tPrecoprodutoFornecedor.setLayoutY(250);\r\n\t\t\r\n\t\t\r\n\t\tTextField descricaoProduto = new TextField(\"Descriçao do produto\");\r\n\t\tdescricaoProduto.setLayoutX(20);\r\n\t\tdescricaoProduto.setLayoutY(310);\r\n\t\t\r\n\t\tTextField quantidadeProduto = new TextField(\"Quantidade do produto\");\r\n\t\tquantidadeProduto.setLayoutX(250);\r\n\t\tquantidadeProduto.setLayoutY(310);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//botao\r\n\t\t\r\n\t\tButton btSalvarFD = new Button(Strings.botaoSalvar);\r\n\t\tbtSalvarFD.setTextFill(Color.DARKSLATEGREY);\r\n\t\tbtSalvarFD.setFont(Font.font(\"verdana\", FontWeight.BOLD, 25));\r\n\t\tbtSalvarFD.setLayoutX(750);\r\n\t\tbtSalvarFD.setLayoutY(580);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btvoltar = new Button(\"Voltar\");\r\n\t\tbtvoltar.setTextFill(Color.DARKSLATEGREY);\r\n\t\tbtvoltar.setFont(Font.font(\"verdana\", FontWeight.BOLD, 15));\r\n\t\tbtvoltar.setLayoutX(20);\r\n\t\tbtvoltar.setLayoutY(600);\r\n\t\t\r\n\t\t\r\n\t\tpane.getChildren().addAll(btSalvarFD,btvoltar,CodFornecedor,NomeFornecedor,CNPJFornecedor,PrecoprodutoFornecedor,descricaoProduto,quantidadeProduto);\r\n\t\t\r\n\t\tbtvoltar.setOnAction(e -> handle(stagew));\r\n\t\tbtSalvarFD.setOnAction(e -> btsalvarfd(stagew) );\r\n\t\t\r\n\t\tstagew.show();\r\n\t\t\r\n\t}", "@Override\n public void start(Stage primaryStage) throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"/MainMenuLayout.fxml\"));\n primaryStage.setTitle(\"Pairs\");\n primaryStage.setMinHeight(600);\n primaryStage.setMinWidth(600);\n primaryStage.setScene(new Scene(root));\n primaryStage.show();\n }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}" ]
[ "0.7444991", "0.7012775", "0.68134683", "0.67221117", "0.66739213", "0.6620287", "0.6607355", "0.6594188", "0.6573011", "0.65435743", "0.65311176", "0.6519217", "0.6487484", "0.64717823", "0.6469307", "0.64580274", "0.64538914", "0.6443069", "0.6435297", "0.6419503", "0.6348367", "0.634241", "0.6337676", "0.63265234", "0.63191396", "0.62827855", "0.6276945", "0.6265565", "0.6259868", "0.6242132", "0.62368417", "0.62358576", "0.6226603", "0.62254274", "0.62194854", "0.6216957", "0.62061805", "0.61916316", "0.6186939", "0.61823165", "0.61785704", "0.6157819", "0.6157332", "0.615306", "0.61450255", "0.61363953", "0.61353844", "0.613433", "0.61311346", "0.61265016", "0.61264163", "0.6123469", "0.61229324", "0.61221594", "0.6118636", "0.61183757", "0.6117181", "0.6107091", "0.6101614", "0.6095703", "0.60875857", "0.6086722", "0.60824925", "0.607534", "0.60750186", "0.6071201", "0.60710657", "0.60703826", "0.6064262", "0.6058853", "0.6055823", "0.6030633", "0.60260314", "0.6025482", "0.6025178", "0.60248864", "0.60221964", "0.60209763", "0.60121286", "0.6006337", "0.6004407", "0.6002711", "0.5989851", "0.5989746", "0.598628", "0.5983505", "0.5977109", "0.5975641", "0.5964048", "0.5960448", "0.59556156", "0.5954918", "0.595461", "0.59541243", "0.59498554", "0.594019", "0.593879", "0.59361875", "0.5934457", "0.593182" ]
0.7266646
1
First decode with inJustDecodeBounds=true to check dimensions
public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) { final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(res, resId, options); // Calculate inSampleSize options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; Bitmap temp = BitmapFactory.decodeResource(res, resId, options); Bitmap scaled = Bitmap.createScaledBitmap(temp, reqWidth, reqHeight, true); temp.recycle(); return scaled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public static Pair<Integer, Integer> decodeDimensions(InputStream param0) {\n }", "@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptions(requiresResize);\n assertThat(resizeOptions).isNotNull();\n assertThat(resizeOptions.inJustDecodeBounds).isTrue();\n }", "@java.lang.Override\n public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "public abstract Object decode(InputStream is) ;", "@Test public void createWithConfigAndNotInJustDecodeBounds() {\n final Request config = new Request.Builder(TestUtils.URI_1).config(RGB_565).build();\n final BitmapFactory.Options configOptions = createBitmapOptions(config);\n assertThat(configOptions).isNotNull();\n assertThat(configOptions.inJustDecodeBounds).isFalse();\n }", "@Override\n public boolean decode(InputStream stream) {\n mBitmap = BitmapFactory.decodeStream(stream);\n android.util.Log.e(\"Codec\", \"Decode bitmap = \" + mBitmap);\n return mBitmap != null;\n }", "public boolean isDecodable() {\n return buckets.size() >= k;\n }", "@Test\n public void checkCompactFormat()\n {\n int height = 10;\n int width = 5;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n SimpleMatrix Q = new SimpleMatrix(height,width, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n\n // see if Q has the expected properties\n assertTrue(MatrixFeatures_DDRM.isOrthogonal((DMatrixRMaj)Q.getMatrix(),UtilEjml.TEST_F64_SQ));\n\n // try to extract it with the wrong dimensions\n Q = new SimpleMatrix(height,height, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n assertEquals(height,Q.numRows());\n assertEquals(width,Q.numCols());\n }", "private Bitmap decodeFile(File f){\n try {\n //decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n FileInputStream stream1=new FileInputStream(f);\n BitmapFactory.decodeStream(stream1,null,o);\n stream1.close();\n \n //Find the correct scale value. It should be the power of 2.\n final int REQUIRED_SIZE=70;\n int width_tmp=o.outWidth, height_tmp=o.outHeight;\n int scale=1;\n while(true){\n if(width_tmp/2<REQUIRED_SIZE || height_tmp/2<REQUIRED_SIZE)\n break;\n width_tmp/=2;\n height_tmp/=2;\n scale*=2;\n }\n \n //decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize=scale;\n FileInputStream stream2=new FileInputStream(f);\n Bitmap bitmap=BitmapFactory.decodeStream(stream2, null, o2);\n stream2.close();\n return bitmap;\n } catch (FileNotFoundException e) {\n } \n catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private void checkFormat() {\n if (y.pixelStride != 1) {\n throw new IllegalArgumentException(String.format(\n \"Pixel stride for Y plane must be 1 but got %d instead\",\n y.pixelStride\n ));\n }\n if (u.pixelStride != v.pixelStride || u.rowStride != v.rowStride) {\n throw new IllegalArgumentException(String.format(\n \"U and V planes must have the same pixel and row strides \" +\n \"but got pixel=%d row=%d for U \" +\n \"and pixel=%d and row=%d for V\",\n u.pixelStride, u.rowStride,\n v.pixelStride, v.rowStride\n ));\n }\n if (u.pixelStride != 1 && u.pixelStride != 2) {\n throw new IllegalArgumentException(\n \"Supported pixel strides for U and V planes are 1 and 2\"\n );\n }\n }", "byte[] decodeBytes();", "int decode()\n throws IOException {\n final int start = _in.getBytesRead() - 4;\n \n _callback.objectStart();\n while ( decodeElement() );\n _callback.objectDone();\n \n final int read = _in.getBytesRead() - start;\n\n if ( read != _in._length ) {\n //throw new IllegalArgumentException( \"bad data. lengths don't match \" + read + \" != \" + len );\n }\n\n return _in._length;\n }", "public abstract boolean canDecodeInput(BufferedInputStream stream) throws IOException;", "public boolean mo9444d() {\n if (!isLengthGreaterZero()) {\n return false;\n }\n byte[] bArr = this.byteArr;\n if (bArr.length >= 32) {\n return IsFullyValid(bArr, checkAndGetTypeLength());\n }\n return true;\n }", "@java.lang.Override\n public boolean hasRect() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "private void sizeLimitDecodeBinaryFrame(int maxSize) throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, maxSize);\n\n IoBufferEx in = allocator.wrap(allocator.allocate(203))\n .put((byte)0x80)\n .put((byte)-0x7f)\n .put((byte)0x48)\n .fill(200)\n .flip();\n\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n\n WsMessage out = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsBinaryMessage(allocator.wrap(allocator.allocate(200)).fill(200).flip()), out);\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n decoder.finishDecode(session, session.getDecoderOutput());\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n assertFalse(in.hasRemaining());\n }", "protected Object decode(ChannelHandlerContext ctx, ByteBuf in)\r\n/* 30: */ throws Exception\r\n/* 31: */ {\r\n/* 32:74 */ if (in.readableBytes() < this.frameLength) {\r\n/* 33:75 */ return null;\r\n/* 34: */ }\r\n/* 35:77 */ return in.readRetainedSlice(this.frameLength);\r\n/* 36: */ }", "@Test(expected = IllegalArgumentException.class)\n public void test_checkInMemoryFormat_NATIVE() {\n checkInMemoryFormat(InMemoryFormat.NATIVE);\n }", "@java.lang.Override\n public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "T decode1(DataBuffer buffer);", "void verifyNumberOfDimensions(int ignoreMeNumDimensions) {\n // do nothing on purpose\n }", "public boolean isValidSize(ImagePlus img, byte[] data);", "private Bitmap decodeMapBitmap() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = false;\n options.inScaled = false;\n options.outWidth = 2048;\n options.outHeight = 2048;\n\n return BitmapFactory.decodeResource(getResources(), R.drawable.map, options);\n }", "protected abstract int decodeLength ();", "void decodeObjectArray();", "public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public int checkAndGetTypeLength() {\n return checkAndGetTypeLength(this.byteArr);\n }", "public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }", "protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }", "@Override\n public long getExactSizeIfKnown() {\n return -1;\n }", "public NonAnnotatedEncodeableEncoderDecoderSpecifiedUsingConfiguration() {}", "@Override\n\tpublic int decode(byte[] buffer, int offset) throws IOException {\n\t\tlong value = NeuronReader.readRawInt64(buffer, offset);\n\t\tunionCache.setLong(fieldIndex, value);\n\n\t\treturn NeuronReader.LONG_SIZE;\n\t}", "public void decode()\n {\n if (null == escherRecords || 0 == escherRecords.size()){\n byte[] rawData = getRawData();\n convertToEscherRecords(0, rawData.length, rawData );\n }\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public boolean isCorrectSize(int height, int width);", "public void updateFromDeserialization() {\n\t\tif (inSerializedState) {\n\t\t\tframes = new KeyFrames();\n\t\t\tfor(Integer key : pixelsMap.keySet()) {\n\t\t\t\tint[][] pixels = pixelsMap.get(key);\n\t\t\t\tDrawFrame image = new DrawFrame(serializedWidth, serializedHeight);\n\t\t\t\tfor(int r = 0; r < serializedHeight; r++) {\n\t\t\t\t\tfor (int c = 0; c < serializedWidth; c++) {\n\t\t\t\t\t\timage.setRGB(c, r, pixels[r][c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*\n\t\t WritableRaster raster = (WritableRaster) image.getData();\n\t\t raster.setPixels(0,0, serializedWidth, serializedHeight, pixels);\n\t\t image.setData(raster);\n\t\t */\n\t\t\t\tframes.put(key, image);\n\t\t\t}\n\t\t\tinitializeTransientUIComponents();\n\t\t\tinSerializedState = false;\t\n\t\t}\n\t}", "private void sizeLimitDecodeDoubleTextFrame(int maxSize) throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, maxSize);\n\n IoBufferEx in = allocator.wrap(allocator.allocate(12+2+15+2))\n .put((byte)0x00)\n .putString(\"123456789012\", UTF_8.newEncoder())\n .put((byte)0xff)\n .put((byte)0x00)\n .putString(\"123456789012345\", UTF_8.newEncoder())\n .put((byte)0xff)\n .flip();\n\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n\n WsMessage out = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsTextMessage(allocator.wrap(ByteBuffer.wrap(\"123456789012\".getBytes(UTF_8)))), out);\n\n WsMessage out2 = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsTextMessage(allocator.wrap(ByteBuffer.wrap(\"123456789012345\".getBytes(UTF_8)))), out2);\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n decoder.finishDecode(session, session.getDecoderOutput());\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n assertFalse(in.hasRemaining());\n }", "protected Object decode(ChannelHandlerContext aCtx, Channel aChannel, ChannelBuffer aBuffer) throws Exception { Make sure if the length field was received.\n \t\t\t//\n \t\t\tif (aBuffer.readableBytes() < 4) {\n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * Mark the current buffer position before reading the length field\n \t\t\t * because the whole frame might not be in the buffer yet. We will\n \t\t\t * reset the buffer position to the marked position if there's not\n \t\t\t * enough bytes in the buffer.\n \t\t\t */\n \t\t\taBuffer.markReaderIndex();\n \n \t\t\t// Read the length field.\n \t\t\t//\n \t\t\tint length = aBuffer.readInt();\n \n \t\t\t// Make sure if there's enough bytes in the buffer.\n \t\t\t//\n \t\t\tif (aBuffer.readableBytes() < length) {\n \t\t\t\t/*\n \t\t\t\t * The whole bytes were not received yet - return null. This\n \t\t\t\t * method will be invoked again when more packets are received\n \t\t\t\t * and appended to the buffer.\n \t\t\t\t * \n \t\t\t\t * Reset to the marked position to read the length field again\n \t\t\t\t * next time.\n \t\t\t\t */\n \t\t\t\taBuffer.resetReaderIndex();\n \n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\t// There's enough bytes in the buffer. Read it.\n \t\t\tChannelBuffer frame = aBuffer.readBytes(length);\n \n \t\t\treturn frame.toByteBuffer();\n \t\t}", "public int dimensions() {\n return this.data[0].length;\n }", "public static boolean isSigned_infos_size_data() {\n return false;\n }", "private boolean compareLumaPanes()\n {\n int d;\n int e;\n int f = 0;\n\n for (int j = 0; j < NB_DECODED; j++)\n {\n for (int i = 0; i < size; i += 10)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i] & 0xFF);\n e = (initialImage[i + 1] & 0xFF) - (decodedVideo[j][i + 1] & 0xFF);\n d = d < 0 ? -d : d;\n e = e < 0 ? -e : e;\n if (d > 50 && e > 50)\n {\n decodedVideo[j] = null;\n f++;\n break;\n }\n }\n }\n\n return f <= NB_DECODED / 2;\n }", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "public int unmarshal(DataInputStream dis) throws Exception\n{\n int uPosition = 0;\n try \n {\n recordType = VariableParameterRecordType.unmarshalEnum(dis);\n uPosition += recordType.getMarshalledSize();\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);\n uPosition += changeIndicator.getMarshalledSize();\n uPosition += entityType.unmarshal(dis);\n padding = (short)dis.readUnsignedShort();\n uPosition += 2;\n padding1 = dis.readInt();\n uPosition += 4;\n }\n catch(Exception e)\n { \n System.out.println(e); \n }\n return getMarshalledSize();\n}", "@Override\n\tpublic boolean canFit(int width, int height) {\n\t\treturn false;\n\t}", "private CoderResult _malformed (final ByteBuffer in)\r\n {\r\n in.position (in.position () - 1);\r\n return CoderResult.malformedForLength (1);\r\n }", "void decode (DataInputStream dis, Node [] table, Decoder decoder) {\n m_size = Decoder.readUnsignedByte (dis);\n if (m_size == 255) {\n m_size = Decoder.readUnsignedByte (dis) * 255 + Decoder.readUnsignedByte (dis) ;\n }\n //System.out.println (m_size);\n if (m_size > 0) {\n m_node = new Node [m_size];\n for (int i = 0; i < m_size; i++) {\n m_node[i] = Node.decode (dis, table, decoder);\n }\n }\n //System.out.println (\"decoding MFNode done\");\n }", "public byte[] decode(byte[] data) throws DecodingException {\n\t\tif (data == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint length = data.length;\n\t\tif (length % 8 != 0) {\n\t\t\tthrow new DecodingException(\"Data must be divisible by 8.\");\n\t\t}\n\t\t\n\t\tint c, cursor = 0;\n\t\tint noPadding = 0;\n\t\twhile (data[length - noPadding - 1] == PADDING) {\n\t\t\tnoPadding++;\n\t\t}\n\t\t\n\t\tif (noPadding > 6) {\n\t\t\tthrow new DecodingException(\"Inconsistent padding found (padding length = \" + noPadding + \").\");\n\t\t}\n\t\t\n\t\tbyte[] result = new byte[(length - noPadding) * 5 / 8];\n\t\t\n\t\tint maxGrouping = (length - noPadding)/8;\n\t\tfor (c = 0; c < (maxGrouping * 8); c+= 8) {\n\t\t\twhile (BASE_32_DECODE_TABLE[data[c]] == -1) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 6]] << 5) | BASE_32_DECODE_TABLE[data[c + 7]]);\n\t\t}\n\t\t\n\t\tif (noPadding > 0) {\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\t\n\t\t\tif (noPadding == 4) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1));\n\t\t\t} else if (noPadding <= 3) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\t\t\n\t\t\t\tif (noPadding == 1) {\n\t\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public int getNoDimensions() {\n return noDimensions;\n }", "@Test(expectedExceptions = ProtocolException.class, enabled = true)\n public void deserializeTooLarge() throws Exception {\n\n byte[] serializedOver1MB = JarFileLoader.readBinaryFileFromJar(\"/wire/block_over_1MB.bin\");\n BitcoinInputStream in = bitcoinStream(serializedOver1MB);\n Block.deserialize(in);\n }", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "@Override\n \tpublic int getSize() {\n \t\treturn layers.size();\n \t}", "public FullPositionVector decodeValue(JsonCoder coder, JsonReader source)\n\t throws IOException, DecoderException\n {\n\tboolean[] present0 = new boolean[11];\n\n\tcoder.decodeObject(source);\n\tif (coder.hasMoreProperties(source, true))\n\t do {\n\t\tString tag0 = coder.nextProperty(source);\n\t\tFullPositionVector.__Tag t_tag0 = FullPositionVector.__Tag.getTagSub(tag0);\n\t\tif (t_tag0 == null) \n\t\t t_tag0 = FullPositionVector.__Tag._null_;\n\t\tswitch (t_tag0) {\n\t\t case __utcTime:\n\t\t // Decode field 'utcTime'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[0])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t if (this.utcTime == null)\n\t\t\t\tthis.utcTime = new DDateTime();\n\t\t\t this.utcTime.decodeValue(coder, source);\n\t\t\t present0[0] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case ___long:\n\t\t // Decode field 'long'\n\t\t try {\n\t\t\tif (present0[1])\n\t\t\t throw new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\tif (this._long == null)\n\t\t\t this._long = new Longitude();\n\t\t\tthis._long.setValue(coder.decodeInteger(source));\n\t\t\tpresent0[1] = true;\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"long\", \"Longitude\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __lat:\n\t\t // Decode field 'lat'\n\t\t try {\n\t\t\tif (present0[2])\n\t\t\t throw new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\tif (this.lat == null)\n\t\t\t this.lat = new Latitude();\n\t\t\tthis.lat.setValue(coder.decodeInteger(source));\n\t\t\tpresent0[2] = true;\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"lat\", \"Latitude\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __elevation:\n\t\t // Decode field 'elevation'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[3])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.elevation = new Elevation(coder.decodeOctetString(source));\n\t\t\t present0[3] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"elevation\", \"Elevation\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __heading:\n\t\t // Decode field 'heading'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[4])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t if (this.heading == null)\n\t\t\t\tthis.heading = new Heading();\n\t\t\t this.heading.setValue(coder.decodeInteger(source));\n\t\t\t present0[4] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"heading\", \"Heading\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __speed:\n\t\t // Decode field 'speed'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[5])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.speed = new TransmissionAndSpeed(coder.decodeOctetString(source));\n\t\t\t present0[5] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __posAccuracy:\n\t\t // Decode field 'posAccuracy'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[6])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.posAccuracy = new PositionalAccuracy(coder.decodeOctetString(source));\n\t\t\t present0[6] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __timeConfidence:\n\t\t // Decode field 'timeConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t String content1 = coder.decodeString(source);\n\t\t\t int idx1;\n\t\t\t TimeConfidence temp1;\n\n\t\t\t if (present0[7])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t idx1 = coder.resolveName(TimeConfidence.cConstantNameList, content1);\n\t\t\t if (idx1 < 0 )\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._not_enumerated, null, \"value = \" + content1);\n\t\t\t else\n\t\t\t\ttemp1 = TimeConfidence.cNamedNumbers[idx1];\n\t\t\t this.timeConfidence = temp1;\n\t\t\t present0[7] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __posConfidence:\n\t\t // Decode field 'posConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[8])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.posConfidence = new PositionConfidenceSet(coder.decodeOctetString(source));\n\t\t\t present0[8] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __speedConfidence:\n\t\t // Decode field 'speedConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[9])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.speedConfidence = new SpeedandHeadingandThrottleConfidence(coder.decodeOctetString(source));\n\t\t\t present0[9] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t default:\n\t\t\tcoder.skipValue(source);\n\t\t\tbreak;\n\t\t}\n\t } while (coder.hasMoreProperties(source, false));\n\tif (!present0[0])\n\t this.utcTime = null;\n\tif (!present0[1])\n\t throw new DecoderException(ExceptionDescriptor._field_omit, \": 'long'\");\n\tif (!present0[2])\n\t throw new DecoderException(ExceptionDescriptor._field_omit, \": 'lat'\");\n\tif (!present0[3])\n\t this.elevation = null;\n\tif (!present0[4])\n\t this.heading = null;\n\tif (!present0[5])\n\t this.speed = null;\n\tif (!present0[6])\n\t this.posAccuracy = null;\n\tif (!present0[7])\n\t this.timeConfidence = null;\n\tif (!present0[8])\n\t this.posConfidence = null;\n\tif (!present0[9])\n\t this.speedConfidence = null;\n\treturn this;\n }", "static Bitmap decodeSampledBitmapFromPath(String path, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "public Bitmap decodeSimpleBitmapFromFileDescriptor(FileDescriptor fd, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFileDescriptor(fd, null, options);\n //Calculate inSampleSize /*采样率*/\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n //Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n\n return BitmapFactory.decodeFileDescriptor(fd, null, options);\n }", "@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}", "private void checkSizes() throws Exception{\n\t\tint width = images[0].getWidth();\n\t\tint height = images[0].getHeight();\n\t\t//i = 1 because first image is referenced.\n\t\tfor (int i = 1; i < images.length; i++){\n\t\t\tif ((images[i].getWidth() != width) || (images[i].getHeight() != height)){\n\t\t\t\tthrow new Exception(\"Textures sizes are imcompatible\");\n\t\t\t}\t\t\t\t\n\t\t}\n\t}", "public static int numDimensions_infos_metadata() {\n return 1;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}", "@Test(expected=ProtocolDecoderException.class)\n public void sizeLimitDecodeTextFrameFailEarly1() throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, 20);\n \n int dataSize = 30;\n StringBuffer data = new StringBuffer(dataSize);\n for ( int i=0; i<(dataSize); i++ ) {\n data.append((i%10));\n }\n IoBufferEx in = allocator.wrap(allocator.allocate(dataSize+1))\n .put((byte)0x00)\n .putString(data.toString(), UTF_8.newEncoder())\n .flip();\n // As soon as we sent part of a message that exceeds the limit it should throw the exception\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n }", "private boolean tryByteArrayInputStream(){\n return true;\n }", "public boolean isLayoutable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.LAYOUTABLE_FIELD));\n }", "@Test\n public void checkGetRInputSize()\n {\n int width = 5;\n int height = 10;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n // check the case where it creates the matrix first\n assertEquals(width, alg.getR(null, true).numRows);\n assertEquals(height, alg.getR(null, false).numRows);\n\n // check the case where a matrix is provided\n alg.getR(new DMatrixRMaj(width,width),true);\n alg.getR(new DMatrixRMaj(height,width),false);\n\n // check some negative cases\n {\n DMatrixRMaj R = new DMatrixRMaj(height,width);\n alg.getR(R,true);\n assertEquals(width,R.numCols);\n assertEquals(width,R.numRows);\n }\n\n {\n DMatrixRMaj R = new DMatrixRMaj(width-1,width);\n alg.getR(R,false);\n assertEquals(width,R.numCols);\n assertEquals(height,R.numRows);\n }\n }", "byte[] decodeConfigUrlSafe4(byte[] encoded, int size);", "boolean sameDimensions(List<Layer> layers);", "@Test(expected=ProtocolDecoderException.class)\n public void sizeLimitDecodeTextFrameFailEarly2() throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, 20);\n \n int dataSize = 30;\n StringBuffer data = new StringBuffer(dataSize);\n for ( int i=0; i<(dataSize); i++ ) {\n data.append((i%10));\n }\n IoBufferEx in = allocator.wrap(allocator.allocate(dataSize+1))\n .put((byte)0x00)\n .putString(data.toString(), UTF_8.newEncoder())\n .flip();\n decoder.decode(session, (IoBuffer) in.getSlice(10), session.getDecoderOutput());\n // Now if we send the next 12 bytes that should exceed the limit (first byte is control byte, doesn't count)\n decoder.decode(session, (IoBuffer) in.getSlice(12), session.getDecoderOutput());\n }", "public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "static int readRectF(LittleEndianInputStream leis, Rectangle2D bounds) {\n final double x = leis.readFloat();\n final double y = leis.readFloat();\n final double width = leis.readFloat();\n final double height = leis.readFloat();\n bounds.setRect(x, y, width, height);\n\n return 4 * LittleEndianConsts.INT_SIZE;\n }", "public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private Bitmap decodeBitmapImage(int image) {\n int targetW = 300;\n int targetH = 300;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n return BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n }", "@Test\n public void testClientMessageDecodeWithEmptyBuffers() throws Exception {\n testNettyMessageClientDecoding(true, false, false);\n }", "@Test\n public void decodeDouble()\n {\n final double[] array = new double[4];\n array[0] = 0;\n array[1] = 0;\n array[2] = 1;\n array[3] = 1;\n\n final BinaryEncoder encoder = new BinaryEncoder(16);\n assertEquals(3.0, encoder.decode(array), 0.0);\n }", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public static Bitmap decodeFile(String path, int inSimpleSize) {\n Options options = new Options();\n options.inSampleSize = inSimpleSize;\n options.inJustDecodeBounds = false;\n // if (config != null)\n options.inPreferredConfig = Config.RGB_565;// Bitmap.Config.ARGB_4444;\n options.inPurgeable = true;\n options.inInputShareable = true;\n return BitmapFactory.decodeFile(path, options);\n }", "public abstract boolean canDecodeInput(Object source) throws IOException;", "void decodeObject();", "private Bitmap decodeFileFromPath(String path) {\n Uri uri = getImageUri(path);\n InputStream in = null;\n try {\n in = getContentResolver().openInputStream(uri);\n\n //Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n\n BitmapFactory.decodeStream(in, null, o);\n in.close();\n\n int scale = 1;\n int inSampleSize = 1024;\n if (o.outHeight > inSampleSize || o.outWidth > inSampleSize) {\n scale = (int) Math.pow(2, (int) Math.round(Math.log(inSampleSize / (double) Math.max(o.outHeight, o.outWidth)) / Math.log(0.5)));\n }\n\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n in = getContentResolver().openInputStream(uri);\n // Bitmap b = BitmapFactory.decodeStream(in, null, o2);\n int MAXCAP_SIZE = 512;\n Bitmap b = getResizedBitmap(BitmapFactory.decodeStream(in, null, o2), MAXCAP_SIZE);\n in.close();\n\n return b;\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static boolean isArray_infos_size_data() {\n return false;\n }", "@Test\n public void testmagicNumbersForBigDataset() {\n try (FileInputStream inImage = new FileInputStream(INPUT_IMAGE_PATH);\n FileInputStream inLabel = new FileInputStream(INPUT_LABEL_PATH)) {\n\n //==========================================================================================================\n // it reads the next byte of data (8 bits) then put them to left side of an int\n // so the int is 32 bit is fully filled at the end of logic\n // and it moves the cursor to a position after first 32 bits (4 bytes)\n System.out.println(\"Available bytes before read: \" + inImage.available());//47040016\n int magicNumberImages = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfImages = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfRows = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfColumns = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n\n assertTrue(magicNumberImages == 2051);\n assertTrue(numberOfImages == 60000);\n assertTrue(numberOfRows == 28);\n assertTrue(numberOfColumns == 28);\n\n //the same as inImage.skip(16);\n System.out.println(\"Available bytes after read: \" + inImage.available());//47040000\n\n //==========================================================================================================\n // it reads the next byte of data (8 bits) then put them to left side of an int\n // so the int is 32 bit is fully filled at the end of logic\n // and it moves the cursor to a position after first 32 bits (4 bytes)\n System.out.println(\"Available bytes before read: \" + inLabel.available()); //60008\n int magicNumberLabels = (inLabel.read() << 24) | (inLabel.read() << 16) | (inLabel.read() << 8) | (inLabel.read());\n int numberOfLabels = (inLabel.read() << 24) | (inLabel.read() << 16) | (inLabel.read() << 8) | (inLabel.read());\n assertTrue(magicNumberLabels == 2049);\n assertTrue(numberOfLabels == 60000);\n\n System.out.println(\"Available bytes after read: \" + inLabel.available()); //60000\n //the same as inLabel.skip(8);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic boolean onDeserialize(ByteBuffer buf) {\n\t\t\n\t\tframeNum = buf.getInt();\t// 4\n\t\tfX = buf.getShort();\t\t// 2\n\t\tfY = buf.getShort();\t\t// 2\n\t\tfZ = buf.getShort();\t\t// 2\n\t\tkeyPress = buf.get();\t\t// 1\n\t\t\n\t\treturn true;\n\t}", "@Override\n public void dataLoaded(Bitmap bitmap) {\n ivCrop.setImageToCrop(bitmap);\n Bitmap bm = null;\n if (ivCrop.canRightCrop()) bm = ivCrop.crop();\n if (bm != null) ivShow.setImageBitmap(bm);\n }", "static int readRectS(LittleEndianInputStream leis, Rectangle2D bounds) {\n final int x = leis.readShort();\n final int y = leis.readShort();\n final int width = leis.readShort();\n final int height = leis.readShort();\n bounds.setRect(x, y, width, height);\n\n return 4 * LittleEndianConsts.SHORT_SIZE;\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "private byte[] getCover() {\n\t\tbyte[] buffer = new byte[MAX_FB2_SIZE];\n\t\tbyte[] cover64;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((amount < MAX_FB2_SIZE) && (count != -1)) {\n\t\t\t\tcount = this.input.read(buffer, amount, MAX_FB2_SIZE - amount);\n\t\t\t\tif (count != -1)\n\t\t\t\t\tamount += count;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tif (amount == MAX_FB2_SIZE) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tint stop = -1;\n\t\t\tint start = -1;\n\t\t\tint counter = amount - 1;\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == '/')\n\t\t\t\t\t\tif (buffer[counter + 2] == 'b')\n\t\t\t\t\t\t\tif (buffer[counter + 7] == 'y')\n\t\t\t\t\t\t\t\tif (buffer[counter + 8] == '>') {\n\t\t\t\t\t\t\t\t\tstop = counter - 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == 'b')\n\t\t\t\t\t\tif (buffer[counter + 3] == 'n')\n\t\t\t\t\t\t\tif (buffer[counter + 5] == 'r')\n\t\t\t\t\t\t\t\tif (buffer[counter + 6] == 'y') {\n\t\t\t\t\t\t\t\t\tstart = counter;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tif ((start == -1) || (stop == -1)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (counter < stop) {\n\t\t\t\tif (buffer[counter] == '>') {\n\t\t\t\t\tstart = counter + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tint newSize = stop - start + 1;\n\t\t\tcover64 = new byte[newSize];\n\t\t\tSystem.arraycopy(buffer, start, cover64, 0, newSize);\n\t\t}\n\t\treturn Base64Decoder.decode(cover64);\n\t}", "public static int numDimensions_data() {\n return 1;\n }", "private Bitmap decodeBitmapFromUri(Context context, Uri uri) { //, int viewWidth, int viewHeight\n try {\n InputStream inputStream = context.getContentResolver().openInputStream(uri);\n Bitmap decodedBm = BitmapFactory.decodeStream(inputStream);\n Bitmap formatedBm = decodedBm.copy(Bitmap.Config.ARGB_8888, false);\n decodedBm.recycle();\n\n\n// ImageUtils imageUtils = new ImageUtils();\n\n// Bitmap orientedBitmap = setOrientation(uri, formatedBm);\n\n Log.i(\"aaa\", \"Uri: \" + uri + \" Bitmap: \" + formatedBm);\n\n// return orientedBitmap;//scaledBitmap(formatedBm, viewWidth, viewHight);\n return formatedBm;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public void unmarshal(DataInputStream dis)\n{\n super.unmarshal(dis);\n\n try \n {\n munitionID.unmarshal(dis);\n eventID.unmarshal(dis);\n velocity.unmarshal(dis);\n locationInWorldCoordinates.unmarshal(dis);\n burstDescriptor.unmarshal(dis);\n detonationResult = dis.readByte();\n numberOfArticulationParameters = dis.readByte();\n pad = dis.readShort();\n for(int idx = 0; idx < numberOfArticulationParameters; idx++)\n {\n ArticulationParameter anX = new ArticulationParameter();\n anX.unmarshal(dis);\n articulationParameters.add(anX);\n };\n\n } // end try \n catch(Exception e)\n { \n System.out.println(e); \n }\n }", "static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "@Override\n public long[] getLengths() throws ValueFormatException, RepositoryException {\n return null;\n }", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }", "short getFitHeight();", "@Test\n\tpublic void testDecodingCoordinates55()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.decode(55);\n\t\tassertEquals(c.getX(), 10);\n\t\tassertEquals(c.getY(), 4);\n\t}" ]
[ "0.64346766", "0.61364377", "0.51399887", "0.51004833", "0.50957596", "0.5087106", "0.5046298", "0.5022017", "0.5018126", "0.49542722", "0.49402583", "0.4937284", "0.48971418", "0.48961717", "0.4894804", "0.4892185", "0.48899516", "0.48632044", "0.4861749", "0.48505214", "0.48206148", "0.48114398", "0.48030156", "0.47919568", "0.4777799", "0.4767441", "0.47636274", "0.47634912", "0.47589287", "0.47379032", "0.47367278", "0.4731535", "0.47199237", "0.47126895", "0.4712072", "0.47113365", "0.46858937", "0.46799907", "0.46683255", "0.46670666", "0.46608594", "0.4658714", "0.4639918", "0.46184874", "0.46150452", "0.46144155", "0.46129012", "0.4601438", "0.45871317", "0.45869672", "0.4580721", "0.45669648", "0.45641387", "0.45611066", "0.4551328", "0.4551328", "0.4551328", "0.4551328", "0.45494312", "0.45492566", "0.45453706", "0.45452598", "0.4544478", "0.45406613", "0.45404497", "0.45374867", "0.45316446", "0.45186633", "0.45169258", "0.45158958", "0.45148942", "0.45045736", "0.45032412", "0.45032266", "0.44940162", "0.44860443", "0.4485336", "0.44834727", "0.44822434", "0.44784817", "0.44749635", "0.44727424", "0.44700116", "0.44699544", "0.4468658", "0.4467659", "0.4466029", "0.4465274", "0.44609886", "0.44598487", "0.44592795", "0.44559994", "0.44532833", "0.4450131", "0.44476044", "0.44469854", "0.4434654", "0.44343188", "0.44339558", "0.44322985", "0.44315085" ]
0.0
-1
Raw height and width of image
public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) { final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { final int halfHeight = height / 2; final int halfWidth = width / 2; // Calculate the largest inSampleSize value that is a power of 2 and keeps both // height and width larger than the requested height and width. while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) { inSampleSize *= 2; } } return inSampleSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public int getImageHeight()\n\t{\n\t\treturn imgHeight;\n\t}", "public int getImageHeight() {\n\t\treturn imgHeight;\n\t}", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "public int getImageWidth()\n\t{\n\t\treturn imgWidth;\n\t}", "public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }", "public int getImageWidth() {\n\t\treturn imgWidth;\n\t}", "public int height() {\n return picture.height();\n }", "public int height() \n {\n return this.picture.height();\n }", "public int getArea(){\n return imageArea;\n }", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }", "public int getImageWidth()\n {\n \n int retVal = getImageWidth_0(nativeObj);\n \n return retVal;\n }", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public int height() {\n return picture().height();\n }", "public int getImage();", "public native int getWidth() throws MagickException;", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "public int width() {\n return picture.width();\n }", "public static int[] getImageWidthHeight(ImageData[][] imageData){\n ImageData lastImage = imageData[imageData.length-1][imageData.length-1];\n int wid = lastImage.w +lastImage.wIndex;\n int hei = lastImage.h + lastImage.hIndex;\n //Print Details\n System.out.println(\"Last ImageWidthHeight=== Width=\"+wid+\" Height =\"+hei);\n return new int[] {wid,hei};\n }", "public native int getHeight() throws MagickException;", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public int width() \n {\n return this.picture.width();\n }", "public int getHeight() {\n return fullPhoto.getHeight();\n }", "int getImgDataCount();", "public int imHeight() {\n\t\treturn image.getHeight(this);\n\t}", "public int getSizeY() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeY;\r\n}", "@Override\r\n public byte[] getCustomImageInBytes() {\r\n\r\n return imageInByte;\r\n }", "public float getIMG(){\n return profile.getImg();\n }", "public String getSize() {\n return fullPhoto.getSize();\n }", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public int width() {\n return picture().width();\n }", "public int imWidth() {\n\t\treturn image.getWidth(this);\n\t}", "public Rectangle getRect() {\n return new Rectangle(x,y,(imageWeight-50),(imageHeight-50));\n }", "public int getWidth() {\n return fullPhoto.getWidth();\n }", "public abstract int getNormalizedHeight();", "int getMaxRawImages();", "public double getPixelSize() {\n\t\treturn 0;\n\t}", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public int getPicWidth() {\r\n\t\treturn this.image.getIconWidth();\r\n\t}", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public long getImageBase()\n throws IOException, EndOfStreamException\n {\n if (imageState_ == ImageStateType.PE64)\n {\n return peFile_.readInt64(relpos(Offsets.IMAGE_BASE_64.position));\n }\n\n return peFile_.readInt32(relpos(Offsets.IMAGE_BASE_32.position));\n }", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "public native int sizeBlob() throws MagickException;", "public native int getImageType() throws MagickException;", "int getBitsPerPixel();", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "@Test\n public void testGetWidth() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getWidth());\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "@Test\n public void testGetHeight() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getHeight());\n }", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public int getImageCount() {\n return imageCount;\n }", "private static native void setImagesize_0(long nativeObj, int W, int H);", "public ImageInfo getImage() {\n return image;\n }", "public int getH() { return height; }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "private static native void setImageHeight_0(long nativeObj, int val);", "public int getLargeur() {\n return getWidth();\n }", "@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }", "public PImage getImg() {\n \treturn img;\n }", "PImage getImage() {\n return _img;\n }", "int imageCount();", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }", "java.lang.String getImage();", "public int getImageNumber() {\n return imageNumber;\n }", "public abstract BufferedImage getSnapshot();", "public String getImage() { return image; }", "public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}", "public Integer getWidth(){return this.width;}", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public int getHeight() { return height; }", "public int getSizeX() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeX;\r\n}", "public String getSize(int width, int height) {\n try {\n String url;\n\n url = cloudinary.url().format(\"jpg\")\n .transformation(new Transformation().width(width).height(height)).generate(public_id);\n\n return url;\n }catch (NullPointerException e){\n Logger.debug(\"Failed to receive image url.\", e.getMessage());\n return \"null\";\n }\n }", "public int grHeight() { return height; }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "public int getHeight() {return height;}", "Image createImage();", "String getImage();", "private byte[] getImageIDESizeParameter() {\n if (ideSize != 1) {\n final byte[] ideSizeData = new byte[] {\n (byte)0x96, // ID\n 0x01, // Length\n ideSize};\n return ideSizeData;\n } else {\n return new byte[0];\n }\n }", "public BufferedImage getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}", "com.google.protobuf.ByteString\n getImageBytes();", "public double getIm() {\r\n return im;\r\n }", "@Override\n public IIOMetadata getImageData() {\n return super.imageData;\n }", "double getArea() {\n return width * height;\n }", "int getHeight() {return height;}", "public String getPixelInfo()\n {\n return pixelInfo.toString();\n }", "public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }", "public int Height(){\r\n return height;\r\n }", "private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }", "@Test\n\tpublic void testGetHeight() {\n\t\tip = new ImagePlus();\n\t\tip.getHeight();\n\t}" ]
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946", "0.62341326", "0.618197", "0.6158717", "0.615819", "0.615819", "0.615819", "0.6144378", "0.61443424", "0.61401063", "0.6103231", "0.6099903", "0.60651374", "0.60592395", "0.6017553", "0.6014474", "0.5984361", "0.5984188", "0.59672165", "0.59642625", "0.5959984", "0.5959759", "0.59582573", "0.5954042", "0.59415966", "0.5931953", "0.59172827", "0.59166247", "0.5890154", "0.5876868", "0.58619386", "0.5858101", "0.5857994", "0.58552325", "0.5850757", "0.5845183", "0.5841783", "0.582109", "0.58189946", "0.5817898", "0.5814005", "0.5794509", "0.57887757", "0.5787256", "0.5754822", "0.575088", "0.57494265", "0.57246256", "0.5720308", "0.5718694", "0.5708866", "0.57061535", "0.5704408", "0.57041174", "0.56999844", "0.5693438", "0.5690735", "0.5688313", "0.5687101", "0.56773496", "0.5668776", "0.56606424", "0.5660228", "0.56601244", "0.5653856", "0.565332", "0.56526333", "0.5651148", "0.5651148", "0.5651148", "0.5641639", "0.5638461", "0.56312215", "0.56304806", "0.56294745", "0.5629049", "0.5615024", "0.5613165", "0.5608674", "0.5605906", "0.5604374" ]
0.0
-1
SingleTon ton1 = new SingleTon(); SingleTon ton2 = new SingleTon();
public static void main(String[] args) { SingleTon ton1 = SingleTon.getInstance(); SingleTon ton2 = SingleTon.getInstance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[]){\n SingleTonClass myobject= SingleTonClass.objectCreationMethod();\r\n SingleTonClass myobject1= SingleTonClass.objectCreationMethod();\r\n myobject.display();\r\n myobject.b = 600;\r\n myobject1.display();\r\n myobject1.b = 800;\r\n SingleTonClass myobject2 = new SingleTonClass();\r\n myobject2.display();\r\n }", "public static SingleTon createSingleTonObject() {\r\n\t\tif(ston == null) {\r\n\t\t\tston=new SingleTon();\r\n\t\t}\r\n\t\treturn ston;\r\n\t}", "private SingleTon() {\n\t}", "private SingleTon() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "private static void test3() {\n new Son();\n\n }", "public Lotto2(){\n\t\t\n\t}", "public static void main(String[] args) {\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n\n for (int i = 0; i < 10; i++) {\n new Thread(()->{\n SingetonDemo.getInstance();\n },String.valueOf(i)).start();\n }\n\n }", "public Telefone() {\n\t\t\n\t}", "public Telefone() {\n\t}", "public static void main(String[] args) {\n ClassicSingleton singleton = ClassicSingleton.getInstance();\n ClassicSingleton singleton1 = ClassicSingleton.getInstance();\n\n }", "public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }", "public static void main(String[] args){\n DanliHero_e h2 = DanliHero_e.getInstance();\n DanliHero_e h1 = DanliHero_e.getInstance();\n System.out.println(h1);\n System.out.println(h2);\n }", "public static void main(String[] args) {\n\r\n ContaEspecial contaEspecial1 = new ContaEspecial(\"\", \"\");\r\n // ContaEspecial contaEspecial2 = new ContaEspecial();\r\n }", "void testSingleTone(){\n\t\t\n\t\tSingleTone s =SingleTone.getSingleTone();\n\t\ts.f();\n\t}", "public Trening() {\n }", "public static void main(String[] args) {\n\t Nosy firstTv = new Nosy() ; \n\t String textFirst = \"Ala ma kota\" ;\n\t String textSecond = \"Ala ma 2 koty\" ; \n\t \n\t /*Kazda klasa dziedziczy po klasie Object*/\n\t System.out.println(\"tekst\".toString());\n\t System.out.println(firstTv.toString());\n\t \n\t if(textFirst.equals(textSecond)) {\n\t\t System.out.println(\"Te teskty sa sobie rowne\");\n\t }else {\n\t\t System.out.println(\"Te teksty nie sa sobie rowne\");\n\t }\n\t \n\t //Operator sprawdzajacy czy dany obiekt jest instancja danej klasy\n\t if(textFirst instanceof Object) {\n\t\t System.out.println(\"textFirst jest instancja Object\");\n\t }\n\t \n\t Tv.changeVolume();\n\t \n\t /*Klasy nie moga byc statyczne*/\n\t int numberSecond = Nosy.number ;\n }", "public Single() {\n }", "private static void LessonClassObjects() {\n Person person1 = new Person();\n Person person2 = new Person();\n\n //Set title, firstname and lastname\n person1.setTitle(\"Mr.\");\n person1.setFirstName(\"Jordan\");\n person1.setLastName(\"Walker\");\n\n person2.setTitle(\"Mrs.\");\n person2.setFirstName(\"Kelsey\");\n person2.setLastName(\"Walker\");\n\n //Print out\n System.out.println(person1.getTitle()+ \" \" + person1.getFirstName() + \" \" + person1.getLastName());\n System.out.println(person2.getTitle()+ \" \" + person2.getFirstName() + \" \" + person2.getLastName());\n\n // Set super BaseBO class\n person1.setId(7);\n System.out.println(person1.getFirstName() + \" Id is: \" + person1.getId());\n }", "public static void main(String... args) {\n Singletone singletone = Singletone.getInstance();\n try {\n // create obj for Singletone by Accessing private Constructor of\n Class clazz = Class.forName(\"com.krushidj.singletone.Singletone\");\n // get All consturctors of the class\n Constructor[] cons = clazz.getDeclaredConstructors();\n // provide access to private constructor\n cons[0].setAccessible(true);\n Field f = (Singletone.class).getDeclaredField(\"isInstantiated\");\n f.setAccessible(true);\n f.set(true, false);\n // creating obj using the Accessed constructor\n Singletone singletone1 = (Singletone) cons[0].newInstance(null);\n System.out.println(\"singletone hashCode:::\" + singletone.hashCode());\n System.out.println(\"singletone1 hashCode:::\" + singletone1.hashCode());\n } // try\n catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) \r\n\t{\n one obj = new one();\r\n\t}", "private SingleObject(){}", "public static void main(String[] args) {\n\t\tSigleton s=Sigleton.getInstance();\r\n\t\t\r\n\t\tSystem.out.println(s);\r\n\t\t\r\n\t\tSigleton s1=Sigleton.getInstance();\r\n\t\tSystem.out.println(s1);\r\n\t\t\r\n\t\t\r\n\t\tSigleton s2=Sigleton.getInstance();\r\n\t\tSystem.out.println(s2);\r\n\t\t\r\n\t}", "public TTau() {}", "public static SingleObject getInstance(){\n return instance;\n }", "public static void main (String[] args) {\n\n\n Thread t1= new Thread(new Runnable() {\n @Override\n public void run() {\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"Meow!!\");\n System.out.println(\"t1 Name: \"+Singleton.getName());\n }\n });\n\n Thread t2 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t2 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t3 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"WolWol\");\n System.out.println(\"t3 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t4 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t4 Name: \"+Singleton.getName());\n\n }\n });\n\n// t1.start();\n// t2.start();\n// t3.start();\n// t4.start();\n\n \n }", "public EstacionDeTren(String nombreCiudad,int precioMaquina1,int precioMaquina2)\n {\n ciudad = nombreCiudad;\n maquina1 = new TicketMachine(precioMaquina1);\n maquina2 = new TicketMachine(precioMaquina2);\n }", "private SingleObject(){\n }", "public ConsoleTTT(){\n\t\tttt = new TicTacToe();\n\t}", "public static void main(String[] args) {\n Employee employee = new GovernmentEmployee();\n\n GovernmentEmployee employee2 = (GovernmentEmployee) employee;\n employee.commonMethod();\n \n GovernmentEmployee governmentEmployee = new GovernmentEmployee();\n Employee governmentEmployee1 = governmentEmployee;\n\n\n }", "public Tigre() {\r\n }", "private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void one() {\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) {\n\t\tSingleT s1 = SingleT.getInstance(); //객체 생성 된 것을 가져옴.\r\n\t\ts1.func();\r\n\t\tSystem.out.println(s1.a);\r\n\t\ts1.a = 200;\r\n\t\tSystem.out.println(s1.a);\r\n\t\tSingleT s2 = SingleT.getInstance();\r\n\t\tSystem.out.println(s2.a);\t\t\t\t\t\t\t//heap 가 하나라서 a에 200이 들어가 있음.\r\n\t\t\r\n\t}", "private SingleObject()\r\n {\r\n }", "public static void main(String[] args) {\n Siswa objek1 = new Siswa(\"roby\", \"A2.1900158\",\"TI\");\n Siswa objek2 = new Siswa(\"otong\",\"A2.00001\",\"SI\");\n objek1.nama=\"fuad\";\n objek2.nama=\"mh ihsan\";\n System.out.println(objek1.nama);\n\n\n\n \n\n \n\n\n \n \n \n}", "public static void main(String[] args) {\n\t\tSingleNumber singleNumber = new SingleNumber();\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tEtudiant E1 = new Etudiant(\"Toto\");\n\t\tEtudiant E2 = new Etudiant(\"Toto\");\n\t\t//System.out.println(E1.travailler());\n\t\t//System.out.println(E2.seReposer());\n\t\tE1.travailler();\n\t\tE2.seReposer();\n}", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static MotorEncoderFixture<Talon> getTalonPair() {\n return new MotorEncoderFixture<Talon>() {\n @Override\n protected Talon giveMotorController() {\n return new Talon(kTalonChannel);\n }\n\n @Override\n protected DigitalInput giveDigitalInputA() {\n return new DigitalInput(0);\n }\n\n @Override\n protected DigitalInput giveDigitalInputB() {\n return new DigitalInput(1);\n }\n\n @Override\n public int getPDPChannel() {\n return kTalonPDPChannel;\n }\n };\n }", "public NEATTranscriberBain() {\n\t}", "public static void main(String[] args){\n All_in_One<String> nama = new All_in_One<>();\r\n nama.setManusia(\"Wildan\");\r\n System.out.println(\"Nama Saya: \"+nama.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Integer\r\n All_in_One<Integer> umur = new All_in_One<>();\r\n umur.setManusia(19);\r\n System.out.println(\"Usia Saya: \"+umur.getManusia()+\" Tahun\");\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Boolean\r\n All_in_One<Boolean> kondisi = new All_in_One<>();\r\n kondisi.setManusia(true);\r\n System.out.println(\"Saya Sedang Belajar Java: \"+kondisi.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Float\r\n All_in_One<Float> IPK = new All_in_One<>();\r\n IPK.setManusia(3.5f);\r\n System.out.println(\"Nilai IPK Saya: \"+IPK.getManusia());\r\n \r\n //Membuat Instance dan Mendefinisikan Tipe Data Character\r\n All_in_One<Character> Karakter = new All_in_One<>();\r\n Karakter.setManusia('W');\r\n System.out.println(\"Huruf Awalan Nama Saya Adalah: \"+Karakter.getManusia());\r\n }", "NewClass1 createNewClass1();", "private Grabber() {\n\t\tmotor = new CANTalon(Constants.grabberTalonMotorChannel);\n\t}", "public static void main(String[] args) {\n Animal A1 = new Animal(5,\"Animal\",1,\"Carnivores\",1);\n Dog d1 = new Dog(2,\"Miller\",4,\"Herbivores\",1);\n\n d1.eat();\n A1.eat();\n\n }", "public AllOne() {\n \n }", "public static void main(String[] args) {\n\n Car c = new BasicCar();\n Car c1 = new SpyCar();\n Car c2 = new CarWithSunRoof();\n Car c3 = new SpyCarWhitSunRoof();\n }", "public static void main(String[] args) {\n System.out.println(\"Test de la partie 1:\");\n System.out.println(\"--------------------\");\n\n Position position1 = new Position(0, 1);\n Position position2 = new Position(1, 0);\n Position position3 = new Position(1, 1);\n\n Neurone neuron1 = new Neurone(position1, 0.5);\n Neurone neuron2 = new Neurone(position2, 1.0);\n Neurone neuron3 = new Neurone(position3, 2.0);\n\n neuron1.connexion(neuron2);\n neuron2.connexion(neuron3);\n neuron1.recoitStimulus(10);\n\n System.out.println(\"Signaux : \");\n System.out.println(neuron1.getSignal());\n System.out.println(neuron2.getSignal());\n System.out.println(neuron3.getSignal());\n\n System.out.println();\n System.out.println(\"Premiere connexion du neurone 1\");\n System.out.println(neuron1.getConnexion(0));\n\n\n // FIN TEST DE LA PARTIE 1\n\n // TEST DE LA PARTIE 2\n System.out.println(\"Test de la partie 2:\");\n System.out.println(\"--------------------\");\n\n Position position5 = new Position(0, 0);\n NeuroneCumulatif neuron5 = new NeuroneCumulatif(position5, 0.5);\n neuron5.recoitStimulus(10);\n neuron5.recoitStimulus(10);\n System.out.println(\"Signal du neurone cumulatif -> \" + neuron5.getSignal());\n\n // FIN TEST DE LA PARTIE 2\n\n // TEST DE LA PARTIE 3\n System.out.println();\n System.out.println(\"Test de la partie 3:\");\n System.out.println(\"--------------------\");\n Cerveau cerveau = new Cerveau();\n\n // parametres de construction du neurone:\n // la position et le facteur d'attenuation\n cerveau.ajouterNeurone(new Position(0,0), 0.5);\n cerveau.ajouterNeurone(new Position(0,1), 0.2);\n cerveau.ajouterNeurone(new Position(1,0), 1.0);\n\n // parametres de construction du neurone cumulatif:\n // la position et le facteur d'attenuation\n cerveau.ajouterNeuroneCumulatif(new Position(1,1), 0.8);\n cerveau.creerConnexions();\n cerveau.stimuler(0, 10);\n\n System.out.println(\"Signal du 3eme neurone -> \" + cerveau.sonder(3));\n System.out.println(cerveau);\n // FIN TEST DE LA PARTIE 3\n }", "private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}", "public Troop() //make a overloaded constructor \n\t{\n\t\ttroopType = \"light\"; \n\t\tname = \"Default\";\n\t\thp = 50;\n\t\tatt = 20;\n\t}", "public static void main(String[] args) {\n Animal myAnimal = new Animal();\n myAnimal.animalSound();\n\n myAnimal = new Dog();\n myAnimal.animalSound();\n\n myAnimal = new Cat();\n myAnimal.animalSound();\n\n }", "private static void multiThreading(){\n\t\tSystem.out.println(\"\\nCreating new two separate instances of Singleton using Multi threading\");\n\t\tExecutorService service = Executors.newFixedThreadPool(2);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.shutdown();\n\t}", "public static void main(String [] args){\r\n get a= new get();\r\n get2 b= new get2();\r\n get3 c= new get3();\r\n a.eat();\r\n b.eat();\r\n c.eat();\r\n }", "public static void main(String[] args) {\n // maison.chauffer();\n // System.out.println(\"temperature : \"+maison.temperature);\n // maison.refroidir();\n // System.out.println(\"temperature : \"+maison.temperature);\n\n Batiment batiment = new Batiment(30.);\n System.out.println(\"temperature : \"+batiment.temperature);\n\n DataCenter datacenter = new DataCenter(25.0);\n System.out.println(\"temperature : \"+datacenter.temperature);\n System.out.println(\"temperature : \"+datacenter.temperature);\n datacenter.refroidir();\n System.out.println(\"temperature : \"+datacenter.temperature);\n datacenter.refroidir();\n System.out.println(\"temperature : \"+datacenter.temperature);\n\n Maison maison = new Maison(35.);\n System.out.println(\"temperature : \"+maison.temperature);\n maison.chauffer();\n System.out.println(\"temperature : \"+maison.temperature);\n maison.chauffer();System.out.println(\"temperature : \"+maison.temperature);\n maison.refroidir();\n System.out.println(\"temperature : \"+maison.temperature);\n\n }", "private SingletonStatementGenerator() {\n\t}", "public static void main(String[] args){\n\n DbSingleton instance = DbSingleton.getInstance();\n\n //DbSingleton test = new DbSingleton();\n DbSingleton instance2 = DbSingleton.getInstance();\n\n System.out.println(instance);\n System.out.println(instance2);\n\n }", "public TwoStaImpQue() {\n this.stack1 = new Stack<>();\n this.stack2 = new Stack<>();\n }", "void mo16690b(T t, T t2);", "public static void main(String args[]) {\n Human obj = new Boy();\n /* Reference is of HUman type and object is\n * of Human type.\n */\n Human obj2 = new Human();\n obj.walk();\n obj2.walk();\n }", "private static void Demo4() {\n\t\tClass<?> class1 = null;\r\n\t\tPerson person1 = null;\r\n\t\tPerson person2 = null;\r\n\t\ttry {\r\n\t\t\tclass1 = Class.forName(\"CH16.Person\");\r\n\t\t\tConstructor<?>[] con = class1.getConstructors();\r\n\t\t\ttry {\r\n\t\t\t\tperson1 = (Person) con[0].newInstance(20, \"Hongten\");\r\n\t\t\t\tSystem.out.println(person1.getAge() + \";\" + person1.getName());\r\n\t\t\t\tperson2 = (Person) con[1].newInstance();\r\n\t\t\t\tperson2.setAge(100);\r\n\t\t\t\tperson2.setName(\"haha\");\r\n\t\t\t\tSystem.out.println(person2.getAge() + \";\" + person2.getName());\r\n\r\n\t\t\t} catch (InstantiationException 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 (IllegalAccessException 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 (IllegalArgumentException 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 (InvocationTargetException 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} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "private TAPosition()\n {\n\n }", "public static void main(String[] args) {\n Siswa s1 = new Siswa();\n //mengakses property (variable/\"punya apa?\")\n s1.nama = \"Amir\";\n s1.NIS = \"09876\";\n s1.nilai = 89.5f;\n\n System.out.println(\"Nama\\t: \"+s1.nama);\n System.out.println(\"NIS\\t: \"+s1.NIS);\n System.out.println(\"Nilai\\t: \"+s1.nilai);\n\n Siswa s2 = new Siswa();\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n s2.nama=\"Wati\";\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n\n Siswa s3 = s2;\n System.out.println(\"Nama s3\\t: \"+s3.nama);\n s3.nama = \"Ina\";\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n\n //cloning\n Siswa s4 = new Siswa();\n s4.nama = s2.nama;\n\n float nilai_s1 = s1.cekNilai();\n System.out.println(\"Nilai s1:\"+nilai_s1);\n System.out.println(\"Nilai s2:\"+s2.cekNilai());\n System.out.println(\"Nilai s3:\"+s3.cekNilai());\n }", "public static void main(String[] args) {\n\t\tbacteria[] newobject = new bacteria[2];\n\t\tsalmonela object1 = new salmonela();\n\t\tstreptococus object2 = new streptococus();\n\t\tnewobject[0]=object1; \n\t\tnewobject[1]=object2; \n\t\tfor (bacteria x: newobject) {\n\t\t\tx.noise();\n\t\t}\n\n\t}", "public Station station1() {\n return station1;\n }", "public static void createArmy() {\n Unit unitOne = new Unit(\"Unit One\");\n Unit unitTwo = new Unit(\"Unit Two\");\n Unit unitThree = new Unit(\"Unit Three\");\n Unit unitFour = new Unit(\"Unit Four\");\n Unit unitFive = new Unit(\"Unit Five\");\n\n Knight knightOne = new Knight(\"Knight One\");\n Knight knightTwo = new Knight(\"Knight Two\");\n Knight knightThree = new Knight(\"Knight Three\");\n\n General general = new General(\"General\");\n Doctor doctor = new Doctor(\"Doctor\");\n }", "public Casts(){\n\t\t\n\t}", "@Test\n public void test2(){\n System.out.println(Son.son);\n }", "new LED();", "private void go(Network n1) {\n\t\t\n\t\tNetwork n2 = new Network(2, n1);\n\t\tNetwork n3 = new Network(2, n2);\n\t\tSystem.out.println(\"\\tn3.p.p.id = \" + n3.p.p.id);\n\t}", "public Game()//Method was given\n {\n parser = new Parser();\n player = new Player();\n }", "public static void main(String[] args) {\n PA obj1 = new PA(); // this are two objects we just created\n Object obj2 = new PA(); //this are two objects we just created\n obj1.go();\n ((PA)obj2).go();\n\n PB obj3 = new PC();\n obj3.go();\n\n ((PC)obj3).math();\n ((PI)obj3).math();\n\n PB obj4 = new PB();\n obj4.go();\n ((PA)obj4).go();\n ((PI)obj4).math();\n\n }", "public static void main(String[] args) {\n\t\tsingleton1 s1_1=singleton1.getInstance();\n\t\ts1_1.print();\n\t\tsingleton1 s1_2=singleton1.getInstance();\n\t\ts1_2.print();\n\t\tsingleton2 s2_1=singleton2.getInstance();\n\t\ts2_1.print();\n\t\tsingleton2 s2_2=singleton2.getInstance();\n\t\ts2_2.print();\n\t\tsingleton3 s3_1=singleton3.getInstance();\n\t\ts3_1.print();\n\t\tsingleton3 s3_2=singleton3.getInstance();\n\t\ts3_2.print();\n\t\tsingleton4 s4_1=singleton4.getInstance();\n\t\ts4_1.print();\n\t\tsingleton4 s4_2=singleton4.getInstance();\n\t\ts4_2.print();\n\t}", "public static void main(String[] args) {\n\t\tHeros h1 = new Heros(\"timi\", 123.5, 0.8, 100, 95);\r\n\t\tSupports s1 = new Supports(\"daqiao\", 200.2, 0.3, 50, 80, 30);\r\n\t\ts1.healself();\r\n\t\ts1.heal(h1);\r\n\t\tSystem.out.println(h1.life);\r\n\t\tSystem.out.println(s1.life);\r\n\t\ts1.run();\r\n\t\tHeros ssx = new Heros();\r\n\t\tADheros ad1 = new ADheros();\r\n\t\tAPheros ap1 = new APheros();\r\n\t\tssx.kill(ad1);\r\n\t\tssx.kill(ap1);\r\n\t\tItems it1 = new Items(\"Paul\");\r\n\t\tItems it2 = new Items(\"Kobe\", 180);\r\n\t\tSystem.out.println(it1.toString());\r\n\t\tSystem.out.println(it1.equals(s1));\r\n\t\tSystem.out.println(it1.equals(it2));\r\n\t\t\r\n\t\tOuterClass oc1 = new OuterClass(10);\r\n\t\tOuterClass.InnerClass in1 = oc1.new InnerClass(); //内部类实例化的固定格式!\r\n\t\tSystem.out.println(in1.getOa());\r\n\t\toc1.creatClass();\r\n\r\n\t}", "public static void main(String args[]){\n Register reg1 = new Register();\n Register reg2 = new Register();\n\n //check add transaction function\n reg1.AddTansaction(10.21);\n reg1.printDivider();\n\n //check other member functions\n reg2.AddTansaction(20.21);\n reg2.AddTansaction(-10.01);\n reg2.getTransac();\n reg2.printDivider();\n\n //check static function\n reg2.getNum();\n reg2.resetRegister();\n reg2.getNum();\n reg2.getTransac();\n\n }", "public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}", "Dog(){\n\t\t\n\t\t//I want to create a chemicals object. Inorder to do this, I have to first create a Cardiac obj, then a Cells obj, then a Chemicals object.\n\t\t//I have to create a Chemicals object, to get a chemicals constructor \n\t\tnew Cardiac().new Cells().new Chemicals();\n\t\t\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "public static void main(String args[]){\n \n SingletonObject object = SingletonObject.getInstance();\n \n object.showMessage();\n \n SingletonObject object2 = SingletonObject.getInstance();\n System.out.println(object==object2);\n \n }", "public static void main(String[] args) { \n\t\tSystem.out.println(\"Part 1 Demo with same instance.\");\n\t\tFoo fooA = new Foo(\"ObjectOne\");\n\t\tMyThread thread1a = new MyThread(fooA, \"Dog\", \"A\");\n\t\tMyThread thread2a = new MyThread(fooA, \"Cat\", \"A\");\n\t\tthread1a.start();\n\t\tthread2a.start();\n\t\twhile (thread1a.isAlive() || thread2a.isAlive()) { };\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t \n\t\t/* Part 1 Demo -- difference instances */ \n\t\tSystem.out.println(\"Part 1 Demo with different instances.\");\n\t\tFoo fooB1 = new Foo(\"ObjectOne\");\n\t\tFoo fooB2 = new Foo(\"ObjectTwo\");\n\t\tMyThread thread1b = new MyThread(fooB1, \"Dog\", \"A\");\n\t\tMyThread thread2b = new MyThread(fooB2, \"Cat\", \"A\");\n\t\tthread1b.start();\n\t\tthread2b.start();\n\t\twhile (thread1b.isAlive() || thread2b.isAlive()) { };\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t \n\t\t/* Part 2 Demo */ \n\t\tSystem.out.println(\"Part 2 Demo.\");\n\t\tFoo fooC = new Foo(\"ObjectOne\");\n\t\tMyThread thread1c = new MyThread(fooC, \"Dog\", \"A\");\n\t\tMyThread thread2c = new MyThread(fooC, \"Cat\", \"B\");\n\t\tthread1c.start();\n\t\tthread2c.start();\n\t}", "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "public Excellon ()\n {}", "public BlackJackGame()\r\n\t{\r\n\t\tplayer1 = new Player();\r\n\t\tdealer = new Player();\r\n\t\tcardDeck = new Deck();\r\n\t\tendGame = false;\r\n\t}", "public static void main(String[] args) \n {\n p3 obj1 = new p3(); \n obj1.display(); \n p3 obj2 = new p3(); \n obj2.display(); \n p3 obj3 = new p3(); \n obj3.display(); \n }", "TT createTT();", "static Football getFootBall(){\n return new Football();\n }", "public static void main(String s[])\n\t{\n\t\t Honda h=new Honda();\n\t\t h.start();\n\t\t h.accelarate();\n\t\t Bajaj b=new Bajaj();\n\t\t b.start();\n\t\t b.accelarate();\n\t}", "public Monster(T green) { // constructor\n this.green = green;\n }", "public static void main(String[] args) {\n\t\t Constructor s1 = new Constructor(124567,\"nagaraju\",85); \r\n\t\t Constructor s2 = new Constructor(321578,\"sudha\",90); \r\n\t\t \r\n\t\t s1.display(); \r\n\t\t s2.display();\r\n\t}", "public static void main(String[] args) {\n Animal a1 = new Animal();\n \n //objeto animal parametrizado\n Animal a2 = new Animal(LocalDate.of(2020, 6, 4), \"Saphi\", Animal.Tipo.GATO, 400, Animal.Estado.DURMIENDO);\n \n //imprimir a1 y a2\n System.out.println(\"Animal a1:\\n \" + a1.toString());\n System.out.println(\"Animal a2:\\n \" + a2.toString());\n \n \n //clonar a2 en a3\n Animal a3 = Animal.clonar(a2);\n System.out.println(\"Animal a3:\\n\" + a3.toString());\n \n //contador de instancias\n System.out.println(\"N de instancias: \" + Animal.getContadorInstancias());\n \n //creacion de dos personas\n Persona p1 = new Persona(\"Juan\", 33);\n Persona p2 = new Persona(\"Alba\", 21);\n \n //p1 despierta a los animales\n p1.llamar(a1);\n p1.llamar(a2);\n p1.llamar(a3);\n\n //p2 juega con a2 12m min\n p2.jugar(a2, 120);\n System.out.println(\"Peso de a2 despues de jugar con p2: \" + a2.getGramos());\n \n \n //p1 alimenta a a1 1000 gramos, nuevo peso\n p1.alimentar(a1, 1000);\n System.out.println(\"Peso de a1 despues de comer: \" + a1.getGramos());\n \n //FALTA CONTROLAR EXCEPCION\n \n //p1 juega con a1 200 min, nuevo peso\n// p1.jugar(a1, 200);\n// System.out.println(\"El animal a1 pesa \" + a1.getGramos() + \" después de jugar\");\n \n \n }", "Oracion createOracion();", "public Lab1(Integer speed1, Integer speed2) {\n trackStatus = new Semaphore[6];\n for (int i = 0; i < trackStatus.length; i++)\n trackStatus[i] = new Semaphore(1);\n new Thread(new Train(1, speed1, SOUTH, 0)).start();\n new Thread(new Train(2, speed2, NORTH, 5)).start();\n }", "public static void main(String[] args){ Rectangle box1 = new Rectangle(5,4);\n// System.out.println(box1.getArea());\n// System.out.println(box1.getPerimeter());\n//// Rectangle box2 = new Square(5);\n// System.out.println(box2.getArea());\n// System.out.println(box2.getPerimeter());\n//\n Measurable box1 = new Square(5);\n System.out.println(\"Square \" + box1.getPerimeter());\n System.out.println(\"Square \" + box1.getArea());\n box1 = new Rectangle(4,5);\n System.out.println(\"Rectangle \" + box1.getPerimeter());\n System.out.println(\"Rectangle \" + box1.getArea());\n }", "@Override\r\n\tpublic void init() {\n\r\n\t PetriNet _net = new PetriNet(this, \"PhilosopherNet\", true, true);\r\n\t ContDistExponential dist1 = new ContDistExponential(this, \"waitdist1\", 2, true, true);\r\n\t ContDistExponential dist2 = new ContDistExponential(this, \"waitdist1\", 3, true, true);\r\n\t ContDistExponential dist3 = new ContDistExponential(this, \"durdist1\", 3, true, true);\r\n\r\n\t\t// Declaration of the used types of Tokens. These have to be objects\r\n\t\t// implementing the TokenType interface. Note that there is only one\r\n\t\t// object for each type, no matter how many Tokens of that type may\r\n\t\t// exist. A different object (even of the same class) always declares a\r\n\t\t// new, different type of token.\r\n\t\t\r\n\t\tTokenType type1 = new Fork();\r\n\t\tTokenType type2 = new Fork();\r\n\t\tTokenType type3 = new Fork();\r\n\t\tTokenType type4 = new Fork();\r\n\t\tTokenType type5 = new Fork();\r\n\t\tMap<TokenType, Integer> tokens = TokenMultiSetTools.arrayToMap(\r\n\t\t\t\tnew TokenType[] { type1, type2, type3, type4, type5 },\r\n\t\t\t\tnew int[] { 1, 1, 1, 1, 1 });\r\n\r\n\t\tPlace p1 = new Place(this, _net, \"p1\", tokens, true, true, true);\r\n\r\n\t\tTransitionMode t1 = new TransitionMode(this, _net, \"t1\", dist1, dist3, true, true);\r\n\t\tTransitionMode t2 = new TransitionMode(this, _net, \"t2\", dist2, dist3, true, true);\r\n\t\tTransitionMode t3 = new TransitionMode(this, _net, \"t3\", dist1, dist3, true, true);\r\n\t\tTransitionMode t4 = new TransitionMode(this, _net, \"t4\", dist2, dist3, true, true);\r\n\t\tTransitionMode t5 = new TransitionMode(this, _net, \"t5\", dist1, dist3, true, true);\r\n\r\n\t\tTransition trans = new Transition(this, _net, \"Mahlzeit\", true, true);\r\n\t\ttrans.addTransitionMode(t1);\r\n\t\ttrans.addTransitionMode(t2);\r\n\t\ttrans.addTransitionMode(t3);\r\n\t\ttrans.addTransitionMode(t4);\r\n\t\ttrans.addTransitionMode(t5);\r\n\r\n\t\tt1.addInputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type1,\r\n\t\t\t\ttype2 }, new int[] { 1, 1 }));\r\n\t\tt1.addOutputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type1,\r\n\t\t\t\ttype2 }, new int[] { 1, 1 }));\r\n\r\n\t\tt2.addInputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type2,\r\n\t\t\t\ttype3 }, new int[] { 1, 1 }));\r\n\t\tt2.addOutputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type2,\r\n\t\t\t\ttype3 }, new int[] { 1, 1 }));\r\n\r\n\t\tt3.addInputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type3,\r\n\t\t\t\ttype4 }, new int[] { 1, 1 }));\r\n\t\tt3.addOutputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type3,\r\n\t\t\t\ttype4 }, new int[] { 1, 1 }));\r\n\r\n\t\tt4.addInputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type4,\r\n\t\t\t\ttype5 }, new int[] { 1, 1 }));\r\n\t\tt4.addOutputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type4,\r\n\t\t\t\ttype5 }, new int[] { 1, 1 }));\r\n\r\n\t\tt5.addInputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type5,\r\n\t\t\t\ttype1 }, new int[] { 1, 1 }));\r\n\t\tt5.addOutputPlace(p1, TokenMultiSetTools.arrayToMap(new TokenType[] { type5,\r\n\t\t\t\ttype1 }, new int[] { 1, 1 }));\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n//\t\t// **** attempt to instantiate the constructor (compiler prevents it) ****\r\n//\t\tSingleton singleton = new Singleton();\r\n\t\t\r\n\t\t// **** instantiate the singleton ****\r\n\t\tSingleton w = Singleton.getSingleInstance();\r\n\t\tSystem.out.println(\"main <<< w.str ==>\" + w.str + \"<==\");\r\n\t\t\r\n\t\t// ***** instantiate the singleton ****\r\n\t\tSingleton x = Singleton.getSingleInstance();\r\n\t\t\r\n\t\t// **** alter the string ****\r\n\t\tx.str = x.str.toUpperCase();\r\n\t\tSystem.out.println(\"main <<< x.str ==>\" + x.str + \"<==\");\r\n\t\t\r\n\t\t// **** w and x refer to the same instance ****\r\n\t\tSystem.out.println(\"main <<< w.str ==>\" + w.str + \"<==\");\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t\r\n//\t\t// **** attempt to instantiate the constructor (compiler prevents it) ****\r\n//\t\tMySingleton mySingleton = new MySingleton();\r\n\t\t\r\n\t\t// **** instantiate the my singleton ****\r\n\t\tMySingleton y = MySingleton.MySingleton();\r\n\t\tSystem.out.println(\"main <<< y.str ==>\" + y.str + \"<==\");\r\n\t\t\r\n\t\t// **** instantiate my singleton ****\r\n\t\tMySingleton z = MySingleton.MySingleton();\r\n\t\t\r\n\t\t// **** alter the string ****\r\n\t\tz.str = z.str.toUpperCase();\r\n\t\tSystem.out.println(\"main <<< z.str ==>\" + z.str + \"<==\");\r\n\t\t\r\n\t\t// **** y and z refer to the same instance ****\r\n\t\tSystem.out.println(\"main <<< y.str ==>\" + y.str + \"<==\");\r\n\t}", "public static void main(String[] args) {\n\tSession_Two obj = new Session_Two();\n\t Session_Two obj1 = new Session_Two();\n\t Session_Two obj2 = new Session_Two();\n\t \n\t \n\t System.out.println(\"========================================\");\n\t System.out.println(obj.my_var);\n\t System.out.println(obj1.my_var);\n\t System.out.println(obj2.my_var);\n\t\n\t obj2.my_var =\"New Test\";\n\n\t System.out.println(\"========================================\");\n\t System.out.println(obj.my_var);\n\t System.out.println(obj1.my_var);\n\t System.out.println(obj2.my_var);\n\t \n\t//primitive datatypes\n\t \n\t byte a = 127;\n\t long b = 1234343423424l;\n\t float x = 10.05f;\n\t double y = 213623425356566756.77588d;\n\t \n\t float c = 10f/6f;\n\t double d = 10d/6d;\n\t \n\t/* System.out.println(c);\n\t System.out.println(d);*/\n\t \n\t double i = 10d;\n\t \n\tint ab = (int)i;\n\t \t \n\t System.out.println(i);\n\t System.out.println(ab);\n\t\n\t \n\t \n}", "public static void main(String[]arg){\n Person person1 = new Person();\n person1.setName(\"Bright Kingsley\");\n person1.setPhone(\"08133193153\");\n person1.setAddress(\"Umudike\");\n System.out.println(\"The name is :\"+person1.getName());\n System.out.println(\"The Address is :\"+person1.getAddress());\n System.out.println(\"The Phone Number is :\"+person1.getPhone());\n \n Pearson ps1= new Pearson();\n Pearson ps= new Pearson(\"Chris\", \"070412937854\",\"Aba\");\n System.out.println(\"The name is :\"+ps.getName());\n System.out.println(\"The Address is :\"+ps.getAddress());\n System.out.println(\"The Phone Number is :\"+ps.getPhone());\n \n }", "@Test\n public void test8(){\n Son son = new Son();\n }", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }" ]
[ "0.72455114", "0.7091031", "0.6885129", "0.6858256", "0.64905953", "0.6256603", "0.6129407", "0.6058501", "0.5828043", "0.5805904", "0.57953703", "0.5789949", "0.57862496", "0.57576215", "0.57031417", "0.56849694", "0.5670018", "0.5560554", "0.55523443", "0.55315685", "0.55011487", "0.5470173", "0.5457688", "0.5454153", "0.5453464", "0.54528874", "0.54404116", "0.5415351", "0.54035103", "0.5402191", "0.5394497", "0.5392556", "0.53853416", "0.5374239", "0.53668064", "0.5354864", "0.5341437", "0.5338865", "0.53283507", "0.5317903", "0.53113145", "0.5302142", "0.5291698", "0.527329", "0.52673024", "0.5262756", "0.52582353", "0.5250957", "0.524471", "0.52384394", "0.52218646", "0.5215027", "0.521083", "0.52076524", "0.5199184", "0.51985824", "0.5191046", "0.5179478", "0.5175603", "0.5173828", "0.5161375", "0.5156492", "0.51530707", "0.5141493", "0.51396173", "0.5138383", "0.5130886", "0.51267076", "0.5116553", "0.51161265", "0.5114029", "0.51040053", "0.51030505", "0.50980633", "0.5096319", "0.50928485", "0.5085515", "0.5082684", "0.5081634", "0.50800425", "0.507376", "0.5073097", "0.5063477", "0.50620764", "0.50475764", "0.50406504", "0.5040226", "0.5039594", "0.5035375", "0.50347227", "0.5023846", "0.50191146", "0.5013432", "0.5013147", "0.5010679", "0.50089586", "0.50077486", "0.50076795", "0.5005285", "0.5002276" ]
0.7429155
0
Instantiate the new Fragment
@Override public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref) { final Bundle args = pref.getExtras(); final Fragment fragment = getSupportFragmentManager().getFragmentFactory().instantiate( getClassLoader(), pref.getFragment()); fragment.setArguments(args); fragment.setTargetFragment(caller, 0); // Replace the existing Fragment with the new Fragment getSupportFragmentManager().beginTransaction() .replace(R.id.settings, fragment) .addToBackStack(null) .commit(); setTitle(pref.getTitle()); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public FragmentMy() {\n }", "public Fragment_Tutorial() {}", "@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 static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public ExploreFragment() {\n\n }", "public progFragment() {\n }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public NewShopFragment() {\n }", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public CuartoFragment() {\n }", "public static OpenFrgament newInstance() {\n OpenFrgament fragment = new OpenFrgament();\n// Bundle args = new Bundle();\n//\n// fragment.setArguments(args);\n return fragment;\n }", "private void instanciateFragments() {\r\n connectionFragment = new ConnectionFragment();\r\n mNetworkConnectionFragment = new NetworkConnectionFragment();\r\n mMotorFragment = new MotorFragment();\r\n mProcessorFragment = new ProcessorFragment();\r\n mPWMFragment = new PWMFragment();\r\n mOrderTestFragment = new OrderTestFragment();\r\n mTestsFragment = new TestsFragment();\r\n mPositionTestFragment = new PositionTestFragment();\r\n mOrderPilotFragment = new OrderPilotFragment();\r\n mCommandPilotFragment = new CommandPilotFragment();\r\n mPositionPilotFragment = new PositionPilotFragment();\r\n mCartographerFragment = new CartographerFragment();\r\n mHistoryFragment = new HistoryFragment();\r\n }", "public CreatePatientFragment() {\n\n }", "public VehicleFragment() {\r\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public DisplayFragment() {\n\n }", "public static NewGameFragment newInstance() {\n return new NewGameFragment();\n }", "public RickAndMortyFragment() {\n }", "public WelcomeFragment() {}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n return fragment;\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}", "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 EmployeeFragment() {\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 RegisterFragment() {\n }", "public static HabilidadesSlidePageFragment newInstance() {\n HabilidadesSlidePageFragment fragment = new HabilidadesSlidePageFragment();\n fragment.setRetainInstance(true);\n return fragment;\n\n }", "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 MyFragment getInstance(int position) {\n\n //Construct the fragment\n MyFragment myFragment = new MyFragment();\n\n //New bundle instance\n Bundle args = new Bundle();\n\n //Passing in the Integer position of the fragment into the argument\n args.putInt(\"position\", position);\n\n //Setting the argument of the fragment to be the position\n myFragment.setArguments(args);\n\n //Return the fragment\n return myFragment;\n }", "public WkfFragment() {\n }", "public ProductsFragment() {\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\t// TODO Auto-generated method stub\n\t\t//Log.d(TAG, \"this is CrimeListActivity \", new Exception());\n\t\treturn new CrimeListFragment();\n\t\t\n\t}", "private void newFragmentCall() {\n\n dismissDialog();\n\n Fragment fragment = new HotelDetailsTabFragment();\n Bundle bundle = new Bundle();\n\n bundle.putParcelable(\"HotelDetails\", hotelDetailInfoResponse);\n bundle.putParcelable(\"TripAdvisorDeatil\", tripAdvisorDataResponse);\n bundle.putParcelable(\"HotelRoomRate\", hotelRatesResponse);\n fragment.setArguments(bundle);\n\n setFragmentTransaction(fragment, \"NOAnimation\");\n }", "@Override\n\tpublic Fragment createFragment() {\n\t\treturn new SelectDialogFragment();\n\t}", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public MainActivityFragment() {\n }", "public MainActivityFragment() {\n }", "public RecipeVideoFragment() {\n }", "public MyGoodsFragment() {\n }", "public static SelectionFragment newInstance() {\n SelectionFragment fragment = new SelectionFragment();\n return fragment;\n }", "public MainActivityFragment(){\n\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 MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "public static Fragmento_Exterior newInstance()\n {\n return new Fragmento_Exterior();\n }", "public ServiceItemFragmentNew() {\n }", "public HomeFragment() {}", "public PersonDetailFragment() {\r\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static OrderFragment newInstance() {\n OrderFragment fragment = new OrderFragment();\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new Timer_detail_screen();\n\t}", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public static QuizStartFragment newInstance() {\n return new QuizStartFragment();\n }", "public CarModifyFragment() {\n }", "private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }", "public static Fragment newInstance() {\n return (new ProfilFragment());\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static Fragment Instance() {\n\t\t\n\t\treturn new GCourtInfoDetailsFragment();\n\t}", "private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }", "public TestDetailFragment() {\n }", "public VenueDetailFragment() {\r\n\t}", "FragmentType createFragmentType();", "public VideoFragment() {\n }", "public static SlideShowFragment newInstance(int position) {\n SlideShowFragment fragment = new SlideShowFragment();\n //Create bundle\n Bundle args = new Bundle();\n //put Current Position in the bundle\n args.putInt(ARG_CURRENT_POSITION, position);\n //set arguments of SlideShowFragment\n fragment.setArguments(args);\n //return fragment instance\n return fragment;\n }", "public static SlideShowFragment newInstance(int position) {\n SlideShowFragment fragment = new SlideShowFragment();\n //Create bundle\n Bundle args = new Bundle();\n //put Current Position in the bundle\n args.putInt(ARG_CURRENT_POSITION, position);\n //set arguments of SlideShowFragment\n fragment.setArguments(args);\n //return fragment instance\n return fragment;\n }", "public static ProjectsFragment newInstance() {\n ProjectsFragment fragment = new ProjectsFragment();\n// Bundle args = new Bundle();\n// fragment.setArguments(args);\n return fragment;\n }", "public AddReminderFragment() {\n }", "public StintFragment() {\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static PlaylistFragment newInstance() {\n PlaylistFragment fragment = new PlaylistFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ServicesFragment newInstance(String tag) {\n\n ServicesFragment fragment = new ServicesFragment();\n fragment.type=tag;\n Bundle args = new Bundle();\n return fragment;\n }", "public RestaurantFragment() {\n }", "public static TVListFragment newInstance() {\n TVListFragment fragment = new TVListFragment();\n return fragment;\n }", "public ItemFragment() {\n }", "public static CollectionFragment newInstance() {\n CollectionFragment fragment = new CollectionFragment();\n return fragment;\n }", "public TechFragment() {\n }", "public FavoriteFragment() {\n }", "public ForecastFragment() {\n }", "public static TauschboerseFragment newInstance() {\n TauschboerseFragment fragment = new TauschboerseFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public NoteActivityFragment() {\n }", "public CustomerFragment() {\n }", "public static Fragment newInstance(int sectionNumber) {\n Fragment fragment=null;\n switch (sectionNumber){\n case 1:fragment=new ContactosFragment();\n break;\n case 2:fragment=new SeriesFragment();\n break;\n case 3:fragment=new FavoritosFragment();\n break;\n }\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\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\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\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\n\n }", "public static QualificationFragment newInstance() {\n QualificationFragment fragment = new QualificationFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public AddToCardFragment() {\n }", "public HomeSectionFragment() {\n\t}", "public static ShuffleFragment newInstance() {\n ShuffleFragment fragment = new ShuffleFragment();\n return fragment;\n\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() { }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_class, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_creation, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@NonNull\n @Override\n public Fragment createFragment(int position) {\n return QuranFragment.arrayList.get(position);\n\n }", "public static PlaceholderFragment newInstance(int position) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(\"position\", position);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.79080194", "0.78737", "0.7799445", "0.75798535", "0.7488878", "0.74608016", "0.72799397", "0.7236062", "0.7230987", "0.7207063", "0.7169229", "0.7168543", "0.7142899", "0.7141591", "0.7122081", "0.7100687", "0.7094165", "0.70908815", "0.70863473", "0.70766616", "0.7061991", "0.7038136", "0.7033481", "0.7009204", "0.69926065", "0.69855434", "0.69751775", "0.69671714", "0.6965944", "0.69436973", "0.69408154", "0.6931062", "0.6927191", "0.6895442", "0.6875709", "0.68719196", "0.6867094", "0.6864068", "0.6863442", "0.6859031", "0.6838981", "0.6838981", "0.6837741", "0.68355656", "0.6834384", "0.6830232", "0.68282837", "0.68222487", "0.6820788", "0.68198794", "0.68180865", "0.68110985", "0.6799133", "0.67878455", "0.67826056", "0.67811996", "0.6778273", "0.677505", "0.67647606", "0.6757931", "0.67505044", "0.6745501", "0.6743281", "0.67319196", "0.6730547", "0.6729701", "0.67090267", "0.6706686", "0.67042583", "0.67042583", "0.6694211", "0.669371", "0.6687944", "0.6683385", "0.6681903", "0.6679584", "0.66783714", "0.6673409", "0.66716564", "0.6671067", "0.66691273", "0.66666085", "0.6666433", "0.6663707", "0.66576606", "0.66505706", "0.6644115", "0.66389143", "0.66326916", "0.6628274", "0.6621759", "0.66211444", "0.66174585", "0.66152173", "0.66152173", "0.66152173", "0.6612617", "0.66108555", "0.66103786", "0.66042423", "0.66019905" ]
0.0
-1
Create DCI info from DciValue object
public ChartDciConfig(DciValue dci) { nodeId = dci.getNodeId(); dciId = dci.getId(); dciName = dci.getName(); dciDescription = dci.getDescription(); type = dci.getDcObjectType(); name = dci.getDescription(); color = UNSET_COLOR; lineWidth = 2; area = false; showThresholds = false; invertValues = false; multiMatch = false; instance = ""; //$NON-NLS-1$ column = ""; //$NON-NLS-1$ displayFormat = "%s"; //$NON-NLS-1$ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createValue() {\n value = new GisInfoCaptureDO();\n }", "public DValParser(int objid, int num)\r\n/* 31: */ {\r\n/* 32: 88 */ this.objectId = objid;\r\n/* 33: 89 */ this.numDVRecords = num;\r\n/* 34: 90 */ this.validityDataCached = true;\r\n/* 35: */ }", "public T caseDeriveValueCS(DeriveValueCS object) {\r\n return null;\r\n }", "private void createValue()\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_usage = ((DERBitString)new ASN1InputStream(\n\t\t\t\t\t new ByteArrayInputStream(getDEROctets())).readObject()).intValue();\n\t\t} catch (Exception a_e)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Could not read key usage from byte array!\");\n\t\t}\n\t}", "public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }", "public String getCreationValue(Object obj, Database db)\r\n throws ReflectiveOperationException {\r\n if (fieldAccess.isConstantGetValue()) {\r\n return (String) getValue(obj);\r\n }\r\n else if (obj != null) {\r\n return db.formatValue(getValue(obj), databaseSetMethod.getParameterTypes()[1], false);\r\n }\r\n else {\r\n return \"?\";\r\n }\r\n }", "DCMIRecordType createDCMIRecordType();", "private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}", "public ValueInfo toValueInfo() {\r\n return new ValueInfo(name, typeName, isFinal);\r\n }", "public String getValueCd() {\n return this.valueCd;\n }", "public DerivCdRecord() {\n\t\tsuper(com.glennbech.usda.model.tables.DerivCd.DERIV_CD);\n\t}", "abstract protected ValueFactory getValueFactory();", "public static Value createValue(Object val) {\n if (val instanceof String) {\n return new NominalValue((String) val);\n } else if (val instanceof Double) {\n return new NumericValue((Double) val);\n }\n return UnknownValue.getInstance();\n }", "CsticValueModel createInstanceOfCsticValueModel(int valueType);", "abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;", "private static DataValue dv(Object o) {\n return new DataValue(new Variant(o), StatusCode.GOOD, null, DateTime.now());\n }", "public V getCValue();", "ObjectValue createObjectValue();", "private CinaImageDataSetInformation createDataSetInformation()\n {\n CinaImageDataSetInformation metadataDataSetInfo = new CinaImageDataSetInformation();\n metadataDataSetInfo.setSampleCode(replicaSampleId.getSampleCode());\n metadataDataSetInfo.setSpaceCode(replicaSampleId.getSpaceLevel().getSpaceCode());\n metadataDataSetInfo.setDataSetType(globalState.getImageDataSetType().getDataSetType());\n metadataDataSetInfo.setDataSetKind(DataSetKind.PHYSICAL);\n List<String> parentDataSetCodes =\n Collections.singletonList(bundleMetadataDataSetInformation.getDataSetCode());\n metadataDataSetInfo.setParentDataSetCodes(parentDataSetCodes);\n metadataDataSetInfo.setShareId(bundleMetadataDataSetInformation.getShareId());\n return metadataDataSetInfo;\n }", "public void writeToDicom(DicomObject dcDo)\n {\n\t\tif (codeValue != null)\n\t\t\twriteString(dcDo, Tag.CodeValue, VR.SH, \"1C\", codeValue);\n\t\t\n\t\tif (longCodeValue != null)\n\t\t\twriteString(dcDo, TagLongCodeValue, VR.SH, \"1C\", codeValue);\n\t\t\n\t\tif (urnCodeValue != null)\n\t\t\twriteString(dcDo, TagUrnCodeValue, VR.SH, \"1C\", urnCodeValue);\n\t\t\n if (codingSchemeDesignator != null)\n\t\t\twriteString(dcDo, Tag.CodingSchemeDesignator, VR.SH, \"1C\", codingSchemeDesignator);\n \n\t\tif (codingSchemeVersion != null)\n\t\t\twriteString(dcDo, Tag.CodingSchemeVersion, VR.SH, \"1C\", codingSchemeVersion);\n\t\t\n writeString(dcDo, Tag.CodeMeaning, VR.LO, 1, codeMeaning);\n writeString(dcDo, Tag.ContextIdentifier, VR.CS, 3, contextIdentifier);\n writeString(dcDo, Tag.ContextUID, VR.UI, 3, contextUid);\n \n\t\tif (contextIdentifier != null)\n\t\t{\n\t\t\twriteString(dcDo, Tag.MappingResource, VR.CS, \"1C\", mappingResource);\n\t\t\twriteString(dcDo, Tag.ContextGroupVersion, VR.DT, \"1C\", contextGroupVersion);\n\t\t}\n\t\t\n\t\twriteString(dcDo, Tag.ContextGroupExtensionFlag, VR.CS, 3, contextGroupExtensionFlag);\n\t\t\n if (contextGroupExtensionFlag != null)\n\t\t{\n\t\t\tif (contextGroupExtensionFlag.equals(\"Y\"))\n\t\t\t{\n\t\t\t\twriteString(dcDo, Tag.ContextGroupLocalVersion, VR.DT, \"1C\", contextGroupLocalVersion);\n\t\t\t\twriteString(dcDo, Tag.ContextGroupExtensionCreatorUID, VR.UI, \"1C\", contextGroupExtensionCreatorUid);\n\t\t\t}\n\t\t}\t\t \n }", "public void validarCI(FacesContext context, UIComponent component, Object value) throws ValidatorException {\r\n //921999488001\r\n String ci=\"\";\r\n boolean t;\r\n ci = value.toString();\r\n \r\n if(ci.length() == 9){\r\n ci = \"0\"+ci;\r\n }\r\n \r\n if(ci.length() == 10){\r\n \r\n t = Validaciones.validacionCedula(ci);\r\n if (t) {\r\n //Codigo para autocompletar una empresa\r\n //emp.setNombre_empresa(\"funciono\");\r\n } else {\r\n FacesMessage msg = new FacesMessage(\"Cédula de Identidad no valida\");\r\n msg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\r\n throw new ValidatorException(msg);\r\n }\r\n }\r\n }", "private TypeDictionaryDicoDomaineProjetCimic(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public static TypeDictionaryDicoDomaineProjetCimic get(int value) {\n\t\tswitch (value) {\n\t\t\tcase AGRI_VALUE: return AGRI;\n\t\t\tcase WATER_VALUE: return WATER;\n\t\t\tcase ECONM_VALUE: return ECONM;\n\t\t\tcase EDUCT_VALUE: return EDUCT;\n\t\t\tcase ELEC_VALUE: return ELEC;\n\t\t\tcase BRDG_VALUE: return BRDG;\n\t\t\tcase ROAD_VALUE: return ROAD;\n\t\t\tcase HEALTH_VALUE: return HEALTH;\n\t\t\tcase PUBL_VALUE: return PUBL;\n\t\t\tcase SPORTS_VALUE: return SPORTS;\n\t\t\tcase TRSPT_VALUE: return TRSPT;\n\t\t}\n\t\treturn null;\n\t}", "public ConventionSecondCnfmDetailsDialog(Context context,\n\t\t\tConsultaConvenioDTO consultaConvenioDTO, String cnfmValue,\n\t\t\tString cellPhoneno) {\n\t\tsuper(context);\n\t\tthis.context = context;\n\t\tthis.cnfmValue = cnfmValue ;\n\t\tthis.cellPhoneno = cellPhoneno;\n\t\tthis.consultaConvenioDTO = consultaConvenioDTO;\n\t\tsharedpreferences = context.getSharedPreferences(\n\t\t\t\tServiApplication.MyPREFERENCES, Context.MODE_PRIVATE);\n\t\tdto = UserDetailsDAO.getInstance().getRecordsuser_name(\n\t\t\t\tDBHandler.getDBObj(Constants.READABLE),\n\t\t\t\tsharedpreferences.getString(\"user_name\", \"\"));\n\t\tthis.cnfmValue1 = cnfmValue;\n\t}", "Values createValues();", "private DatabaseType(Integer value, String displayValue, String className) {\n this.value = value;\n this.displayValue = displayValue;\n this.className = className;\n }", "public static DataItem toDataItem(Object index, Object value) {\n\t\tDataItem di = new DataItem();\n\n\t\tIndexValue iv = new IndexValue();\n\t\tiv.setItem(index);\n\t\t\n\t\tArrayList<IndexValue> indices = new ArrayList<IndexValue>();\n\t\tindices.add(iv);\n\n\t\tDataValue dv = new DataValue();\n\t\tdv.setItem(value);\n\t\t\n\t\tdi.setIndexes(indices);\n\t\tdi.setValue(dv);\n\t\treturn di;\n\t}", "Object getValueFrom();", "private Records_type createNSD(String diag_code, String additional)\n {\n Records_type retval = new Records_type();\n retval.which = Records_type.nonsurrogatediagnostic_CID;\n DefaultDiagFormat_type default_diag = new DefaultDiagFormat_type();\n retval.o = default_diag;\n \n default_diag.diagnosticSetId = reg.oidByName(\"diag-1\");\n \n if ( diag_code != null )\n default_diag.condition = BigInteger.valueOf( Long.parseLong(diag_code) );\n else\n default_diag.condition = BigInteger.valueOf(0);\n \n default_diag.addinfo = new addinfo_inline14_type();\n default_diag.addinfo.which = addinfo_inline14_type.v2addinfo_CID;\n default_diag.addinfo.o = (Object)(additional);\n \n return retval;\n }", "@Override\n\tprotected Document buildDocument(LireObject s, String id)\n\t\t\tthrows IOException, CorruptIndexException, BoFException {\n\t\tDocument doc = super.buildDocument(s, id);\n\t\t\n\t\tCcDominantColor dominantColor = (CcDominantColor) s.getFeature(CcDominantColor.class);\n\t\tString fieldValue = buildFiledValue(dominantColor);\n\t\tdoc.add(new Field(Parameters.CC_DCD, fieldValue, Field.Store.NO, Field.Index.ANALYZED, Field.TermVector.YES));\n\t\treturn doc;\t\t\n\t}", "DomainValuesType createDomainValuesType();", "Object toOpenValue(Object value) throws OpenDataException {\n if (value == null) {\n return null;\n } else {\n return toNonNullOpenValue(value);\n }\n }", "protected static Object getObjectFromValue(Value value)\n {\n switch (value.getDataType())\n {\n case Boolean:\n return value.getBoolean();\n case Integer:\n return value.getInteger();\n case Long:\n return value.getLong();\n case Double:\n return value.getDouble();\n default:\n return value.getString();\n }\n }", "io.dstore.values.IntegerValueOrBuilder getValueCharacteristicIdOrBuilder();", "public String getDicomValue(final String dicomTag) {\r\n String data;\r\n final String groupPrefix = \"dicom_0x\";\r\n final String elemPrefix = \"el_0x\";\r\n\r\n // look for the dicom tag\r\n for (int varIndex = 0; varIndex < getVarArray().length; varIndex++) {\r\n\r\n if (getVarElem(varIndex).name.equals(groupPrefix + FileInfoMinc.getTagGroup(dicomTag))) {\r\n\r\n for (int attIndex = 0; attIndex < getVarElem(varIndex).vattArray.length; attIndex++) {\r\n\r\n if (getVarElem(varIndex).getVattElem(attIndex).name.equals(elemPrefix\r\n + FileInfoMinc.getTagElem(dicomTag))) {\r\n data = new String(\"\");\r\n\r\n if (getVarElem(varIndex).getVattElem(attIndex).nc_type == FileInfoMinc.NC_CHAR) {\r\n\r\n for (int i = 0; i < getVarElem(varIndex).getVattElem(attIndex).nelems; i++) {\r\n data += getVarElem(varIndex).getVattElem(attIndex).values[i];\r\n }\r\n } else {\r\n\r\n for (int i = 0; i < getVarElem(varIndex).getVattElem(attIndex).nelems; i++) {\r\n data += \"\" + getVarElem(varIndex).getVattElem(attIndex).values[i] + \" \";\r\n }\r\n }\r\n\r\n return data;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // look for the dicom tag's minc equivalent\r\n String mincTag = null;\r\n\r\n for (int i = 0; i < FileInfoDicom.anonymizeTagIDs.length; i++) {\r\n\r\n if (FileInfoDicom.anonymizeTagIDs[i].equals(dicomTag)) {\r\n mincTag = FileInfoMinc.dicomToMincVarMap[i];\r\n }\r\n }\r\n\r\n // get the minc equivalent\r\n if (mincTag != null) {\r\n\r\n for (int varIndex = 0; varIndex < getVarArray().length; varIndex++) {\r\n\r\n if (getVarElem(varIndex).name.equals(FileInfoMinc.getTagGroup(mincTag))) {\r\n\r\n for (int attIndex = 0; attIndex < getVarElem(varIndex).vattArray.length; attIndex++) {\r\n\r\n if (getVarElem(varIndex).getVattElem(attIndex).name.equals(FileInfoMinc.getTagElem(mincTag))) {\r\n data = new String(\"\");\r\n\r\n if (getVarElem(varIndex).getVattElem(attIndex).nc_type == FileInfoMinc.NC_CHAR) {\r\n\r\n for (int i = 0; i < getVarElem(varIndex).getVattElem(attIndex).nelems; i++) {\r\n data += getVarElem(varIndex).getVattElem(attIndex).values[i];\r\n }\r\n } else {\r\n\r\n for (int i = 0; i < getVarElem(varIndex).getVattElem(attIndex).nelems; i++) {\r\n data += \"\" + getVarElem(varIndex).getVattElem(attIndex).values[i] + \" \";\r\n }\r\n }\r\n\r\n return data;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // didn't find the tag\r\n return null;\r\n }", "public abstract DecimalDt getValueElement();", "NumberValue createNumberValue();", "public T caseDiscreteValue(DiscreteValue object) {\n\t\treturn null;\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setVoiDpreds(java.util.Map<java.lang.CharSequence,java.lang.Object> value) {\n validate(fields()[10], value);\n this.voiDpreds = value;\n fieldSetFlags()[10] = true;\n return this; \n }", "io.dstore.values.IntegerValue getValueCharacteristicId();", "public Value(){}", "private Valuable makeValuable(double value) {\n if (currency.equals(\"Baht\")) {\n if (value == 1 || value == 2 || value == 5 || value == 10)\n return new Coin(value, currency);\n else if (value == 20 || value == 50 || value == 100 || value == 500 || value == 1000) {\n return new BankNote(value, currency);\n }\n } else if (currency.equals(\"Ringgit\")) {\n if (value == 0.05 || value == 0.1 || value == 0.2 || value == 0.5)\n return new Coin(value, currency);\n else if (value == 1 || value == 2 || value == 5 || value == 10 || value == 20 || value == 50 || value == 100)\n return new BankNote(value, currency);\n }\n throw new IllegalArgumentException(\"Cannot create \" + value + \" \" + currency);\n }", "CdapServiceDescriptor createCdapServiceDescriptor();", "public Value() {}", "IntegerValue getValueObject();", "public void setValueCd(String valueCd) {\n this.valueCd = valueCd;\n }", "public static VariableValue createValueObject(int value) {\n\t\treturn new IntegerValue(value);\n\t}", "public String getDicValue() {\n\t\treturn dicValue;\n\t}", "FacturaEstadoDTO obtenerFacturaEstadoDTO(Integer codigoCompania, Long codigoFactura, Object factura, String idUser, String catalogoTipoCambio) throws SICException;", "DD createDD();", "RowValue createRowValue();", "public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }", "public String createFormValidValueComponent(FormValidValue newValidValue, String parentId, String userName)\n //throws DMLException \n {\n\n // check if the user has the privilege to create valid value\n // This check only need to be at the form level -skakkodi\n /** boolean create = \n this.hasCreate(newValidValue.getCreatedBy(), \"QUEST_CONTENT\", \n newValidValue.getConteIdseq());\n if (!create) {\n DMLException dml = new DMLException(\"The user does not have the privilege to create valid value.\");\n dml.setErrorCode(INSUFFICIENT_PRIVILEGES);\n throw dml;\n }\n **/\n \n \n InsertFormValidValue insertValidValue = new InsertFormValidValue(this.getDataSource());\n Map out = insertValidValue.executInsertCommand(newValidValue,parentId);\t\t//JR417 formDesc, formText and formIdVersion is not supposed to be empty (fixed)\n\n String returnCode = (String) out.get(\"p_return_code\");\n String returnDesc = (String) out.get(\"p_return_desc\");\t//JR417 gave error: ORA-01400: cannot insert NULL into (\"SBREXT\".\"QUEST_CONTENTS_EXT\".\"VERSION\") etc\n String newFVVIdSeq = (String) out.get(\"p_val_idseq\");\n \n if (!StringUtils.doesValueExist(returnCode)) {\n updateValueMeaning(newFVVIdSeq, newValidValue.getFormValueMeaningText(), \n newValidValue.getFormValueMeaningDesc(), userName);\n// return newFVVIdSeq;\n }\n //JR417 begin KISS\n else{\n// DMLException dml = new DMLException(returnDesc);\n// dml.setErrorCode(this.ERROR_CREATEING_VALID_VALUE);\n// throw dml;\n \tlogger.info(\"JDBCFormValidValueDAOV2.java#createFormValidValueComponent Failed to create VV, error = [\" + returnDesc + \"]\");\n }\n return newFVVIdSeq;\n //JR417 end\n }", "public CDAccount() {\r\n\t\t//termOfCD = 0;\r\n\t\t//maturityDate = new DateInfo();\r\n\t}", "public void setAccidentDetail(typekey.AccidentDetailPEL value);", "public T caseInitOrDeriveValueCS(InitOrDeriveValueCS object) {\r\n return null;\r\n }", "String getConstantValue(Descriptor d, int index) {\n try {\n ConstantPool.CPInfo cpInfo = constant_pool.get(index);\n\n switch (cpInfo.getTag()) {\n case ConstantPool.CONSTANT_Integer: {\n ConstantPool.CONSTANT_Integer_info info =\n (ConstantPool.CONSTANT_Integer_info) cpInfo;\n String t = d.getValue(constant_pool);\n if (t.equals(\"C\")) { // character\n return getConstantCharValue((char) info.value);\n } else if (t.equals(\"Z\")) { // boolean\n return String.valueOf(info.value == 1);\n } else { // other: assume integer\n return String.valueOf(info.value);\n }\n }\n\n case ConstantPool.CONSTANT_String: {\n ConstantPool.CONSTANT_String_info info =\n (ConstantPool.CONSTANT_String_info) cpInfo;\n return getConstantStringValue(info.getString());\n }\n\n default:\n return constantWriter.stringValue(cpInfo);\n }\n } catch (ConstantPoolException e) {\n return \"#\" + index;\n }\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:08.680 -0500\", hash_original_method = \"4B0B8276597CEA521E1E338B4AADD471\", hash_generated_method = \"9283ED1C2044F4178961436920D7FF12\")\n \nstatic ImageDescriptor parse(byte[] rawData, int valueIndex) {\n ImageDescriptor d = new ImageDescriptor();\n try {\n d.width = rawData[valueIndex++] & 0xff;\n d.height = rawData[valueIndex++] & 0xff;\n d.codingScheme = rawData[valueIndex++] & 0xff;\n\n // parse image id\n d.imageId = (rawData[valueIndex++] & 0xff) << 8;\n d.imageId |= rawData[valueIndex++] & 0xff;\n // parse offset\n d.highOffset = (rawData[valueIndex++] & 0xff); // high byte offset\n d.lowOffset = rawData[valueIndex++] & 0xff; // low byte offset\n\n d.length = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));\n } catch (IndexOutOfBoundsException e) {\n CatLog.d(\"ImageDescripter\", \"parse; failed parsing image descriptor\");\n d = null;\n }\n return d;\n }", "public DVDDetails getDetails(String dvdID);", "public ValueWrapper(Object value) {\n\t\tsuper();\n\t\tthis.value = value;\n\t}", "protected abstract D createData();", "private DigitalIDEntity getDigitalIDEntityForLogin(final String identifierType, final String identifierValue, final String correlationID) {\n val response = this.restUtils.getDigitalID(identifierType, identifierValue, correlationID);\n if (response.isEmpty()) {\n throw new SoamRuntimeException(\"Digital ID was null - unexpected error\");\n }\n return response.get();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.IntegerValue, io.dstore.values.IntegerValue.Builder, io.dstore.values.IntegerValueOrBuilder> \n getValueCharacteristicIdFieldBuilder() {\n if (valueCharacteristicIdBuilder_ == null) {\n valueCharacteristicIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.IntegerValue, io.dstore.values.IntegerValue.Builder, io.dstore.values.IntegerValueOrBuilder>(\n getValueCharacteristicId(),\n getParentForChildren(),\n isClean());\n valueCharacteristicId_ = null;\n }\n return valueCharacteristicIdBuilder_;\n }", "public void setC_d_i(Integer c_d_i) {\n this.c_d_i = c_d_i;\n }", "private Object instObj(final Value v) throws QueryException {\r\n return cls.isInstance(v) ? v : v.toJava();\r\n }", "public io.dstore.values.IntegerValue.Builder getValueCharacteristicIdBuilder() {\n \n onChanged();\n return getValueCharacteristicIdFieldBuilder().getBuilder();\n }", "public SimpleContext(Object value, ConstraintDescriptor<?> descriptor) {\r\n this.value = value;\r\n this.descriptor = descriptor;\r\n }", "public interface ImpExValues {\n\n /**\n * String value (default for all import data).\n */\n String STRING = \"STRING\";\n /**\n * Boolean value (e.g. for flags).\n */\n String BOOLEAN = \"BOOLEAN\";\n /**\n * Long value (e.g. for PK's).\n */\n String LONG = \"LONG\";\n /**\n * Integer value.\n */\n String INT = \"INT\";\n /**\n * BigDecimal value.\n */\n String DECIMAL = \"DECIMAL\";\n /**\n * Date value. Format: \"yyyy-MM-dd\" {@link DateUtils#ldParseSDT(String)}\n */\n String DATE = \"DATE\";\n /**\n * Date value. Format: \"yyyy-MM-dd HH:mm:ss\" {@link DateUtils#ldtParseSDT(String)}\n */\n String DATETIME = \"DATETIME\";\n /**\n * Date value. Format: \"yyyy-MM-dd HH:mm:ss\" {@link DateUtils#zdtParseSDT(String)}\n */\n String ZONEDTIME = \"ZONEDTIME\";\n /**\n * Date value. Format: \"yyyy-MM-dd HH:mm:ss\" {@link DateUtils#iParseSDT(String)}\n */\n String INSTANT = \"INSTANT\";\n\n}", "public DichVuBean getDV_iD(String iDDV) throws ClassNotFoundException, SQLException{\n\t\treturn dichVuDAO.getDV_iD(iDDV);\n\t}", "public TmDistributeValueRecord() {\n super(TmDistributeValue.TM_DISTRIBUTE_VALUE);\n }", "public abstract String getCrcdReimbTypeCd();", "private PdfPCell getDetailCell(Date value, int align)\n {\n if (value.equals(Einstellungen.NODATE))\n {\n return getDetailCell(\"\", Element.ALIGN_LEFT);\n }\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.yyyy\");\n return getDetailCell(sdf.format(value), align);\n }", "public void createValue() {\r\n value = new qa.gov.mol.ProcessAcknowledgment();\r\n }", "public String createValidValue(FormValidValue newVV, String parentId, String userName)\n\t\t\tthrows DataAccessException {\n\t\t\n\t\tString vvidseq = generateGUID();\n\t\tString recidseq = generateGUID();\n\t\t\n\t\tint res = createtValidValue(newVV, vvidseq);\n\t\t\n\t\tif (res == 1) {//success\n\t\t\tres = createComponentValidValueMapping(recidseq, parentId, vvidseq, newVV, userName);\n\t\t}\n\t\t\n\t\treturn (res == 1) ? vvidseq : null;\n\t}", "protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }", "public BabbleValue() {}", "String getValueId();", "private Data[] getInts(double value, int npoints, int nattributes)\n\t{\n\t\tData[] data = new Data[npoints];\n\t\tint val = (int) (value * Integer.MAX_VALUE);\n\t\tfor (int i = 0; i < npoints; i++)\n\t\t\tdata[i] = nattributes == 1 ? new DataInt(val)\n\t\t: new DataArrayOfInts(new int[] { val, val });\n\t\t\treturn data;\n\t}", "public DataPrimitive(double value) {\n\t\tsuper();\n\t\tthis.value = Double.toString(value);\n\t}", "private static Object toJavaObject(Value value) throws RepositoryException {\n switch (value.getType()) {\n case PropertyType.DECIMAL:\n return value.getDecimal();\n case PropertyType.BINARY:\n return new LazyInputStream(value);\n case PropertyType.BOOLEAN:\n return value.getBoolean();\n case PropertyType.DATE:\n return value.getDate();\n case PropertyType.DOUBLE:\n return value.getDouble();\n case PropertyType.LONG:\n return value.getLong();\n case PropertyType.NAME: // fall through\n case PropertyType.PATH: // fall through\n case PropertyType.REFERENCE: // fall through\n case PropertyType.STRING: // fall through\n case PropertyType.UNDEFINED: // not actually expected\n default: // not actually expected\n return value.getString();\n }\n }", "public DataPrimitive(int value) {\n\t\tsuper();\n\t\tthis.value = Integer.toString(value);\n\t}", "DataType createDataType();", "public static com.vividsolutions.jts.geom.Coordinate coord2JTS(IomObject value) \n\tthrows Iox2jtsException \n\t{\n\t\tif(value==null){\n\t\t\treturn null;\n\t\t}\n\t\tString c1=value.getattrvalue(Iom_jObject.COORD_C1);\n\t\tString c2=value.getattrvalue(Iom_jObject.COORD_C2);\n\t\tString c3=value.getattrvalue(Iom_jObject.COORD_C3);\n\t\tdouble xCoord;\n\t\ttry{\n\t\t\txCoord = Double.parseDouble(c1);\n\t\t}catch(Exception ex){\n\t\t\tthrow new Iox2jtsException(\"failed to read C1 <\"+c1+\">\",ex);\n\t\t}\n\t\tdouble yCoord;\n\t\ttry{\n\t\t\tyCoord = Double.parseDouble(c2);\n\t\t}catch(Exception ex){\n\t\t\tthrow new Iox2jtsException(\"failed to read C2 <\"+c2+\">\",ex);\n\t\t}\n\t\tcom.vividsolutions.jts.geom.Coordinate coord=null;\n\t\tif(c3==null){\n\t\t\tcoord=new com.vividsolutions.jts.geom.Coordinate(xCoord, yCoord);\n\t\t}else{\n\t\t\tdouble zCoord;\n\t\t\ttry{\n\t\t\t\tzCoord = Double.parseDouble(c3);\n\t\t\t}catch(Exception ex){\n\t\t\t\tthrow new Iox2jtsException(\"failed to read C3 <\"+c3+\">\",ex);\n\t\t\t}\n\t\t\tcoord=new com.vividsolutions.jts.geom.Coordinate(xCoord, yCoord,zCoord);\n\t\t}\n\t\treturn coord;\n\t}", "public interface ICommInfo\n{\n /**\n * Entity Name for CommInfo.\n */\n public static final String ENTITY_NAME = \"CommInfo\";\n\n /**\n * FieldId for UId.\n */\n public static final Number UID = new Integer(0); // bigint(20)\n\n /**\n * FieldId for Name.\n */\n public static final Number NAME = new Integer(1); // varchar(30)\n\n /**\n * FieldId for Description.\n */\n public static final Number DESCRIPTION = new Integer(2); // varchar(80)\n\n /**\n * FieldId for isDefaultTpt.\n */\n public static final Number IS_DEFAULT_TPT = new Integer(3); // boolean\n\n /**\n * FieldId for HostName.\n */\n // public static final Number HOST = new Integer(4); // varchar(30)\n\n /**\n * FieldId for Port Number.\n */\n // public static final Number PORT = new Integer(5); // int(10)\n\n /**\n * FieldId for Protocol Type.\n */\n public static final Number PROTOCOL_TYPE = new Integer(4); // varchar(10)\n\n /**\n * FieldId for Version of Protocol.\n */\n // public static final Number PROTOCOL_VERSION = new Integer(7); // varchar(10)\n\n /**\n * FieldId for Version of Implementation.\n */\n public static final Number TPT_IMPL_VERSION = new Integer(5); // varchar(6)\n\n /**\n * FieldId for Protocol Specific Information.\n */\n //public static final Number PROTOCOL_DETAIL = new Integer(9); // text\n\n /**\n * FieldId for Reference Id.\n */\n public static final Number REF_ID = new Integer(6); // varchar(30)\n\n /**\n * FieldId for Version for this data.\n */\n public static final Number VERSION = new Integer(7); // double\n\n /**\n * FieldId for CanDelete flag .\n */\n public static final Number CAN_DELETE = new Integer(8); //Boolean\n\n /**\n * FieldId for Partner Category. A Integer.\n */\n\n public static final Number PARTNER_CAT = new Integer(9);\n\n /**\n * FieldId for ISDISABLE.\n */\n\n public static final Number IS_DISABLE = new Integer(10);\n\n /**\n * FieldId for isMaster. A Integer.\n */\n public static final Number IS_PARTNER = new Integer(11); //Boolean\n\n /**\n * FieldId for URL.\n */\n public static final Number URL = new Integer(12);\n\n /**\n * Static constant for TPTImplVersion.\n */\n public static final String DEFAULT_TPTIMPL_VERSION = \"030000\";\n\n /**\n * Constant value for protocol type.\n */\n public static final String JMS = \"JMS\";\n\n /**\n * Constant value for protocol type.\n */\n public static final String HTTP = \"HTTP\";\n\n /**\n * Constant value for protocol type.\n */\n public static final String SOAP = \"SOAP-HTTP\";\n\n /**\n * Constant value for protocol type.\n */\n public static final String UPC = \"UPC\";\n\n /**\n * Constant value for URL Format.\n */\n public static final String URL_FORMAT =\n \"protocol://[username:password@]host:port/URI\";\n}", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "ConstValue createConstValue();", "public static Record transform(Record record) {\n String id = record.getId();\n Record target = new Record(MetadataFormat.DC, id);\n target.addField(new DCField(DCTerm.IDENTIFIER, id));\n for (Field field : record.getFields()) {\n String tag = field.getTag();\n if (field.getType() == FieldType.MARC_DATAFIELD) {\n MARCDataField mfield = (MARCDataField) field;\n if (tag.equals(\"100\") || tag.equals(\"110\") || tag.equals(\"111\")) {\n String content = getTextContent(mfield, \"-$0\");\n String dates = getTextContent(mfield, \"$d\").trim()\n .replaceAll(\"[()]\", \"\"); // TODO make test\n String name = getTextContent(mfield, \"$a $b $c\");\n\n if (dates.length() > 0) {\n target.addField(new DCField(DCTerm.CREATOR_DATE, dates));\n target.addField(new DCField(DCTerm.CREATOR, content\n .replace(dates, \"(\" + dates + \")\")));\n } else {\n target.addField(new DCField(DCTerm.CREATOR, content));\n }\n target.addField(new DCField(DCTerm.CREATOR_NAME, name));\n } else if (tag.equals(\"700\") || tag.equals(\"710\")\n || tag.equals(\"711\")) {\n DCTerm dctag = hasSubfield(mfield, \"$e:coaut\") ? DCTerm.CREATOR\n : DCTerm.CONTRIBUTOR;\n String content = getTextContent(mfield, \"-$0\");\n String dates = getTextContent(mfield, \"$d\");\n String name = getTextContent(mfield, \"$a $b $c\");\n if (dates.length() > 0) {\n target.addField(new DCField(DCTerm.CONTRIBUTOR_DATE,\n dates));\n target.addField(new DCField(dctag, content.replace(\n dates, \"(\" + dates + \")\")));\n } else {\n target.addField(new DCField(dctag, content));\n }\n target.addField(new DCField(DCTerm.CONTRIBUTOR_NAME, name));\n } else if (tag.equals(\"511\")) {\n target.addField(new DCField(DCTerm.CONTRIBUTOR,\n getTextContent(mfield, \"$a\")));\n } else if (tag.equals(\"130\") || tag.equals(\"240\")\n || tag.equals(\"245\")) {\n target.addField(new DCField(DCTerm.TITLE, getTextContent(\n mfield, \"$a $b $n $p\")));\n if (tag.equals(\"245\")) { // grabación sonora, manuscrito...\n target.addField(new DCField(DCTerm.TYPE,\n getTextContent(mfield, \"$h\")));\n }\n } else if (tag.equals(\"246\")) {\n target.addField(new DCField(DCTerm.ALTERNATIVE,\n getTextContent(mfield, \"$a $b $n $p\")));\n } else if (tag.equals(\"080\")) {\n target.addField(new DCField(DCTerm.SUBJECT_UDC,\n getTextContent(mfield, \"$a\")));\n } else if (tag.equals(\"600\") || tag.equals(\"650\")\n || tag.equals(\"651\")) {\n target.addField(new DCField(DCTerm.SUBJECT_LCSH,\n getTextContent(mfield, \"$a $x $y $t\", \" - \")));\n target.addField(new DCField(DCTerm.SUBJECT, getTextContent(\n mfield, \"$a $x $y $t\", \" - \")));\n } else if (tag.equals(\"596\")) {\n target.addField(new DCField(DCTerm.DESCRIPTION,\n getTextContent(mfield, \"$a\")));\n } else if (tag.equals(\"260\")) {\n target.addField(new DCField(DCTerm.PUBLISHER,\n getTextContent(mfield, \"$a $b $c\")));\n String publicationDate = getTextContent(mfield, \"$c\");\n if (publicationDate.length() > 0) {\n target.addField(new DCField(DCTerm.ISSUED,\n publicationDate));\n }\n } else if (tag.equals(\"534\")) { // source edition statement\n List<MARCSubfield> subfields = mfield.getSubfields();\n StringBuilder source = new StringBuilder();\n StringBuilder altsource = new StringBuilder(); // alternative\n // source\n boolean alt = false;\n for (MARCSubfield subfield : subfields) {\n if (subfield.getCode() == 'c') {\n Matcher matcher = ypattern.matcher(subfield\n .getValue());\n if (matcher.matches()) {\n String year = matcher.group(3);\n target.addField(new DCField(DCTerm.CREATED,\n year));\n target.addField(new DCField(DCTerm.DATE, year));\n }\n } else if (subfield.getCode() == 'p') {\n if (subfield.getValue().contains(\"otra ed\")) {\n alt = true;\n } else {\n alt = false;\n }\n }\n if (alt) {\n if (altsource.length() > 0) {\n altsource.append(' ');\n }\n altsource.append(subfield.getValue());\n } else {\n if (source.length() > 0) {\n source.append(' ');\n }\n source.append(subfield.getValue());\n }\n }\n if (source.length() > 0) {\n target.addField(new DCField(DCTerm.SOURCE, source\n .toString()));\n }\n if (altsource.length() > 0) {\n target.addField(new DCField(DCTerm.RELATION, altsource\n .toString()));\n }\n } else if (tag.equals(\"901\")\n && hasSubfield((MARCDataField) field,\n \"$a=sourceTypeOriginal_L\")) {\n target.addField(new DCField(DCTerm.FORMAT, getTextContent(\n mfield, \"$b\")));\n } else if (tag.equals(\"020\")) {\n target.addField(new DCField(DCTerm.SOURCE, \"ISBN:\"\n + getTextContent(mfield)));\n } else if (tag.equals(\"022\")) {\n target.addField(new DCField(DCTerm.SOURCE, \"ISSN:\"\n + getTextContent(mfield)));\n } else if (tag.equals(\"041\")) {\n target.addField(new DCField(DCTerm.LANGUAGE,\n getTextContent(mfield)));\n } else if (tag.equals(\"017\")) {\n target.addField(new DCField(DCTerm.RIGHTS,\n getTextContent(mfield)));\n } else if (tag.equals(\"440\") || tag.equals(\"490\")) {\n target.addField(new DCField(DCTerm.IS_PART_OF,\n getTextContent(mfield, \"$a\")));\n } else if (tag.equals(\"655\")) {\n target.addField(new DCField(DCTerm.TYPE,\n getTextContent(mfield)));\n } else if (tag.equals(\"773\")) {\n target.addField(new DCField(DCTerm.RELATION,\n getTextContent(mfield, \"$t\")));\n }\n }\n }\n if (target.getFields(DCTerm.DATE.toString()).isEmpty()) {\n for (Field field : target.getFields(DCTerm.ISSUED.toString())) {\n target.addField(new DCField(DCTerm.DATE, field.getValue()));\n }\n }\n return target;\n }", "DomainNumber createDomainNumber();", "public void getValueFromEntity(CallingContext cc)\n \t\tthrows ODKDatastoreException;", "public Value() {\n }", "protected void createVar(DapVariable dapvar, NetcdfFile ncfile, Group cdmgroup, Structure cdmparentstruct)\n throws DapException {\n Variable cdmvar = null;\n DapType basetype = dapvar.getBaseType();\n if (basetype.isAtomic()) {\n DapVariable atomvar = (DapVariable) dapvar;\n cdmvar = new Variable(ncfile, cdmgroup, cdmparentstruct, atomvar.getShortName());\n DataType cdmbasetype;\n if (basetype.isEnumType())\n cdmbasetype = CDMTypeFcns.enumTypeFor(basetype);\n else\n cdmbasetype = CDMTypeFcns.daptype2cdmtype(basetype);\n if (cdmbasetype == null)\n throw new DapException(\"Unknown basetype:\" + basetype);\n cdmvar.setDataType(cdmbasetype);\n if (basetype.isEnumType()) {\n EnumTypedef cdmenum = (EnumTypedef) this.nodemap.get(basetype);\n if (cdmenum == null)\n throw new DapException(\"Unknown enumeration type:\" + basetype.toString());\n cdmvar.setEnumTypedef(cdmenum);\n }\n this.nodemap.put(cdmvar, dapvar);\n } else if (basetype.isStructType()) {\n DapStructure dapstruct = (DapStructure) basetype;\n Structure cdmstruct = new Structure(ncfile, cdmgroup, cdmparentstruct, dapstruct.getShortName());\n cdmvar = cdmstruct;\n this.nodemap.put(cdmvar, dapvar);\n // Add the fields\n for (DapVariable field : dapstruct.getFields()) {\n createVar(field, ncfile, cdmgroup, cdmstruct);\n }\n } else if (basetype.isSeqType()) {\n DapSequence dapseq = (DapSequence) basetype;\n // In general one would convert the sequence\n // to a CDM sequence with vlen\n // so Sequence {...} s[d1]...[dn]\n // => Sequence {...} s[d1]...[dn]\n Sequence cdmseq = new Sequence(ncfile, cdmgroup, cdmparentstruct, dapseq.getShortName());\n cdmvar = cdmseq;\n this.nodemap.put(cdmvar, dapvar);\n // Add the fields\n for (DapVariable field : dapseq.getFields()) {\n createVar(field, ncfile, cdmgroup, cdmseq);\n }\n // If the rank > 0, then add warning attribute\n if (dapvar.getRank() > 0) {\n List value = new ArrayList();\n value.add(\"CDM does not support Sequences with rank > 0\");\n Attribute warning = new Attribute(\"_WARNING:\", value);\n cdmvar.addAttribute(warning);\n }\n\n } else {\n throw new IllegalStateException(\"Unknown variable sort: \" + dapvar.getSort());\n }\n int rank = dapvar.getRank();\n List<Dimension> cdmdims = new ArrayList<Dimension>(rank + 1); // +1 for vlen\n for (int i = 0; i < rank; i++) {\n DapDimension dim = dapvar.getDimension(i);\n Dimension cdmdim = createDimensionRef(dim, cdmgroup);\n cdmdims.add(cdmdim);\n }\n if (basetype.isSeqType()) {\n // Add the final vlen\n cdmdims.add(Dimension.VLEN);\n }\n cdmvar.setDimensions(cdmdims);\n // Create variable's attributes\n for (String key : dapvar.getAttributes().keySet()) {\n DapAttribute attr = dapvar.getAttributes().get(key);\n Attribute cdmattr = createAttribute(attr);\n cdmvar.addAttribute(cdmattr);\n }\n if (cdmparentstruct != null)\n cdmparentstruct.addMemberVariable(cdmvar);\n else if (cdmgroup != null)\n cdmgroup.addVariable(cdmvar);\n\n }", "public FactoryValue( ) \r\n {\r\n }", "@TaDaMethod(variablesToTrack = {\"name\", \"race\", \"ssn2\", \"ssn3\",\n\t\t\t\"investmentIncome\", \"investmentIncome\", \"investmentIncome\",\n\t\t\t\"education\", \"ssn4\", \"occupationCode\",\n\t\t\t\"industryCode\", \"weeklyWage\", \"workWeeks\"}, \n\t\t\tcorrespondingDatabaseAttribute = {\"userrecord.name\", \"userrecord.race\", \"education.ssn\", \"investment.ssn\",\n\t\t\t\"investment.CAPITALGAINS\", \"investment.CAPITALLOSSES\", \"investment.STOCKDIVIDENDS\",\n\t\t\t\"education.education\", \"job.ssn\", \"job.INDUSTRYCODE\", \n\t\t\t\"job.OCCUPATIONCODE\", \"job.WEEKWAGE\", \"job.workweeks\"})\n\tpublic EstimateIncomeDTOInterface getValues(int ssn){\n\t\t\n\t\tResultSet results;\n\t\tStatement statement;\n\t\t\n\t\tString ssnString = Integer.toString(ssn);\n\t\t\n\t\tString name = null;\n\t\tString race = null;\n\t\tString education = null;\n\t\tint occupationCode = 0;\n\t\tint industryCode = 0;\n\t\tint weeklyWage = 0;\n\t\tint workWeeks = 0;\n\t\tint investmentIncome = 0;\n\t\t\n\t\ttry{\n\t\t\tstatement = Factory.getConnection().createStatement();\n\t \tresults = statement.executeQuery(\"SELECT SSN, NAME, RACE from userrecord WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tif(results.getInt(\"SSN\") == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\t\tname = results.getString(\"NAME\");\n\t \t\t\trace = results.getString(\"RACE\");\n\t \t\t}\n\t \t}\n\t \t\n\t \tresults = statement.executeQuery(\"SELECT SSN, EDUCATION from education WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tint ssn2 = results.getInt(\"SSN\");\n\t \t\tif(ssn2 == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\t\teducation = results.getString(\"EDUCATION\");\n\t \t\t}\n\t \t}\n\t \t\n\t \tresults = statement.executeQuery(\"SELECT SSN, CAPITALGAINS, CAPITALLOSSES, STOCKDIVIDENDS from investment WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tint ssn3 = results.getInt(\"SSN\");\n\t \t\tif(ssn3 == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\t\tinvestmentIncome = results.getInt(\"CAPITALGAINS\") - results.getInt(\"CAPITALLOSSES\") + results.getInt(\"STOCKDIVIDENDS\");\n\t \t\t}\n\t \t}\n\t \t\n\t \tresults = statement.executeQuery(\"SELECT SSN, INDUSTRYCODE, OCCUPATIONCODE, WEEKWAGE, WORKWEEKS from job WHERE SSN = \" + ssnString +\"\");\n\t \twhile(results.next()){\n\t \t\tint ssn4 = results.getInt(\"SSN\");\n\t \t\tif(ssn4 == 0){\n\t \t\t\tcontinue;\n\t \t\t} else {\n\t \t\toccupationCode = results.getInt(\"INDUSTRYCODE\");\n\t \t\tindustryCode = results.getInt(\"OCCUPATIONCODE\");\n\t \t\tweeklyWage = results.getInt(\"WEEKWAGE\");\n\t \t\tworkWeeks = results.getInt(\"WORKWEEKS\");\n\t \t\t}\n\t \t}\n\n\t\t} catch(SQLException e) {\n\t\t\twhile (e != null) {\n\t\t\t\tSystem.err.println(\"\\n----- SQLException -----\");\n\t\t\t\tSystem.err.println(\" SQL State: \" + e.getSQLState());\n\t\t\t\tSystem.err.println(\" Error Code: \" + e.getErrorCode());\n\t\t\t\tSystem.err.println(\" Message: \" + e.getMessage());\n\t\t\t\t// for stack traces, refer to derby.log or uncomment this:\n\t\t\t\t// e.printStackTrace(System.err);\n\t\t\t\te = e.getNextException();\n\t\t\t}\n\t\t}\n\t\t\t\n \treturn Factory.getEstimateIncomeDTO(name, ssn, race, education,\n \t\t\toccupationCode, industryCode, weeklyWage, workWeeks, investmentIncome);\n \t\n\t}", "public CalculatorValue(CalculatorValue obj){\n\t\tthis.value=obj.value;\n\t\tthis.errorTerm=obj.errorTerm;\n\t\tthis.units=obj.units;\n\t}", "public String getDerivedValue(int d) {\n switch (d) {\n case 0:\n default:\n return null;\n }\n }", "public static VariableValue createValueObject(double value) {\n\t\treturn new DoubleValue(value);\n\t}", "@Override\n public BaseAttrInfo getAttrInfo(Long attrId) {\n BaseAttrInfo baseAttrInfo = baseAttrInfoMapper.selectById(attrId);\n // 给 attrValueList 赋值\n baseAttrInfo.setAttrValueList(getAttrValueList(attrId));\n return baseAttrInfo;\n }", "public static DLNAAttribute newInstance(Type type, String attributeValue, String contentFormat) {\n/* 125 */ DLNAAttribute attr = null;\n/* 126 */ for (int i = 0; i < (type.getAttributeTypes()).length && attr == null; i++) {\n/* 127 */ Class<? extends DLNAAttribute> attributeClass = type.getAttributeTypes()[i];\n/* */ try {\n/* 129 */ log.finest(\"Trying to parse DLNA '\" + type + \"' with class: \" + attributeClass.getSimpleName());\n/* 130 */ attr = attributeClass.newInstance();\n/* 131 */ if (attributeValue != null) {\n/* 132 */ attr.setString(attributeValue, contentFormat);\n/* */ }\n/* 134 */ } catch (InvalidDLNAProtocolAttributeException ex) {\n/* 135 */ log.finest(\"Invalid DLNA attribute value for tested type: \" + attributeClass.getSimpleName() + \" - \" + ex.getMessage());\n/* 136 */ attr = null;\n/* 137 */ } catch (Exception ex) {\n/* 138 */ log.severe(\"Error instantiating DLNA attribute of type '\" + type + \"' with value: \" + attributeValue);\n/* 139 */ log.log(Level.SEVERE, \"Exception root cause: \", Exceptions.unwrap(ex));\n/* */ } \n/* */ } \n/* 142 */ return attr;\n/* */ }", "private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }" ]
[ "0.59440994", "0.5337542", "0.52447", "0.51619035", "0.5154397", "0.5095847", "0.5095607", "0.50484043", "0.50222284", "0.50029033", "0.500167", "0.49390787", "0.49364394", "0.4927049", "0.49187592", "0.4903051", "0.48246995", "0.4787758", "0.47801167", "0.47630945", "0.47582704", "0.4757026", "0.4744712", "0.4733351", "0.47308457", "0.4722233", "0.47119573", "0.46901432", "0.46592674", "0.46580145", "0.46542096", "0.46493965", "0.46326625", "0.46150047", "0.46059296", "0.4597881", "0.45921087", "0.45623472", "0.4562256", "0.4553853", "0.4551852", "0.4544422", "0.45421895", "0.45395988", "0.45344743", "0.45325744", "0.45324865", "0.45318708", "0.45214882", "0.4519604", "0.45144463", "0.4510862", "0.44925478", "0.44918564", "0.4491215", "0.44891787", "0.4484348", "0.4481257", "0.44810575", "0.44770774", "0.44744524", "0.447399", "0.44641536", "0.44628203", "0.44624412", "0.44505522", "0.44383857", "0.44378754", "0.44360656", "0.44359893", "0.44298476", "0.44288382", "0.4428585", "0.44206995", "0.4410328", "0.4409122", "0.44059312", "0.44054973", "0.44033483", "0.4399967", "0.43936494", "0.4388847", "0.43859142", "0.4381065", "0.43755457", "0.43755457", "0.43748736", "0.43706763", "0.43700343", "0.43668422", "0.43658575", "0.4365449", "0.43622455", "0.43514773", "0.43509626", "0.4349603", "0.43402812", "0.43374255", "0.43372533", "0.43314973" ]
0.5791384
1
Get DCI name. Always returns nonempty string.
public String getName() { return ((name != null) && !name.isEmpty()) ? name : ("[" + Long.toString(dciId) + "]"); //$NON-NLS-1$ //$NON-NLS-2$ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public String getName()\n {\n ensureLoaded();\n return m_clzName.getValue();\n }", "public String getdName() {\n return dName;\n }", "@Override\n public String getName() {\n return netcdfCS.getName();\n }", "public java.lang.String getName();", "public String getcName() {\n return cName;\n }", "public String getName(){\r\n\t\tString s=\"\";\r\n\r\n\t\tif(getPersonId() != null && getPersonId().length() != 0)\r\n\t\t\ts += \" \" + getPersonId();\r\n\t\t\r\n\t\tif(getStudySubjectId() != null && getStudySubjectId().length() != 0)\r\n\t\t\ts += \" \" + getStudySubjectId();\r\n\r\n\t\tif(getSecondaryId() != null && getSecondaryId().length() != 0)\r\n\t\t\ts += \" \" + getSecondaryId();\r\n\r\n\t\treturn s;\r\n\t}", "public String name() {\n return celestialName;\n }", "public String getName() {\n if(name == null)\n return \"\"; \n return name;\n }", "public final String getName() {\n if (name == null) {\n name = this.getClass().getSimpleName().substring(3);\n }\n return name;\n }", "@NonNull\n String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String getName();", "String getName();" ]
[ "0.7091475", "0.67847526", "0.676054", "0.6751363", "0.66387665", "0.6619265", "0.65997547", "0.65927446", "0.65692174", "0.65449554", "0.65362984", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.6514215", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.64722806", "0.6470778", "0.6470778" ]
0.7812157
0
Upon entering a new act, the map is opened and it scrolls down unless it's precisely the Exordium. This here prevents that if the custom act has a set starting event, or is act 1.
@SpireInsertPatch( locator = Locator.class ) public static SpireReturn<Void> Insert(CardCrawlGame __instance) { if(CustomDungeon.dungeons.containsKey(CardCrawlGame.nextDungeon) && (CustomDungeon.dungeons.get(CardCrawlGame.nextDungeon).hasEvent() || BehindTheScenesActNum.getActNum() == 1)) { InputHelper.updateLast(); if (CInputHelper.controller != null) { CInputHelper.updateLast(); } return SpireReturn.Return(null); } return SpireReturn.Continue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void react_mainRegion__entry_Default() {\n\t\tenterSequence_mainRegion_State1_default();\n\t}", "@Override\n\t\t\tpublic void enter(InputEvent event, float x, float y, int pointer,\n\t\t\t\t\tcom.badlogic.gdx.scenes.scene2d.Actor fromActor) {\n\t\t\t\tgetStage().setScrollFocus(centerPanel);\n\t\t\t}", "@Override\n\tprotected void activateBoard() {\n\t\tsuper.activateBoard();\n\t\taddMsg(\"Click on an origin cell\\n\");\n\t}", "@Override\n\tprotected void activateBoard() {\n\t\tsuper.activateBoard();\n\t\taddMsg(\"Click on an origin cell\\n\");\n\t}", "private void enterSequence_mainRegion_default() {\n\t\treact_mainRegion__entry_Default();\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e)\r\n\t{\r\n\t\tjump();\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint i = (e.getX()) / 6;\r\n\t\t\t\tint j = (e.getY()) / 6;\r\n\t\t\t\tmap.setNextMap(i, j, 1);\r\n\t\t\t\tmap.refresh1();\r\n\t\t\t\trepaint();\r\n\t\t\t}", "@Override\n\tpublic void onSpawn()\n\t{\n\t\tsetIsNoRndWalk(true);\n\t\tsuper.onSpawn();\n\n\t\t// check the region where this mob is, do not activate the AI if region is inactive.\n\t\tL2WorldRegion region = WorldManager.getInstance().getRegion(getX(), getY());\n\t\tif(region != null && !region.isActive())\n\t\t{\n\t\t\tgetAI().stopAITask();\n\t\t}\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\tsetFocusableWindowState(true);\r\n\t}", "public void react() {\n \t\t//door.setOpen(true);\n \t\tSystem.out.println(\"open go through\");\n }", "@Override\r\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\n\t}", "@Override\r\n public void windowActivated(WindowEvent e) {\r\n\r\n }", "@Override\r\n public void windowActivated(WindowEvent e) {\n }", "@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\tgame.setScreen(new MainMenuScreen(game));\n\t\t\t}", "public void onStartup()\n/* 359: */ {\n/* 360:438 */ super.onStartup();\n/* 361: */ \n/* 362:440 */ this.mapPanel.addMouseListener(new MouseAdapter()\n/* 363: */ {\n/* 364: */ public void mouseClicked(MouseEvent e)\n/* 365: */ {\n/* 366:443 */ if (e.getButton() == 1)\n/* 367: */ {\n/* 368:444 */ Point p = e.getPoint();\n/* 369:445 */ if ((TileGIS.this.mapPanel.courtesyBounds != null) && (TileGIS.this.mapPanel.courtesyBounds.contains(p)))\n/* 370: */ {\n/* 371:446 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 372: */ }\n/* 373:447 */ else if ((TileGIS.this.mapPanel.courtesyImgBounds != null) && (TileGIS.this.mapPanel.courtesyImgBounds.contains(p)))\n/* 374: */ {\n/* 375:448 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 376: */ }\n/* 377: */ else\n/* 378: */ {\n/* 379:451 */ Point mP = TileGIS.this.mapPanel.panelToMap(p);\n/* 380:452 */ double lon = MercatorProj.XtoLon(mP.x, TileGIS.this.mapPanel.zoom);\n/* 381:453 */ double lat = MercatorProj.YtoLat(mP.y, TileGIS.this.mapPanel.zoom);\n/* 382:454 */ TileGIS.this.onClick(lat, lon);\n/* 383: */ }\n/* 384: */ }\n/* 385: */ }\n/* 386:458 */ });\n/* 387:459 */ getPresentation().getPanel().addContainerListener(new ContainerListener()\n/* 388: */ {\n/* 389: */ public void componentAdded(ContainerEvent e)\n/* 390: */ {\n/* 391:461 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 392:462 */ TileGIS.this.getPresentation().getPanel().add(TileGIS.this.mapPanel);\n/* 393: */ }\n/* 394: */ }\n/* 395: */ \n/* 396: */ public void componentRemoved(ContainerEvent e)\n/* 397: */ {\n/* 398:467 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 399:468 */ TileGIS.this.getPresentation().getPanel().remove(TileGIS.this.mapPanel);\n/* 400: */ }\n/* 401: */ }\n/* 402:472 */ });\n/* 403:473 */ this.placeholder.getJComponent().addComponentListener(new ComponentListener()\n/* 404: */ {\n/* 405: */ public void componentShown(ComponentEvent e) {}\n/* 406: */ \n/* 407: */ public void componentHidden(ComponentEvent e) {}\n/* 408: */ \n/* 409: */ public void componentResized(ComponentEvent e)\n/* 410: */ {\n/* 411:478 */ TileGIS.this.mapPanel.setSize(TileGIS.this.placeholder.getJComponent().getSize());\n/* 412: */ }\n/* 413: */ \n/* 414: */ public void componentMoved(ComponentEvent e)\n/* 415: */ {\n/* 416:482 */ TileGIS.this.mapPanel.setLocation(TileGIS.this.placeholder.getJComponent().getLocation());\n/* 417: */ }\n/* 418: */ });\n/* 419: */ }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\n public void windowActivated(WindowEvent e) {\n }", "@Override\r\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onAdvanceStart(RoadMap map, List<Event> events, int time) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "protected void onScreenActivate() {\r\n }", "@Override\n\tpublic void windowActivated( WindowEvent e ) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n public void windowActivated(WindowEvent e)\n {\n\n }", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\t}", "public void act() \n {\n \n checkKey();\n platformAbove();\n \n animationCounter++;\n checkFall();\n }", "public void goToEntry() {\n this.step(GameMap.instance().getEntryTile());\n }", "@Override\r\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\r\n public void windowActivated(WindowEvent arg0) {}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowActivated(WindowEvent e) {\n\n\t}", "@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t}", "@Override\n\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t}", "public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}", "private void focus() {\n getMapRef().animateCamera(CameraUpdateFactory.newLatLngZoom(\n newHazard.getLatLong(), FOCUS_ZOOM));\n switch (newHazard.getTitle()) {\n case \"Road Works\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_warning_orange_24dp)));\n break;\n case \"Pothole\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_move_to_inbox_orange_24dp)));\n break;\n case \"Road Closure\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_directions_car_orange_24dp)));\n break;\n case \"Flooding\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pool_orange_24dp)));\n break;\n case \"Traffic Accident\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_directions_car_orange_24dp)));\n break;\n case \"Broken Glass\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_local_bar_orange_24dp)));\n break;\n default :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_error_orange_24dp)));\n break;\n }\n\n }", "@Override\n public void mouseEntered(PInputEvent event) {\n \tif (currentListener instanceof DistanceTool) {\n PGISCanvas.this.setCursor(((MapTool) currentListener).getCursor());\n } \n \telse {\n PGISCanvas.this.setCursor(Cursor.getDefaultCursor());\n }\n }", "@Override\r\n\tpublic boolean reActivateIt() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = true;\r\n\t\trepaint();\r\n\t}", "private void react_mainRegion_State2__region0_State4__region0_State7__region0__entry_Default() {\n\t\tenterSequence_mainRegion_State2__region0_State4__region0_State7__region0_State8_default();\n\t}" ]
[ "0.5893099", "0.58797246", "0.55879545", "0.55879545", "0.55281985", "0.5480962", "0.54127604", "0.54091007", "0.53887403", "0.53802043", "0.53478575", "0.5340601", "0.52944267", "0.52941686", "0.52941686", "0.52941686", "0.52941686", "0.52941686", "0.5280442", "0.5280442", "0.5280442", "0.5280442", "0.5280442", "0.5272354", "0.5271863", "0.5271863", "0.5271863", "0.5271863", "0.5271863", "0.5271863", "0.5271863", "0.5271863", "0.5264235", "0.5261223", "0.5250446", "0.5250446", "0.5248428", "0.5246399", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.52454853", "0.5243547", "0.524295", "0.524295", "0.524295", "0.524295", "0.524295", "0.524295", "0.524295", "0.5239491", "0.5239088", "0.5239088", "0.52301055", "0.52297413", "0.5226054", "0.5226054", "0.5226054", "0.5226054", "0.5226054", "0.52233744", "0.5222663", "0.5218826", "0.52178675", "0.52177924", "0.5208792", "0.5208792", "0.5207581", "0.51961905", "0.51961905", "0.51961905", "0.51961905", "0.51961905", "0.51961905", "0.51961905", "0.51919246", "0.51898474", "0.5182501", "0.51815134", "0.51795477", "0.5176545", "0.51712483", "0.5170154", "0.5169824" ]
0.0
-1
Sole entry point to the class and application.
public static void main(String[] args) { doStringTokenizer1(); doStringTokenizer2(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainEntryPoint() {\r\n\r\n }", "public static void main(String arg[]) {\n\n\t\tUtility.runApplication();\n\t}", "public static void main() {\n \n }", "public static void main(String[] args) {\r\n \t\r\n // Creates new controller named the main controller\r\n GlobalResources.MainControl = new Control();\r\n // Starts main application\r\n GlobalResources.MainControl.StartApplication();\r\n }", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\trunApplication();\n\t}", "public static void main(String[] args) {\r\n\t\t/* application object */\r\n\t\tCustomersApp myAp = new CustomersApp();\r\n\t\t/* run the application */\r\n\t\tmyAp.run();\r\n\t\t\r\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "private Main() {\n\n super();\n }", "public static void main(String[] args) {\n startApplication();\n }", "public AuctionApp() {\r\n runAuctionApp();\r\n }", "public Main() {\n \n \n }", "public static void main(String[] args)\n {\n Injector guice = Guice.createInjector(new DiscountGuiceModule());\n\n // Inject the application which contains a separate object graph which contains all the business logic\n // When we call the top level class, BasicApplication, guice will inject every static dependency that we request\n // via @Inject\n BasicApplication basicApplication = guice.getInstance(BasicApplication.class);\n\n // now start the application\n basicApplication.start();\n }", "public static void main(String args[]){\r\n Application theApp = new Application();\r\n theApp.createAccounts();\r\n theApp.processAccounts();\r\n theApp.outputAccounts();\r\n\r\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public ParkingApp() {\n runApp();\n }", "public static void main(String[] args)\n { \n // Create a new instance of the application and make the currently\n \tEntryPoint theApp = new EntryPoint(); \n \t// running thread the application's event dispatch thread.\n theApp.enterEventDispatcher();\n }", "public static void main( String[] args )\n\t{\n\t\trunApp();\n\t}", "public EntryPoint()\n { \n \tpushScreen(new HelperScreen());\n }", "public static void main ( String[] args ) {\n PhoneBook myApp = new PhoneBook(); \r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"*** START MAIN() ***\");\n\t\tSpringApplication.run(BeshstoreApplication.class, args);\n\t\tSystem.out.println(\"*** END MAIN() ***\");\n\t}", "public static void main(String[] args){\n // app.run(args);\r\n new SpringApplicationBuilder(MainApplication.class).web(true).run(args);\r\n }", "public static void main(String[] args) {\n DatabaseController.login();\r\n\r\n //Log in to email\r\n Email.login();\r\n\r\n //Update local database - in real deployment this would run twice per day, not every startup\r\n SyncMain.main(new String[]{});\r\n\r\n //Load cached data\r\n CSVController.loadFiles();\r\n\r\n //Start GUI\r\n launch(args);\r\n\r\n }", "public static void main(String[] args){\n\t\tView view = new View();\r\n\t\tDatabaseInteraction model = new DatabaseInteraction();\r\n\r\n\t\t//Initialize controller. \r\n\t\tController controller = new Controller(view,model);\r\n\r\n\t\t//Connect database, start user interaction, and let the controller respond to user options. \r\n\t\tmodel.connectDatabase();\r\n\t\tcontroller.userInteracion();\r\n\t\tcontroller.respondToUserOption();\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tnew App();\r\n\t}", "public Main() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\t\tSpringApplication.run(StwwmakerApplication.class, args);\n\t}", "public static void main(String[] args) {\n Startup.main(args);\n }", "public static void main(String[] args) {\n WeatherApplication gui = new WeatherApplication( );\n \n // make window visible\n gui.setVisible( true );\n \n }", "public static void main(String[] args) {\r\n // TODO code application logic here\r\n ObjectFactory.getUIinstance().getHomeInstance().setVisible(true);\r\n }", "public main() {\n initComponents();\n \n }", "public static void main(String[] args) {\n new MyApp();\n }", "public static void main(String args[]){\n\n createConnection();\n\n if (conn == null) {\n System.err.println(\"Failed to establish connection!\");\n }\n\n new App();\n\n }", "public void startup(){}", "public static void main(String[] args) {\r\n SunSpotHostApplication app = new SunSpotHostApplication();\r\n app.run();\r\n }", "@Override public void run(ApplicationArguments args) {\n }", "public static void main(String[] args) {\n SimpleUserInterface app = new SimpleUserInterface();\n app.start();\n }", "public static void main(String[] args) { \n\t\t//we are calling a static method and passing it the name of the class where we have our Main method.\t\t\n\t\tSpringApplication.run(CourseApiApp.class, args);\n\t}", "public void startApp()\r\n\t{\n\t}", "public static void main(String[] args) {\n Injector guice = Guice.createInjector(new DiscountGuiceModule());\n\n // Creates separate object graph with business logic, etc. Instantiate the main object on that\n MainAppWithCustomFactory application = guice.getInstance(MainAppWithCustomFactory.class);\n\n // Start your app\n application.start();\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 static void main(String[] args) {\n\t\tnew LoipeApp();\n\t}", "public static void main(final String... args) {\n\n Application.launch();\n }", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "private Main ()\n {\n super ();\n }", "public static void main(String[] args) {\n // TODO code application logic here\n // some testing? or actually we can't run it standalone??\n }", "private SudokuSolverApplication() {\n\t}", "public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStarter();\n\t\t\t}\n\t\t});\t\n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public MainEntry() {\n\t\tthis.taskController = new Controller();\n\t}", "@Override\n public void run(ApplicationArguments args) {\n }", "public static void main (String[] args) \n {\n runAsApplication(new TurtleWorld(), \"TurtleWorld\"); \n }", "public static void main(String [] args){\n SmartPhone sm = new SmartPhone();\n sm.run();\n // System.out.println(sm.run());\n }", "public static void main(String[] args) {\n\t\tFirstUserApp obj=new FirstUserApp();\n\t\t\n\n\t}", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n\r\n\t\t\t// Set up Google Guice Dependency Injector\r\n\t\t\tInjector injector = Guice.createInjector(new BoatImplModule(),\r\n\t\t\t\t\tnew PersonDemoImplModule());\r\n\r\n\t\t\t// Build up the application, resolving dependencies automatically by\r\n\t\t\t// Guice\r\n\t\t\tIBoatController controller = injector\r\n\t\t\t\t\t.getInstance(IBoatController.class);\r\n\r\n//\t\t\tIBoatControllerRMI rmiController = injector\r\n//\t\t\t\t\t.getInstance(IBoatControllerRMI.class);\r\n//\r\n//\t\t\tRegistry registry = LocateRegistry.getRegistry();\r\n//\t\t\tIBoatControllerRMI stub = (IBoatControllerRMI) UnicastRemoteObject\r\n//\t\t\t\t\t.exportObject(rmiController, 0);\r\n//\t\t\tregistry.rebind(\"BoatControllerRMI\", stub);\r\n\r\n\t\t\tBoatTUI tui = new BoatTUI(controller);\r\n\r\n\t\t\ttui.printTUI();\r\n\t\t\t// continue to read user input on the tui until the user decides to\r\n\t\t\t// quit\r\n\t\t\tboolean continu = true;\r\n\t\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\twhile (continu) {\r\n\t\t\t\tcontinu = tui.processInputLine(\"\");\r\n\t\t\t}\r\n\r\n\t\t} \r\n\t\t// catch (RemoteException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\tfinally {\r\n\t\t\tPlay.stop();\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n //Size of window\n int width = 1000;\n int height = 1100;\n Model m = new Model();\n View v = new View(m);\n Controller c = new Controller(m, v);\n v.setController(c);\n c.init(width, height);\n }", "public static void main(String[] args) {\n LogInController logInController = new LogInController();\n logInController.initController();\n \n }", "public static void main(String[] args) {\n // TODO code application logic here\n Welcome wel = new Welcome();\n \n wel.setVisible(true);\n }", "public static void main( String[] args )\n {\n\n new Frame();\n new ThreeDiceApp();\n }", "public static void main(String[] args) {\n\t\tAbstractDataHandlerFactory dataHandlerFactory = DataHandler.getDataHandlerInstance(); \n\t\t\n\t\t// Create a Controller object to begin the application and control code flow \n\t\tController control = new Controller(dataHandlerFactory);\t\n\t}", "public static void main(String[] args) {\n\t\tSpringApplication.run(ManolitoBackApplication.class, args);\n\t\t//SpringApplication.run(ManolitoBackApplication.class, \"--debug\");\n\t\n\t}", "public static void main(String[] args) {\r\n\t\tlogger.info(\"Starting the main entry point of Bowling Swing Application\");\r\n\t\tcreateAndShowGUI();\r\n\t}", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "public static void main(String[] args) {\n new GraphicStudyApp();\n }", "public static void main(String[] args){\n SingleObject object = SingleObject.getInstance();\n\n //show the message\n object.showMessage();\n }", "public static void main(String[] args) {\n staticFiles.location(\"/public\");\n //This will listen to GET requests to /model and return a clean new model\n get(\"/model\", (req, res) -> newModel());\n //This will listen to POST requests and expects to receive a game model, as well as location to fire to\n post(\"/fire/:row/:col\", (req, res) -> fireAt(req));\n //This will listen to POST requests and expects to receive a game model, as well as location to place the ship\n post(\"/placeShip/:id/:row/:col/:orientation\", (req, res) -> placeShip(req));\n }", "public static void main(String[] args) {\n\n UIController.getInstance().setMain(new SelectionMenuUI());\n UIController.getInstance().startUI();\n\n }", "public static void main(String[] args) {\n launch(RestaurantManagementApp.class, args);\n }", "public static void main(String[] args) {\n staticFiles.location(\"/public\");\n\n //This will listen to GET requests to /model and return a clean new model\n get(\"/model/:Version\", (req, res) -> newModel( req ));\n\n //This will listen to POST requests and expects to receive a game model, as well as location to fire to\n post(\"/fire/:Version/:row/:col/:hard\", (req, res) -> fireAt( req ));\n //This will handle the scan feature\n post(\"/scan/:Version/:row/:col/:hard\", (req, res) -> scan( req ));\n\n //This will listen to POST requests and expects to receive a game model, as well as location to place the ship\n post(\"/placeShip/:Version/:id/:row/:col/:orientation/:hard\", (req, res) -> placeShip( req ));\n }", "public static void main(String[] args) {\n App.main(args);\n }", "public static void main(String[] args) {\n // This is how a javafx class is run.\n // This will cause the start method to run.\n // You don't need to change main.\n launch(args);\n }", "public static void main(final String[] args) {\n\n System.setProperty(\"org.restlet.engine.loggerFacadeClass\", \"org.restlet.ext.slf4j.Slf4jLoggerFacade\");\n\n // Start application with the command line arguments\n Bootstrapper.launchApp(new OImaging(args));\n }", "public static void main(String[] args) {\n\t\tSpringApplication.run(Application.class, args);\n\n\t\t\n\t}", "public MainApp() {\n initComponents();\n }", "public static void main(String[] args) {\n Application.launch(App.class, args);\n }", "public static void main(String args[]) {\n Greeting.ToyApp toyApp = DaggerGreeting_ToyComponent.builder().build().toyApp();\n toyApp.greeting.sayHello();\n }", "public static void main(String[] args) {\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(Config.class);\n\t\t\n\t\tStudentService studentService = (StudentService) context.getBean(\"concreteStudentService\");\n\t\tstudentService.viewStudent();\n\t\t\n\t\tstudentService = (StudentService) context.getBean(\"concreteStudentService\");\n\t\tstudentService.viewStudent();\n\t\t\n\t\tstudentService = (StudentService) context.getBean(\"consoleStudentService\");\n\t\tstudentService.viewStudent();\n\t\t\n\n\t\t((ConfigurableApplicationContext)context).close();\n\t}", "public static void main(String[] args){\n DotComBust game = new DotComBust();\n game.setUpGame();\n game.startPlaying();\n }", "void startup();", "void startup();", "public static void main(String[] args) {\n\t\tHibernateUtil.getSessionFactory();\n\t\t\n\t\t// show main window\n\t\tnew MainView().display();\n\n\t}", "public static void main(String[] args) {\n\t\tSpringApplication.run(StudentManagementSystemApplication.class, args);\n\t}", "public static void main(String[] args) {\n Initial main = new Initial();\n main.login = login.getInstance();\n main.login.setMain(main);\n }", "public static void main(String[] args)\n {\n ApplicationContext context = new\n ClassPathXmlApplicationContext(\"application.xml\");\n\n Menu myMenu = (MetroMenu) context.getBean(\"myMenu\");\n myMenu.displayGreeting();\n myMenu.runMenu();\n }", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "public static void main(String [] args)\r\n\t{\r\n\t\tBootUI bootUI = new BootUI();\r\n\t\tbootUI.run();\r\n\t}", "public static void main(String[] args)\n {\n new Launcher();\n }", "public static void main (String [] args)\n {\n Bank model = new Bank ();\n model.start ();\n \n }", "@Override\n\t public void run(ApplicationArguments args) throws Exception {\n\n\t }", "public static void main(String[] args) {\n BasicConfigurator.configure();\n // note: running mode starts as a result of finishing building mode\n BuildingWindow buildingWindow = new BuildingWindow(\"Game Build\");\n buildingWindow.start();\n }", "public static void main(String[] args) {\n\t\tSpringApplication.run(HimalayanKitchenBackendStarter.class, args);\t\t\n\t}", "public static void main(String[] args) {\n if (Config.Api.URL.contains(\"localhost\")) {\n Server.main(new String[0]);\n }\n Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();\n config.setTitle(Config.Game.TITLE);\n config.setWindowedMode(Config.Game.WIDTH, Config.Game.HEIGHT);\n config.setWindowIcon(Config.Game.ICON);\n config.setResizable(false);\n new Lwjgl3Application(new BubbleSpinner(), config);\n }", "public static void main(String[] args)\n {\n // initialise instance variables\n Contacts ct = new Contacts();\n UI.initialise();\n \n UI.addButton(\"Print All\", ct::printAll);\n UI.addButton(\"Clear\", UI::clearGraphics);\n UI.addButton(\"Quit\", UI::quit);\n \n }", "private Main() {\n }", "public static void main(String[] args) {\n Application.launch(args);\n }", "public static void main(String[] args) {\n\t\tSpringApplication.run(BankSystemJavaApplication.class, args);\n\t}", "public static void main(String[] args) {\n MainController mainController = new MainController();\n mainController.showView();\n SessionManager.getSessionManager().getSession();\n }", "public static void main(String[] argv) {\n\t\ttry {\n\t\t\tAppGameContainer container = new AppGameContainer(new MyGame());\n\t\t\tcontainer.setDisplayMode(800, 600, false);\n\t\t\tcontainer.start();\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.72242916", "0.716365", "0.71187913", "0.7103342", "0.707661", "0.7062218", "0.7062131", "0.69763947", "0.69725966", "0.69581515", "0.6958139", "0.69552004", "0.69099087", "0.69083047", "0.687513", "0.68510133", "0.6834705", "0.680646", "0.6787879", "0.6774242", "0.67573315", "0.6756932", "0.67440575", "0.6738941", "0.6738855", "0.6738421", "0.6735743", "0.6734912", "0.6709643", "0.6702484", "0.6700829", "0.668962", "0.667475", "0.6672169", "0.6669298", "0.6664536", "0.6662601", "0.6661908", "0.6661782", "0.6658317", "0.6658209", "0.66378826", "0.6632966", "0.6621234", "0.6620287", "0.6618642", "0.66112185", "0.6609462", "0.66061854", "0.65942574", "0.6593285", "0.65889645", "0.65883064", "0.6585861", "0.65776515", "0.65773046", "0.65643924", "0.654872", "0.6547994", "0.65367174", "0.65263563", "0.6521111", "0.65169984", "0.6514935", "0.65134186", "0.65120345", "0.65084237", "0.65071183", "0.6499004", "0.64972425", "0.6496052", "0.6494873", "0.64883775", "0.6486331", "0.64853704", "0.6485315", "0.6483886", "0.6482848", "0.648219", "0.6482029", "0.6482001", "0.6481494", "0.6481494", "0.648112", "0.6480602", "0.64804584", "0.6478834", "0.6470821", "0.64676696", "0.64643544", "0.6460529", "0.6458101", "0.64524657", "0.64518553", "0.6445613", "0.64412194", "0.64397", "0.6437788", "0.6431632", "0.6431495", "0.6430774" ]
0.0
-1
The node to represent a branch ("if") statement
public interface BranchNode extends StatementNode { /** * Set the branching condition. * * @param condition * the condition of the branch. */ public void setCondition(ExpressionNode condition); /** * Get the branching condition. * * @return the condition of the branch. */ public ExpressionNode getCondition(); /** * Set the statement that is executed when the condition evaluates to true. * * @param statement * The statement to execute when the condition evaluates to true. */ public void setStatementNodeOnTrue(StatementNode statement); /** * The statement that is executed when the condition evaluates to true. * * @return The statement to execute when the condition evaluates to true. */ public StatementNode getStatementNodeOnTrue(); /** * Set the statement that is executed when the condition evaluates to false. * This is the else statement. If there is no else set to null. * * @param statement * The statement to execute when the condition evaluates to false or * null if no else branch is needed. */ public void setStatementNodeOnFalse(StatementNode statement); /** * The statement that is executed when the condition is false. This is the else * branch. If no else branch exists this will return null. * * @return The statement to execute when the condition evaluates to false. */ public StatementNode getStatementNodeOnFalse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Branch parseIf(Tokenizer in) {\n\t\tBranch branch = new Branch();\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.OPEN_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ( got: '\"+expectParen+\"'\"+expectParen.generateLineChar());\n\t\tbranch.condition = parseParen(in);\n\t\tbranch.ifTrue = parseStmt(in);\n\t\tToken next = in.next();\n\t\tif (next != null && next.type == Token.TokenType.KEYWORD && ((KeywordToken) next).value == Keyword.ELSE)\n\t\t\tbranch.ifFalse = parseStmt(in);\n\t\telse\n\t\t\tin.pushTokens(next);\n\t\treturn branch;\n\t}", "public Element compileIf() throws CloneNotSupportedException {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\t\n\t\t//Unique labels for jumping around\n\t\tString elseLabel = label();\n\t\tString endLabel = label();\n\n\t\tElement ifParent = document.createElement(\"ifStatement\");\n\n\t\t// if\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// (\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// expression\n\t\tjTokenizer.advance();\n\t\tifParent.appendChild(compileExpression());\n\n\t\t// )\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\t\t\n\t\t//If condition fails, go to else part of the block\n\t\twriter.writeArithmetic(\"not\");\n\t\twriter.writeIf(elseLabel);\n\n\t\t// {\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// statement inside the if block\n\t\tjTokenizer.advance();\n\t\tifParent.appendChild(compileStatements());\n\n\t\t// }\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// if done, go to end\n\t\twriter.writeGoto(endLabel);\n\t\t\n\t\t// Else statements start here\n\t\twriter.writeLabel(elseLabel);\n\n\t\t// else\n\n\t\t// Interesting coding challenge. I had to look ahead by one token to\n\t\t// check if there was an else block, but if it didn't exists, I would be\n\t\t// one token ahead of the XML.\n\t\t// Built a clone of the present tokenizer and used it to look ahead,\n\t\t// if an else exists, advance the main tokenizer as well\n\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\tclone.advance();\n\n\t\ttoken = clone.returnTokenVal();\n\t\tif (token.equals(\"else\")) {\n\n\t\t\t// else\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// {\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// statements inside the else block\n\t\t\tjTokenizer.advance();\n\t\t\tifParent.appendChild(compileStatements());\n\n\t\t\t// }\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// End of if-else block\n\t\t\twriter.writeLabel(endLabel);\n\n\t\t\treturn ifParent;\n\t\t} \n\t\telse {\n\n\t\t\t// End of if block\n\n\t\t\twriter.writeLabel(endLabel);\n\t\t\treturn ifParent;\n\t\t}\n\t}", "@Override\n public void visitIfStatement(IfStatement node){\n mPrintWriter.println(\"#IFStatement\");\n Label l0 = new Label();\n Label l1 = new Label();\n Label l2 = new Label();\n //mPrintWriter.println(l1 + \":\");\n inIfStatement(node);\n if(node.getExp() != null)\n {\n node.getExp().accept(this);\n }\n mPrintWriter.println(\"pop r24\");\n //#load zero into reg\n mPrintWriter.println(\"ldi r25, 0\");\n\n //#use cp to set SREG\n mPrintWriter.println(\"cp r24, r25\");\n //#WANT breq MJ_L0\n mPrintWriter.println(\"brne \" + l1);\n mPrintWriter.println(\"jmp \" + l0);\n\n //# then label for if\n mPrintWriter.println(l1 + \":\");\n if(node.getThenStatement() != null)\n {\n node.getThenStatement().accept(this);\n }\n mPrintWriter.println(\"jmp \" + l2);\n\n //# else label for if\n mPrintWriter.println(l0 + \":\");\n if(node.getElseStatement() != null)\n {\n node.getElseStatement().accept(this);\n }\n mPrintWriter.println(l2 + \":\");\n\n outIfStatement(node);\n }", "@Override\n\tpublic void visit(IfNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * Verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam conditia si preluam rezultatul evaluarii fiului corespunzator\n\t\t * branch-ului de then sau de else\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/***\n\t\t * Daca conditia este adevarata, continuam cu evaluarea celui de-al\n\t\t * doiela fiu, iar daca este false evaluam al treilea fiu\n\t\t */\n\t\tif (node.getChild(0).getName().contentEquals(\"true\")) {\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t\tnode.getChild(2).setVisited(true);\n\n\t\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(1).getName());\n\t\t\t}\n\t\t} else {\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\tnode.getChild(1).setVisited(true);\n\n\t\t\tif (node.getChild(2) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(2).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(2).getName());\n\t\t\t}\n\t\t}\n\n\t}", "public String visit(IfStatement n, LLVMRedux argu) throws Exception {\n String[] array =u.getConditionTags();\n u.println(\"br i1 \"+ n.f2.accept(this, argu)+\", label %\"+array[0]+\", label %\"+array[1]);\n u.increaseIndentation();\n u.println(array[0]+\":\");\n n.f4.accept(this, argu);\n u.println(\"br label %\"+array[2]);\n u.println(array[1]+\":\");\n n.f6.accept(this, argu);\n u.println(\"br label %\"+array[2]);\n u.println(array[2]+\":\");\n u.decreaseIndentation();\n return null;\n }", "public StatementNode getStatementNodeOnTrue();", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "private Conditional ifStatement()\n\t{\n\t\t// IfStatement --> if ( Expression ) Statement [ else Statement ]\n\t\tConditional c = null;\n\t\t\n\t\t// if\n\t\tmatch(TokenType.If);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\t// else가 나오면\n\t\tif (token.type().equals(TokenType.Else))\n\t\t{\n\t\t\t// else\n\t\t\ttoken = lexer.next();\n\t\t\t\n\t\t\t// <<Statement>>\n\t\t\tStatement elseState = statement();\n\t\t\tc = new Conditional(e, s, elseState);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc = new Conditional(e, s);\n\t\t}\n\t\t\n\t\treturn c; // student exercise\n\t}", "@Override\n public String getName() {\n return \"ifTrue_BranchBeTraversed\";\n }", "public static TreeNode makeIf(TreeNode condition,\n TreeNode thenNode,\n TreeNode elseNode,\n ArrowType retType) {\n return new IfNode(condition, thenNode, elseNode, retType);\n }", "@Override\n public Expression visit(LogicalOpNode node) {\n\n Label trueLabel = new Label ();\n Label falseLabel = new Label ();\n Label endLabel = new Label ();\n\n process(node, trueLabel, falseLabel);\n\n cat.footoredo.mx.entity.Variable variable = tmpVariable(node.getType());\n\n label (trueLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 1));\n jump (endLabel);\n\n label (falseLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 0));\n jump (endLabel);\n\n label (endLabel);\n\n return isStatement() ? null : ref (variable);\n }", "IfStatement createIfStatement();", "@Override\n\tpublic Object visit(ASTCondIs node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" is \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic void visit(IfStatement n) {\n\t\tcfgNode = n;\n\t}", "public Object visit(ASTIfStatement node, Object data) {\n \n int boolCompIf = sumExpressionComplexity( (ASTExpression) node.getFirstChildOfType( ASTExpression.class ) );\n \n int complexity = 0;\n \n List statementChildren = new ArrayList();\n for ( int i = 0; i < node.jjtGetNumChildren(); i++ ) {\n if ( node.jjtGetChild( i ).getClass() == ASTStatement.class ) {\n statementChildren.add( node.jjtGetChild( i ) );\n }\n }\n \n if ( statementChildren.isEmpty()\n || ( statementChildren.size() == 1 && node.hasElse() )\n || ( statementChildren.size() != 1 && !node.hasElse() ) ) {\n throw new IllegalStateException( \"If node has wrong number of children\" );\n }\n \n // add path for not taking if\n if ( !node.hasElse() ) {\n complexity++;\n }\n \n for ( Iterator iter = statementChildren.iterator(); iter.hasNext(); ) {\n SimpleJavaNode element = (SimpleJavaNode) iter.next();\n complexity += ( (Integer) element.jjtAccept( this, data ) ).intValue();\n }\n \n return new Integer( boolCompIf + complexity );\n }", "@Override\n public String visit(IfStmt n, Object arg) {\n return null;\n }", "final public IASTPKGStatement ConditionalStatement() throws ParseException {\r\n IASTPKGStatement node = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMMENT_START:\r\n node = CommentStatement();\r\n break;\r\n case OPTIONSLIST_START:\r\n node = OptionsListStatement();\r\n break;\r\n default:\r\n jj_la1[3] = jj_gen;\r\n if (jj_2_2(2147483647)) {\r\n node = EmbeddedSisStatement();\r\n } else {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case STRING:\r\n node = InstallFileStatement();\r\n break;\r\n case PLUS:\r\n node = PropertiesStatement();\r\n break;\r\n case IF:\r\n node = ConditionalBlock();\r\n break;\r\n default:\r\n jj_la1[4] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n }\r\n }\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "String branch();", "@Override\n\tpublic Object visitIfStatement(IfStatement ifStatement, Object arg) throws Exception {\n\t\tifStatement.getE().visit(this, arg);\n\t\tLabel if_false = new Label();\n\t\tmv.visitJumpInsn(IFEQ, if_false);\n\t\tLabel if_true = new Label();\n\t\tmv.visitLabel(if_true);\n\t\tifStatement.getB().visit(this, arg);\n\t\tmv.visitLabel(if_false);\n\t\t//System.out.println(\"leaving if statement\");\n\t\treturn null;\n\t}", "public final void ifStatement() throws RecognitionException {\n CommonTree s=null;\n CommonTree v=null;\n Object e =null;\n\n\n\n int eindex = -1;\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:3: ( ^( 'if' e= expression s= . ( 'else' v= . )? ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:6: ^( 'if' e= expression s= . ( 'else' v= . )? )\n {\n match(input,46,FOLLOW_46_in_ifStatement422); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_ifStatement426);\n e=expression();\n\n state._fsp--;\n\n\n int sindex = input.index();\n\n s=(CommonTree)input.LT(1);\n\n matchAny(input); \n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:60: ( 'else' v= . )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==43) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:61: 'else' v= .\n {\n match(input,43,FOLLOW_43_in_ifStatement435); \n\n eindex = input.index();\n\n v=(CommonTree)input.LT(1);\n\n matchAny(input); \n\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); \n\n\n\n BufferedTreeNodeStream stream = (BufferedTreeNodeStream) input;\n if ((Boolean)e) {\n stream.push(sindex);\n block();\n stream.pop(); \n }\n else if(eindex != -1){\n stream.push(eindex);\n block();\n stream.pop();\n }\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public void ifStatement(Node n_parent) {\r\n if(token.get(lookAheadPossition).equals(\"IF\")){ /// not necessary - once i checked in statement////////////////////////\r\n System.out.println(\":: ifStatement::if:parent: \"+n_parent.getData());\r\n this.CheckError(\"IF\");\r\n\r\n this.expression(n_parent);\r\n this.CheckError(\"THEN\"); \r\n //this.CheckError(\"SC\");\r\n Node n_statementSequence = n_parent.setChildren(\"stmt list\");\r\n\r\n this.statementSequence(n_statementSequence);\r\n\r\n this.elseClause(n_parent);\r\n\r\n this.CheckError(\"END\");\r\n //this.CheckError(\"SC\");\r\n }\r\n\r\n }", "public void visit(BinConditionalExpression x){\n }", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "@Override\n\t\tpublic String visitIfST(IfSTContext ctx) {\n\t\t\tString type = visit(ctx.getChild(2));\n\t\t\tif(!type.equals(\"boolean\")) throw new RuntimeException(\"Expecting type Boolean in If \"+ctx.getChild(2)+\" is not boolean\");\n\t\t\tvisit(ctx.getChild(4));\n\t\t\tif(ctx.getChildCount()>5){\n\t\t\t\tvisit(ctx.getChild(6));\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public Type visit(If n) {\n\t\tif (!(n.e.accept(this) instanceof BooleanType)) {\n\t\t\t//Erro:\n\t\t\tSystem.out.println(\"A condição do if deve ser do tipo Boolean\");\n\t\t}\n\n\t\tn.s1.accept(this);\n\t\tn.s2.accept(this);\n\t\treturn new BooleanType();\n\t}", "public Code visitIfNode(StatementNode.IfNode node) {\n beginGen(\"If\");\n /* Generate code to evaluate the condition and then and else parts */\n Code code = node.getCondition().genCode(this);\n Code thenCode = node.getThenStmt().genCode(this);\n Code elseCode = node.getElseStmt().genCode(this);\n /* Append a branch over then part code */\n code.genJumpIfFalse(thenCode.size() + Code.SIZE_JUMP_ALWAYS);\n /* Next append the code for the then part */\n code.append(thenCode);\n /* Append branch over the else part */\n code.genJumpAlways(elseCode.size());\n /* Finally append the code for the else part */\n code.append(elseCode);\n endGen(\"If\");\n return code;\n }", "@Override\n\tpublic String visitIfstatement(IfstatementContext ctx) {\n\t\t\n\t\tfor(int i =0; i< ctx.getChildCount(); i++)\n\t\t{\n\t\t\n\t\tif(ctx.getChild(i).getText().equals(\"if\"))\t\n\t\t sb.append(\"CHECK \\n\");\n\t\telse if (ctx.getChild(i).getText().equals(\"else\"))\n\t\t sb.append(\"OR \\n\");\n\t\telse if (ctx.getChild(i).getText().equals(\"stop\"))\n\t\t\t sb.append(\"STOP\");\n\t\telse if(!ctx.getChild(i).getText().equals(\":\"))\n\t\t{\n\t\t\tString str =visit(ctx.getChild(i));\n\t\t\tif(str.length()>0)\n\t\t\t\tsb.append(str+\"\\n\");\n\t\t}\n\t\t}\n\t\t\n\t\treturn \"\";\n\t}", "@Override\n\tpublic void visit(IfClause n) {\n\t\tcfgNode = n;\n\t}", "@Override\n\tpublic Void visit(If iff) {\n\t\tprintIndent(\"if\");\n\t\tindent++;\n\t\tiff.cond.accept(this);\n\t\tiff.thenBranch.accept(this);\n\t\tiff.elseBranch.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private IfStmt ifstmt(){\n Expr expr=null;\n Stmt thenstmt=null;\n Stmt elsestmt= null;\n \n if(lexer.token == Symbol.IF){\n lexer.nextToken();\n expr = expr();\n\n if(lexer.token == Symbol.THEN){\n lexer.nextToken();\n thenstmt = stmt();\n \n if(lexer.token == Symbol.ELSE){\n lexer.nextToken();\n elsestmt = stmt();\n \n }\n\n \n if(lexer.token == Symbol.ENDIF){\n lexer.nextToken();\n }else{\n lexer.error(\"Missing ENDIF\");\n }\n }else{\n lexer.error(\"Missing THEN\");\n }\n }else{\n lexer.error(\"Missing IF\");\n }\n \n return new IfStmt(expr, thenstmt, elsestmt);\n }", "@Override\n public Object visitIfelsestatement(TranslationGrammarParser.IfelsestatementContext ctx) {\n Boolean cond = (Boolean) magicVisit(ctx.condition(), current_node);\n if (cond == null) {\n return null;\n }\n ArrayList<Node<TokenAttributes>> temp;\n if (cond) {\n temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.t, current_node);\n } else {\n temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.f, current_node);\n }\n if (temp == null) {\n return null;\n }\n return temp;\n }", "IfStmtRule createIfStmtRule();", "@Override\n public String visit(ConditionalExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public VariType visit(IfStatement n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t n.f1.accept(this, argu);\n\t VariType t2 = n.f2.accept(this, argu);\n\t if(t2.type != \"Boolean\") {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"expression in If Statement does not match type Boolean\";\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1);\n\t }\n\t n.f3.accept(this, argu);\n\t n.f4.accept(this, argu);\n\t n.f5.accept(this, argu);\n\t n.f6.accept(this, argu);\n\t return _ret;\n\t }", "@Override\r\n\tpublic Object visitIfStatement(IfStatement ifStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString condType = (String) ifStatement.expression.visit(this, arg);\r\n\t\tcheck(condType.equals(booleanType), \"uncompatible If condition\", ifStatement);\r\n\t\tifStatement.block.visit(this, arg);\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Void visit(ClauseBranch clause, Void ctx) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String toScreenText() {\n\t\treturn \"if(#node#)\\n{#node#}\";\n\t}", "private Data iff(Node line, Namespace namespace) {\n\n\t\tNode cond = line.next;\n\t\tNode a = cond.next;\n\t\tNode b = a.next;\n\t\t\n\t\tif (Boolean.TRUE.equals(e.eval(cond, namespace).value)) {\n\t\t\treturn e.eval(a, namespace);\n\t\t} else if (b != null) {\n\t\t\treturn e.eval(b, namespace);\n\t\t}\n\t\t\n\t\treturn NO_RESULT;\n\t}", "public void visit(IfStatement n) {\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n n.f3.accept(this);\n n.f4.accept(this);\n n.f5.accept(this);\n }", "@Test\n public void basicConditionTest() throws Exception {\n\n assertThat(getNode(\"1 == 2\", \"expr\").render(null), is((Object)false));\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n }", "public IfCondition() {\r\n super();\r\n }", "@Override\n public Object visitIfstatement(TranslationGrammarParser.IfstatementContext ctx) {\n ArrayList<Node<TokenAttributes>> result = new ArrayList<>();\n Boolean cond = (Boolean) magicVisit(ctx.condition(), current_node);\n if (cond == null) {\n return null;\n }\n if (cond) {\n ArrayList<Node<TokenAttributes>> temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.ruleebody(), current_node);\n if (temp == null) {\n return null;\n }\n return temp;\n }\n return result;\n }", "IfExp createIfExp();", "private void parseIfStatement() {\n check(Token.IF);\n check(Token.LPAR);\n\n parseCondition();\n\n int elseFixup = code.pc - 2;\n\n check(Token.RPAR);\n\n parseStatement();\n\n code.putJump(42); // Any value is fine, this will be fixed up later\n int endifFixup = code.pc - 2;\n\n code.fixup(elseFixup);\n\n if (nextToken.kind == Token.ELSE) {\n check(Token.ELSE);\n parseStatement();\n }\n\n code.fixup(endifFixup);\n }", "public MType visit(IfStatement n, MType argu) {\n \tMType _ret=null;\n \t\n \tn.f2.accept(this, argu);\n \t\n \tn.f4.accept(this, argu);\n \t\n \tn.f6.accept(this, argu);\n \t\n \treturn _ret;\n \t}", "public Arginfo visit(IfthenStatement n, Arginfo argu) {\n Arginfo _ret=null;\n \n System.out.print(\"CJUMP \");\n \n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n \n int var=(labelctr++);\n System.out.println(\" L\"+var+\" \");\n \n n.f3.accept(this, argu);\n n.f4.accept(this, argu);\n \n System.out.println(\" L\"+var+\" NOOP\");\n \n return _ret;\n }", "public Snippet visit(IfStatement n, Snippet argu) {\n\t\t Snippet _ret=new Snippet(\"\",\"\",null, false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t Snippet f2 = n.identifier.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t _ret.returnTemp = generateTabs(blockDepth)+\"if(\"+f2.returnTemp+\")\\n\";\n\t\t\ttPlasmaCode+=_ret.returnTemp;\n\t n.block.accept(this, argu);\n\t Snippet f5 = n.nodeOptional.accept(this, argu);\n\t if(f5!=null){\n\t \t\ttPlasmaCode+=f5.returnTemp;\n\t \t\t}\n\t return _ret;\n\t }", "public StatementNode getStatementNodeOnFalse();", "void visit(BooleanConstantNode node);", "@Override\n\tpublic Object visit(ASTCondEq node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" eq \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public IfStmt if_stmt() {\n Cond c = null;\n ArrayList<Stmt> ifpart = null;\n ArrayList<Stmt> elsepart = null;\n if (lexer.token == Symbol.IF) {\n\n if (lexer.nextToken() != Symbol.LPAR) {\n error.signal(\"Missing open parantheses for condition at if statement\");\n }\n lexer.nextToken();\n\n c = cond();\n\n if (lexer.token != Symbol.RPAR) {\n error.signal(\"Missing close parantheses for condition at if statement\");\n }\n\n if (lexer.nextToken() != Symbol.THEN) {\n error.signal(\"Missing THEN keyword at if statement\");\n }\n\n lexer.nextToken();\n\n ifpart = stmt_list(ifpart);\n\n elsepart = else_part(elsepart);\n\n if (lexer.token != Symbol.ENDIF) {\n error.signal(\"Missing ENDIF keyword at if statement\");\n }\n\n lexer.nextToken();\n } else {\n error.signal(\"Missing IF keyword at if statement\");\n }\n return new IfStmt(c, (ifpart != null) ? new StmtList(ifpart) : null, (elsepart != null) ? new StmtList(elsepart) : null);\n }", "public void statement(Node n_parent) {\r\n System.out.println(\":: statement:\"+n_parent.getData());\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_assignment = n_parent.setChildren(\":=\");\r\n this.assignment(n_assignment);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"IF\")) {\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_ifStatement = n_parent.setChildren(\"if\");\r\n this.ifStatement(n_ifStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WHILE\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_whileStatement = n_parent.setChildren(\"while\");\r\n this.whileStatement(n_whileStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WRITEINT\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_writeInt = n_parent.setChildren(\"writeInt\");\r\n this.writeInt(n_writeInt);\r\n }\r\n }", "public String visit(TrueLiteral n, LLVMRedux argu) throws Exception {\n return \"true\";\n }", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(2836);\n JavaParser javaParser0 = new JavaParser(\"ConditionalAndExpression\");\n SimpleNode simpleNode1 = new SimpleNode(javaParser0, 2836);\n simpleNode0.jjtSetParent(simpleNode1);\n Node node0 = simpleNode0.jjtGetParent();\n simpleNode1.jjtSetParent(node0);\n assertSame(node0, simpleNode1);\n }", "public ExpressionNode getCondition();", "public String visit(IfStatement n, String s) {\n n.f2.accept(this, null);\n n.f4.accept(this, null);\n n.f6.accept(this, null);\n return null;\n }", "@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "private boolean isIfStatement() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.IF)\n\t\t{\n\t\t\ttheCurrentSymbol = new Symbol(TokenType.IF, theCurrentToken.TokenLineNumber, null, null, null, null, null, false);\n\t\t\t\n\t\t\tupdateToken();\n\t\t\tif(theCurrentToken.TokenType == TokenType.LEFT_PARENTHESIS)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(isExpression())\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_PARENTHESIS)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.THEN)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\tif(isStatement())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\twhile(isStatement())\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\t\t\t\t\t\t\t\twhile(theCurrentToken.TokenType != TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.ELSE)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\tif(isStatement())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\twhile(isStatement())\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twhile(theCurrentToken.TokenType != TokenType.SEMICOLON)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.END)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.IF)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"If!\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(theCurrentToken.TokenType == TokenType.END)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.IF)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"If!\");\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}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttheCurrentSymbol = null;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public Arginfo visit(IfStatement n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n return _ret;\n }", "final public IASTListNode<IASTPKGStatement> ConditionalStatements() throws ParseException {\r\n IASTPKGStatement stmt = null;\r\n IASTListNode<IASTPKGStatement> stmts = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case AMPERSAND:\r\n case STRING:\r\n case IF:\r\n case COMMENT_START:\r\n case OPTIONSLIST_START:\r\n case PLUS:\r\n stmt = ConditionalStatement();\r\n stmts = ConditionalStatements();\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n if (stmt != null)\r\n stmts.add(0, stmt);\r\n {if (true) return stmts;}\r\n break;\r\n default:\r\n jj_la1[2] = jj_gen;\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n {if (true) return stmts;}\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\n public void visitIntIfCmp(Quad q) {\n final byte EQ = 0;\n final byte NE = 1;\n if (checkLevel != NonNull.LEVEL_NORMAL) {\n Operand s1 = Operator.IntIfCmp.getSrc1(q);\n Operand s2 = Operator.IntIfCmp.getSrc2(q);\n TargetOperand targBranch = Operator.IntIfCmp.getTarget(q);\n\n byte cond = Operator.IntIfCmp.getCond(q).getCondition();\n int targBBid = targBranch.getTarget().getID();\n\n // only do this when at least one of opr is reg\n if (s1 instanceof RegisterOperand && !(s2 instanceof RegisterOperand) ||\n s2 instanceof RegisterOperand && !(s1 instanceof RegisterOperand)) {\n Operand reg = s1 instanceof RegisterOperand ? s1 : s2;\n Operand other = s1 instanceof RegisterOperand ? s2 : s1;\n String regName = ((RegisterOperand) reg).getRegister().toString();\n // now ensure reg is register oprd\n\n if (cond == EQ) {\n if (isChecked(other)) {\n val.checkVarWithBranch(regName, true, targBBid);\n } else if (isNull(other)) {\n val.checkVarWithBranch(regName, false, targBBid);\n }\n } else if (cond == NE) {\n if (isNull(other)) {\n val.checkVarWithBranch(regName, true, targBBid);\n } else if (isChecked(other)) {\n val.checkVarWithBranch(regName, false, targBBid);\n }\n }\n } else if (s1 instanceof RegisterOperand && s2 instanceof RegisterOperand) {\n RegisterOperand r1 = (RegisterOperand) s1;\n RegisterOperand r2 = (RegisterOperand) s2;\n String reg1 = r1.getRegister().toString();\n String reg2 = r2.getRegister().toString();\n if (cond == EQ) {\n if (isChecked(r1)) {\n val.checkVarWithBranch(reg2, true, targBBid);\n } else if (isNull(r1)) {\n val.checkVarWithBranch(reg2, false, targBBid);\n } else if (isChecked(r2)) {\n val.checkVarWithBranch(reg1, true, targBBid);\n } else if (isNull(r2)) {\n val.checkVarWithBranch(reg1, false, targBBid);\n }\n } else if (cond == NE) {\n if (isChecked(r1)) {\n val.checkVarWithBranch(reg2, false, targBBid);\n } else if (isNull(r1)) {\n val.checkVarWithBranch(reg2, true, targBBid);\n } else if (isChecked(r2)) {\n val.checkVarWithBranch(reg1, false, targBBid);\n } else if (isNull(r2)) {\n val.checkVarWithBranch(reg1, true, targBBid);\n }\n }\n\n }\n }\n }", "@Override\n\tpublic Object visit(ASTCondEmpty node, Object data) {\n\t\tSystem.out.print(\"empty (\");\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "boolean isBranchTaken();", "BranchingBlock createBranchingBlock();", "private BaleElement.Branch createOuterBranch(BaleAstNode sn)\n{\n switch (sn.getNodeType()) {\n case FILE :\n\t return new BaleElement.CompilationUnitNode(for_document,cur_parent);\n case CLASS :\n\t return new BaleElement.ClassNode(for_document,cur_parent);\n case METHOD :\n\t return new BaleElement.MethodNode(for_document,cur_parent);\n case FIELD :\n\t return new BaleElement.FieldNode(for_document,cur_parent);\n case ANNOTATION :\n\t return new BaleElement.AnnotationNode(for_document,cur_parent);\n case STATEMENT :\n\t return new BaleElement.SplitStatementNode(for_document,cur_parent);\n case EXPRESSION :\n\t return new BaleElement.SplitExpressionNode(for_document,cur_parent);\n case BLOCK :\n\t return new BaleElement.BlockNode(for_document,cur_parent);\n case SWITCH_BLOCK :\n\t return new BaleElement.SwitchBlockNode(for_document,cur_parent);\n case INITIALIZER :\n\t return new BaleElement.InitializerNode(for_document,cur_parent);\n case SET :\n\t // return new BaleElement.DeclSet(for_document,cur_parent);\n\t break;\n default:\n\t break;\n }\n return null;\n}", "public void caseAIfStmt(AIfStmt node)\n {\n int initCount = 0;\n //inAIfStmt(node);\n if(node.getStmt() != null)\n {\n newScope();\n initCount++;\n }\n if(node.getIf() != null)\n {\n node.getIf().apply(this);\n }\n if(node.getStmt() != null)\n {\n node.getStmt().apply(this);\n }\n if(node.getExp() != null)\n {\n node.getExp().apply(this);\n }\n {\n List<PStmt> copy = new ArrayList<PStmt>(node.getTrue());\n for(PStmt e : copy)\n {\n e.apply(this);\n }\n }\n {\n List<PElseIf> copy = new ArrayList<PElseIf>(node.getElseIf());\n Iterator<PElseIf> itr = copy.iterator();\n while (itr.hasNext()) {\n PElseIf e = itr.next();\n AElseIf elseIf = (AElseIf) e;\n if(elseIf.getStmt() != null)\n {\n newScope();\n initCount++;\n }\n e.apply(this);\n if(elseIf.getExp() != null)\n {\n Type t = typemap.get(elseIf.getExp());\n t = removeAlias(t);\n if(!(t instanceof BooleanType)) throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(elseIf) + \"] If-else statement with non-boolean condition.\");\n }\n }\n }\n {\n List<PStmt> copy = new ArrayList<PStmt>(node.getFalse());\n for(PStmt e : copy)\n {\n e.apply(this);\n }\n }\n //outAIfStmt(node);\n if(node.getExp() != null)\n {\n Node e = node.getExp();\n Type t = typemap.get(e);\n t = removeAlias(t);\n if(!(t instanceof BooleanType)) throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] If statement with non-boolean condition.\");\n }\n if (initCount>0) {\n if (dump) {\n List<PStmt> copy = new ArrayList<PStmt>(node.getTrue());\n if (copy.size()>0 && golite.weeder.LineNumber.getLineNumber(copy.get(copy.size()-1))>0)\n {\n Node n = copy.get(copy.size()-1);\n System.out.println(\"[line \" + golite.weeder.LineNumber.getLineNumber(n) + \"]\");\n }\n }\n while (initCount>0) {\n unScope();\n initCount--;\n }\n }\n }", "ConditionalExpression createConditionalExpression();", "@Override\n public boolean bodyCall(Node[] args, int length, RuleContext context) {\n try {\n checkArgs(length, context);\n BindingEnvironment env = context.getEnv();\n boolean ok = false;\n JEP mathParser = new JEP();\n Node varList = getArg(0, args, context);\n Node prevSt = getArg(1, args, context);\n Node cond = getArg(2, args, context);\n Node iter = getArg(3, args, context);\n \n return IfTrue_BranchBeTraversed.evaluateExpression(prevSt, cond, context, iter, varList, mathParser);\n\n \n } catch (Exception ex) {\n //Logger.getLogger(IfTrue_BranchBeTraversed.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n return true;\n }\n }", "@Override\n\tpublic void outAFalseExpr(AFalseExpr node) {\n\t\til.append(new PUSH(cp, false));\n\t}", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "abstract boolean isLeaf();", "public LlvmValue visit(BooleanType n){\n\t\treturn LlvmPrimitiveType.I1;\n\t}", "static boolean translateIF() {\n index++;\r\n lex();\r\n\r\n //Skip adding \"(\" to stack\r\n lex();\r\n\r\n while (!lexeme.equals(\")\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\") ||\r\n token.equals(\"GREATER_THAN\") || token.equals(\"LESS_THAN\") || token.equals(\"EQUALS\") || token.equals(\"LESS_OR_EQUAL\") ||\r\n token.equals(\"GRETER_OR_EQUAL\") || token.equals(\"NOT_EQUAL\")) {\r\n stack.add(index, lexeme);\r\n index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n index++;\r\n }\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n index++;\r\n break;\r\n }\r\n }\r\n\r\n //Skip the \")\"\r\n lex();\r\n\r\n // Beginning the execution and evaluation of the translated code.\r\n index = 0;\r\n\r\n while (!stack.get(index).equals(\"=\") && !stack.get(index).equals(\"!=\") && !stack.get(index).equals(\">=\") &&\r\n !stack.get(index).equals(\"<=\") && !stack.get(index).equals(\">\") && !stack.get(index).equals(\"<\")) {\r\n index ++;\r\n }\r\n\r\n int operand1 = 0;\r\n int operand2 = 0;\r\n String operator = stack.get(index);\r\n stack.remove(index);\r\n index--;\r\n\r\n if (operator.equals(\"=\") || operator.equals(\"!=\") || operator.equals(\">=\") ||\r\n operator.equals(\"<=\") || operator.equals(\">\") || operator.equals(\"<\")) {\r\n\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n\r\n if (evaluateCon(operand1, operand2, operator))\r\n return true;\r\n else\r\n return false;\r\n }\r\n\r\n else {\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n\r\n execute(evaluate(operand1, operand2, operator));\r\n }\r\n\r\n return false;\r\n }", "public Arginfo visit(IfthenElseStatement n, Arginfo argu) {\n Arginfo _ret=null;\n \n System.out.print(\"CJUMP \");\n \n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n \n int var1=(labelctr++);\n int var2=(labelctr++);\n int var3=(labelctr++);\n System.out.println(\" L\"+var2+\" \");\n \n n.f3.accept(this, argu);\n \n System.out.println(\" L\"+var1+\" NOOP\");\n \n n.f4.accept(this, argu);\n \n System.out.println(\"JUMP L\"+var3+\" \");\n \n n.f5.accept(this, argu);\n \n System.out.println(\" L\"+var2+\" NOOP\");\n \n n.f6.accept(this, argu);\n \n System.out.println(\" L\"+var3+\" NOOP\");\n \n return _ret;\n }", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "public boolean hasBranch() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasBranch() \");\n Via via=(Via)sipHeader;\n \n return via.hasParameter(Via.BRANCH); \n }", "public static boolean NodeComp(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"NodeComp\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, NODE_COMP, \"<node comp>\");\n r = consumeToken(b, K_IS);\n if (!r) r = consumeToken(b, NODECOMP_LT);\n if (!r) r = consumeToken(b, NODECOMP_GT);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "@Override\n\tpublic Object visit(ASTCondSome node, Object data) {\n\t\treturn null;\n\t}", "private IfElement _if(String expression, CodeElement... body)\n {\n return _ifElse(expression, Arrays.asList(body), null);\n }", "@Override\n public Void visit(LogicalExpression nd, SuccessorInfo i) {\n Expression left = nd.getLeft();\n writeSuccessor(nd, First.of(left));\n if (\"&&\".equals(nd.getOperator()))\n visitWithSuccessors(left, First.of(nd.getRight()), i.getSuccessors(false));\n else visitWithSuccessors(left, i.getSuccessors(true), First.of(nd.getRight()));\n nd.getRight().accept(this, i);\n return null;\n }", "public Object visitConditionalExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n Object c = dispatch(n.getGeneric(2));\n \n if (a instanceof Long) {\n return (! ((Long) a).equals(new Long(0))) ? b : c;\n }\n else {\n return parens(a) + \" ? \" + parens(b) + \" : \" + parens(c);\n }\n }\n else {\n BDD a = ensureBDD(dispatch(n.getGeneric(0)));\n BDD b = ensureBDD(dispatch(n.getGeneric(1)));\n BDD c = ensureBDD(dispatch(n.getGeneric(2)));\n BDD ab, na, nac, bdd;\n \n //implement with a & b | !a & c\n ab = a.and(b);\n b.free();\n na = a.not();\n a.free();\n nac = na.and(c);\n c.free();\n na.free();\n bdd = ab.or(nac);\n nac.free();\n ab.free();\n \n return bdd;\n }\n }", "boolean hasIsNodeOf();", "Node currentNode();", "ASTNode getNextLeafOrBranch() {\n return getNextLeafOrBranch(0, children.size());\n }", "public String visit(FalseLiteral n, LLVMRedux argu) throws Exception {\n return \"false\";\n }", "public Branch(String label, Node node) {\n super(label);\n\n if (node == null) {\n throw new InvalidParameterException(\"Cannot create branch with no node.\");\n }\n\n this.node = node;\n }", "boolean hasNode();", "boolean hasNode();", "public final String condStmt() throws RecognitionException {\n\t\tString out = null;\n\n\n\t\tString s1 =null;\n\t\tString s2 =null;\n\t\tString expr28 =null;\n\n\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:2: ( ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] ) )\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:4: ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] )\n\t\t\t{\n\t\t\tmatch(input,42,FOLLOW_42_in_condStmt547); \n\t\t\tmatch(input, Token.DOWN, null); \n\t\t\tpushFollow(FOLLOW_expr_in_condStmt549);\n\t\t\texpr28=expr(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt554);\n\t\t\ts1=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt559);\n\t\t\ts2=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tmatch(input, Token.UP, null); \n\n\n\t\t\t\t\t\n\t\t\t\t\t\tString statement1 = \"\";\n\t\t\t\t\t\tif (s1 != null) {\n\t\t\t\t\t\t\tstatement1 = s1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tString statement2 = \"\";\n\t\t\t\t\t\tif (s2 != null) {\n\t\t\t\t\t\t\t//System.out.println(s2);\n\t\t\t\t\t\t\tstatement2 = s2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ti+=2;\n\t\t\t\t\t\tout = \"\\n\" + indent() + \"if (\" + expr28 + \") {\\n\";\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement1 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() + \"} else {\\n\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement2 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() +\"}\");\n\t\t\t\t\t\ti-=2;\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn out;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn \"ifelse\";\n\t}", "public Object visit(ASTReturnStatement node, Object data) {\n \n ASTExpression expr = (ASTExpression) node.getFirstChildOfType( ASTExpression.class );\n \n if ( expr == null ) {\n return NumericConstants.ONE;\n }\n \n List andNodes = expr.findChildrenOfType( ASTConditionalAndExpression.class );\n List orNodes = expr.findChildrenOfType( ASTConditionalOrExpression.class );\n int boolCompReturn = andNodes.size() + orNodes.size();\n \n if ( boolCompReturn > 0 ) {\n return new Integer( boolCompReturn );\n }\n return NumericConstants.ONE;\n }", "public boolean evaluate(SDGNode node);", "@Override\n public void visit(BooleanConstantNode booleanConstantNode) {\n }", "public void visit(ConditionElement1 conditionElement1) {\n\t\t\n\t\t// if a != 0, jmp true1\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc+Code.ne);\n\t\tCode.put2(11);\n\t\t\n\t\t// if b != 0, jmp true2\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.ne);\n\t\tCode.put2(8);\n\t\t\n\t\t// false: put 0,jmp next \n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jmp);\n\t\tCode.put2(5);\n\t\t\n\t\t// true1\n\t\tCode.put(Code.pop);\n\t\t\n\t\t// true2\n\t\tCode.loadConst(1);\n\t\t\n\t\t// next\n\t}" ]
[ "0.6858633", "0.67587346", "0.650165", "0.6491718", "0.6457964", "0.63940066", "0.6389645", "0.6387913", "0.6380958", "0.63573503", "0.6325411", "0.6198163", "0.6138457", "0.61335474", "0.6108819", "0.60657495", "0.60611516", "0.60449034", "0.60400933", "0.5986226", "0.5957492", "0.59355175", "0.59332854", "0.5915097", "0.590956", "0.59049803", "0.589293", "0.5841048", "0.5801784", "0.57605726", "0.5733664", "0.57241726", "0.57151735", "0.57134885", "0.5710395", "0.5708502", "0.57062566", "0.5698975", "0.56964207", "0.56807333", "0.5679695", "0.5671165", "0.5660681", "0.5659889", "0.56595695", "0.56358045", "0.5629906", "0.5628635", "0.562854", "0.56265616", "0.5614512", "0.5602723", "0.55999047", "0.55932224", "0.5577832", "0.55751646", "0.55746025", "0.5539395", "0.5525027", "0.5486566", "0.5485411", "0.54788846", "0.5475577", "0.54609156", "0.5445418", "0.5439877", "0.54331267", "0.5432353", "0.5388548", "0.536926", "0.5354194", "0.5341408", "0.5337851", "0.5334689", "0.5331263", "0.53231853", "0.53231", "0.53175414", "0.53126407", "0.5312428", "0.53122574", "0.5301345", "0.5298922", "0.5297714", "0.5296242", "0.5288445", "0.5283989", "0.5268092", "0.52650017", "0.5262263", "0.52569467", "0.52566564", "0.52478814", "0.52478814", "0.52390087", "0.52373564", "0.5237011", "0.5229901", "0.52256083", "0.52190423" ]
0.76460123
0
Set the branching condition.
public void setCondition(ExpressionNode condition);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setcond(String cond) {\n\t\n\t}", "public static void setCondition (String condition) {\n BValue cond = getCond (condition);\n synchronized (cond) {\n if (cond.v) {\n return;\n }\n cond.v = true;\n cond.notifyAll();\n }\n }", "public void setCondition(Expression condition)\n {\n this.condition = condition;\n }", "public void set( final Condition condition )\n {\n m_condition = condition;\n }", "public static void setCondition(Expression exp) {\n\t\tif (!running) return;\n\t\tstate.currentConditionNode = new RootNode(exp, state.currentConditionNode);\n\t}", "@Override\n\tpublic void setCondition(VehicleCondition condition) {\n\t\tthis.condition = condition;\n\t}", "public void setCondition(String condition) {\n\tthis.condition = condition;\n}", "@Override\r\n\tpublic void visit(ConditionExpression conditionExpression) {\n\r\n\t}", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "public void setBranchNum(Integer branchNum) {\r\n this.branchNum = branchNum;\r\n }", "OverallCondition(String condition) {\n this.condition = condition;\n }", "public void setBranchStatus(String value) {\r\n setAttributeInternal(BRANCHSTATUS, value);\r\n }", "public Condition(ConditionManager condition)\r\n\t{\r\n\t\tthis.condition = condition;\r\n\t\tinit();\r\n\t}", "protected void sequence_Condition(ISerializationContext context, Condition semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONDITION__EXP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONDITION__EXP));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getConditionAccess().getExpExpressionParserRuleCall_1_0(), semanticObject.getExp());\r\n\t\tfeeder.finish();\r\n\t}", "public void setCondition( String condition ) {\n Element conditionElement = controlElement.element( ActionSequenceDocument.CONDITION_NAME );\n if ( conditionElement == null ) {\n conditionElement = controlElement.addElement( ActionSequenceDocument.CONDITION_NAME );\n }\n conditionElement.clearContent();\n conditionElement.addCDATA( condition );\n ActionSequenceDocument.fireControlStatementChanged( this );\n }", "public Builder setInitCondBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n initCond_ = value;\n onChanged();\n return this;\n }", "public static void bgfx_encoder_set_condition(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"bgfx_occlusion_query_handle_t\") short _handle, @NativeType(\"bool\") boolean _visible) {\n long __functionAddress = Functions.encoder_set_condition;\n if (CHECKS) {\n check(_this);\n }\n invokePCV(_this, _handle, _visible, __functionAddress);\n }", "public final BB iff(Condition test)\n {\n Validate.notNull(test,What.CRITERIA);\n IfAction branch = BAL().newIf();\n branch.setTest(test);\n return autoblock(new BALFinishers.ForIf(branch));\n }", "public void select(Condition condition) {\n int i;\n boolean z = DEBUG;\n if (z) {\n String str = this.mTag;\n Log.d(str, \"select \" + condition);\n }\n int i2 = this.mSessionZen;\n if (i2 != -1 && i2 != 0) {\n final Uri realConditionId = getRealConditionId(condition);\n if (this.mController != null) {\n AsyncTask.execute(new Runnable() { // from class: com.android.systemui.volume.ZenModePanel.5\n @Override // java.lang.Runnable\n public void run() {\n ZenModePanel.this.mController.setZen(ZenModePanel.this.mSessionZen, realConditionId, \"ZenModePanel.selectCondition\");\n }\n });\n }\n setExitCondition(condition);\n if (realConditionId == null) {\n this.mPrefs.setMinuteIndex(-1);\n } else if ((isAlarm(condition) || isCountdown(condition)) && (i = this.mBucketIndex) != -1) {\n this.mPrefs.setMinuteIndex(i);\n }\n setSessionExitCondition(copy(condition));\n } else if (z) {\n Log.d(this.mTag, \"Ignoring condition selection outside of manual zen\");\n }\n }", "public Expression getCondition()\n {\n return this.condition;\n }", "public void visit(ConditionElement1 conditionElement1) {\n\t\t\n\t\t// if a != 0, jmp true1\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc+Code.ne);\n\t\tCode.put2(11);\n\t\t\n\t\t// if b != 0, jmp true2\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.ne);\n\t\tCode.put2(8);\n\t\t\n\t\t// false: put 0,jmp next \n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jmp);\n\t\tCode.put2(5);\n\t\t\n\t\t// true1\n\t\tCode.put(Code.pop);\n\t\t\n\t\t// true2\n\t\tCode.loadConst(1);\n\t\t\n\t\t// next\n\t}", "public interface BranchNode extends StatementNode\n{\n\t/**\n\t * Set the branching condition.\n\t * \n\t * @param condition\n\t * the condition of the branch.\n\t */\n\tpublic void setCondition(ExpressionNode condition);\n\n\t/**\n\t * Get the branching condition.\n\t * \n\t * @return the condition of the branch.\n\t */\n\tpublic ExpressionNode getCondition();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to true.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to true.\n\t */\n\tpublic void setStatementNodeOnTrue(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition evaluates to true.\n\t * \n\t * @return The statement to execute when the condition evaluates to true.\n\t */\n\tpublic StatementNode getStatementNodeOnTrue();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to false.\n\t * This is the else statement. If there is no else set to null.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to false or\n\t * null if no else branch is needed.\n\t */\n\tpublic void setStatementNodeOnFalse(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition is false. This is the else\n\t * branch. If no else branch exists this will return null.\n\t * \n\t * @return The statement to execute when the condition evaluates to false.\n\t */\n\tpublic StatementNode getStatementNodeOnFalse();\n}", "public void setConditionalOperator(ConditionalOperator conditionalOperator) {\n setConditionalOperator(conditionalOperator.toString());\n }", "public IfCondition() {\r\n super();\r\n }", "public Condition getCondition(){\n\t\treturn this.cond;\n\t}", "public DoSometime condition(Condition condition) {\n this.condition = condition;\n return this;\n }", "Condition createCondition();", "void setCondition(ICDICondition condition) throws CDIException;", "public String getCondition() {\n return condition;\n }", "public Builder setInitCond(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n initCond_ = value;\n onChanged();\n return this;\n }", "public void addCondition(SetGenerator condition)\n\t{\n\t\tthis.triggerConditions.add(condition);\n\t}", "public void setBranchNo(String branchNo) {\r\n this.branchNo = branchNo;\r\n }", "public void setStatus(Condition con) {\n\t\t\n\t}", "public void setCondition(WeatherCondition condition) {\n this.condition = condition;\n }", "public String getCondition() {\n\treturn condition;\n}", "public Branch() { }", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "public Condition getCondition() {\n return condition;\n }", "public void setJobCondition(String jobCondition) {\n this.jobCondition = jobCondition;\n }", "@Override\n boolean shouldBranch(StatusRegister sr) {\n return !sr.getFlag(7);\n }", "@Override\n\tpublic String updateByCondition(Familybranch record, Familybranch con, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}", "LogicCondition createLogicCondition();", "private void selectBranch () {\n \n TagsNode node = (TagsNode)tagsTree.getLastSelectedPathComponent();\n \n if (node == null) {\n // nothing selected\n }\n else\n if (node == position.getTagsNode()) {\n // If we're already positioned on the selected node, then no\n // need to do anything else (especially since it might set off\n // an endless loop).\n }\n else\n if (node.getNodeType() == TagsNode.ITEM) {\n // System.out.println (\"selectBranch selected item = \" + node.toString());\n boolean modOK = modIfChanged();\n if (modOK) {\n ClubEvent branch = (ClubEvent)node.getTaggable();\n int branchIndex = clubEventList.findByUniqueKey (branch);\n if (branchIndex >= 0) {\n position = clubEventList.positionUsingListIndex (branchIndex);\n position.setTagsNode (node);\n positionAndDisplay();\n } else {\n System.out.println (\"ClubPlanner.selectBranch\");\n System.out.println \n (\"-- Selected a branch from the tree that couldn't be found in the list\");\n System.out.println (\"-- node = \" + node.toString());\n System.out.println (\"-- event = \" + branch.getWhat());\n System.out.println (\"-- branch index = \" + String.valueOf(branchIndex));\n }\n }\n }\n else {\n // Do nothing until an item is selected\n // System.out.println (\"selectBranch selected node = \" + node.toString());\n }\n }", "private void setConditionAndListener(ObjectProperty<ConditionViewModel> property) {\n setCondition(property.get());\n\n // Update for new values\n property.addListener((observable, oldValue, newValue) -> setCondition(newValue));\n }", "public String getCondition() {\n\t\treturn condition;\n\t}", "void setVictoryCondition(String conditionIdentifier);", "public final void setTestConditionModel(TestConditionModel testConditionModel) {\r\n\t\tthis.testConditionModel = testConditionModel;\r\n\t}", "public void push(ConditionalConstant condition)\n {\n // store the condition\n m_listCondition.add(condition);\n\n // associated (and lazily instantiated) SimulatedLinkerContext\n m_listLinkerContexts.add(null);\n\n // if recursing to a new depth for the first time (i.e. under the specific parent\n // condition), store off the modification count so that a subsequent pop() will restore the\n // current indicator value\n if (m_listCondition.size() > m_listIndicators.size())\n {\n m_listIndicators.add(m_nIndicator);\n }\n\n // update the modification counter and the modification indicator\n m_nIndicator = ++m_cMods;\n }", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "public static void branch(String arg){\n commitPointers.branches = commitPointers.readBranches();\n if (commitPointers.branches.containsKey(arg)){\n exitWithError(\"A branch with that name already exists.\");\n }\n\n String headID = commitPointers.readHeadCommit()[1];\n commitPointers.branches.put(arg, headID);\n commitPointers.saveBranches();\n }", "protected void sequence_Condition(ISerializationContext context, Condition semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }", "public void setB(boolean b) {\n\tthis.b = b;\n }", "public void branchChainTo(Label label) {\n\t\t if (this.statements != null) {\n\t\t \tthis.statements[statements.length - 1].branchChainTo(label);\n\t\t }\n\t}", "public void setBranchName(final String branch) {\n branchName = branch;\n }", "public void visit(BinConditionalExpression x){\n }", "public void branchChainTo(Label label) {\n // do nothing by default\n }", "public void CondSignal(){\n trainCond.signal();\r\n }", "public void setBranch(String branch) throws IllegalArgumentException, \n SipParseException{\n if (branch==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: branch is null\");\n if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"setBranch()\" +branch);\n\n Via via=(Via)sipHeader;\n via.setBranch(branch);\n }", "public void setBranchName(String branchName) {\r\n this.branchName = branchName;\r\n }", "@Override\n public void visit(final OpConditional opCondition) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpConditional\");\n }\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n addOp(new OpConditional(rewriteOp2(opCondition, rewriter), rewriter.getResult()));\n }", "void setDefeatCondition(String conditionIdentifier);", "@Override\n public String getName() {\n return \"ifTrue_BranchBeTraversed\";\n }", "public void setBranchName(java.lang.String branchName) {\n this.branchName = branchName;\n }", "public static void enter(boolean condition) {\n if (condition) {\n StackContext.enter();\n }\n }", "public Condition(Compendium compendium) {\n\t\tgrn_ = compendium.getGrn();\n\t\tcompendium_ = compendium;\n\t}", "void setState(Object sender, ConditionT condition, Params params, StateT state);", "public void setBaseCondition(DebugEvaluatedCondition v) {\n if (DebugRuleElementMatch_Type.featOkTst && ((DebugRuleElementMatch_Type)jcasType).casFeat_baseCondition == null)\n jcasType.jcas.throwFeatMissing(\"baseCondition\", \"org.apache.uima.ruta.type.DebugRuleElementMatch\");\n jcasType.ll_cas.ll_setRefValue(addr, ((DebugRuleElementMatch_Type)jcasType).casFeatCode_baseCondition, jcasType.ll_cas.ll_getFSRef(v));}", "protected void sequence_Condition(EObject context, Condition semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "condition getConditionAllocution();", "@Override\n\tpublic String getCondition() {\n\t\treturn \"\";\n\t}", "private void assertCondition(Condition condition) {\n\t}", "ScriptBuilder setBranchCoverage(String branchCoverage) {\n this.branchCoverage = branchCoverage;\n return this;\n }", "public Condition newCondition() {\r\n throw new java.lang.UnsupportedOperationException();\r\n }", "public void setConditionalOperator(String conditionalOperator) {\n this.conditionalOperator = conditionalOperator;\n }", "private void createBranchReg(Code32 code, int op, int cond, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rm << 0);\r\n\t\tcode.incInstructionNum();\r\n\t}", "public SCondition(Node node) {\n super(node);\n }", "public void setStatementNodeOnTrue(StatementNode statement);", "public ExpressionNode getCondition();", "public void executeBR(){\n\t\tBitString conditions = mIR.substring(4, 3);\n\t\tBitString setInstruction = mIR.substring(7, 9);\n\t\tboolean ccMatch = false;\n\t\tfor (int i = 0; i < conditions.getLength() ; i++) {\n\t\t\tif(conditions.substring(i, 1).getValue() + mCC.substring(i, 1).getValue() == 2){\n\t\t\t\tccMatch = true;\n\t\t\t}\n\t\t}\n\n\t\tif(ccMatch){\n\t\t\tmPC.setValue(mPC.getValue() + setInstruction.getValue2sComp());\n\t\t}\n\t}", "public void branch(String branchName) {\n\t\tif (myBranch.containsKey(branchName)) {\n\t\t\tSystem.out.println(\"A branch with that name already exists.\");\n\t\t} else {\n\t\t\tmyBranch.put(branchName, myHead);\n\t\t}\n\t\tSerialization();\n\t}", "protected void branch(ResourceMapping mapping, CVSTag branch) throws CoreException, IOException {\n CVSTag version = new CVSTag(\"Root_\" + branch.getName(), CVSTag.VERSION);\n branch(new ResourceMapping[] { mapping }, version, branch, true /* update */);\n assertTagged(mapping, version);\n assertBranched(mapping, branch);\n }", "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource.DEPTH_ONE), new CVSTag(\"b1\", CVSTag.BRANCH));\n branch(asResourceMapping(new IResource[] { project.getFolder(\"folder1\") }, IResource.DEPTH_ONE), new CVSTag(\"b2\", CVSTag.BRANCH));\n branch(asResourceMapping(new IResource[] { project.getFile(\"folder1/subfolder1/c.txt\") }, IResource.DEPTH_ZERO), new CVSTag(\"b3\", CVSTag.BRANCH));\n branch(asResourceMapping(new IResource[] { project }, IResource.DEPTH_INFINITE), new CVSTag(\"b4\", CVSTag.BRANCH));\n }", "public void setBranchValue(entity.PolicyPeriod value);", "public void setEvaluationCondition(String evaluationCondition)\r\n {\r\n this.evaluationCondition = evaluationCondition;\r\n }", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "public Branch(E e) {\n\t\tinfo = e;\n\t\tisLeaf = true;\n\t}", "public Condition newCondition() {\n throw new java.lang.UnsupportedOperationException();\n }", "@ReceiveEvent\r\n public void onLogicTreeAddConditionEvent(LogicTreeAddConditionEvent event, EntityRef entity, ScenarioHubToolUpdateComponent component) {\r\n TriggerConditionListComponent conditions = event.getTriggerEntity().getComponent(TriggerConditionListComponent.class);\r\n //Sets up basic action as a give block component\r\n EntityRef newCondEntity = entityManager.create(assetManager.getAsset(\"scenario:blockConditional\", Prefab.class).get());\r\n\r\n argumentParser.parseDefaults(newCondEntity);\r\n newCondEntity.setOwner(event.getTriggerEntity());\r\n conditions.conditions.add(newCondEntity);\r\n event.getTriggerEntity().saveComponent(conditions);\r\n scenarioEntity.saveComponent(scenarioEntity.getComponent(ScenarioComponent.class));\r\n\r\n if (event.getHubScreen() != null) {\r\n event.getHubScreen().getComponent(HubToolExpansionComponent.class).expandedList.add(event.getTriggerEntity());\r\n event.getHubScreen().getComponent(HubToolExpansionComponent.class).expandedList.add(event.getTriggerEntity().getComponent(TriggerNameComponent.class).entityForCondition);\r\n event.getHubScreen().saveComponent(event.getHubScreen().getComponent(HubToolExpansionComponent.class));\r\n event.getHubScreen().getComponent(ScenarioHubToolUpdateComponent.class).addedEntity = newCondEntity;\r\n event.getHubScreen().saveComponent(event.getHubScreen().getComponent(ScenarioHubToolUpdateComponent.class));\r\n }\r\n\r\n for (EntityRef e : entityManager.getEntitiesWith(ScenarioHubToolUpdateComponent.class)) {\r\n e.send(new HubtoolRewriteLogicEvent());\r\n }\r\n }", "public void onConditionOnset(String module, String state, String condition, long time) {\n if (!sources.containsKey(module)) {\n sources.put(module, new ModuleConditions(module));\n }\n ModuleConditions moduleConditions = sources.get(module);\n moduleConditions.onsetCondition(condition, state, time);\n }", "OclExpression getCondition();", "public OverallCondition getCondition() {\n return condition;\n }", "@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}", "@ReceiveEvent\r\n public void onLogicTreeAddConditionEvent(LogicTreeAddConditionEvent event, EntityRef entity, ScenarioComponent component) {\r\n TriggerConditionListComponent conditions = event.getTriggerEntity().getComponent(TriggerConditionListComponent.class);\r\n //Sets up basic action as a give block component\r\n EntityRef newCondEntity = entityManager.create(assetManager.getAsset(\"scenario:blockConditional\", Prefab.class).get());\r\n\r\n ArgumentParser argParser = new ArgumentParser();\r\n argParser.setAssetManager(assetManager);\r\n argParser.setBlockManager(blockManager);\r\n argParser.setEntityManager(entityManager);\r\n\r\n\r\n\r\n argParser.parseDefaults(newCondEntity);\r\n newCondEntity.setOwner(event.getTriggerEntity());\r\n conditions.conditions.add(newCondEntity);\r\n event.getTriggerEntity().saveComponent(conditions);\r\n entity.saveComponent(component);\r\n\r\n if (event.getHubScreen() != null) {\r\n event.getHubScreen().getEntity().getComponent(ExpandedComponent.class).expandedList.add(event.getTriggerEntity());\r\n event.getHubScreen().getEntity().getComponent(ExpandedComponent.class).expandedList.add(event.getTriggerEntity().getComponent(TriggerNameComponent.class).entityForCondition);\r\n event.getHubScreen().getEntity().saveComponent(event.getHubScreen().getEntity().getComponent(ExpandedComponent.class));\r\n event.getHubScreen().setAddedEntity(newCondEntity);\r\n event.getHubScreen().updateTree(entity);\r\n }\r\n }", "@Override\n\tpublic String getTreeCondition() {\n\t\treturn null;\n\t}", "BaseCondition createBaseCondition();", "public Builder<T> If(BooleanSupplier condition) {\n this.ifCond = condition.getAsBoolean();\n return this;\n }", "void setCond(String name, long date, int lvl) {\n\tWeatherUnit weath1 = getWeather(date);\n\tint old = ((Integer)weath1.levels.get(name)).intValue();\n\tint nyu = old + lvl;\n\tif (nyu < 0) nyu = 0;\n\tif (old != nyu) {\n\t weath1.levels.put(name,new Integer(nyu));\n\t // Cascade down\n\t setCond(name, date);\n\t main.myFrw.announce(this);\n\t main.redo(false);\n\t}\n }", "@Override\n public void enterCondition(FSMParser.ConditionContext ctx) {\n if (ctx.var() != null && ((Var) findComp(ctx.var().NAME().getText())).isInput() &&\n ((Var) findComp(ctx.var().NAME().getText())).getBitSize() < 2) {\n Var inputflag = (Var) findComp(ctx.var().NAME().getText());\n FSMParser.Next_stateContext context = (FSMParser.Next_stateContext) ctx.getParent();\n int nextState = Integer.parseInt(\n context.STATENUMBER().getText().substring(6, context.STATENUMBER().getText().length()));\n\n //checking to see if true or false\n if (Integer.parseInt(ctx.expression().integer().opp.getText()) == 1) {\n this.conditions.get(0).put(inputflag, nextState);\n if (!this.conditionsOrder.contains(inputflag))\n this.conditionsOrder.add(inputflag);\n } else if (Integer.parseInt(ctx.expression().integer().opp.getText()) == 0) {\n this.conditions.get(1).put(inputflag, nextState);\n if (!this.conditionsOrder.contains(inputflag))\n this.conditionsOrder.add(inputflag);\n }\n return;\n\n }\n //finding the 2 components that are compaired\n VerilogComp compare1;\n VerilogComp compare2;\n if (ctx.register() != null) {\n compare1 = findComp(ctx.register().NAME().getText());\n\n } else {\n compare1 = findComp(ctx.var().NAME().getText());\n }\n\n if (ctx.expression().var() != null) {\n compare2 = findComp(ctx.expression().var().NAME().getText());\n } else if (ctx.expression().integer() != null) {\n int temp = Integer.parseInt(ctx.expression().integer().getText());\n FixedNumber tempfixed = new FixedNumber(temp, compare1.getBitSize());\n compare2 = tempfixed;\n this.comps.add(tempfixed);\n\n } else {\n compare2 = findComp(ctx.expression().register().NAME().getText());\n }\n\n // if the opp type is not equals, append the equals ctx number, as we do not want to make\n // another flag if the equals flag exists\n int ctx_opp = (ctx.opp.getType()==19)?16:ctx.opp.getType();\n String text = compare1.getName().substring(0, 1) + compare2.getName().substring(0, 1) + ctx_opp;\n FSMParser.Next_stateContext context = (FSMParser.Next_stateContext) ctx.getParent();\n int nextState = Integer.parseInt(\n context.STATENUMBER().getText().substring(6, context.STATENUMBER().getText().length()));\n\n //if there is no flag for this condition, make a variable and give it to conditionsTrue map\n if (findComp(\"flag_\" + text) == null) {\n\n\n Var output = new Var(\"flag_\" + text,\n 1, false, true, false);\n if (!(this.compInputs.containsKey(compare1.getName() + \"|\" + compare2.getName()))) {\n this.compInputs.put(compare1.getName() + \"|\" + compare2.getName(), new Var[3]);\n }\n\n Var[] flags = this.compInputs.get(compare1.getName() + \"|\" + compare2.getName());\n\n\n // finding the type of condition based on token Num\n //equals and not equals\n if (ctx.opp.getType() == 16 || ctx.opp.getType() == 19) {\n flags[1] = output;\n if (ctx.opp.getType() == 16) {\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n } else {\n this.conditions.get(1).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n }\n //greatethan\n } else if (ctx.opp.getType() == 17) {\n flags[2] = output;\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n\n //less than\n } else if (ctx.opp.getType() == 18) {\n flags[0] = output;\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n }\n this.comps.add(output);\n\n\n //if equals flag exists but creating a not equals flag\n } else if (!this.conditions.get(0).containsKey(findComp(\"flag_\" + text)) && ctx.opp.getType() == 17) {\n this.conditions.get(1).put((Var) findComp(\"flag_\" + text), nextState);\n this.conditionsOrder.add((Var) findComp(\"flag_\" + text));\n } else {\n Var output = (Var) findComp(\"flag_\" + text);\n if (ctx.opp.getType() == 19) {\n this.conditions.get(1).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n } else if (ctx.opp.getType() == 16 || ctx.opp.getType() == 17\n || ctx.opp.getType() == 18) {\n this.conditions.get(0).put(output, nextState);\n if (!this.conditionsOrder.contains(output))\n this.conditionsOrder.add(output);\n }\n }\n\n }" ]
[ "0.6750383", "0.6605263", "0.66033834", "0.65256804", "0.6471626", "0.60140306", "0.5985891", "0.58259714", "0.5710474", "0.56864303", "0.56040066", "0.55842215", "0.5551816", "0.5516973", "0.54770064", "0.5457579", "0.54327244", "0.54267496", "0.5390846", "0.5383797", "0.537018", "0.53695774", "0.5363056", "0.5357412", "0.53390807", "0.5332416", "0.5324721", "0.5306071", "0.52984345", "0.5284323", "0.52767676", "0.52663594", "0.52585095", "0.52408946", "0.5235227", "0.5233114", "0.523261", "0.52286744", "0.5226252", "0.5219669", "0.52191323", "0.5207087", "0.52068794", "0.51979667", "0.5193754", "0.5191821", "0.51911145", "0.5190317", "0.5179702", "0.5179702", "0.51526314", "0.5149953", "0.51471645", "0.5146889", "0.5144726", "0.51429296", "0.51390946", "0.5138911", "0.51349324", "0.5125936", "0.51240087", "0.51227474", "0.51160103", "0.51103985", "0.5108719", "0.51070136", "0.5106007", "0.50947547", "0.50937504", "0.5091313", "0.5077725", "0.5076303", "0.5072826", "0.506437", "0.50623095", "0.50576264", "0.5049326", "0.5043652", "0.5036547", "0.50312185", "0.5017537", "0.5006589", "0.5005142", "0.50020945", "0.4997087", "0.4990637", "0.49899736", "0.49882078", "0.49872825", "0.4979913", "0.4979222", "0.49760997", "0.49691838", "0.49667832", "0.49637336", "0.49548095", "0.49430797", "0.49411342", "0.4940678", "0.4938221" ]
0.6637444
1
Get the branching condition.
public ExpressionNode getCondition();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression getCondition()\n {\n return this.condition;\n }", "public Condition getCondition(){\n\t\treturn this.cond;\n\t}", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "public Condition getCondition() {\n return condition;\n }", "Expression getCond();", "OclExpression getCondition();", "java.lang.String getCondition();", "String getCondition();", "public String getCondition() {\n return condition;\n }", "public ASTNode getCondition() {\n \treturn (ASTNode)getChildNode(ChooseRulePlugin.GUARD_NAME);\n }", "public OverallCondition getCondition() {\n return condition;\n }", "com.google.protobuf.ByteString getConditionBytes();", "public String getCondition() {\n\treturn condition;\n}", "public String getCondition() {\n\t\treturn condition;\n\t}", "public Object getCondition();", "String branch();", "Expr getCond();", "public Reference condition() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_CONDITION);\n }", "public int getCondition() {\r\n\t\tif(this.condition == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.condition.ordinal();\r\n\t}", "@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}", "public Optional<String> getBranch() {\n return Optional.fromNullable(branch);\n }", "public String getJobCondition() {\n return jobCondition;\n }", "condition getConditionAllocution();", "public DebugEvaluatedCondition getBaseCondition() {\n if (DebugRuleElementMatch_Type.featOkTst && ((DebugRuleElementMatch_Type)jcasType).casFeat_baseCondition == null)\n jcasType.jcas.throwFeatMissing(\"baseCondition\", \"org.apache.uima.ruta.type.DebugRuleElementMatch\");\n return (DebugEvaluatedCondition)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DebugRuleElementMatch_Type)jcasType).casFeatCode_baseCondition)));}", "@Override\n\tpublic VehicleCondition getCondition() {\n\t\treturn condition;\n\t}", "double getBranchProbability();", "public final CQLParser.condition_return condition() throws RecognitionException {\n CQLParser.condition_return retval = new CQLParser.condition_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n CQLParser.logicalExpression_return logicalExpression11 = null;\n\n\n\n errorMessageStack.push(\"Condition definition\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:213:2: ( logicalExpression )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:213:4: logicalExpression\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_logicalExpression_in_condition477);\n logicalExpression11=logicalExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, logicalExpression11.getTree());\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "@Override\n public String getName() {\n return \"ifTrue_BranchBeTraversed\";\n }", "Condition createCondition();", "public String getWorkingCondition() {\r\n return workingCondition;\r\n }", "public ContractValue getCondition(int argumentIndex) {\n ContractValue left;\n if (this == NULL_VALUE || this == NOT_NULL_VALUE) {\n left = ContractValue.nullValue();\n }\n else if (this == TRUE_VALUE || this == FALSE_VALUE) {\n left = ContractValue.booleanValue(true);\n }\n else {\n return ContractValue.booleanValue(true);\n }\n return ContractValue.condition(left, RelationType.equivalence(!shouldUseNonEqComparison()), ContractValue.argument(argumentIndex));\n }", "public String getEvaluationCondition()\r\n {\r\n return evaluationCondition;\r\n }", "Event getCondition();", "public String getInitCond() {\n Object ref = initCond_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n\tpublic String getCondition() {\n\t\treturn \"\";\n\t}", "public Integer getBranchNum() {\r\n return branchNum;\r\n }", "cn.infinivision.dataforce.busybee.pb.meta.ExprOrBuilder getConditionOrBuilder();", "public interface BranchNode extends StatementNode\n{\n\t/**\n\t * Set the branching condition.\n\t * \n\t * @param condition\n\t * the condition of the branch.\n\t */\n\tpublic void setCondition(ExpressionNode condition);\n\n\t/**\n\t * Get the branching condition.\n\t * \n\t * @return the condition of the branch.\n\t */\n\tpublic ExpressionNode getCondition();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to true.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to true.\n\t */\n\tpublic void setStatementNodeOnTrue(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition evaluates to true.\n\t * \n\t * @return The statement to execute when the condition evaluates to true.\n\t */\n\tpublic StatementNode getStatementNodeOnTrue();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to false.\n\t * This is the else statement. If there is no else set to null.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to false or\n\t * null if no else branch is needed.\n\t */\n\tpublic void setStatementNodeOnFalse(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition is false. This is the else\n\t * branch. If no else branch exists this will return null.\n\t * \n\t * @return The statement to execute when the condition evaluates to false.\n\t */\n\tpublic StatementNode getStatementNodeOnFalse();\n}", "io.grpc.user.task.PriceCondition getCondition();", "@Override\n public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Condition getCondition() {\n\t\treturn new MoveDistanceCondition(5,5);\n\t}", "public String getBranchNo() {\r\n return branchNo;\r\n }", "public com.google.protobuf.ByteString\n getInitCondBytes() {\n Object ref = initCond_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n initCond_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBranchStatus() {\r\n return (String) getAttributeInternal(BRANCHSTATUS);\r\n }", "Constraint getBodyCondition();", "@Override\n\tpublic String getTreeCondition() {\n\t\treturn null;\n\t}", "public WeatherCondition getCondition() {\n return condition;\n }", "LogicCondition createLogicCondition();", "public final AstValidator.cond_return cond() throws RecognitionException {\n AstValidator.cond_return retval = new AstValidator.cond_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree OR180=null;\n CommonTree AND183=null;\n CommonTree NOT186=null;\n CommonTree NULL188=null;\n CommonTree NOT190=null;\n CommonTree BOOL_COND196=null;\n AstValidator.cond_return cond181 =null;\n\n AstValidator.cond_return cond182 =null;\n\n AstValidator.cond_return cond184 =null;\n\n AstValidator.cond_return cond185 =null;\n\n AstValidator.cond_return cond187 =null;\n\n AstValidator.expr_return expr189 =null;\n\n AstValidator.rel_op_return rel_op191 =null;\n\n AstValidator.expr_return expr192 =null;\n\n AstValidator.expr_return expr193 =null;\n\n AstValidator.in_eval_return in_eval194 =null;\n\n AstValidator.func_eval_return func_eval195 =null;\n\n AstValidator.expr_return expr197 =null;\n\n\n CommonTree OR180_tree=null;\n CommonTree AND183_tree=null;\n CommonTree NOT186_tree=null;\n CommonTree NULL188_tree=null;\n CommonTree NOT190_tree=null;\n CommonTree BOOL_COND196_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:392:6: ( ^( OR cond cond ) | ^( AND cond cond ) | ^( NOT cond ) | ^( NULL expr ( NOT )? ) | ^( rel_op expr expr ) | in_eval | func_eval | ^( BOOL_COND expr ) )\n int alt52=8;\n switch ( input.LA(1) ) {\n case OR:\n {\n alt52=1;\n }\n break;\n case AND:\n {\n alt52=2;\n }\n break;\n case NOT:\n {\n alt52=3;\n }\n break;\n case NULL:\n {\n alt52=4;\n }\n break;\n case NUM_OP_EQ:\n case NUM_OP_GT:\n case NUM_OP_GTE:\n case NUM_OP_LT:\n case NUM_OP_LTE:\n case NUM_OP_NE:\n case STR_OP_EQ:\n case STR_OP_GT:\n case STR_OP_GTE:\n case STR_OP_LT:\n case STR_OP_LTE:\n case STR_OP_MATCHES:\n case STR_OP_NE:\n {\n alt52=5;\n }\n break;\n case IN:\n {\n alt52=6;\n }\n break;\n case FUNC_EVAL:\n case INVOKER_FUNC_EVAL:\n {\n alt52=7;\n }\n break;\n case BOOL_COND:\n {\n alt52=8;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 52, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt52) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:392:8: ^( OR cond cond )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n OR180=(CommonTree)match(input,OR,FOLLOW_OR_in_cond1733); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n OR180_tree = (CommonTree)adaptor.dupNode(OR180);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(OR180_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cond_in_cond1735);\n cond181=cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cond181.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cond_in_cond1737);\n cond182=cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cond182.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:393:8: ^( AND cond cond )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n AND183=(CommonTree)match(input,AND,FOLLOW_AND_in_cond1750); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n AND183_tree = (CommonTree)adaptor.dupNode(AND183);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(AND183_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cond_in_cond1752);\n cond184=cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cond184.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cond_in_cond1754);\n cond185=cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cond185.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:394:8: ^( NOT cond )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n NOT186=(CommonTree)match(input,NOT,FOLLOW_NOT_in_cond1767); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NOT186_tree = (CommonTree)adaptor.dupNode(NOT186);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(NOT186_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cond_in_cond1769);\n cond187=cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, cond187.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:395:8: ^( NULL expr ( NOT )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n NULL188=(CommonTree)match(input,NULL,FOLLOW_NULL_in_cond1782); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NULL188_tree = (CommonTree)adaptor.dupNode(NULL188);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(NULL188_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_cond1784);\n expr189=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr189.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:395:21: ( NOT )?\n int alt51=2;\n int LA51_0 = input.LA(1);\n\n if ( (LA51_0==NOT) ) {\n alt51=1;\n }\n switch (alt51) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:395:21: NOT\n {\n _last = (CommonTree)input.LT(1);\n NOT190=(CommonTree)match(input,NOT,FOLLOW_NOT_in_cond1786); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NOT190_tree = (CommonTree)adaptor.dupNode(NOT190);\n\n\n adaptor.addChild(root_1, NOT190_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 5 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:396:8: ^( rel_op expr expr )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_op_in_cond1800);\n rel_op191=rel_op();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) root_1 = (CommonTree)adaptor.becomeRoot(rel_op191.getTree(), root_1);\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_cond1802);\n expr192=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr192.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_cond1804);\n expr193=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr193.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 6 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:397:8: in_eval\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_in_eval_in_cond1815);\n in_eval194=in_eval();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, in_eval194.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 7 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:398:8: func_eval\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_eval_in_cond1824);\n func_eval195=func_eval();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, func_eval195.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 8 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:399:8: ^( BOOL_COND expr )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n BOOL_COND196=(CommonTree)match(input,BOOL_COND,FOLLOW_BOOL_COND_in_cond1835); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BOOL_COND196_tree = (CommonTree)adaptor.dupNode(BOOL_COND196);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BOOL_COND196_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_cond1837);\n expr197=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr197.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public RequestCondition<?> getCustomCondition()\n/* */ {\n/* 164 */ return this.customConditionHolder.getCondition();\n/* */ }", "public String getBranch() {\n if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getBranch()\");\n Via via=(Via)sipHeader;\n return via.getBranch();\n }", "public RefactoringStatus getConditionStatus() {\n return fPreconditionStatus;\n }", "public String getBranchLabel() {\r\n\t\treturn branchLabel;\r\n\t}", "public String getBranchNo() {\n return branchNo;\n }", "Condition getCondition(String conditionName, Lock lock);", "public String getFixedCondition() {\n return _fixedCondition;\n }", "Boolean conditionResult();", "@Field(5) \n\tpublic byte ConditionalOrderStatus() {\n\t\treturn this.io.getByteField(this, 5);\n\t}", "@Override\n public String getInitCond() {\n Object ref = initCond_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n }\n }", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "public String getConditionalOperator() {\n return conditionalOperator;\n }", "public int getConditionCode() {\n\t\t\treturn conditionCode;\n\t\t}", "public final TestConditionModel getTestConditionModel() {\r\n\t\treturn testConditionModel;\r\n\t}", "public Cond cond() {\n Cond c = new Cond();\n c.setExpr1(expr());\n c.setOp(compop());\n c.setExpr2(expr());\n \n String type1 = c.getExpr1().getType(symbolTable);\n String type2 = c.getExpr2().getType(symbolTable);\n \n if(type1 != null && type2 != null){\n if(!type1.equals(type2)){\n error.warning(\"Trying to compare a \"+type1+\" with a \"+type2);\n }\n } else\n error.show(\"Trying to make comparison with a variable(s) that hasn't been declared\");\n \n return c;\n }", "public String getConditionalClause() {\r\n\t\treturn conditionalClause;\r\n\t}", "int getConditionValue();", "public String getBranchno() {\n return branchno;\n }", "public BranchDetails getBranchDetails(){\n\t\n\tbranchD = BranchDetails.getBranchDetails();\t\n\treturn branchD;\n\t}", "public String getBranchcode() {\n return branchcode;\n }", "boolean isBranchTaken();", "@Override\r\n\tpublic Object visitCond(CondContext ctx) { \r\n\t\tBoolean condExpr = (Boolean) visit(ctx.condstat().expr(0));\r\n\t\tif(condExpr){\r\n\t\t\treturn visit(ctx.condstat().expr(1));\r\n\t\t}else{\r\n\t\t\treturn visit(ctx.condstat().expr(2));\r\n\t\t}\r\n\t}", "public String getConditiondescription() {\r\n return conditiondescription;\r\n }", "private Branch parseIf(Tokenizer in) {\n\t\tBranch branch = new Branch();\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.OPEN_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ( got: '\"+expectParen+\"'\"+expectParen.generateLineChar());\n\t\tbranch.condition = parseParen(in);\n\t\tbranch.ifTrue = parseStmt(in);\n\t\tToken next = in.next();\n\t\tif (next != null && next.type == Token.TokenType.KEYWORD && ((KeywordToken) next).value == Keyword.ELSE)\n\t\t\tbranch.ifFalse = parseStmt(in);\n\t\telse\n\t\t\tin.pushTokens(next);\n\t\treturn branch;\n\t}", "public GitBranch getBranch() { return GitDir.this.getBranch(getName()); }", "HibBranch getBranch(InternalActionContext ac, HibProject project);", "public File getBranch() {\n return _branch;\n }", "public final BB iff(Condition test)\n {\n Validate.notNull(test,What.CRITERIA);\n IfAction branch = BAL().newIf();\n branch.setTest(test);\n return autoblock(new BALFinishers.ForIf(branch));\n }", "public Collection<Stmt> branches() {\n if(branches_computed) {\n return branches_value;\n }\n ASTNode$State state = state();\n int num = state.boundariesCrossed;\n boolean isFinal = this.is$Final();\n branches_value = branches_compute();\n if (isFinal && num == state().boundariesCrossed) {\n branches_computed = true;\n } else {\n }\n\n return branches_value;\n }", "public double cond() {\n return new SingularValueDecomposition(this).cond();\n }", "public int[] getConditions() { return conditional; }", "ConditionFactory getConditionFactory();", "public int getBranchCount() { return _brcnt; }", "ICDICondition getCondition() throws CDIException;", "public String getBranchCd() {\r\n return branchCd;\r\n }", "public String getBranchName() {\r\n return branchName;\r\n }", "public Cond newCond() {\n return new Cond();\n }", "private Conditional ifStatement()\n\t{\n\t\t// IfStatement --> if ( Expression ) Statement [ else Statement ]\n\t\tConditional c = null;\n\t\t\n\t\t// if\n\t\tmatch(TokenType.If);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\t// else가 나오면\n\t\tif (token.type().equals(TokenType.Else))\n\t\t{\n\t\t\t// else\n\t\t\ttoken = lexer.next();\n\t\t\t\n\t\t\t// <<Statement>>\n\t\t\tStatement elseState = statement();\n\t\t\tc = new Conditional(e, s, elseState);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc = new Conditional(e, s);\n\t\t}\n\t\t\n\t\treturn c; // student exercise\n\t}", "public String getBranchName() {\n return branchName;\n }", "public String getBranchName() {\n return branchName;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyPeriod getBranchValue();", "public boolean hasBranch() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasBranch() \");\n Via via=(Via)sipHeader;\n \n return via.hasParameter(Via.BRANCH); \n }", "public static Branch getDefaultBranch(){\n BranchDao bDAO = new BranchDao();\n Branch branch = null;\n try {\n branch = bDAO.findByName(\"Main Branch\"); //from SQL script\n } catch (DaoException ex) {\n Logger.getLogger(BranchCtrl.class.getName()).log(Level.SEVERE, null, ex);\n ErrorMsg.setLastError(ErrorMsg.ERROR_SQL_ERROR);\n }\n if(branch==null){\n branch = defaultBranch;\n }\n return branch;\n }", "boolean hasCondition();", "@Override\n public ConditionType getConditionType() {\n return typeLookup.get(_cfRule.getType());\n }", "public String getBranchCode() {\n return normalizedBic.substring(BRANCH_CODE_INDEX, BRANCH_CODE_INDEX + BRANCH_CODE_LENGTH);\n }", "public java.lang.String getFinishCondition() {\n return finishCondition;\n }", "java.lang.String getBranchName();", "ConditionalExpression createConditionalExpression();", "public native ConditionerTemplate getConditioner(int idx);", "public java.lang.String getBranchName() {\n return branchName;\n }" ]
[ "0.7063135", "0.69826186", "0.68725544", "0.66946775", "0.6689368", "0.6682311", "0.6619174", "0.6605099", "0.6577811", "0.6559009", "0.6550272", "0.6541549", "0.6532177", "0.6532042", "0.6514633", "0.6466026", "0.6458282", "0.64080924", "0.63721555", "0.6257623", "0.61650413", "0.6094177", "0.60756034", "0.6010587", "0.60032344", "0.5999922", "0.59825915", "0.59619015", "0.59511364", "0.59504825", "0.59501487", "0.5907867", "0.589699", "0.5885553", "0.5880722", "0.5863975", "0.5860323", "0.5845849", "0.5841317", "0.5830918", "0.5828389", "0.5810342", "0.5801433", "0.57949716", "0.5785683", "0.5780932", "0.5762572", "0.5758575", "0.5750151", "0.5749195", "0.5742008", "0.5738895", "0.57315683", "0.5731507", "0.5728734", "0.5718397", "0.57071096", "0.56812745", "0.56662434", "0.5656856", "0.56559795", "0.565136", "0.5647664", "0.5620367", "0.5608038", "0.55985296", "0.5588834", "0.5588481", "0.5564275", "0.5559436", "0.555551", "0.5551454", "0.554885", "0.5531531", "0.5531293", "0.5526371", "0.5507207", "0.55050963", "0.54993755", "0.5489199", "0.54848427", "0.54673535", "0.5452196", "0.5445802", "0.54453546", "0.5435217", "0.54191786", "0.54076236", "0.54031163", "0.53975385", "0.53901553", "0.53851247", "0.5366785", "0.53520817", "0.534719", "0.53442585", "0.53435993", "0.5341298", "0.5322655", "0.53136957" ]
0.68181115
3
Set the statement that is executed when the condition evaluates to true.
public void setStatementNodeOnTrue(StatementNode statement);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCondition(Expression condition)\n {\n this.condition = condition;\n }", "public void setCondition(ExpressionNode condition);", "public static void setCondition (String condition) {\n BValue cond = getCond (condition);\n synchronized (cond) {\n if (cond.v) {\n return;\n }\n cond.v = true;\n cond.notifyAll();\n }\n }", "public void set( final Condition condition )\n {\n m_condition = condition;\n }", "@Override\n\tpublic void setcond(String cond) {\n\t\n\t}", "void setStatement(Statement statement);", "public static void setCondition(Expression exp) {\n\t\tif (!running) return;\n\t\tstate.currentConditionNode = new RootNode(exp, state.currentConditionNode);\n\t}", "public void ifThen(final boolean cond, final Statement f) {\n this.ifThen(x -> x == cond, f);\n }", "public void setCondition(String condition) {\n\tthis.condition = condition;\n}", "public static void on(boolean condition, Runnable then) {\n\t\tif (condition) {\n\t\t\tthen.run();\n\t\t}\n\t}", "public void setElse(Statement elseStatement)\n {\n this.elseStatement = elseStatement;\n }", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "public void ifThen(final Predicate<Boolean> cond, final Statement f) {\n synchronized (this) {\n if (cond.test(this.val)) {\n f.execute();\n }\n }\n }", "public void setCondition( String condition ) {\n Element conditionElement = controlElement.element( ActionSequenceDocument.CONDITION_NAME );\n if ( conditionElement == null ) {\n conditionElement = controlElement.addElement( ActionSequenceDocument.CONDITION_NAME );\n }\n conditionElement.clearContent();\n conditionElement.addCDATA( condition );\n ActionSequenceDocument.fireControlStatementChanged( this );\n }", "public void setThen(Statement thenStatement)\n {\n this.thenStatement = thenStatement;\n }", "public void setElseStm(Statement elseStm);", "public void addCondition(SetGenerator condition)\n\t{\n\t\tthis.triggerConditions.add(condition);\n\t}", "public DoSometime condition(Condition condition) {\n this.condition = condition;\n return this;\n }", "public final void statement() throws RecognitionException {\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:3: ( call | assignment | ifStatement | whileStatement )\n int alt10=4;\n switch ( input.LA(1) ) {\n case CALL:\n {\n alt10=1;\n }\n break;\n case 38:\n {\n alt10=2;\n }\n break;\n case 46:\n {\n alt10=3;\n }\n break;\n case 49:\n {\n alt10=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 10, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt10) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:5: call\n {\n pushFollow(FOLLOW_call_in_statement347);\n call();\n\n state._fsp--;\n\n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:10: assignment\n {\n pushFollow(FOLLOW_assignment_in_statement349);\n assignment();\n\n state._fsp--;\n\n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:21: ifStatement\n {\n pushFollow(FOLLOW_ifStatement_in_statement351);\n ifStatement();\n\n state._fsp--;\n\n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:33: whileStatement\n {\n pushFollow(FOLLOW_whileStatement_in_statement353);\n whileStatement();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public void setStatement(String newStatement){\n this.statement = newStatement; \n }", "public Builder setOwnStatement(boolean value) {\n \n ownStatement_ = value;\n onChanged();\n return this;\n }", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "public void setThenStm(Statement thenStm);", "public void statement(Node n_parent) {\r\n System.out.println(\":: statement:\"+n_parent.getData());\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_assignment = n_parent.setChildren(\":=\");\r\n this.assignment(n_assignment);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"IF\")) {\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_ifStatement = n_parent.setChildren(\"if\");\r\n this.ifStatement(n_ifStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WHILE\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_whileStatement = n_parent.setChildren(\"while\");\r\n this.whileStatement(n_whileStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WRITEINT\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_writeInt = n_parent.setChildren(\"writeInt\");\r\n this.writeInt(n_writeInt);\r\n }\r\n }", "public static void on(boolean condition, Runnable then, Runnable elze) {\n\t\tif (condition) {\n\t\t\tthen.run();\n\t\t} else {\n\t\t\telze.run();\n\t\t}\n\t}", "public void setStatementNodeOnFalse(StatementNode statement);", "public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }", "public void select(Condition condition) {\n int i;\n boolean z = DEBUG;\n if (z) {\n String str = this.mTag;\n Log.d(str, \"select \" + condition);\n }\n int i2 = this.mSessionZen;\n if (i2 != -1 && i2 != 0) {\n final Uri realConditionId = getRealConditionId(condition);\n if (this.mController != null) {\n AsyncTask.execute(new Runnable() { // from class: com.android.systemui.volume.ZenModePanel.5\n @Override // java.lang.Runnable\n public void run() {\n ZenModePanel.this.mController.setZen(ZenModePanel.this.mSessionZen, realConditionId, \"ZenModePanel.selectCondition\");\n }\n });\n }\n setExitCondition(condition);\n if (realConditionId == null) {\n this.mPrefs.setMinuteIndex(-1);\n } else if ((isAlarm(condition) || isCountdown(condition)) && (i = this.mBucketIndex) != -1) {\n this.mPrefs.setMinuteIndex(i);\n }\n setSessionExitCondition(copy(condition));\n } else if (z) {\n Log.d(this.mTag, \"Ignoring condition selection outside of manual zen\");\n }\n }", "CollectIteratorEvaluator(BooleanValue condition) {\n this.condition = condition;\n }", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "@Override\r\n\tpublic void visit(ConditionExpression conditionExpression) {\n\r\n\t}", "public void setEvaluationCondition(String evaluationCondition)\r\n {\r\n this.evaluationCondition = evaluationCondition;\r\n }", "public void visit(ConditionSingle conditionSingle)\n\t{\n\t\tinsertJumpAtEndOfCondition();\n\t}", "public Builder setStatement(org.apache.calcite.avatica.proto.Common.StatementHandle value) {\n if (statementBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n statement_ = value;\n onChanged();\n } else {\n statementBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void onConditionOnset(String module, String state, String condition, long time) {\n if (!sources.containsKey(module)) {\n sources.put(module, new ModuleConditions(module));\n }\n ModuleConditions moduleConditions = sources.get(module);\n moduleConditions.onsetCondition(condition, state, time);\n }", "protected void sequence_Condition(ISerializationContext context, Condition semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONDITION__EXP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONDITION__EXP));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getConditionAccess().getExpExpressionParserRuleCall_1_0(), semanticObject.getExp());\r\n\t\tfeeder.finish();\r\n\t}", "protected Expression analyzeCondition() throws AnalysisException {\n final var condition = analyzeExpression();\n assertKeyWord(ScriptBasicKeyWords.KEYWORD_THEN);\n return condition;\n }", "public static void enter(boolean condition) {\n if (condition) {\n StackContext.enter();\n }\n }", "public Expression getCondition()\n {\n return this.condition;\n }", "public String getCondition() {\n return condition;\n }", "@Override\n public Object Execute()\n {\n Object result = null;\n\n if (IfClause.Execute().toString().toLowerCase() == \"true\")\n {\n result = ThenClause.Execute();\n }\n else\n {\n if (ElseClause != null)\n {\n result = ElseClause.Execute();\n }\n }\n \n return result;\n }", "public static void bgfx_encoder_set_condition(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"bgfx_occlusion_query_handle_t\") short _handle, @NativeType(\"bool\") boolean _visible) {\n long __functionAddress = Functions.encoder_set_condition;\n if (CHECKS) {\n check(_this);\n }\n invokePCV(_this, _handle, _visible, __functionAddress);\n }", "public IfElseStatement(final Location loc, Expression condition, Statement thenStatement, Statement elseStatement)\n {\n super(loc);\n this.condition = condition;\n this.thenStatement = thenStatement;\n this.elseStatement = elseStatement;\n }", "protected void sequence_Condition(EObject context, Condition semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public final Statement statement() throws RecognitionException {\r\n Statement result = null;\r\n\r\n int statement_StartIndex = input.index();\r\n\r\n QuestionStatement qst =null;\r\n\r\n ConditionalStatement cstmt =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:2: (qst= questionStatement |cstmt= conditionalStatement )\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0==Ident) ) {\r\n alt2=1;\r\n }\r\n else if ( (LA2_0==IfRW) ) {\r\n alt2=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:4: qst= questionStatement\r\n {\r\n pushFollow(FOLLOW_questionStatement_in_statement125);\r\n qst=questionStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = qst; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:32:4: cstmt= conditionalStatement\r\n {\r\n pushFollow(FOLLOW_conditionalStatement_in_statement137);\r\n cstmt=conditionalStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = cstmt; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 3, statement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public void addWhen(Object pCondition, Object pValue);", "private void Conditional(){\n\t\tLogicOR();\n\t\t\n\t\tfor(;;){\n\t\t\tif(eat(\"for\")){\n\t\t\t\tInlineFor();\n\t\t\t}else if(eat(\"if\")){\n\t\t\t\tExpression();\n\t\t\t\tif(eat(\"else\"))\n\t\t\t\t\tConditional();\n\t\t\t}else if(eat(\"defined\") || eat(\"!defined\"));\n\t\t\telse for(;;){\n\t\t\t\tif(eat(\"?\")){\n\t\t\t\t\tExpression();\n\t\t\t\t\tassert_eat(\":\");\n\t\t\t\t\tConditional();\n\t\t\t\t}else return;\n\t\t\t}\n\t\t}\n\t}", "protected void sequence_Condition(ISerializationContext context, Condition semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override\n public void visit(final OpConditional opCondition) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpConditional\");\n }\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n addOp(new OpConditional(rewriteOp2(opCondition, rewriter), rewriter.getResult()));\n }", "public String getCondition() {\n\treturn condition;\n}", "IfStatement createIfStatement();", "public String getCondition() {\n\t\treturn condition;\n\t}", "public Builder setStatement(\n org.apache.calcite.avatica.proto.Common.StatementHandle.Builder builderForValue) {\n if (statementBuilder_ == null) {\n statement_ = builderForValue.build();\n onChanged();\n } else {\n statementBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void onsetCondition(String condition, String state, long time) {\n if (!onsetConditions.containsKey(condition)) {\n onsetConditions.put(condition, new OnsetCondition(condition));\n }\n OnsetCondition onsetCondition = onsetConditions.get(condition);\n onsetCondition.addNewEntry(time);\n state2conditionMapping.put(state, condition);\n }", "OverallCondition(String condition) {\n this.condition = condition;\n }", "public void setExpression(Expression expression) {\n // a ForStatement may occur inside an Expression - must check cycles\n replaceChild(this.optionalConditionExpression, expression, true);\n this.optionalConditionExpression = expression; }", "@Nonnull\r\n\tpublic static <T> Observable<T> ifThen(\r\n\t\t\t@Nonnull final Func0<Boolean> condition,\r\n\t\t\t@Nonnull final Observable<? extends T> then,\r\n\t\t\t@Nonnull final Observable<? extends T> orElse) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\tObservable<? extends T> source = null;\r\n\t\t\t\tif (condition.invoke()) {\r\n\t\t\t\t\tsource = then;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsource = orElse;\r\n\t\t\t\t}\r\n\t\t\t\treturn source.register(observer);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "void setVictoryCondition(String conditionIdentifier);", "private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }", "public void setExecute(ValueExpression execute) {\n this.execute = execute;\n }", "public Condition getCondition(){\n\t\treturn this.cond;\n\t}", "public abstract boolean execute(Condition condition, Map<String, String> executionParameterMap, Grant grant);", "public void setQueryCondition(QueryCondition queryCondition)\n {\n\tthis.queryCondition = queryCondition;\n }", "public static void bgfx_set_condition(@NativeType(\"bgfx_occlusion_query_handle_t\") short _handle, @NativeType(\"bool\") boolean _visible) {\n long __functionAddress = Functions.set_condition;\n invokeCV(_handle, _visible, __functionAddress);\n }", "private boolean executionCondition(String condition) {\r\n\r\n\t\tboolean result = false;\r\n\t\tif (condition != null) {\r\n\t\t\ttry {\r\n\t\t\t\tresult = Boolean.parseBoolean(ExecutScript(getScriptOfParameters(), getScriptOfValuesAsObjects(),\r\n\t\t\t\t\t\t\"return (\" + condition + \")\").toString());\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tsetResultstype(resultstype.Failure);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void check_always_true_condition(boolean on){\r\n this.e_always_true_condition = on;\r\n }", "public Criteria when(boolean condition, ICriteriaWhen then) {\n if (condition) {\n then.criteria(this);\n }\n return this;\n }", "public Criteria when(boolean condition, ICriteriaWhen then) {\n if (condition) {\n then.criteria(this);\n }\n return this;\n }", "public Criteria when(boolean condition, ICriteriaWhen then) {\n if (condition) {\n then.criteria(this);\n }\n return this;\n }", "public Criteria when(boolean condition, ICriteriaWhen then) {\n if (condition) {\n then.criteria(this);\n }\n return this;\n }", "private void setConditionAndListener(ObjectProperty<ConditionViewModel> property) {\n setCondition(property.get());\n\n // Update for new values\n property.addListener((observable, oldValue, newValue) -> setCondition(newValue));\n }", "public final void rule__AstStatementIf__ConditionAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25011:1: ( ( ruleAstExpression ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25012:1: ( ruleAstExpression )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25012:1: ( ruleAstExpression )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25013:1: ruleAstExpression\n {\n before(grammarAccess.getAstStatementIfAccess().getConditionAstExpressionParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleAstExpression_in_rule__AstStatementIf__ConditionAssignment_150241);\n ruleAstExpression();\n\n state._fsp--;\n\n after(grammarAccess.getAstStatementIfAccess().getConditionAstExpressionParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static boolean statement(FileInputStream f) {\n if(observer != null){\n observer.parser.setCurrentRule(\"statement\",true);\n }\n \n CToken t = new CToken();\n \n if (assignment(f) || whileLoop(f) || ifStatement(f) || returnStatement(f)) {\n if(observer != null){\n observer.parser.setCurrentRule(\"statement\", false);\n }\n return true;\n }\n else if (expression(f)) {\n if(observer != null){\n observer.parser.setCurrentRule(\"statement\",true);\n }\n t = getUsePeek(f);\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule Statement unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"statement\", false);\n }\n return true;\n } //(Expression ;)\n if(observer != null){\n observer.parser.setCurrentRule(\"statement\", false);\n }\n return false;\n }", "@Override\r\n\tpublic Statement getNextStatement(Task task) {\r\n\t\tif ((boolean)(this.getExpression().evaluate(task)))\r\n\t\t\treturn body;\r\n\t\telse\r\n\t\t\treturn nextStatement;\r\n\t}", "public final void addCondition(final Condition c) {\n m_body.add(c);\n }", "public TCpyBankCreditExample when(boolean condition, IExampleWhen then) {\n if (condition) {\n then.example(this);\n }\n return this;\n }", "public void execute() {\n setExecuted(true);\n }", "public boolean hasStatement() {\n return statement_ != null;\n }", "public static boolean Statement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Statement\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STATEMENT, \"<statement>\");\n r = VariableDefinition(b, l + 1);\n if (!r) r = AssignmentStatement(b, l + 1);\n if (!r) r = FunctionInvocation(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "protected void sequence_IfStmt(ISerializationContext context, IfStmt semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "void doCondition() throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\t// must have a breakpoint number\n\t\t\tint id = nextIntToken();\n\n\t\t\t// get the breakpoint\n\t\t\tint at = breakpointIndexOf(id);\n\t\t\tBreakAction a = breakpointAt(at);\n\n\t\t\t// no more parms means to clear it\n\t\t\tif (hasMoreTokens())\n\t\t\t{\n\t\t\t\t// now just pull the commands as they come while not end\n\t\t\t\tString line = restOfLine();\n\n\t\t\t\t// build an expression and attach it to the breakpoint\n\t\t\t\tValueExp exp = parseExpression(line);\n\n\t\t\t\t// warn about the assignment!\n\t\t\t\tif ( exp.containsAssignment() && !yesNoQuery(getLocalizationManager().getLocalizedTextString(\"askExpressionContainsAssignment\")) ) //$NON-NLS-1$\n\t\t\t\t\tthrow new IllegalAccessException(\"=\"); //$NON-NLS-1$\n\n\t\t\t\ta.setCondition(exp, line);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ta.clearCondition(); // clear it\n\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\targs.put(\"breakpointNumber\", Integer.toString(id)); //$NON-NLS-1$\n\t\t\t\tout(getLocalizationManager().getLocalizedTextString(\"breakpointNowUnconditional\", args)); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalAccessException iae)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"breakpointNotChanged\")); //$NON-NLS-1$\n\t\t}\n\t\tcatch(IndexOutOfBoundsException iob)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"breakpointNumber\", m_currentToken); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noBreakpointNumber\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NumberFormatException nfe)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"token\", m_currentToken); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"badBreakpointNumber\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"commandFailed\")); //$NON-NLS-1$\n\t\t}\n\t}", "protected void sequence_ConditionAction(EObject context, ConditionAction semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public final void rule__AstStatementIf__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16499:1: ( ( ( rule__AstStatementIf__ConditionAssignment_1 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16500:1: ( ( rule__AstStatementIf__ConditionAssignment_1 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16500:1: ( ( rule__AstStatementIf__ConditionAssignment_1 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16501:1: ( rule__AstStatementIf__ConditionAssignment_1 )\n {\n before(grammarAccess.getAstStatementIfAccess().getConditionAssignment_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16502:1: ( rule__AstStatementIf__ConditionAssignment_1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16502:2: rule__AstStatementIf__ConditionAssignment_1\n {\n pushFollow(FOLLOW_rule__AstStatementIf__ConditionAssignment_1_in_rule__AstStatementIf__Group__1__Impl33250);\n rule__AstStatementIf__ConditionAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstStatementIfAccess().getConditionAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__ForStmt__ConditionAssignment_2_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:16895:1: ( ( ruleCondition ) )\r\n // InternalGo.g:16896:2: ( ruleCondition )\r\n {\r\n // InternalGo.g:16896:2: ( ruleCondition )\r\n // InternalGo.g:16897:3: ruleCondition\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getForStmtAccess().getConditionConditionParserRuleCall_2_0_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleCondition();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getForStmtAccess().getConditionConditionParserRuleCall_2_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void check_comment_at_the_end_of_statement(boolean on){\r\n this.e_comment_at_the_end_of_statement = on;\r\n }", "public interface StatementHandler {\n public void statement(String subject, String property, String object,\n boolean literal);\n}", "private void assertCondition(Condition condition) {\n\t}", "@Override\r\n\tpublic void setNextStatementInProgram(Statement stat) {\r\n\t\tthis.nextStatementInProgram = body;\r\n\t\tbody.setNextStatementInProgram(stat);\r\n\t}", "public void setCondition(WeatherCondition condition) {\n this.condition = condition;\n }", "public Condition getCondition() {\n return condition;\n }", "@Override\n\tpublic void setCondition(VehicleCondition condition) {\n\t\tthis.condition = condition;\n\t}", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void visit(IfStatement ifStatement) {\n\t\tifStatement.cond().accept(this);\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tcheckType(\"boolean\");\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tSet<String> elseClone = new HashSet<String>(uninit);\n\t\tifStatement.thencase().accept(this);\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tSet<String> thenClone = new HashSet<String>(uninit);\n\t\tuninit = elseClone;\n\t\tifStatement.elsecase().accept(this);\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tuninit.addAll(thenClone);\n\t}", "@Override\n\tpublic String getCondition() {\n\t\treturn \"\";\n\t}", "public void SetLhs(IStatement s) {args[0] = s;}", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "void setDefeatCondition(String conditionIdentifier);", "@Override\r\n\tpublic void setNextStatement(Statement next) {\r\n\t\tbody.setNextStatement(this);\r\n\t\tthis.nextStatement = next;\r\n\t\tSet<Statement> breakStatements = body.getBreakStatements();\r\n\t\tfor (Statement breakStatement : breakStatements) \r\n\t\t\tbreakStatement.setNextStatement(next);\r\n\t}", "public void ifStatement(Node n_parent) {\r\n if(token.get(lookAheadPossition).equals(\"IF\")){ /// not necessary - once i checked in statement////////////////////////\r\n System.out.println(\":: ifStatement::if:parent: \"+n_parent.getData());\r\n this.CheckError(\"IF\");\r\n\r\n this.expression(n_parent);\r\n this.CheckError(\"THEN\"); \r\n //this.CheckError(\"SC\");\r\n Node n_statementSequence = n_parent.setChildren(\"stmt list\");\r\n\r\n this.statementSequence(n_statementSequence);\r\n\r\n this.elseClause(n_parent);\r\n\r\n this.CheckError(\"END\");\r\n //this.CheckError(\"SC\");\r\n }\r\n\r\n }", "public void sql(boolean sql) {\n this.sql = sql;\n }" ]
[ "0.68205625", "0.6626561", "0.6535548", "0.65103185", "0.64322025", "0.63481224", "0.6322539", "0.616442", "0.6126549", "0.6104072", "0.609464", "0.6077434", "0.6061941", "0.6019197", "0.6014036", "0.59091985", "0.5851452", "0.5814735", "0.57279336", "0.56978786", "0.5689245", "0.56691563", "0.5661069", "0.565817", "0.5628896", "0.5620437", "0.55842674", "0.5558877", "0.5545847", "0.5538082", "0.5529882", "0.5478818", "0.54760754", "0.54741275", "0.5440978", "0.54398626", "0.53804064", "0.5346022", "0.5340041", "0.5340023", "0.53204924", "0.5270254", "0.5249855", "0.52473766", "0.5243042", "0.5240162", "0.5225247", "0.5217488", "0.5205669", "0.5200894", "0.51971835", "0.5179861", "0.51761824", "0.5163353", "0.51520413", "0.5147225", "0.5134195", "0.51162255", "0.5108158", "0.51045084", "0.50938517", "0.50843173", "0.50836974", "0.5073979", "0.50589466", "0.505851", "0.50536144", "0.50536144", "0.50536144", "0.50536144", "0.5052971", "0.5052451", "0.50474703", "0.5042675", "0.5034142", "0.50300527", "0.5028286", "0.5026882", "0.5022603", "0.50217336", "0.5019325", "0.5007997", "0.50015706", "0.49998972", "0.4998014", "0.4991715", "0.4989848", "0.4987031", "0.49797896", "0.49736834", "0.49721536", "0.49660608", "0.49597567", "0.49541146", "0.49482504", "0.49462944", "0.49453926", "0.4943054", "0.49415988", "0.49415806" ]
0.6877137
0
The statement that is executed when the condition evaluates to true.
public StatementNode getStatementNodeOnTrue();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Expression getCondition()\n {\n return this.condition;\n }", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "protected Expression analyzeCondition() throws AnalysisException {\n final var condition = analyzeExpression();\n assertKeyWord(ScriptBasicKeyWords.KEYWORD_THEN);\n return condition;\n }", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "@Override\n public Object Execute()\n {\n Object result = null;\n\n if (IfClause.Execute().toString().toLowerCase() == \"true\")\n {\n result = ThenClause.Execute();\n }\n else\n {\n if (ElseClause != null)\n {\n result = ElseClause.Execute();\n }\n }\n \n return result;\n }", "private boolean executionCondition(String condition) {\r\n\r\n\t\tboolean result = false;\r\n\t\tif (condition != null) {\r\n\t\t\ttry {\r\n\t\t\t\tresult = Boolean.parseBoolean(ExecutScript(getScriptOfParameters(), getScriptOfValuesAsObjects(),\r\n\t\t\t\t\t\t\"return (\" + condition + \")\").toString());\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tsetResultstype(resultstype.Failure);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public String getCondition() {\n return condition;\n }", "public boolean nextConditionMet() {\n return true;\n }", "public String getCondition() {\n\treturn condition;\n}", "public String getCondition() {\n\t\treturn condition;\n\t}", "public String getEvaluationCondition()\r\n {\r\n return evaluationCondition;\r\n }", "Boolean conditionResult();", "public Condition getCondition(){\n\t\treturn this.cond;\n\t}", "public Condition getCondition() {\n return condition;\n }", "java.lang.String getCondition();", "private Conditional ifStatement()\n\t{\n\t\t// IfStatement --> if ( Expression ) Statement [ else Statement ]\n\t\tConditional c = null;\n\t\t\n\t\t// if\n\t\tmatch(TokenType.If);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\t// else가 나오면\n\t\tif (token.type().equals(TokenType.Else))\n\t\t{\n\t\t\t// else\n\t\t\ttoken = lexer.next();\n\t\t\t\n\t\t\t// <<Statement>>\n\t\t\tStatement elseState = statement();\n\t\t\tc = new Conditional(e, s, elseState);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc = new Conditional(e, s);\n\t\t}\n\t\t\n\t\treturn c; // student exercise\n\t}", "private void Conditional(){\n\t\tLogicOR();\n\t\t\n\t\tfor(;;){\n\t\t\tif(eat(\"for\")){\n\t\t\t\tInlineFor();\n\t\t\t}else if(eat(\"if\")){\n\t\t\t\tExpression();\n\t\t\t\tif(eat(\"else\"))\n\t\t\t\t\tConditional();\n\t\t\t}else if(eat(\"defined\") || eat(\"!defined\"));\n\t\t\telse for(;;){\n\t\t\t\tif(eat(\"?\")){\n\t\t\t\t\tExpression();\n\t\t\t\t\tassert_eat(\":\");\n\t\t\t\t\tConditional();\n\t\t\t\t}else return;\n\t\t\t}\n\t\t}\n\t}", "public ExpressionNode getCondition();", "public abstract String\n conditional();", "@Override\n\tpublic String getCondition() {\n\t\treturn \"\";\n\t}", "@Override\r\n\tpublic void visit(ConditionExpression conditionExpression) {\n\r\n\t}", "public boolean hasStatement() {\n return statement_ != null;\n }", "public void setCondition(Expression condition)\n {\n this.condition = condition;\n }", "final public IASTPKGStatement ConditionalStatement() throws ParseException {\r\n IASTPKGStatement node = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMMENT_START:\r\n node = CommentStatement();\r\n break;\r\n case OPTIONSLIST_START:\r\n node = OptionsListStatement();\r\n break;\r\n default:\r\n jj_la1[3] = jj_gen;\r\n if (jj_2_2(2147483647)) {\r\n node = EmbeddedSisStatement();\r\n } else {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case STRING:\r\n node = InstallFileStatement();\r\n break;\r\n case PLUS:\r\n node = PropertiesStatement();\r\n break;\r\n case IF:\r\n node = ConditionalBlock();\r\n break;\r\n default:\r\n jj_la1[4] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n }\r\n }\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\r\n\tpublic Statement getNextStatement(Task task) {\r\n\t\tif ((boolean)(this.getExpression().evaluate(task)))\r\n\t\t\treturn body;\r\n\t\telse\r\n\t\t\treturn nextStatement;\r\n\t}", "public Object getCondition();", "private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }", "String getCondition();", "@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}", "IfStatement createIfStatement();", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "CollectIteratorEvaluator(BooleanValue condition) {\n this.condition = condition;\n }", "private boolean isCondition() {\n return line.startsWith(\"if \") || line.startsWith(\"else \") ||\n line.startsWith(\"if(\") || line.equals(\"else\");\n }", "public String getConditionalClause() {\r\n\t\treturn conditionalClause;\r\n\t}", "public void ifThen(final boolean cond, final Statement f) {\n this.ifThen(x -> x == cond, f);\n }", "public static void on(boolean condition, Runnable then) {\n\t\tif (condition) {\n\t\t\tthen.run();\n\t\t}\n\t}", "boolean hasCondition();", "public void ifThen(final Predicate<Boolean> cond, final Statement f) {\n synchronized (this) {\n if (cond.test(this.val)) {\n f.execute();\n }\n }\n }", "public boolean conditionFulfilled();", "boolean hasStatement();", "public void setCondition(String condition) {\n\tthis.condition = condition;\n}", "public boolean hasStatement() {\n return statementBuilder_ != null || statement_ != null;\n }", "private boolean peekStatement() {\n return peekSourceElement();\n }", "public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }", "public Statement getElse()\n {\n return this.elseStatement;\n }", "private boolean evaluateCondition(String cond) {\n logger.debug(\" getCondition() : [\" + cond + \"]\");\n \n String resultStr = \"\";\n boolean result = false;\n \n // now evaluate the condition using JavaScript\n Context cx = Context.enter();\n try {\n Scriptable scope = cx.initStandardObjects(null);\n Object cxResultObject = cx.evaluateString(scope, cond\n /** * conditionString ** */\n , \"<cmd>\", 1, null);\n resultStr = Context.toString(cxResultObject);\n \n if (resultStr.equals(\"false\")) { //$NON-NLS-1$\n result = false;\n } else if (resultStr.equals(\"true\")) { //$NON-NLS-1$\n result = true;\n } else {\n throw new Exception(\" BAD CONDITION :: \" + cond + \" :: expected true or false\");\n }\n \n logger.debug(\" >> evaluate Condition - [ \" + cond + \"] results is [\" + result + \"]\");\n } catch (Exception e) {\n logger.error(getName()+\": error while processing \"+ \"[\" + cond + \"]\\n\", e);\n } finally {\n Context.exit();\n }\n \n return result;\n }", "public ASTNode getCondition() {\n \treturn (ASTNode)getChildNode(ChooseRulePlugin.GUARD_NAME);\n }", "public String getStatement()\n {\n return _statement;\n }", "public final Statement statement() throws RecognitionException {\r\n Statement result = null;\r\n\r\n int statement_StartIndex = input.index();\r\n\r\n QuestionStatement qst =null;\r\n\r\n ConditionalStatement cstmt =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:2: (qst= questionStatement |cstmt= conditionalStatement )\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0==Ident) ) {\r\n alt2=1;\r\n }\r\n else if ( (LA2_0==IfRW) ) {\r\n alt2=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:4: qst= questionStatement\r\n {\r\n pushFollow(FOLLOW_questionStatement_in_statement125);\r\n qst=questionStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = qst; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:32:4: cstmt= conditionalStatement\r\n {\r\n pushFollow(FOLLOW_conditionalStatement_in_statement137);\r\n cstmt=conditionalStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = cstmt; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 3, statement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public int getCondition() {\r\n\t\tif(this.condition == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.condition.ordinal();\r\n\t}", "public IfCondition() {\r\n super();\r\n }", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "public OverallCondition getCondition() {\n return condition;\n }", "public Statement getElseStm();", "public String getStatement() {\r\n\t\treturn statement;\r\n\t}", "protected void sequence_Condition(ISerializationContext context, Condition semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONDITION__EXP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONDITION__EXP));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getConditionAccess().getExpExpressionParserRuleCall_1_0(), semanticObject.getExp());\r\n\t\tfeeder.finish();\r\n\t}", "@Override\r\n\tpublic Object visitCond(CondContext ctx) { \r\n\t\tBoolean condExpr = (Boolean) visit(ctx.condstat().expr(0));\r\n\t\tif(condExpr){\r\n\t\t\treturn visit(ctx.condstat().expr(1));\r\n\t\t}else{\r\n\t\t\treturn visit(ctx.condstat().expr(2));\r\n\t\t}\r\n\t}", "boolean getOwnStatement();", "public final void statement() throws RecognitionException {\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:3: ( call | assignment | ifStatement | whileStatement )\n int alt10=4;\n switch ( input.LA(1) ) {\n case CALL:\n {\n alt10=1;\n }\n break;\n case 38:\n {\n alt10=2;\n }\n break;\n case 46:\n {\n alt10=3;\n }\n break;\n case 49:\n {\n alt10=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 10, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt10) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:5: call\n {\n pushFollow(FOLLOW_call_in_statement347);\n call();\n\n state._fsp--;\n\n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:10: assignment\n {\n pushFollow(FOLLOW_assignment_in_statement349);\n assignment();\n\n state._fsp--;\n\n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:21: ifStatement\n {\n pushFollow(FOLLOW_ifStatement_in_statement351);\n ifStatement();\n\n state._fsp--;\n\n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:33: whileStatement\n {\n pushFollow(FOLLOW_whileStatement_in_statement353);\n whileStatement();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "@Override\n public void visit(final OpConditional opCondition) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpConditional\");\n }\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n addOp(new OpConditional(rewriteOp2(opCondition, rewriter), rewriter.getResult()));\n }", "final public IASTListNode<IASTPKGStatement> ConditionalStatements() throws ParseException {\r\n IASTPKGStatement stmt = null;\r\n IASTListNode<IASTPKGStatement> stmts = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case AMPERSAND:\r\n case STRING:\r\n case IF:\r\n case COMMENT_START:\r\n case OPTIONSLIST_START:\r\n case PLUS:\r\n stmt = ConditionalStatement();\r\n stmts = ConditionalStatements();\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n if (stmt != null)\r\n stmts.add(0, stmt);\r\n {if (true) return stmts;}\r\n break;\r\n default:\r\n jj_la1[2] = jj_gen;\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n {if (true) return stmts;}\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public boolean isExecuted()\n {\n return executed;\n }", "public Statement getThen()\n {\n return this.thenStatement;\n }", "condition getConditionAllocution();", "public void setCondition(ExpressionNode condition);", "public int evaluate() {\n return Condition.INDETERMINATE;\n }", "public void setEvaluationCondition(String evaluationCondition)\r\n {\r\n this.evaluationCondition = evaluationCondition;\r\n }", "private static void testSimpleAssertion(String condition, String sourceMessage) throws ContractException {\n String script = \"var assert = !(\"; //This sets the condition to the assert varriable.\n\n script += condition + \");\";\n\n getAssert(script, sourceMessage, condition); //This runs the script created and checks it.\n }", "public String getStatement(){\n return this.statement;\n }", "public final String condStmt() throws RecognitionException {\n\t\tString out = null;\n\n\n\t\tString s1 =null;\n\t\tString s2 =null;\n\t\tString expr28 =null;\n\n\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:2: ( ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] ) )\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:4: ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] )\n\t\t\t{\n\t\t\tmatch(input,42,FOLLOW_42_in_condStmt547); \n\t\t\tmatch(input, Token.DOWN, null); \n\t\t\tpushFollow(FOLLOW_expr_in_condStmt549);\n\t\t\texpr28=expr(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt554);\n\t\t\ts1=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt559);\n\t\t\ts2=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tmatch(input, Token.UP, null); \n\n\n\t\t\t\t\t\n\t\t\t\t\t\tString statement1 = \"\";\n\t\t\t\t\t\tif (s1 != null) {\n\t\t\t\t\t\t\tstatement1 = s1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tString statement2 = \"\";\n\t\t\t\t\t\tif (s2 != null) {\n\t\t\t\t\t\t\t//System.out.println(s2);\n\t\t\t\t\t\t\tstatement2 = s2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ti+=2;\n\t\t\t\t\t\tout = \"\\n\" + indent() + \"if (\" + expr28 + \") {\\n\";\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement1 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() + \"} else {\\n\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement2 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() +\"}\");\n\t\t\t\t\t\ti-=2;\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn out;\n\t}", "public boolean getOwnStatement() {\n return ownStatement_;\n }", "private void assertCondition(Condition condition) {\n\t}", "public final ConditionalStatement conditionalStatement() throws RecognitionException {\r\n ConditionalStatement result = null;\r\n\r\n int conditionalStatement_StartIndex = input.index();\r\n\r\n IfThenElseStatement ifthels =null;\r\n\r\n IfThenStatement ifths =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 5) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:2: (ifthels= ifThenElseStatement |ifths= ifThenStatement )\r\n int alt4=2;\r\n int LA4_0 = input.LA(1);\r\n\r\n if ( (LA4_0==IfRW) ) {\r\n int LA4_1 = input.LA(2);\r\n\r\n if ( (synpred4_QL()) ) {\r\n alt4=1;\r\n }\r\n else if ( (true) ) {\r\n alt4=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 4, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 4, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt4) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: ifthels= ifThenElseStatement\r\n {\r\n pushFollow(FOLLOW_ifThenElseStatement_in_conditionalStatement196);\r\n ifthels=ifThenElseStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = ifthels; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:44:4: ifths= ifThenStatement\r\n {\r\n pushFollow(FOLLOW_ifThenStatement_in_conditionalStatement208);\r\n ifths=ifThenStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = ifths; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 5, conditionalStatement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public void printStatement() {\n\t\t\n\t}", "Expression getCond();", "OclExpression getCondition();", "int getConditionValue();", "@Override\n\tpublic Object visit(ASTCondIs node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" is \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public void statement(Node n_parent) {\r\n System.out.println(\":: statement:\"+n_parent.getData());\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_assignment = n_parent.setChildren(\":=\");\r\n this.assignment(n_assignment);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"IF\")) {\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_ifStatement = n_parent.setChildren(\"if\");\r\n this.ifStatement(n_ifStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WHILE\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_whileStatement = n_parent.setChildren(\"while\");\r\n this.whileStatement(n_whileStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WRITEINT\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_writeInt = n_parent.setChildren(\"writeInt\");\r\n this.writeInt(n_writeInt);\r\n }\r\n }", "Event getCondition();", "public static void on(boolean condition, Runnable then, Runnable elze) {\n\t\tif (condition) {\n\t\t\tthen.run();\n\t\t} else {\n\t\t\telze.run();\n\t\t}\n\t}", "public boolean getOwnStatement() {\n return ownStatement_;\n }", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "public static void enter(boolean condition) {\n if (condition) {\n StackContext.enter();\n }\n }", "public void visit(ConditionSingle conditionSingle)\n\t{\n\t\tinsertJumpAtEndOfCondition();\n\t}", "public DoSometime condition(Condition condition) {\n this.condition = condition;\n return this;\n }", "public Expression getExpression() {\n return optionalConditionExpression; }", "@Nonnull\r\n\tpublic static <T> Observable<T> ifThen(\r\n\t\t\t@Nonnull final Func0<Boolean> condition,\r\n\t\t\t@Nonnull final Observable<? extends T> then,\r\n\t\t\t@Nonnull final Observable<? extends T> orElse) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\tObservable<? extends T> source = null;\r\n\t\t\t\tif (condition.invoke()) {\r\n\t\t\t\t\tsource = then;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsource = orElse;\r\n\t\t\t\t}\r\n\t\t\t\treturn source.register(observer);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public abstract boolean execute(Condition condition, Map<String, String> executionParameterMap, Grant grant);", "public IfElseStatement(final Location loc, Expression condition, Statement thenStatement, Statement elseStatement)\n {\n super(loc);\n this.condition = condition;\n this.thenStatement = thenStatement;\n this.elseStatement = elseStatement;\n }", "public Statement getThenStm();", "OverallCondition(String condition) {\n this.condition = condition;\n }", "@Override\n\tpublic void printOn(PrintStream out, int depth) {\n\t\tIndentable.printIndentOnLn(out, depth, \"if \" + condition + \" then \");\n\t\twhenTrue.printOn(out, \tdepth + 1);\n\t\tif (whenFalse != null) {\n\t\t\tIndentable.printIndentOnLn(out, depth, \"else\");\n\t\t\twhenFalse.printOn(out, depth + 1);\n\t\t}\n\t\tIndentable.printIndentOnLn(out, depth, \"End if\");\n\t}", "public int getConditionCode() {\n\t\t\treturn conditionCode;\n\t\t}", "public void addCondition(SetGenerator condition)\n\t{\n\t\tthis.triggerConditions.add(condition);\n\t}", "public void ifStatement(Node n_parent) {\r\n if(token.get(lookAheadPossition).equals(\"IF\")){ /// not necessary - once i checked in statement////////////////////////\r\n System.out.println(\":: ifStatement::if:parent: \"+n_parent.getData());\r\n this.CheckError(\"IF\");\r\n\r\n this.expression(n_parent);\r\n this.CheckError(\"THEN\"); \r\n //this.CheckError(\"SC\");\r\n Node n_statementSequence = n_parent.setChildren(\"stmt list\");\r\n\r\n this.statementSequence(n_statementSequence);\r\n\r\n this.elseClause(n_parent);\r\n\r\n this.CheckError(\"END\");\r\n //this.CheckError(\"SC\");\r\n }\r\n\r\n }", "@Override\r\n\tpublic String getCondition(String[] sql) {\n\t\treturn sql[4];\r\n\t}", "public Element compileIf() throws CloneNotSupportedException {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\t\n\t\t//Unique labels for jumping around\n\t\tString elseLabel = label();\n\t\tString endLabel = label();\n\n\t\tElement ifParent = document.createElement(\"ifStatement\");\n\n\t\t// if\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// (\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// expression\n\t\tjTokenizer.advance();\n\t\tifParent.appendChild(compileExpression());\n\n\t\t// )\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\t\t\n\t\t//If condition fails, go to else part of the block\n\t\twriter.writeArithmetic(\"not\");\n\t\twriter.writeIf(elseLabel);\n\n\t\t// {\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// statement inside the if block\n\t\tjTokenizer.advance();\n\t\tifParent.appendChild(compileStatements());\n\n\t\t// }\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// if done, go to end\n\t\twriter.writeGoto(endLabel);\n\t\t\n\t\t// Else statements start here\n\t\twriter.writeLabel(elseLabel);\n\n\t\t// else\n\n\t\t// Interesting coding challenge. I had to look ahead by one token to\n\t\t// check if there was an else block, but if it didn't exists, I would be\n\t\t// one token ahead of the XML.\n\t\t// Built a clone of the present tokenizer and used it to look ahead,\n\t\t// if an else exists, advance the main tokenizer as well\n\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\tclone.advance();\n\n\t\ttoken = clone.returnTokenVal();\n\t\tif (token.equals(\"else\")) {\n\n\t\t\t// else\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// {\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// statements inside the else block\n\t\t\tjTokenizer.advance();\n\t\t\tifParent.appendChild(compileStatements());\n\n\t\t\t// }\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// End of if-else block\n\t\t\twriter.writeLabel(endLabel);\n\n\t\t\treturn ifParent;\n\t\t} \n\t\telse {\n\n\t\t\t// End of if block\n\n\t\t\twriter.writeLabel(endLabel);\n\t\t\treturn ifParent;\n\t\t}\n\t}" ]
[ "0.67104673", "0.66061497", "0.65135705", "0.6433419", "0.6426437", "0.63313943", "0.63266337", "0.6295545", "0.62929136", "0.6242193", "0.6226709", "0.6219715", "0.62067825", "0.6088635", "0.60794896", "0.6074657", "0.60246456", "0.60211635", "0.5984839", "0.59733546", "0.5961532", "0.5948027", "0.59310925", "0.5921889", "0.59034014", "0.5891098", "0.58891165", "0.58809054", "0.5878721", "0.58631396", "0.5852945", "0.5839766", "0.57969475", "0.57877", "0.5773152", "0.576573", "0.5747918", "0.57303476", "0.5720651", "0.5716527", "0.5710739", "0.5682855", "0.56740713", "0.565296", "0.56490964", "0.5644908", "0.56187916", "0.561448", "0.5585672", "0.55584127", "0.5541276", "0.5537135", "0.5503136", "0.5491813", "0.5475167", "0.5449332", "0.5445994", "0.5431901", "0.54244804", "0.54135656", "0.5412645", "0.54087394", "0.5408609", "0.53951234", "0.5391972", "0.5383163", "0.53734124", "0.5370606", "0.53668934", "0.5365416", "0.53468287", "0.5343754", "0.5330236", "0.5326027", "0.5324946", "0.53152585", "0.53013664", "0.5299027", "0.5298775", "0.5287937", "0.5283549", "0.52511495", "0.52245736", "0.52112377", "0.52112377", "0.5207526", "0.5206621", "0.520187", "0.51931643", "0.51817113", "0.5171296", "0.5159444", "0.5146042", "0.5142959", "0.5138826", "0.51387763", "0.51346815", "0.51329154", "0.51117", "0.51115614" ]
0.598942
18
Set the statement that is executed when the condition evaluates to false. This is the else statement. If there is no else set to null.
public void setStatementNodeOnFalse(StatementNode statement);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setElseStm(Statement elseStm);", "public void setElse(Statement elseStatement)\n {\n this.elseStatement = elseStatement;\n }", "public Statement getElseStm();", "public Statement getElse()\n {\n return this.elseStatement;\n }", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "@Override\n protected void generateCodeFromElse(IfStmt ifStmt) {\n }", "SequenceOfStatements getElseStatements();", "public void setElse(final com.cdoframework.cdolib.database.xsd.Else _else) {\n this._else = _else;\n }", "public void setElse(final cto.framework.web.action.plugin.schema.Else _else) {\r\n this._else = _else;\r\n }", "private void parseElse(@NotNull ParserState state) {\n state.popEndUntil(m_types.C_IF).advance().mark(m_types.C_IF_THEN_SCOPE);\n }", "@Override\n public String visit(IfStmt n, Object arg) {\n return null;\n }", "@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}", "public T caseElseConditional(ElseConditional object)\n\t{\n\t\treturn null;\n\t}", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "@Override\n public Object visitIfelsestatement(TranslationGrammarParser.IfelsestatementContext ctx) {\n Boolean cond = (Boolean) magicVisit(ctx.condition(), current_node);\n if (cond == null) {\n return null;\n }\n ArrayList<Node<TokenAttributes>> temp;\n if (cond) {\n temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.t, current_node);\n } else {\n temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.f, current_node);\n }\n if (temp == null) {\n return null;\n }\n return temp;\n }", "public IfElseStatement(final Location loc, Expression condition, Statement thenStatement, Statement elseStatement)\n {\n super(loc);\n this.condition = condition;\n this.thenStatement = thenStatement;\n this.elseStatement = elseStatement;\n }", "public StatementNode getStatementNodeOnFalse();", "protected void else_statement(INestedIfElseClauseContainer upperIf) throws NoDefaultDistributionDeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\tSomeStateUndeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidProbabilityRangeException,\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tTableFunctionMalformedException {\r\n\t\t\r\n\t\t// Debug.println(\"ELSE STATEMENT\");\r\n\t\tif ( look == '[' ) {\r\n\t\t\t// header ::= there are no known parents yet, is ANY and is default.\r\n\t\t\tthis.currentHeader = new TempTableHeaderCell(null,true,true, this.ssbnnode); \r\n\t\t\t\r\n\t\t\t// register it to the upper container (might be another clause or the temporary table)\r\n\t\t\tif (upperIf == null) {\r\n\t\t\t\t// No upper container identified. Let's assume to be the upper-most container (the temporary table)\r\n\t\t\t\tthis.tempTable.addNestedClause(this.currentHeader);\r\n\t\t\t} else {\r\n\t\t\t\tupperIf.addNestedClause(this.currentHeader);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// if there are nested if/else clauses, their upper container should be the currently evaluated else clause (currentHeader)\r\n\t\t\tthis.statement(this.currentHeader);\r\n\t\t} else {\r\n\t\t\t// Debug.println(\"COULD NOT FIND '['\");\r\n\t\t\t// we dont have to create new header here because ifStatement would do so.\r\n\t\t\t// the if statement without \"[\" is on the same level of currently evaluated else clause, so, pass upperIf as upper container\r\n\t\t\tifStatement(upperIf);\r\n\t\t}\r\n\t\r\n\t}", "@Override\n public Object Execute()\n {\n Object result = null;\n\n if (IfClause.Execute().toString().toLowerCase() == \"true\")\n {\n result = ThenClause.Execute();\n }\n else\n {\n if (ElseClause != null)\n {\n result = ElseClause.Execute();\n }\n }\n \n return result;\n }", "@Override\n\tpublic void setcond(String cond) {\n\t\n\t}", "@Override\n public String visit(ConditionalExpr n, Object arg) {\n return null;\n }", "public T caseElseClause(ElseClause object)\n {\n return null;\n }", "private void buildELSEStatement(CLBlock block, CLCommand clCmd) {\n\t\tString cmdValue = null;\n\t\tif (clCmd.getPositionalParms().size() >= 1) {\n\t\t\tcmdValue = clCmd.getPositionalParm(0).getValue().getText();\n\n\t\t\tif (cmdValue.startsWith(\"(\") && cmdValue.endsWith(\"\"))\n\t\t\t\tcmdValue = cmdValue.substring(1, cmdValue.length() - 1);\n\t\t\telse\n\t\t\t\tcmdValue = clCmd.getText().trim().substring(\"ELSE\".length()).trim();\n\n\t\t} else if (clCmd.getParm(\"CMD\") != null)\n\t\t\tcmdValue = clCmd.getParm(\"CMD\").getValue().getText();\n\n\t\tif (\"DO\".equalsIgnoreCase(cmdValue) || \"(DO)\".equalsIgnoreCase(cmdValue)) {\n\t\t\tCLBlock elseBlock = new CLBlock();\n\t\t\tbuildBlock(elseBlock);\n\n\t\t\tblock.getIfStack().peek().setElse(elseBlock.getBlock());\n\t\t\tblock.clearIfStack();\n\n\t\t} else if (cmdValue.trim().startsWith(\"IF\")) {\n\t\t\tCLCommand elseIf = (CLCommand) commandParser.parse(cmdValue + \"\\n\");\n\n\t\t\tQIf lastIf = block.getIfStack().peek();\n\t\t\tQIf result = buildIFStatement(block, elseIf);\n\t\t\tlastIf.setElse(result);\n\n\t\t} else {\n\t\t\tCLCommand thenCmd = (CLCommand) commandParser.parse(cmdValue + \"\\n\");\n\t\t\tQStatement result = analizeCommand(block, thenCmd, false);\n\n\t\t\tblock.getIfStack().peek().setElse(result);\n\t\t\tblock.clearIfStack();\n\t\t}\n\t}", "@Override\n\tprotected void resetFalseClause() {\n\t\t\n\t}", "@Override\n\tpublic void visit(IfStatement ifStatement) {\n\t\tifStatement.cond().accept(this);\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tcheckType(\"boolean\");\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tSet<String> elseClone = new HashSet<String>(uninit);\n\t\tifStatement.thencase().accept(this);\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tSet<String> thenClone = new HashSet<String>(uninit);\n\t\tuninit = elseClone;\n\t\tifStatement.elsecase().accept(this);\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tuninit.addAll(thenClone);\n\t}", "@Override\n public Void visit(DebuggerStatement node, StatementVisitor mv) {\n return null;\n }", "public void setStatementNodeOnTrue(StatementNode statement);", "@Override\n\tpublic Void visit(If iff) {\n\t\tprintIndent(\"if\");\n\t\tindent++;\n\t\tiff.cond.accept(this);\n\t\tiff.thenBranch.accept(this);\n\t\tiff.elseBranch.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "public AbsIfElse(Position pos, AbsExpr cond, AbsExpr thenBody, AbsExpr elseBody) {\n\t\tsuper(pos);\n\t\tthis.cond = cond;\n\t\tthis.thenBody = thenBody;\n\t\tthis.elseBody = elseBody;\n\t}", "final public IASTPKGStatement ConditionalStatement() throws ParseException {\r\n IASTPKGStatement node = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMMENT_START:\r\n node = CommentStatement();\r\n break;\r\n case OPTIONSLIST_START:\r\n node = OptionsListStatement();\r\n break;\r\n default:\r\n jj_la1[3] = jj_gen;\r\n if (jj_2_2(2147483647)) {\r\n node = EmbeddedSisStatement();\r\n } else {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case STRING:\r\n node = InstallFileStatement();\r\n break;\r\n case PLUS:\r\n node = PropertiesStatement();\r\n break;\r\n case IF:\r\n node = ConditionalBlock();\r\n break;\r\n default:\r\n jj_la1[4] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n }\r\n }\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "protected void statement(INestedIfElseClauseContainer upperIf) \r\n\t\t\t\t\t\t\t throws NoDefaultDistributionDeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\tSomeStateUndeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidProbabilityRangeException,\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tTableFunctionMalformedException{\r\n\t\t// Debug.println(\"PARSING STATEMENT, VALUE = \" + value + \", LOOKAHEAD = \" + look);\r\n\t\tif (look == '[') {\r\n\t\t\t\t\t\t\t\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t// Debug.print(\" \");\r\n\t\t\tmatch('[');\r\n\t\t\t\r\n\t\t\t// initialize currently evaluated temporary table's collumn\r\n\t\t\t//this.currentProbCellList = new ArrayList<TempTableProbabilityCell>();\r\n\t\t\t\r\n\t\t\tassignmentOrIf(upperIf);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tmatch(']');\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t// Debug.println(\"COULD NOT FIND '['\");\r\n\t\t\tthis.expected(\"[\");\r\n\t\t}\r\n\t}", "public boolean visit(ElseIf d) {\n return false;\n }", "IfStatement createIfStatement();", "public boolean visit(Else d) {\n return false;\n }", "@Override\n\tpublic Object visitIfStatement(IfStatement ifStatement, Object arg) throws Exception {\n\t\tifStatement.getE().visit(this, arg);\n\t\tLabel if_false = new Label();\n\t\tmv.visitJumpInsn(IFEQ, if_false);\n\t\tLabel if_true = new Label();\n\t\tmv.visitLabel(if_true);\n\t\tifStatement.getB().visit(this, arg);\n\t\tmv.visitLabel(if_false);\n\t\t//System.out.println(\"leaving if statement\");\n\t\treturn null;\n\t}", "public T caseCondition(Condition object) {\n\t\treturn null;\n\t}", "private void Conditional(){\n\t\tLogicOR();\n\t\t\n\t\tfor(;;){\n\t\t\tif(eat(\"for\")){\n\t\t\t\tInlineFor();\n\t\t\t}else if(eat(\"if\")){\n\t\t\t\tExpression();\n\t\t\t\tif(eat(\"else\"))\n\t\t\t\t\tConditional();\n\t\t\t}else if(eat(\"defined\") || eat(\"!defined\"));\n\t\t\telse for(;;){\n\t\t\t\tif(eat(\"?\")){\n\t\t\t\t\tExpression();\n\t\t\t\t\tassert_eat(\":\");\n\t\t\t\t\tConditional();\n\t\t\t\t}else return;\n\t\t\t}\n\t\t}\n\t}", "private IfElement _ifElse(String expression, List<CodeElement> body, List<CodeElement> elseBody)\n {\n return _ifElseIf(expression, body, Collections.emptyList(), Collections.emptyList(), elseBody);\n }", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Statement getNextStatement(Task task) {\r\n\t\tif ((boolean)(this.getExpression().evaluate(task)))\r\n\t\t\treturn body;\r\n\t\telse\r\n\t\t\treturn nextStatement;\r\n\t}", "@Override\n\tpublic Object visit(ASTCondSome node, Object data) {\n\t\treturn null;\n\t}", "private Conditional ifStatement()\n\t{\n\t\t// IfStatement --> if ( Expression ) Statement [ else Statement ]\n\t\tConditional c = null;\n\t\t\n\t\t// if\n\t\tmatch(TokenType.If);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\t// else가 나오면\n\t\tif (token.type().equals(TokenType.Else))\n\t\t{\n\t\t\t// else\n\t\t\ttoken = lexer.next();\n\t\t\t\n\t\t\t// <<Statement>>\n\t\t\tStatement elseState = statement();\n\t\t\tc = new Conditional(e, s, elseState);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc = new Conditional(e, s);\n\t\t}\n\t\t\n\t\treturn c; // student exercise\n\t}", "public final ConditionalStatement conditionalStatement() throws RecognitionException {\r\n ConditionalStatement result = null;\r\n\r\n int conditionalStatement_StartIndex = input.index();\r\n\r\n IfThenElseStatement ifthels =null;\r\n\r\n IfThenStatement ifths =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 5) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:2: (ifthels= ifThenElseStatement |ifths= ifThenStatement )\r\n int alt4=2;\r\n int LA4_0 = input.LA(1);\r\n\r\n if ( (LA4_0==IfRW) ) {\r\n int LA4_1 = input.LA(2);\r\n\r\n if ( (synpred4_QL()) ) {\r\n alt4=1;\r\n }\r\n else if ( (true) ) {\r\n alt4=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 4, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 4, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt4) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: ifthels= ifThenElseStatement\r\n {\r\n pushFollow(FOLLOW_ifThenElseStatement_in_conditionalStatement196);\r\n ifthels=ifThenElseStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = ifthels; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:44:4: ifths= ifThenStatement\r\n {\r\n pushFollow(FOLLOW_ifThenStatement_in_conditionalStatement208);\r\n ifths=ifThenStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = ifths; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 5, conditionalStatement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public cto.framework.web.action.plugin.schema.Else getElse() {\r\n return this._else;\r\n }", "public void setElseValue(Object pValue);", "@Override\n\tpublic String getCondition() {\n\t\treturn \"\";\n\t}", "public final void statement() throws RecognitionException {\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:3: ( call | assignment | ifStatement | whileStatement )\n int alt10=4;\n switch ( input.LA(1) ) {\n case CALL:\n {\n alt10=1;\n }\n break;\n case 38:\n {\n alt10=2;\n }\n break;\n case 46:\n {\n alt10=3;\n }\n break;\n case 49:\n {\n alt10=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 10, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt10) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:5: call\n {\n pushFollow(FOLLOW_call_in_statement347);\n call();\n\n state._fsp--;\n\n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:10: assignment\n {\n pushFollow(FOLLOW_assignment_in_statement349);\n assignment();\n\n state._fsp--;\n\n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:21: ifStatement\n {\n pushFollow(FOLLOW_ifStatement_in_statement351);\n ifStatement();\n\n state._fsp--;\n\n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:212:33: whileStatement\n {\n pushFollow(FOLLOW_whileStatement_in_statement353);\n whileStatement();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public void caseAIfStmt(AIfStmt node)\n {\n int initCount = 0;\n //inAIfStmt(node);\n if(node.getStmt() != null)\n {\n newScope();\n initCount++;\n }\n if(node.getIf() != null)\n {\n node.getIf().apply(this);\n }\n if(node.getStmt() != null)\n {\n node.getStmt().apply(this);\n }\n if(node.getExp() != null)\n {\n node.getExp().apply(this);\n }\n {\n List<PStmt> copy = new ArrayList<PStmt>(node.getTrue());\n for(PStmt e : copy)\n {\n e.apply(this);\n }\n }\n {\n List<PElseIf> copy = new ArrayList<PElseIf>(node.getElseIf());\n Iterator<PElseIf> itr = copy.iterator();\n while (itr.hasNext()) {\n PElseIf e = itr.next();\n AElseIf elseIf = (AElseIf) e;\n if(elseIf.getStmt() != null)\n {\n newScope();\n initCount++;\n }\n e.apply(this);\n if(elseIf.getExp() != null)\n {\n Type t = typemap.get(elseIf.getExp());\n t = removeAlias(t);\n if(!(t instanceof BooleanType)) throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(elseIf) + \"] If-else statement with non-boolean condition.\");\n }\n }\n }\n {\n List<PStmt> copy = new ArrayList<PStmt>(node.getFalse());\n for(PStmt e : copy)\n {\n e.apply(this);\n }\n }\n //outAIfStmt(node);\n if(node.getExp() != null)\n {\n Node e = node.getExp();\n Type t = typemap.get(e);\n t = removeAlias(t);\n if(!(t instanceof BooleanType)) throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] If statement with non-boolean condition.\");\n }\n if (initCount>0) {\n if (dump) {\n List<PStmt> copy = new ArrayList<PStmt>(node.getTrue());\n if (copy.size()>0 && golite.weeder.LineNumber.getLineNumber(copy.get(copy.size()-1))>0)\n {\n Node n = copy.get(copy.size()-1);\n System.out.println(\"[line \" + golite.weeder.LineNumber.getLineNumber(n) + \"]\");\n }\n }\n while (initCount>0) {\n unScope();\n initCount--;\n }\n }\n }", "public T caseIfElse(IfElse object) {\n\t\treturn null;\n\t}", "public Snippet visit(ElseClause n, Snippet argu) {\n\t Snippet _ret=new Snippet(\"\",\"\",null, false);\n\t n.nodeToken.accept(this, argu);\n\t _ret.returnTemp = \" \";//+f1.returnTemp;\n\t\t\ttPlasmaCode+=generateTabs(blockDepth)+\"else\"+\"\\n\";\n\t n.block.accept(this, argu);\n\t return _ret;\n\t }", "public T caseAlwaysStatement(AlwaysStatement object) {\n\t\treturn null;\n\t}", "protected Expression analyzeCondition() throws AnalysisException {\n final var condition = analyzeExpression();\n assertKeyWord(ScriptBasicKeyWords.KEYWORD_THEN);\n return condition;\n }", "public com.cdoframework.cdolib.database.xsd.Else getElse() {\n return this._else;\n }", "public T caseStatement(Statement object)\n {\n return null;\n }", "public T caseStatement(Statement object)\n {\n return null;\n }", "@Override\n\tprotected String findStatement() {\n\t\treturn null;\n\t}", "public T caseIfThenElseExpr(IfThenElseExpr object) {\n\t\treturn null;\n\t}", "public final void ifStatement() throws RecognitionException {\n CommonTree s=null;\n CommonTree v=null;\n Object e =null;\n\n\n\n int eindex = -1;\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:3: ( ^( 'if' e= expression s= . ( 'else' v= . )? ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:6: ^( 'if' e= expression s= . ( 'else' v= . )? )\n {\n match(input,46,FOLLOW_46_in_ifStatement422); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_ifStatement426);\n e=expression();\n\n state._fsp--;\n\n\n int sindex = input.index();\n\n s=(CommonTree)input.LT(1);\n\n matchAny(input); \n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:60: ( 'else' v= . )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==43) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:61: 'else' v= .\n {\n match(input,43,FOLLOW_43_in_ifStatement435); \n\n eindex = input.index();\n\n v=(CommonTree)input.LT(1);\n\n matchAny(input); \n\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); \n\n\n\n BufferedTreeNodeStream stream = (BufferedTreeNodeStream) input;\n if ((Boolean)e) {\n stream.push(sindex);\n block();\n stream.pop(); \n }\n else if(eindex != -1){\n stream.push(eindex);\n block();\n stream.pop();\n }\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "@Override\r\n\tpublic void visit(IfStmtNode ifThenElseStatement) {\n\t\tStmtNode thenStmt = ifThenElseStatement.getThenStatement();\r\n\t\tStmtNode elseStmt = ifThenElseStatement.getElseStatement();\r\n\t\r\n\t\t//Infer condition\r\n\t\tanalyzeExpression(ifThenElseStatement.getCondition());\r\n\t\t\r\n\t\t//Execution path & child visit:\r\n\t\t//THEN-path\r\n\t\tthenStmt.accept(this);\r\n\t\tSuccessorList.addAdditionalSuccessor(ifThenElseStatement, thenStmt);\r\n\t\t//ELSE-path\r\n\t\tif(elseStmt != null){\r\n\t\t\telseStmt.accept(this);\r\n\t\t\tifThenElseStatement.setSuccessor(elseStmt);\t\r\n\t\t} else {\r\n\t\t\t//If we have no else path, push the if then else on the stack, so it will\r\n\t\t\t//be linked to later statements\r\n\t\t\texecPathStack.pushSingleStatementFrame(ifThenElseStatement);\r\n\t\t}\r\n\t\t//Merge the two frames on the stack, so they all will be linked to later statements\r\n\t\texecPathStack.mergeTopFrames();\r\n\t\t\r\n\t\t//Check condition type\r\n\t\tIType t = ifThenElseStatement.getCondition().getInferedType();\r\n\t\tif(!t.canImplicitCastTo(BASIC.BOOL)&&!t.canBeNull())\r\n\t\t\tProblem.ofType(ProblemId.TYPE_ERROR_NONBOOL_IF_CONDITION).at(ifThenElseStatement.getCondition())\r\n\t\t\t\t\t.details(ifThenElseStatement.getCondition().getInferedType().getUid())\r\n\t\t\t\t\t.raiseUnrecoverable();\r\n\t\t\t\r\n\t\t\r\n\t}", "public Stmt createIf(Position pos, Expr cond, Stmt thenStmt, Stmt elseStmt) {\n if (null == elseStmt) return xnf.If(pos, cond, thenStmt);\n return xnf.If(pos, cond, thenStmt, elseStmt);\n }", "public T caseIfConditional(IfConditional object)\n\t{\n\t\treturn null;\n\t}", "public void setThenStm(Statement thenStm);", "public final void synpred4_QL_fragment() throws RecognitionException {\r\n IfThenElseStatement ifthels =null;\r\n\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: (ifthels= ifThenElseStatement )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: ifthels= ifThenElseStatement\r\n {\r\n pushFollow(FOLLOW_ifThenElseStatement_in_synpred4_QL196);\r\n ifthels=ifThenElseStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "public void setThen(Statement thenStatement)\n {\n this.thenStatement = thenStatement;\n }", "public T caseExprElse(ExprElse object)\n {\n return null;\n }", "public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }", "public final void rule__AstStatementIf__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16659:1: ( ( 'else' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16660:1: ( 'else' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16660:1: ( 'else' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:16661:1: 'else'\n {\n before(grammarAccess.getAstStatementIfAccess().getElseKeyword_4_0()); \n match(input,88,FOLLOW_88_in_rule__AstStatementIf__Group_4__0__Impl33566); \n after(grammarAccess.getAstStatementIfAccess().getElseKeyword_4_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final String condStmt() throws RecognitionException {\n\t\tString out = null;\n\n\n\t\tString s1 =null;\n\t\tString s2 =null;\n\t\tString expr28 =null;\n\n\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:2: ( ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] ) )\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:4: ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] )\n\t\t\t{\n\t\t\tmatch(input,42,FOLLOW_42_in_condStmt547); \n\t\t\tmatch(input, Token.DOWN, null); \n\t\t\tpushFollow(FOLLOW_expr_in_condStmt549);\n\t\t\texpr28=expr(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt554);\n\t\t\ts1=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt559);\n\t\t\ts2=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tmatch(input, Token.UP, null); \n\n\n\t\t\t\t\t\n\t\t\t\t\t\tString statement1 = \"\";\n\t\t\t\t\t\tif (s1 != null) {\n\t\t\t\t\t\t\tstatement1 = s1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tString statement2 = \"\";\n\t\t\t\t\t\tif (s2 != null) {\n\t\t\t\t\t\t\t//System.out.println(s2);\n\t\t\t\t\t\t\tstatement2 = s2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ti+=2;\n\t\t\t\t\t\tout = \"\\n\" + indent() + \"if (\" + expr28 + \") {\\n\";\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement1 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() + \"} else {\\n\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement2 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() +\"}\");\n\t\t\t\t\t\ti-=2;\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn out;\n\t}", "static void skipStatement() {\r\n // Add first identifier to the intermediate stack\r\n if(!token.equals(\"IF\")) {\r\n //stack.add(lexeme);\r\n //index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n //stack.add(lexeme);\r\n //index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n //stack.add(index, lexeme);\r\n //index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n //index++;\r\n }\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n //index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n //index++;\r\n break;\r\n }\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(skipIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }", "public void setCondition(Expression condition)\n {\n this.condition = condition;\n }", "private static ExpSem ifThenElse(ExpSem ifExp, ExpSem thenExp, ExpSem elseExp)\n {\n if (ifExp instanceof ExpSem.Single)\n {\n ExpSem.Single ifExp0 = (ExpSem.Single)ifExp;\n if (thenExp instanceof ExpSem.Single && elseExp instanceof ExpSem.Single)\n {\n ExpSem.Single thenExp0 = (ExpSem.Single)thenExp;\n ExpSem.Single elseExp0 = (ExpSem.Single)elseExp;\n return (ExpSem.Single)(Context c)->\n {\n Value.Bool b = (Value.Bool)ifExp0.apply(c);\n if (b.getValue())\n return thenExp0.apply(c);\n else\n return elseExp0.apply(c);\n };\n }\n else\n {\n ExpSem.Multiple thenExp0 = thenExp.toMultiple();\n ExpSem.Multiple elseExp0 = elseExp.toMultiple();\n return (ExpSem.Multiple)(Context c)->\n {\n Value.Bool b = (Value.Bool)ifExp0.apply(c);\n if (b.getValue())\n return thenExp0.apply(c);\n else\n return elseExp0.apply(c);\n };\n }\n }\n else\n {\n ExpSem.Multiple ifExp0 = (ExpSem.Multiple)ifExp;\n ExpSem.Multiple thenExp0 = thenExp.toMultiple();\n ExpSem.Multiple elseExp0 = elseExp.toMultiple();\n return (ExpSem.Multiple)(Context c)->\n {\n Seq<Value> cond = ifExp0.apply(c);\n return cond.applyJoin((Value v)->\n {\n Value.Bool b = (Value.Bool)v;\n return b.getValue() ? \n thenExp0.apply(c) : \n elseExp0.apply(c);\n });\n };\n }\n }", "public T casePostConditionDeclarationCS(PostConditionDeclarationCS object) {\r\n return null;\r\n }", "@Override\n\t\t\t\tpublic Resource apply(Statement t) {\n\t\t\t\t\treturn null;\n\t\t\t\t}", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "public T caseElIfConditional(ElIfConditional object)\n\t{\n\t\treturn null;\n\t}", "public IfCondition() {\r\n super();\r\n }", "private IfStmt ifstmt(){\n Expr expr=null;\n Stmt thenstmt=null;\n Stmt elsestmt= null;\n \n if(lexer.token == Symbol.IF){\n lexer.nextToken();\n expr = expr();\n\n if(lexer.token == Symbol.THEN){\n lexer.nextToken();\n thenstmt = stmt();\n \n if(lexer.token == Symbol.ELSE){\n lexer.nextToken();\n elsestmt = stmt();\n \n }\n\n \n if(lexer.token == Symbol.ENDIF){\n lexer.nextToken();\n }else{\n lexer.error(\"Missing ENDIF\");\n }\n }else{\n lexer.error(\"Missing THEN\");\n }\n }else{\n lexer.error(\"Missing IF\");\n }\n \n return new IfStmt(expr, thenstmt, elsestmt);\n }", "@Override\r\n\tpublic Object visitIfStatement(IfStatement ifStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString condType = (String) ifStatement.expression.visit(this, arg);\r\n\t\tcheck(condType.equals(booleanType), \"uncompatible If condition\", ifStatement);\r\n\t\tifStatement.block.visit(this, arg);\r\n\t\treturn null;\r\n\t}", "private void collapseAssignmentsIntoConditional(Op03SimpleStatement ifStatement) {\n\n if (!(appropriateForIfAssignmentCollapse1(ifStatement) ||\n appropriateForIfAssignmentCollapse2(ifStatement))) return;\n IfStatement innerIf = (IfStatement) ifStatement.getStatement();\n ConditionalExpression conditionalExpression = innerIf.getCondition();\n\n /*\n * The 'verify' block stops us winding up unless we'd do it into another conditional\n * or into a backjump.\n *\n * Otherwise, we end up with lots of code like\n *\n * int x\n * if ( (x=3) < y )\n *\n * rather than\n *\n * int x = 3\n * if (x < y)\n *\n * which is (a) ugly, and (b) screws with final analysis.\n */\n /*\n * HOWEVER - eclipse (of course) generates code which looks like\n *\n *\n */\n boolean eclipseHeuristic = testEclipse && ifStatement.getTargets().get(1).getIndex().isBackJumpFrom(ifStatement);\n if (!eclipseHeuristic) {\n Op03SimpleStatement statement = ifStatement;\n Set<Op03SimpleStatement> visited = SetFactory.newSet();\n verify:\n do {\n if (statement.getSources().size() > 1) {\n // Progress if we're a backjump target.\n // Otherwise, we'll cause problems with assignments inside\n // while conditionals.\n InstrIndex statementIndex = statement.getIndex();\n for (Op03SimpleStatement source : statement.getSources()) {\n if (statementIndex.isBackJumpFrom(source)) {\n break verify;\n }\n }\n }\n if (statement.getSources().isEmpty()) {\n break;\n }\n statement = statement.getSources().get(0);\n if (!visited.add(statement)) {\n return;\n }\n Statement opStatement = statement.getStatement();\n if (opStatement instanceof IfStatement) break;\n if (opStatement instanceof Nop) continue;\n if (opStatement instanceof AbstractAssignment) continue;\n return;\n } while (true);\n }\n\n /* where possible, collapse any single parent assignments into this. */\n Op03SimpleStatement previousSource = null;\n while (ifStatement.getSources().size() == 1) {\n Op03SimpleStatement source = ifStatement.getSources().get(0);\n if (source == previousSource) return;\n previousSource = source;\n if (!(source.getStatement() instanceof AbstractAssignment)) return;\n LValue lValue = source.getStatement().getCreatedLValue();\n if (lValue instanceof StackSSALabel) return;\n // We don't have to worry about RHS having undesired side effects if we roll it into the\n // conditional - that has already happened.\n LValueUsageCollectorSimple lvc = new LValueUsageCollectorSimple();\n // NB - this will collect values even if they are NOT guaranteed to be used\n // i.e. are on the RHS of a comparison, or in a ternary.\n conditionalExpression.collectUsedLValues(lvc);\n if (!lvc.isUsed(lValue)) return;\n AbstractAssignment assignment = (AbstractAssignment) (source.getStatement());\n\n AbstractAssignmentExpression assignmentExpression = assignment.getInliningExpression();\n LValueUsageCollectorSimple assignmentLVC = new LValueUsageCollectorSimple();\n assignmentExpression.collectUsedLValues(assignmentLVC);\n Set<LValue> used = SetFactory.newSet(assignmentLVC.getUsedLValues());\n used.remove(lValue);\n Set<LValue> usedComparison = SetFactory.newSet(lvc.getUsedLValues());\n\n // Avoid situation where we have\n // a = x\n // b = y.f(a)\n // if (a == b) <-- should not get rolled up.\n SSAIdentifiers<LValue> beforeSSA = source.getSSAIdentifiers();\n SSAIdentifiers<LValue> afterSSA = ifStatement.getSSAIdentifiers();\n\n Set<LValue> intersection = SetUtil.intersectionOrNull(used, usedComparison);\n if (intersection != null) {\n // If there's an intersection, we require the ssa idents for before/after to be the same.\n for (LValue intersect : intersection) {\n if (!afterSSA.isValidReplacement(intersect, beforeSSA)) {\n return;\n }\n }\n }\n\n if (!afterSSA.isValidReplacement(lValue, beforeSSA)) return;\n LValueAssignmentExpressionRewriter rewriter = new LValueAssignmentExpressionRewriter(lValue, assignmentExpression, source);\n ConditionalExpression replacement = rewriter.rewriteExpression(conditionalExpression, ifStatement.getSSAIdentifiers(), ifStatement, ExpressionRewriterFlags.LVALUE);\n if (replacement == null) return;\n innerIf.setCondition(replacement);\n }\n\n }", "public T caseIfDefConditional(IfDefConditional object)\n\t{\n\t\treturn null;\n\t}", "public final Statement statement() throws RecognitionException {\r\n Statement result = null;\r\n\r\n int statement_StartIndex = input.index();\r\n\r\n QuestionStatement qst =null;\r\n\r\n ConditionalStatement cstmt =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:2: (qst= questionStatement |cstmt= conditionalStatement )\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0==Ident) ) {\r\n alt2=1;\r\n }\r\n else if ( (LA2_0==IfRW) ) {\r\n alt2=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:4: qst= questionStatement\r\n {\r\n pushFollow(FOLLOW_questionStatement_in_statement125);\r\n qst=questionStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = qst; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:32:4: cstmt= conditionalStatement\r\n {\r\n pushFollow(FOLLOW_conditionalStatement_in_statement137);\r\n cstmt=conditionalStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = cstmt; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 3, statement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public void ifThen(final boolean cond, final Statement f) {\n this.ifThen(x -> x == cond, f);\n }", "final public IASTListNode<IASTPKGStatement> ConditionalStatements() throws ParseException {\r\n IASTPKGStatement stmt = null;\r\n IASTListNode<IASTPKGStatement> stmts = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case AMPERSAND:\r\n case STRING:\r\n case IF:\r\n case COMMENT_START:\r\n case OPTIONSLIST_START:\r\n case PLUS:\r\n stmt = ConditionalStatement();\r\n stmts = ConditionalStatements();\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n if (stmt != null)\r\n stmts.add(0, stmt);\r\n {if (true) return stmts;}\r\n break;\r\n default:\r\n jj_la1[2] = jj_gen;\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n {if (true) return stmts;}\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\n public String visit(NoOpStmt n) {\n String _ret = null;\n Global.outputString += \"nop\\n\";\n return _ret;\n }", "@Override\n\tpublic void visit(IfStatement n) {\n\t\tcfgNode = n;\n\t}", "public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;", "@Override\r\n\tpublic void visit(ConditionExpression conditionExpression) {\n\r\n\t}", "private void defaultForEmptyConditions()\n {\n /*\n * When any of the Conditions has all Left Hand Side, Operator and\n * Right Hand Side as empty then set Operator to default value of\n * CVL_WF_OPRSImpl.EQUAL(mimic default situation).\n * Note if this is not done then the condition will store null value\n * for Left Hand Side, Operator and Right Hand Side, and the whole condition\n * record will not be displayed on \"Manage Approval Conditions\" page\n * because the page selection query uses an equal join with R_WF_APRV_COND\n * and CVL_WF_OPRS tables.\n */\n for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ )\n {\n if( isNull(\"AND_COND_LHS_\" + liCtr) && isNull(\"AND_COND_OPR_\" + liCtr)\n && isNull(\"AND_COND_RHS_\" + liCtr) )\n {\n getData(\"AND_COND_OPR_\" + liCtr).setbyte((byte)3);\n }\n }//end for\n }", "public T caseVariableCondition(VariableCondition object)\n {\n return null;\n }", "public void ifStatement(Node n_parent) {\r\n if(token.get(lookAheadPossition).equals(\"IF\")){ /// not necessary - once i checked in statement////////////////////////\r\n System.out.println(\":: ifStatement::if:parent: \"+n_parent.getData());\r\n this.CheckError(\"IF\");\r\n\r\n this.expression(n_parent);\r\n this.CheckError(\"THEN\"); \r\n //this.CheckError(\"SC\");\r\n Node n_statementSequence = n_parent.setChildren(\"stmt list\");\r\n\r\n this.statementSequence(n_statementSequence);\r\n\r\n this.elseClause(n_parent);\r\n\r\n this.CheckError(\"END\");\r\n //this.CheckError(\"SC\");\r\n }\r\n\r\n }", "public static ConditionalExpression ifThenElse(Expression test, Expression ifTrue, Expression ifFalse) { throw Extensions.todo(); }", "public void negateIf(final boolean cond, final Statement f) {\n this.negateIf(x -> x == cond, f);\n }", "public void setCondition(ExpressionNode condition);", "@Override\n\tpublic void visit(IfNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * Verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam conditia si preluam rezultatul evaluarii fiului corespunzator\n\t\t * branch-ului de then sau de else\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/***\n\t\t * Daca conditia este adevarata, continuam cu evaluarea celui de-al\n\t\t * doiela fiu, iar daca este false evaluam al treilea fiu\n\t\t */\n\t\tif (node.getChild(0).getName().contentEquals(\"true\")) {\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t\tnode.getChild(2).setVisited(true);\n\n\t\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(1).getName());\n\t\t\t}\n\t\t} else {\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\tnode.getChild(1).setVisited(true);\n\n\t\t\tif (node.getChild(2) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(2).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(2).getName());\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public String visit(SwitchStmt n, Object arg) {\n return null;\n }", "public void statement(Node n_parent) {\r\n System.out.println(\":: statement:\"+n_parent.getData());\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_assignment = n_parent.setChildren(\":=\");\r\n this.assignment(n_assignment);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"IF\")) {\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_ifStatement = n_parent.setChildren(\"if\");\r\n this.ifStatement(n_ifStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WHILE\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_whileStatement = n_parent.setChildren(\"while\");\r\n this.whileStatement(n_whileStatement);\r\n }\r\n else if (token.get(lookAheadPossition).equals(\"WRITEINT\")){\r\n System.out.println(\":: statement::if\");\r\n\r\n Node n_writeInt = n_parent.setChildren(\"writeInt\");\r\n this.writeInt(n_writeInt);\r\n }\r\n }", "public abstract String\n conditional();", "public void visit(UnmatchedIf unmatchedIf)\n\t{\n\t\t// since there was not an else, the jmpNotThen needs to be updated\n\t\t// and there is no jmpEndThen\n\t\tfixJumpAtEndOfCondition();\n\t}" ]
[ "0.73592186", "0.73323673", "0.6836895", "0.66683364", "0.6307029", "0.62399787", "0.61359257", "0.61267096", "0.6088074", "0.60740995", "0.5964163", "0.5833008", "0.5829373", "0.582278", "0.5761391", "0.57464874", "0.570755", "0.5706469", "0.5684764", "0.56808096", "0.5643213", "0.56368387", "0.5632128", "0.5592972", "0.5587123", "0.5581419", "0.5574667", "0.5564601", "0.5538838", "0.5529524", "0.5526856", "0.54984957", "0.54805005", "0.5475592", "0.5464745", "0.54631644", "0.5455225", "0.544142", "0.54410034", "0.54208183", "0.54208183", "0.5419597", "0.54124236", "0.54091716", "0.53941905", "0.5391575", "0.5376426", "0.5363777", "0.53524566", "0.535027", "0.53412545", "0.5340779", "0.5337547", "0.5337383", "0.53358066", "0.5298973", "0.5298973", "0.5298765", "0.52935827", "0.52928823", "0.5287587", "0.5284319", "0.52701604", "0.5267513", "0.5255419", "0.5254826", "0.52414626", "0.52179086", "0.52151793", "0.52043927", "0.51958764", "0.5190248", "0.51845074", "0.5163381", "0.5160396", "0.5156899", "0.51548135", "0.51366216", "0.51361096", "0.5133815", "0.5128494", "0.51265705", "0.51255673", "0.51192456", "0.51069987", "0.5094946", "0.50898117", "0.50897187", "0.5085934", "0.5082195", "0.50805527", "0.5078553", "0.50560814", "0.50506496", "0.5050593", "0.50505495", "0.504705", "0.5036581", "0.5035915", "0.5020183" ]
0.64187634
4
The statement that is executed when the condition is false. This is the else branch. If no else branch exists this will return null.
public StatementNode getStatementNodeOnFalse();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Statement getElseStm();", "public Statement getElse()\n {\n return this.elseStatement;\n }", "SequenceOfStatements getElseStatements();", "@Override\n public String visit(IfStmt n, Object arg) {\n return null;\n }", "final public IASTPKGStatement ConditionalStatement() throws ParseException {\r\n IASTPKGStatement node = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMMENT_START:\r\n node = CommentStatement();\r\n break;\r\n case OPTIONSLIST_START:\r\n node = OptionsListStatement();\r\n break;\r\n default:\r\n jj_la1[3] = jj_gen;\r\n if (jj_2_2(2147483647)) {\r\n node = EmbeddedSisStatement();\r\n } else {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case STRING:\r\n node = InstallFileStatement();\r\n break;\r\n case PLUS:\r\n node = PropertiesStatement();\r\n break;\r\n case IF:\r\n node = ConditionalBlock();\r\n break;\r\n default:\r\n jj_la1[4] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n }\r\n }\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\n public Object visitIfelsestatement(TranslationGrammarParser.IfelsestatementContext ctx) {\n Boolean cond = (Boolean) magicVisit(ctx.condition(), current_node);\n if (cond == null) {\n return null;\n }\n ArrayList<Node<TokenAttributes>> temp;\n if (cond) {\n temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.t, current_node);\n } else {\n temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.f, current_node);\n }\n if (temp == null) {\n return null;\n }\n return temp;\n }", "private Conditional ifStatement()\n\t{\n\t\t// IfStatement --> if ( Expression ) Statement [ else Statement ]\n\t\tConditional c = null;\n\t\t\n\t\t// if\n\t\tmatch(TokenType.If);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\t// else가 나오면\n\t\tif (token.type().equals(TokenType.Else))\n\t\t{\n\t\t\t// else\n\t\t\ttoken = lexer.next();\n\t\t\t\n\t\t\t// <<Statement>>\n\t\t\tStatement elseState = statement();\n\t\t\tc = new Conditional(e, s, elseState);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc = new Conditional(e, s);\n\t\t}\n\t\t\n\t\treturn c; // student exercise\n\t}", "String getIfElse();", "@Override\n\tpublic String getcond() {\n\t\treturn null;\n\t}", "@Override\n public String visit(ConditionalExpr n, Object arg) {\n return null;\n }", "@Override\n public Object Execute()\n {\n Object result = null;\n\n if (IfClause.Execute().toString().toLowerCase() == \"true\")\n {\n result = ThenClause.Execute();\n }\n else\n {\n if (ElseClause != null)\n {\n result = ElseClause.Execute();\n }\n }\n \n return result;\n }", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "@Override\n protected void generateCodeFromElse(IfStmt ifStmt) {\n }", "final public IASTListNode<IASTPKGStatement> ConditionalStatements() throws ParseException {\r\n IASTPKGStatement stmt = null;\r\n IASTListNode<IASTPKGStatement> stmts = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case AMPERSAND:\r\n case STRING:\r\n case IF:\r\n case COMMENT_START:\r\n case OPTIONSLIST_START:\r\n case PLUS:\r\n stmt = ConditionalStatement();\r\n stmts = ConditionalStatements();\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n if (stmt != null)\r\n stmts.add(0, stmt);\r\n {if (true) return stmts;}\r\n break;\r\n default:\r\n jj_la1[2] = jj_gen;\r\n if (stmts == null) {\r\n stmts = ASTFactory.createListNode(\"\\n\");\r\n }\r\n {if (true) return stmts;}\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public abstract String\n conditional();", "public T caseElseConditional(ElseConditional object)\n\t{\n\t\treturn null;\n\t}", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "@Override\n\tprotected String findStatement() {\n\t\treturn null;\n\t}", "protected Expression analyzeCondition() throws AnalysisException {\n final var condition = analyzeExpression();\n assertKeyWord(ScriptBasicKeyWords.KEYWORD_THEN);\n return condition;\n }", "final public IASTPKGElseContainer ElseContainer() throws ParseException {\r\n IASTPKGElseContainer node = null;\r\n IASTListNode<IASTPKGStatement> statements = null;\r\n Token start = token;\r\n statements = ConditionalStatements();\r\n node = ASTPKGFactory.createPKGElseContainer(statements);\r\n if (statements != null && statements.getChildren().length > 0) {\r\n ParserUtils.setSourceRangeForListNode(null, statements, null);\r\n ParserUtils.copySourceInfo(node, statements);\r\n } else {\r\n ParserUtils.setSourceRangeFromTokenSpan(statements, start, start);\r\n ParserUtils.setSourceRangeFromTokenSpan(node, start, start);\r\n }\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public Object getElseValue();", "public T caseElseClause(ElseClause object)\n {\n return null;\n }", "public cto.framework.web.action.plugin.schema.Else getElse() {\r\n return this._else;\r\n }", "@Override\n\tpublic Object visitIfStatement(IfStatement ifStatement, Object arg) throws Exception {\n\t\tifStatement.getE().visit(this, arg);\n\t\tLabel if_false = new Label();\n\t\tmv.visitJumpInsn(IFEQ, if_false);\n\t\tLabel if_true = new Label();\n\t\tmv.visitLabel(if_true);\n\t\tifStatement.getB().visit(this, arg);\n\t\tmv.visitLabel(if_false);\n\t\t//System.out.println(\"leaving if statement\");\n\t\treturn null;\n\t}", "public com.cdoframework.cdolib.database.xsd.Else getElse() {\n return this._else;\n }", "@Override\n\tpublic Object visit(ASTCondSome node, Object data) {\n\t\treturn null;\n\t}", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "@Override\n public Object visitIfstatement(TranslationGrammarParser.IfstatementContext ctx) {\n ArrayList<Node<TokenAttributes>> result = new ArrayList<>();\n Boolean cond = (Boolean) magicVisit(ctx.condition(), current_node);\n if (cond == null) {\n return null;\n }\n if (cond) {\n ArrayList<Node<TokenAttributes>> temp = (ArrayList<Node<TokenAttributes>>) magicVisit(ctx.ruleebody(), current_node);\n if (temp == null) {\n return null;\n }\n return temp;\n }\n return result;\n }", "public void setElseStm(Statement elseStm);", "private void parseElse(@NotNull ParserState state) {\n state.popEndUntil(m_types.C_IF).advance().mark(m_types.C_IF_THEN_SCOPE);\n }", "@Override\n\tpublic Void visit(ClauseBranch clause, Void ctx) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Statement getNextStatement(Task task) {\r\n\t\tif ((boolean)(this.getExpression().evaluate(task)))\r\n\t\t\treturn body;\r\n\t\telse\r\n\t\t\treturn nextStatement;\r\n\t}", "@Override\n\tpublic Void visit(If iff) {\n\t\tprintIndent(\"if\");\n\t\tindent++;\n\t\tiff.cond.accept(this);\n\t\tiff.thenBranch.accept(this);\n\t\tiff.elseBranch.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private void buildELSEStatement(CLBlock block, CLCommand clCmd) {\n\t\tString cmdValue = null;\n\t\tif (clCmd.getPositionalParms().size() >= 1) {\n\t\t\tcmdValue = clCmd.getPositionalParm(0).getValue().getText();\n\n\t\t\tif (cmdValue.startsWith(\"(\") && cmdValue.endsWith(\"\"))\n\t\t\t\tcmdValue = cmdValue.substring(1, cmdValue.length() - 1);\n\t\t\telse\n\t\t\t\tcmdValue = clCmd.getText().trim().substring(\"ELSE\".length()).trim();\n\n\t\t} else if (clCmd.getParm(\"CMD\") != null)\n\t\t\tcmdValue = clCmd.getParm(\"CMD\").getValue().getText();\n\n\t\tif (\"DO\".equalsIgnoreCase(cmdValue) || \"(DO)\".equalsIgnoreCase(cmdValue)) {\n\t\t\tCLBlock elseBlock = new CLBlock();\n\t\t\tbuildBlock(elseBlock);\n\n\t\t\tblock.getIfStack().peek().setElse(elseBlock.getBlock());\n\t\t\tblock.clearIfStack();\n\n\t\t} else if (cmdValue.trim().startsWith(\"IF\")) {\n\t\t\tCLCommand elseIf = (CLCommand) commandParser.parse(cmdValue + \"\\n\");\n\n\t\t\tQIf lastIf = block.getIfStack().peek();\n\t\t\tQIf result = buildIFStatement(block, elseIf);\n\t\t\tlastIf.setElse(result);\n\n\t\t} else {\n\t\t\tCLCommand thenCmd = (CLCommand) commandParser.parse(cmdValue + \"\\n\");\n\t\t\tQStatement result = analizeCommand(block, thenCmd, false);\n\n\t\t\tblock.getIfStack().peek().setElse(result);\n\t\t\tblock.clearIfStack();\n\t\t}\n\t}", "public T caseExprElse(ExprElse object)\n {\n return null;\n }", "public final String condStmt() throws RecognitionException {\n\t\tString out = null;\n\n\n\t\tString s1 =null;\n\t\tString s2 =null;\n\t\tString expr28 =null;\n\n\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:2: ( ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] ) )\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:384:4: ^( 'IF' expr[false, null] s1= stmt[false, null] s2= stmt[false, null] )\n\t\t\t{\n\t\t\tmatch(input,42,FOLLOW_42_in_condStmt547); \n\t\t\tmatch(input, Token.DOWN, null); \n\t\t\tpushFollow(FOLLOW_expr_in_condStmt549);\n\t\t\texpr28=expr(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt554);\n\t\t\ts1=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tpushFollow(FOLLOW_stmt_in_condStmt559);\n\t\t\ts2=stmt(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tmatch(input, Token.UP, null); \n\n\n\t\t\t\t\t\n\t\t\t\t\t\tString statement1 = \"\";\n\t\t\t\t\t\tif (s1 != null) {\n\t\t\t\t\t\t\tstatement1 = s1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tString statement2 = \"\";\n\t\t\t\t\t\tif (s2 != null) {\n\t\t\t\t\t\t\t//System.out.println(s2);\n\t\t\t\t\t\t\tstatement2 = s2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ti+=2;\n\t\t\t\t\t\tout = \"\\n\" + indent() + \"if (\" + expr28 + \") {\\n\";\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement1 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() + \"} else {\\n\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tout = out.concat(indent() + statement2 + \"\\n\");\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tout = out.concat(indent() +\"}\");\n\t\t\t\t\t\ti-=2;\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn out;\n\t}", "public Expression getCondition()\n {\n return this.condition;\n }", "IfStatement createIfStatement();", "@Override\n\tpublic String getCondition() {\n\t\treturn \"\";\n\t}", "public T caseCondition(Condition object) {\n\t\treturn null;\n\t}", "private IfStmt ifstmt(){\n Expr expr=null;\n Stmt thenstmt=null;\n Stmt elsestmt= null;\n \n if(lexer.token == Symbol.IF){\n lexer.nextToken();\n expr = expr();\n\n if(lexer.token == Symbol.THEN){\n lexer.nextToken();\n thenstmt = stmt();\n \n if(lexer.token == Symbol.ELSE){\n lexer.nextToken();\n elsestmt = stmt();\n \n }\n\n \n if(lexer.token == Symbol.ENDIF){\n lexer.nextToken();\n }else{\n lexer.error(\"Missing ENDIF\");\n }\n }else{\n lexer.error(\"Missing THEN\");\n }\n }else{\n lexer.error(\"Missing IF\");\n }\n \n return new IfStmt(expr, thenstmt, elsestmt);\n }", "private boolean executionCondition(String condition) {\r\n\r\n\t\tboolean result = false;\r\n\t\tif (condition != null) {\r\n\t\t\ttry {\r\n\t\t\t\tresult = Boolean.parseBoolean(ExecutScript(getScriptOfParameters(), getScriptOfValuesAsObjects(),\r\n\t\t\t\t\t\t\"return (\" + condition + \")\").toString());\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tsetResultstype(resultstype.Failure);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "protected void else_statement(INestedIfElseClauseContainer upperIf) throws NoDefaultDistributionDeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\tSomeStateUndeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidProbabilityRangeException,\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tTableFunctionMalformedException {\r\n\t\t\r\n\t\t// Debug.println(\"ELSE STATEMENT\");\r\n\t\tif ( look == '[' ) {\r\n\t\t\t// header ::= there are no known parents yet, is ANY and is default.\r\n\t\t\tthis.currentHeader = new TempTableHeaderCell(null,true,true, this.ssbnnode); \r\n\t\t\t\r\n\t\t\t// register it to the upper container (might be another clause or the temporary table)\r\n\t\t\tif (upperIf == null) {\r\n\t\t\t\t// No upper container identified. Let's assume to be the upper-most container (the temporary table)\r\n\t\t\t\tthis.tempTable.addNestedClause(this.currentHeader);\r\n\t\t\t} else {\r\n\t\t\t\tupperIf.addNestedClause(this.currentHeader);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// if there are nested if/else clauses, their upper container should be the currently evaluated else clause (currentHeader)\r\n\t\t\tthis.statement(this.currentHeader);\r\n\t\t} else {\r\n\t\t\t// Debug.println(\"COULD NOT FIND '['\");\r\n\t\t\t// we dont have to create new header here because ifStatement would do so.\r\n\t\t\t// the if statement without \"[\" is on the same level of currently evaluated else clause, so, pass upperIf as upper container\r\n\t\t\tifStatement(upperIf);\r\n\t\t}\r\n\t\r\n\t}", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "public void setElse(Statement elseStatement)\n {\n this.elseStatement = elseStatement;\n }", "public T caseStatement(Statement object)\n {\n return null;\n }", "public T caseStatement(Statement object)\n {\n return null;\n }", "Boolean conditionResult();", "@Override\n public Void visit(DebuggerStatement node, StatementVisitor mv) {\n return null;\n }", "public Element compileIf() throws CloneNotSupportedException {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\t\n\t\t//Unique labels for jumping around\n\t\tString elseLabel = label();\n\t\tString endLabel = label();\n\n\t\tElement ifParent = document.createElement(\"ifStatement\");\n\n\t\t// if\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// (\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// expression\n\t\tjTokenizer.advance();\n\t\tifParent.appendChild(compileExpression());\n\n\t\t// )\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\t\t\n\t\t//If condition fails, go to else part of the block\n\t\twriter.writeArithmetic(\"not\");\n\t\twriter.writeIf(elseLabel);\n\n\t\t// {\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// statement inside the if block\n\t\tjTokenizer.advance();\n\t\tifParent.appendChild(compileStatements());\n\n\t\t// }\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tifParent.appendChild(ele);\n\n\t\t// if done, go to end\n\t\twriter.writeGoto(endLabel);\n\t\t\n\t\t// Else statements start here\n\t\twriter.writeLabel(elseLabel);\n\n\t\t// else\n\n\t\t// Interesting coding challenge. I had to look ahead by one token to\n\t\t// check if there was an else block, but if it didn't exists, I would be\n\t\t// one token ahead of the XML.\n\t\t// Built a clone of the present tokenizer and used it to look ahead,\n\t\t// if an else exists, advance the main tokenizer as well\n\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\tclone.advance();\n\n\t\ttoken = clone.returnTokenVal();\n\t\tif (token.equals(\"else\")) {\n\n\t\t\t// else\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// {\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// statements inside the else block\n\t\t\tjTokenizer.advance();\n\t\t\tifParent.appendChild(compileStatements());\n\n\t\t\t// }\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tifParent.appendChild(ele);\n\n\t\t\t// End of if-else block\n\t\t\twriter.writeLabel(endLabel);\n\n\t\t\treturn ifParent;\n\t\t} \n\t\telse {\n\n\t\t\t// End of if block\n\n\t\t\twriter.writeLabel(endLabel);\n\t\t\treturn ifParent;\n\t\t}\n\t}", "public T caseIfConditional(IfConditional object)\n\t{\n\t\treturn null;\n\t}", "public Snippet visit(ElseClause n, Snippet argu) {\n\t Snippet _ret=new Snippet(\"\",\"\",null, false);\n\t n.nodeToken.accept(this, argu);\n\t _ret.returnTemp = \" \";//+f1.returnTemp;\n\t\t\ttPlasmaCode+=generateTabs(blockDepth)+\"else\"+\"\\n\";\n\t n.block.accept(this, argu);\n\t return _ret;\n\t }", "public ASTNode getCondition() {\n \treturn (ASTNode)getChildNode(ChooseRulePlugin.GUARD_NAME);\n }", "public final ConditionalStatement conditionalStatement() throws RecognitionException {\r\n ConditionalStatement result = null;\r\n\r\n int conditionalStatement_StartIndex = input.index();\r\n\r\n IfThenElseStatement ifthels =null;\r\n\r\n IfThenStatement ifths =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 5) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:2: (ifthels= ifThenElseStatement |ifths= ifThenStatement )\r\n int alt4=2;\r\n int LA4_0 = input.LA(1);\r\n\r\n if ( (LA4_0==IfRW) ) {\r\n int LA4_1 = input.LA(2);\r\n\r\n if ( (synpred4_QL()) ) {\r\n alt4=1;\r\n }\r\n else if ( (true) ) {\r\n alt4=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 4, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 4, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt4) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:43:3: ifthels= ifThenElseStatement\r\n {\r\n pushFollow(FOLLOW_ifThenElseStatement_in_conditionalStatement196);\r\n ifthels=ifThenElseStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = ifthels; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:44:4: ifths= ifThenStatement\r\n {\r\n pushFollow(FOLLOW_ifThenStatement_in_conditionalStatement208);\r\n ifths=ifThenStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = ifths; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 5, conditionalStatement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "java.lang.String getCondition();", "private IfElement _ifElse(String expression, List<CodeElement> body, List<CodeElement> elseBody)\n {\n return _ifElseIf(expression, body, Collections.emptyList(), Collections.emptyList(), elseBody);\n }", "@Override\n public String visit(ReturnStmt n, Object arg) {\n return null;\n }", "private Stmt simpleStmt() {\n if (null != lexer.token) {\n switch (lexer.token) {\n case PRINT:\n return printStmt();\n case BREAK:\n return breakStmt();\n case IDENT:\n lexer.nextToken();\n if (lexer.token == Symbol.LEFTPAR) {\n lexer.backToken();\n return funcStmt();\n } else {\n lexer.backToken();\n return exprStmt();\n }\n case RETURN:\n return returnStmt();\n default:\n break;\n }\n }\n return null;\n }", "public T caseIfDefConditional(IfDefConditional object)\n\t{\n\t\treturn null;\n\t}", "public StatementNode getStatementNodeOnTrue();", "final public IASTPKGIfElseifContainer IfElseifContainer(IASTPKGConditionExpression conditionNode) throws ParseException {\r\n IASTPKGIfElseifContainer node = null;\r\n//\tIASTLiteralTextNode conditionNode = null;\r\n IASTListNode<IASTPKGStatement> statements = null;\r\n Token start = token;\r\n statements = ConditionalStatements();\r\n//\t\tif (condition != null) {\r\n//\t\t\tconditionNode = getRawLiteralTextNodeSpanning(condition, condition);\r\n//\t\t} else {\r\n//\t\t\tthrow generateParseException();\r\n//\t\t}\r\n node = ASTPKGFactory.createPKGIfElseifContainer(conditionNode, statements);\r\n if (statements != null && statements.getChildren().length > 0) {\r\n ParserUtils.setSourceRangeForListNode(null, statements, null);\r\n ParserUtils.copySourceInfo(node, statements);\r\n } else {\r\n ParserUtils.setSourceRangeFromTokenSpan(statements, start, start);\r\n ParserUtils.setSourceRangeFromTokenSpan(node, start, start);\r\n }\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public T caseElIfConditional(ElIfConditional object)\n\t{\n\t\treturn null;\n\t}", "public T caseVariableCondition(VariableCondition object)\n {\n return null;\n }", "public interface BranchNode extends StatementNode\n{\n\t/**\n\t * Set the branching condition.\n\t * \n\t * @param condition\n\t * the condition of the branch.\n\t */\n\tpublic void setCondition(ExpressionNode condition);\n\n\t/**\n\t * Get the branching condition.\n\t * \n\t * @return the condition of the branch.\n\t */\n\tpublic ExpressionNode getCondition();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to true.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to true.\n\t */\n\tpublic void setStatementNodeOnTrue(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition evaluates to true.\n\t * \n\t * @return The statement to execute when the condition evaluates to true.\n\t */\n\tpublic StatementNode getStatementNodeOnTrue();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to false.\n\t * This is the else statement. If there is no else set to null.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to false or\n\t * null if no else branch is needed.\n\t */\n\tpublic void setStatementNodeOnFalse(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition is false. This is the else\n\t * branch. If no else branch exists this will return null.\n\t * \n\t * @return The statement to execute when the condition evaluates to false.\n\t */\n\tpublic StatementNode getStatementNodeOnFalse();\n}", "public Statement getThenStm();", "public T caseExprIf(ExprIf object)\n {\n return null;\n }", "public final void ifStatement() throws RecognitionException {\n CommonTree s=null;\n CommonTree v=null;\n Object e =null;\n\n\n\n int eindex = -1;\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:3: ( ^( 'if' e= expression s= . ( 'else' v= . )? ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:6: ^( 'if' e= expression s= . ( 'else' v= . )? )\n {\n match(input,46,FOLLOW_46_in_ifStatement422); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_ifStatement426);\n e=expression();\n\n state._fsp--;\n\n\n int sindex = input.index();\n\n s=(CommonTree)input.LT(1);\n\n matchAny(input); \n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:60: ( 'else' v= . )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==43) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:244:61: 'else' v= .\n {\n match(input,43,FOLLOW_43_in_ifStatement435); \n\n eindex = input.index();\n\n v=(CommonTree)input.LT(1);\n\n matchAny(input); \n\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); \n\n\n\n BufferedTreeNodeStream stream = (BufferedTreeNodeStream) input;\n if ((Boolean)e) {\n stream.push(sindex);\n block();\n stream.pop(); \n }\n else if(eindex != -1){\n stream.push(eindex);\n block();\n stream.pop();\n }\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public String visit(IfStatement n, LLVMRedux argu) throws Exception {\n String[] array =u.getConditionTags();\n u.println(\"br i1 \"+ n.f2.accept(this, argu)+\", label %\"+array[0]+\", label %\"+array[1]);\n u.increaseIndentation();\n u.println(array[0]+\":\");\n n.f4.accept(this, argu);\n u.println(\"br label %\"+array[2]);\n u.println(array[1]+\":\");\n n.f6.accept(this, argu);\n u.println(\"br label %\"+array[2]);\n u.println(array[2]+\":\");\n u.decreaseIndentation();\n return null;\n }", "public Expression getExpression() {\n return optionalConditionExpression; }", "public final Statement statement() throws RecognitionException {\r\n Statement result = null;\r\n\r\n int statement_StartIndex = input.index();\r\n\r\n QuestionStatement qst =null;\r\n\r\n ConditionalStatement cstmt =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:2: (qst= questionStatement |cstmt= conditionalStatement )\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( (LA2_0==Ident) ) {\r\n alt2=1;\r\n }\r\n else if ( (LA2_0==IfRW) ) {\r\n alt2=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt2) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:31:4: qst= questionStatement\r\n {\r\n pushFollow(FOLLOW_questionStatement_in_statement125);\r\n qst=questionStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = qst; }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:32:4: cstmt= conditionalStatement\r\n {\r\n pushFollow(FOLLOW_conditionalStatement_in_statement137);\r\n cstmt=conditionalStatement();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = cstmt; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 3, statement_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "private Stmt stmt(){\n \n switch(lexer.token){\n case IDENT:\n \n if (symbolTable.get(lexer.getStringValue()) instanceof Procedure) \n return procedureCall();\n \n //can´t be a function\n else if (symbolTable.get(lexer.getStringValue()) instanceof Function)\n lexer.error(\"Function was expected \\n\");\n \n //assignstmt\n else \n return assignstmt();\n \n case BEGIN:\n return cmpstmt();\n case IF:\n return ifstmt();\n case WHILE:\n return whilestmt();\n case WRITE:\n return writestmt();\n case WRITELN:\n return writelnstmt();\n case READ:\n return readstmt();\n case RETURN:\n return returnStmt();\n default:\n lexer.error(\"missing statment\\n\");\n }\n \n return null;\n }", "@Override\n public String visit(SwitchStmt n, Object arg) {\n return null;\n }", "public T caseIfElse(IfElse object) {\n\t\treturn null;\n\t}", "String getCondition();", "public Condition getCondition(){\n\t\treturn this.cond;\n\t}", "boolean getMissingStatement();", "boolean getMissingStatement();", "boolean getMissingStatement();", "boolean getMissingStatement();", "public ExpressionNode getCondition();", "public T caseIfThenElseExpr(IfThenElseExpr object) {\n\t\treturn null;\n\t}", "private void Conditional(){\n\t\tLogicOR();\n\t\t\n\t\tfor(;;){\n\t\t\tif(eat(\"for\")){\n\t\t\t\tInlineFor();\n\t\t\t}else if(eat(\"if\")){\n\t\t\t\tExpression();\n\t\t\t\tif(eat(\"else\"))\n\t\t\t\t\tConditional();\n\t\t\t}else if(eat(\"defined\") || eat(\"!defined\"));\n\t\t\telse for(;;){\n\t\t\t\tif(eat(\"?\")){\n\t\t\t\t\tExpression();\n\t\t\t\t\tassert_eat(\":\");\n\t\t\t\t\tConditional();\n\t\t\t\t}else return;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic String getTreeCondition() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Object visitCond(CondContext ctx) { \r\n\t\tBoolean condExpr = (Boolean) visit(ctx.condstat().expr(0));\r\n\t\tif(condExpr){\r\n\t\t\treturn visit(ctx.condstat().expr(1));\r\n\t\t}else{\r\n\t\t\treturn visit(ctx.condstat().expr(2));\r\n\t\t}\r\n\t}", "protected void statement(INestedIfElseClauseContainer upperIf) \r\n\t\t\t\t\t\t\t throws NoDefaultDistributionDeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\tSomeStateUndeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidProbabilityRangeException,\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tTableFunctionMalformedException{\r\n\t\t// Debug.println(\"PARSING STATEMENT, VALUE = \" + value + \", LOOKAHEAD = \" + look);\r\n\t\tif (look == '[') {\r\n\t\t\t\t\t\t\t\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t// Debug.print(\" \");\r\n\t\t\tmatch('[');\r\n\t\t\t\r\n\t\t\t// initialize currently evaluated temporary table's collumn\r\n\t\t\t//this.currentProbCellList = new ArrayList<TempTableProbabilityCell>();\r\n\t\t\t\r\n\t\t\tassignmentOrIf(upperIf);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tmatch(']');\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t// Debug.println(\"COULD NOT FIND '['\");\r\n\t\t\tthis.expected(\"[\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic Void visit(ClauseRetType clause, Void ctx) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Void visit(ClauseOperator clause, Void ctx) {\n\t\treturn null;\n\t}", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "String getIf();", "public T caseIfNotDefConditional(IfNotDefConditional object)\n\t{\n\t\treturn null;\n\t}", "public Object getCondition();", "@Override\r\n\tpublic Object visitIfStatement(IfStatement ifStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString condType = (String) ifStatement.expression.visit(this, arg);\r\n\t\tcheck(condType.equals(booleanType), \"uncompatible If condition\", ifStatement);\r\n\t\tifStatement.block.visit(this, arg);\r\n\t\treturn null;\r\n\t}", "private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n lexer.nextToken();\n \n if (isFunction) myExpr = expr();\n \n return new ReturnStmt(myExpr); \n }", "public Arginfo visit(IfthenElseStatement n, Arginfo argu) {\n Arginfo _ret=null;\n \n System.out.print(\"CJUMP \");\n \n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n \n int var1=(labelctr++);\n int var2=(labelctr++);\n int var3=(labelctr++);\n System.out.println(\" L\"+var2+\" \");\n \n n.f3.accept(this, argu);\n \n System.out.println(\" L\"+var1+\" NOOP\");\n \n n.f4.accept(this, argu);\n \n System.out.println(\"JUMP L\"+var3+\" \");\n \n n.f5.accept(this, argu);\n \n System.out.println(\" L\"+var2+\" NOOP\");\n \n n.f6.accept(this, argu);\n \n System.out.println(\" L\"+var3+\" NOOP\");\n \n return _ret;\n }", "@Override\n public String visit(EmptyStmt n, Object arg) {\n return null;\n }", "public T caseIfAbstractConditional(IfAbstractConditional object)\n\t{\n\t\treturn null;\n\t}", "@Override\n public String visit(BlockStmt n, Object arg) {\n return null;\n }", "public String getCondition() {\n\treturn condition;\n}" ]
[ "0.74949837", "0.7342704", "0.66137934", "0.65628237", "0.65468657", "0.65340304", "0.6496729", "0.6434907", "0.64295614", "0.64103675", "0.63248515", "0.61857057", "0.60946125", "0.60871065", "0.6049077", "0.6042561", "0.60382485", "0.60352015", "0.60176384", "0.59715194", "0.59438163", "0.5917967", "0.5909883", "0.5896861", "0.5893378", "0.58557695", "0.5850761", "0.5839949", "0.58245873", "0.5798812", "0.57976234", "0.57832116", "0.57456475", "0.5739939", "0.57192296", "0.5707657", "0.5694266", "0.5678989", "0.5663119", "0.56613696", "0.5657541", "0.5639382", "0.56326413", "0.56113493", "0.5609566", "0.55979055", "0.55979055", "0.55945176", "0.55818737", "0.55754954", "0.5567041", "0.55655754", "0.5562651", "0.55578375", "0.55546606", "0.55389154", "0.553032", "0.552778", "0.55243355", "0.55180436", "0.55127174", "0.55077547", "0.5504835", "0.5479054", "0.5477829", "0.5464265", "0.5462942", "0.5461789", "0.546146", "0.54477006", "0.5445705", "0.5445705", "0.54406744", "0.54340714", "0.5433035", "0.5431842", "0.5414499", "0.54134655", "0.54134655", "0.54134655", "0.54134655", "0.5409736", "0.54040015", "0.5403454", "0.53855205", "0.5360622", "0.53558075", "0.5343952", "0.53383565", "0.53378695", "0.5337759", "0.53280103", "0.53189963", "0.53023064", "0.52998483", "0.5291558", "0.5290691", "0.5282501", "0.52768415", "0.5276127" ]
0.5725971
34
/ metodo: Simples objetivo: Construir um automato simples. (Casos Bases)
public Automato simples(Character c){ Automato r = new Automato(); switch (c) { //Palavra Vazia(Epsilon) case 'E' : r.addEstado(new Estado(0)); r.addEstadoFinal(r.getQ().get(0)); break; //Linguagem Vazia(Vazio) case 'V': r.addEstado(new Estado(0)); break; default: r.addEstado(new Estado(0)); r.addEstado(new Estado(1)); r.addEstadoFinal(r.getQ().get(1)); r.addTransicao(r.getQ().get(0), r.getQ().get(1), c); break; } return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }", "public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }", "Secuencia createSecuencia();", "public abstract void instalar(SistemaOperativo SO);", "protected void agregarUbicacion(){\n\n\n\n }", "public void ustaw(){\n\t driver.initialize(this);\n\t driver.edit(new DodajSerwisDTO());\n\t }", "public alterarSenhaCliente() {\n }", "public void asetaTeksti(){\n }", "public void selecao () {}", "@PostConstruct\n\tpublic void inicia() {\n\t\t\n\t\tinicializaBD();\n\t\tcontrolPrincipal.inicia();\n\t}", "public Socio() {\r\n\t\tsuper();\r\n\t\tthis.id = 0;\r\n\t\tthis.nombre = \"\";\r\n\t\tthis.apellido1 = \"\";\r\n\t\tthis.apellido2 = \"\";\r\n\t\tthis.email = \"\";\r\n\t\tthis.dni = \"\";\r\n\t\tthis.administrador = false;\r\n\t}", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public static void creaHidatoAutomaticament()\n {\n ControladorVista.mostraCreacioHidatoAutomatica();\n }", "OperacionColeccion createOperacionColeccion();", "public TelaPrincipal() {\r\n initComponents();\r\n con.conecta();\r\n }", "public Principal() {\n initComponents();\n JButton botonesH[] = {cmdCrear, cmdLimpiar};\n JButton botonesD[] = {cmdManual, cmdAutomatico, cmdOperaciones};\n\n Helper.habilitarBotones(botonesH);\n Helper.deshabilitarBotones(botonesD);\n\n txtFilas.setEditable(true);\n txtColumnas.setEditable(true);\n }", "private void setNameAutomatic(){\n\t}", "public Tmio1Sitio() {\r\n\t}", "public abstract Anuncio creaAnuncioIndividualizado();", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public void run_v0(String clase){\n\t\t//aviso(\"Ejecutando \"+clase+\" Tipo V0\");\n\t\t\n\t\tObject\toc=null;\n\t\t\n\t\t\t\n\t\t\n\t\ttry {\n\t\t\tClass c=Class.forName(clase);\n\t\t\toc=c.newInstance();\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tif (oc!=null){\n\t\t\tvisual.Task_Model T=(visual.Task_Model) oc;\n\t\t\tint i=0;\n\t\t\tbeta.tools.connector.GTransfer GX=null;\n\t\t\t\n\t\t\twhile (i<this.getConstructor().getParametros().size() & GX==null){\n\t\t\t\tObject[] p=(Object[]) this.getConstructor().getParametros().get(i);\n\t\t\t\tString id=(String)p[0];\n\t\t\t\tObject o=p[1];\n\t\t\t\tif (id.compareTo(\"GX\")==0){\n\t\t\t\t\tGX=(beta.tools.connector.GTransfer)o;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (GX==null){\n\t\t\t\tGX=new beta.tools.connector.GTransfer();\n\t\t\t\tGeneric _default=this.getConstructor().getConnectionHandler().getDefaultConnector();\n\t\t\t\tGX.setHost(_default.getHost());\n\t\t\t\tGX.setPort(_default.getPort());\n\t\t\t\tGX.setDatabase(_default.getDatabase());\n\t\t\t\tGX.setUser(_default.getUser());\n\t\t\t\tGX.setPassword(_default.getPassword());\n\t\t\t\tGX.setSucursal(_default.getId());\n\t\t\t\tGX.ConnectSQL(_default.getId());\n\t\t\t}\n\t\t\tboolean b=true;//esta_autorizado(iduser,clase);\n\t\t\tif (b){\n\t\t\t\tString NEW_LINE = System.getProperty(\"line.separator\");\n\t\t\t\t/*String msg=\"Esta es una aplicacion vieja.\"+NEW_LINE;\n\t\t\t\tmsg+=\"Hasta que no se reprograme. Esta aplicacion quedara inhabilitada por problemas de incompatibilida\";\n\t\t\t\terror(msg);*/\n\t\t\t\t\n\t\t\t\tT.setParameter(\"GX\", GX);\n\t\t\t\tT.setParameter(\"iduser\", this.getConstructor().getIduser());\n\t\t\t\tfor (i=0;i<this.getConstructor().getParametros().size();i++){\n\t\t\t\t\ttry {\n\t\t\t\t\tObject[] p=(Object[]) this.getConstructor().getParametros().get(i);\n\t\t\t\t\tString id=(String)p[0];\n\t\t\t\t\tObject o=p[1];\n\t\t\t\t\tT.setParameter(id, o);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"No se pudo Cargar el parametro \"+i+\" >\"+clase+\" \"+e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (javax.swing.SwingUtilities.isEventDispatchThread()){\n\t\t\t\t\tT.run();\n\t\t\t\t}else{\n\t\t\t\t\tfinal visual.Task_Model _T=T;\n\t\t\t\t\tRunnable _execute=new Runnable(){\n\t\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t\t_T.run();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tjavax.swing.SwingUtilities.invokeLater(_execute);\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\terror(\"(\"+this.getConstructor().getIduser()+\") No esta Autorizado\");\n\t\t\t\tT=null;\n\t\t\t}\t\n\t\t}\n\t}", "public cambiarContrasenna() {\n initComponents();\n txtNombreUsuario.setEnabled(false);\n inicializarComponentes();\n cargarUsuarios();\n }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "@Test\r\n public void testSetContrasenia() {\r\n System.out.println(\"setContrasenia\");\r\n String contrasenia = \"\";\r\n Usuario instance = new Usuario();\r\n instance.setContrasenia(contrasenia);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public Aplicacion(String nomAdmin, String contrasena, Integer numMinApoyos) {\r\n\t\t\r\n\t\tif(nomAdmin.isEmpty()|| Objects.isNull(nomAdmin) ) {\r\n\t\t\tthrow new IllegalArgumentException(\"Debes de introducir los datos validos\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.nombreAdmin = nomAdmin;\r\n\t\tthis.contraseñaAdmin = contrasena; \r\n\t\tthis.numMinApoyos = numMinApoyos;\r\n\t\tthis.modoAdmin = false;\r\n\t\t\r\n\t\tthis.proyectos = new HashSet<Proyecto>();\r\n\t\tthis.proponentes = new HashSet<Proponente>();\r\n\t\tthis.lastProjectUniqueID = 0;\r\n\t\t\r\n\t\t//Cargamos los distritos\r\n\t\tdistritosPermitidos = new HashSet<String>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(distritosPath));\r\n\t String d;\r\n\t while((d = br.readLine()) != null){\r\n\t \t this.distritosPermitidos.add(d);\t //Leer la siguiente línea\r\n\t }\r\n\t\t}catch (FileNotFoundException e) {\r\n\t System.out.println(\"Error: Fichero no encontrado\");\r\n\t System.out.println(e.getMessage());\r\n\t \r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\t\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void instalarBaseDatos()\r\n\t{\r\n\t\tString nombrebuscado = \"information_schema\";\r\n\t\tArrayList parametrosbd = parametrosConectorBaseDatos();\r\n\t\tif(parametrosbd != null)\r\n\t\t{\r\n\t\t\tif(parametrosbd.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnombrebuscado =(String)parametrosbd.get(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString nombrebd = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector(\"information_schema\");\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tnombrebd = CrearBD.buscarBaseDatos(nombrebuscado, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(nombrebd == null)\r\n\t\t{\r\n\t\t\tint numerotablascreadas = 0;\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conectora = new Conector(\"information_schema\");\r\n\t\t\t\tconectora.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.crearBaseDatos(nombrebuscado, conectora);\r\n\t\t\t\tconectora.terminarConexionBaseDatos();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 1; i < 20; i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tString nombretabla = i+\".sql\";\r\n\t\t\t\t\tString contenidotabla = ejecutarCodigoSQLtablas(nombretabla);\r\n\t\t\t\t\tif(!contenidotabla.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorb = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorb.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(contenidotabla, conectorb);\r\n\t\t\t\t\t\tconectorb.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tnumerotablascreadas++;\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\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo \"+nombretabla,\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numerotablascreadas == 19)\r\n\t\t\t\t{\r\n\t\t\t\t\tejecutarCodigoSQLdatos(nombrebuscado);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}", "public vistaEjemplo() {\n initComponents();\n con=new Conexion();\n data = new Datas(con);\n usuario = new Usuario();\n jTApellido.setEnabled(false);\n jTMail.setEnabled(false);\n jTNombre.setEnabled(false);\n jTPassword.setEnabled(false);\n JdcFechaDeEntrada.setEnabled(false);\n jBPdf.setEnabled(false);\n }", "public ejercicio1() {\n this.cadena = \"\";\n this.buscar = \"\";\n }", "public contrustor(){\r\n\t}", "private void setupEscenario2( )\n {\n setupEscenario1( );\n\n String nombre = \"Alberto\";\n String direccion = \"dirección\";\n String telefono = \"1234567\";\n String email = \"[email protected]\";\n Contacto contacto2 = new Contacto( nombre, telefono, direccion, email );\n\n try\n {\n contacto1.insertar( contacto2 );\n }\n catch( ContactoRepetidoException e )\n {\n fail( \"El contacto debió agregarse\" );\n }\n }", "Operacion createOperacion();", "private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void altaUsuario();", "Persistencia() {\n\t}", "public void inicializar();", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public Caso_de_uso () {\n }", "public UConnecte() {\n\t\tsuper();\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 }", "@Test\n public void t01_buscaAdmin() throws Exception {\n Usuario admin;\n admin = usuarioServico.login(\"administrador\", \".Ae12345\");\n assertNotNull(admin);\n }", "private void enviarRequisicaoAdicionar() {\n servidor.adicionarPalito(nomeJogador);\n atualizarPalitos();\n }", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "public void chocoContraMunicion(IMunicion municion){}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public void inicializar(Coleccion coleccion){\n cargador.inicializar();\n analizador.inicializar();\n gestorAlmacenamiento.inicializar(coleccion);\n\n }", "public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n carga_fecha();\n ocultar_labeles();\n }", "public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}", "protected Asignatura()\r\n\t{}", "public VentanaPrincipal() {\n initComponents();\n editar = false;\n }", "public VentanaPrincipal(Modelo s) {\n modelo = s;\n initComponents();\n capturarEventos();\n }", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"[email protected]\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}", "public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;", "public void Ordenamiento() {\n\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@Test\n public void testRegistrar() throws Exception { \n long sufijo = System.currentTimeMillis();\n Usuario usuario = new Usuario(\"Alexander\" + String.valueOf(sufijo), \"alex1.\", TipoUsuario.Administrador); \n usuario.setDocumento(sufijo); \n usuario.setTipoDocumento(TipoDocumento.CC);\n servicio.registrar(usuario); \n Usuario usuarioRegistrado =(Usuario) servicioPersistencia.findById(Usuario.class, usuario.getLogin());\n assertNotNull(usuarioRegistrado);\n }", "private void registrarDatosBD(String nombre, String apellido, String usuario, String clave, String fnacim) {\n\t\tUsuario u = new Usuario(0, nombre, apellido, usuario, clave, fnacim, 0, 0);\n\t\t// 02. Registrar el obj usando la clase de gestion y guardando\n\t\tint ok = new GestionUsuarios().registrar(u);\n\n\t\t// salidas\n\t\tif (ok == 0) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Error al registrar\");\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(this, \"Registro OK\");\n\t\t}\n\t}", "protected void accionUsuario() {\n\t\t\r\n\t}", "public void asignarVida();", "@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}", "public abstract Anuncio creaAnuncioTematico();", "public Sistema(){\r\n\t\t\r\n\t}", "@Test\n @Order(1)\n void TC_UTENTE_DAO_1()\n {\n\n /*creo uno username valido*/\n Utente utente = new Utente();\n utente.setUsername(\"utenteTest1\");\n utente.setPassword(\"password\");\n utente.setNome(\"Test\");\n utente.setCognome(\"Test\");\n utente.setNazionalità(\"italiana\");\n utente.setEmail(\"[email protected]\");\n UtenteDAO utenteDAO = new UtenteDAO();\n\n assertTrue(utenteDAO.doSave(utente));\n }", "public void run_v1(String clase){\n\t\tObject\toc=null;\n\t\ttry {\n\t\t\tClass c=Class.forName(clase);\n\t\t\toc=c.newInstance();\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tif (oc!=null){\n\t\t\tTask_Model T=(Task_Model) oc;\n\t\t\tboolean b=true;//esta_autorizado(iduser,clase);\n\t\t\tif (b){\n\t\t\t\t\n\t\t\t\tfor (int i=0;i<this.getConstructor().getParametros().size();i++){\n\t\t\t\t\ttry {\n\t\t\t\t\tObject[] p=(Object[]) this.getConstructor().getParametros().get(i);\n\t\t\t\t\tString id=(String)p[0];\n\t\t\t\t\tObject o=p[1];\n\t\t\t\t\tT.setParameter(id, o);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"No se pudo Cargar el parametro \"+i+\" >\"+clase+\" \"+e.getMessage());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (javax.swing.SwingUtilities.isEventDispatchThread()){\n\t\t\t\t\tT.run(getConstructor());\n\t\t\t\t}else{\n\t\t\t\t\tfinal Task_Model _T=T;\n\t\t\t\t\tRunnable _execute=new Runnable(){\n\t\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t\t_T.run(getConstructor());\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tjavax.swing.SwingUtilities.invokeLater(_execute);\t\n\t\t\t\t}\t\n\t\t\t}else {\n\t\t\t\terror(\"(\"+this.getConstructor().getIduser()+\") No esta Autorizado\");\n\t\t\t\tT=null;\n\t\t\t}\t\n\t\t}\n\t\t\n\t}", "public abstract Anuncio creaAnuncioGeneral();", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "@Test\n public void testSetMatricula() {\n System.out.println(\"setMatricula\");\n String matricula = \"\";\n Usuario instance = null;\n instance.setMatricula(matricula);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private DittaAutonoleggio(){\n \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 }", "public void ejecutarMaquinaTuring() {\n\n\t\tString cadenaEntrada;\n\t\tArrayList<String> cadenaCinta = new ArrayList<>();\n\t\tsetEstadoActual(getEstadoInicial());\n\t\tSystem.out.println(\"Inserte la cadena a probar:\");\n\t\tScanner imputUsuario = new Scanner(System.in);\n\t\tcadenaEntrada = imputUsuario.nextLine();\n\t\tfor (int i = 0; i < cadenaEntrada.length(); i++) {\n\t\t\tcadenaCinta.add(String.valueOf(cadenaEntrada.charAt(i)));\n\t\t}\n\n\t\tcinta = new Cinta(cadenaCinta, new CabezaLE());// inicializamos la cinta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// con la cadena del\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// usuario\n\t\t/*\n\t\t * Evaluamos\n\t\t */\n\t\tboolean noTransiciones = false;\n\n\t\twhile (noTransiciones == false) {// para cuando no hayan transiciones\n\n\t\t\tnoTransiciones = true;// suponemos, a priori, que no hay\n\t\t\t\t\t\t\t\t\t// transiciones\n\n\t\t\tfor (int j = 0; j < conjuntoTransiciones.size(); j++) {\n\n\t\t\t\tString estadoSiguiente = cinta.getCabezaLE().transitar(estadoActual, cinta.getCadenaCinta(),\n\t\t\t\t\t\tconjuntoTransiciones.get(j));\n\n\t\t\t\tif (estadoSiguiente != null) {// si encontro un estado al que\n\t\t\t\t\t\t\t\t\t\t\t\t// transitar...\n\n\t\t\t\t\testadoActual = estadoSiguiente; // transita\n\t\t\t\t\tnoTransiciones = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} // END FOR\n\t\t} // END WHILE (NO QUEDAN TRANSICIONES)\n\t\tgetCinta().mostrarCinta();\n\t\tcadenaEsAceptada();\n\t}", "private void inicializarUsuarios(){\n usuarios = new ArrayList<Usuario>();\n Administrador admin=new Administrador();\n admin.setCodigo(1);\n admin.setApellidos(\"Alcaide Gomez\");\n admin.setNombre(\"Juan Carlos\");\n admin.setDni(\"31000518Z\");\n admin.setPassword(\"admin\");\n admin.setCorreo(\"[email protected]\");\n admin.setDireccion(\"Sebastian Garrido 54\");\n admin.setNacimiento(new Date(1991, 12, 29));\n admin.setNacionalidad(\"España\");\n admin.setCentro(\"Centro\");\n admin.setSexo(\"Varon\");\n admin.setDespacho(\"301\");\n usuarios.add(admin);\n \n JefeServicio js=new JefeServicio();\n js.setCodigo(2);\n js.setApellidos(\"Gutierrez Cazorla\");\n js.setNombre(\"Ruben\");\n js.setDni(\"75895329k\");\n js.setPassword(\"admin\");\n js.setCorreo(\"[email protected]\");\n js.setDireccion(\"Sebastian Garrido 54\");\n js.setNacimiento(new Date(1991, 12, 29));\n js.setNacionalidad(\"España\");\n js.setCentro(\"Centro\");\n js.setSexo(\"Varon\");\n js.setDespacho(\"301\");\n \n usuarios.add(js);\n \n \n Ciudadano c =new Ciudadano();\n c.setCodigo(3);\n c.setApellidos(\"Moreno\");\n c.setNombre(\"Maria\");\n c.setDni(\"123\");\n c.setPassword(\"123\");\n c.setCorreo(\"[email protected]\");\n c.setDireccion(\"Sebastian Garrido 54\");\n c.setNacimiento(new Date(1992, 01, 12));\n c.setCentro(\"Teatinos\");\n c.setNacionalidad(\"España\");\n c.setSexo(\"Mujer\");\n c.setTelefono(\"999\");\n usuarios.add(c);\n \n //--Administrativos--\n Administrativo a =new Administrativo();\n a.setCodigo(4);\n a.setApellidos(\"Fernández\");\n a.setNombre(\"Salva\");\n a.setDni(\"1234\");\n a.setPassword(\"1234\");\n a.setCorreo(\"[email protected]\");\n a.setDireccion(\"Sebastian Garrido 54\");\n a.setNacimiento(new Date(1991, 9, 29));\n a.setNacionalidad(\"España\");\n a.setSexo(\"Hombre\");\n a.setCentro(\"Centro\");\n usuarios.add(a);\n \n Tecnico tec=new Tecnico();\n tec.setCodigo(5);\n tec.setApellidos(\"Alcaide Gomez\");\n tec.setNombre(\"Juan Carlos\");\n tec.setDni(\"tecnico\");\n tec.setPassword(\"tecnico\");\n tec.setCorreo(\"[email protected]\");\n tec.setDireccion(\"Sebastian Garrido 54\");\n tec.setNacimiento(new Date(1991, 12, 29));\n tec.setNacionalidad(\"España\");\n tec.setCentro(\"Centro\");\n tec.setSexo(\"Varon\");\n tec.setDespacho(\"301\");\n tec.setTelefono(\"664671040\");\n tec.setEspecialidad(\"Maltrato\");\n tec.setTfijo(957375546);\n \n usuarios.add(tec);\n \n }", "private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private UsineJoueur() {}", "public Maestro()\r\n\t{\r\n\t\tint i;\r\n\t\tint hora = 0;\r\n\t\tint minutos = 0;\r\n\t\tint segundos = 0;\r\n\t\tint milisegundos = 0;\r\n\t\tthis.reloj = new Reloj(\"Reloj Servidor\",hora,minutos,segundos,milisegundos);\r\n\t\tthis.reloj.start();\r\n\r\n\t\tthis.s_BD = new Sincronizador_BD(this.Conect);\r\n\t\tthis.s_BD.start();\r\n\t}", "String ejecutarAccion();", "private void sceltapannelli(String utilizzatore){\n\n if(utilizzatore.equals(\"Registrazione\")){\n\n sez_managerview.setSezA(new Sez_AView().getIntermedio0());\n sez_managerview.setSezB(new Sez_BView().getIntermedio0());\n sez_managerview.setSezC(new Sez_CView().getIntermedio0());\n\n }\n\n }", "public Saida() {\n initComponents();\n defaults();\n preencherTabela();\n \n }", "abstract void trataAltera();", "private static void teste01 () {\n\t\tEstoque e = new Estoque();\n\t\n\t\te.setCodigo(1);\n\t\te.setPreco(new Float(10));\n\t\te.setQuantidade(1);\n\t\te.setFornecedor(\"provider\");\n\t\n\t\te.insert();\n\n\t\tlog.debug(\"Estoque inserido.\");\n\t}", "public FiltroRaEncerramentoComando() {\r\n }", "public static void initalize(){\n //Add all of the commands here by name and id\n autonomousChooser.addDefault(\"Base Line\", 0);\n // addOption​(String name, int object)\n\n SmartDashboard.putData(\"Auto mode\", autonomousChooser);\n }", "public abstract Setusuario buscarUsuario(String nomUsuario);", "@Override\n\tpublic void chocoContraPared() {}", "public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }", "@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "private void iniciar() {\r\n\t\tprincipal = new Principal();\r\n\t\tgestionCientificos=new GestionCientificos();\r\n\t\tgestionProyectos=new GestionProyectos();\r\n\t\tgestionAsignado= new GestionAsignado();\r\n\t\tcontroller= new Controller();\r\n\t\tcientificoServ = new CientificoServ();\r\n\t\tproyectoServ = new ProyectoServ();\r\n\t\tasignadoA_Serv = new AsignadoA_Serv();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tprincipal.setControlador(controller);\r\n\t\tgestionCientificos.setControlador(controller);\r\n\t\tgestionProyectos.setControlador(controller);\r\n\t\tgestionAsignado.setControlador(controller);\r\n\t\tcientificoServ.setControlador(controller);\r\n\t\tproyectoServ.setControlador(controller);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tcontroller.setPrincipal(principal);\r\n\t\tcontroller.setGestionCientificos(gestionCientificos);\r\n\t\tcontroller.setGestionProyectos(gestionProyectos);\r\n\t\tcontroller.setGestionAsignado(gestionAsignado);\r\n\t\tcontroller.setCientificoService(cientificoServ);\r\n\t\tcontroller.setProyectoService(proyectoServ);\r\n\t\tcontroller.setAsignadoService(asignadoA_Serv);\r\n\t\t\t\t\r\n\t\tprincipal.setVisible(true);\r\n\t}", "private void inizia() throws Exception {\n this.setNomeChiave(CHIAVE_NAV);\n this.setUsaNuovo(false);\n this.setUsaElimina(false);\n this.setUsaRicerca(true);\n this.setUsaSelezione(true);\n this.setUsaStampaLista(false);\n this.setUsaProietta(false);\n this.setAggiornamentoTotaliContinuo(true);\n }", "private static void oneUserExample()\t{\n\t}", "public static void main(String[] args) {\n int op;\r\n int opM;\r\n int opP;\r\n int opA;\r\n int opR;\r\n\r\n //Instanciando clases controladores para acceder a sus constrcutores (CRUD)\r\n ControladorMamifero mamiferoCon = new ControladorMamifero();\r\n ControladorPez pezCon = new ControladorPez();\r\n ControladorAve aveCon = new ControladorAve();\r\n\r\n do {\r\n\r\n System.out.println(\" ►► Menu ◄◄\");\r\n System.out.println(\"1. CRUD> Mamifero\");\r\n System.out.println(\"2. CRUD> Pez\");\r\n System.out.println(\"3. CRUD> Ave\");\r\n System.out.println(\"4. CRUD> Reptil\");\r\n System.out.println(\"5. SALIR \");\r\n\r\n Scanner leer = new Scanner(System.in);\r\n op = leer.nextInt();\r\n\r\n switch (op) {\r\n\r\n case 1: //crud de mamifero\r\n do {\r\n System.out.println(\" ►► Mamifero ◄◄\");\r\n System.out.println(\"1. CREATE \");\r\n System.out.println(\"2. READ \");\r\n System.out.println(\"3. UPDATE \");\r\n System.out.println(\"4. DELETE \");\r\n System.out.println(\"5. LIST \");\r\n System.out.println(\"6. REGRESAR \");\r\n\r\n opM = leer.nextInt();\r\n\r\n switch (opM) {\r\n //Creamos un objeto \"mamifero\".\r\n case 1:\r\n //Creo objeto de la clase ControladorMamifero para \r\n Mamifero mamifero = new Mamifero();\r\n //Asignamos valores\r\n System.out.println(\" CREATE \");\r\n System.out.println(\" Ingresar nombre\");\r\n mamifero.setNombre(leer.nextLine());\r\n mamifero.setNombre(leer.nextLine());\r\n System.out.println(\" Ingresar el tipo de animal\");\r\n mamifero.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingresar el sexo\");\r\n mamifero.setSexo(leer.nextLine());\r\n\r\n System.out.println(\" Ingresar cantidad de patas\");\r\n mamifero.setCantPatas(leer.nextInt());\r\n System.out.println(\" Ingresar cantidad de mamas\");\r\n mamifero.setCantMamas(leer.nextInt());\r\n System.out.println(\" Ingresar el tiempo de gestacion\");\r\n mamifero.setTiempoGest(leer.nextLine());\r\n mamifero.setTiempoGest(leer.nextLine());\r\n System.out.println(\" Ingresar el peso en kilos\");\r\n mamifero.setPeso(leer.nextDouble());\r\n\r\n //llamamos al metodo create en la clase Controlador.\r\n mamiferoCon.create(mamifero);\r\n System.out.println(\" Se ha creado un mamifero \"\r\n + mamifero.getNombre() + \" con el codigo: \" + mamifero.getCodigo());\r\n break;\r\n\r\n //Leemos el objeto creado anteriormente \"mamifero\" mediante el nombre.\r\n case 2:\r\n //Read mamifero\r\n System.out.println(\" \");\r\n System.out.println(\" READ \");\r\n System.out.println(\"Ingresar codigo del mamifero\");\r\n int cod2 = leer.nextInt();\r\n\r\n System.out.println(\" \");\r\n System.out.println(mamiferoCon.read(cod2));\r\n\r\n break;\r\n\r\n //Actualizamos el objeto pidiendo el nombre; el codigo se mantiene. \r\n case 3:\r\n //update mamifero\r\n System.out.println(\" UPDATE \");\r\n Mamifero mamiferoU = new Mamifero();\r\n System.out.println(\"Ingresar codigo del mamifero a modificar \");\r\n mamiferoU.setCodigo(leer.nextInt());\r\n mamiferoCon.update(mamiferoU);\r\n\r\n System.out.println(\"Ingresar nombre:\");\r\n mamiferoU.setNombre(leer.nextLine());\r\n mamiferoU.setNombre(leer.nextLine());\r\n System.out.println(\" Ingresar el tipo de animal\");\r\n mamiferoU.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingresar el sexo\");\r\n mamiferoU.setSexo(leer.nextLine());\r\n\r\n System.out.println(\" Ingresar cantidad de patas\");\r\n mamiferoU.setCantPatas(leer.nextInt());\r\n System.out.println(\" Ingresar cantidad de mamas\");\r\n mamiferoU.setCantMamas(leer.nextInt());\r\n System.out.println(\" Ingresar el tiempo en meses de gestacion\");\r\n mamiferoU.setTiempoGest(leer.nextLine());\r\n mamiferoU.setTiempoGest(leer.nextLine());\r\n System.out.println(\" Ingresar el peso en kilos\");\r\n mamiferoU.setPeso(leer.nextDouble());\r\n\r\n //llama al metodo update de la clase ControladorAuto.\r\n mamiferoCon.update(mamiferoU);\r\n System.out.println(\"Se han actualizado los datos del mamifero de codigo \"\r\n + mamiferoU.getCodigo());\r\n\r\n break;\r\n\r\n //Elimina un objeto y lo buscamos mediante el codigo;\r\n case 4:\r\n //delete mamifero\r\n //Mamifero mamiferoD = new Mamifero();\r\n System.out.println(\" DELETE \");\r\n System.out.println(\" Ingrese el nombre del mamifero a eliminar \");\r\n int cod = leer.nextInt();\r\n //lllama al metodo elimnar de la clase ControladorAuto\r\n mamiferoCon.delete(cod);\r\n System.out.println(\"Se a eliminado el mamifero \" + \" del codigo \" + cod);\r\n\r\n break;\r\n\r\n //Lista todos los objetos en el mismo orden que fueron creados anteriormente. \r\n case 5:\r\n //listar mamiferos creados\r\n System.out.println(\" LISTAR \");\r\n System.out.println(\" Desea listar 1.Si 2.No\");\r\n int lis = leer.nextInt();\r\n //mamifero.listar(leer.nextInt());\r\n mamiferoCon.listar(lis);\r\n\r\n break;\r\n\r\n }\r\n System.out.println(\" \");\r\n System.out.println(\"Continuar en la clase Mamifero = 1.SI / 2.NO\");\r\n opM = leer.nextInt();\r\n\r\n } while (opM != 2);\r\n break;\r\n\r\n //Clase HIJA 2 interface HASHSET y CRUD.\r\n case 2:\r\n do {\r\n System.out.println(\" ►► Pez ◄◄\");\r\n System.out.println(\"1. CREATE \");\r\n System.out.println(\"2. READ \");\r\n System.out.println(\"3. UPDATE \");\r\n System.out.println(\"4. DELETE \");\r\n System.out.println(\"5. LIST \");\r\n System.out.println(\"6. REGRESAR \");\r\n\r\n opP = leer.nextInt();\r\n switch (opP) {\r\n case 1: //create pez\r\n Pez pez = new Pez();\r\n System.out.println(\" CREANDO...\");\r\n System.out.println(\" Ingrese nombre\");\r\n pez.setNombre(leer.nextLine());\r\n pez.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n pez.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingrese el sexo\");\r\n pez.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese el tipo de pez\");\r\n pez.setTipoPez(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de esqueleto \");\r\n pez.setTipoEsqueleto(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n pez.setTamaño(leer.nextDouble());\r\n System.out.println(\"Ingrese el peso\");\r\n pez.setPeso(leer.nextDouble());\r\n\r\n pezCon.create(pez);\r\n System.out.println(\" Se ha creado el pez \" + pez.getNombre()\r\n + \" con codigo \" + pez.getCodigo());\r\n\r\n break;\r\n case 2: //read pez\r\n System.out.println(\" \");\r\n System.out.println(\" LEYENDO... \");\r\n System.out.println(\"Ingrese el codigo del pez\");\r\n int cod = leer.nextInt();\r\n\r\n System.out.println(\" \");\r\n //Imprimiendo el objeto \r\n System.out.println(pezCon.read(cod));\r\n\r\n break;\r\n case 3://update pez\r\n Pez pezU = new Pez();\r\n System.out.println(\" \");\r\n System.out.println(\" Ingrese el codigo del pez a modificar\");\r\n pezU.setCodigo(leer.nextInt());\r\n\r\n pezCon.update(pezU);\r\n\r\n System.out.println(\" ACTUALIZANDO...\");\r\n System.out.println(\" Ingrese nombre\");\r\n pezU.setNombre(leer.nextLine());\r\n pezU.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n pezU.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingrese el sexo\");\r\n pezU.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese el tipo de pez\");\r\n pezU.setTipoPez(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de esqueleto \");\r\n pezU.setTipoEsqueleto(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n pezU.setTamaño(leer.nextDouble());\r\n System.out.println(\"Ingrese el peso\");\r\n pezU.setPeso(leer.nextDouble());\r\n\r\n System.out.println(\" Los datos se han actualizado correctamente\");\r\n\r\n break;\r\n case 4://delete pez\r\n\r\n Pez pezD = new Pez();\r\n System.out.println(\" ELIMINANDO...\");\r\n System.out.println(\" Ingrese el codigo\");\r\n pezD.setCodigo(leer.nextInt());\r\n\r\n pezCon.delete(pezD);\r\n System.out.println(\" Se ha eliminado el pez de codigo \" + pezD.getCodigo());\r\n\r\n break;\r\n case 5://list pez\r\n System.out.println(\" LISTANDO...\");\r\n pezCon.imprimir();\r\n\r\n break;\r\n\r\n }\r\n System.out.println(\" \");\r\n System.out.println(\" Continuar en la clase PEZ= 1.Si 2.No\");\r\n opP = leer.nextInt();\r\n } while (opP != 2);\r\n break;\r\n\r\n case 3: //CRUD de la clase hija 3 y ademas el CRUD\r\n do {\r\n System.out.println(\" ►► Ave ◄◄\");\r\n System.out.println(\"1. CREATE \");\r\n System.out.println(\"2. READ \");\r\n System.out.println(\"3. UPDATE \");\r\n System.out.println(\"4. DELETE \");\r\n System.out.println(\"5. LIST \");\r\n System.out.println(\"6. REGRESAR \");\r\n\r\n opA = leer.nextInt();\r\n\r\n switch (opA) {\r\n case 1://create ave\r\n Ave ave = new Ave();\r\n System.out.println(\" CREANDO...\");\r\n System.out.println(\" Ingrese el nombre\");\r\n ave.setNombre(leer.nextLine());\r\n ave.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n ave.setTipoAnimal(leer.nextLine());\r\n System.out.println(\"Ingrese el sexo\");\r\n ave.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese color de plumaje\");\r\n ave.setColorPlumaje(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de ave\");\r\n ave.setTipoAve(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n ave.setTamaño(leer.nextInt());\r\n System.out.println(\"Ingrese el tiempo de gestacion\");\r\n ave.setTiempoGest(leer.nextLine());\r\n ave.setTiempoGest(leer.nextLine());\r\n\r\n aveCon.create(ave);\r\n System.out.println(\"Se ha creado el ave \" + ave.getNombre()\r\n + \" con el codigo\" + ave.getCodigo());\r\n\r\n break;\r\n\r\n case 2://read ave\r\n System.out.println(\" \");\r\n System.out.println(\"LEYENDO...\");\r\n System.out.println(\" Ingrese el codigo del ave\");\r\n int codA = leer.nextInt();\r\n\r\n System.out.println(aveCon.read(codA));\r\n break;\r\n\r\n case 3://update ave\r\n Ave aveU = new Ave();\r\n System.out.println(\" \");\r\n System.out.println(\" Ingrese el nombre del ave a modificar\");\r\n aveU.setNombre(leer.nextLine());\r\n aveU.setNombre(leer.nextLine());\r\n \r\n aveCon.update(aveU);\r\n\r\n System.out.println(\" ACTUALIZANDO...\");\r\n System.out.println(\" Ingrese el nombre\");\r\n aveU.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n aveU.setTipoAnimal(leer.nextLine());\r\n System.out.println(\"Ingrese el sexo\");\r\n aveU.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese color de plumaje\");\r\n aveU.setColorPlumaje(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de ave\");\r\n aveU.setTipoAve(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n aveU.setTamaño(leer.nextInt());\r\n System.out.println(\"Ingrese el tiempo de gestacion\");\r\n aveU.setTiempoGest(leer.nextLine());\r\n aveU.setTiempoGest(leer.nextLine());\r\n \r\n aveCon.update(aveU);\r\n\r\n System.out.println(\"Se han actualizado los datos correctamente\");\r\n break;\r\n\r\n case 4://delete ave\r\n Ave aveD = new Ave();\r\n System.out.println(\" \");\r\n System.out.println(\"ELIMINANDO...\");\r\n System.out.println(\"Ingrese el codigo del ave\");\r\n aveD.setCodigo(leer.nextInt());\r\n\r\n aveCon.delete(aveD);\r\n System.out.println(\" Se ha eliminado el ave de codigo \" + aveD.getCodigo());\r\n break;\r\n\r\n case 5://list todos los objetos creados.\r\n System.out.println(\" LISTANDO...\");\r\n aveCon.imprimir();\r\n break;\r\n }\r\n System.out.println(\" \");\r\n System.out.println(\" Continuar en la clase Ave= 1.Si 2.No\");\r\n opA = leer.nextInt();\r\n } while (opA != 2);\r\n\r\n //case 4:\r\n }\r\n\r\n } while (op != 5);\r\n\r\n }", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "public void insere (String nome)\n {\n //TODO\n }", "public void inicializarOrdenDeCorte(OrdenDeCorte oc);", "public void AdicionaCampusFinal(String nomeCampus) {\n\t\tif (inicio == null) {\n\t\t\tCampusModel campus = new CampusModel(nomeCampus);\n\t\t\tinicio = campus;\n\t\t} else {\n\t\t\tCampusModel aux = inicio;\n\t\t\taux = FinalInserir(inicio);\n\t\t\tCampusModel campus = new CampusModel(nomeCampus);\n\t\t\taux.setProx(campus);\n\t\t}\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}" ]
[ "0.6051628", "0.6051628", "0.60360235", "0.59618753", "0.5816732", "0.57871044", "0.57131", "0.57069147", "0.56934136", "0.56933534", "0.5693015", "0.56731004", "0.56582683", "0.56429315", "0.557769", "0.5543524", "0.5542989", "0.55304337", "0.5529918", "0.55269516", "0.55204546", "0.55170304", "0.55134654", "0.5511057", "0.550168", "0.5493957", "0.54881305", "0.5487322", "0.5460741", "0.54491025", "0.54376453", "0.5412953", "0.5408852", "0.5407928", "0.5404415", "0.5404371", "0.5390483", "0.5383517", "0.5376308", "0.53760636", "0.537419", "0.537253", "0.53624636", "0.5356752", "0.5354213", "0.53477544", "0.534311", "0.5340187", "0.532655", "0.5323647", "0.53222936", "0.53154016", "0.53092134", "0.53031284", "0.52969", "0.5296032", "0.5293857", "0.5289804", "0.52869725", "0.5284156", "0.5283127", "0.5282462", "0.52780753", "0.5276003", "0.52755505", "0.52735335", "0.52713007", "0.5266645", "0.5264989", "0.52485615", "0.5244003", "0.52402514", "0.5237489", "0.52298063", "0.5229303", "0.52261126", "0.5225702", "0.52241707", "0.5220122", "0.5215231", "0.5213504", "0.5213213", "0.52101547", "0.5209528", "0.5203401", "0.5203336", "0.52027935", "0.5202052", "0.51983696", "0.51980764", "0.51972973", "0.51956385", "0.51900685", "0.5189174", "0.51856774", "0.51848054", "0.5184634", "0.5182944", "0.5178483", "0.51777816", "0.51743627" ]
0.0
-1
/ metodo: AplicaOperacao objeetivo: realizar a operacao de acordo com "op"
public Automato aplicaOperacao(Automato a, Automato b, Character op){ Automato r = new Automato(); switch (op) { case '*': r = Operacao.estrela(a); break; case '.': r = Operacao.concatencao(a, b); break; case '+': r = Operacao.uniao(a, b); break; default: r = simples(op); break; } return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOp(String op) {\n this.op = op;\n }", "public void setOper(String oper) {\n this.oper = oper;\n }", "public String operator( String op);", "Operations operations();", "public void setOperation(String op) {this.operation = op;}", "abstract String getOp();", "public void setOp(Operator op) {\n this.op = op;\n }", "String getOp();", "String getOp();", "String getOp();", "private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }", "public void setOp(int op) {\n\t\tthis.op = op;\n\t}", "public String getOper() {\n return oper;\n }", "public int operation(int number1,int number2,String operator)", "Operator.Type getOperation();", "public void operacao();", "public String getOp() {\n return op;\n }", "public String getOp() {\n return op;\n }", "public Operator getOp() {\n return op;\n }", "public int getOp() {\n\t\treturn op;\n\t}", "static BinaryOperator<SibillaValue> getOperator(String op) {\n if (op.equals(\"+\")) {return SibillaValue::sum;}\n if (op.equals(\"-\")) {return SibillaValue::sub; }\n if (op.equals(\"%\")) {return SibillaValue::mod; }\n if (op.equals(\"*\")) {return SibillaValue::mul; }\n if (op.equals(\"/\")) {return SibillaValue::div; }\n if (op.equals(\"//\")) {return SibillaValue::zeroDiv; }\n return (x,y) -> SibillaValue.ERROR_VALUE;\n }", "String getOperation();", "String getOperation();", "public int TipoOpera(String operacion) {\r\n\t\tswitch (operacion) {\r\n\t\tcase \"+\": {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tcase \"-\": {\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\tcase \"*\": {\r\n\t\t\treturn 3;\r\n\t\t}\r\n\t\tcase \"/\": {\r\n\t\t\treturn 4;\r\n\t\t}\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operación no leída\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private void addOp(final Op op) {\n result.add(op);\n }", "String getOr_op();", "Object findOperatorNeedCheck();", "public interface Operation{\r\n\tpublic void operate(Integer[] a);\r\n\tpublic String getOperationName();\r\n}", "public char getOper(){\n\t\treturn oper;\n\t}", "public Command createOperationCommand(int operator, Operand operand1, Operand operand2);", "public interface Operacion {\n\n /**\n * Metodo que evalua el valor de un nodo del arbol, calculando su valor recorriendo a todos sus\n * hijos\n */\n Hojas eval();\n void agregar(Operacion op);\n Boolean isBin();\n}", "public Operator operator() {\n\treturn this.op;\n }", "@Override\n public void alRechazarOperacion() {\n }", "public void setOp(String op) {\n this.op = op == null ? null : op.trim();\n }", "boolean isOp();", "public String getOperation();", "String getOperator();", "public String operate() {\r\n\r\n\t\t// Logger log = Logger.getLogger(IterationFactory.class);\r\n\t\tDecimalFormat form = new DecimalFormat(\"0.0000\");\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tOperationFactory operateF;\r\n\t\tList<Integer> valueList;\r\n\r\n\t\tIterator<String> inputItr = this.getInputList().iterator();\r\n\r\n\t\tIterator<Character> opItr = this.getOperator().iterator();\r\n\r\n\t\ttry {\r\n\t\t\t/* Domain check */\r\n\t\t\tif (this.getInputList().size() <= 1 && this.getInputList().size() >= 10) {\r\n\t\t\t\tthrow new ValuePairOutOfLimit(this.getInputList().size());\r\n\t\t\t}\r\n\r\n\t\t\twhile (inputItr.hasNext()) {\r\n\r\n\t\t\t\t/* To get individual operands from operand sets */\r\n\t\t\t\tvalueList = u.toValueList(inputItr.next());\r\n\t\t\t\tIterator<Integer> valItr = valueList.iterator();\r\n\r\n\t\t\t\t/* Check for validity of operands and string format */\r\n\t\t\t\tif (valueList.size() < Constant.TWO)\r\n\t\t\t\t\tthrow new OperandException();\r\n\t\t\t\tif (valueList.size() > Constant.TWO)\r\n\t\t\t\t\tthrow new StringFormatException();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * If there is empty operator string default operator sets to\r\n\t\t\t\t * plus\r\n\t\t\t\t */\r\n\t\t\t\tif (operator.size() == 0)\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), Constant.PLUS);\r\n\t\t\t\telse\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), opItr.next());\r\n\r\n\t\t\t\t/* Output */\r\n\t\t\t\tsb.append(operateF.getmOp().getmOperand1() + operateF.getmOp().getmWord()\r\n\t\t\t\t\t\t+ operateF.getmOp().getmOperand2() + \" = \" + form.format(operateF.operate()) + \"\\n\");\r\n\r\n\t\t\t\t/*To reset operator iterator.*/\r\n\t\t\t\tif (!opItr.hasNext())\r\n\t\t\t\t\topItr = this.getOperator().iterator();\r\n\t\t\t}\r\n\t\t} catch (IntegerOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (InvalidOperator e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (OperandException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (StringFormatException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (ValuePairOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "Operation getOperation();", "Unary operator(Operator o);", "private static double operate(Double a, Double b, String op){\n\t switch (op){\r\n\t case \"+\": return Double.valueOf(a) + Double.valueOf(b);\r\n\t case \"-\": return Double.valueOf(a) - Double.valueOf(b);\r\n\t case \"*\": return Double.valueOf(a) * Double.valueOf(b);\r\n\t case \"/\": try{\r\n\t return Double.valueOf(a) / Double.valueOf(b);\r\n\t }catch (Exception e){\r\n\t e.getMessage();\r\n\t }\r\n\t default: return -1;\r\n\t }\r\n\t }", "protected void operation(String op) {\n \tint value;\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tint second = stack.pop();\n \t // handles when only one value in stack\n \t\tif (stack.empty()) {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tstack.push(second);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tcurrent = second *-1;\n \t\t\t\tstack.push(current);\n \t\t\t\tshow(stack.peek());\n \t\t\t\tcurrent = 0;\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t}\n \t // handles the other cases\n \t\telse {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tvalue = second + stack.pop();\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tvalue = stack.pop() - second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tvalue = stack.pop() * second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tvalue = stack.pop() / second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t}\n \t}\n }", "private int calcula(int op,int a, int b){\n \n switch (op) {\n case 0: \n return a+b;\n case 1: \n return a-b;\n case 2: \n return a*b;\n case 3: \n return a/b;\n default: \n return 0;\n }\n \n }", "public java.lang.Integer getOperator() throws java.rmi.RemoteException;", "java.lang.String getOperator();", "public String getOperation() {return operation;}", "private void addOp(Class op){\n try {\n //Create a new instance and add it to the list\n Operation operation = (Operation)op.newInstance();\n operations.put(operation.getTextualRepresentation(), operation);\n } catch (InstantiationException | IllegalAccessException ex) {\n Logger.getLogger(RPC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void addOperator(Operator op) {\r\n\t\telements.add(op);\r\n\t}", "private int operation(int b, char op, int a) {\n switch (op) {\n case '+': return a + b;\n case '-': return a - b;\n case '*': return a * b;\n case '/': return a / b; //assume b is not 0\n }\n return 0;\n }", "public double operation( String a, String b, String o){\n switch (o){\n case \"+\": return Double.valueOf(a) + Double.valueOf(b);\n case \"-\": return Double.valueOf(a) - Double.valueOf(b);\n case \"x\": return Double.valueOf(a) * Double.valueOf(b);\n case \"÷\":try{\n return Double.valueOf(a) / Double.valueOf(b);\n }catch (Exception e){\n Log.e(\"calc\",e.getMessage());\n }\n\n default: return -1;\n }\n }", "public Operation getOperation();", "public void setOperation (String Operation);", "public int executeOperation(){\n\t\tswitch (operation){\n\t\tcase 1: \n\t\t\treturn var1 + var2;\n\t\tcase 2: \n\t\t\treturn var1 - var2;\n\t\tcase 3: \n\t\t\treturn var1 * var2;\n\t\tcase 4: \n\t\t\treturn var1 / var2;\n\t\t default:\n\t\t\treturn 0;\n\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public Double realizaroperacionesunavariable (ArrayList <String> funcion) {\n\n\t\t//mientras en la funcion hayan mas de dos numeros para operar\n\t\twhile(funcion.size()>=2) {\n\n\t\t\t//separar por token penultima posicion del arraylist\n\t\t\tStringTokenizer tokens = new StringTokenizer(funcion.get(funcion.size()-2));\n\t\t\tStringTokenizer tokens2 = new StringTokenizer(funcion.get(funcion.size()-1));\n\n\t\t\t//obtener signo de token de penultima operacion\n\t\t\tString tokensignosoperacion = tokens.nextToken();\n\n\t\t\t//omitir simbolo de operacion del ultimo token\n\t\t\ttokens2.nextToken();\n\n\t\t\t//obtener el valor del ultimo token\n\t\t\tString siguientetoken2= tokens2.nextToken();\n\n\n\n\t\t\twhile (tokens.hasMoreTokens()) {\n\n\t\t\t\tString siguientetoken = tokens.nextToken();\n\n\t\t\t\t//Chequear si el siguiente token para saber si es otra operacion, si lo es empezar a realizar calculos\n\t\t\t\tif (siguientetoken.equals(\"+\")|| siguientetoken.equals(\"-\")|| siguientetoken.equals(\"*\")|| siguientetoken.equals(\"/\")) {\n\t\t\t\t\ttokensignosoperacion = siguientetoken;\n\t\t\t\t}\n\t\t\t\t//realizar operacion si es suma\n\t\t\t\tif (tokensignosoperacion.equals(\"+\")) {\n\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) + Double.parseDouble(siguientetoken2) ;\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es resta\n\t\t\t\tif (tokensignosoperacion.equals(\"-\")) {\n\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken)- Double.parseDouble(siguientetoken2);\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es multiplicacion\n\t\t\t\tif (tokensignosoperacion.equals(\"*\")) {\n\t\t\t\t\t//darle el valor de 1 para que la primera multiplicacion no sea 0\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) * Double.parseDouble(siguientetoken2);\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es division\n\t\t\t\tif (tokensignosoperacion.equals(\"/\")) {\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) / Double.parseDouble(siguientetoken2);\n\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\tcalculounavariable.set(funcion.size()-2 ,tokensignosoperacion + \" \"+String.valueOf(resultadocalculosperaciones));\n\t\t\t\tfuncion.remove(funcion.size()-1);\n\t\t\t\tcontadororden++;\n\t\t\t\tcontadorespacios=0;\n\n\t\t\t}\n\n\n\t\t}\n\t\tif(calculounavariable !=null) {\n\t\t\tcalculounavariable.clear();\n\t\t}\n\t//\tponer el valor de los resultados en 0 por si se ingresara una nueva\n\t\tdouble resultadocalculosperaciones2 = resultadocalculosperaciones;\n\t\tresultadocalculosperaciones=0;\n\t\treturn resultadocalculosperaciones2;\n\n\t}", "@Override\n public String toString() {\n return op.toString();\n }", "public RelationalOp getOp() {\n\t\treturn op;\n\t}", "public String getOperador() {\n\t\treturn operador;\n\t}", "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "Operator operator();", "protected Container2OperationEvaluator(Container2Operation op) {\r\n this.op = op;\r\n }", "private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }", "public void setOperator(int opr) {\n this.operator = opr;\n }", "private void deleteOperacion(Operacion op){\r\n\t\t\r\n\t\tfor(Categoria cat:op.getLstCategorias())\r\n\t\t\tcat.getLstOperaciones().remove(op);\r\n\t\t\r\n\t\toperacionDao.delete(op.getIdOperacion());\r\n\t}", "public abstract void operation();", "public TypeOperation getOperation(int typeOp){\n for (int i=0; i<tabTypeOp.length; i++){\n if (tabTypeOp[i].getType() == typeOp)\n return tabTypeOp[i];\n }\n return null;\n }", "public GraphNode addOperation(String op){\n\t\tGraphNode opVar = new GraphNode(addElement(op, 3), 3);\n\t\tauthGraph.addVertex(opVar);\n\t\treturn opVar;\n\t}", "public static Object compute(OpUnary op, Object value) {\n\t\tswitch (op) {\n\t\tcase BITNOT:\n\t\t\treturn ValueUtil.not(value);\n\t\tcase LOGIC_NOT:\n\t\t\treturn ValueUtil.logicNot(value);\n\t\tcase MINUS:\n\t\t\treturn ValueUtil.negate(value);\n\t\tcase NUM_ELTS:\n\t\t\treturn ValueUtil.length(value);\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}", "OperationCallExp createOperationCallExp();", "public interface Operation {\n int operate(int args1, int args2);\n}", "public void setOpr(Integer opr) {\n this.opr = opr;\n }", "private String getOpossiteOperation(String operation) {\n StringBuilder newOperation = new StringBuilder();\n for (int i = 0; i < operation.length(); i++) { \n if (i+2 <= operation.length()) {\n StringBuilder sb = new StringBuilder();\n sb.append(operation.charAt(i));\n sb.append(operation.charAt(i+1));\n String op = sb.toString();\n if (this.opposites.containsKey(op)) {\n newOperation.append(this.opposites.get(op));\n i++;\n } else if (this.opposites.containsKey(String.valueOf(operation.charAt(i)))) {\n newOperation.append(this.opposites.get(String.valueOf(operation.charAt(i))));\n } else if (Arrays.asList(this.operators_logical).contains(op)) {\n newOperation.append(op);\n i++;\n } else {\n newOperation.append(operation.charAt(i));\n }\n } else{ //Last character\n newOperation.append(operation.charAt(i));\n } \n }\n return newOperation.toString();\n }", "public void or (int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)){ // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 =this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)){ // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n }\n }", "public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }", "public String getOperation() {\n return this.operation;\n }", "protected T operation(final String operatorName, final List<T> elements) {\n Operation<T> operation = registry.getElement(operatorName);\n Assert.notNull(operation, \"Unknown operation: \" + operatorName);\n LOGGER.debug(\"{} {} elements\", operation.getKey(), elements.size());\n return operation.calculate(elements);\n }", "private void Operation(String operator, String x, String y){\n\t\tswitch(operator){\r\n\t\t\tcase \"+\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + addition(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"-\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + substraction(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"*\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + multiplication(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"/\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + division(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\tnotOperation = true;\r\n\r\n\t\t}\r\n\t}", "public SegmentaoOperacao getOperation() {\r\n\t\treturn operation;\r\n\t}", "public interface Operation {\n\tdouble evaluate(double x, double y);\n}", "OpList createOpList();", "@WebMethod(operationName = \"operaciones\")\n public String operaciones(@WebParam(name = \"Num1\") String NumUno,\n @WebParam(name = \"Num2\") String NumDos,\n @WebParam(name = \"Operacion\") String Oper) \n {\n String resultado=\"\";\n int Numero1=Integer.parseInt(NumUno);\n int Numero2=Integer.parseInt(NumDos);\n switch(Oper){\n case \"Suma\":\n resultado=\"\"+(Numero1+Numero2);\n break;\n case \"Resta\":\n resultado=\"\"+(Numero1-Numero2);\n break;\n case \"Division\":\n resultado=\"\"+(Numero1/Numero2);\n break;\n case \"Multiplicacion\":\n resultado=\"\"+(Numero1*Numero2);\n }\n return resultado;\n }", "public interface Operation {\n}", "public static void run_op(int formact) {\n switch (formact) {\n case 2:\n switch (op.toInt()) {\n case 144: //case ADDR\n addr(select_reg(r1), select_reg(r2));\n break;\n case 4: //case CLEAR\n clear(select_reg(r1));\n break;\n case 160: //case COMPR\n compr(select_reg(r1), select_reg(r2));\n break;\n case 156: //case DIVR\n divr(select_reg(r1), select_reg(r2));\n break;\n case 152: //case MULR\n mulr(select_reg(r1), select_reg(r2));\n break;\n case 172: //case RMO\n rmo(select_reg(r1), select_reg(r2));\n break;\n case 164: //case SHIFTL\n shiftl(select_reg(r1), r2.toInt());\n break;\n case 168: //case SHIFTR\n shiftr(select_reg(r1), r2.toInt());\n break;\n case 148: //case SUBR\n subr(select_reg(r1), select_reg(r2));\n break;\n case 184: //case TIXR\n tixr(select_reg(r1));\n break;\n }\n break;\n case 3:\n case 4:\n switch (op.toInt()) {\n case 24: //case ADD\n add(address.toInt());\n break;\n case 64: //case AND\n and(address.toInt());\n break;\n case 40: //case COMP\n comp(address.toInt());\n break;\n case 36: //case DIV\n div(address.toInt());\n break;\n case 60: //case J\n j(address.toInt());\n break;\n case 48: //case JEQ\n jeq(address.toInt());\n break;\n case 52: //case JGT\n jgt(address.toInt());\n break;\n case 56: //case JLT\n jlt(address.toInt());\n break;\n case 72: //case JSUB\n jsub(address.toInt());\n break;\n case 0: //case LDA\n lda(address.toInt());\n break;\n case 104: //case LDB\n ldb(address.toInt());\n break;\n case 80: //case LDCH\n ldch(address.toInt());\n break;\n case 8: //case LDL\n ldl(address.toInt());\n break;\n case 108: //case LDS\n lds(address.toInt());\n break;\n case 116: //case LDT\n ldt(address.toInt());\n break;\n case 4: //case LDX\n ldx(address.toInt());\n break;\n case 32: //case MUL\n mul(address.toInt());\n break;\n case 68: //case OR\n or(address.toInt());\n break;\n case 76: //case RSUB\n rsub();\n break;\n case 12: //case STA\n sta(address.toInt(), formact);\n break;\n case 120: //case STB\n stb(address.toInt(), formact);\n break;\n case 84: //case STCH\n stch(address.toInt(), formact);\n break;\n case 20: //case STL\n stl(address.toInt(), formact);\n break;\n case 124: //case STS\n sts(address.toInt(), formact);\n break;\n case 132: //case STT\n stt(address.toInt(), formact);\n break;\n case 16: //case STX\n stx(address.toInt(), formact);\n break;\n case 28: //case SUB\n sub(address.toInt());\n break;\n case 44: //case TIX\n tix(address.toInt());\n break;\n }\n }\n }", "public void setOperation (String operation) {\n this.operation = operation;\n }", "public void setOperation (String operation) {\n this.operation = operation;\n }", "public interface Operator {\n /**\n * String literal to enter operator\n * @return\n */\n String getKey();\n\n void execute(EvaluatedParameters evaluatedParameters) throws ProcessorException;\n}", "int getOperationValue();", "public Binary operator(Operator op) {\n\tBinary_c n = (Binary_c) copy();\n\tn.op = op;\n\treturn n;\n }", "public interface Operation {\n String description();\n void command();\n}", "public Operacion obtenerOperacion(int id){\n return historialOperaciones.get(id);\n }", "Operacion createOperacion();", "InOper createInOper();", "public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}", "private static boolean validOperation(String op) {\n\t\tfor (String goodOp : validOps) {\n\t\t\tif (goodOp.equalsIgnoreCase(op)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@WebMethod(operationName = \"calc\")\n public double aeroport(@WebParam(name = \"n1\") double n1,@WebParam(name = \"n2\") double n2,@WebParam(name = \"operation\") String op) {\n double res;\n \n switch(op){\n case \"+\":\n res = n1 + n2;\n break;\n case \"-\":\n res = n1 - n2;\n break;\n case \"*\":\n res = n1 * n2;\n break;\n case \"/\":\n res = n1 / n2;\n break;\n default:\n res=0;\n }\n return res;\n }", "private int getPrio(int op){\n return ((Integer)opPrio.get(new Integer(op))).intValue();\n }", "protected void send(O operation)\n {\n }", "public void setOperator(String operator) {\n this.operator = operator;\n }", "public Operator getOperator() {\n return this.operator;\n }", "private double operation(char operand, double num1, double num2){\r\n\t\t\tdouble result;\r\n\t\t\tCalculatorImpl ci = new CalculatorImpl();\r\n\t\t\tswitch(operand){\r\n\t\t\tcase PLUS : result = ci.getAddition(num1, num2);break;\r\n\t\t\tcase MINUS : result = ci.getSubtraction(num1, num2);break;\r\n\t\t\tcase MULTI : result = ci.getMultification(num1, num2);break;\r\n\t\t\tcase DIVIDE : result = ci.getDivision(num1, num2);break;\r\n\t\t\tdefault : result=0.0;break;\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t}" ]
[ "0.75345546", "0.7523616", "0.75118273", "0.74885964", "0.74491245", "0.73852146", "0.7372668", "0.73400515", "0.73400515", "0.73400515", "0.7296722", "0.726213", "0.7220014", "0.7211754", "0.71405125", "0.7112418", "0.70828444", "0.70828444", "0.7055393", "0.69602334", "0.6731883", "0.673116", "0.673116", "0.6689889", "0.6686353", "0.66860646", "0.66463065", "0.66422075", "0.66372466", "0.6615726", "0.6606594", "0.6572358", "0.6564495", "0.65588444", "0.6556319", "0.6537863", "0.65308684", "0.6511203", "0.6485507", "0.646885", "0.64652604", "0.64470273", "0.6439514", "0.6432899", "0.6424722", "0.64069676", "0.6405701", "0.6386856", "0.6380087", "0.6365664", "0.6361251", "0.6344988", "0.63384026", "0.63213617", "0.6318053", "0.6316901", "0.6314948", "0.6299634", "0.6295224", "0.6282297", "0.62797236", "0.6275771", "0.62657684", "0.6250445", "0.6246018", "0.62318724", "0.6226074", "0.6220728", "0.62203413", "0.6216707", "0.62019515", "0.6200636", "0.6197092", "0.61748135", "0.6165656", "0.61618274", "0.61551124", "0.6140416", "0.61365265", "0.61310184", "0.612701", "0.6125858", "0.612067", "0.61101145", "0.61101145", "0.6106047", "0.61008275", "0.6094583", "0.60835266", "0.60815644", "0.6071094", "0.6069277", "0.60453856", "0.60449016", "0.60320985", "0.6028433", "0.60233325", "0.60074407", "0.5998649", "0.59978" ]
0.72904223
11
/ metodo: Montar objetivo: montar uma String com os IDs dos Estados
public String montar(ArrayList<Estado> e){ String data = ""; Iterator<Estado> it = e.iterator(); while(it.hasNext()){ Estado a = it.next(); data += a.getId(); } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String[] getStringBasedOnCoordinate(String idNames, String[] id_to_coord_list){\n String[] subID = idNames.split(\"\\\\n\");\n String[] string_of_id = new String[subID.length-1];\n for(int i=1; i< subID.length; i++){\n string_of_id[i-1] = id_to_coord_list[Integer.parseInt(subID[i])-1];\n }\n return string_of_id;\n }", "String[] _truncatable_ids();", "private String convertToID(String originalTree) {\n\tString result = new String(originalTree);\n\tfor (int i = 0; i < noTax; i++) {\n\t int indx = result.indexOf(taxa[i] + \")\");\n\t if (indx == -1) {\n\t\tindx = result.indexOf(taxa[i] + \",\");\n\t }\n\t try{\n\t\tresult = result.substring(0, indx) + i + \n\t\t result.substring(indx + taxa[i].length(), result.length());\n\t } catch (Exception e) {\n\t\tSystem.out.println(\"Error in replacing\\n\" + taxa[i] +\n\t\t\t\t \"\\n in \" + result);\n\t\tSystem.exit(-1);\n\t }\n\t}\n\treturn result;\n }", "String gini_GetEntityID(int ent_id) {\n String name;\n switch (ent_id) {\n case 2:\n name = \"Miscellaneous\";\n break;\n case 3:\n name = \"JERS\";\n break;\n case 4:\n name = \"ERS/QuikSCAT/Scatterometer\";\n break;\n case 5:\n name = \"POES/NPOESS\";\n break;\n case 6:\n name = \"Composite\";\n break;\n case 7:\n name = \"DMSP satellite Image\";\n break;\n case 8:\n name = \"GMS satellite Image\";\n break;\n case 9:\n name = \"METEOSAT satellite Image\";\n break;\n case 10:\n name = \"GOES-7 satellite Image\";\n break;\n case 11:\n name = \"GOES-8 satellite Image\";\n break;\n case 12:\n name = \"GOES-9 satellite Image\";\n break;\n case 13:\n name = \"GOES-10 satellite Image\";\n break;\n case 14:\n name = \"GOES-11 satellite Image\";\n break;\n case 15:\n name = \"GOES-12 satellite Image\";\n break;\n case 16:\n name = \"GOES-13 satellite Image\";\n break;\n case 17:\n name = \"GOES-14 satellite Image\";\n break;\n case 18:\n name = \"GOES-15 satellite Image\";\n break;\n case 19: // GOES-R\n name = \"GOES-16 satellite Image\";\n break;\n case 99: // special snowflake GEMPAK Composite Images generated by Unidata\n name = \"RADAR-MOSIAC Composite Image\";\n break;\n default:\n name = \"Unknown\";\n }\n\n return name;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "public static String[] obtenerIds() throws IOException{\n\t\tint numOfLines=countLines(HOSPITALES_DATA_FILE) ;\n\t String[] idsArr = new String[numOfLines];\n\t BufferedReader fileReader = null;\n fileReader = new BufferedReader(new FileReader(HOSPITALES_DATA_FILE));\n String line = \"\";\n int counter = 0;\n while ((line = fileReader.readLine()) != null)\n {\n String[] tokens = line.split(DELIMITER);\n \n idsArr[counter] = tokens[0];\n counter++;\n }\t\t\t\n fileReader.close();\n\t\treturn idsArr; \n\t}", "public interface IDs {\n\n static final String SERIES_STANDARD_ID = \"c7fb8441-d5db-4113-8af0-e4ba0c3f51fd\";\n static final String EPISODE_STANDARD_ID = \"a99a8588-93df-4811-8403-fe22c70fa00a\";\n static final String FILE_STANDARD_ID = \"c5919cbf-fbf3-4250-96e6-3fefae51ffc5\";\n static final String RECORDING_STANDARD_ID = \"4a40811d-c067-467f-8ff6-89f37eddb933\";\n static final String ZAP2IT_STANDARD_ID = \"545c4b00-5409-4d92-9cda-59a44f0ec7a9\";\n}", "public static String getIdBeneficio(){\n //La Clase Math tiene varios metodos que te ayudaran\n //Escoger numero aleatorio entre 100000 y 1\n int idrandom1 = (int) (Math.random() * 1000000 + 1);\n\n String idrandom = Integer.toString(idrandom1);\n\n return idrandom;\n }", "public String getString_entries_id() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,11)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_entries_id(i) == (char)0) break;\n carr[i] = (char)getElement_entries_id(i);\n }\n return new String(carr,0,i);\n }", "private Object saveGivens() {\n List<String> out = new ArrayList<>();\n for(UUID id : givenEmpty) {\n out.add(id.toString());\n }\n return out;\n }", "io.dstore.values.StringValue getPersonCharacteristicIds();", "private String getIds(List<UserTO> userList) {\r\n\t\tSet<String> idSet = new HashSet<String>();\r\n\t\tfor (UserTO user : userList) {\r\n\t\t\tidSet.add(user.getOrgNodeId());\r\n\t\t\tif (null != user.getOrgNodeCodePath()) {\r\n\t\t\t\tString[] orgHierarchy = user.getOrgNodeCodePath().split(\"~\");\r\n\t\t\t\tSet<String> orgHierarchySet = new HashSet<String>(Arrays.asList(orgHierarchy));\r\n\t\t\t\tidSet.addAll(orgHierarchySet);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString ids = idSet.toString();\r\n\t\tids = ids.substring(1, ids.length() - 1);\r\n\t\treturn ids;\r\n\t}", "@Override\n public String splitId() {\n return splitId(subtaskId);\n }", "List<String> findAllIds();", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}", "private String[] createDvdListWithIds() {\n if (dao.listAll().size() > 0) {\n //create string array set to the size of the dvds that exist\n String[] acceptable = new String[dao.listAll().size()];\n //index counter\n int i = 0;\n //iterate through dvds that exist\n for (DVD currentDVD : dao.listAll()) {\n //at the index set the current Dvd's id, a delimeter, and the title\n acceptable[i] = currentDVD.getId() + \", \" + currentDVD.getTitle();\n //increase the index counter\n i++;\n }\n //return the string array\n return acceptable;\n }\n return null;\n }", "public String generarEstadisticasGenerales(){\n \n String estadisticaGeneral = \"En general en la universidad del valle: \\n\";\n estadisticaGeneral += \"se encuentran: \" + EmpleadosPrioridadAlta.size() + \" empleados en prioridad alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMediaAlta.size() + \" empleados en prioridad media alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMediaAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMedia.size() + \" empleados en prioridad media\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMedia)\n + \"se encuentran: \" + EmpleadosPrioridadBaja.size() + \" empleados en prioridad baja\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadBaja);\n return estadisticaGeneral;\n }", "public static String getDateId() {\n Date date = new Date();\n String dateFormatStyle = \"yy-MM-dd-HH-mm-ss\";\n SimpleDateFormat sdf = new SimpleDateFormat(dateFormatStyle);\n String dateFormat = sdf.format(date);\n String[] formatedDate = dateFormat.split(\"-\");\n int i = 0;\n String year = formatedDate[i];\n String month = formatedDate[++i];\n String cDate = formatedDate[++i];\n String hour = formatedDate[++i];\n String minute = formatedDate[++i];\n String second = formatedDate[++i];\n return alphanum[Integer.parseInt(year)]\n .concat(alphanum[Integer.parseInt(month)])\n .concat(alphanum[Integer.parseInt(cDate)])\n .concat(alphanum[Integer.parseInt(hour)])\n .concat(alphanum[Integer.parseInt(minute)])\n .concat(alphanum[Integer.parseInt(second)]);\n }", "private String addIDsNew(List<Person> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "private ArrayList<String> loadIds() {\n\n\t\tArrayList<String> idArray = new ArrayList<String>();\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = context.openFileInput(SAVE_FILE);\n\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(\n\t\t\t\t\tfileInputStream);\n\t\t\tType listType = new TypeToken<ArrayList<String>>() {\n\t\t\t}.getType();\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tArrayList<String> list = gson.fromJson(inputStreamReader, listType);\n\t\t\tidArray = list;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn idArray;\n\t}", "public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "String idProvider();", "public static String[] datosPorId(String numOfId) throws IOException{\n\t String[] datosPorIdArr = null;\n\t BufferedReader fileReader = null;\n fileReader = new BufferedReader(new FileReader(HOSPITALES_DATA_FILE));\n String line = \"\";\n String[] lineaArr;\n while ((line = fileReader.readLine()) != null)\n {\n \tlineaArr = line.split(DELIMITER);\n \tif (numOfId.equals(lineaArr[0])) {\n \t\tdatosPorIdArr= lineaArr;\n \t}\n }\t\t\t\n fileReader.close();\n\t\treturn datosPorIdArr; \n\t}", "String mo10312id();", "List<String> getMesActivo(Integer idSector);", "int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }", "java.lang.String getDataId();", "java.lang.String getDataId();", "java.lang.String getDataInfoId();", "String getIdNumber();", "public List<Integer> getIdPOIs(String evenement) {\n List<Integer> uniqueIdPOIs = EMPTY_LIST;\n SQLiteDatabase db = openDatabaseSafe();\n if (db != null) {\n String columnName = \"ID_POI\";\n String conditionString = \"ID = \" + this._visiteID + \" AND EVENEMENT = \\\"\" + evenement + \"\\\"\";\n String query = \"Select \" + columnName + \" FROM \" + VISITES_TABLE_NAME + \" WHERE \" + conditionString;\n Cursor cursor = safeQuery(db, query);\n if (cursor != null) {\n List<Integer> idPOIs = POIsDBHandler.queryResultToList(cursor, columnName);\n Set<Integer> idPOIsSet = new HashSet<Integer>(idPOIs); //remove duplicates\n uniqueIdPOIs = new ArrayList<Integer>(idPOIsSet);\n }\n db.close();\n }\n return uniqueIdPOIs;\n }", "public abstract java.lang.String getTica_id();", "private List<Integer> findAllId(EntityManager em) {\n TypedQuery<Permesso> permessoQuery = em.createQuery(\"SELECT c FROM com.hamid.entity.Permesso c\", Permesso.class);\n List<Permesso> permessoRes = permessoQuery.getResultList();\n List<Integer> p_id = new ArrayList<Integer>();\n for (Permesso p : permessoRes) {\n int p_id1 = p.getPermesso_id();\n p_id.add(p_id1);\n }\n return p_id;\n }", "public ArrayList<String> transportLinePathIDs()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<String> line_coordinates_ids = new ArrayList<String>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates_ids.add(stop.getId());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n }\r\n\r\n line_coordinates_ids.add(getStopsMap().get(getStopsMap().size()-1).getId());\r\n return line_coordinates_ids;\r\n }", "public void getIdentifiers() throws IOException{\n okhttp3.Request request = new okhttp3.Request.Builder()\n .url(BASE_URL+\"/reportesList\")\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n try {\n JSONArray reportes = new JSONArray(response.body().string());\n ArrayList<String> reportesText = new ArrayList<String>();\n\n for (int i = 0; i < reportes.length(); i++) {\n JSONObject js = reportes.getJSONObject(i);\n String id = js.getString(\"identificador\");\n reportesText.add(id);\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n });\n\n }", "byte[] getId();", "private ArrayList<String> obtenerIds(ArrayList<String> values){\n\t\tArrayList<String> ids = new ArrayList<>();\n\t\tfor(String valor : values){\n\t\t\tids.add(postresId.get(valor));\n\t\t}\n\t\treturn ids;\n\t}", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "public static LocationId getLocationIds()\n {\n LocationId locnIds = new LocationId();\n IoTGateway.getGlobalStates().forEach(\n (locn,sv)->{\n locnIds.addId(locn);\n }\n );\n return locnIds;\n }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String gini_GetSectorID(int ent_id) {\n String name;\n switch (ent_id) {\n case 0:\n name = \"Northern Hemisphere Composite\";\n break;\n case 1:\n name = \"East CONUS\";\n break;\n case 2:\n name = \"West CONUS\";\n break;\n case 3:\n name = \"Alaska Regional\";\n break;\n case 4:\n name = \"Alaska National\";\n break;\n case 5:\n name = \"Hawaii Regional\";\n break;\n case 6:\n name = \"Hawaii National\";\n break;\n case 7:\n name = \"Puerto Rico Regional\";\n break;\n case 8:\n name = \"Puerto Rico National\";\n break;\n case 9:\n name = \"Supernational\";\n break;\n case 10:\n name = \"NH Composite - Meteosat/GOES E/ GOES W/GMS\";\n break;\n case 11:\n name = \"Central CONUS\";\n break;\n case 12:\n name = \"East Floater\";\n break;\n case 13:\n name = \"West Floater\";\n break;\n case 14:\n name = \"Central Floater\";\n break;\n case 15:\n name = \"Polar Floater\";\n break;\n default:\n name = \"Unknown-ID\";\n }\n\n return name;\n }", "public String[] getComplementoPreguntas(String idPregunta){\n //Creamos el conector de bases de datos\n\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n Cursor consultaId= BasesDeDatos.rawQuery(\"SELECT complemento FROM t_complemento WHERE co_pregunta = \" + idPregunta, null);\n\n String[ ] sComplemento = new String[20];\n try {\n if (consultaId != null) {\n consultaId.moveToFirst();\n int indice = 0;\n\n do {\n //Asignamos el valor en nuestras variables para usarlos en lo que necesitemos\n sComplemento[indice] = consultaId.getString(consultaId.getColumnIndex(\"complemento\"));\n indice ++;\n\n } while ( consultaId.moveToNext() );\n\n\n }else{\n System.out.println( \" ------------- No hay datos ------------------\" );\n System.out.println();\n }\n\n } catch ( Exception e ) {\n System.err.println( e.getClass().getName() + \": \" + e.getMessage() );\n System.exit(0);\n }\n\n consultaId.close();\n BasesDeDatos.close();\n return sComplemento;\n }", "protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}", "@Override\n public String getToID()\n {\n \tStringBuilder sb = new StringBuilder();\n\n\t\tint prefix = getPrefix();\n \tint ident = getIdent1();\n\n \tswitch( IdentType.fromIdent( ident ) )\n \t{\n \t\tcase IPFIXI:\n \t\t\tsb.append( \"INTER-PREFIX\" );\n \t\t\tbreak;\n \t\tcase ALLI:\n \t\t\tsb.append( \"ALL RADIOS\" );\n \t\t\tbreak;\n \t\tcase PABXI:\n \t\t\tsb.append( \"PABX EXT\" );\n \t\t\tbreak;\n \t\tcase PSTNSI1:\n \t\tcase PSTNSI2:\n \t\tcase PSTNSI3:\n \t\tcase PSTNSI4:\n \t\tcase PSTNSI5:\n \t\tcase PSTNSI6:\n \t\tcase PSTNSI7:\n \t\tcase PSTNSI8:\n \t\tcase PSTNSI9:\n \t\tcase PSTNSI10:\n \t\tcase PSTNSI11:\n \t\tcase PSTNSI12:\n \t\tcase PSTNSI13:\n \t\tcase PSTNSI14:\n \t\tcase PSTNSI15:\n \t\t\tsb.append( \"PRE-DEFINED PSTN\" );\n \t\t\tbreak;\n \t\tcase PSTNGI:\n \t\t\tsb.append( \"PSTN GATEWAY\" );\n \t\t\tbreak;\n \t\tcase TSCI:\n \t\t\tsb.append( \"SYSTEM CONTROLLER\" );\n \t\t\tbreak;\n \t\tcase DIVERTI:\n \t\t\tsb.append( \"CALL DIVERT\" );\n \t\t\tbreak;\n \t\tcase USER:\n\t\t\tdefault:\n\t\t\t\tif( prefix != 0 || ident != 0 )\n\t\t\t\t{\n\t \tsb.append( format( prefix, 3 ) );\n\t \tsb.append( \"-\" );\n\t \tsb.append( format( ident, 4) );\n\t\t\t\t}\n \tbreak;\n \t}\n\n \treturn sb.toString();\n }", "public Vector<String> CercaRelDirecta(Integer id,String tipusentitat) throws Exception {\n Vector<Entidad> ve= cg.getGrafo().getRelacion(id,tipusentitat);\r\n Vector<String> vs = new Vector<>(); //canviar a integer\r\n for (int i = 0; i <ve.size() ; i++) {\r\n vs.add(ve.get(i).getNombre());\r\n }\r\n return vs;\r\n }", "long getIds(int index);", "public String getConvertToId();", "public String getDenumireUtilizare(String id) {\n c = db.rawQuery(\"select denumire from utilizare where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "public static HashSet<String> m4388a(Context context) {\n int i = 0;\n HashSet<String> hashSet = new HashSet();\n String str = Build.MODEL;\n Build.BRAND.toLowerCase().trim();\n try {\n String deviceId;\n Class cls;\n Field field;\n int parseInt;\n Field field2;\n String trim;\n Class cls2;\n Method method;\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n if (telephonyManager != null) {\n deviceId = (context.getPackageManager().checkPermission(\"android.permission.READ_PHONE_STATE\", context.getPackageName()) == 0 ? 1 : i) != 0 ? telephonyManager.getDeviceId() : null;\n } else {\n deviceId = null;\n }\n if (deviceId != null && deviceId.indexOf(\"0000000000\") >= 0) {\n deviceId = \"\";\n }\n if (!(deviceId == null || deviceId == \"\")) {\n hashSet.add(deviceId + \"|z1\");\n }\n try {\n int parseInt2;\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n cls = Class.forName(\"com.android.internal.telephony.Phone\");\n try {\n field = cls.getField(\"GEMINI_SIM_1\");\n field.setAccessible(true);\n parseInt = Integer.parseInt(field.get(null).toString());\n field2 = cls.getField(\"GEMINI_SIM_2\");\n field2.setAccessible(true);\n parseInt2 = Integer.parseInt(field2.get(null).toString());\n } catch (Throwable th) {\n parseInt = i;\n parseInt2 = 1;\n }\n Method declaredMethod = TelephonyManager.class.getDeclaredMethod(\"getDeviceIdGemini\", new Class[]{Integer.TYPE});\n trim = ((String) declaredMethod.invoke(telephonyManager, new Object[]{Integer.valueOf(parseInt)})).trim();\n deviceId = ((String) declaredMethod.invoke(telephonyManager, new Object[]{Integer.valueOf(parseInt2)})).trim();\n if (!(hashSet.contains(trim) || trim == null || trim.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim + \"|a1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|a2\");\n }\n } catch (Throwable th2) {\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n cls = Class.forName(\"com.android.internal.telephony.Phone\");\n try {\n field = cls.getField(\"GEMINI_SIM_1\");\n field.setAccessible(true);\n parseInt = Integer.parseInt(field.get(null).toString());\n field2 = cls.getField(\"GEMINI_SIM_2\");\n field2.setAccessible(true);\n i = Integer.parseInt(field2.get(null).toString());\n } catch (Throwable th3) {\n parseInt = i;\n i = 1;\n }\n Method method2 = TelephonyManager.class.getMethod(\"getDefault\", new Class[]{Integer.TYPE});\n TelephonyManager telephonyManager2 = (TelephonyManager) method2.invoke(telephonyManager, new Object[]{Integer.valueOf(parseInt)});\n telephonyManager = (TelephonyManager) method2.invoke(telephonyManager, new Object[]{Integer.valueOf(i)});\n trim = telephonyManager2.getDeviceId().trim();\n deviceId = telephonyManager.getDeviceId().trim();\n if (!(hashSet.contains(trim) || trim == null || trim.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim + \"|b1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|b2\");\n }\n } catch (Throwable th4) {\n }\n try {\n cls2 = Class.forName(\"com.android.internal.telephony.PhoneFactory\");\n deviceId = (String) cls2.getMethod(\"getServiceName\", new Class[]{String.class, Integer.TYPE}).invoke(cls2, new Object[]{\"phone\", Integer.valueOf(1)});\n trim = ((TelephonyManager) context.getSystemService(\"phone\")).getDeviceId().trim();\n deviceId = ((TelephonyManager) context.getSystemService(deviceId)).getDeviceId().trim();\n if (!(hashSet.contains(trim) || trim == null || trim.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim + \"|c1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|c2\");\n }\n } catch (Throwable th5) {\n }\n try {\n cls2 = Class.forName(\"android.telephony.MSimTelephonyManager\");\n Object systemService = context.getSystemService(\"phone_msim\");\n method = cls2.getMethod(\"getDeviceId\", new Class[]{Integer.TYPE});\n String trim2 = ((String) method.invoke(systemService, new Object[]{Integer.valueOf(0)})).trim();\n deviceId = ((String) method.invoke(systemService, new Object[]{Integer.valueOf(1)})).trim();\n if (!(hashSet.contains(trim2) || trim2 == null || trim2.indexOf(\"0000000000\") != -1)) {\n hashSet.add(trim2 + \"|d1\");\n }\n if (!(hashSet.contains(deviceId) || deviceId == null || deviceId.indexOf(\"0000000000\") != -1)) {\n hashSet.add(deviceId + \"|d2\");\n }\n } catch (Throwable th6) {\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n method = Class.forName(\"android.telephony.TelephonyManager\").getMethod(\"getDeviceIdDs\", new Class[]{Integer.TYPE});\n if (method != null) {\n trim = (String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(0)});\n deviceId = (String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(1)});\n if (C1618b.m4389a(trim)) {\n hashSet.add(trim + \"|e1\");\n }\n if (C1618b.m4389a(deviceId)) {\n hashSet.add(deviceId + \"|e2\");\n }\n }\n } catch (Throwable th7) {\n }\n try {\n Method method3;\n if (!(str.contains(\"WP-S\") || str.contains(\"D5012T\") || str.contains(\"K-Touch K3\"))) {\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n telephonyManager.getPhoneType();\n method = telephonyManager.getClass().getMethod(\"getDeviceId\", new Class[]{Integer.TYPE});\n if (method != null) {\n hashSet.add(((String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(0)})) + \"|f1\");\n hashSet.add(((String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(1)})) + \"|f2\");\n hashSet.add(((String) method.invoke(telephonyManager, new Object[]{Integer.valueOf(2)})) + \"|f3\");\n }\n } catch (Throwable th8) {\n }\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone2\");\n method3 = context.getSystemService(\"phone2\").getClass().getMethod(\"getImeiInCDMAGSMPhone\", new Class[0]);\n if (method3 != null) {\n deviceId = method3.invoke(telephonyManager, new Object[0]).toString();\n if (C1618b.m4389a(deviceId)) {\n hashSet.add(deviceId + \"|g1\");\n }\n }\n } catch (Throwable th9) {\n }\n try {\n if (SystemProperties.getInt(\"ro.miui.ui.version.code\", 0) < 5) {\n trim = \"\";\n try {\n IBinder iBinder = (IBinder) Class.forName(\"android.os.ServiceManager\").getMethod(\"getService\", new Class[]{String.class}).invoke(null, new Object[]{\"phone\"});\n Object invoke = Class.forName(\"com.android.internal.telephony.ITelephony$Stub\").getMethod(\"asInterface\", new Class[]{IBinder.class}).invoke(null, new Object[]{iBinder});\n deviceId = invoke.getClass().getMethod(\"getMeid\", new Class[0]).invoke(invoke, new Object[0]).toString();\n } catch (Throwable th10) {\n deviceId = trim;\n }\n if (C1618b.m4389a(deviceId)) {\n hashSet.add(deviceId + \"|h1\");\n }\n }\n } catch (Throwable th11) {\n }\n try {\n telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\n method3 = context.getSystemService(\"phone\").getClass().getMethod(\"getCurrentPhoneType\", new Class[0]);\n if (method3 != null) {\n int intValue = ((Integer) method3.invoke(telephonyManager, new Object[0])).intValue();\n if (intValue != 1 && intValue == 2) {\n deviceId = C1618b.m4387a();\n if (deviceId != null && deviceId.length() > 0) {\n hashSet.add(deviceId + \"|i1\");\n }\n }\n }\n } catch (Throwable th12) {\n }\n try {\n try {\n deviceId = (String) Class.forName(\"com.huawei.android.hwnv.HWNVFuncation\").getMethod(\"getNVMEID\", new Class[0]).invoke(null, new Object[0]);\n } catch (Throwable th13) {\n deviceId = \"\";\n }\n if (!hashSet.contains(deviceId) && deviceId != null && deviceId.length() > 0 && deviceId.indexOf(\"0000000000\") == -1) {\n hashSet.add(deviceId + \"|g1\");\n }\n } catch (Throwable th14) {\n }\n } catch (Throwable th15) {\n }\n } catch (Throwable th16) {\n }\n return hashSet;\n }", "private String addIDatentraegerNew(List<Datentraeger> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "long getNombreElements();", "private static <T extends AbstractApiIdentifiableDTO> List<Long> generateIdList(List<T> idList) {\n List<Long> results = new ArrayList<>(idList.size());\n\n for (T idSingle : idList) {\n results.add(idSingle.getId());\n }\n\n return results;\n }", "Serializable extractId(Object entity);", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "@Override\r\n\tpublic long getNombreOperation(String numCpte) {\n\t\treturn dao.getNombreOperation(numCpte);\r\n\t}" ]
[ "0.544831", "0.54130787", "0.53942096", "0.53289574", "0.52147114", "0.52147114", "0.51953125", "0.51837677", "0.5174083", "0.51612484", "0.5125581", "0.5123759", "0.5112702", "0.5092585", "0.5071873", "0.5050755", "0.5042041", "0.50339377", "0.5014669", "0.4994931", "0.49678227", "0.4961789", "0.4953593", "0.49345285", "0.49185196", "0.49087948", "0.4904371", "0.48888773", "0.4880809", "0.4880809", "0.48777014", "0.48679918", "0.48673394", "0.48660618", "0.4865528", "0.48370373", "0.4828629", "0.4817899", "0.48166332", "0.48096898", "0.4804079", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.47991288", "0.4786231", "0.47862226", "0.47757167", "0.4775337", "0.4770043", "0.47669077", "0.47657388", "0.47586852", "0.47579113", "0.4743812", "0.47422972", "0.47409612", "0.47366434", "0.47352976", "0.4730101", "0.472556" ]
0.6510132
0
/ metodo: Atribur Finais objeetivo: define como final os estado de a que possuem algum ID dos finais.
public void atribuirFinais(Automato a, ArrayList<Estado> finais){ for (int i = 0; i < a.getQ().size(); i++) { Iterator<Estado> it = finais.iterator(); while(it.hasNext()){ Estado e = it.next(); if (a.getQ().get(i).getLabel().contains(e.getLabel())){ a.getF().add(a.getQ().get(i)); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdfilial(){\r\n return idfilial;\r\n }", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "public int elimiarAlInicio(){\n int edad = inicio.edad;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n }\n return edad;\n }", "private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}", "public void agregarAlFinal(int el){\n if(!estVacia()){\n fin=new NodoDoble(el,null,fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public Integer getIdNotaFiscal() {\n return idNotaFiscal;\n }", "public int getIdfuncionario() {\n return idfuncionario;\n }", "public void agregaralfinal(int el){\n if(!estavacia()){\n fin=new nododoble(el, null, fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new nododoble(el);\n }}", "@Override\n\tpublic void setAtoresDoFilme(int idFilme, Iterator<IPessoa> atores) throws SQLException {\n\t\tIFilme filme = this.buscarFilmePorId(idFilme);\n\t\tif(filme!=null)\n\t\t\tfilme.setAtores(atores);\n\t}", "public int getIdFornecedor(){\n\t return idFornecedor;\n\t}", "public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }", "public int getId_anneeScolaire() {return id_anneeScolaire;}", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "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 void setId_anneeScolaire(int id_anneeScolaire) {this.id_anneeScolaire = id_anneeScolaire;}", "public void agregarAlFinal(int edad){\n if(!estaVacia()){\n fin.siguiente = new Nodo(edad);\n fin=fin.siguiente;\n }else{\n fin=inicio = new Nodo(edad);\n }\n }", "public static void actualizarCreencias(int id) {\n\t\tint j =0;\t\t\n\t\t//Actualizamos las creecias del jugador \n\t\tint i =0;\n\t\tfor(j =0; j < GestorPartida.getContJugadores();j++) {\n\t\t\t\n\t\t\t\n\t\t\tif(GestorPartida.getJugadores()[j].getId() != id) {\n\t\t\t\t//Filtramos que los jugadores que vayan a actualizar sus creencias sean los de la sala del jugador que acaba de realizar una accion, excepto las suyas propias\t\t\t\n\t\t\t\tif(GestorPartida.getJugadores()[j].getSala().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala()) && GestorPartida.getJugadores()[j].getId() != id) {\n\t\t\t\t\t//Actualizamos la sala por si el jugador se acaba de mover\n\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setSalaPersona(GestorPartida.getJugadores()[j].getSala(), i);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tfor(j = 0; j < GestorPartida.getContObjetosJugador();j++) {\n\t\t\t//Comprobamos que el jugador coincida con un poseedor de un objeto\n\t\t\tif(GestorPartida.getObjetoJugador()[j].getJugador().getSala().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala())) {\n\t\t\t\tfor(int x =0; GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x]!=null ; x++) {\n\t\t\t\t\t//Cogemos la posicion del objeto donde esta el objeto dentro de las creencias\n\t\t\t\t\tif(GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x].equalsIgnoreCase(GestorPartida.getObjetoJugador()[j].getNombreObjeto())) {\n\t\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setLugarObjeto(GestorPartida.getObjetoJugador()[j].getJugador().getNombre(), x);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(j = 0; j < GestorPartida.getContObjetosSala();j++) {\n\t\t\t//Comprobamos si hay objetos en la sala del jugador\n\t\t\tif(GestorPartida.getObjetoSala()[j].getSala().getNombre().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala())) {\n\t\t\t\tfor(int x =0; GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x]!=null ; x++) {\n\t\t\t\t\t//Cogemos la posicion del objeto donde esta el objeto dentro de las creencias\n\t\t\t\t\tif(GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x].equalsIgnoreCase(GestorPartida.getObjetoSala()[j].getNombreObjeto())) {\n\t\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setLugarObjeto(GestorPartida.getObjetoSala()[j].getSala().getNombre(), x);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "public long getIdCargaTienda();", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t PedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\tPedidoCompra.setId(idlong);\n\t\t\tPedidoCompra.setAtivo(true);\n//\t\t\tPedidoCompra.setNome(nome.getText());\n\t\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\t\tPedidoCompra.setSaldoinicial(saldoinicial.getText());\n\t\t\tPedidoCompra.setData(new Date());\n\t\t\tPedidoCompra.setIspago(false);\n\t\t\tPedidoCompra.setData_criacao(new Date());\n//\t\t\tPedidoCompra.setFornecedor(fornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\t\n\t\t\t\n\t\t\tgetservice().edit(PedidoCompra);\n\t\t\tupdateAlert(PedidoCompra);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void agregarAlInicio(int edad){\n //CREAR UN NUEVO NODO AL INICIO DE LA LISTA\n inicio = new Nodo(edad,inicio);\n if(fin==null){\n fin=inicio;\n }\n }", "public int getIdReceta() {\r\n return idReceta;\r\n }", "long buscarAnterior(long id);", "public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "public int getLBR_NotaFiscal_ID();", "public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public int getIdSucursal()\r\n/* 118: */ {\r\n/* 119:131 */ return this.idSucursal;\r\n/* 120: */ }", "public Edificio( String id )\n {\n identificador = id;\n salones = new ArrayList<Salon>( );\n }", "public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "public int getIdSucursal()\r\n/* 93: */ {\r\n/* 94:166 */ return this.idSucursal;\r\n/* 95: */ }", "public Famille(int id, String ssFam) {\r\n\t\tthis.id=id;\r\n\t\tthis.intitule = ssFam;\r\n\t\r\n\t}", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public int getIdubicacionfiscal()\r\n\t{\r\n\t\treturn idubicacionfiscal;\r\n\t}", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "private boolean idSaoIguais(Service servico, Service servicoAComparar) {\n return servico.getId() == servicoAComparar.getId();\n }", "public void setIdade(int idade) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.idade = idade;\r\n\t}", "public int getIdSucursal()\r\n/* 104: */ {\r\n/* 105:169 */ return this.idSucursal;\r\n/* 106: */ }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public Mesa(int id, int comensales){\n this.id = id;\n this.comensales = comensales;\n this.ocupada = false;\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 int getIden() {\n return iden;\n }", "private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }", "public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }", "public void setIdCargaTienda(long idCargaTienda);", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "public void setIdUsuario(int value) {\n this.idUsuario = value;\n }", "public void agregarAlFinal(int d){\n if(!estaVacia()){\n fin = new NodoBus(d, null, fin);\n fin.ant.sig =fin;\n }else{\n inicio = fin = new NodoBus(d);\n }\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}", "public List<ActifFinancier> listemontant_actuelFondparUser(Fond f,int idUser){\n \t List<ActifFinancier> l ;\n \t if(f == Fond.Fond_Euro){\n \t l = actifFinancierRepo.listemontant_actuelFondEuroparUser(idUser) ;\n \t }\n \t else {\n \t\t l = actifFinancierRepo.listemontant_actuelEuroCroissanceparUser(idUser) ;\n \t }\n \t return l;\n }", "public int eliminardelfinal(){\n int elemento=fin.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n fin=fin.anterior;\n fin.siguiente=null;}\n return elemento;\n }", "public FiltreEnvoiIDUnique(int id) {\n\t\tthis.id = id;\n\t}", "@Test\n\tpublic void testGetIdFondo() {\n\t\tFondo.inserisciFondo(nome, importo);\n\t\tidFondo = Utils.lastInsertID();\n\t\tfondo = Fondo.visualizzaFondo(nome);\n\t\tassertTrue(\"getIdFondo() non funziona correttamente\", fondo.getId_Fondo() == idFondo);\n\t}", "public Reserva(int id,Timestamp fechaInicio,Timestamp fechaFin,Recurso recurso,Usuario usuario,String estado,String tipo){\n this.id=id;\n this.fechaInicio=fechaInicio;\n this.fechaFin=fechaFin;\n this.recurso=recurso;\n this.usuario=usuario;\n this.estado=estado;\n this.tipo=tipo;\n }", "public int getIdSucursal()\r\n/* 100: */ {\r\n/* 101:130 */ return this.idSucursal;\r\n/* 102: */ }", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "public void setId_joueur(int id_joueur)\r\n/* */ {\r\n/* 50 */ this.id_joueur = id_joueur;\r\n/* */ }", "public int getId_docente() {\n return id_docente;\n }", "public void setIdLocacion(Integer idLocacion);", "public void setIdUsuario(Integer idUsuario) {\n this.idUsuario = idUsuario;\n }", "@Transient\n\t/**\n\t * @return the idInstituicao\n\t */\n\tpublic Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}", "public void actualizarPorTipoIdentificacion()\r\n/* 686: */ {\r\n/* 687:755 */ cargarListaTipoComprobanteSRI();\r\n/* 688:756 */ cargarListaCreditoTributarioSRI();\r\n/* 689: */ }", "public java.lang.String getIdFiche(){\r\n return this.idFiche;\r\n }", "List<Asistencia> listarAsistencia(Integer id, Date inicio, Date fin, Integer crrId);", "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 int getIdCargaEmpleado()\r\n/* 103: */ {\r\n/* 104:185 */ return this.idCargaEmpleado;\r\n/* 105: */ }", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "public void setEstadoEleicaoEncerrada(int idEleicao){\n this.eleicaoDB.setEstadoEleicaoEncerrada(idEleicao);\n }", "public long getIdActividadFinancDet() {\n return idActividadFinancDet;\n }", "public IFilialAux vendaToFilial();", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "public int getIdLibro()\n {\n return id;\n }", "public void setIdRichiesta(int idRichiesta) {\n this.idRichiesta = idRichiesta;\n }", "public void setIdade(int idade) {\n\t\tthis.idade = idade;\n\t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public void setId_trimestre(int id_trimestre) {this.id_trimestre = id_trimestre;}", "void initListRemainingId();", "public int eliminarAlFinal(){\n int edad = fin.edad;\n if(fin==inicio){\n inicio=fin=null;\n }else{\n Nodo auxiliar=inicio;\n while(auxiliar.siguiente!=fin){\n auxiliar=auxiliar.siguiente;\n }\n fin=auxiliar;\n fin.siguiente=null;\n }\n return edad;\n }", "public boolean atualizaArticulo(String id, Date fechaRegistro, Timestamp fechaPartida, int articulosTotales){\n\t\t\n\t\t\n\t\treturn false;\n\t}", "public void setIdCargaEmpleado(int idCargaEmpleado)\r\n/* 108: */ {\r\n/* 109:195 */ this.idCargaEmpleado = idCargaEmpleado;\r\n/* 110: */ }", "public int getId_termin(){\r\n\t\treturn id_termin;\r\n\t}", "public void setId_tecnico(java.lang.Long newId_tecnico);", "public void setId_rango(java.lang.Integer newId_rango);", "public int getIdPreventivo() {\n return idPreventivo;\n }", "public int idade() {\n\t\treturn 2020 - anoNascimento;\n\t}", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void createBonFiscal(int idBonFiscal, Date data, float suma, int idClient) {\n\t\tif (bonFiscalOperations.checkBonFiscal(idBonFiscal) == true) {\n\t\t\tSystem.out.println(\"Bon fiscal existent!\");\n\n\t\t\tBonFiscal bonFiscal = new BonFiscal(idBonFiscal, data, suma);\n\t\t\tbonFiscal.setIdClient(idClient);\n\t\t\tList<BonFiscal> list = bonFiscalOperations.getAllBonuri();\n\t\t\tbonFiscalOperations.addBonFiscal(bonFiscal);\n\t\t\tbonFiscalOperations.printListOfBonuri(list);\n\t\t}\n\t}", "@Override\n\tpublic void atualizar(ClienteFisico clienteFisico)\n\t\t\tthrows ClienteNaoEncontradoException, CampoObrigatorioException,\n\t\t\tSQLException {\n\t\tclienteFisico.getCpf();\n\t\tfor(ClienteFisico clienteFisicoAtualizar : set){\n\t\t\tif(clienteFisico.getCpf().equals(clienteFisicoAtualizar.getCpf())){\n\t\t\t\tset.remove(clienteFisicoAtualizar);\n\t\t\t\tset.add(clienteFisico);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public int getIdCandidatura(){\n return idCandidatura;\n }" ]
[ "0.6653595", "0.65695393", "0.62452847", "0.62286615", "0.6135101", "0.61074233", "0.6105264", "0.60700065", "0.6061487", "0.6047082", "0.60315573", "0.6031432", "0.6009015", "0.598109", "0.59684795", "0.5958565", "0.59476125", "0.59393454", "0.5938291", "0.58904815", "0.5885966", "0.58681744", "0.5857873", "0.58445954", "0.58420116", "0.5831405", "0.5816908", "0.5815524", "0.57882327", "0.5763834", "0.5763814", "0.5759399", "0.5724376", "0.5723147", "0.5721928", "0.57046217", "0.5703252", "0.5694564", "0.5690706", "0.56849235", "0.5669976", "0.5665352", "0.56559104", "0.56505996", "0.56464165", "0.56412655", "0.56380093", "0.56252974", "0.5597831", "0.5587633", "0.5575761", "0.55745673", "0.55651367", "0.55630326", "0.5562742", "0.5552532", "0.5551345", "0.5549046", "0.5548509", "0.5548434", "0.5544224", "0.5539396", "0.5536958", "0.55339944", "0.55309534", "0.5530832", "0.5521296", "0.5515859", "0.55135447", "0.5508488", "0.5507414", "0.5505556", "0.54977816", "0.54935956", "0.54921865", "0.54916525", "0.5491316", "0.54874545", "0.54858446", "0.5483204", "0.54816514", "0.5480729", "0.54782736", "0.54742575", "0.54702276", "0.5466675", "0.5459222", "0.5456978", "0.5446515", "0.54445845", "0.54437715", "0.5434663", "0.5425785", "0.54171187", "0.541509", "0.54128313", "0.5405534", "0.540286", "0.53927", "0.53903323" ]
0.579371
28
/ metodo: Equivalencia AFNe(com transicao Epsilon) para AFN objeetivo: Criar o Automato equivalente sem transicoes Epsilon
public Automato equalAF2AFN(Automato a){ //a construcao da equivalencia de A será feita, utilizando a //tecnica de busca em largura. Automato r = new Automato(); //fechamento transitivo vazio (Epsilon) ArrayList<Estado> fecho = new ArrayList<>(); //conjunto de estados resultante do movimento com simbolo '0' ArrayList<Estado> zero = new ArrayList<>(); //conjunto de estados resultante do movimento com simbolo '1' ArrayList<Estado> um = new ArrayList<>(); //fila com os filhos(zero e um) do fechamento transtivo ArrayList<ArrayList<Estado>> fila = new ArrayList<>(); //calcula o fechamento do estado inicial fecho = a.fechamento(a.getQ().get(0)); fila.add(fecho); while(!fila.isEmpty()){ fecho = fila.get(0); Estado inicial = new Estado(montar(fecho)); //se os estado nao existir cria-se esse novo estado. if (!r.existe(inicial)) r.addEstado(inicial); else inicial = r.getEstado(inicial); //calcula os movimentos com 0 e 1 zero = a.movimento(fecho, '0'); um = a.movimento(fecho, '1'); if (!zero.isEmpty()){ //se possui movimento com 0 calcula o fechamento fecho = a.fechamento(zero); Estado e = new Estado(montar(fecho)); if (!r.existe(e)) //se o estado nao existe cria o estado r.addEstado(e); else e = r.getEstado(e); if (!r.existe(inicial, e, '0')){ //se a trasicao nao existe cria a transicao //e adiciona o fechamento na fila fila.add(fecho); r.addTransicao(inicial, e, '0'); } } if (!um.isEmpty()){ fecho = a.fechamento(um); Estado e = new Estado(montar(fecho)); if (!r.existe(e)) //se o estado nao existe cria o estado r.addEstado(e); else e = r.getEstado(e); if (!r.existe(inicial, e, '1')){ //se a trasicao nao existe cria a transicao //e adiciona o fechamento na fila fila.add(fecho); r.addTransicao(inicial, e, '1'); } } fila.remove(0); } atribuirFinais(r, a.getF()); Operacao.updateIndex(r); return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Automato equalAFN2AFD(Automato a){\n\t\tAutomato r = a;\n\t\tEstado morto = new Estado(\"morto\");\n\t\tr.addEstado(morto);\n\t\tr.addTransicao(morto,morto,'0');\n\t\tr.addTransicao(morto,morto,'1');\n\t\tIterator<Estado> it = r.getQ().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tEstado e = it.next();\n\t\t\tif (r.findAll(e, '0').isEmpty()){\n\t\t\t\tr.addTransicao(e, morto, '0');\n\t\t\t}\n\t\t\tif (r.findAll(e, '1').isEmpty()){\n\t\t\t\tr.addTransicao(e, morto, '1');\n\t\t\t}\n\t\t}\n\t\tOperacao.updateIndex(r);\n\t\treturn r;\n\t}", "public void testDeterminizerOnNFAs() throws Exception {\n\t\tINFA[] nfas = JailTestUtils.getAllNFAs();\n\t\tfor (INFA nfa: nfas) {\n\t\t\tIDFA dfa = new NFADeterminizer(nfa).getResultingDFA();\n\t\t\tassertNotNull(dfa);\n\t\t}\n\t}", "public void testDeterminizer(INFA nfa, IDFA expected) throws Exception {\n\t\tIDFA eqDfa = new NFADeterminizer(nfa).getResultingDFA();\n\t\tassertEquivalent(expected,eqDfa);\n\t}", "@Test\n public void convertAFby() {\n DistEventType x = DistEventType.LocalEvent(\"x\", 0);\n DistEventType y = DistEventType.LocalEvent(\"y\", 0);\n\n TemporalInvariantSet synInvs = new TemporalInvariantSet();\n synInvs.add(new AlwaysFollowedInvariant(x, y, \"t\"));\n List<dynoptic.invariants.BinaryInvariant> dynInvs = DynopticMain\n .synInvsToDynInvs(synInvs);\n assertTrue(dynInvs.size() == 1);\n\n BinaryInvariant dInv = dynInvs.iterator().next();\n assertTrue(dInv instanceof AlwaysFollowedBy);\n assertTrue(dInv.getFirst().equals(x));\n assertTrue(dInv.getSecond().equals(y));\n }", "public FiniteAutomaton convertToNFA() {\n\t\tFiniteAutomaton fa = parseR();\n\t\t\n\t\t// Make sure that the entire regular expression was parsed.\n\t\t// This avoids situations, e.g., such as \"a)*\" being treated\n\t\t// as \"a\".\n\t\tif (!regexp.substring(pos).trim().isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Regular expression had trailing symbols (mismatched parens?)\");\n\t\t}\n\t\t\n\t\treturn fa;\n\t}", "public IFatura vendaToFatura();", "private NDFA etoileCase(RegExTree regExTree) {\n NDFA fils = build(regExTree.subTrees.get(0));\n int[][] tTab_fils = fils.transitionTable;\n ArrayList<Integer>[] eTab_fils = fils.epsilonTransitionTable;\n int l=tTab_fils.length;\n int[][] tTab = new int[2+l][N];\n ArrayList<Integer>[] eTab = new ArrayList[2+l];\n //DUMMY VALUES FOR INITIALIZATION\n for (int i=0;i<tTab.length;i++) for (int col=0;col<N;col++) tTab[i][col]=-1;\n for (int i=0;i<eTab.length;i++) eTab[i]=new ArrayList<>();\n\n eTab[0].add(1); //epsilon transition from new initial state to old initial state\n eTab[0].add(2+l-1); //epsilon transition from new initial state to new final state\n eTab[2+l-2].add(2+l-1); //epsilon transition from old final state to new final state\n eTab[2+l-2].add(1); //epsilon transition from old final state to old initial state\n\n for (int i=1;i<2+l-1;i++) for (int col=0;col<N;col++) if (tTab_fils[i-1][col]!=-1) tTab[i][col]=tTab_fils[i-1][col]+1; //copy old transitions\n for (int i=1;i<2+l-1;i++) for (int s: eTab_fils[i-1]) eTab[i].add(s+1); //copy old transitions\n return new NDFA(tTab,eTab);\n }", "@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }", "public IFilialAux vendaToFilial();", "private B_NotaFiscal geraNF(C_Fatura fatura) {\n\t\tdouble valor = fatura.getValorMensal();\n\t\tdouble imposto = 0;\n\t\tif(valor < 200) {\n\t\t\timposto = valor * 0.03;\n\t\t}\n\t\telse if(valor > 200 && valor <= 1000) {\n\t\t\timposto = valor * 0.06;\n\t\t}\n\t\telse {\n\t\t\timposto = valor * 0.07;\n\t\t}\n\t\t\n\t\tB_NotaFiscal nf = new B_NotaFiscal(valor, imposto);\n\t\treturn nf;\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 double Asigna(double val, double tope) {\r\n if ((val > -1E-4) && (val < 1E-4)) {\r\n return (0);\r\n }\r\n if ((val > tope - 1E-4) && (val < tope + 1E-4)) {\r\n return (tope);\r\n }\r\n\r\n return (val);\r\n }", "boolean NFAtoDFA(){\n\t\tn2dfa_start=new DFA_State();\n\t\tHashSet<NFA_State> nfas=new HashSet<NFA_State>();\n\t\tnfas.add(nfa_start);\n\t\tnfas=getEClosure(nfas);\n\t\tspreadDFA(nfas,n2dfa_start);\n\t\treturn true;\n\t}", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "@Test\n public void t1()\n {\n \tFormula f1;\n \tEnvironment retenv;\n \tClause clause1,clause2,clause3;\n \tclause1 = make (na);\n\n \tf1=new Formula(clause1);\n \tSystem.out.println(\"---\");\n \tSystem.out.println(f1);\n \tretenv=SATSolver.solve(f1);\n \tSystem.out.println(\"Solution: \"+retenv);\n \t\n \tassertTrue(Boolean.TRUE);\n }", "@Test\n public void testSoma() {\n System.out.println(\"soma\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.soma(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }", "@Test\n public void test20() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0);\n Asinh asinh0 = new Asinh();\n AllowedSolution allowedSolution0 = AllowedSolution.ANY_SIDE;\n double double0 = regulaFalsiSolver0.solve(937, (UnivariateRealFunction) asinh0, (-3537.8), 1704.8188, allowedSolution0);\n }", "private static String representacaoAM(Graph grafo) {\r\n\t\tfloat[][] matriz = new float[grafo.getVertexNumber()][grafo.getVertexNumber()];\r\n\r\n\t\tfor (Aresta aresta : grafo.getArestas()) {\r\n\t\t\tint valorA = aresta.getV1().getValor();\r\n\t\t\tint valorB = aresta.getV2().getValor();\r\n\r\n\t\t\tmatriz[valorA][valorB] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t\tmatriz[valorB][valorA] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t}\r\n\r\n\t\tStringBuilder result = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < matriz.length; i++) {\r\n\t\t\tfor (int j = 0; j < matriz.length; j++) {\r\n\t\t\t\tresult.append(matriz[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tresult.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\treturn result.toString();\r\n\t}", "@Test\n public void test_NFAtoDFAConversion_baseline() {\n NFADesign nfaDesign = new NFADesign(STATE1, Arrays.asList(STATE3), NFA_RULEBOOK);\n assertFalse(nfaDesign.accepts(\"aaa\"));\n assertTrue(nfaDesign.accepts(\"aab\"));\n assertTrue(nfaDesign.accepts(\"bbbabb\"));\n }", "public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}", "private float m23258a(float f, float f2, float f3) {\n return f + ((f2 - f) * f3);\n }", "private final List<State> SAT_AF(String expression) {\r\n List<State> x = new ArrayList<State>();\r\n for(State state:this._kripke.States)\r\n {\r\n \tx.add(state);\r\n }\r\n List<State> y = new ArrayList<State>();\r\n y = this.SAT(expression);\r\n while (!this.AreListStatesEqual(x, y)) {\r\n x = y;\r\n List<State> newY = new ArrayList<State>();\r\n List<State> preAStates = this.PreA(y);\r\n for(State state:y)\r\n {\r\n \tnewY.add(state);\r\n }\r\n for (State state : preAStates) {\r\n if (!newY.contains(state)) {\r\n newY.add(state);\r\n }\r\n \r\n }\r\n \r\n y = newY;\r\n }\r\n \r\n return y;\r\n }", "public Automato(TabelaDeTransicao _tabela) {\n tabela = _tabela;\n estadosDeterminizados = (Vector) _tabela.getEstados().clone();\n }", "static float m211a(float f, float f2, boolean z) {\n return z ? (float) (((double) (f * 1.5f)) + ((1.0d - f400a) * ((double) f2))) : f * 1.5f;\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public NFA(){}", "public static void InverseA(double pos_x1, double pos_x2, double pos_x3, double pos_y1, double pos_y2, double pos_y3, double fX, double fY, double fZ,\n double tX, double tY, double tZ, double h11, double h21, double k1, double h12, double h22, double k2, double h13, double h23,\n double k3, YoDouble fx1, YoDouble fz1, YoDouble fx2, YoDouble fy2, YoDouble fz2, YoDouble fz3)\n\n {\n double s42, s44, s45, s46, s51, s52;\n double s53, s55, s56, s61, s63, s64;\n\n double t11, t12, t16;\n double t21, t22, t23, t24, t25, t26;\n double t31, t32, t36;\n double t42;\n double t51, t52, t53, t54, t55, t56;\n double t61, t62, t63, t64, t65, t66;\n\n double cd;\n\n s42 = (pos_y1 + AgileHexapodRobot.LEN * Math.cos(h21) * (Math.sin(h11 + k1) + Math.sin(h11)));\n s44 = (-2.0 * AgileHexapodRobot.LEN * Math.sin(h11) * Math.sin(k1) - AgileHexapodRobot.LEN * Math.sin(h12) * Math.sin(k2)\n - AgileHexapodRobot.LEN * Math.sin(h13) * Math.sin(k3) + AgileHexapodRobot.LEN * Math.cos(h12) * (Math.cos(k2) + 1)\n + AgileHexapodRobot.LEN * Math.cos(h13) * (Math.cos(k3) + 1) + 2.0 * AgileHexapodRobot.LEN * Math.cos(h11) * (Math.cos(k1) + 1));\n s45 = (pos_y2 + AgileHexapodRobot.LEN * Math.cos(h22) * (Math.sin(h12 + k2) + Math.sin(h12)));\n s46 = (pos_y3 + AgileHexapodRobot.LEN * Math.cos(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n s51 = (-AgileHexapodRobot.LEN * Math.cos(h11 + k1) - AgileHexapodRobot.LEN * Math.cos(h11));\n s52 = (-pos_x1 + AgileHexapodRobot.LEN * Math.sin(h21) * (Math.sin(h11 + k1) + Math.sin(h11)));\n s53 = (AgileHexapodRobot.LEN * Math.cos(h12) * (-Math.cos(k2) - 1) + AgileHexapodRobot.LEN * Math.cos(h13) * (-Math.cos(k3) - 1)\n + AgileHexapodRobot.LEN * Math.sin(h12) * Math.sin(k2) + AgileHexapodRobot.LEN * Math.sin(h13) * Math.sin(k3));\n s55 = (-pos_x2 + AgileHexapodRobot.LEN * Math.sin(h22) * (Math.sin(h12) * (Math.cos(k2) + 1) + Math.cos(h12) * Math.sin(k2)));\n s56 = (-pos_x3 + AgileHexapodRobot.LEN * Math.sin(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n s61 = (-pos_y1 - AgileHexapodRobot.LEN * Math.cos(h21) * (Math.sin(h11 + k1) + Math.sin(h11)));\n s63 = (-pos_y2 - pos_y3 - AgileHexapodRobot.LEN * Math.cos(h22) * (Math.sin(h12 + k2) + Math.sin(h12))\n - AgileHexapodRobot.LEN * Math.cos(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n s64 = (2.0 * pos_x1 + pos_x2 + pos_x3 - 2.0 * AgileHexapodRobot.LEN * Math.sin(h21) * (Math.sin(h11 + k1) + Math.sin(h11))\n - AgileHexapodRobot.LEN * Math.sin(h22) * (Math.sin(h12 + k2) + Math.sin(h12))\n - AgileHexapodRobot.LEN * Math.sin(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n\n DET.set((4.0 * s63 - 8.0 * s61) * (s42 * (s55 - s56) + s45 * (-s52 + s56) + s46 * (s52 - s55)));\n\n if ((DET.getDoubleValue() > -0.001) && (DET.getDoubleValue() < 0.0))\n DET.set(-0.001);\n if ((DET.getDoubleValue() < 0.001) && (DET.getDoubleValue() > 0.0))\n DET.set(0.001);\n\n cd = 4.0 * s63 - 8.0 * s61;\n\n t11 = (4.0 * s63 * DET.getDoubleValue()) / (cd);\n t12 = (2.0 * s64 * DET.getDoubleValue()) / (cd);\n t16 = (-8.0 * DET.getDoubleValue()) / (cd);\n\n t21 = 4.0 * (s53 * s61 - s51 * s63) * (s46 - s45);\n t22 = s51 * s64 * (-2.0 * s46 + 2.0 * s45) + s53 * s64 * (-s45 + s46) + s55 * s44 * (-s63 + 2.0 * s61) + s56 * s44 * (-2.0 * s61 + s63);\n t23 = cd * (s45 * s56 - s46 * s55);\n t24 = cd * (s55 - s56);\n t25 = cd * (-s45 + s46);\n t26 = (4.0 * s53 - 8.0 * s51) * (s45 - s46);\n\n t31 = (-4.0 * s61 * DET.getDoubleValue()) / (cd);\n t32 = (-s64 * DET.getDoubleValue()) / (cd);\n t36 = (4.0 * DET.getDoubleValue()) / (cd);\n\n t42 = DET.getDoubleValue() / 4.0;\n\n t51 = 4.0 * (s46 - s42) * (s51 * s63 - s61 * s53);\n t52 = (2.0 * s51 - s53) * (-s42 * s64 + s46 * s64) + (2.0 * s61 - s63) * (s56 * s44 - s52 * s44);\n t53 = cd * (-s42 * s56 + s46 * s52);\n t54 = cd * (s56 - s52);\n t55 = cd * (-s46 + s42);\n t56 = (4.0 * s53 - 8.0 * s51) * (s46 - s42);\n\n t61 = 4.0 * (s63 * s51 - s61 * s53) * (s42 - s45);\n t62 = (2.0 * s51 - s53) * (-s45 * s64 + s42 * s64) + (2.0 * s61 - s63) * (s52 * s44 - s55 * s44);\n t63 = cd * (s42 * s55 - s45 * s52);\n t64 = cd * (s52 - s55);\n t65 = cd * (s45 - s42);\n t66 = (8.0 * s51 - 4.0 * s53) * (s45 - s42);\n\n\n fx1.set((1.0 / DET.getDoubleValue()) * (t11 * fX + t12 * fY + t16 * tZ));\n fz1.set((1.0 / DET.getDoubleValue()) * (t21 * fX + t22 * fY + t23 * fZ + t24 * tX + t25 * tY + t26 * tZ));\n fx2.set((1.0 / DET.getDoubleValue()) * (t31 * fX + t32 * fY + t36 * tZ));\n fy2.set((1.0 / DET.getDoubleValue()) * (t42 * fY));\n fz2.set((1.0 / DET.getDoubleValue()) * (t51 * fX + t52 * fY + t53 * fZ + t54 * tX + t55 * tY + t56 * tZ));\n fz3.set((1.0 / DET.getDoubleValue()) * (t61 * fX + t62 * fY + t63 * fZ + t64 * tX + t65 * tY + t66 * tZ));\n\n\n /* test it */\n\n /*\n * ls.sminv_err_1 = (*fx1) + 2.0* (*fx2) - fX;\n * ls.sminv_err_2 = 4.0 * (*fy2) - fY;\n * ls.sminv_err_3 = (*fz1) + (*fz2) + (*fz3) - fZ;\n *\n * ls.sminv_err_4 = s42*(*fz1) + s44*(*fy2) + s45*(*fz2) + s46*(*fz3) - tX;\n * ls.sminv_err_5 = s51*(*fx1) + s52*(*fz1) + s53*(*fx2) + s55*(*fz2) + s56*(*fz3) - tY;\n * ls.sminv_err_6 = s61*(*fx1) + s63*(*fx2) + s64*(*fy2) - tZ;\n */\n\n }", "NeoEpsilonFactory getNeoEpsilonFactory();", "public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}", "public void testDeterminizerOnDFAs() throws Exception {\n\t\tIDFA[] dfas = JailTestUtils.getAllDFAs();\n\t\tfor (IDFA dfa: dfas) {\n\t\t\tIDirectedGraph graph = dfa.getGraph();\n\t\t\tINFA nfa = new GraphNFA(graph);\n\t\t\ttestDeterminizer(nfa,dfa);\n\t\t}\n\t}", "private FiniteAutomaton parseT() {\n\t\t\n\t\tFiniteAutomaton f = parseF();\n\t\t\n\t\tint c = peek();\n\t\tif (c >= 0 && (c == '*' || c == '+')) {\n\t\t\t// repetition\n\t\t\texpect((char) c); // consume the * or +\n\n\t\t\t// Create result NFA with new start and accepting states\n\t\t\tFiniteAutomaton result = new FiniteAutomaton();\n\t\t\tState start = result.createState();\n\t\t\tstart.setStart(true);\n\t\t\tState accepting = result.createState();\n\t\t\taccepting.setAccepting(true);\n\n\t\t\t// add ε-transitions from\n\t\t\t// - start to accepting (only for '*', not for '+') and,\n\t\t\t// - accepting to start state (both '*' and '+')\n\t\t\t// This allows 0 or more repetitions for '*', and 1 or more\n\t\t\t// repetitions for '+'.\n\t\t\t\n\t\t\tif (c == '*') {\n\t\t\t\tresult.createTransition(start, accepting, FiniteAutomaton.EPSILON);\n\t\t\t}\n\t\t\tresult.createTransition(accepting, start, FiniteAutomaton.EPSILON);\n\n\t\t\t// add states from orig NFA\n\t\t\tresult.addAll(f);\n\n\t\t\t// add ε-transition from the new start state to the old start state\n\t\t\tresult.createTransition(start, f.getStartState(), FiniteAutomaton.EPSILON);\n\t\t\tf.getStartState().setStart(false);\n\n\t\t\t// add ε-transition from the old accepting state to the new accepting state\n\t\t\tresult.createTransition(f.getUniqueAcceptingState(), accepting, FiniteAutomaton.EPSILON);\n\t\t\tf.getUniqueAcceptingState().setAccepting(false);\n\n\t\t\t// done\n\t\t\treturn check(result);\n\t\t} else if (c >= 0 && c == '?') {\n\t\t\texpect('?');\n\t\t\t\n\t\t\t// Create new start and accepting states, connected to/from\n\t\t\t// the original start and accepting states, and create an\n\t\t\t// epsilon transition from the new start state to the new\n\t\t\t// accepting state (allowing 0 occurrences of strings accepted\n\t\t\t// by the original FA.)\n\t\t\tState start = f.getStartState();\n\t\t\tState accept = f.getUniqueAcceptingState();\n\t\t\tState newStart = f.createState();\n\t\t\tState newAccept = f.createState();\n\t\t\tf.createTransition(newStart, start, FiniteAutomaton.EPSILON); // allow 1 occurrence\n\t\t\tf.createTransition(accept, newAccept, FiniteAutomaton.EPSILON); // as above\n\t\t\tstart.setStart(false);\n\t\t\tnewStart.setStart(true);\n\t\t\taccept.setAccepting(false);\n\t\t\tnewAccept.setAccepting(true);\n\t\t\tf.createTransition(newStart, newAccept, FiniteAutomaton.EPSILON); // allow 0 occurrences\n\t\t\t\n\t\t\treturn f;\n\t\t}\n\t\t\n\t\t// No operator (*+?) was applied, so just return whatever parseF() returned\n\t\treturn f;\n\t}", "public static void main(String[] args)\n\t{\n\t\tint fat = 0;\n\t\tfat = Math.abs(fat);\n\t\tSystem.out.println(\"Fatorial de \" + fat + \" = \" + fatorial((fat)));\n\t\t\n\t}", "public abstract void mo70706a(String str, float f, float f2);", "private double calc_E(KeplerElements a) {\n\t\tdouble sqrome2 = Math.sqrt(1.0 - a.e * a.e);\r\n\t\tdouble cta = Math.cos(a.ta);\r\n\t\tdouble sta = Math.sin(a.ta);\r\n\t\tdouble sine0 = (sqrome2 * sta) / (1.0 + a.e * cta);\r\n\t\tdouble cose0 = (a.e + cta) / (1.0 + a.e * cta);\r\n\t\tdouble e0 = Math.atan2(sine0, cose0);\r\n\t\treturn e0;\r\n\r\n\t}", "@Override\n\tpublic double netoAnual(double precio) {\n\t\treturn this.precio * 12;\n\t}", "@Test\n public void epsilonEquals() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.epsilonEquals(a, 2, b, 3, 0.01f));\n assertTrue(! Vec4f.epsilonEquals(a, 0, b, 0, 0.01f));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.01f, 2.02f, 3.03f, 4.04f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.epsilonEquals(a4,b4, 0.05f));\n assertTrue(!Vec4f.epsilonEquals(a4,b4, 0.02f));\n assertTrue(!Vec4f.epsilonEquals(a4,c4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,d4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,e4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,f4, 0.1f));\n \n }", "public static void alturaArbol() {\n int angulo = 35;\n\n double anguloConvert = Math.toRadians(angulo);\n int x = 20;\n int y;\n y = (int) Math.round(x * Math.tan(anguloConvert));\n System.out.println(\"Altura del arbol: \" + y);\n }", "public static void assertFsaEquals(FiniteStateAutomaton fsaExpected,\n\t\tFiniteStateAutomaton fsaActual) {\n\t\t\n\t\tif ( fsaExpected.getInitialState() != null || fsaActual.getInitialState() != null ){\n\t\t\n\t\t\tif ( fsaExpected.getInitialState() == null ){\n\t\t\t\tfail(\"Initial states do not match expected null found \"+fsaActual.getInitialState().getName());\n\t\t\t} else if ( fsaActual.getInitialState() == null ){\n\t\t\t\tfail(\"Initial states do not match expected \"+fsaExpected.getInitialState().getName()+\" found null\");\n\t\t\t}\n\t\t\t\n\t\t\tassertEquals( \"Initial states do not match\" ,fsaExpected.getInitialState().getName(), fsaActual.getInitialState().getName() );\n\t\t\t\n\t\t}\n\t\t\n\t\tState statesFsa[] = fsaExpected.getStates();\n State statesFsaToCompare[] = fsaActual.getStates();\n \n assertStatesEquals(statesFsa,statesFsaToCompare);\n \n State[] expectedFinal = fsaExpected.getFinalStates();\n State[] actualFInal = fsaActual.getFinalStates();\n \n assertStatesEquals(expectedFinal, actualFInal);\n \n\t\tTransition transitionFsa[] = fsaExpected.getTransitions();\n\t\tTransition transitionFsaToCompare[] = fsaActual.getTransitions();\n\t\t\n\t\tassertTransitionsEquals(transitionFsa,transitionFsaToCompare);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\tAutobiographicalN a = new AutobiographicalN();\n\t\t\ta.Ab_or_not(1210);\n\t\t\ta.Ab_or_not(12300);\n\t\t\ta.Ab_or_not(21200);\n\t}", "void negarAnalise();", "public static void main(String[] args) {\n \n Expressao esquerda = new Soma(new Numero(5), new Numero(7));\n Expressao direita = new Subtracao(new Numero(2), new Numero(10));\n Expressao soma = new Soma(esquerda, direita);\n //Expressao raiz = new RaizQuadrada(soma);\n \n int resultadoSoma = soma.avalia();\n //int resultadoRaiz = raiz.avalia();\n \n System.out.println(resultadoSoma);\n //System.out.println(resultadoRaiz);\n \n Visitor impressora = new Visitor();\n soma.aceita(impressora);\n \n \n \n \n }", "private void m3937a(float f, int i) {\n m3945n(Math.max(Math.round(f * ((float) this.f3120I)), i));\n }", "@Test\n\tpublic void nearestSmallerEqFibTest() {\n\t\tAssert.assertTrue(ifn.nearestSmallerEqFib(30) == 21);\n\t}", "public abstract Self epsilon();", "private static String representacaoAL(Graph grafo) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tfor (int i = 0; i < grafo.getVerticesGraph().size(); i++) {\r\n\t\t\tretorno += grafo.getVerticesGraph().get(i).getValor() + \" \";\r\n\r\n\t\t\tfor (int j = 0; j < grafo.getVerticesGraph().get(i).getArestas().size(); j++) {\r\n\t\t\t\tretorno += proxVertice(grafo.getVerticesGraph().get(i), grafo.getVerticesGraph().get(i).getArestas().get(j)) + \" \";\r\n\t\t\t}\r\n\r\n\t\t\tretorno += \"/n\";\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "protected final double fa(double x, double ac, double ae) {return ac*Math.pow(x, ae)/K;}", "@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}", "public static void main(String[] args) {\n\t\tEquation eq = new Equation();\n\t\teq.process(\"A = [ 2, -2, 0, 3, 4; 4, -1, 0, 1, -1; 0, 5, 0, 0, -1; 3, 2, -3, 4, 3; 7, -2, 0, 9, -5 ]\");\n\t\tDMatrixRMaj A = eq.lookupDDRM(\"A\");\n\t\t\n\t\tSystem.out.println(\"<==== A ====>\");\n\t\tSystem.out.println(A);\n\t\tSystem.out.println(\"Det(A): \" + CommonOps_DDRM.det(A));\n\t\t\n\t\tDMatrixRMaj C = cofactor(A);\n\t\teq.alias(C, \"C\");\n\t\t\n\t\tdouble det = A.get(3, 2) * C.get(3, 2);\n\t\t\n\t\tSystem.out.println(\"Column[\" + 2 + \"] has 4 zeros entries\");\n\t\tSystem.out.println(\"Det(A) = A[3][2] * cofactors[3][2]: \" + det);\n\t\t\n\t\n\t\tSystem.out.println(\"<==== adj(A) ====>\");\n\t\tSystem.out.println(C);\n\t\t\n\t\t\n\t\teq.process(\"AI = inv(A)\");\n\t\teq.process(\"AC = inv(det(A)) * C'\");\n\t\t\n\t\t\n\t\tSystem.out.println(\"<==== inv(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AI\"));\n\t\t\n\t\tSystem.out.println(\"<==== 1 / det(A) * adj(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AC\"));\n\t\t\n\t\tSystem.out.println(\"inv(A) == 1 / det(A) * adj(A): \" + MatrixFeatures.isIdentical(eq.lookupDDRM(\"AI\"), eq.lookupDDRM(\"AC\"), 0.00000001));\n\t\t\n\t\t\n\t}", "@Override\r\n\tdouble alan() {\n\t\tSystem.out.println(\"Ucgenin Alani : \");\r\n\t\treturn kenar1 * kenar2 /2;\r\n\t}", "@Test\n\tpublic void testaAdicionaNota() throws Exception {\n\t\tminitElimBai_1.adicionaNota(0.0);\n\t\ttry {\n\t\t\tminitElimBai_1.adicionaNota(-1.0);\n\t\t\tAssert.fail(\"Deveria ter retornado excessao.\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaNota()\", \"Nota invalida.\",\n\t\t\t\t\te.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tminitElimBai_1.adicionaNota(11.0);\n\t\t\tAssert.fail(\"Deveria ter retornado excessao.\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro no adicionaNota()\", \"Nota invalida.\",\n\t\t\t\t\te.getMessage());\n\t\t}\n\n\t\tminitElimBai_2.adicionaNota(1.0);\n\t\tminitElimBai_2.adicionaNota(2.0);\n\t\tminitElimBai_2.adicionaNota(3.0);\n\t\tminitElimBai_2.adicionaNota(4.0);\n\t\tminitElimBai_2.adicionaNota(5.0);\n\t\tminitElimBai_2.adicionaNota(6.0);\n\t\tminitElimBai_2.adicionaNota(7.0);\n\t\tminitElimBai_2.adicionaNota(8.0);\n\t\tminitElimBai_2.adicionaNota(9.0);\n\t\tminitElimBai_2.adicionaNota(10.0);\n\t\ttry {\n\t\t\tminitElimBai_2.adicionaNota(10.0);\n\t\t\tAssert.fail(\"Deveria ter retornado excessao.\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertEquals(\"Erro em adicionaNota()\",\n\t\t\t\t\t\"Quantidade de provas atingida.\", e.getMessage());\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tFrazione f = new Frazione (\"1/2\");\n\t\tFrazione x=new Frazione (3,12);\n\t\tx.per(f);\n\t\tSystem.out.println(x);\n\t\n\t\tFrazione a=new Frazione(2,4);\n\t\tFrazione b=new Frazione(\"1/2\");\n\t\n\t\tSystem.out.println(a.equals(b)); //equals viene ereditato MA NON GUARDA IL CONETNUTO DELLA FRAZIONE SE SONO UGUALI\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "@Test\r\n\tpublic void testDistancia0() \r\n\t{\r\n\t\tAssert.assertEquals(1.41, new Ponto(3,3).dist(new Ponto(4,2)), EPSILON);\r\n\t\tAssert.assertEquals(26.20, new Ponto(-7,-4).dist(new Ponto(17,6.5)), EPSILON);\t\r\n\t\tAssert.assertEquals(0.00, new Ponto(0,0).dist(new Ponto(0,0)), EPSILON);\t\r\n\t}", "@Test\n public void finiteUTurnCosts() {\n int right0 = graph.edge(0, 1).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(1, 2).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(2, 3).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(5, 2).setDistance(1000).set(speedEnc, 10, 10);\n int left6 = graph.edge(1, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n int left0 = graph.edge(0, 7).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(7, 8).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(8, 9).setDistance(10).set(speedEnc, 10, 10);\n int right6 = graph.edge(9, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n\n // enforce p-turn (using the loop in clockwise direction)\n setRestriction(0, 1, 6);\n setRestriction(5, 4, 3);\n\n assertPath(calcPath(0, 6, right0, left6), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite it depends on its value if we rather do the p-turn or do an immediate u-turn at node 2\n assertPath(calcPath(0, 6, right0, left6, createWeighting(5000)), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n assertPath(calcPath(0, 6, right0, left6, createWeighting(40)), 44, 40, 44000, nodes(0, 1, 2, 1, 6));\n\n assertPath(calcPath(0, 6, left0, right6), 4, 40, 4000, nodes(0, 7, 8, 9, 6));\n assertPath(calcPath(0, 6, left0, left6), 111, 1110, 111000, nodes(0, 7, 8, 9, 6, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite we do a u-turn at node 1 (not at node 7 at the beginning!)\n assertPath(calcPath(0, 6, left0, left6, createWeighting(40)), 46.0, 60, 46000, nodes(0, 7, 8, 9, 6, 1, 6));\n }", "@Override\n\tpublic boolean puedoAtacar(ElementoAlien a) {\n\t\treturn true;\n\t}", "public void testDeterminizerOnSimpleExamples() throws Exception {\n\t\tINFA nfa = JailTestUtils.SINGLE_NFA();\n\t\tIDFA dfa = JailTestUtils.SINGLE_DFA();\n\t\ttestDeterminizer(nfa,dfa);\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 }", "@Test\n @Tag(\"bm1000\")\n public void testAFIRO() {\n\n // CPLEX MIN OPTIMAL -464.7531428571429 @ { 8E+1, 25.5, 54.5, 84.80, 18.21428571428572, 0, 0, 0, 0, 0, 0, 0, 18.21428571428572, 0, 19.30714285714286, 5E+2, 475.92, 24.08, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 339.9428571428572, 383.9428571428572, 0, 0 }\n\n // Before shift\n // [80.0, 25.499999999999993, 54.5, 0.0, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 0.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n\n // After shift\n // [80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n // OPTIMAL -819.096 @ { 80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }\n\n // Mapped\n // OPTIMAL NaN @ { 80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0 }\n\n // Result\n // OPTIMAL -630.6960000000001 @ { 8E+1, 25.49999999999999, 54.5, 84.8, 18.21428571428571, 0, 0, 0, 0, 0, 0, 0, 18.21428571428571, 0, 19.30714285714285, 5E+2, 651.9200000000001, 24.07999999999999, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 465.657142857143, 561.6571428571428, 0, 0 }\n\n // CPLEX MAX OPTIMAL 3438.2920999999997 @ { 54.5, 0, 54.5, 57.77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5E+2, 483.5955, 16.4045, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 345.4253571428571, 0, 0, 389.4253571428571 }\n\n CuteNetlibCase.doTest(\"AFIRO.SIF\", \"-464.7531428571429\", \"3438.2920999999997\", NumberContext.of(7, 4));\n }", "public abstract void mo70705a(String str, float f);", "public void f()\r\n {\r\n float var1 = 0.5F;\r\n float var2 = 0.125F;\r\n float var3 = 0.5F;\r\n this.a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);\r\n }", "public static void main(String[] args) throws Exception {\n String fileName = \"src/tipper_arbitragem.fcl\";\r\n FIS fis = FIS.load(fileName,true);\r\n\r\n // Error while loading?\r\n if( fis == null ) { \r\n System.err.println(\"Can't load file: '\" + fileName + \"'\");\r\n return;\r\n }\r\n\r\n // Show \r\n JFuzzyChart.get().chart(fis);\r\n\r\n // Set inputs\r\n fis.setVariable(\"valor_mercado\", -0.5);\r\n fis.setVariable(\"valor_exchange\", -1);\r\n\r\n // Evaluate\r\n fis.evaluate();\r\n\r\n // Show output variable's chart\r\n //fis.getVariable(\"decisao\").getLatestDefuzzifiedValue();\r\n Variable tip = fis.getVariable(\"decisao\"); \r\n\r\n JFuzzyChart.get().chart(tip, tip.getDefuzzifier(), true);\r\n\r\n // Print ruleSet\r\n System.out.println(fis);\r\n }", "public void mo3285a(int i, float f, float f2) {\n C0809e eVar;\n int i2;\n C0807a aVar;\n C0809e eVar2;\n int i3;\n if (this.f2569b == i) {\n if (i == -1) {\n aVar = (C0807a) this.f2572e.valueAt(0);\n } else {\n aVar = (C0807a) this.f2572e.get(this.f2569b);\n }\n if (this.f2570c == -1 || !((C0808b) aVar.f2576b.get(this.f2570c)).mo3289a(f, f2)) {\n int a = aVar.mo3287a(f, f2);\n if (this.f2570c != a) {\n if (a == -1) {\n eVar2 = this.f2568a;\n } else {\n eVar2 = ((C0808b) aVar.f2576b.get(a)).f2584f;\n }\n if (a == -1) {\n i3 = aVar.f2577c;\n } else {\n i3 = ((C0808b) aVar.f2576b.get(a)).f2583e;\n }\n if (eVar2 != null) {\n this.f2570c = a;\n if (this.f2574g != null) {\n this.f2574g.mo3309a(-1, i3);\n }\n eVar2.mo3297b(this.f2571d);\n if (this.f2574g != null) {\n this.f2574g.mo3310b(-1, i3);\n }\n }\n }\n }\n } else {\n this.f2569b = i;\n C0807a aVar2 = (C0807a) this.f2572e.get(this.f2569b);\n int a2 = aVar2.mo3287a(f, f2);\n if (a2 == -1) {\n eVar = aVar2.f2578d;\n } else {\n eVar = ((C0808b) aVar2.f2576b.get(a2)).f2584f;\n }\n if (a2 == -1) {\n i2 = aVar2.f2577c;\n } else {\n i2 = ((C0808b) aVar2.f2576b.get(a2)).f2583e;\n }\n if (eVar == null) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"NO Constraint set found ! id=\");\n sb.append(i);\n sb.append(\", dim =\");\n sb.append(f);\n sb.append(\", \");\n sb.append(f2);\n Log.v(\"ConstraintLayoutStates\", sb.toString());\n return;\n }\n this.f2570c = a2;\n if (this.f2574g != null) {\n this.f2574g.mo3309a(i, i2);\n }\n eVar.mo3297b(this.f2571d);\n if (this.f2574g != null) {\n this.f2574g.mo3310b(i, i2);\n }\n }\n }", "@LargeTest\n public void testFisheyeApproximateRelaxed() {\n TestAction ta = new TestAction(TestName.FISHEYE_APPROXIMATE_RELAXED);\n runTest(ta, TestName.FISHEYE_APPROXIMATE_RELAXED.name());\n }", "@Test\n public void testAlto() {\n System.out.println(\"alto\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n double expResult = 0.0;\n double result = instance.alto();\n \n // TODO review the generated test code and remove the default call to fail.\n \n }", "@RepeatedTest(20)\n void transformtoFloatTest(){\n assertEquals(f.transformtoFloat(), f);\n assertEquals(i.transformtoFloat(),new Float(seed));\n assertEquals(bi.transformtoFloat(), new Float(bi.toInt(bi.getBinary())));\n\n //Nulls\n assertEquals(st.transformtoFloat(),Null);\n assertEquals(bot.transformtoFloat(),Null);\n assertEquals(bof.transformtoFloat(),Null);\n assertEquals(Null.transformtoFloat(),Null);\n }", "public void BigE_and_Truana()\r\n\t{\r\n\t\t/* ____________ First get an approximate value of BIGE ______________________*/\r\n\t\t\r\n\t\tTANE = Trig.DegTAN ( EM ) / ( Trig.DegCOS ( EM ) - E );\r\n\t BIGE = Math.atan ( TANE ) * TRGVAR.R_to_D;\r\n\t E0 = E * TRGVAR.R_to_D;\r\n\t \r\n\t BIGE = BIGE % 360;\r\n\t BIGE0 = BIGE ;\r\n\t \r\n\t BIGE = BIGE0 + ( EM + E0 * Trig.DegSIN ( BIGE0 ) - BIGE0 ) / ( 1. - E * Trig.DegCOS ( BIGE0 ));\r\n\t \r\n\t /* ____________ Get more accurate value of BIGE by iteration ______________________*/\r\n\t \r\n\t COUNT = 0;\r\n\t ERROR = Math.abs (( BIGE - BIGE0 ) / BIGE0 );\r\n\t BIGE0 = BIGE ;\r\n\t \r\n\t while ( ERROR > 0.000001 || COUNT < 20) {\r\n\t \tBIGE = BIGE0 + ( EM + E0 * Trig.DegSIN ( BIGE0 ) - BIGE0 ) / ( 1. - E * Trig.DegCOS ( BIGE0 ));\r\n\t \tERROR = Math.abs (( BIGE - BIGE0 ) / BIGE0 ); //loop body\r\n\t \tBIGE0 = BIGE;\r\n\t \tCOUNT++;\r\n\t \t}\r\n\t \r\n\t TANVB2 = Math.sqrt (( 1.+E ) / ( 1.-E )) * Trig.DegTAN ( BIGE / 2. );\r\n\t \r\n\t TRUANA = 2. * Math.atan ( TANVB2 ) * TRGVAR.R_to_D;\r\n\t TRUANA = TRUANA % 360;\r\n\t \r\n\t System.out.println( \" ERROR = \" + ERROR + \" COUNT = \" + COUNT + \" BIGE = \" + BIGE + \" TRUANA = \" + TRUANA );\r\n\t \r\n\r\n\t}", "public void test_sf_948995() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM ); // OWL dl\n DatatypeProperty dp = m.createDatatypeProperty( NS + \"dp\" );\n dp.addRDFType( OWL.InverseFunctionalProperty );\n \n boolean ex = false;\n try {\n dp.as( InverseFunctionalProperty.class );\n }\n catch (ConversionException e) {\n ex = true;\n }\n assertTrue( \"Should have been a conversion exception\", ex );\n \n m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM ); // OWL full\n dp = m.createDatatypeProperty( NS + \"dp\" );\n dp.addRDFType( OWL.InverseFunctionalProperty );\n \n ex = false;\n try {\n dp.as( InverseFunctionalProperty.class );\n }\n catch (ConversionException e) {\n ex = true;\n }\n assertFalse( \"Should not have been a conversion exception\", ex );\n }", "public AnomaliesWrapper test2NF();", "public boolean epsilonEquals(Matrix4f other, float e) {\r\n\t\tRadical1 passback = new Radical1();\r\n\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 (!FastMath.epsilonEquals(other.get(i, j), this.get(i, j, passback).floatValue(), e))\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn (true);\r\n\t}", "static double mediaAritmetica (double c, int e, int f) {\n return (c+e+f)/3;\n }", "public Fraccion resta() {\r\n return new Fraccion(operador1.getNumerador()*operador2.getDenominador() - operador1.getDenominador()*operador2.getNumerador(),\r\n operador1.getDenominador()*operador2.getDenominador());\r\n }", "double getAxon();", "public void notaFinal() {\n\n for (int i = 0; i <= (nombres.size() - 1); i++) {\n\n notaFinal.add((notas.get(0) + notas.get(1) + notas.get(2)) / 3);\n\n }\n\n }", "@Test\n public void test02() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = regulaFalsiSolver0.solve(2044, (UnivariateRealFunction) log1p0, (-517.825700479), (double) 0, 1711.029259737, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }", "private NFA union(NFA nfa1, NFA nfa2) {\n NFA result = new NFA();\n\n String startState = String.valueOf(stateInc++);\n result.addStartState(startState);\n result.addNFAStates(nfa1.getStates());\n result.addNFAStates(nfa2.getStates());\n result.addTransition(startState, 'e', nfa1.getStartState().getName());\n result.addTransition(startState, 'e', nfa2.getStartState().getName());\n result.addAbc(nfa1.getABC());\n result.addAbc(nfa2.getABC());\n\n return result;\n\n }", "private int annaEtaisyys(int x1, int y1, int x2, int y2)\n\t{\n\t\tdouble a = x1 - x2;\n\t\tdouble b = y1 - y2;\n\t\t\n\t\treturn (int) Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\n\t}", "private Proof faxm1Convert(Proof p) {\n Equals eq = (Equals) p.lastExpr();\n Expression s = eq.firstArgument;\n Expression t = eq.secondArgument;\n return mpBack(faxm1Gen(s, t), p);\n }", "public abstract C0620bi mo9231aF();", "public double sueldoNeto(double salario)\n {\n double salarioN=salario - (isss(salario)+afp(salario)+renta(salario));\n return salarioN;\n }", "private static String takanoFormula(int npidigits) throws Exception {\n int nterms49 = arctanNterms(npidigits, 1, 49);\n int nterms57 = arctanNterms(npidigits, 1, 57);\n int nterms239 = arctanNterms(npidigits, 1, 239);\n int nterms110443 = arctanNterms(npidigits, 1, 110443);\n\n int[] nterms = { nterms49, nterms57, nterms239, nterms110443 };\n int[] multiplicators = { 4*12, 4*32, 4*-5, 4*12 };\n int[] parts = { 49, 57, 239, 110443 };\n\n // run in parallel\n ExecutorService executor = Executors.newCachedThreadPool();\n List<Future<Q10>> results = new ArrayList<>();\n\n for (int i = 0; i < 4; i++) {\n int index = i;\n Future<Q10> f = executor.submit(() -> {\n Q10 term = Q10.multiply(\n Q10.of(multiplicators[index]),\n arctan(Q10.of(1, parts[index]), nterms[index]));\n\n return term;\n });\n\n results.add(f);\n }\n\n Q10 pi = Q10.of(0);\n for (int i = 0; i < 4; i++) {\n pi = Q10.add(pi, results.get(i).get());\n }\n\n executor.shutdown();\n return pi.toDecimalString(npidigits);\n }", "@FXML\r\n public void calculoRaiz() {\r\n try{\r\n setType();\r\n setFuncion();\r\n //Primero limpiamos el text area para eliminar lo que se calculo anteriormente.\r\n txtArea.setText(\"\");\r\n double tol = Double.parseDouble(txtTol.getText());\r\n int n = Integer.parseInt(txtN.getText());\r\n int i = 1;\r\n double P0 = getP0();\r\n double P;\r\n while (i < n) { \r\n\r\n String ecuacion = \"P0 -(f(P0)/fd(P0))\";\r\n\r\n System.out.println(\"test11\"+f(P0));\r\n System.out.println(\"test12\"+fd(P0));\r\n\r\n if(f(P0)<0){\r\n double aux = f(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"f(P0)\", aux2);\r\n }else{\r\n double aux = f(P0);\r\n ecuacion = ecuacion.replace(\"f(P0)\", \"\"+aux);\r\n }\r\n if(fd(P0)<0){\r\n double aux = fd(P0);\r\n String aux2 = aux +\"\";\r\n aux2 = aux2.replace(\"-\",\"!\");\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", aux2);\r\n }else{\r\n double aux = fd(P0);\r\n\r\n ecuacion = ecuacion.replace(\"fd(P0)\", \"\"+aux);\r\n }\r\n if(P0<0){\r\n String a = P0+\"\";\r\n a = a.replace(\"-\",\"!\");\r\n ecuacion = ecuacion.replace(\"P0\",a);\r\n }else{\r\n ecuacion = ecuacion.replace(\"P0\",P0+\"\");\r\n }\r\n System.out.println(ecuacion+\"hola\");\r\n in.setFuncion(ecuacion);\r\n\r\n P = in.getResultado();\r\n System.out.println(P);\r\n txtArea.setText(txtArea.getText()+\"\\n\\tIteracion \" + i\r\n + \"\\n\\t\" + \"P= \" +interpretador.getFlotante(new BigDecimal(P))+\"\\n\\t\" + \r\n \"P0= \" + interpretador.getFlotante(new BigDecimal(P0)));\r\n if (Math.abs(P - P0) < tol) {\r\n txtRaiz.setText(interpretador.getFlotante(new BigDecimal(P))+\"\");\r\n // txtRaiz.setText(P+\"\");\r\n return;\r\n }\r\n \r\n i = i +1;\r\n P0 = P;\r\n }\r\n \r\n }catch(Exception e){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Información\");\r\n alert.setContentText(\"Error de sintaxis. Verifique que haya escrito la función correctamente\");\r\n alert.showAndWait();\r\n }\r\n }", "@Test\n public void testVerser2() {\n\n //Arrange\n CompteBancaire cpt = new CompteBancaire(6500.0);\n double montant_a_verser = -2000.0;\n double excepted = 6500.0;\n\n //Act\n assertEquals(false, cpt.verser(montant_a_verser));\n\n //Assert\n assertEquals(excepted, cpt.getSolde(), 0);\n\n }", "private Proof impossibility(Expression a, Expression b) {\n Proof axm1 = axm1(a, b); //a -> b -> a\n Proof contra = contra(b, a); //(b -> a) -> (!a -> !b)\n return implTrans(axm1, contra);//a -> !a -> !b\n }", "public String apavada_vriddhi(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA UNO**********\");\n Log.info(\"X_adi == \" + X_adi);\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta);\n // x.transform(X_anta); // anta is ITRANS equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi);\n // x.transform(X_adi); // adi is ITRANS equivalent\n\n Log.info(\"adi == \" + adi);\n\n String return_me = \"UNAPPLICABLE\";\n\n boolean bool1 = VowelUtil.isAkaranta(X_anta) && (adi.equals(\"eti\") || adi.equals(\"edhati\"));\n boolean bool2 = VowelUtil.isAkaranta(X_anta) && adi.equals(\"UTh\");\n\n // 203\n // **********IF****************//\n if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"f\")) // watch out!!! must\n // be SLP not ITRANS\n {// checked:29-6\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"f\" + strip2;\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRiti RRi vA vacanam\");\n comments.setSutraProc(\"hrasva RRikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"small RRi followed by small RRi merge to become small RRi.\\n\" + \"RRi + RRi = RRi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 204\n // **********IF****************//\n else if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"x\")) // watch out!!!\n // must be SLP\n // not ITRANS\n { // checked:29-6 // SLP x = ITRANS LLi\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"x\" + strip2; // SLP\n // x =\n // ITRANS\n // LLi\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"LLiti LLi vA vacanam\");\n comments.setSutraProc(\"hrasva LLikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \" RRi/RRI followed by small LLi merge to become small LLi.\\n RRi/RRI + LLi = LLi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 207a-b\n // **********ELSE IF****************//\n else if (bool1 || bool2)\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.86\");\n comments.setSutraPath(\"eti-edhati-UThsu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.sutra);\n\n String cond1 = \"akaara followed by declensions of 'iN', 'edha' and 'UTh\" + \"<eti/edhati/UTh> are replaced by their vRRiddhi counterpart.\\n\" + \"a/A/a3 + eti/edhati/UTha = VRRiddhi Counterpart.\\n\" + \"Pls. Note.My Program cannot handle all the declensions of given roots.\" + \"Hence will only work for one instance of Third Person Singular Form\";\n comments.setConditions(cond1);\n\n String cond2 = \"Blocks para-rupa Sandhi given by 'e~ni pararUpam' which had blocked Normal Vriddhi Sandhi\";\n\n if (bool1)\n comments.append_condition(cond2);\n else if (bool2) comments.append_condition(\"Blocks 'Ad guNaH'\");\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 208\n // **********ELSE IF****************//\n else if (anta.equals(\"akSa\") && adi.equals(\"UhinI\"))\n {// checked:29-6\n return_me = \"akzOhiRI\"; // u to have give in SLP..had\n // ITRANS....fixed\n // not sending to vrridhit_sandhi becose of Na-inclusion\n // vriddhi_sandhi(X_anta,X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // ***/vowel_notes.decrement_pointer();/***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"akSAdUhinyAm\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"akSa + UhinI = akshauhiNI.Vartika blocks guna-sandhi ato allow vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // 209\n // **********ELSE IF****************//\n else if (anta.equals(\"pra\") && (adi.equals(\"Uha\") || adi.equals(\"UDha\") || adi.equals(\"UDhi\") || adi.equals(\"eSa\") || adi.equals(\"eSya\")))\n // checked:29-6\n {\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"prAd-Uha-UDha-UDhi-eSa-eSyeSu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"upasarga 'pra' + <prAd/Uha/UDha/UDhi/eSa/eSya> = vRRiddhi-ekadesha.\" + \"\\nVartika blocks para-rupa Sandhi and/or guna Sandhi to allow vRRidhi-ekadesh.\";\n\n comments.setConditions(cond1);\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 210\n // **********ELSE IF****************//\n else if (anta.equals(\"sva\") && (adi.equals(\"ira\") || adi.equals(\"irin\")))\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"svaadireriNoH\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"sva + <ira/irin> = vRRIddhi.\\n Blocks Guna Sandhi.\" + \"\\nPls. note. My program does not cover sandhi with declensions.\";\n comments.setConditions(cond1);\n }\n\n // **********END OF ELSE IF****************//\n\n // 211 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (VowelUtil.isAkaranta(X_anta) && X_adi.equals(\"fta\"))// adi.equals(\"RRita\"))\n {\n // checked:29-6\n // not working for 'a' but working for 'A'. Find out why...fixed\n\n return_me = utsarga_prakruti_bhava(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRite ca tRRitIyAsamAse\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If an akaranta ('a/aa/a3'-terminating phoneme) is going to form a Tritiya Samas compound with a RRi-initial word\" + \" vRRiddhi-ekadesha takes place blocking other rules.\\n\" + \"a/A/a3 + RRi -> Tritiya Samaasa Compound -> vRRiddhi-ekadesh\" + depend;\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 212-213\n // **********ELSE IF****************//\n else if ((anta.equals(\"pra\") || anta.equals(\"vatsatara\") || anta.equals(\"kambala\") || anta.equals(\"vasana\") || anta.equals(\"RRiNa\") || anta.equals(\"dasha\")) && adi.equals(\"RRiNa\"))\n\n // checked:29-6\n { // pra condition not working...fixed now . 5 MAR 05\n // return_me = guna_sandhi(X_anta,X_adi) + \", \" +\n // prakruti_bhava(X_anta,X_adi)\n\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n // vowel_notes.set_sutra_num(\"\") ;\n comments.setVartikaPath(\"pra-vatsatara-kambala-vasanArNa dashaanAm RRiNe\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If 'pra' etc are followed by the word 'RRiNa',\" + \" vRRiddhi-ekadesh takes place blocking Guna and Prakruti Bhava Sandhis.\" + \"\\n<pra/vatsatara/kambala/vasana/RRiNa/dash> + RRiNa = vRRiddhi\";\n comments.setConditions(cond1);\n }\n // ???? also implement prakruti bhava\n\n /**\n * **YEs ACCORDING TO SWAMI DS but not according to Bhaimi Bhashya else\n * if ( adi.equals(\"RRiNa\") && (anta.equals(\"RRiNa\") ||\n * anta.equals(\"dasha\")) ) { return_me = vriddhi_sandhi(X_anta,X_adi);\n * //*sandhi_notes = VE + apavada + vartika + \"'RRiNa dashAbhyAm ca'.\" +\n * \"\\nBlocks Guna and Prakruti Bhava Sandhi\";\n * \n * vowel_notes.start_adding_notes(); vowel_notes.set_sutra_num(\"\") ;\n * vowel_notes.set_vartika_path(\"RRiNa dashAbhyAm ca\") ;\n * vowel_notes.set_sutra_proc(\"Vriddhi-ekadesh\");\n * vowel_notes.set_source(tippani.vartika) ; String cond1 =depend +\n * \"Blocks Guna and Prakruti Bhava Sandhi\";\n * vowel_notes.set_conditions(cond1);\n * /* return_me = utsarga_prakruti_bhava(X_anta,X_adi) + \", \" +\n * vriddhi_sandhi(X_anta,X_adi) + \"**\"; sandhi_notes = usg1 +\n * sandhi_notes; sandhi_notes+= \"\\n\" + usg2 + VE +apavada + vartika +\n * \"'RRiNa dashAbhyAm ca'.\" + depend; // .... this was when I assumed\n * this niyama is optional with other // ???? also implement prakruti\n * bhava }\n */\n // **********END OF ELSE IF****************//\n // 214 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (anta.equals(\"A\") && VowelUtil.isAjadi(X_adi))\n {\n // checked:29-6\n // rules is A + Vowel = VRddhi\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n /*******************************************************************\n * sandhi_notes = usg1 + sandhi_notes + \"\\n\" + usg2 ; // We have to\n * remove vriddhi_sandhi default notes // this is done by /\n ******************************************************************/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.87\");\n comments.setSutraPath(\"ATashca\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"if String 1 equals 'aa' and implies 'AT'-Agama and \" + \"String 2 is a verbal form. E.g. A + IkSata = aikSata not ekSata.\\n\" + \" 'aa' + Verbal Form = vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n // akaranta uparga mein error....fixed 4 MAR\n // 215 Vik Semantic Dependency\n else if (is_akaranta_upsarga(X_anta) && X_adi.startsWith(\"f\")) // RRi\n // ==\n // SLP\n // 'f'USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n { // according to Vedanga Prakash Sandhi Vishaya RRIkara is being\n // translated\n // but checked with SC Basu Trans. it is RRIta not RRikara\n // checked:29-6\n\n Log.info(\" Rules 215 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // vowel_notes.decrement_pointer();\n\n // July 14 2005.. I have removed the above line\n // vowel_notes.decrement_pointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.88\");\n comments.setSutraPath(\"upasargAdRRiti dhAtau\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"akaranta upsarga(preverb) followed by verbal form begining with short RRi.\\n \" + \"preverb ending in <a> + verbal form begining with RRi = vRRiddhi-ekadesha\\n\";\n\n /*\n * \"By 6.1.88 it should block all \" + \"optional forms but by 'vA\n * supyApishaleH' (6.1.89) subantas are \" + \"permitted the Guna\n * option.\";\n */\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA UNO**********\");\n\n if (return_me.equals(\"UNAPPLICABLE\"))\n {\n return_me = apavada_para_rupa(X_anta, X_adi); // search for more\n // apavada rules\n }\n return return_me; // apavada rules formulated by Panini apply\n }", "E atan(final E n);", "@Test\n public void testSuma() {\n assertEquals(new Fraccion(12.0, 9.0), instance.suma());\n assertEquals(12.0, instance.suma().getNumerador(), 0.001);\n assertEquals(9.0, instance.suma().getDenominador(), 1.0E-3); // 1.0 ^ -3 -> 1 / 1000\n }", "public Estudiante(String nombre, String nAsignatura, double nota1B, double nota2B){\r\n this.nombre = nombre;\r\n this.nAsignatura = nAsignatura;\r\n this.nota1B = nota1B;\r\n this.nota2B = nota2B;\r\n }", "boolean mo61579as(float f);", "public double calculaErro(double soma) {\n erro = funçãoPropagação.derivada(net)*soma;\n return erro;\n }", "public void mo3770E() {\n int i = this.f1434I;\n int i2 = this.f1435J;\n this.f1462ak = i;\n this.f1463al = i2;\n this.f1464am = (this.f1430E + i) - i;\n this.f1465an = (this.f1431F + i2) - i2;\n }", "org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideFormula xgetFmla();", "private Token casoEspecial(Token palabra) throws IOException {\n\t\tString lexema = palabra.get_lexema();\n\t\tToken aux;\n\t\t// Comprobamos si es un posible caracter\n\t\tif (lexema.equals(\"'\")) {\n \t\t\tpalabra.set_lexema(construyeCaracter(lexema));\t\n\t\t}\n\t\t// Comprobamos si es \"program:\"\n\t\telse if (lexema.equals(\"program\")) {\n\t\t\tif((aux=this.nextTokenWithWhites()).get_lexema().equals(\":\")) {\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\tpalabra.set_lexema(lexema);\t\t\t\n\t\t\t} else \n\t\t\t\ttokens.pushBack();\t\t\t\t\n\t\t}\n\t\t// Comprobamos si es \"subprogram:\"\n\t\telse if (lexema.equals(\"subprogram\")) {\n\t\t\tif((aux=this.nextTokenWithWhites()).get_lexema().equals(\":\")) {\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\tpalabra.set_lexema(lexema);\t\t\t\n\t\t\t} else \n\t\t\t\ttokens.pushBack();\t\t\t\t\n\t\t}\n\t\t// Comprobamos si es :=,>=,<=,!=,=,==\n\t\telse if (lexema.matches(\"\\\\:|\\\\>|\\\\<|\\\\=|\\\\!\")) {\n\t\t\tif((aux = this.nextTokenWithWhites()).get_lexema().equals(\"=\") || lexema.equals(\"<\") && aux.get_lexema().equals(\"<\") ||\n\t\t\t\t\tlexema.equals(\">\") && aux.get_lexema().equals(\">\")) {\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\tpalabra.set_lexema(lexema);\n\t\t\t} else \n\t\t\t\ttokens.pushBack();\t\n\t\t}\t\t\n\t\t// Comprobamos si es un casting\n\t\t/*else if (lexema.equals(\"(\")) {\n\t\t\tif((aux = this.nextToken()).get_lexema().matches(\"integer|int|float|character|char|natural|nat\")) {\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\taux = this.nextToken();\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\tpalabra.set_lexema(lexema);\n\t\t\t} else\n\t\t\t\ttokens.pushBack();\t\n\t\t}*/\n\t\t// Comprobamos si es un numero exponencial\n\t\telse if (lexema.matches(\"[0-9]+(.[0-9]+)?(e|E)\")) {\n\t\t\taux=this.nextToken();\n\t\t\tif (aux.get_lexema().equals(\"-\")) {\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\taux=this.nextToken();\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\tpalabra.set_lexema(lexema);\n\t\t\t} else if (aux.get_lexema().matches(\"[0-9]+\")) {\n\t\t\t\tlexema = lexema+aux.get_lexema();\n\t\t\t\taux=this.nextToken();\n\t\t\t\tpalabra.set_lexema(lexema);\n\t\t\t}else {\n\t\t\t\ttokens.pushBack();\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn palabra;\n\t}", "private void berechneNeuenWert () {\r\n try {\r\n double ergebnis = 0d;\r\n for (JTextComponent wert : this.wertOperator.keySet()) {\r\n if (this.ignoriereWhitespaceEingabefelder && wert.getText().trim().length() == 0) {\r\n continue;\r\n }\r\n final char operator = this.wertOperator.get(wert);\r\n final double operand = Double.parseDouble(wert.getDocument().getText(0, wert.getDocument().getLength()).trim());\r\n switch (operator) {\r\n case '*':\r\n ergebnis *= operand;\r\n break;\r\n case '/':\r\n ergebnis /= operand;\r\n break;\r\n case '-':\r\n ergebnis -= operand;\r\n break;\r\n case '+':\r\n ergebnis += operand;\r\n break;\r\n case '=':\r\n ergebnis = operand;\r\n break;\r\n }\r\n }\r\n String text = Double.toString(ergebnis);\r\n if (this.anzahlDerNachkommastellen <= 0 && text.indexOf('.') != -1) {\r\n text = text.substring(0,text.indexOf('.'));\r\n }\r\n else {\r\n // Kommastellen hinzufügen\r\n if (text.indexOf('.') == -1) {\r\n text += '.';\r\n }\r\n // ggf. mit Nullen hinten auffüllen\r\n while (text.indexOf('.') + anzahlDerNachkommastellen > text.length() -1) {\r\n text += '0';\r\n }\r\n // Abschneiden zuviel vorhandener Stellen\r\n if (text.length() - 1 > text.indexOf('.') +anzahlDerNachkommastellen) {\r\n text = text.substring(0,text.indexOf('.')+anzahlDerNachkommastellen+1);\r\n }\r\n }\r\n this.setText(text);\r\n }\r\n catch (final Exception berechnungsProblem) {\r\n this.setText(this.zeigeFehlerAn ? \"#WERT!\" : \"\");\r\n }\r\n }", "@Test\n public void test03() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (-2623.33457), 0.0);\n Gaussian gaussian0 = new Gaussian();\n AllowedSolution allowedSolution0 = AllowedSolution.BELOW_SIDE;\n double double0 = regulaFalsiSolver0.solve(1253, (UnivariateRealFunction) gaussian0, (-979.1), (-347.4), 0.0, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }", "static WireloopReward constantCost() {\n return (s, a, n) -> RealScalar.of(-1.4); // -1.2\n }", "public abstract double calcSA();", "private static float m82748a(float f) {\n if (f == 0.0f) {\n return 1.0f;\n }\n return 0.0f;\n }", "@Test\n public void fastSigmoidAlternativeLooksAlright()\n {\n TextPlot.plotf(x -> fastSigmoidAlternative(x), -5, 5, 0, 1, 100, 40);\n TextPlot.plotf(x -> fastSigmoidAlternative(x, 0, 1), -5, 5, 0, 1, 100, 40);\n TextPlot.plotf(x -> fastSigmoidAlternative(x, -1, 0), -5, 5, -1, 0, 100, 40);\n TextPlot.plotf(x -> fastSigmoidAlternative(x, -7, 3), -5, 5, -7, 3, 100, 40);\n }" ]
[ "0.7115305", "0.5710779", "0.5666044", "0.5611057", "0.5609009", "0.54863125", "0.5485762", "0.5411949", "0.5400166", "0.52985823", "0.52943116", "0.5280824", "0.52394634", "0.5233767", "0.52259725", "0.52166283", "0.52096325", "0.5202657", "0.51820856", "0.5173847", "0.51668", "0.5159843", "0.51539326", "0.5141434", "0.5141298", "0.5137283", "0.5133936", "0.51283205", "0.50841975", "0.50780445", "0.5076757", "0.50759196", "0.5073736", "0.5072822", "0.5070601", "0.5055084", "0.5047637", "0.50397307", "0.50295544", "0.5025435", "0.5008861", "0.500466", "0.4998885", "0.49915034", "0.4988396", "0.49758476", "0.49735922", "0.49592075", "0.49587137", "0.4956012", "0.49524042", "0.49468854", "0.4920132", "0.4915666", "0.4903469", "0.4903012", "0.49002844", "0.49001625", "0.4899033", "0.48980704", "0.48937184", "0.48936173", "0.48934555", "0.48925024", "0.48806104", "0.48772284", "0.48715302", "0.48522246", "0.48485282", "0.48441753", "0.48420238", "0.4841888", "0.4838254", "0.48347035", "0.48345733", "0.48326647", "0.48320183", "0.4828049", "0.48277074", "0.4826898", "0.48143798", "0.4814069", "0.48133242", "0.48131886", "0.48091194", "0.4808785", "0.4807255", "0.48071525", "0.47953823", "0.47941002", "0.47934192", "0.47928834", "0.47912258", "0.47902313", "0.47895133", "0.47830743", "0.4780695", "0.477746", "0.47747883", "0.477453" ]
0.74279714
0
/ metodo: Equivalencia AFN para AFD objetivo: Criar o Automato AFD equivalente
public Automato equalAFN2AFD(Automato a){ Automato r = a; Estado morto = new Estado("morto"); r.addEstado(morto); r.addTransicao(morto,morto,'0'); r.addTransicao(morto,morto,'1'); Iterator<Estado> it = r.getQ().iterator(); while(it.hasNext()){ Estado e = it.next(); if (r.findAll(e, '0').isEmpty()){ r.addTransicao(e, morto, '0'); } if (r.findAll(e, '1').isEmpty()){ r.addTransicao(e, morto, '1'); } } Operacao.updateIndex(r); return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Automato equalAF2AFN(Automato a){\n\t\t//a construcao da equivalencia de A será feita, utilizando a \n\t\t//tecnica de busca em largura.\n\t\t\n\t\tAutomato r = new Automato();\n\t\t//fechamento transitivo vazio (Epsilon)\n\t\tArrayList<Estado> fecho = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '0'\n\t\tArrayList<Estado> zero = new ArrayList<>();\n\t\t//conjunto de estados resultante do movimento com simbolo '1'\n\t\tArrayList<Estado> um = new ArrayList<>();\n\t\t//fila com os filhos(zero e um) do fechamento transtivo\n\t\tArrayList<ArrayList<Estado>> fila = new ArrayList<>();\n\t\t//calcula o fechamento do estado inicial\n\t\tfecho = a.fechamento(a.getQ().get(0));\n\t\tfila.add(fecho);\n\t\twhile(!fila.isEmpty()){\n\t\t\tfecho = fila.get(0);\n\t\t\tEstado inicial = new Estado(montar(fecho));\n\t\t\t//se os estado nao existir cria-se esse novo estado.\n\t\t\tif (!r.existe(inicial))\n\t\t\t\tr.addEstado(inicial);\n\t\t\telse\n\t\t\t\tinicial = r.getEstado(inicial);\n\t\t\t//calcula os movimentos com 0 e 1\n\t\t\tzero = a.movimento(fecho, '0');\n\t\t\tum = a.movimento(fecho, '1');\n\t\t\tif (!zero.isEmpty()){\n\t\t\t\t//se possui movimento com 0 calcula o fechamento\n\t\t\t\tfecho = a.fechamento(zero);\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '0')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '0');\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!um.isEmpty()){\n\t\t\t\tfecho = a.fechamento(um);\n\t\t\t\t\n\t\t\t\tEstado e = new Estado(montar(fecho));\n\t\t\t\tif (!r.existe(e))\n\t\t\t\t\t//se o estado nao existe cria o estado\n\t\t\t\t\tr.addEstado(e);\n\t\t\t\telse\n\t\t\t\t\te = r.getEstado(e);\n\t\t\t\tif (!r.existe(inicial, e, '1')){\n\t\t\t\t\t//se a trasicao nao existe cria a transicao\n\t\t\t\t\t//e adiciona o fechamento na fila\n\t\t\t\t\tfila.add(fecho);\n\t\t\t\t\tr.addTransicao(inicial, e, '1');\n\t\t\t\t}\n\t\t\t}\n\t\t\tfila.remove(0);\n\t\t}\n\t\tatribuirFinais(r, a.getF());\n\t\tOperacao.updateIndex(r);\n\t\treturn r;\n\t}", "@Test\n public void convertAFby() {\n DistEventType x = DistEventType.LocalEvent(\"x\", 0);\n DistEventType y = DistEventType.LocalEvent(\"y\", 0);\n\n TemporalInvariantSet synInvs = new TemporalInvariantSet();\n synInvs.add(new AlwaysFollowedInvariant(x, y, \"t\"));\n List<dynoptic.invariants.BinaryInvariant> dynInvs = DynopticMain\n .synInvsToDynInvs(synInvs);\n assertTrue(dynInvs.size() == 1);\n\n BinaryInvariant dInv = dynInvs.iterator().next();\n assertTrue(dInv instanceof AlwaysFollowedBy);\n assertTrue(dInv.getFirst().equals(x));\n assertTrue(dInv.getSecond().equals(y));\n }", "public IFilialAux vendaToFilial();", "public IFatura vendaToFatura();", "public java.lang.String getFA(){\r\n return localFA;\r\n }", "public Familia(String cedulaFam,Persona per,Persona per2)\n {\n cedulaFamiliar = cedulaFam;\n used = true;\n activa = true;\n asociado1 = per;\n asociado2 = per2;\n //cabeza=per;\n hijos_Ambos=null;\n hijos_Adoptados=null; \n next=null;\n }", "private Proof faxm1Convert(Proof p) {\n Equals eq = (Equals) p.lastExpr();\n Expression s = eq.firstArgument;\n Expression t = eq.secondArgument;\n return mpBack(faxm1Gen(s, t), p);\n }", "java.lang.String getFmla();", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "boolean NFAtoDFA(){\n\t\tn2dfa_start=new DFA_State();\n\t\tHashSet<NFA_State> nfas=new HashSet<NFA_State>();\n\t\tnfas.add(nfa_start);\n\t\tnfas=getEClosure(nfas);\n\t\tspreadDFA(nfas,n2dfa_start);\n\t\treturn true;\n\t}", "private AFD buildAFD() {\n\t\tfor (Cerradura cerradura : cerraduras) {\n\t\t\tEstado origen = getState(cerradura);\n\t\t\tEstado destino = null;\n\n\t\t\tfor (pol.una.py.model.lexico.Cerradura.Subconjunto conjunto : cerradura\n\t\t\t\t\t.getSubconjuntos()) {\n\t\t\t\tString codigoUnico = conjunto.getCodCerradura();\n\t\t\t\t// Conjunto vacio\n\t\t\t\tif (codigoUnico.equals(\"{}\")) {\n\t\t\t\t\tdestino = getStateError();\n\t\t\t\t} else {\n\t\t\t\t\tdestino = getState(getCerradura(codigoUnico));\n\n\t\t\t\t}\n\t\t\t\torigen.addTransition(new Transicion(origen, destino, conjunto\n\t\t\t\t\t\t.getSymbol()));\n\n\t\t\t}\n\t\t\tautomata.addEstado(origen);\n\t\t}\n\t\t// Puede darse el caso de que el estado inicial del AFN no sea mas un\n\t\t// estado inicial, sino un estado de aceptacion. Si no es un estado de\n\t\t// aceptacion, indicamos que es el estado inicial.\n\t\tif (!automata.getInitState().isAcceptation()) {\n\t\t\tautomata.getInitState().setInit(true);\n\t\t}\n\t\treturn automata;\n\t}", "@Test\n public void test_NFAtoDFAConversion_baseline() {\n NFADesign nfaDesign = new NFADesign(STATE1, Arrays.asList(STATE3), NFA_RULEBOOK);\n assertFalse(nfaDesign.accepts(\"aaa\"));\n assertTrue(nfaDesign.accepts(\"aab\"));\n assertTrue(nfaDesign.accepts(\"bbbabb\"));\n }", "public abstract C0620bi mo9231aF();", "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 }", "boolean isUF(Formula f);", "public abstract void afvuren();", "public void test_sf_948995() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM ); // OWL dl\n DatatypeProperty dp = m.createDatatypeProperty( NS + \"dp\" );\n dp.addRDFType( OWL.InverseFunctionalProperty );\n \n boolean ex = false;\n try {\n dp.as( InverseFunctionalProperty.class );\n }\n catch (ConversionException e) {\n ex = true;\n }\n assertTrue( \"Should have been a conversion exception\", ex );\n \n m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM ); // OWL full\n dp = m.createDatatypeProperty( NS + \"dp\" );\n dp.addRDFType( OWL.InverseFunctionalProperty );\n \n ex = false;\n try {\n dp.as( InverseFunctionalProperty.class );\n }\n catch (ConversionException e) {\n ex = true;\n }\n assertFalse( \"Should not have been a conversion exception\", ex );\n }", "public static void InverseA(double pos_x1, double pos_x2, double pos_x3, double pos_y1, double pos_y2, double pos_y3, double fX, double fY, double fZ,\n double tX, double tY, double tZ, double h11, double h21, double k1, double h12, double h22, double k2, double h13, double h23,\n double k3, YoDouble fx1, YoDouble fz1, YoDouble fx2, YoDouble fy2, YoDouble fz2, YoDouble fz3)\n\n {\n double s42, s44, s45, s46, s51, s52;\n double s53, s55, s56, s61, s63, s64;\n\n double t11, t12, t16;\n double t21, t22, t23, t24, t25, t26;\n double t31, t32, t36;\n double t42;\n double t51, t52, t53, t54, t55, t56;\n double t61, t62, t63, t64, t65, t66;\n\n double cd;\n\n s42 = (pos_y1 + AgileHexapodRobot.LEN * Math.cos(h21) * (Math.sin(h11 + k1) + Math.sin(h11)));\n s44 = (-2.0 * AgileHexapodRobot.LEN * Math.sin(h11) * Math.sin(k1) - AgileHexapodRobot.LEN * Math.sin(h12) * Math.sin(k2)\n - AgileHexapodRobot.LEN * Math.sin(h13) * Math.sin(k3) + AgileHexapodRobot.LEN * Math.cos(h12) * (Math.cos(k2) + 1)\n + AgileHexapodRobot.LEN * Math.cos(h13) * (Math.cos(k3) + 1) + 2.0 * AgileHexapodRobot.LEN * Math.cos(h11) * (Math.cos(k1) + 1));\n s45 = (pos_y2 + AgileHexapodRobot.LEN * Math.cos(h22) * (Math.sin(h12 + k2) + Math.sin(h12)));\n s46 = (pos_y3 + AgileHexapodRobot.LEN * Math.cos(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n s51 = (-AgileHexapodRobot.LEN * Math.cos(h11 + k1) - AgileHexapodRobot.LEN * Math.cos(h11));\n s52 = (-pos_x1 + AgileHexapodRobot.LEN * Math.sin(h21) * (Math.sin(h11 + k1) + Math.sin(h11)));\n s53 = (AgileHexapodRobot.LEN * Math.cos(h12) * (-Math.cos(k2) - 1) + AgileHexapodRobot.LEN * Math.cos(h13) * (-Math.cos(k3) - 1)\n + AgileHexapodRobot.LEN * Math.sin(h12) * Math.sin(k2) + AgileHexapodRobot.LEN * Math.sin(h13) * Math.sin(k3));\n s55 = (-pos_x2 + AgileHexapodRobot.LEN * Math.sin(h22) * (Math.sin(h12) * (Math.cos(k2) + 1) + Math.cos(h12) * Math.sin(k2)));\n s56 = (-pos_x3 + AgileHexapodRobot.LEN * Math.sin(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n s61 = (-pos_y1 - AgileHexapodRobot.LEN * Math.cos(h21) * (Math.sin(h11 + k1) + Math.sin(h11)));\n s63 = (-pos_y2 - pos_y3 - AgileHexapodRobot.LEN * Math.cos(h22) * (Math.sin(h12 + k2) + Math.sin(h12))\n - AgileHexapodRobot.LEN * Math.cos(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n s64 = (2.0 * pos_x1 + pos_x2 + pos_x3 - 2.0 * AgileHexapodRobot.LEN * Math.sin(h21) * (Math.sin(h11 + k1) + Math.sin(h11))\n - AgileHexapodRobot.LEN * Math.sin(h22) * (Math.sin(h12 + k2) + Math.sin(h12))\n - AgileHexapodRobot.LEN * Math.sin(h23) * (Math.sin(h13 + k3) + Math.sin(h13)));\n\n DET.set((4.0 * s63 - 8.0 * s61) * (s42 * (s55 - s56) + s45 * (-s52 + s56) + s46 * (s52 - s55)));\n\n if ((DET.getDoubleValue() > -0.001) && (DET.getDoubleValue() < 0.0))\n DET.set(-0.001);\n if ((DET.getDoubleValue() < 0.001) && (DET.getDoubleValue() > 0.0))\n DET.set(0.001);\n\n cd = 4.0 * s63 - 8.0 * s61;\n\n t11 = (4.0 * s63 * DET.getDoubleValue()) / (cd);\n t12 = (2.0 * s64 * DET.getDoubleValue()) / (cd);\n t16 = (-8.0 * DET.getDoubleValue()) / (cd);\n\n t21 = 4.0 * (s53 * s61 - s51 * s63) * (s46 - s45);\n t22 = s51 * s64 * (-2.0 * s46 + 2.0 * s45) + s53 * s64 * (-s45 + s46) + s55 * s44 * (-s63 + 2.0 * s61) + s56 * s44 * (-2.0 * s61 + s63);\n t23 = cd * (s45 * s56 - s46 * s55);\n t24 = cd * (s55 - s56);\n t25 = cd * (-s45 + s46);\n t26 = (4.0 * s53 - 8.0 * s51) * (s45 - s46);\n\n t31 = (-4.0 * s61 * DET.getDoubleValue()) / (cd);\n t32 = (-s64 * DET.getDoubleValue()) / (cd);\n t36 = (4.0 * DET.getDoubleValue()) / (cd);\n\n t42 = DET.getDoubleValue() / 4.0;\n\n t51 = 4.0 * (s46 - s42) * (s51 * s63 - s61 * s53);\n t52 = (2.0 * s51 - s53) * (-s42 * s64 + s46 * s64) + (2.0 * s61 - s63) * (s56 * s44 - s52 * s44);\n t53 = cd * (-s42 * s56 + s46 * s52);\n t54 = cd * (s56 - s52);\n t55 = cd * (-s46 + s42);\n t56 = (4.0 * s53 - 8.0 * s51) * (s46 - s42);\n\n t61 = 4.0 * (s63 * s51 - s61 * s53) * (s42 - s45);\n t62 = (2.0 * s51 - s53) * (-s45 * s64 + s42 * s64) + (2.0 * s61 - s63) * (s52 * s44 - s55 * s44);\n t63 = cd * (s42 * s55 - s45 * s52);\n t64 = cd * (s52 - s55);\n t65 = cd * (s45 - s42);\n t66 = (8.0 * s51 - 4.0 * s53) * (s45 - s42);\n\n\n fx1.set((1.0 / DET.getDoubleValue()) * (t11 * fX + t12 * fY + t16 * tZ));\n fz1.set((1.0 / DET.getDoubleValue()) * (t21 * fX + t22 * fY + t23 * fZ + t24 * tX + t25 * tY + t26 * tZ));\n fx2.set((1.0 / DET.getDoubleValue()) * (t31 * fX + t32 * fY + t36 * tZ));\n fy2.set((1.0 / DET.getDoubleValue()) * (t42 * fY));\n fz2.set((1.0 / DET.getDoubleValue()) * (t51 * fX + t52 * fY + t53 * fZ + t54 * tX + t55 * tY + t56 * tZ));\n fz3.set((1.0 / DET.getDoubleValue()) * (t61 * fX + t62 * fY + t63 * fZ + t64 * tX + t65 * tY + t66 * tZ));\n\n\n /* test it */\n\n /*\n * ls.sminv_err_1 = (*fx1) + 2.0* (*fx2) - fX;\n * ls.sminv_err_2 = 4.0 * (*fy2) - fY;\n * ls.sminv_err_3 = (*fz1) + (*fz2) + (*fz3) - fZ;\n *\n * ls.sminv_err_4 = s42*(*fz1) + s44*(*fy2) + s45*(*fz2) + s46*(*fz3) - tX;\n * ls.sminv_err_5 = s51*(*fx1) + s52*(*fz1) + s53*(*fx2) + s55*(*fz2) + s56*(*fz3) - tY;\n * ls.sminv_err_6 = s61*(*fx1) + s63*(*fx2) + s64*(*fy2) - tZ;\n */\n\n }", "org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideFormula xgetFmla();", "private boolean restrizione8_1()\r\n\t\t{\r\n\t\tAEIdecl idecl = this.AEIsDeclInput.get(0);\r\n\t\tString string = idecl.getName();\r\n\t\tfor (int i = 1; i < this.AEIsDeclInput.size(); i++)\r\n\t\t\t{\r\n\t\t\tAEIdecl idecl2 = this.AEIsDeclInput.get(i);\r\n\t\t\tString string2 = idecl2.getName();\r\n\t\t\tif (!string.equals(string2))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}", "public static void EjecutaEjercicio2A(String entrada) {\n\t\tEjercicio2.iniDatos(entrada);\n\t\t\n\t\t// Declarar vértice de inicio para el grafo:\n\t\tVerticeAbogado verticeInicial = VerticeAbogado.verticeInicial();\n\t\t\n\t\t// Inicializar el grafo virtual:\n\t\t/*\n\t\t * 2 vías: \n\t\t * \t· Con peso en el vértice. \n\t\t * \t· Con peso en las aristas.\n\t\t*/\n\t\t\t\t\n\t\t// Inicializa un grafo virtual de tipo simpleVirtualGraph a partir del vértice inicial con peso:\n\t\tEGraph<VerticeAbogado, AristaAbogado> grafoVirtual = Graphs2.simpleVirtualGraph(verticeInicial, x -> x.getEdgeWeight());\n\n\t\t// Invocar el algoritmo de A*: \n\t\t/*\n\t\t * 2 vías: \n\t\t * · Expresando el vértice final de destino.\n\t\t * · Mediante un predicado objetivo.\n\t\t */\n\t\tAStar<VerticeAbogado, AristaAbogado> algoritmoA = GraphAlg.aStarGoal(\n\t\t\t\tgrafoVirtual,\n\t\t\t\tVerticeAbogado.objetivo(),\n\t\t\t\tHeuristicaAbogado::heuristica\n\t\t\t\t);\n\n\t\t// Proporciona un camino devuelto por A* desde el vértice inicial al objetivo:\n\t\tGraphPath<VerticeAbogado, AristaAbogado> caminoA = algoritmoA.search().get();\n\t\t\n\t\t// Solución: lista de aristas recorridos del grafo: \n\t\tList<AristaAbogado> aristas = caminoA.getEdgeList();\n\t\tSystem.out.println(\"$$$$$$$$$$$$$$$$$$$$$$$ A ESTRELLA $$$$$$$$$$$$$$$$$$$$$$$\");\n\t\tSolucion2.solucion(aristas, entrada);\n\t\t\n\t\t// DEBUG!\n\t\t/*\n\t\t * List<VerticeAbogado> vertices = caminoA.getVertexList();\n\t\t * System.out.println(vertices);\n\t\t*/\n\t\t\n\t}", "public static void assertFsaEquals(FiniteStateAutomaton fsaExpected,\n\t\tFiniteStateAutomaton fsaActual) {\n\t\t\n\t\tif ( fsaExpected.getInitialState() != null || fsaActual.getInitialState() != null ){\n\t\t\n\t\t\tif ( fsaExpected.getInitialState() == null ){\n\t\t\t\tfail(\"Initial states do not match expected null found \"+fsaActual.getInitialState().getName());\n\t\t\t} else if ( fsaActual.getInitialState() == null ){\n\t\t\t\tfail(\"Initial states do not match expected \"+fsaExpected.getInitialState().getName()+\" found null\");\n\t\t\t}\n\t\t\t\n\t\t\tassertEquals( \"Initial states do not match\" ,fsaExpected.getInitialState().getName(), fsaActual.getInitialState().getName() );\n\t\t\t\n\t\t}\n\t\t\n\t\tState statesFsa[] = fsaExpected.getStates();\n State statesFsaToCompare[] = fsaActual.getStates();\n \n assertStatesEquals(statesFsa,statesFsaToCompare);\n \n State[] expectedFinal = fsaExpected.getFinalStates();\n State[] actualFInal = fsaActual.getFinalStates();\n \n assertStatesEquals(expectedFinal, actualFInal);\n \n\t\tTransition transitionFsa[] = fsaExpected.getTransitions();\n\t\tTransition transitionFsaToCompare[] = fsaActual.getTransitions();\n\t\t\n\t\tassertTransitionsEquals(transitionFsa,transitionFsaToCompare);\n\t\t\n\t\t\n\t}", "public FaseDescartes faseJuego();", "public static void main(String[] args) {\n\t\tFrazione f = new Frazione (\"1/2\");\n\t\tFrazione x=new Frazione (3,12);\n\t\tx.per(f);\n\t\tSystem.out.println(x);\n\t\n\t\tFrazione a=new Frazione(2,4);\n\t\tFrazione b=new Frazione(\"1/2\");\n\t\n\t\tSystem.out.println(a.equals(b)); //equals viene ereditato MA NON GUARDA IL CONETNUTO DELLA FRAZIONE SE SONO UGUALI\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "public AFD(ConjuntoSimbolo simbolos, ConjuntoEstados estados,\n\t\t\tConjuntoTransicaoD funcaoPrograma, Estado estadoInicial,\n\t\t\tConjuntoEstados estadosFinais) {\n\t\tthis.simbolos = simbolos.clonar();\n\t\tthis.estados = estados.clonar();\n\t\tthis.funcaoPrograma = funcaoPrograma.clonar();\n\t\tthis.estadoInicial = estadoInicial.clonar();\n\t\tthis.estadosFinais = estadosFinais.clonar();\n\t}", "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 interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "private float m23258a(float f, float f2, float f3) {\n return f + ((f2 - f) * f3);\n }", "@Override\n\t\t\tpublic int af() {\n\t\t\t\tSystem.out.println(\"dsdfdghbd\");\n\t\t\t\treturn 0;\n\t\t\t}", "private static String representacaoAM(Graph grafo) {\r\n\t\tfloat[][] matriz = new float[grafo.getVertexNumber()][grafo.getVertexNumber()];\r\n\r\n\t\tfor (Aresta aresta : grafo.getArestas()) {\r\n\t\t\tint valorA = aresta.getV1().getValor();\r\n\t\t\tint valorB = aresta.getV2().getValor();\r\n\r\n\t\t\tmatriz[valorA][valorB] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t\tmatriz[valorB][valorA] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t}\r\n\r\n\t\tStringBuilder result = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < matriz.length; i++) {\r\n\t\t\tfor (int j = 0; j < matriz.length; j++) {\r\n\t\t\t\tresult.append(matriz[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tresult.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\treturn result.toString();\r\n\t}", "public void testDeterminizer(INFA nfa, IDFA expected) throws Exception {\n\t\tIDFA eqDfa = new NFADeterminizer(nfa).getResultingDFA();\n\t\tassertEquivalent(expected,eqDfa);\n\t}", "public static Resultado Def_FA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada=0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n \n \n int caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "@Test\n\t@Ignore // now covered by OutOfSequenceData LM\n\tpublic void testFEDparsing() throws URISyntaxException {\n\t\tDAQ snapshot = getSnapshot(\"1493263275021.smile\");\n\n\t\tassertSatisfiedLogicModules ( snapshot,legacyFc1);\n\n\t\tSystem.out.println(legacyFc1.getDescriptionWithContext());\n\t\tSystem.out.println(legacyFc1.getActionWithContext());\n\n\t\tContextHandler context = legacyFc1.getContextHandler();\n\t\tassertEquals(new HashSet(Arrays.asList(\"622\")), context.getContext().get(\"PROBLEM-FED\"));\n\t\tassertEquals(new HashSet(Arrays.asList(\"ECAL\")), context.getContext().get(\"PROBLEM-SUBSYSTEM\"));\n\t\tassertEquals(new HashSet(Arrays.asList(\"EB-\")), context.getContext().get(\"PROBLEM-PARTITION\"));\n\n\t\tassertEquals(\"ECAL\",context.getActionKey());\n\t\tassertEquals(3,legacyFc1.getActionWithContext().size());\n\n\t}", "public abstract void mo70706a(String str, float f, float f2);", "public interface afj {\n afh a();\n\n afi b();\n}", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "@Test\n\tpublic final void testAcute() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\t// all vowels - lower case (with acute)\n\t\tassertSingleResult(\"1391080\", fldName, \"contemporánea\");\n\t\tassertSingleResult(\"2442876\", fldName, \"piétons\");\n\t\tassertSingleResult(\"1391080\", fldName, \"José María\");\n\t\tassertSingleResult(\"1391080\", fldName, \"Gijón\");\n\t\tassertSingleResult(\"1391080\", fldName, \"jesús.\");\n\t\t// plain text\n\t\tassertSingleResult(\"1391080\", fldName, \"contemporanea\");\n\t\tassertSingleResult(\"2442876\", fldName, \"pietons\");\n\t\tassertSingleResult(\"1391080\", fldName, \"Jose Maria\");\n\t\tassertSingleResult(\"1391080\", fldName, \"Gijon\");\n\t\tassertSingleResult(\"1391080\", fldName, \"jesus.\");\n\t\t// test multiple variations\n\t\tassertSingleResult(\"1391080\", fldName, \"José Maria\");\n\t\tassertSingleResult(\"1391080\", fldName, \"Jose María\");\n\n\t\tassertSingleResult(\"1391080\", fldName, \"Gijón jesús\");\n\t\tassertSingleResult(\"1391080\", fldName, \"Gijón jesus\");\n\t\tassertSingleResult(\"1391080\", fldName, \"Gijon jesús\");\n\t\tassertSingleResult(\"1391080\", fldName, \"Gijon jesus\");\n\t}", "private static List<FACMatch> findFACMatches(List<MACMatch> macMatches, List<Concept> entities) throws Exception\n\t{\n\t\tSystem.out.println(\"findingFACMatches\");\n\t\t\n\t\tConcept[] seedPair = new Concept[2];\n\t\tList<FACMatch> topMatches = new ArrayList<FACMatch>();\n\t\tPriorityQueue<FACMatch> pq = new PriorityQueue<FACMatch>();\n\t\tint matchNumber = 0;\n\t\t\n\t\tfor(MACMatch mm : macMatches)\n\t\t{\n\t\t\tConcept c = mm.match;\n\t\t\tseedPair[0] = mm.probe;\n\t\t\tseedPair[1] = c;\n\t\t\tList<Concept[]> seedPairs = new ArrayList<Concept[]>();\n\t\t\tseedPairs.add(seedPair);\n\t\t\tDirectedGraphAdapter<Concept> mapping = AnalogyEngine.map(seedPairs, entities);\n\t\t\tdouble scoreRaw = calculateAnalogyQuality(mapping);\n\t\t\t//normalize score\n\t\t\tdouble sim1 = calculateSelfSimilarityScore(mapping.getParents());\n\t\t\tdouble sim2 = calculateSelfSimilarityScore(mapping.getChildren());\n\t\t\tdouble scoreNormalized = scoreRaw / Math.sqrt(sim1 * sim2);\n\t\t\tFACMatch fm = new FACMatch(mapping, scoreRaw, scoreNormalized, seedPair[0], seedPair[1]);\n\t\t\tif(mm.sourceCapstone != null)\n\t\t\t{\n\t\t\t\tfm.sourceCapstone = mm.sourceCapstone;\n\t\t\t}\n\t\t\tif(mm.targetCapstone != null)\n\t\t\t{\n\t\t\t\tfm.targetCapstone = mm.targetCapstone;\n\t\t\t}\n\t\t\tpq.add(fm);\n\t\t\t\n\t\t\t//TODO need to get MAC value and FAC values for output... \n\t\t\tfacWriter.append(mm.simScore + \" \" + fm.scoreRaw + \" \" + fm.scoreNormalized + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\tdouble maxScore;\n\t\tif(pq.isEmpty())\n\t\t{\n\t\t\tmaxScore = 0;\n\t\t}else{\n\t\t\tmaxScore = pq.peek().scoreRaw;\n\t\t}\n\t\tdouble scoreBound = maxScore * (1-facWidth);\n\t\tSystem.out.println();\n\t\tfor(FACMatch fm : pq)\n\t\t{\n\t\t\tif(fm.scoreRaw >= scoreBound && fm.scoreRaw >= facThreshold && matchNumber < facMaxMatches)\n\t\t\t{\n\t\t\t\ttopMatches.add(fm);\n\t\t\t\tmatchNumber++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"facMatchNumber:\" + matchNumber + \" :: score:\" + fm.scoreRaw);\n\t\t\t\t//facWriter.write(Double.toString(fm.score) + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(topMatches.size() == 0)\n\t\t{\n\t\t\tSystem.err.println(\"No FACMatches found\");\n\t\t}\n\t\treturn topMatches;\n\t}", "public static Resultado Def_FACA(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n \n double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public void testDeterminizerOnNFAs() throws Exception {\n\t\tINFA[] nfas = JailTestUtils.getAllNFAs();\n\t\tfor (INFA nfa: nfas) {\n\t\t\tIDFA dfa = new NFADeterminizer(nfa).getResultingDFA();\n\t\t\tassertNotNull(dfa);\n\t\t}\n\t}", "public final boolean AfK(Object obj) {\n boolean z;\n boolean z2;\n String str;\n String str2;\n AGO ago = (AGO) obj;\n String str3 = this.A00;\n if (str3 == null) {\n z = true;\n }\n z = false;\n String str4 = this.A01;\n if (str4 == null) {\n z2 = true;\n }\n z2 = false;\n if (!(str3 == null || (str2 = ago.A00) == null)) {\n z = str3.equals(str2);\n }\n if (!(str4 == null || (str = ago.A01) == null)) {\n z2 = str4.equals(str);\n }\n if (!z || !z2) {\n return false;\n }\n return true;\n }", "public void updateAlfa(Point p1, Point p2, Prosument prosument, ArrayList<Point> pointList,String note)\n\t{\n\t\tfloat roznicaEnergii = p1.getIloscEnergiiDoKupienia()-p2.getIloscEnergiiDoKupienia();\n\t\tfloat roznicaCen = (p1.getPrice()-p2.getPrice());\n\t\tfloat alfa = roznicaEnergii / roznicaCen;\n\t\t\n\t\tfloat beta = p1.getIloscEnergiiDoKupienia()-alfa * p1.getPrice();\n\t\t\n\t\t//sprawdza sensownosc\n\t\tif (alfa > Stale.malaLiczba && isAlfaCheck)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tprint (\"-----------\\nalfa error start\\n\");\n\t\t\tprint(\"\\nERROR\\n-----------------\");\n\t\t\tprint (\"Wraz ze wzrastjaaca cena chec nabywcza powinna spadac => alfa mniejsza rowna zero\");\n\t\t\tprint(\"Roznica energii \"+roznicaEnergii+\" POWINNA BYC WIEKSZA OD ZERA\");\n\t\t\tprint(\"roznicaCen \"+roznicaCen+\" POWINNA BYC MNIEJSZA OD ZERA\");\n\t\t\tprint(\"\\nprosument ID: \"+prosument.getID());\n\t\t\tprint(\"NOTE \"+note);\n\t\t\tprint(\"alfa \"+alfa);\n\t\t\tprint(\"iteration \"+iteracja);\n\t\t\tprint(\"time \"+LokalneCentrum.getCurrentDay()+\" \"+LokalneCentrum.getCurrentHour());\n\t\t\tprint(\"time index \"+LokalneCentrum.getTimeIndex());\n\t\t\tprint(\"Scenariusz\" +Stale.scenariusz);\n\t\t\tprint(\"Ceny z generatora\" +Stale.cenyZGeneratora);\n\t\t\t\n\t\t\t\n\t\t\tprint(\"\\n\");\n\n\t\t\t\n\t\t\tprint (\"\\np1 \"+p1.toString()+\"\\n\");\n\t\t\tprint (\"\\np2 \"+p2.toString()+\"\\n\");\n\t\t\tprint (\"\\n\\n\"+pointListToString(pointList));\n\t\t\tgetInput(\"updateAlfa - error\");\n\t\t\t\n\t\t}\n\t\t\n\t\tp1.setAlfa(alfa);\n\t\tp1.setBeta(beta);\n\t}", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa getAa();", "@Test\n\tpublic void testFEDparsing2() throws URISyntaxException {\n\t\tDAQ snapshot = getSnapshot(\"1480809948643.smile\");\n\n\t\tassertSatisfiedLogicModules ( snapshot,legacyFc1);\n\n\t\tSystem.out.println(legacyFc1.getDescriptionWithContext());\n\t\tSystem.out.println(legacyFc1.getActionWithContext());\n\n\t\tContextHandler context = legacyFc1.getContextHandler();\n\t\tassertEquals(new HashSet(Arrays.asList(\"548\")), context.getContext().get(\"PROBLEM-FED\"));\n\t\tassertEquals(new HashSet(Arrays.asList(\"ES\")), context.getContext().get(\"PROBLEM-SUBSYSTEM\"));\n\t\tassertEquals(new HashSet(Arrays.asList(\"ES+\")), context.getContext().get(\"PROBLEM-PARTITION\"));\n\n\t\tassertEquals(\"ES\",context.getActionKey());\n\t\tassertEquals(3,legacyFc1.getActionWithContext().size());\n\n\t}", "public Fasores pasarACoseno (Fasores f) {\r\n f.desplazamiento = f.desplazamiento - (Math.PI/2);\r\n f.trig = 'c';\r\n return f;\r\n }", "public void atribuirFinais(Automato a, ArrayList<Estado> finais){\n\t\tfor (int i = 0; i < a.getQ().size(); i++) {\n\t\t\tIterator<Estado> it = finais.iterator();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tEstado e = it.next();\n\t\t\t\tif (a.getQ().get(i).getLabel().contains(e.getLabel())){\n\t\t\t\t\ta.getF().add(a.getQ().get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tEquation eq = new Equation();\n\t\teq.process(\"A = [ 2, -2, 0, 3, 4; 4, -1, 0, 1, -1; 0, 5, 0, 0, -1; 3, 2, -3, 4, 3; 7, -2, 0, 9, -5 ]\");\n\t\tDMatrixRMaj A = eq.lookupDDRM(\"A\");\n\t\t\n\t\tSystem.out.println(\"<==== A ====>\");\n\t\tSystem.out.println(A);\n\t\tSystem.out.println(\"Det(A): \" + CommonOps_DDRM.det(A));\n\t\t\n\t\tDMatrixRMaj C = cofactor(A);\n\t\teq.alias(C, \"C\");\n\t\t\n\t\tdouble det = A.get(3, 2) * C.get(3, 2);\n\t\t\n\t\tSystem.out.println(\"Column[\" + 2 + \"] has 4 zeros entries\");\n\t\tSystem.out.println(\"Det(A) = A[3][2] * cofactors[3][2]: \" + det);\n\t\t\n\t\n\t\tSystem.out.println(\"<==== adj(A) ====>\");\n\t\tSystem.out.println(C);\n\t\t\n\t\t\n\t\teq.process(\"AI = inv(A)\");\n\t\teq.process(\"AC = inv(det(A)) * C'\");\n\t\t\n\t\t\n\t\tSystem.out.println(\"<==== inv(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AI\"));\n\t\t\n\t\tSystem.out.println(\"<==== 1 / det(A) * adj(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AC\"));\n\t\t\n\t\tSystem.out.println(\"inv(A) == 1 / det(A) * adj(A): \" + MatrixFeatures.isIdentical(eq.lookupDDRM(\"AI\"), eq.lookupDDRM(\"AC\"), 0.00000001));\n\t\t\n\t\t\n\t}", "public double afp(double salario) {\n double afp = 0;\n afp = salario * 0.0725;\n return afp;\n }", "private boolean iguales(Pares f){\n\t\t\tboolean devolucion = false;\n\t\t\t\n\t\t\tif(f!=null){\n\t\t\t\tif(primero.iguales(f.getSegundo())){\n\t\t\t\t\tif(segundo.iguales(f.getPrimero())){\n\t\t\t\t\t\tif(distancia==f.getDistancia()){\n\t\t\t\t\t\t\tdevolucion=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn devolucion;\n\t\t}", "@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}", "String getCADENA_TRAMA();", "@Override\n\tpublic void af(String t) {\n\n\t}", "@RepeatedTest(20)\n void transformtoFloatTest(){\n assertEquals(f.transformtoFloat(), f);\n assertEquals(i.transformtoFloat(),new Float(seed));\n assertEquals(bi.transformtoFloat(), new Float(bi.toInt(bi.getBinary())));\n\n //Nulls\n assertEquals(st.transformtoFloat(),Null);\n assertEquals(bot.transformtoFloat(),Null);\n assertEquals(bof.transformtoFloat(),Null);\n assertEquals(Null.transformtoFloat(),Null);\n }", "public static float A00(DDD ddd, int i, float f, float f2) {\n float[] fArr;\n DDG[] ddgArr = ddd.A01;\n if (ddgArr == null || (fArr = ddd.A00) == null) {\n return BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER;\n }\n int i2 = i - 1;\n DDG ddg = ddgArr[i2];\n float f3 = fArr[i2];\n float f4 = fArr[i] - f3;\n float f5 = (f - f3) / f4;\n byte b = ddg.A00;\n if (b == 0) {\n C29831DCs dCs = ddg.A01;\n C29831DCs dCs2 = ddg.A02;\n if (!(dCs == null || dCs2 == null)) {\n float f6 = dCs.A00;\n float f7 = dCs.A01;\n float f8 = f6 * 3.0f;\n float f9 = ((dCs2.A00 - f6) * 3.0f) - f8;\n float f10 = (1.0f - f8) - f9;\n float f11 = f7 * 3.0f;\n float f12 = ((dCs2.A01 - f7) * 3.0f) - f11;\n float f13 = (1.0f - f11) - f12;\n float min = Math.min(0.005f, 1.0f / ((f4 * f2) * 200.0f));\n float f14 = f5;\n int i3 = 0;\n float f15 = f14;\n while (true) {\n if (i3 >= 8) {\n break;\n }\n float f16 = (((((f10 * f15) + f9) * f15) + f8) * f15) - f5;\n if (Math.abs(f16) < min) {\n break;\n }\n float f17 = (((f10 * 3.0f * f15) + (2.0f * f9)) * f15) + f8;\n if (((double) Math.abs(f17)) < 1.0E-6d) {\n break;\n }\n f15 -= f16 / f17;\n i3++;\n }\n return ((((f13 * f15) + f12) * f15) + f11) * f15;\n }\n } else if (b != 1) {\n return BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER;\n } else {\n return f5;\n }\n return BaseViewManager.CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER;\n }", "public boolean equivalent(Explanation<OWLAxiom> e1, Explanation<OWLAxiom> e2) throws OWLOntologyCreationException {\n if (e1.equals(e2)) {\n return true;\n }\n\n // check if they have the same size, same entailment types, same numbers of axiom types\n IsoUtil pre = new IsoUtil();\n if (!pre.passesPretest(e1, e2)) {\n \t//System.out.println(\"NOT THE SAME!\");\n return false;\n }\n \n //check the current datatypes used in the justifications. If they don't match, reject this.\n HashSet<OWLDatatype> dataTypes1 = new HashSet<OWLDatatype>();\n HashSet<OWLDatatype> dataTypes2 = new HashSet<OWLDatatype>();\n \n for(OWLAxiom ax:e1.getAxioms())\n {\n \t for(OWLDatatype dt:ax.getDatatypesInSignature())\n {\n \tif(dt.isBuiltIn())\n \t{\n \t\tdataTypes1.add(dt);\n \t}\n }\n }\n for(OWLAxiom ax:e2.getAxioms())\n {\n \t for(OWLDatatype dt:ax.getDatatypesInSignature())\n {\n \tif(dt.isBuiltIn())\n \t{\n \t\tdataTypes2.add(dt);\n \t}\n }\n } \n \n if(!dataTypes1.equals(dataTypes2))\n {\n \treturn false;\n }\n \n //check to see if both justifications are both real or fake w.r.t. reasoner\n /**\n OWLOntologyManager ontoman = OWLManager.createOWLOntologyManager();\n Boolean E1ENT = null;\n OWLReasoner j1 = rf.createReasoner(ontoman.createOntology(e1.getAxioms()));\n\t\tE1ENT = j1.isEntailed(e1.getEntailment());\n\t\tj1.flush();\n\t\tOWLReasoner j2;\n\t Boolean E2ENT = null;\n\t j2 = rf.createReasoner(ontoman.createOntology(e2.getAxioms()));\n\t\tE2ENT = j2.isEntailed(e2.getEntailment());\n\t\tj2.flush();\n\t\tSystem.out.println(e1.getEntailment().toString() + \": \" + E1ENT + \" \" + e2.getEntailment().toString() + \": \" + E2ENT);\n\t\tSystem.out.println(!((E1ENT && E2ENT) || (!E1ENT && !E2ENT)));\n\t\tif(!((E1ENT && E2ENT) || (!E1ENT && !E2ENT))) {\n\t\tSystem.out.println(\"Entailment check failed\");\n\t return false;\t\n\t\t}\n\t\t**/\n\t\t// otherwise do the full check\t\n AxiomTreeBuilder atb = new AxiomTreeBuilder();\n\n AxiomTreeNode et1 = atb.generateAxiomTree(e1.getEntailment());\n AxiomTreeNode et2 = atb.generateAxiomTree(e2.getEntailment());\n AxiomTreeNode jt1 = atb.generateExplanationTree(e1);\n AxiomTreeNode jt2 = atb.generateExplanationTree(e2);\n \n //for(AxiomTreeMapping atm:getMappingCandidates(et1,et2))\n //{\n \t//atm.printMapping();\n //}\n \n List<AxiomTreeMapping> candidates = getMappingCandidates(jt1, jt2);\n //System.out.println(candidates.size());\n /**\n for(AxiomTreeMapping c : candidates) {\n \t System.out.println(c.getVarsForTarget());\n \t System.out.println(c.getVarsForSource());\n \t System.out.println(isCorrectMapping(e1, et1, jt1, c.getVarsForSource(), e2, et2, jt2, c.getVarsForTarget()));\n }\n **/\n \n \n for (AxiomTreeMapping c : candidates) {\n //System.out.println(\"\\n--------------- MAPPING ---------------\\n\");\n if (isCorrectMapping(e1, et1, jt1, c.getVarsForSource(), e2, et2, jt2, c.getVarsForTarget())) {\n //c.printMapping();\n //System.out.println(\"TRUE MAPPING:\");\n //System.out.println(c.getVarsForTarget());\n //System.out.println(c.getVarsForSource());\n \t return true;\n }\n }\n \n //for(AxiomTreeMapping atm:candidates)\n //{\n \t//atm.printMapping();\n //}\n return false;\n }", "public void test_afs_01() {\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <owl:Class rdf:about='http://example.org/foo#A'>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n String sourceA =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#' \"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <rdf:Description rdf:about='http://example.org/foo#x'>\"\n + \" <rdf:type rdf:resource='http://example.org/foo#A' />\"\n + \" </rdf:Description>\"\n + \"</rdf:RDF>\";\n \n Model tBox = ModelFactory.createDefaultModel();\n tBox.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n Model aBox = ModelFactory.createDefaultModel();\n aBox.read(new ByteArrayInputStream(sourceA.getBytes()), \"http://example.org/foo\");\n \n Reasoner reasoner = ReasonerRegistry.getOWLReasoner();\n reasoner = reasoner.bindSchema(tBox);\n \n OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM_RULE_INF);\n spec.setReasoner(reasoner);\n \n OntModel m = ModelFactory.createOntologyModel(spec, aBox);\n \n List inds = new ArrayList();\n for (Iterator i = m.listIndividuals(); i.hasNext();) {\n inds.add(i.next());\n }\n \n assertTrue(\"x should be an individual\", inds.contains(m.getResource(\"http://example.org/foo#x\")));\n \n }", "public static void main(String[] args) {\n Flughafen pad = new Flughafen();\n pad.name = \"Paderborn\";\n pad.treibstoffLager = 1000000;\n \n System.out.println(\"\\\"*** Unser Flughafen ***\");\n System.out.println(\"Flughafen \" + pad.name);\n System.out.println(\"Am Gate 1: \" + pad.gate1);\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n System.out.println(\"Am Gate 3: \" + pad.gate3);\n System.out.println(\"Treibstoff: \" + pad.treibstoffLager);\n System.out.println(\"***********************\");\n\n // Boeing 747, https://de.wikipedia.org/wiki/Boeing_747#747-400\n Passagierflugzeug lh1 = new Passagierflugzeug();\n lh1.kennzeichen =\"D-ABTL\";\n lh1.passagiere=360;\n lh1.besatzung=20;\n lh1.treibstoff= 1000;\n \n pad.treibstoffLager -= lh1.tanken(1000);\n \n pad.gate1 = lh1;\n System.out.println(\"Flugzeug an Gate 1: \" + pad.gate1);\n\n\n // Airbus A380 https://de.wikipedia.org/wiki/Airbus_A380#A380-800\n Passagierflugzeug lh2 = new Passagierflugzeug();\n lh2.kennzeichen =\"D-AIMN\";\n lh2.passagiere=360;\n lh2.besatzung=16;\n lh2.treibstoff= 4000;\n \n pad.treibstoffLager -= lh2.tanken(4000);\n \n pad.gate2 = lh2;\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n \n System.out.println(\"*** Unser Flughafen ***\");\n System.out.println(\"Flughafen \" + pad.name);\n System.out.println(\"Am Gate 1: \" + pad.gate1);\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n System.out.println(\"Am Gate 3: \" + pad.gate3);\n System.out.println(\"Treibstoff: \" + pad.treibstoffLager);\n System.out.println(\"***********************\");\n \n\n System.out.println(\"Ablegen Gate 1\");\n pad.gate1 = null;\n System.out.println(\"Flugzeug an Gate 1: \" + pad.gate1);\n System.out.println(\"Rundflug von \" + lh1.kennzeichen);\n System.out.println(\"Anlegen von \" + lh1.kennzeichen + \" an Gate 3\");\n pad.gate3 = lh1;\n\n System.out.println(\"*** Unser Flughafen ***\");\n System.out.println(\"Flughafen \" + pad.name);\n System.out.println(\"Am Gate 1: \" + pad.gate1);\n System.out.println(\"Am Gate 2: \" + pad.gate2);\n System.out.println(\"Am Gate 3: \" + pad.gate3);\n System.out.println(\"Treibstoff: \" + pad.treibstoffLager);\n System.out.println(\"***********************\");\n \n }", "public final boolean mo61579as(float f) {\n AppMethodBeat.m2504i(131614);\n if (f <= 0.0f) {\n AppMethodBeat.m2505o(131614);\n return false;\n }\n this.iac = f;\n if (this.hZY != null) {\n boolean as = this.hZY.mo26910as(this.iac);\n AppMethodBeat.m2505o(131614);\n return as;\n }\n AppMethodBeat.m2505o(131614);\n return false;\n }", "private static String representacaoAL(Graph grafo) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tfor (int i = 0; i < grafo.getVerticesGraph().size(); i++) {\r\n\t\t\tretorno += grafo.getVerticesGraph().get(i).getValor() + \" \";\r\n\r\n\t\t\tfor (int j = 0; j < grafo.getVerticesGraph().get(i).getArestas().size(); j++) {\r\n\t\t\t\tretorno += proxVertice(grafo.getVerticesGraph().get(i), grafo.getVerticesGraph().get(i).getArestas().get(j)) + \" \";\r\n\t\t\t}\r\n\r\n\t\t\tretorno += \"/n\";\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "protected void inizializzazione2()\r\n\t\t\tthrows RestrizioniSpecException {\r\n\t\t\t// si preleva una lista che contiene tutti gli AttacDecl\r\n\t\t\t// che hanno idecl come interazione di input\r\n\t\t\tArchiAttachments archiAttachments = this.archiType.getTopologia().getAttachments();\r\n\t\t\t// list2 contiene i collegamenti in cui l'istanza che si sta considerando\r\n\t\t\t// risulta essere un'istanza di input\r\n\t\t\tList<AttacDecl> list2 = getAttacDeclsAEIInput(idecl.getName(), archiAttachments);\r\n\t\t\tattacsDeclInput = list2;\r\n\t\t\t// si prelevano i nomi degli AEIs di output\r\n\t\t\t// list3 contiene i nomi degli aei di output in cui l'aei attuale\r\n\t\t\t// risulta essere l'aei di input\r\n\t\t\tList<String> list3 = getAEIsOutputFromAttacDecls(list2);\r\n\t\t\t// si preleva una lista che contiene tutti gli AttacDecl\r\n\t\t\t// che hanno idecl come aei di output\r\n\t\t\tList<AttacDecl> list = getAttacDeclsAEIOutput(idecl.getName(), archiAttachments);\r\n\t\t\tattacsDeclOutput = list;\r\n\t\t\t// si prelevano i nomi degli AEIs di input tra i collegamenti in cui l'istanza considerata\r\n\t\t\t// risulta essere un AEI di output\r\n\t\t\tList<String> list5 = getAEIsInputFromAttacDecls(list);\r\n\t\t\tArchiElemInstances archiElemInstances = this.archiType.getTopologia().getAEIs();\r\n\t\t\t// si prelevano le dichiarazioni degli AEI di output collegati\r\n\t\t\tList<AEIdecl> list9 = getAEIsFromNames(list3, archiElemInstances);\r\n\t\t\tAEIsDeclInput = list9;\r\n\t\t\t// si prelevano le dichiarazioni degli AEI di input collegati\r\n\t\t\tList<AEIdecl> list10 = getAEIsFromNames(list5, archiElemInstances);\r\n\t\t\tAEIsDeclOutput = list10;\r\n\t\t\t// si restituiscono delle liste contenenti le equivalenze \r\n\t\t\t// corrispondeti agli ElemType di list9 e list10\r\n\t\t\tList<IEquivalenza> list7 = getEquivalenze(this.archiType, AEIsDeclInput);\r\n\t\t\tthis.equivalenzeInput = list7;\r\n\t\t\tList<IEquivalenza> list8 = getEquivalenze(this.archiType, AEIsDeclOutput);\r\n\t\t\tthis.equivalenzeOutput = list8;\r\n\t\t\t}", "private static float m82748a(float f) {\n if (f == 0.0f) {\n return 1.0f;\n }\n return 0.0f;\n }", "public void m1290a() {\r\n if (this.f760i != null) {\r\n if (this.f760i.f769a > 0.0d) {\r\n this.f766o = this.f760i.f769a;\r\n }\r\n if (this.f760i.f770b > 0.0d) {\r\n this.f767p = this.f760i.f770b;\r\n }\r\n if (this.f760i.f771c > 0.0d) {\r\n this.f752a = this.f760i.f771c;\r\n }\r\n this.f753b = this.f760i.f772d;\r\n this.f754c = this.f760i.f773e;\r\n this.f755d = this.f760i.f774f;\r\n if (this.f760i.f775g >= 0) {\r\n this.f756e = this.f760i.f775g;\r\n }\r\n if (this.f760i.f776h >= 0) {\r\n this.f757f = this.f760i.f776h;\r\n }\r\n if (this.f760i.f777i >= 0) {\r\n this.f758g = this.f760i.f777i;\r\n }\r\n }\r\n this.f759h = new double[(this.f757f + 1)];\r\n for (int i = 0; i <= this.f757f; i++) {\r\n this.f759h[i] = this.f752a / ((double) m1283a(2, i));\r\n }\r\n this.f761j = m1288a(new ac(this.f767p, this.f766o, true));\r\n this.f762k = this.f761j.m829g();\r\n this.f763l = new Point(this.f765n.m1391c() / 2, this.f765n.m1393d() / 2);\r\n this.f764m = new C0223a();\r\n this.f764m.f748a = -2.0037508E7f;\r\n this.f764m.f749b = 2.0037508E7f;\r\n this.f764m.f750c = 2.0037508E7f;\r\n this.f764m.f751d = -2.0037508E7f;\r\n }", "protected final double fa(double x, double ac, double ae) {return ac*Math.pow(x, ae)/K;}", "ScaleTwoDecimal calculateApplicableFandARate(Award award);", "public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "public static Forca get_f(){\n\t\treturn f;\n\t}", "public Ficha_epidemiologia_n3 obtenerFichaEpidemiologia() {\n\t\t\n\t\t\t\tFicha_epidemiologia_n3 ficha_epidemiologia_n3 = new Ficha_epidemiologia_n3();\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa.getCodigo_empresa());\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal.getCodigo_sucursal());\n\t\t\t\tficha_epidemiologia_n3.setCodigo(\"Z000\");\n\t\t\t\tficha_epidemiologia_n3.setCodigo_ficha(tbxCodigo_ficha\n\t\t\t\t\t\t.getValue());\n\t\t\t\tficha_epidemiologia_n3.setFecha_ficha(new Timestamp(dtbxFecha_ficha.getValue().getTime()));\n\t\t\t\tficha_epidemiologia_n3.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\n\t\t\t\t//ficha_epidemiologia_n3\n\t\t\t\t\t//\t.setNro_identificacion(tbxNro_identificacion.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConoce_y_o_ha_sido_picado_por_pito(rdbConoce_y_o_ha_sido_picado_por_pito\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTransfuciones_sanguineas(rdbTransfuciones_sanguineas\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSometido_transplante(rdbSometido_transplante\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHijo_de_madre_cero_positiva(rdbHijo_de_madre_cero_positiva\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEmbarazo_actual(rdbEmbarazo_actual\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHa_sido_donante(rdbHa_sido_donante\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_techo(rdbTipo_techo\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setTipo_paredes(rdbTipo_paredes\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEstrato_socio_economico(rdbEstrato_socio_economico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEstado_clinico(rdbEstado_clinico\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setClasificacion_de_caso(rdbClasificacion_de_caso\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setFiebre(chbFiebre.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_cronico(chbDolor_toracico_cronico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setDisnea(chbDisnea.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setPalpitaciones(chbPalpitaciones\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMialgias(chbMialgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setArtralgias(chbArtralgias.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setEdema_facial(chbEdema_facial\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setEdema_miembros_inferiores(chbEdema_miembros_inferiores\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDerrame_pericardico(chbDerrame_pericardico\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setHepatoesplenomegalia(chbHepatoesplenomegalia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setAdenopatias(chbAdenopatias\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setChagoma(chbChagoma.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\tficha_epidemiologia_n3.setFalla_cardiaca(chbFalla_cardiaca\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPalpitacion_taquicardia(chbPalpitacion_taquicardia\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDolor_toracico_agudo(chbDolor_toracico_agudo\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setBrandicardia(chbBrandicardia\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSincope_o_presincope(chbSincope_o_presincope\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setHipotension(chbHipotension\n\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setDisfagia(chbDisfagia.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setGota_gruesa_frotis_de_sangre_periferica(rdbGota_gruesa_frotis_de_sangre_periferica\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setMicrohematocrito_examen_fresco(rdbMicrohematocrito_examen_fresco\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setStrout(rdbStrout.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setElisa_igg_chagas(rdbElisa_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setIfi_igg_chagas(rdbIfi_igg_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHai_chagas(rdbHai_chagas\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setElectrocardiograma(rdbElectrocardiograma\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setEcocardiograma(rdbEcocardiograma\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setRayos_x_de_torax_indice_toracico(rdbRayos_x_de_torax_indice_toracico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setHolter(rdbHolter.getSelectedItem()\n\t\t\t\t\t\t.getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_etiologico(rdbTratamiento_etiologico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setTratamiento_sintomatico(rdbTratamiento_sintomatico\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setPosible_via_transmision(rdbPosible_via_transmision\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\n\t\t\t\tficha_epidemiologia_n3.setRomana(chbRomana.isChecked() ? \"S\"\n\t\t\t\t\t\t: \"N\");\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_empresa(empresa\n\t\t\t\t\t\t.getCodigo_empresa());\n\t\t\t\t\n\t\t\t\tficha_epidemiologia_n3.setCodigo_sucursal(sucursal\n\t\t\t\t\t\t.getCodigo_sucursal());\n\t\t\t\t// ficha_epidemiologia_n3.setCodigo(tbxCodigo.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado1(tbxResultado1.getValue());\n\t\t\t\tficha_epidemiologia_n3.setResultado2(tbxResultado2.getValue());\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setSemanas_de_embarazo((ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxSemanas_de_embarazo\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setNumero_familiares_con_changa((ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() != null ? ibxNumero_familiares_con_changa\n\t\t\t\t\t\t\t\t.getValue() : 0));\n\t\t\t\tficha_epidemiologia_n3\n\t\t\t\t\t\t.setConstipacion_cronica(chbConstipacion_cronica\n\t\t\t\t\t\t\t\t.isChecked() ? \"S\" : \"N\");\n\t\t\t\tficha_epidemiologia_n3.setCreacion_date(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setUltimo_update(new Timestamp(\n\t\t\t\t\t\tnew GregorianCalendar().getTimeInMillis()));\n\t\t\t\tficha_epidemiologia_n3.setCreacion_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_date(null);\n\t\t\t\tficha_epidemiologia_n3.setUltimo_user(usuarios.getCodigo()\n\t\t\t\t\t\t.toString());\n\t\t\t\tficha_epidemiologia_n3.setDelete_user(null);\n\t\t\t\tficha_epidemiologia_n3.setOtro_tipo_techo(tbxotro_tipo_techo.getValue());\n\n\t\t\t\t\n\t\treturn ficha_epidemiologia_n3;\n\t\t}", "public void mo3780a(int i, int i2, int i3, float f) {\n this.f1476e = i;\n this.f1479h = i2;\n this.f1480i = i3;\n this.f1481j = f;\n if (f < 1.0f && this.f1476e == 0) {\n this.f1476e = 2;\n }\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tModel model = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null );\n\n\t\t// Load ontology 1\n\t\tmodel.read(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book1-test1.owl\");\n\n\t\t// Query in ontology 1\n\t\tQueryExecution qe = QueryExecutionFactory.create( QueryFactory.read( \"E:\\\\Kuliah\\\\TUGASAKHIR\\\\TugasAkhirLatestFolder\\\\Software\\\\ontologyandmappingsanddatasources\\\\endtoendtest\\\\book1-query1.sparql\" ), model );\n\t\tResultSet results = qe.execSelect();\n\t\t// PrefixMapping query;\n\t\t// Output query results\t\n\t\t// ResultSetFormatter.out(System.out, results, query);\n\n\t\t// Load ontology 2\n\t\tmodel = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null );\n\t\tmodel.read(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book2-test1.owl\");\n\t\t\t\n\t\t// Transform query\n\t\tString transformedQuery = null;\n\t\tString firstQuery = null;\n\t\ttry {\n\t\t InputStream in = new FileInputStream(\"E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/ontologyandmappingsanddatasources/endtoendtest/book1-query1.sparql\");\n\t\t BufferedReader reader = new BufferedReader( new InputStreamReader(in) );\n\t\t String line = null;\n\t\t String queryString = \"\";\n\t\t while ((line = reader.readLine()) != null) {\n\t\t\tqueryString += line + \"\\n\";\n\t\t }\n\t\t firstQuery = queryString;\n\t\t Properties parameters = new Properties();\n\t\t \n\t\t AlignmentParser aparser = new AlignmentParser(0);\n//\t\t Mapping\n\t\t Alignment alu = aparser.parse(\"file:///E:/Kuliah/TUGASAKHIR/TugasAkhirLatestFolder/Software/align-4.9/html/tutorial/tutorial4/bookalignment.rdf\");\n\t\t BasicAlignment al = (BasicAlignment) alu;\n\t\t\ttransformedQuery = ((BasicAlignment)al).rewriteQuery( queryString, parameters );\n//\t\t transformedQuery = ((ObjectAlignment)al).\n\t\t} catch ( Exception ex ) { ex.printStackTrace(); }\n\n\t\t// Query ontology 2\n\t\tSystem.out.println(transformedQuery);\n//\t\tdisplayQueryAnswer( model, QueryFactory.create( transformedQuery ) );\n\t\tqe = QueryExecutionFactory.create( QueryFactory.create( firstQuery ), model );\n\t\tresults = qe.execSelect();\n\t\tSystem.out.println(results);\n\t\t\n\t\t// Output query results\t\n\t\t// ResultSetFormatter.out(System.out, results, query);\n\t}", "public String apavada_vriddhi(String X_anta, String X_adi)\n {\n\n Log.info(\"*******ENTERED AAPAVADA NIYAMA UNO**********\");\n Log.info(\"X_adi == \" + X_adi);\n String anta = EncodingUtil.convertSLPToUniformItrans(X_anta);\n // x.transform(X_anta); // anta is ITRANS equivalent\n String adi = EncodingUtil.convertSLPToUniformItrans(X_adi);\n // x.transform(X_adi); // adi is ITRANS equivalent\n\n Log.info(\"adi == \" + adi);\n\n String return_me = \"UNAPPLICABLE\";\n\n boolean bool1 = VowelUtil.isAkaranta(X_anta) && (adi.equals(\"eti\") || adi.equals(\"edhati\"));\n boolean bool2 = VowelUtil.isAkaranta(X_anta) && adi.equals(\"UTh\");\n\n // 203\n // **********IF****************//\n if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"f\")) // watch out!!! must\n // be SLP not ITRANS\n {// checked:29-6\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"f\" + strip2;\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRiti RRi vA vacanam\");\n comments.setSutraProc(\"hrasva RRikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"small RRi followed by small RRi merge to become small RRi.\\n\" + \"RRi + RRi = RRi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 204\n // **********IF****************//\n else if (X_anta.endsWith(\"f\") && X_adi.startsWith(\"x\")) // watch out!!!\n // must be SLP\n // not ITRANS\n { // checked:29-6 // SLP x = ITRANS LLi\n String strip1 = VarnaUtil.stripAntyaVarna(X_anta);\n String strip2 = VarnaUtil.stripAdiVarna(X_adi);\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + strip1 + \"x\" + strip2; // SLP\n // x =\n // ITRANS\n // LLi\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"LLiti LLi vA vacanam\");\n comments.setSutraProc(\"hrasva LLikara ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \" RRi/RRI followed by small LLi merge to become small LLi.\\n RRi/RRI + LLi = LLi\";\n comments.setConditions(cond1);\n\n } // end of main if\n // **********END OF IF****************//\n\n // 207a-b\n // **********ELSE IF****************//\n else if (bool1 || bool2)\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n comments.decrementPointer();\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.86\");\n comments.setSutraPath(\"eti-edhati-UThsu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.sutra);\n\n String cond1 = \"akaara followed by declensions of 'iN', 'edha' and 'UTh\" + \"<eti/edhati/UTh> are replaced by their vRRiddhi counterpart.\\n\" + \"a/A/a3 + eti/edhati/UTha = VRRiddhi Counterpart.\\n\" + \"Pls. Note.My Program cannot handle all the declensions of given roots.\" + \"Hence will only work for one instance of Third Person Singular Form\";\n comments.setConditions(cond1);\n\n String cond2 = \"Blocks para-rupa Sandhi given by 'e~ni pararUpam' which had blocked Normal Vriddhi Sandhi\";\n\n if (bool1)\n comments.append_condition(cond2);\n else if (bool2) comments.append_condition(\"Blocks 'Ad guNaH'\");\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 208\n // **********ELSE IF****************//\n else if (anta.equals(\"akSa\") && adi.equals(\"UhinI\"))\n {// checked:29-6\n return_me = \"akzOhiRI\"; // u to have give in SLP..had\n // ITRANS....fixed\n // not sending to vrridhit_sandhi becose of Na-inclusion\n // vriddhi_sandhi(X_anta,X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // ***/vowel_notes.decrement_pointer();/***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"akSAdUhinyAm\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"akSa + UhinI = akshauhiNI.Vartika blocks guna-sandhi ato allow vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n\n }\n // **********END OF ELSE IF****************//\n\n // 209\n // **********ELSE IF****************//\n else if (anta.equals(\"pra\") && (adi.equals(\"Uha\") || adi.equals(\"UDha\") || adi.equals(\"UDhi\") || adi.equals(\"eSa\") || adi.equals(\"eSya\")))\n // checked:29-6\n {\n return_me = vriddhi_sandhi(X_anta, X_adi);\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"prAd-Uha-UDha-UDhi-eSa-eSyeSu\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"upasarga 'pra' + <prAd/Uha/UDha/UDhi/eSa/eSya> = vRRiddhi-ekadesha.\" + \"\\nVartika blocks para-rupa Sandhi and/or guna Sandhi to allow vRRidhi-ekadesh.\";\n\n comments.setConditions(cond1);\n\n }\n\n // **********END OF ELSE IF****************//\n\n // 210\n // **********ELSE IF****************//\n else if (anta.equals(\"sva\") && (adi.equals(\"ira\") || adi.equals(\"irin\")))\n {\n // checked:29-6\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"svaadireriNoH\");\n comments.setSutraProc(\"vRRiddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"sva + <ira/irin> = vRRIddhi.\\n Blocks Guna Sandhi.\" + \"\\nPls. note. My program does not cover sandhi with declensions.\";\n comments.setConditions(cond1);\n }\n\n // **********END OF ELSE IF****************//\n\n // 211 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (VowelUtil.isAkaranta(X_anta) && X_adi.equals(\"fta\"))// adi.equals(\"RRita\"))\n {\n // checked:29-6\n // not working for 'a' but working for 'A'. Find out why...fixed\n\n return_me = utsarga_prakruti_bhava(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"\");\n comments.setVartikaPath(\"RRite ca tRRitIyAsamAse\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If an akaranta ('a/aa/a3'-terminating phoneme) is going to form a Tritiya Samas compound with a RRi-initial word\" + \" vRRiddhi-ekadesha takes place blocking other rules.\\n\" + \"a/A/a3 + RRi -> Tritiya Samaasa Compound -> vRRiddhi-ekadesh\" + depend;\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // 212-213\n // **********ELSE IF****************//\n else if ((anta.equals(\"pra\") || anta.equals(\"vatsatara\") || anta.equals(\"kambala\") || anta.equals(\"vasana\") || anta.equals(\"RRiNa\") || anta.equals(\"dasha\")) && adi.equals(\"RRiNa\"))\n\n // checked:29-6\n { // pra condition not working...fixed now . 5 MAR 05\n // return_me = guna_sandhi(X_anta,X_adi) + \", \" +\n // prakruti_bhava(X_anta,X_adi)\n\n return_me = vriddhi_sandhi(X_anta, X_adi);\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n /***/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n // vowel_notes.set_sutra_num(\"\") ;\n comments.setVartikaPath(\"pra-vatsatara-kambala-vasanArNa dashaanAm RRiNe\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = \"If 'pra' etc are followed by the word 'RRiNa',\" + \" vRRiddhi-ekadesh takes place blocking Guna and Prakruti Bhava Sandhis.\" + \"\\n<pra/vatsatara/kambala/vasana/RRiNa/dash> + RRiNa = vRRiddhi\";\n comments.setConditions(cond1);\n }\n // ???? also implement prakruti bhava\n\n /**\n * **YEs ACCORDING TO SWAMI DS but not according to Bhaimi Bhashya else\n * if ( adi.equals(\"RRiNa\") && (anta.equals(\"RRiNa\") ||\n * anta.equals(\"dasha\")) ) { return_me = vriddhi_sandhi(X_anta,X_adi);\n * //*sandhi_notes = VE + apavada + vartika + \"'RRiNa dashAbhyAm ca'.\" +\n * \"\\nBlocks Guna and Prakruti Bhava Sandhi\";\n * \n * vowel_notes.start_adding_notes(); vowel_notes.set_sutra_num(\"\") ;\n * vowel_notes.set_vartika_path(\"RRiNa dashAbhyAm ca\") ;\n * vowel_notes.set_sutra_proc(\"Vriddhi-ekadesh\");\n * vowel_notes.set_source(tippani.vartika) ; String cond1 =depend +\n * \"Blocks Guna and Prakruti Bhava Sandhi\";\n * vowel_notes.set_conditions(cond1);\n * /* return_me = utsarga_prakruti_bhava(X_anta,X_adi) + \", \" +\n * vriddhi_sandhi(X_anta,X_adi) + \"**\"; sandhi_notes = usg1 +\n * sandhi_notes; sandhi_notes+= \"\\n\" + usg2 + VE +apavada + vartika +\n * \"'RRiNa dashAbhyAm ca'.\" + depend; // .... this was when I assumed\n * this niyama is optional with other // ???? also implement prakruti\n * bhava }\n */\n // **********END OF ELSE IF****************//\n // 214 Vik. Semantic Dependency\n // **********ELSE IF****************//\n else if (anta.equals(\"A\") && VowelUtil.isAjadi(X_adi))\n {\n // checked:29-6\n // rules is A + Vowel = VRddhi\n\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n /*******************************************************************\n * sandhi_notes = usg1 + sandhi_notes + \"\\n\" + usg2 ; // We have to\n * remove vriddhi_sandhi default notes // this is done by /\n ******************************************************************/\n comments.decrementPointer();\n /***/\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.87\");\n comments.setSutraPath(\"ATashca\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"if String 1 equals 'aa' and implies 'AT'-Agama and \" + \"String 2 is a verbal form. E.g. A + IkSata = aikSata not ekSata.\\n\" + \" 'aa' + Verbal Form = vRRiddhi-ekadesh\";\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n // **********ELSE IF****************//\n // akaranta uparga mein error....fixed 4 MAR\n // 215 Vik Semantic Dependency\n else if (is_akaranta_upsarga(X_anta) && X_adi.startsWith(\"f\")) // RRi\n // ==\n // SLP\n // 'f'USing\n // X_adi,\n // switched\n // to\n // Sharfe\n // Encoding\n { // according to Vedanga Prakash Sandhi Vishaya RRIkara is being\n // translated\n // but checked with SC Basu Trans. it is RRIta not RRikara\n // checked:29-6\n\n Log.info(\" Rules 215 applies\");\n return_me = utsarga_sandhi(X_anta, X_adi) + \", \" + vriddhi_sandhi(X_anta, X_adi) + \"**\";\n // We have to remove vriddhi_sandhi default notes\n // this is done by\n // vowel_notes.decrement_pointer();\n\n // July 14 2005.. I have removed the above line\n // vowel_notes.decrement_pointer();\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.88\");\n comments.setSutraPath(\"upasargAdRRiti dhAtau\");\n comments.setSutraProc(\"Vriddhi-ekadesh\");\n comments.setSource(Comments.vartika);\n String cond1 = depend + \"akaranta upsarga(preverb) followed by verbal form begining with short RRi.\\n \" + \"preverb ending in <a> + verbal form begining with RRi = vRRiddhi-ekadesha\\n\";\n\n /*\n * \"By 6.1.88 it should block all \" + \"optional forms but by 'vA\n * supyApishaleH' (6.1.89) subantas are \" + \"permitted the Guna\n * option.\";\n */\n comments.setConditions(cond1);\n }\n // **********END OF ELSE IF****************//\n\n Log.info(\"return_me == \" + return_me);\n Log.info(\"*******EXITED AAPAVADA NIYAMA UNO**********\");\n\n if (return_me.equals(\"UNAPPLICABLE\"))\n {\n return_me = apavada_para_rupa(X_anta, X_adi); // search for more\n // apavada rules\n }\n return return_me; // apavada rules formulated by Panini apply\n }", "public void mo3285a(int i, float f, float f2) {\n C0809e eVar;\n int i2;\n C0807a aVar;\n C0809e eVar2;\n int i3;\n if (this.f2569b == i) {\n if (i == -1) {\n aVar = (C0807a) this.f2572e.valueAt(0);\n } else {\n aVar = (C0807a) this.f2572e.get(this.f2569b);\n }\n if (this.f2570c == -1 || !((C0808b) aVar.f2576b.get(this.f2570c)).mo3289a(f, f2)) {\n int a = aVar.mo3287a(f, f2);\n if (this.f2570c != a) {\n if (a == -1) {\n eVar2 = this.f2568a;\n } else {\n eVar2 = ((C0808b) aVar.f2576b.get(a)).f2584f;\n }\n if (a == -1) {\n i3 = aVar.f2577c;\n } else {\n i3 = ((C0808b) aVar.f2576b.get(a)).f2583e;\n }\n if (eVar2 != null) {\n this.f2570c = a;\n if (this.f2574g != null) {\n this.f2574g.mo3309a(-1, i3);\n }\n eVar2.mo3297b(this.f2571d);\n if (this.f2574g != null) {\n this.f2574g.mo3310b(-1, i3);\n }\n }\n }\n }\n } else {\n this.f2569b = i;\n C0807a aVar2 = (C0807a) this.f2572e.get(this.f2569b);\n int a2 = aVar2.mo3287a(f, f2);\n if (a2 == -1) {\n eVar = aVar2.f2578d;\n } else {\n eVar = ((C0808b) aVar2.f2576b.get(a2)).f2584f;\n }\n if (a2 == -1) {\n i2 = aVar2.f2577c;\n } else {\n i2 = ((C0808b) aVar2.f2576b.get(a2)).f2583e;\n }\n if (eVar == null) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"NO Constraint set found ! id=\");\n sb.append(i);\n sb.append(\", dim =\");\n sb.append(f);\n sb.append(\", \");\n sb.append(f2);\n Log.v(\"ConstraintLayoutStates\", sb.toString());\n return;\n }\n this.f2570c = a2;\n if (this.f2574g != null) {\n this.f2574g.mo3309a(i, i2);\n }\n eVar.mo3297b(this.f2571d);\n if (this.f2574g != null) {\n this.f2574g.mo3310b(i, i2);\n }\n }\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa addNewAa();", "AGamma2DB getAgamma2db();", "public AnomaliesWrapper test2NF();", "public void assertEquivalent(IDFA dfa1, IDFA dfa2) throws Exception {\n\t\tassertTrue(new DFAEquiv(dfa1,dfa2).areEquivalent());\n\t}", "public boolean isEquivalent( Function f )\n {\n if ( name == null || data == null || f.data == null )\n {\n return false;\n }\n return name.equals( f.name )\n && upgrade == f.upgrade\n && data.equals( f.data );\n }", "void xsetFmla(org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideFormula fmla);", "private final List<State> SAT_AF(String expression) {\r\n List<State> x = new ArrayList<State>();\r\n for(State state:this._kripke.States)\r\n {\r\n \tx.add(state);\r\n }\r\n List<State> y = new ArrayList<State>();\r\n y = this.SAT(expression);\r\n while (!this.AreListStatesEqual(x, y)) {\r\n x = y;\r\n List<State> newY = new ArrayList<State>();\r\n List<State> preAStates = this.PreA(y);\r\n for(State state:y)\r\n {\r\n \tnewY.add(state);\r\n }\r\n for (State state : preAStates) {\r\n if (!newY.contains(state)) {\r\n newY.add(state);\r\n }\r\n \r\n }\r\n \r\n y = newY;\r\n }\r\n \r\n return y;\r\n }", "public static FeeDetail remapFeeAccount(SveaCredential cre, FeeDetail f) {\r\n\t\tif (f==null || f.getFeeType()==null) return f;\r\n\t\tif (cre==null)\r\n\t\t\treturn f;\r\n\t\tString acctNo = cre.getAccountMap().get(f.getFeeType());\r\n\t\tif (acctNo!=null) {\r\n\t\t\tf.setAccountNr(acctNo);\r\n\t\t\t// See if we need to remap\r\n\t\t\tif (cre.getAccountRemap()!=null) {\r\n\t\t\t\tString remap = cre.getAccountRemap().get(acctNo);\r\n\t\t\t\tif (remap!=null) {\r\n\t\t\t\t\tf.setAccountNr(remap);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn f;\r\n\t}", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "private NFA union(NFA nfa1, NFA nfa2) {\n NFA result = new NFA();\n\n String startState = String.valueOf(stateInc++);\n result.addStartState(startState);\n result.addNFAStates(nfa1.getStates());\n result.addNFAStates(nfa2.getStates());\n result.addTransition(startState, 'e', nfa1.getStartState().getName());\n result.addTransition(startState, 'e', nfa2.getStartState().getName());\n result.addAbc(nfa1.getABC());\n result.addAbc(nfa2.getABC());\n\n return result;\n\n }", "@Test\n\tpublic void testBalancesArff() {\n\t\tfinal String path =\t\"C:/julio/dev/R/\";\n\t\tfinal String inputFile = \"20150526_0501_2013_y_2014-refined.txt\";\n\t\tfinal String outputFile = \"mocoNofuncional.arff\";\n\t\tfinal String outputFile2 = \"20150526_0501_2013_y_2014-refined.arff\";\n\t\t\n//\t\tfinal String inputFile2 = \"2015-1_enclosed-train.txt\";\n//\t\tfinal String outputFile22 = \"dummy-train.arff\";\n//\t\tfinal String outputFile222 = \"2015-1_enclosed-train.arff\";\n\n\t\tarmarArff(path, inputFile, outputFile, outputFile2);\n//\t\tarmarArff(path, inputFile2, outputFile22, outputFile222);\n\n\t}", "private void createAA() {\r\n\r\n\t\tfor( int x = 0 ; x < dnasequence.size(); x++) {\r\n\t\t\tString str = dnasequence.get(x);\r\n\t\t\t//put catch for missing 3rd letter\r\n\t\t\tif(str.substring(0, 1).equals(\"G\")) {\r\n\t\t\t\taasequence.add(getG(str));\r\n\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"C\")) {\r\n\t\t\t\taasequence.add(getC(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"A\")) {\r\n\t\t\t\taasequence.add(getA(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"T\")) {\r\n\t\t\t\taasequence.add(getT(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0,1).equals(\"N\")) {\r\n\t\t\t\taasequence.add(\"ERROR\");\r\n\t\t\t}else\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void testDeterminizerOnDFAs() throws Exception {\n\t\tIDFA[] dfas = JailTestUtils.getAllDFAs();\n\t\tfor (IDFA dfa: dfas) {\n\t\t\tIDirectedGraph graph = dfa.getGraph();\n\t\t\tINFA nfa = new GraphNFA(graph);\n\t\t\ttestDeterminizer(nfa,dfa);\n\t\t}\n\t}", "public abstract void ataca(String inamic);", "void mo6072a(float f) {\n this.f2347q = this.f2342e.mo6054a(f);\n }", "public abstract void mo70705a(String str, float f);", "private static boolean contieneAtomo(FormaClausal fc, char atomo) {\n\t\treturn fc.formas.contains(String.valueOf(atomo));\n\t}", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "boolean mo4831a(C0153fp fpVar);", "private static int convertLegacyAfMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int\");\n }", "private NDFA etoileCase(RegExTree regExTree) {\n NDFA fils = build(regExTree.subTrees.get(0));\n int[][] tTab_fils = fils.transitionTable;\n ArrayList<Integer>[] eTab_fils = fils.epsilonTransitionTable;\n int l=tTab_fils.length;\n int[][] tTab = new int[2+l][N];\n ArrayList<Integer>[] eTab = new ArrayList[2+l];\n //DUMMY VALUES FOR INITIALIZATION\n for (int i=0;i<tTab.length;i++) for (int col=0;col<N;col++) tTab[i][col]=-1;\n for (int i=0;i<eTab.length;i++) eTab[i]=new ArrayList<>();\n\n eTab[0].add(1); //epsilon transition from new initial state to old initial state\n eTab[0].add(2+l-1); //epsilon transition from new initial state to new final state\n eTab[2+l-2].add(2+l-1); //epsilon transition from old final state to new final state\n eTab[2+l-2].add(1); //epsilon transition from old final state to old initial state\n\n for (int i=1;i<2+l-1;i++) for (int col=0;col<N;col++) if (tTab_fils[i-1][col]!=-1) tTab[i][col]=tTab_fils[i-1][col]+1; //copy old transitions\n for (int i=1;i<2+l-1;i++) for (int s: eTab_fils[i-1]) eTab[i].add(s+1); //copy old transitions\n return new NDFA(tTab,eTab);\n }", "public void mo3770E() {\n int i = this.f1434I;\n int i2 = this.f1435J;\n this.f1462ak = i;\n this.f1463al = i2;\n this.f1464am = (this.f1430E + i) - i;\n this.f1465an = (this.f1431F + i2) - i2;\n }", "public Automato(TabelaDeTransicao _tabela) {\n tabela = _tabela;\n estadosDeterminizados = (Vector) _tabela.getEstados().clone();\n }", "private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "Binarbre<E> equilibre();", "public int forma()\n {\n return Elemento.CUADRADA;\n }", "public static void main( String[] args ){\n AdjListsGraph<String> a = new AdjListsGraph<String>( \"Sample-Graph.tgf\" );\n System.out.println( a );\n System.out.println( \"Number of vertices (5):\" + a.getNumVertices());\n System.out.println( \"Number of arcs (7):\" + a.getNumArcs());\n System.out.println( \"isEdge A<-->B (TRUE):\" + a.isEdge(\"A\", \"B\"));\n System.out.println( \"isArc A-->C (TRUE):\" + a.isArc( \"A\",\"C\"));\n System.out.println( \"isEdge D<-->E (FALSE):\" + a.isEdge( \"D\",\"E\" ));\n System.out.println( \"isArc D -> E (TRUE):\" + a.isArc( \"D\",\"E\" ));\n System.out.println( \"isArc E -> D (FALSE):\" + a.isArc( \"E\",\"D\" ));\n System.out.println( \"Removing vertex A.\");\n a.removeVertex( \"A\" );\n System.out.println( \"Adding edge B<-->D\");\n a.addEdge( \"B\",\"D\" );\n System.out.println( \"Number of vertices (4):\" + a.getNumVertices());\n System.out.println( \"Number of arcs (5):\" + a.getNumArcs());\n System.out.println( a );\n System.out.println( \"Adj to B ([C,D]):\" + a.getSuccessors( \"B\" ) );\n System.out.println( \"Adj to C ([B]):\" + a.getSuccessors( \"C\" ));\n System.out.println( \"Adding A (at the end of vertices).\" );\n a.addVertex( \"A\" ); \n System.out.println( \"Adding B (should be ignored).\" );\n a.addVertex( \"B\" );\n System.out.println( \"Saving the graph into BCDEA.tgf\" );\n a.saveToTGF( \"BCDEA.tgf\" );\n System.out.println( \"Adding F->G->H->I->J->K->A.\" );\n a.addVertex( \"F\" );\n a.addVertex( \"G\" );\n a.addArc( \"F\", \"G\" );\n a.addVertex( \"H\" );\n a.addArc( \"G\", \"H\" );\n a.addVertex( \"I\" );\n a.addArc( \"H\", \"I\" );\n a.addVertex( \"J\" );\n a.addArc( \"I\", \"J\" );\n a.addVertex( \"K\" );\n a.addArc( \"J\", \"K\" );\n a.addArc( \"K\", \"A\" );\n System.out.println( a );\n System.out.println( \"Saving the graph into A-K.tgf\" );\n a.saveToTGF( \"A-K.tgf\" );\n }" ]
[ "0.7273913", "0.6499612", "0.6451683", "0.6425833", "0.55951864", "0.558608", "0.5540868", "0.54732513", "0.5462246", "0.54476196", "0.53861517", "0.53539795", "0.53395414", "0.5338901", "0.52889556", "0.5288209", "0.5240062", "0.5222095", "0.5214809", "0.52103186", "0.51957464", "0.51790756", "0.51744586", "0.5167252", "0.5162623", "0.5160437", "0.51276314", "0.51271695", "0.5121609", "0.5098294", "0.50927126", "0.5081436", "0.50801975", "0.50786275", "0.50745535", "0.5071568", "0.5068233", "0.5044933", "0.50427455", "0.50365156", "0.50259745", "0.5025957", "0.5023166", "0.5018026", "0.500897", "0.5008448", "0.5008028", "0.49992645", "0.4994159", "0.4993042", "0.4991745", "0.49876386", "0.49865824", "0.49863675", "0.4979748", "0.4960518", "0.49514246", "0.49467295", "0.4943118", "0.4931469", "0.49301407", "0.4924855", "0.49234518", "0.49227136", "0.49224767", "0.49183422", "0.49175903", "0.49083516", "0.49035656", "0.48969695", "0.48948938", "0.48937097", "0.48923475", "0.4884791", "0.48778197", "0.4875545", "0.48585212", "0.48582798", "0.48526263", "0.48519546", "0.48454085", "0.48419657", "0.48407197", "0.4833607", "0.48308226", "0.48299176", "0.48258594", "0.48153335", "0.48132205", "0.48057652", "0.4802152", "0.48018953", "0.48012823", "0.47993413", "0.47943878", "0.4787661", "0.47811797", "0.4776454", "0.47756323", "0.4774311" ]
0.7039181
1
Initialize Retrofit and OkHttp
public UserDataRepository() { userDetailBeanMutableLiveData = new MutableLiveData<>(); HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(); interceptor.level(HttpLoggingInterceptor.Level.BODY); OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build(); userDetailDataService = new retrofit2.Retrofit.Builder() .baseUrl(GlobalConstants.USER_DATA_URL) .client(client) .addConverterFactory(GsonConverterFactory.create()) .build() .create(UserDetailDataService.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initRetrofitClient() {\n if (this.mRetrofit != null) {\n this.mRetrofit = null;\n } else {\n // create new mRetrofit client\n Retrofit.Builder retrofitBuilder = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create());\n\n this.mRetrofit = retrofitBuilder.build();\n this.mPlaceCall = mRetrofit.create(PlaceCall.class);\n }\n }", "public static void init() {\n client = new OkHttpClient();\n\n //Construct a HTTP builder\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(apiAddress)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n //Form an API to receive a token\n kedronService = retrofit.create(IKedronService.class);\n }", "private void httpSetup() {\n OkHttpClient client = new OkHttpClient.Builder()\n .readTimeout(5, TimeUnit.SECONDS)\n .writeTimeout(5, TimeUnit.SECONDS)\n .build();\n\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .client(client)\n .build();\n\n service = retrofit.create(ValidatorAPI.class);\n }", "private static OkHttpClient initializeRetrofitClients() {\n OkHttpClient.Builder okHttpBuilder = new OkHttpClient().newBuilder();\n okHttpBuilder.interceptors().add(new Interceptor() {\n @Override\n public okhttp3.Response intercept(@NonNull Chain chain) throws IOException {\n Request originalRequest = chain.request();\n\n // Nothing to add to intercepted request if:\n // a) Authorization value is empty because user is not logged in yet\n // b) There is already a header with updated Authorization value\n if (authorizationTokenIsEmpty() || alreadyHasAuthorizationHeader(originalRequest)) {\n return chain.proceed(originalRequest);\n }\n\n // Add authorization header with updated authorization value to intercepted request\n Request authorisedRequest = originalRequest.newBuilder()\n .header(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n return chain.proceed(authorisedRequest);\n }\n });\n okHttpBuilder.authenticator(new Authenticator() {\n @Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n // Refresh your access_token using a synchronous api request\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }\n });\n\n try {\n // Create a trust manager that does not validate certificate chains\n final TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n @Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n }\n };\n\n // Install the all-trusting trust manager\n final SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustAllCerts, new java.security.SecureRandom());\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n okHttpBuilder.sslSocketFactory(sslSocketFactory);\n okHttpBuilder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n\n return okHttpBuilder.build();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "@PostConstruct\n private void init(){\n\n okHttpClient = new OkHttpClient();\n\n// loadEtoroInstruments();\n\n }", "private void buildRetrofit() {\n OkHttpClient client = new OkHttpClient.Builder()\n .addInterceptor(new ResponseInterceptor())\n .build();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(baseURL)\n .addConverterFactory(GsonConverterFactory.create())\n .client(client)\n .build();\n\n apiInterface = retrofit.create(APIInterface.class);\n }", "public static void initService() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://166.111.68.66:2042/news/\")\n .addConverterFactory(new Converter.Factory() {\n Gson gson = new Gson();\n\n @Override\n public Converter<ResponseBody, ?> responseBodyConverter(final Type type, final Annotation[] annotations, Retrofit retrofit) {\n return new Converter<ResponseBody, Object>() {\n @Override\n public Object convert(ResponseBody value) throws IOException {\n try {\n return gson.getAdapter(TypeToken.get(type)).fromJson(value.charStream());\n } finally {\n value.close();\n }\n }\n };\n }\n }).build();\n newsdetailHttpService = retrofit.create(GetNewsDetailService.NewsDetailHttpService.class);\n }", "private Api() {\n // Implement a method to build your retrofit\n buildRetrofit(BASE_URL);\n }", "private Globals(){\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n //Creem el Retrofit\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(API_URL)\n .client(client)\n .addConverterFactory(ScalarsConverterFactory.create())\n .addConverterFactory(JacksonConverterFactory.create())\n .build();\n\n serveiRetrofit = retrofit.create(RetrofitAPI.class);\n }", "private RetrofitClient(Context context){\n mRetrofit=new Retrofit.Builder()\n .baseUrl(NetworkUtility.BASEURL)\n .addConverterFactory(GsonConverterFactory.create())\n// .client(createClient(context))\n .build();\n }", "public static Retrofit getInstance() {\n if (instance==null)\n instance = new Retrofit.Builder()\n //.baseUrl(\"http://10.0.2.2:3000\")\n .baseUrl(url)\n .addConverterFactory(ScalarsConverterFactory.create())\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .build();\n return instance;\n }", "public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }", "public static Retrofit getApiManagerMain() {\n if (retrofitmain == null) {\n retrofitmain = new Retrofit.Builder()\n .baseUrl(MainBaseApiURL)\n .addConverterFactory(GsonConverterFactory.create())\n // .client(okHttpClient)\n .build();\n }\n return retrofitmain;\n }", "void init() {\n CometUtils.printCometSdkVersion();\n validateInitialParams();\n this.connection = ConnectionInitializer.initConnection(\n this.apiKey, this.baseUrl, this.maxAuthRetries, this.getLogger());\n this.restApiClient = new RestApiClient(this.connection);\n // mark as initialized\n this.alive = true;\n }", "private void setupApiService(){\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(InstagramAppData.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n instaGramService = retrofit.create(InstaGramService.class);\n }", "public static RetrofitWebService RetrofitInitilizer(){\n\n RestAdapter adapter = new RestAdapter.Builder()\n .setEndpoint(DOMAIN) //Setting the Root URL\n .build(); //Finally building the adapter\n\n RetrofitWebService api = adapter.create(RetrofitWebService.class);\n\n return api;\n }", "public static Retrofit create(){\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n return retrofit;\n }", "public NetworkManager() {\n okHttpClient = new OkHttpClientProvider().getClient();\n retrofit = new RetrofitInstanceProvider(new RelatedTopicTypeAdapterFactory(), okHttpClient).getRetrofitInstance();\n }", "public static Retrofit getRetrofitInstance(){\n if(retrofit == null){\n retrofit = new retrofit2.Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(JacksonConverterFactory.create())\n .build();\n }\n return retrofit;\n }", "public static Retrofit getRetrofitInstance(String BASE_URL, final String c_username, final String c_password) {\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n\n\n\n /*OkHttpClient okHttpClient = new OkHttpClient().newBuilder().addInterceptor(new Interceptor() {\n @Override\n public okhttp3.Response intercept(Interceptor.Chain chain) throws IOException {\n Request originalRequest = chain.request();\n\n Request.Builder builder = originalRequest.newBuilder().header(\"Authorization\",\n Credentials.basic(c_username, c_password));\n\n Request newRequest = builder.build();\n return chain.proceed(newRequest);\n }\n })\n .addInterceptor(logging)\n .build();*/\n OkHttpClient okHttpClient = getUnsafeOkHttpClient(BASE_URL, c_username, c_password, logging);\n /*OkHttpClient.Builder okHttpClient = new OkHttpClient.Builder();\n okHttpClient.addInterceptor(new Interceptor() {\n @Override\n public okhttp3.Response intercept(Interceptor.Chain chain) throws IOException {\n Request originalRequest = chain.request();\n\n Request.Builder builder = originalRequest.newBuilder().header(\"Authorization\",\n Credentials.basic(c_username, c_password));\n\n Request newRequest = builder.build();\n return chain.proceed(newRequest);\n }\n });\n\n okHttpClient.connectTimeout(1, TimeUnit.MINUTES)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(15, TimeUnit.SECONDS);\n\n if (BuildConfig.DEBUG) {//only LOG REST for DEBUG\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n logging.setLevel(HttpLoggingInterceptor.Level.HEADERS);\n okHttpClient.addInterceptor(logging);\n }\n*/\n\n if (retrofit == null) {\n retrofit = new retrofit2.Retrofit.Builder()\n .baseUrl(BASE_URL)\n\n //Add the converter//\n .addConverterFactory(GsonConverterFactory.create())\n .client(okHttpClient)\n //.client(okHttpClient.build())\n\n //Build the Retrofit instance//\n .build();\n }\n return retrofit;\n }", "public interface BaseModel {\r\n Retrofit retrofit = new Retrofit.Builder()\r\n .baseUrl(\"http://39.107.224.233/firstga/app/\")\r\n .addConverterFactory(GsonConverterFactory.create())\r\n .addCallAdapterFactory(RxJavaCallAdapterFactory.create())\r\n .build();\r\n}", "interface BaseApi {\n Retrofit getRetrofit();\n\n OkHttpClient.Builder setInterceptor(Interceptor interceptor);\n\n Retrofit.Builder setConverterFactory(Converter.Factory factory);\n}", "private void initialize(){\n if(uri != null)\n httpUriRequest = getHttpGet(uri);\n httpClient = HttpClients.createDefault();\n }", "public static Retrofit getClient() {\n if (retrofit == null){ // Nos aseguramos que no se haya creado un objeto retrofit\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n retrofit = new Retrofit.Builder() // Inicializamos el objeto Retrofit\n .baseUrl(BASE_URL) // Indicamos a cual sitio se estará conectando\n .addConverterFactory(GsonConverterFactory.create(gson)) // Indicamos cual será nuestro serializador y deserializador de objetos (JSON)\n .build(); // Construimos el objeto\n Log.w(\"Retrofit\",\"Retrofit Start\");\n }\n return retrofit;\n }", "public interface ZhiHuApi {\n\n /**\n * A factory of ZhiHuApi, you do not need to create it every time for network.\n */\n class Factory {\n\n private static final Retrofit.Builder builder;\n\n static {\n builder = new Retrofit.Builder()\n .baseUrl(Constants.BASE_HTTP_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJavaCallAdapterFactory.create());\n }\n\n public static <T extends ZhiHuApi> T create(Class<T> clazz) {\n return create(clazz, HostType.HTTP);\n }\n\n public static <T extends ZhiHuApi> T create(Class<T> clazz, HostType type) {\n return create(clazz, type, false);\n }\n\n public static <T extends ZhiHuApi> T create(Class<T> clazz, HostType type, boolean retryOnFailue) {\n Retrofit retrofit = builder\n .client(OkHttpClientHelper.getClient(type, retryOnFailue))\n .build();\n return retrofit.create(clazz);\n }\n\n\n }\n}", "public static Retrofit getClient() {\n if (retrofit==null) {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n // set your desired log level\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n final OkHttpClient okHttpClient = new OkHttpClient.Builder()\n .readTimeout(120, TimeUnit.SECONDS)\n .connectTimeout(120, TimeUnit.SECONDS)\n .addInterceptor(logging)\n .build();\n\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n }\n return retrofit;\n }", "@Override\n\t public void onCreate() {\n\t super.onCreate();\n\n\t instance = this;\n\t okHttp = new OkHttpClient();\n\t getDefaultSSLSocketFactory();\n\t }", "public static Retrofit setRetrofit(String baseUrl) {\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(baseUrl)\n //.client(client)\n .addConverterFactory(LoganSquareConverterFactory.create())\n .addConverterFactory(GsonConverterFactory.create()).client(getClient())\n .build();\n return retrofit;\n }", "public static Retrofit apiService(Context context) {\n httpClientBuilder = new OkHttpClient.Builder()\n .connectTimeout(1, TimeUnit.MINUTES)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(15, TimeUnit.SECONDS);\n\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(Constants.BASE_URL_API)\n .client(httpClientBuilder.build())\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n }\n return retrofit;\n }", "public static Retrofit create() {\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n return retrofit;\n\n }", "static Retrofit getClient(String baseUrl) {\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(baseUrl)\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }\n return retrofit;\n }", "public interface MainService {\n @FormUrlEncoded\n @POST(Constants.Url.LOOKUP_STEAMID)\n Call<ResponseBody> lookupSteamId(@Field(Constants.Key.ID) String id);\n\n @POST(Constants.Url.REQUEST_FETCH)\n Call<BaseResponse> requestFetch(@Path(Constants.Key.STEAM_ID_64) String steamId64);\n\n @GET(Constants.Url.GET_PROFILE)\n Call<Profile> getProfile(@Path(Constants.Key.STEAM_ID_64) String steamId64);\n\n @GET(Constants.Url.GET_FRIENDS)\n Call<ArrayList<Profile>> getFriends(@Path(Constants.Key.STEAM_ID_64) String steamId64);\n\n\n\n //Factory\n class Factory {\n public static MainService create() {\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient.Builder httpClient = new OkHttpClient.Builder();\n OkHttpClient client = httpClient\n .connectTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .addInterceptor(interceptor)\n .build();\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(Constants.Url.DOMAIN)\n .addConverterFactory(GsonConverterFactory.create())\n .client(client)\n .build();\n return retrofit.create(MainService.class);\n }\n }\n}", "public interface RetrofitClient\n{\n @GET(\"web\")\n Call<List<Model>> getAllModel();\n\n @GET(\"web/{id}\")\n Call<Model> getModel(@Body int id);\n\n @POST(\"web\")\n Call<Model> signup(@Body Model model);\n\n\n @GET(\"lost\")\n Call<List<LostModel>> getLostThings();\n @POST(\"found\")\n Call<FoundModel> postFoundThings(@Body FoundModel foundModel);\n @POST(\"lost\")\n Call<LostModel> postLostThings(@Body LostModel lostModel);\n\n}", "public void initOkGo() throws IOException {\r\n mSPCookieStore = new SPCookieStore(this);\r\n HttpHeaders headers = new HttpHeaders();\r\n if (new SPCookieStore(this).getAllCookie().size() != 0) {\r\n headers.put(\r\n \"Set-Cookie\",\r\n String.valueOf(mSPCookieStore.getCookie(HttpUrl.parse(BaseUrl.HTTP_Get_code_auth))));\r\n }\r\n headers.put(\"version\", \"3.0\");\r\n headers.put(\"uid\", \"6f1a8e0eb24afb7ddc829f96f9f74e9d\");\r\n\r\n OkHttpClient.Builder builder = new OkHttpClient.Builder();\r\n // log相关\r\n HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(\"OkHttp\");\r\n loggingInterceptor.setPrintLevel(HttpLoggingInterceptor.Level.BODY); // log打印级别,决定了log显示的详细程度\r\n loggingInterceptor.setColorLevel(Level.INFO); // log颜色级别,决定了log在控制台显示的颜色\r\n builder.addInterceptor(loggingInterceptor); // 添加OkGo默认debug日志\r\n // 超时时间设置\r\n builder.readTimeout(10000, TimeUnit.MILLISECONDS); // 全局的读取超时时间\r\n builder.writeTimeout(10000, TimeUnit.MILLISECONDS); // 全局的写入超时时间\r\n builder.connectTimeout(10000, TimeUnit.MILLISECONDS); // 全局的连接超时时间\r\n builder.cookieJar(new CookieJarImpl(mSPCookieStore)); // 使用sp保持cookie,如果cookie不过期,则一直有效\r\n\r\n HttpsUtils.SSLParams sslParams = HttpsUtils.getSslSocketFactory(getAssets().open(\"server.cer\"));\r\n builder.sslSocketFactory(sslParams.sSLSocketFactory, sslParams.trustManager);\r\n // //配置https的域名匹配规则,使用不当会导致https握手失败\r\n builder.hostnameVerifier(HttpsUtils.UnSafeHostnameVerifier);\r\n\r\n // 其他统一的配置\r\n OkGo.getInstance()\r\n .init(this.getApplication()) // 必须调用初始化\r\n .setOkHttpClient(builder.build()) // 必须设置OkHttpClient\r\n .setCacheMode(CacheMode.NO_CACHE) // 全局统一缓存模式,默认不使用缓存,可以不传\r\n .setCacheTime(CacheEntity.CACHE_NEVER_EXPIRE) // 全局统一缓存时间,默认永不过期,可以不传\r\n .setRetryCount(3) // 全局统一超时重连次数,默认为三次,那么最差的情况会请求4次(一次原始请求,三次重连请求),不需要可以设置为0\r\n .addCommonHeaders(headers); // 全局公共头\r\n }", "private void init(){\n Slider.init(new PicassoImageLoadingService());\n restaurantApi = RetrofitClient.getInstance(Common.API_RESTAURANT_ENDPOINT).create(RestaurantApi.class);\n dialog = new Dialog(this);\n\n }", "public interface RetrofitService {\n\n //TODO.......Created By QiLi.........\n\n /**\n * 登录接口\n * @param userName\n * @param psw\n * @return\n */\n @FormUrlEncoded\n @POST(\"/base/user/login\")\n Observable<BaseResponse<TokenInfo>> doLogin(@Field(\"phone\") String userName, @Field(\"password\") String psw, @Field(\"clientId\") String clientId, @Field(\"imei\") String imei);\n\n /**\n * 用户退出接口\n * @return\n */\n @POST(\"/base/user/logout\")\n Observable<BaseResponse<Boolean>> doLogout();\n\n /**\n * 订单-获取订单\n * @param page 页码\n * @param pageSize 页数\n */\n @POST(\"/buyer/order/list\")\n Observable<BaseResponse<Pager<Order>>> getOrderList(@Query(\"page\") int page,\n @Query(\"pageSize\") int pageSize);\n\n /**\n * 订单-获取订单详情\n */\n @POST(\"/buyer/order/detail\")\n Observable<BaseResponse<Order>> getOrderDetail(@Query(\"orderId\") String orderId);\n\n /**\n * 用户 - 登陆 - QQ登陆\n *\n * @param accessToken\n * @param uid\n */\n @POST(\"/base/user/thirdparty\")\n Observable<BaseResponse<Boolean>> doLoginByQQ(@Query(\"accessToken\") String accessToken,\n @Query(\"authType\") int authType,\n @Query(\"clientId\") String clientId,\n @Query(\"imei\") String imei,\n @Query(\"uid\") String uid);\n\n /**\n * 用户 - 登陆 - 微信登陆\n *\n * @param accessToken\n * @param uid\n */\n @POST(\"callback/wechat/auth\")\n Observable<BaseResponse<Boolean>> doLoginByWeiChat(@Query(\"accessToken\") String accessToken, @Query(\"uid\") String uid);\n\n /**\n * 用户 - 登陆 - 微博登陆\n *\n * @param accessToken\n * @param uid\n */\n @POST(\"callback/weibo/auth\")\n Observable<BaseResponse<Boolean>> doLoginByWeiBo(@Query(\"accessToken\") String accessToken, @Query(\"uid\") String uid);\n\n /**\n * 获取广告Banner图片\n *\n * @param adType 广告位id(app首页轮播图列表id:9)\n */\n @GET(\"/base/ad\")\n Observable<BaseResponse<List<Adv>>> getAdvList(@Query(\"schoolId\")int schoolId, @Query(\"adType\") int adType);\n\n /**\n * 获取食堂配送楼栋\n */\n @POST(\"/buyer/shop/list\")\n Observable<BaseResponse<Pager<StoreStalls>>> getStalls(@Query(\"apartmentId\") int apartmentId,\n @Query(\"page\") int page,\n @Query(\"pageSize\") int pageSize,\n @Query(\"rangeCode\") String rangeCode,\n @Query(\"recomTag\") int recomTag);\n\n /**\n * 获取头条跑马灯\n */\n @POST(\"/buyer/order/marquee\")\n Observable<BaseResponse<List<Marquee>>> getMarquee(@Query(\"schoolId\") int schoolId);\n\n /**\n * 获取主营业务列表\n */\n @POST(\"/buyer/shop/rangelist\")\n Observable<BaseResponse<List<ChannelEntity>>> getRangelist();\n\n /**\n * 获取食堂配送楼栋\n * @param schoolId 配送学校Id\n */\n @POST(\"/buyer/school/apartmentlist\")\n Observable<BaseResponse<List<StoreDelivered>>> getStoreDistributionRange(@Query(\"schoolId\") int schoolId);\n\n /**\n * 选择学校 - 获取定位城市的学校\n * @param areaName 学校所在地区名字\n */\n @POST(\"/buyer/school/list\")\n Observable<BaseResponse<List<AreaCity>>> getSchoolOfLocalCity(@Query(\"areaName\") String areaName);\n\n /**\n * 学校 - LBS:附近学校\n */\n @FormUrlEncoded\n @POST(\"/buyer/school/nearschool\")\n Observable<BaseResponse<List<School>>> getNearSchools(@Field(\"lat\") double lat,\n @Field(\"lng\") double lng,\n @Field(\"distance\") int distance);\n /**\n * 学校 - 检索学校\n */\n @POST(\"/buyer/school/search\")\n Observable<BaseResponse<List<School>>> getSchoolSearchList(@Query(\"schoolName\") String schoolName);\n\n /**\n * 选择学校 - 获取热门城市列表\n */\n @POST(\"area/hotCity\")\n Observable<BaseResponse<List<City>>> getCityHotList();\n\n /**\n * 选择学校 - 获取所有城市列表\n */\n @POST(\"/buyer/area/list\")\n Observable<BaseResponse<CityData>> getCityList();\n\n /**\n * 获取APP信息\n */\n @GET(\"app/auth/androidVersion\")\n Observable<BaseResponse<AppInfoResult>> getAppInfo();\n\n /**\n * 用户-收集手机信息\n * @param userId\n * @param clientId\n * @param os\n * @param osVersion\n * @param deviceModel\n * @param appVersion\n */\n @POST(\"app/collectClientMsg\")\n Observable<BaseResponse<Boolean>> collectClientMsg(@Query(\"userId\") String userId,\n @Query(\"clientId\")String clientId,\n @Query(\"os\")int os,\n @Query(\"osVersion\")String osVersion,\n @Query(\"deviceModel\")String deviceModel,\n @Query(\"appVersion\")String appVersion);\n\n /**\n * 用户 - 信息\n */\n @GET(\"/base/user/current\")\n Observable<BaseResponse<User>> userDoGetInfor();\n\n /**\n * 根据档口获取菜品分类\n * @param shopId 商家id\n */\n @POST(\"/buyer/shop/detail\")\n Observable<BaseResponse<FoodClassList>> getStallsgoodsClass(@Query(\"shopId\") String shopId);\n\n /**\n * 获取档口菜品信息\n * @param shopId 档口Id\n * @param goodsClassId\n * @param page\n * @param pageSize\n */\n @POST(\"/buyer/goods/list\")\n Observable<BaseResponse<Pager<Goods>>> getStallsGoods(@Query(\"apartmentId\") int apartmentId,\n @Query(\"shopId\") String shopId,\n @Query(\"goodsClassId\") String goodsClassId,\n @Query(\"page\")int page,\n @Query(\"pageSize\")int pageSize,\n @Query(\"hotTag\") int hotTag);\n\n\n\n\n /**\n * 用户-下单获取可用红包\n */\n @GET(\"/base/activity/redpacket/queryuserredpacketlist\")\n Observable<BaseResponse<VoucherList>> getUserCoupon();\n\n /**\n * 点餐 - 预计到达时间\n * @param shopId\n */\n @POST(\"/buyer/shop/worktime\")\n Observable<BaseResponse<WorkTimeList>> getEstimatedTime(@Query(\"shopId\") String shopId);\n\n\n /**\n * 订单-获取备注标签\n */\n @GET(\"app/auth/showexplainlabel\")\n Observable<BaseResponse<String>> showexplainlabelReq();\n\n /**\n * 订单-确认下单\n */\n @POST(\"/buyer/order/placeorder\")\n Observable<BaseResponse<String>> placeorder(@Query(\"activityId\") Integer activityId,\n @Query(\"buyerRemark\") String buyerRemark,\n @Query(\"cartIds\") String cartIds,\n @Query(\"channel\") String channel,\n @Query(\"delyEndDate\") String delyEndDate,\n @Query(\"delyFast\") int delyFast,\n @Query(\"delyStartDate\") String delyStartDate,\n @Query(\"shopId\") String shopId,\n @Query(\"userAddressId\") int userAddressId,\n @Query(\"voucherId\") Integer voucherId);\n\n /**\n * 点餐 - 带走 - 绑定手机\n */\n @POST(\"bindPhone\")\n Observable<BaseResponse<Boolean>> doOrderBindPhone(@Query(\"phone\") String phone);\n\n /**\n * 获取下单价格 - 获取实际优惠后价格\n *\n * @param cart_ids 购物车所有商品\n * @param voucherId 优惠券id\n * @param stallsId 档口id\n */\n @POST(\"order/settlement\")\n Observable<BaseResponse<Order>> doPayOrderPrice(@Query(\"cart_ids\") String cart_ids,\n @Query(\"voucherId\")String voucherId,\n @Query(\"stallsId\")String stallsId);\n\n /**\n * 用户 - 钱包 - 支付密码 - 是否认证\n */\n @GET(\"/base/acct/info\")\n Observable<BaseResponse<ActiveInfo>> userWalletPayPswIsAuthReq();\n\n /**\n * 点餐 - 下单 直接下单\n *\n */\n @POST(\"/base/acct/payinfo\")\n Observable<BaseResponse<String>> doPayOrder(\n @Query(\"bizId\") String bizId,\n @Query(\"bizType\")int bizType,\n @Query(\"payPwd\")String payPwd,\n @Query(\"thdType\")int thdType);\n\n\n /**\n * 点餐 - 支付-微信,支付宝\n *\n */\n @POST(\"/base/acct/payinfo\")\n Observable<BaseResponse<Order>> doPayOrder(\n @Query(\"bizId\") String bizId,\n @Query(\"bizType\")int bizType,\n @Query(\"thdType\")int thdType);\n\n /**\n * 用户 - 钱包 - 支付密码 - 认证\n */\n @POST(\"pdauth/auth\")\n Observable<BaseResponse<Boolean>> userWalletPayPswAuthReq(@Query(\"pdPassword\")String pdPassword);\n\n\n\n //TODO.......Created By QiLi.........\n\n /**\n * 七牛 - 请求TOKEN\n * @return\n */\n @POST(\"getQiniuToken\")\n Observable<BaseResponse<String>> getQiNiuTokenRequest(@Query(\"bucketName\") String bucketName);\n\n /**\n * 用户 - 修改 - 头像\n * @param avatarOldKey\n * @param avatarNewKey\n * @return\n */\n @POST(\"modifyAvatar\")\n Observable<BaseResponse<String>> doModifyAvatar(@Query(\"avatarOldKey\") String avatarOldKey,@Query(\"avatarNewKey\") String avatarNewKey);\n\n\n /**\n * 用户 - 修改 - 头像\n * @return\n */\n @POST(\"/base/user/avatar\")\n Observable<BaseResponse<String>> upLoadUserIcon(@Body RequestBody Body);\n\n /**\n * 用户 - 消息列表\n * @return\n */\n @GET(\"/base/msg/user/list\")\n Observable<BaseResponse<Pager<Message>>> getMessageList(@Query(\"page\") int page, @Query(\"pageSize\") int pageSize);\n\n /**\n * 用户 - 修改 - 性别\n * @param sex\n * @return\n */\n @POST(\"modifySex\")\n Observable<BaseResponse<Boolean>> doModifySex(@Query(\"sex\") String sex);\n\n /**\n * 用户 - 修改 - 昵称\n * @param nikeName\n * @return\n */\n @POST(\"/base/user/nick\")\n Observable<BaseResponse<Boolean>> doModifyNickName(@Query(\"nickname\") String nikeName);\n\n\n /**\n * 用户 - 钱包 - 充值活动\n * @return\n */\n @GET(\"pdr/pdActivity\")\n Observable<BaseResponse<List<Action>>> userPDActivity();\n\n /**\n *用户 - 钱包 - 预存款日志记录\n * @param type\n * @param page\n * @param pagesize\n * @return\n */\n @GET(\"new/predeposit/logs\")\n Observable<BaseResponse<Pager<PredepositLog>>> userPredepositLogsReq(@Query(\"type\") Integer type,\n @Query(\"page\") Integer page,\n @Query(\"pagesize\") Integer pagesize);\n\n /**\n * 用户 - 钱包 - 支付密码 - 修改\n * @return\n */\n @POST(\"/base/acct/updatepwd\")\n Observable<BaseResponse<String>> userWalletPayPswModifly(@Query(\"oldPwd\") String oldPwd, @Query(\"newPwd\") String newPwd);\n\n /**\n * 用户 - 钱包 - 支付密码 - 创建\n * @param pdPassword\n * @return\n */\n @POST(\"/base/acct/setpwd\")\n Observable<BaseResponse<Boolean>> userWalletPayPswCreate(@Query(\"payPwd\") String pdPassword);\n\n /**\n *用户 - 钱包 - 支付密码 - 获取验证码\n * @param mobilePhone\n * @param post\n * @return\n */\n @POST(\"pdauth/verifyregcode\")\n Observable<BaseResponse<Boolean>> userWalletPayPswCode(@Query(\"mobilePhone\") String mobilePhone, @Query(\"regcode\") String post);\n\n /**\n * 用户 - 获取验证码\n * @param mobilePhone\n * @return\n */\n @POST(\"/base/msg/code\")\n Observable<BaseResponse<Boolean>> getRegisterCode(@Query(\"codeType\") String codeType, @Query(\"phone\") String mobilePhone);\n\n\n /**\n * 优惠券提现\n * @return\n */\n @GET(\"getCash\")\n Observable<BaseResponse<Integer>> rapGetUserCashCount();\n\n /**\n * 抢单 - 提现\n * @return\n */\n @GET(\"withdrawCash\")\n Observable<BaseResponse<Boolean>> rapDoUserCash();\n\n /**\n * 用户地址列表\n * @return\n */\n @GET(\"/base/user/address\")\n Observable<BaseResponse<UserAddressListEntity>> getAdressList(@Query(\"page\") int page, @Query(\"pageSize\") int pageSize);\n\n /**\n * 删除地址\n * @param addressId\n * @return\n */\n @DELETE(\"/base/user/address\")\n Observable<BaseResponse<Boolean>> userDoAdressDelete(@Query(\"addressId\") int addressId);\n\n /**\n * 用户-修改地址\n * @param addressId\n * @param sex\n * @param apartmentId\n * @param address\n * @param isDefault\n * @return\n */\n @PUT(\"/base/user/address\")\n Observable<BaseResponse<Boolean>> doModifyAdress(@Query(\"address\") String address,\n @Query(\"addressId\") int addressId,\n @Query(\"apartmentId\") int apartmentId,\n @Query(\"isDefault\") int isDefault,\n @Query(\"name\") String name,\n @Query(\"phone\") String phone,\n @Query(\"sex\") int sex);\n\n /**\n * 用户-设置默认地址\n * @param addressId\n * @return\n */\n @POST(\"/base/user/address/default\")\n Observable<BaseResponse<Boolean>> setAddressDefault(@Query(\"addressId\") int addressId);\n\n /**\n * 点餐 - 获取学校列表和宿舍列表\n * @param schoolId\n * @return\n */\n @GET(\"school/schoolApartmentZones\")\n Observable<BaseResponse<SchoolApartment>> getApartmentBySchoolId(@Query(\"schoolId\") int schoolId);\n\n /**\n * 用户-添加地址\n * @param sex\n * @param apartmentId\n * @param address\n * @param mobPhone\n * @param isDefault\n * @return\n */\n @POST(\"/base/user/address\")\n Observable<BaseResponse<UserAddress>> doAddAdress(@Query(\"name\") String name,\n @Query(\"sex\") String sex,\n @Query(\"apartmentId\") int apartmentId,\n @Query(\"address\") String address,\n @Query(\"phone\") String mobPhone,\n @Query(\"isDefault\") String isDefault);\n\n /**\n * 用户 - 邀请好友\n * @param userId\n * @return\n */\n @GET(\"invitefriends/invite\")\n Observable<BaseResponse<InviteInfo>> getUserInviteInfo(@Query(\"userId\") String userId);\n\n /**\n * 用户 - 提交反馈信息\n * @param content\n * @return\n */\n @POST(\"/base/user/feedback\")\n Observable<BaseResponse<Boolean>> doUserFeedBack(@Query(\"content\") String content);\n\n /**\n * 用户 - 修改密码\n * @param oldpassword\n * @param password\n * @return\n */\n @POST(\"/base/user/pwd/modify\")\n Observable<BaseResponse<Boolean>> doUserModifyPassword(@Query(\"oldPwd\") String oldpassword,\n @Query(\"newPwd\") String password);\n\n\n /**\n * 用户 - 钱包 - 充值\n */\n @POST(\"predeposit\")\n Observable<BaseResponse<PredepositOrder>> doWellatPredeposit(@Query(\"paymentId\") int paymentId,\n @Query(\"predeposit\") double predeposit);\n\n /**\n * 用户-修改密码\n */\n @POST(\"newsignup\")\n Observable<BaseResponse<Boolean>> SignUpReq(@Query(\"schoolId\") int schoolId,\n @Query(\"mobilePhone\") String mobilePhone,\n @Query(\"regcode\") String regcode,\n @Query(\"password\") String password,\n @Query(\"type\") int type,\n @Query(\"invitationCode\") String invitationCode);\n\n /**\n * 用户-注册\n */\n @POST(\"/base/user/register\")\n Observable<BaseResponse<Boolean>> doRegister(@Query(\"inviteCode\") String invitationCode, @Query(\"password\") String password, @Query(\"phone\") String phone,@Query(\"verificationCode\") String regcode);\n\n /**\n * 取消订单\n */\n @POST(\"/buyer/order/cancel\")\n Observable<BaseResponse<Boolean>> orderDoCancal(@Query(\"orderId\") String orderId);\n\n /**\n\n * 订单 - 确认收获\n * @param orderId\n */\n @POST(\"/buyer/order/complete\")\n Observable<BaseResponse<Boolean>> userOrderComplete(@Query(\"orderId\") String orderId);\n\n /**\n * 订单 - 催单\n */\n @POST(\"/buyer/order/reminder\")\n Observable<BaseResponse<Integer>> userOrderHurry(@Query(\"orderId\") String orderId);\n\n /**\n\n * 订单 - 获取结算订单详情\n */\n @POST(\"/buyer/order/settlement\")\n Observable<BaseResponse<VoucherList>> setTlement(@Query(\"cartIds\") String cartIds, @Query(\"shopId\") String shopId);\n\n /**\n * 订单 - 商品 - 评价\n */\n @POST(\"order/orderGoods/{goodId}\")\n Observable<BaseResponse<Boolean>> userOrderGoodEvaluate(@Path(\"orderId\") String goodId, @Query(\"scores\") int scores) ;\n\n /**\n * 订单 - 商品 - 评价\n */\n @POST(\"/buyer/order/evaluate\")\n Observable<BaseResponse<String>> evaluate(@Query(\"content\")String content,\n @Query(\"orderId\")String orderId,\n @Query(\"service\")int service,\n @Query(\"speed\")int speed,\n @Query(\"taste\")int taste) ;\n\n /**\n * 选择学校 - 获取学校通过城市Id\n */\n @GET(\"school/acquisitionAreaSchool\")\n Observable<BaseResponse<List<AreaCity>>> getSchoolByAreaId(@Query(\"areaId\") int areaId, @Query(\"areaName\") String areaName);\n\n /**\n * 点餐 - 指定学校的餐厅列表\n * @param schoolId 学校id\n */\n @GET(\"school/stores\")\n Observable<BaseResponse<List<Store>>> getSchoolStorList(@Query(\"schoolId\") int schoolId);\n\n /**\n * 抢单 - 用户 - 认证\n *\n * @param phone 电话\n * @param certificate 证件照片地址\n * @param apartmentId 宿舍id\n * @param address 详细地址\n */\n @POST(\"userjoinin\")\n Observable<BaseResponse<Boolean>> rapDoUserJoin(@Query(\"name\") String name,\n @Query(\"phone\") String phone,\n @Query(\"certificate\") String certificate,\n @Query(\"apartmentId\") int apartmentId,\n @Query(\"address\") String address);\n\n\n\n}", "public interface APIInterface {\n// @GET(\"api/home/books\")\n// Call<BookListResponse> getBookList();\n//\n// @GET(\"api/home/tests\")\n// Call<BookListResponse> getTestList();\n//\n// @GET(\"api/home/banners\")\n// Call<BannerResponse> getBanners();\n//\n\n @GET\n Call<LectureResponse> loadLectures(@Url String url);\n\n @GET\n Call<HomeResponse> loadHomePageFromApi(@Url String url);\n\n @GET(\"api/root\")\n Call<RootApiResponse> loadApiList();\n\n @GET\n Call<BannerResponse> loadBanners(@Url String url);\n\n @GET\n Call<BookListResponse> loadBookList(@Url String url);\n\n @GET\n Call<PracticeDetailResponse> loadPracticeDetail(@Url String url);\n\n @GET\n Call<PracticeListResponse> loadPracticeList(@Url String url);\n\n @GET\n Call<SectionResponse> loadSections(@Url String url);\n\n @GET\n Call<QuestionResponse> loadQuestion(@Url String url);\n\n @GET\n Call<ReadingTestResponse> loadReadingTest(@Url String url);\n\n @GET\n Call<ReadingQuestionResponse> loadReadingAnswer(@Url String url);\n\n @GET\n Call<AudioListRespone> loadAudioList(@Url String url);\n\n @FormUrlEncoded\n @POST\n Call<LoginResponse> login(@Url String url,\n @Field(\"email\") String username,\n @Field(\"password\") String password,\n @Field(\"facebookId\") String facebookId,\n @Field(\"googlePlusId\") String googlePlusId);\n\n @FormUrlEncoded\n @POST\n Call<BaseResponse> logout(@Url String url,\n @Field(\"accessToken\") String accessToken);\n}", "Retrofit getRetrofit(Integer logLevel) {\n if (this.retrofit == null) {\n \tHttpLoggingInterceptor logging = new HttpLoggingInterceptor(); \n \tif (logLevel==1)\n \t\tlogging.setLevel(HttpLoggingInterceptor.Level.BODY);\n \telse if (logLevel==2)\n \t\tlogging.setLevel(HttpLoggingInterceptor.Level.HEADERS);\n \tOkHttpClient.Builder httpClient = new OkHttpClient.Builder(); \n \tif (logLevel!=null && logLevel>0)\n \t\thttpClient.addInterceptor(logging); \n this.retrofit = new Retrofit.Builder()\n .baseUrl(baseUrl)\n .addConverterFactory(GsonConverterFactory.create())\n .client(httpClient.build())\n .build();\n }\n return retrofit;\n }", "public static Retrofit getRetrofit() {\n Retrofit.Builder retrofitBuilder = new Retrofit.Builder()\n .baseUrl(Parley.getInstance().getNetwork().getBaseUrl())\n .addConverterFactory(GsonConverterFactory.create())\n .client(getOkHttpClient());\n\n return retrofitBuilder.build();\n }", "public interface ApiInterface {\n\n\n @GET(\"articles/\")\n Call<NewsResponse> getTopNews(@Query(\"source\") String source, @Query(\"sortBy\") String sortby, @Query(\"apiKey\") String apiKey);\n\n\n @Headers(\"X-Auth-Token: 8899bb9e61d04e20b2de5ec3d26e5ecf\")\n @GET(\"competitions/{champion_id}/leagueTable\")\n Call<LeagueTableResponse> getLeagueTable(@Path(\"champion_id\") int championId);\n\n\n @Headers(\"X-Auth-Token: 8899bb9e61d04e20b2de5ec3d26e5ecf\")\n @GET(\"competitions/{champion_id}/fixtures?matchday=16\")\n Call<LeagueMatchesResponse> getLeagueMatches(@Path(\"champion_id\") int championId);\n\n @Headers(\"X-Auth-Token: 8899bb9e61d04e20b2de5ec3d26e5ecf\")\n @GET(\"teams/{team_id}/players\")\n Call<PlayerResponse> getTeamPlayers(@Path(\"team_id\") int teamId);\n\n class ApiClient {\n\n public static final String BASE_URL = \"https://newsapi.org/v1/\";\n private static Retrofit retrofit = null;\n\n\n public static Retrofit getClient() {\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }\n return retrofit;\n }\n }\n\n class ApiClientFootBall {\n\n public static final String BASE_URL_FOOT_BALL = \"http://api.football-data.org/v1/\";\n private static Retrofit retrofit = null;\n\n\n public static Retrofit getClient() {\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL_FOOT_BALL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }\n return retrofit;\n }\n }\n}", "@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n OkHttpClient client = new OkHttpClient();\n return client;\n }", "public static APIRetrofit build() {\n final Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .build();\n TrafficStats.setThreadStatsTag(0x1000);\n return retrofit.create(APIRetrofit.class);\n }", "public static Retrofit serviceNowApi() {\n return new Retrofit.Builder()\n .baseUrl(BuildConfig.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }", "public interface WeatherApi {\n String ss=\"https://free-api.heweather.com/v5/forecast?city=杭州&key=1bda33b149584e68b6932b234c12d8fe\";\n //必须以‘/’结尾\n String key=\"1bda33b149584e68b6932b234c12d8fe\";\n String Host=\"https://free-api.heweather.com/v5/\";\n //1.使用了Retrofit自己的返回类型Call和自定义泛型参数\n @GET(\"forecast\")\n @FormUrlEncoded//默认形式请求数据类型mime\n Call<HeWeathers> getWeatherJson(@Query(\"city\") String city,@Query(\"key\") String key);\n\n //2.使用了Retrofit自己的返回类型Call和okhttp3.ResponseBody\n @GET(\"forecast\")\n Call<ResponseBody> getWeather3Json(@Query(\"city\") String city,@Query(\"key\") String key);\n\n //3.使用了RxJava返回类型Observable和自定义泛型参数\n @GET(\"forecast\")\n Observable<HeWeathers> getWeather2Json(@Query(\"city\") String city,@Query(\"key\") String key);\n\n //4.使用了RxJava返回类型Observable和okhttp3.ResponseBody\n @GET(\"forecast\")\n Observable<ResponseBody> getWeather4Json(@Query(\"city\") String city,@Query(\"key\") String key);\n\n //5.使用了RxJava返回类型Observable和自定义泛型参数\n @GET(\"forecast\")\n Observable<Weather> getWeather5Json(@Query(\"city\") String city, @Query(\"key\") String key);\n /**\n * {@link Part} 后面支持三种类型,{@link RequestBody}、{@link okhttp3.MultipartBody.Part} 、任意类型\n * 除 {@link okhttp3.MultipartBody.Part} 以外,其它类型都必须带上表单字段({@link okhttp3.MultipartBody.Part} 中已经包含了表单字段的信息),\n */\n @POST(\"/form\")\n @Multipart\n Call<ResponseBody> testFileUpload1(@Part(\"name\") RequestBody name, @Part(\"age\") RequestBody age, @Part MultipartBody.Part file);\n}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public static Retrofit getClient(final Context context) {\n //setup cache\n OkHttpClient okHttpClient = createCachedClient(context);\n retrofit = new Retrofit.Builder()\n .client(okHttpClient)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n return retrofit;\n }", "public interface ApiInterface {\n String ENDPOINT = \"http://ibacor.com/api/\";\n String API_BMKG = \"bmkg?\";\n String GEMPA = \"view=gempa\";\n\n\n @GET(API_BMKG+GEMPA)\n Call<Data>\n getDataGempa();\n\n class Factory {\n\n public static ApiInterface create(Context context) {\n\n OkHttpClient.Builder builder = new OkHttpClient().newBuilder();\n builder.readTimeout(30, TimeUnit.SECONDS);\n builder.connectTimeout(20, TimeUnit.SECONDS);\n builder.writeTimeout(60, TimeUnit.SECONDS);\n\n if (BuildConfig.DEBUG) {\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BASIC);\n builder.addInterceptor(interceptor);\n }\n\n int cacheSize = 10 * 1024 * 1024; // 10 MiB\n Cache cache = new Cache(context.getCacheDir(), cacheSize);\n builder.cache(cache);\n\n OkHttpClient client = builder.build();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(ApiInterface.ENDPOINT)\n .client(client)\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJavaCallAdapterFactory.create())\n .build();\n\n return retrofit.create(ApiInterface.class);\n }\n }\n\n}", "public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }", "public TankOkHttpClient() {\n try {\n\n final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {}\n\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {}\n } };\n\n // Setup SSL to accept all certs\n final SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustAllCerts, null);\n sslSocketFactory = sslContext.getSocketFactory();\n\n // Setup Cookie manager\n cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);\n CookieHandler.setDefault(cookieManager);\n okHttpClient.setCookieHandler(cookieManager);\n\n okHttpClient.setConnectTimeout(30000, TimeUnit.MILLISECONDS);\n okHttpClient.setReadTimeout(30000, TimeUnit.MILLISECONDS); // Socket-timeout\n okHttpClient.setFollowRedirects(true);\n okHttpClient.setFollowSslRedirects(true);\n\n okHttpClient.setSslSocketFactory(sslSocketFactory);\n okHttpClient.setHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n\n } catch (Exception e) {\n LOG.error(\"Error setting accept all: \" + e, e);\n }\n }", "private static OkHttpClient m35241c() {\n return new OkHttpClient();\n }", "public DarknetEndpoint(@NonNull final Retrofit retrofit, @NonNull final Context context) {\n this.context = context;\n this.retrofit = retrofit;\n this.api = retrofit.create(DarknetApi.class);\n cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);\n apiKey = BuildConfig.ApiKey;\n\n }", "public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }", "public OpenWeatherController() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(FORECAST_BASE_URL).addConverterFactory(GsonConverterFactory.create()).build();\n\n service = retrofit.create(OpenWeatherMapService.class);\n }", "private ParkingLotApi()\r\n {\r\n }", "private APIClient() {\n }", "public interface GitHubInterface {\n //http://test.xdyapi.haodai.net/Wallet/getAccountList?os_type=1&appid=1&imei=867614023363542&app_version=35000&channel=web&auth_tms=20170306133730&auth_did=5793&auth_dsig=08526488a4ade5a8&auth_uid=193594&auth_usig=8493bf3e111114c9?os_type=1&appid=1&imei=867614023363542&app_version=35000&channel=web&auth_tms=20170306133730&auth_did=5793&auth_dsig=08526488a4ade5a8&auth_uid=193594&auth_usig=8493bf3e111114c9&xid=193594\n\n //这是retrofit版本\n// @POST(\"Wallet/{user}\")\n// Call<Repo> listRepos(@Path(\"user\") String user, @QueryMap Map<String, String> map);\n\n //这是retrofit2版本\n //注意:ResponseBody这个类需要导入\"import okhttp3.ResponseBody\"这个包的\n @POST(\"Wallet/{user}\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user, @QueryMap Map<String, String> map);\n}", "public static void connectToServer(String baseUrl) {\n\n Retrofit retrofit = new Retrofit.Builder().baseUrl(baseUrl).addConverterFactory(GsonConverterFactory.create()).build();\n UPKService service = retrofit.create(UPKService.class);\n Call<UPKResponse> call = service.getData(\"1ITPdXilVjBOLG_rxaSxeWbK-esHrY8AX3pGvixAzDXo\", \"3\", \"\");\n call.enqueue(new Callback<UPKResponse>() {\n @Override\n public void onResponse(Call<UPKResponse> call, Response<UPKResponse> response) {\n /*\n HAKEEM: added an arraylist data field that will get populated here\n */\n Log.d(\"Success\", \"in there\");\n Log.d(\"YOOO\", \"POJO\" + response.body());\n UPKResponse upkResponse = response.body();\n mUPKList = upkResponse.getRows();\n// uPKReceyclerView.setLayoutManager(new LinearLayoutManager(MapsActivity_Hakeem.getView().getContext()));\n// UPKMapAdapter adapter = new UPKMapAdapter(mUPKList);\n// uPKReceyclerView.setAdapter(adapter);\n Log.d(\"Adapter\", \"adapter attached\");\n\n data = response.body().getRows();\n System.out.println(data);\n System.out.println(\"UPK DATA STREAM\");\n// childCareAdapter = new ChildCareAdapter(response.body());\n// childCareRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n// childCareRecyclerView.setAdapter(adapter);\n }\n\n @Override\n public void onFailure(Call<UPKResponse> call, Throwable t) {\n Log.d(TAG, \"Failed to connect\");\n }\n });\n }", "public interface CultureListApiService {\n @GET(Variable._CULTURE_LIST_SERVER_REQUEST_URL)\n Maybe<CultureTotalData> getCultureList(@QueryMap Map<String, String> map);\n\n class Factory extends Converter.Factory{\n public static CultureListApiService create(){\n return RetrofitFactory.initRetrofit().create(CultureListApiService.class);\n }\n }}", "@ApiUrl(\"https://getman.cn/\")\n//@ApiVariableUrl(RandomUrlConfig.class)\n@ApiOkHttpConfig(MyOkHttpConfig.class)\n@ApiRetrofitConfig(MyRetrofitConfig.class)\npublic interface MyApi {\n\n /**\n * Doc内容 {@link MyOkHttpConfig}\n * xxx\n */\n @GET(\"mock/route/to/demo\")\n Request<ResponseBody> getResponseBody();\n\n @GET(\"mock/route/to/demo\")\n Request<ResponseBody> getResponseBodyWithParams(@QueryMap Map<String, Object> arg);\n\n @GET(\"mock/acap/api/helloworld\")\n Request<BaseModel<String>> getModel();\n\n @GET(\"/mock/acap/api/helloworld/error\")\n Request<BaseModel<String>> getModelError();\n\n @GET(\"mock/route/to/demo\")\n Call<ResponseBody> getCall(@Query(\"1\") String str, @Query(\"2\") String str2, @Query(\"3\") String str3);\n}", "public interface GitHubService {\n @GET(\"repos/{owner}/{repo}/contributors\")\n Call<List<Contributor>> repoContributors(\n @Path(\"owner\") String owner,\n @Path(\"repo\") String repo);\n\n\n HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient okHttpClient = new OkHttpClient.Builder().addInterceptor(httpLoggingInterceptor).addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n HttpUrl originalHttpUrl = original.url();\n\n HttpUrl.Builder originalUrlBuilder = originalHttpUrl.newBuilder();\n originalUrlBuilder.addQueryParameter(\"access_token\", \"YOUR_TOKEN\");\n\n HttpUrl url = originalUrlBuilder.build();\n\n Request.Builder reqBuilder = original.newBuilder().url(url);\n return chain.proceed(reqBuilder.build());\n }\n }).build();\n\n\n\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"https://api.github.com/\")\n .addConverterFactory(GsonConverterFactory.create()).client(okHttpClient)\n .build();\n\n @GET(\"/users/{username}\")\n Call<Contributor>user(\n @Path(\"username\")String login);\n\n @GET\n Call<List<Repository>> getRepos(@Url String url);\n\n}", "public HttpUrlFetcher(Call.Factory factory) {\n super(factory);\n Intrinsics.checkParameterIsNotNull(factory, \"callFactory\");\n }", "public interface HttpClientInterface {\n\n Retrofit getClient();\n}", "public interface Api {\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"anslogsave\")\n Call<ResponseBody> anslogsave(@Body RequestBody anslog);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotlogsave\")\n Call<ResponseBody> robotlogsave(@Body RequestBody robotlogsave);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotstatsave\")\n Call<ResponseBody> robotstatsave(@Body RequestBody robotstatsave);\n\n @FormUrlEncoded\n @POST(\"borr\")\n Call<String> borr(@Field(\"title\")String title,\n @Field(\"inflag\")int inflag);\n @FormUrlEncoded\n @POST(\"guide\")\n Call<String> guide(@Field(\"title\")String title);\n @FormUrlEncoded\n @POST(\"\")\n Call<String> baidu();\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"data\")\n Call<ResponseBody> upCewen(@Body RequestBody upCewen);\n\n @GET(\"doc_list?\")\n Call<String> search(@Query(\"search_txt\")String search);\n}", "public void buildPicasso() {\n OkHttpClient client = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request newRequest = chain.request().newBuilder()\n .addHeader(\"Authorization\", \"Token \" + token)\n .build();\n return chain.proceed(newRequest);\n }\n })\n .build();\n Picasso.Builder picassoBuilder = new Picasso.Builder(context)\n .downloader(new OkHttp3Downloader(client));\n picasso = picassoBuilder.build();\n isPicasso = true;\n }", "private void initializeAndConnectGoogleApi() {\n if (googleApiClient != null) {\n googleApiClient.stopAutoManage(this);\n googleApiClient.disconnect();\n }\n googleApiClient = new GoogleApiClient\n .Builder(this)\n .enableAutoManage(this, 0, this)\n .addApi(Places.GEO_DATA_API)\n .addApi(Places.PLACE_DETECTION_API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n // Connect if it's not\n if (!googleApiClient.isConnected()) {\n googleApiClient.connect();\n }\n }", "public interface LifeService {\n\n String URL = \"http://www.life.borombo.com/\";\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(LifeService.URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n LifeService service = retrofit.create(LifeService.class);\n\n @GET(\"/wp-json/wp/v2/posts\")\n Call<List<Post>> listPosts();\n\n @GET(\"/wp-json/wp/v2/users/{user}\")\n Call<User> getAuthor(@Path(\"user\") int user);\n\n @GET(\"/wp-json/wp/v2/media/{media}\")\n Call<Media> getMedia(@Path(\"media\") int media);\n\n @GET(\"/wp-json/wp/v2/categories/{categorie}\")\n Call<Categorie> getCategorie(@Path(\"categorie\") int categorie);\n\n @GET(\"/wp-json/wp/v2/tags/{tag}\")\n Call<Tag> getTag(@Path(\"tag\") int tag);\n}", "public static void init(URL banksapiBaseUrl) {\n if (BANKSapi.banksapiBaseUrl == null) {\n BANKSapi.banksapiBaseUrl = banksapiBaseUrl;\n } else {\n throw new IllegalStateException(\"init(URL) called but base URL is already initialized\");\n }\n }", "private ApiUrlCreator() {\n }", "public interface RestService {\n\n @GET\n Call<String> get(@Url String url, @QueryMap Map<String, Object> params, @HeaderMap Map<String, String> headers);\n\n @FormUrlEncoded\n @POST\n Call<String> post(@Url String url, @FieldMap Map<String, Object> params);\n\n// @Multipart\n// @PUT\n// Call<String> put(@Url String url, @HeaderMap Map<String, String> headers, @PartMap Map<String, RequestBody> params);\n\n @PUT\n Call<String> put(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @DELETE\n Call<String> delete(@Url String url, @HeaderMap Map<String, String> headers, @QueryMap Map<String, Object> params);\n\n @Streaming\n @GET\n Call<ResponseBody> download(@Url String url, @QueryMap Map<String, Object> params);\n\n @Multipart\n @POST\n Call<String> upload(@Url String url, @Part MultipartBody.Part file);\n\n// @GET\n// Call<SongSearchEntity> getSongSearchList(@Url String url, @QueryMap Map<String, Object> params, @HeaderMap Map<String, String> headers);\n\n @POST\n Call<User> signIn(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @GET\n Call<User> profile(@Url String url, @HeaderMap Map<String, String> headers);\n\n// @Multipart\n// @PUT\n// Call<String> user(@Url String url, @HeaderMap Map<String, String> headers, @Part(\"id\") RequestBody id, @Part(\"key\") RequestBody key, @Part(\"value\") RequestBody value);\n//\n// @PUT\n// Call<String> user(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @Multipart\n @PUT\n Call<String> user(@Url String url, @HeaderMap Map<String, String> headers, @PartMap Map<String, RequestBody> params);\n\n @GET\n Call<SongListEntity> musicbillList(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<SongListDetailEntity> musicbill(@Url String url, @HeaderMap Map<String, String> headers);\n\n @POST\n Call<String> createMusicbill(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @DELETE\n Call<String> deleteMusicbill(@Url String url, @HeaderMap Map<String, String> headers);\n\n @POST\n Call<String> addMusicbillMusic(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @Multipart\n @PUT\n Call<String> updateMusicbillMusic(@Url String url, @HeaderMap Map<String, String> headers, @PartMap Map<String, RequestBody> params);\n\n @DELETE\n Call<String> deleteMusicbillMusic(@Url String url, @HeaderMap Map<String, String> headers, @Body RequestBody body);\n\n @GET\n Call<SongSearchEntity> getMusic(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<LyricEntity> getLyric(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<String> getSinger(@Url String url, @HeaderMap Map<String, String> headers);\n\n @GET\n Call<ZhiliaoEntity> getVerify(@Url String url, @HeaderMap Map<String, String> headers);\n}", "private void init(Bundle savedInstanceState) {\n googleApiClient = new GoogleApiClient.Builder(getContext())\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n geocoder = new Geocoder(getContext(), Locale.getDefault());\n }", "public interface RetrofitService {\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<LoginBean,Object>> login(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<LoginBean,Object>> wxlogin(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<LoginBean,Object>> bindUser(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean> register(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean> loginout(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean> addfamilyuser(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<FamilyUserInfo>,PageBean>> getfamilylist(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean> sendDeviceInfo(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<NewsInfo>,Object>> getNewsInfo(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<MachineBindBean<ArrayList<MachineBindMemberBean>>>,PageBean>> getMachineInfo(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<List<MachineBindMemberBean>,PageBean>> getMachineMemberInfo(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean> putMachineMember(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<BtRecordBean>,Object>> getBtRecord(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<MeasureRecordBean>,PageBean>> getBtListRecord(@FieldMap Map<String,String> params);\n\n //获取健康监测仪最新一次测量数据\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<LastMeasureDataBean<MeasureRecordBean>,Object>> getLastInfo(@FieldMap Map<String,String> params);\n\n //获取体脂称最新一次测量数据\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<LastFatMeasureDataBean<MeasureRecordBean>,Object>> getFatLastInfo(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<DownloadBean,Object>> update(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<GeneBean>,Object>> sendlist(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<FlashListBean>,Object>> flashList(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<String>,Object>> getDayDate(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<ArrayList<DataTestBean>,Object>> getDataTest(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<BrushUseCount,Object>> getUseCount(@FieldMap Map<String,String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<BrushUseCount,Object>> getClearCount(@FieldMap Map<String,String> params);\n\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<String,Object>> getHistory(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<RedEnvelopeEntity,Object>> getIsHaveRedEnvelope(@FieldMap Map<String, String> params);\n\n @FormUrlEncoded\n @POST(\"Api/\")\n Observable<ResultBean<String,Object>> getIsOpenRedEnvelope(@FieldMap Map<String, String> params);\n}", "private void initConnection() throws MalformedURLException, IOException {\n httpConnection = (HttpURLConnection) new URL(initUrlParameter())\n .openConnection();\n httpConnection.setDoOutput(true);\n httpConnection.setDoInput(true);\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n httpConnection.setRequestProperty(\"Authorization\",\n authentificator.generateBasicAuthorization());\n\n }", "public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}", "private void init() {\n AdvertisingRequest();// 广告列表请求线程\n setapiNoticeControllerList();\n }", "public static void setUp() {\n RequestFactory.defaultFactory = new RequestFactory() {\n @Override\n public Request createRequest(\n String httpMethod,\n String apiMethod,\n RequestType type,\n Map<String, Object> params) {\n return new RequestHelper(httpMethod, apiMethod, type, params);\n }\n };\n RequestSender.setInstance(new ImmediateRequestSender());\n\n if (BuildConfig.DEBUG) {\n Leanplum.setAppIdForDevelopmentMode(APP_ID, DEVELOPMENT_KEY);\n } else {\n Leanplum.setAppIdForProductionMode(APP_ID, PRODUCTION_KEY);\n }\n Leanplum.setDeviceId(\"leanplum-unit-test-20527411-BF1E-4E84-91AE-2E98CBCF30AF\");\n Leanplum.setApiConnectionSettings(API_HOST_NAME, \"api\", API_SSL);\n Leanplum.setSocketConnectionSettings(SOCKET_HOST_NAME, SOCKET_PORT);\n Leanplum.setLogLevel(Log.Level.DEBUG);\n }", "private void initializeGoogleApiClient() {\n\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(getContext())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n\n }", "public ApiResponse() {\n }", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }", "@PostConstruct\n public void init() {\n ApiClient client = Config.fromToken(url, token, validateSSL);\n io.kubernetes.client.Configuration.setDefaultApiClient(client);\n }", "public interface ApiManager {\n @POST\n Call<ResponseBody> upload(@Url() String url);\n\n //上传文件\n @POST\n Call<ResponseBody> uploadFile(@Url() String url, @Body RequestBody body);\n\n //修改手机号\n @POST\n Call<ResponseBody> changePhone(@Url() String url);\n\n //订单详情\n @POST\n Observable<PayDetails> orderDetatls(@Url() String url);\n\n //通知已读\n @POST\n Call<ResponseBody> notityReader(@Url() String url);\n}", "Retrofit register(String identity, Retrofit retrofit);", "public interface Api {\n\n// String BASE_URL_REMOTE = \"http://192.168.0.11/videoworld/v1/\"; //远程服务器的\n\n String BASE_URL_REMOTE = \"http://www.luocaca.cn/VideoWorld/v1/\"; //远程服务器的\n// String BASE_URL_REMOTE = \"http://115.159.196.175/VideoWorld/v1/\"; //远程服务器的\n\n// String BASE_URL = \"http://v.juhe.cn/weather/\";\n\n\n @GET(\"citys\")\n Observable<AllCity> getAllCity(@Query(\"key\") String key);\n\n\n /**\n * http://localhost:8089/hello/book/add?name=大傻1&book_id=222&number=222&detail=详细信息\n *\n * @param book_id\n * @param number\n * @param detail\n * @param name\n * @return\n */\n\n @GET(\"book/add\")\n Observable<ApiResult> requestAdd(@Query(\"book_id\") String book_id,\n @Query(\"number\") String number,\n @Query(\"detail\") String detail,\n @Query(\"name\") String name,\n @Query(\"url\") String url\n );\n\n\n @GET(\"book/allbook\")\n Observable<ApiResult<List<Book>>> requestBookList();\n\n @GET(\"book/del/{bookId}\")\n Observable<ApiResult> requestDelete(@Path(\"bookId\") String bookId);\n\n @GET\n Observable<ObjectResponse> requestGetMovies(@Url String baseUrl, @Query(\"url\") String url);\n\n @GET\n Observable<ObjectResponse> requestAddMovies(@Url String baseUrl, @Query(\"url\") String url, @Query(\"list\") String list);\n\n //http://api.nlkmlk.com:81/love/user/1711111\n @GET\n Observable<Result> requestVip(@Url String baseUrl );\n\n\n}", "private ApiConfig() {\n }", "public interface ImageService {\n\n //String ENDPOINT = \"http://n.xxt.cn:3000/\";\n //String ENDPOINT = \"http://api.laifudao.com/\";\n String ENDPOINT = \"http://image.baidu.com/\";\n\n @GET(\"/data/imgs?tag=性感&sort=0&pn=10&rn=50&p=channel&from=1\")\n Observable<JsonObject> getImages(@Query(\"col\") String col,\n @Query(\"tag\") String tag,\n @Query(\"pn\") int start,\n @Query(\"rn\") int end);\n\n class Creator {\n public static ImageService getService(Context context) {\n Retrofit retrofit = RemoteUtil.createRetrofitInstance(context, ENDPOINT);\n return retrofit.create(ImageService.class);\n }\n }\n}", "public interface RetrofitService {\n // --------------------- User -----------------//\n\n @FormUrlEncoded\n @POST(Service.PATH_GENERATE_OTP)\n Call<ApiGenerateOTP> postGenerateOTP(\n @Field(\"TelephoneNumber\") String TelephoneNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_GET_OTP)\n Call<ApiGenerateOTP> postGetOTP(\n @Field(\"TelephoneNumber\") String TelephoneNumber\n );\n\n /* Deprecate */\n @FormUrlEncoded\n @POST(Service.PATH_POST_VERIFY_OTP)\n Call<NormalResponseObject> postVerifyOTP(\n @Field(\"ReferenceCode\") String ReferenceCode,\n @Field(\"OTP\") String Otp\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_CHECK_TELEPHONE)\n Call<ApiCheckTelephone> postCheckTelephone(\n @Field(\"TelephoneNumber\") String TelephoneNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_AUTH)\n Call<ApiAccessToken> postLoginOtp(\n @Field(\"client_id\") String client_id,\n @Field(\"client_secret\") String client_secret,\n @Field(\"type\") String type,\n @Field(\"grant_type\") String grant_type,\n @Field(\"username\") String username,\n @Field(\"telephoneNumber\") String telephoneNumber,\n @Field(\"otp\") String otp,\n @Field(\"otpReference\") String otpReference\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_AUTH)\n Call<ApiAccessToken> postLogin(\n @Field(\"client_id\") String client_id,\n @Field(\"client_secret\") String client_secret,\n @Field(\"authentication_method\") String type_method,\n @Field(\"grant_type\") String grant_type,\n @Field(\"username\") String username,\n @Field(\"password\") String password\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_AUTH)\n Call<ApiAccessToken> postLogin(\n @Field(\"client_id\") String client_id,\n @Field(\"client_secret\") String client_secret,\n @Field(\"authentication_method\") String type_method,\n @Field(\"grant_type\") String grant_type,\n @Field(\"username\") String username,\n @Field(\"password\") String password,\n @Field(\"reference_code\") String ReferenceCode\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_AUTH)\n Call<ApiAccessToken> postLoginFacebook(\n @Field(\"client_id\") String client_id,\n @Field(\"client_secret\") String client_secret,\n @Field(\"authentication_method\") String type_method,\n @Field(\"grant_type\") String grant_type,\n @Field(\"username\") String username,\n @Field(\"password\") String password,\n @Field(\"facebook_id\") String facebook_id,\n @Field(\"facebook_token\") String facebook_token\n );\n\n /*\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_AUTH)\n Call<ApiAccessToken> postLoginFacebook(\n @Field(\"client_id\") String client_id,\n @Field(\"client_secret\") String client_secret,\n @Field(\"type\") String type,\n @Field(\"grant_type\") String grant_type,\n @Field(\"Email\") String email,\n @Field(\"username\") String username,\n @Field(\"fb_id\") String fbId,\n @Field(\"fb_token\") String fb_token,\n @Field(\"fb_fname\") String fbName,\n @Field(\"fb_lname\") String fbLastname,\n @Field(\"fb_img\") String fbImg\n );\n */\n\n @GET(Service.PATH_GET_APP_VERSION)\n Call<ApiCurrentVersion> CheckVersion(\n @Query(\"os\") String os,\n @Query(\"clientId\") String client_id\n );\n\n @GET(Service.PATH_GET_LIST_CREDIT_CARD)\n Call<ApiListCreditCard> getListCreditCard();\n\n @DELETE(Service.PATH_GET_LIST_CREDIT_CARD)\n Call<ApiListCreditCard> removeCreditCard(\n @Query(\"cardId\") int cardId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_AUTH)\n Call<ApiAccessToken> postRefreshToken(\n @Field(\"client_id\") String client_id,\n @Field(\"client_secret\") String client_secret,\n @Field(\"grant_type\") String grant_type,\n @Field(\"refresh_token\") String refresh_token\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_USER)\n Call<ApiUserObject> postLoginUser(\n @Field(\"Email\") String email,\n @Field(\"Password\") String password\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_REGISTER_USER)\n Call<ApiUserObject> postRegisterUser(\n @Field(\"Email\") String email,\n @Field(\"ConfirmEmail\") String confirmEmail,\n @Field(\"Password\") String password,\n @Field(\"ConfirmPassword\") String confirmPassword,\n @Field(\"UserName\") String username,\n @Field(\"Name\") String name,\n @Field(\"Lastname\") String lastname,\n @Field(\"BirthDay\") String birthday,\n @Field(\"CongenitalDisease\") String congenitalDisease, //โรค\n @Field(\"BeAllergic\") String beAllergic, // แพ้ยา\n @Field(\"FoodAllergy\") String foodAllergy\n ); // แพ้อาหาร\n\n @FormUrlEncoded\n @POST(Service.PATH_REGISTER_USER_WITH_EMAIL)\n Call<NormalResponseObject> postRegisterUser(\n @Field(\"UserName\") String username,\n @Field(\"Email\") String email,\n @Field(\"MobileToken\") String deviceId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_REGISTER_USER_WITH_PASSWORD)\n Call<NormalResponseObject> postRegisterUserWithPassword(\n @Field(\"UserName\") String username,\n @Field(\"Email\") String email,\n @Field(\"Token\") String deviceId,\n @Field(\"Password\") String password,\n @Field(\"ConfirmedPassword\") String confirmedPassword\n );\n\n @GET(Service.PATH_GET_CURRENT_USER)\n Call<ApiUserInfo> getCurrentUser();\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @PATCH(Service.PATH_PATCH_CURRENT_USER)\n Call<NormalResponseObject> patchUpdateUser(\n @Part(\"Username\") RequestBody Username,\n @Part(\"OldPassword\") RequestBody OldPassword,\n @Part(\"Password\") RequestBody Password,\n @Part(\"ConfirmPassword\") RequestBody ConfirmPassword,\n @Part(\"ReferenceCode\") RequestBody ReferenceCode,\n @Part(\"OTP\") RequestBody OTP,\n @Part MultipartBody.Part ProfileImage\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_USER_INFO)\n Call<ApiUserObject> postUserInfo(\n @Field(\"UserId\") int userId\n );\n\n @FormUrlEncoded\n @GET(Service.PATH_USER_INFO)\n Call<ApiUserObject> getUserInfo();\n\n @FormUrlEncoded\n @POST(Service.PATH_EDIT_PROFILE_USER)\n Call<NormalResponseObject> postEditProfileUser(\n @Field(\"UserId\") int userId,\n @Field(\"UserName\") String username,\n @Field(\"Name\") String name,\n @Field(\"Lastname\") String lastname,\n @Field(\"BirthDay\") String birthday,\n @Field(\"CongenitalDisease\") String congenitalDisease,\n @Field(\"BeAllergic\") String beAllergic,\n @Field(\"FoodAllergy\") String foodAllergy,\n @Field(\"JobId\") int jobId,\n @Field(\"Email\") String email,\n @Field(\"ContactTelephone\") String ContactTelephone\n );\n\n @FormUrlEncoded\n @PATCH(Service.PATH_PATCH_UPDATE_PROFILE_USER)\n Call<NormalResponseObject> patchUpdateProfileUser(\n @Field(\"UserName\") String username\n// @Field(\"Email\") String email,\n// @Field(\"Telephone\") String telephone\n );\n\n //@Headers({\"Accept: application/json\"})\n @GET(Service.GET_DOCTORS_SCHEDULES)\n Call<ApiDoctorSchedules> getDoctorSchedules(\n @Path(\"DoctorId\") int doctorId,\n @Path(\"Year\") int year,\n @Path(\"Month\") int month\n );\n\n //@Headers({\"Accept: application/json\"})\n @GET(Service.GET_DOCTORS_SCHEDULES_DAY)\n Call<ListItemTimeSlotDao> getDoctorSchedules(\n @Path(\"DoctorId\") int doctorId,\n @Path(\"Year\") int year,\n @Path(\"Month\") int month,\n @Path(\"Day\") int day\n );\n\n //..Doctor\n\n @GET(Service.PATH_GET_LIST_DOCTORS)\n Call<ApiListDoctor> getListDoctorsStandby(\n @Query(\"IsStandby\") boolean isStandby,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_LIST_DOCTORS)\n Call<ApiListDoctor> getListDoctors(\n @Query(\"CategoryId\") int CategoryId,\n @Query(\"ClinicId\") int ClinicId,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_LIST_DOCTORS)\n Call<ApiListDoctor> getListDoctorsWithSubcategory(\n @Query(\"CategoryId\") int categoryId,\n @Query(\"SubCategoryId\") int subCategoryId,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_DOCTORS)\n Call<ItemDoctorDao> getDoctor(\n @Path(\"DoctorId\") int doctorId\n );\n\n @GET(Service.PATH_GET_DOCTORS_AVAILABLE_TIME)\n Call<ApiListDoctorAvailableTimes> getDoctorAvailabelTimes(\n @Path(\"DoctorId\") int doctorId,\n @Query(\"Limit\") int limit\n );\n\n //..Category\n @GET(Service.PATH_GET_LIST_CATEGORIES)\n Call<ListCategoryDao> getListCategories(\n @Query(\"IsOnlyShow\") boolean IsOnlyShow,\n @Query(\"IsOnlyActive\") boolean IsOnlyActive\n );\n\n @GET(Service.PATH_GET_LIST_SUB_CATEGORIES)\n Call<ListSubCategoryDao> getListSubCategories(\n @Query(\"categoryId\") String categoryId,\n @Query(\"IsOnlyShow\") boolean IsOnlyShow\n );\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_POST_DOCTORS_FAVORITE)\n Call<NormalResponseObject> postDoctorFavorite(\n @Path(\"DoctorId\") int doctorId,\n @Body DoctorFavoriteRequest body\n );\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_POST_DOCTORS_RATING)\n Call<NormalResponseObject> postDoctorRating(\n @Path(\"DoctorId\") int doctorId,\n @Body DoctorRatingRequest body\n );\n\n //..Clinics\n @GET(Service.PATH_GET_LIST_CLINICS)\n Call<ListClinicDao> getListClinics(\n @Query(\"IsOnlyShow\") boolean IsOnlyShow,\n @Query(\"IsOnlyActive\") boolean IsOnlyActive\n );\n\n @GET(Service.PATH_GET_JOB_LIST)\n Call<ApiJobObject> getListJob();\n\n @GET(Service.PATH_GET_LIST_SYMPTOM)\n Call<ApiListSymptom> getListSymptomType();\n\n @GET(Service.PATH_GET_LIST_CLINIC)\n Call<ApiListClinic> getListClinic();\n\n @GET(Service.PATH_GET_LIST_DOCTOR)\n Call<ApiListDoctor> getListDoctor(\n @Query(\"ClinicId\") int clinicId,\n @Query(\"SymptomTypeId\") int symptomTypeId\n );\n\n //.. Articles\n @GET(Service.PATH_GET_LIST_ARTICLES_CAROUSEL)\n Call<ListArticlesBannerDao> getListArticlesBanner();\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_CREATE_ARTICLES)\n Call<NormalResponseObject> postCreateArticles(\n @Part(\"Article\") RequestBody body\n );//, @Part MultipartBody.Part image\n\n @GET(Service.PATH_GET_ARTICLES)\n Call<ApiListArticles> getArticles(\n @Query(\"Doctorid\") int Doctorid,\n @Query(\"ArticleGroupId\") int ArticleGroupId\n );\n\n @GET(Service.PATH_GET_ARTICLES_GROUP)\n Call<ApiDoctorArticleGroup> getArticlesGroups();\n\n @GET(Service.PATH_GET_ARTICLES_BY_ID)\n Call<ItemArticleDao> getArticlesById(\n @Path(\"ArticleId\") int ArticleId\n\n );\n\n @GET(Service.PATH_GET_ARTICLES_SIMILAR)\n Call<ApiListArticles> getArticlesSimilar(\n @Path(\"ArticleId\") int ArticleId\n );\n\n //.. Products\n @GET(Service.PATH_GET_LIST_PRODUCT_CAROUSEL)\n Call<ListProductBannerDao> getListProductBanner();\n\n @GET(Service.PATH_GET_LIST_PRODUCT_GROUPS)\n Call<ListProductGroupDao> getListProductGroups(\n @Query(\"IsOnlyActive\") boolean isOnlyActive,\n @Query(\"IsRecommendProduct\") boolean isRecommendProduct\n ); // IsRecommendProduct =true\n\n @GET(Service.PATH_GET_LIST_PRODUCT_GROUPS)\n Call<ListProductGroupDao> getListProductGroups(\n @Query(\"Keyword\") String Keyword,\n @Query(\"IsOnlyActive\") boolean isOnlyActive,\n @Query(\"PageIndex\") int PageIndex,\n @Query(\"PageSize\") int PageSize,\n @Query(\"SortBy\") String SortBy,\n @Query(\"SortDirection\") String SortDirection\n );\n\n @GET(Service.PATH_GET_LIST_PRODUCTS)\n Call<ListProductDao> getListProducts(\n @Query(\"ProductGroupId\") int ProductGroupId,\n @Query(\"IsOnlyActive\") boolean IsOnlyActive\n );\n\n @GET(Service.PATH_GET_PRODUCT)\n Call<ItemProductDao> getProduct(\n @Path(\"ProductId\"\n ) int productId);\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_POST_BUY_PRODUCT)\n Call<ApiAppointmentResponse> postBuyProducts(\n @Body ApiProductRequest body\n );\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_POST_BUY_PRODUCT_WITH_SLIP)\n Call<ApiAppointmentResponse> buyProductsWithSlip(\n @Body ApiProductRequest body\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_BUY_PRODUCT)\n Call<ApiAppointmentResponse> postBuyProducts(\n @Field(\"Product\") String listProduct,\n @Field(\"OmiseToken\") String OmiseToken,\n @Field(\"DiscountCode\") String DiscountCode,\n @Field(\"PaymentCode\") String PaymentCode,\n @Field(\"ShippingLocations\") String ShippingLocations,\n @Field(\"Name\") String Name,\n @Field(\"IsPaymentCode\") boolean IsPaymentCode,\n @Field(\"AppointmentNumber\") String AppointmentNumber\n );\n\n //Favorite\n @FormUrlEncoded\n @POST(Service.PATH_ADD_FAVORITE_CLINIC)\n Call<ApiFavoriteObject> postAddFavoriteClinic(\n @Field(\"ClinicId\") int clinicId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_DEL_FAVORITE_CLINIC)\n Call<ApiFavoriteObject> postDelFavoriteClinic(\n @Field(\"ClinicId\") int clinicId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_ADD_FAVORITE_SYMPTOM)\n Call<ApiFavoriteObject> postAddFavoriteSymptom(\n @Field(\"SymptomTypeId\") int symptomTypeId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_DEL_FAVORITE_SYMPTOM)\n Call<ApiFavoriteObject> postDelFavoriteSymptom(\n @Field(\"SymptomTypeId\") int symptomTypeId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_ADD_FAVORITE_DOCTOR)\n Call<ApiFavoriteObject> postAddFavoriteDoctor(\n @Field(\"DoctorUserId\") int doctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_DEL_FAVORITE_DOCTOR)\n Call<ApiFavoriteObject> postDelFavoriteDoctor(\n @Field(\"DoctorUserId\") int doctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_SEARCH_DOCTOR)\n Call<ApiSearchDoctorObject> postSearchDoctor(\n @Field(\"ClinicId\") int clinicId,\n @Field(\"SpecialtyTitle\") String specialtyTitle,\n @Field(\"SectionId\") int sectionId,\n @Field(\"SymptomId\") int symptomId,\n @Field(\"TextSearch\") String keyWord,\n @Field(\"Page\") int pageIndex\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_SEARCH_DOCTOR)\n Call<ApiSearchDoctorObject> postSearchDoctor(\n @Field(\"ClinicId\") int clinicId,\n @Field(\"SpecialtyTitle\") String specialtyTitle,\n @Field(\"SectionId\") int sectionId,\n @Field(\"SymptomId\") int symptomId,\n @Field(\"TextSearch\") String keyWord,\n @Field(\"Page\") int pageIndex,\n @Field(\"AvailableDoctors\") String lastSearchDoctor\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_FAVORITE)\n Call<ApiFavoriteObject> postFavorite(\n @Field(\"UserId\") int userId,\n @Field(\"Page\") int pageIndex\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_FREQUENCY_DOCTOR)\n Call<ApiFavoriteObject> postFrequencyDoctor(\n @Field(\"UserId\") int userId,\n @Field(\"Page\") int pageIndex\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LAST_TIME_DOCTOR)\n Call<ApiFavoriteObject> postLastTimeDoctor(\n @Field(\"UserId\") int userId,\n @Field(\"Page\") int pageIndex\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_ADD_FAVORITE)\n Call<ApiFavoriteObject> postAddFavorite(\n @Field(\"UserId\") int userId,\n @Field(\"DoctorUserId\") int doctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_DELETE_FAVORITE)\n Call<ApiFavoriteObject> postDeleteFavorite(\n @Field(\"UserId\") int userId,\n @Field(\"DoctorUserId\") int doctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CHECK_FAVORITE)\n Call<ApiFavoriteObject> postCheckFavorite(\n @Field(\"UserId\") int userId,\n @Field(\"DoctorUserId\") int doctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_RATE_DOCTOR)\n Call<NormalResponseObject> postRateDoctor(\n @Field(\"UserId\") int userId,\n @Field(\"DoctorUserId\") int doctorId,\n @Field(\"Rate\") int rateValue,\n @Field(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"UserComment\") String userComment\n );\n\n @GET(Service.PATH_USER_TIME_PLAN)\n Call<ApiAppointmentListObject> getUserAppointmentList\n (@Query(\"UserId\") int userId,\n @Query(\"LangId\") int languageId,\n @Query(\"TypeAppointment\") int typeAppointment,\n @Query(\"Page\") int pageIndex\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_MONTH_READY_TIME)\n Call<ApiMonthReadyTimeObject> postMonthReadyTime(\n @Field(\"DoctorUserId\") int doctorId,\n @Field(\"MonthYear\") String date\n );// format MM-dd-yyyy use dayOfMonth 1\n\n @FormUrlEncoded\n @POST(Service.PATH_DOCTOR_MONTH_READY_TIME)\n Call<ApiMonthReadyTimeObject> postDoctorMonthReadyTime(\n @Field(\"DoctorUserId\") int doctorId,\n @Field(\"MonthYear\") String date\n );// format MM-dd-yyyy use dayOfMonth 1\n\n @FormUrlEncoded\n @POST(Service.PATH_TIME_PLAN_BY_DATE)\n Call<ApiTimePlanByDateObject> postTimePlanByDate(\n @Field(\"UserId\") int doctorId,\n @Field(\"DateTimeSelect\") String date\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_BOOKING_NO)\n Call<ApiBookingNoObject> postBookingNo(\n @Field(\"UserId\") int userId,\n @Field(\"DoctorUserId\") int doctorId,\n @Field(\"DateTimeBooking\") String datetimeBooking,\n @Field(\"ContactType\") int contactType,\n @Field(\"DetailBooking\") String retailBooking,\n @Field(\"AllergyHistory\") String allergyHistory\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CHECK_COUPON)\n Call<ApiCheckCouponObject> postCheckCouponWithLog(\n @Field(\"Code\") String code,\n @Field(\"UserId\") int userId,\n @Field(\"AccDoctorId\") int accDoctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_EXTEND_COUPON)\n Call<ApiCheckCouponObject> postExtendCoupon(\n @Field(\"Code\") String code,\n @Field(\"UserId\") int userId,\n @Field(\"AccDoctorId\") int accDoctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CANCEL_APPOINTMENT)\n Call<NormalResponseObject> postCancelAppointment(\n @Field(\"UserId\") int userId,\n @Field(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"Reason\") String reason,\n @Field(\"Description\") String description,\n @Field(\"UserType\") int userType\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_FREE_BOOKING)\n Call<NormalResponseObject> postFreeBooking(\n @Field(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"UserId\") int userId,\n @Field(\"DoctorUserId\") int doctorId,\n @Field(\"DateTimeBooking\") String dateTimeBooking, //format MM-dd-yyyy HH:mm\n @Field(\"ContactType\") int contactType,\n @Field(\"DetailBooking\") String detailBooking,\n @Field(\"AllergyHistory\") String allergyHistory,\n @Field(\"BeforeTime\") int beforeTime,\n @Field(\"DiscountCode\") String discountCode,\n @Field(\"Email\") String email,\n @Field(\"ContactTelephone\") String contactTelephone\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_VALIDATE_BOOKING)\n Call<NormalResponseObject> postValidateBooking(\n @Field(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"UserId\") int userId,\n @Field(\"DoctorUserId\") int doctorId,\n @Field(\"DateTimeBooking\") String dateTimeBooking, //format MM-dd-yyyy HH:mm\n @Field(\"DiscountCode\") String discountCode,\n @Field(\"Email\") String email,\n @Field(\"ContactTelephone\") String contactTelephone\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CHECK_IS_CANCEL_APPOINTMENT)\n Call<NormalResponseObject> postCheckIsCancelAppointment(\n @Field(\"UserId\") int userId,\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_ENDCALL_ONBOOKING)\n Call<ApiCurrentAppointment> postEndCallOnBooking(\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @GET(Service.PATH_CHECK_CURRENT_APPOINTMENT)\n Call<ApiCurrentAppointment> postCheckCurrentAppointment(\n @Query(\"UserId\") int userId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_PAYMENT_HISTORY)\n Call<ApiPaymentHistoryObject> postPaymentHistory(\n @Field(\"UserId\") int userId,\n @Field(\"langId\") int languageId, // 1 == Thai, 2 == Eng\n @Field(\"Page\") int pageIndex\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CHECK_DATE_TIME_BOOKING)\n //format MM-dd-yyyy HH:mm\n Call<NormalResponseObject> postCheckDateTimeBooking(\n @Field(\"BookingDateTime\") String dateTime,\n @Field(\"UserId\") int userId\n );\n\n // ------------------ Doctor --------------- //\n\n @FormUrlEncoded\n @POST(Service.PATH_LOGIN_DOCTOR)\n Call<ApiDoctorObject> postLoginDoctor(\n @Field(\"Email\") String email,\n @Field(\"Password\") String password\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_REGISTER_DOCTOR)\n Call<ApiDoctorObject> postRegisterDoctor(\n @Field(\"Email\") String email,\n @Field(\"ConfirmEmail\") String confirmEmail,\n @Field(\"Password\") String password,\n @Field(\"ConfirmPassword\") String confirmPassword,\n @Field(\"Name\") String name,\n @Field(\"Lastname\") String lastname,\n @Field(\"TitleName\") String titleName,\n @Field(\"TitleStudy\") String titleStudy,\n @Field(\"Tel\") String tel,\n @Field(\"Address\") String address,\n @Field(\"LanguageSkill\") String languageSkill,\n @Field(\"CareerHistory\") String careerHistory,\n @Field(\"Diploma\") String diploma,\n @Field(\"NoProfessional\") String NoProfessional,\n @Field(\"SpecialtyId\") String specialtyId,\n @Field(\"SubSpecialtyId\") String subSpecialtyId\n );\n\n @GET(Service.PATH_LIST_SUB_SPECIALTY)\n Call<ApiFilterObject> getSubSpecialty();\n\n @GET(Service.PATH_NEWS_LISTS)\n Call<ApiNewsObject> getNewsList();\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_NEWS_DETAIL)\n Call<ApiNewsObject> postNewsDetail(\n @Field(\"ActivityId\") int newsId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_DOCTOR_INFO)\n Call<ApiDoctorObject> postDoctorInfo(\n @Field(\"UserId\") int userId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_EDIT_PROFILE_DOCTOR)\n Call<NormalResponseObject> postEditProfileDoctor(\n @Field(\"UserId\") int userId,\n @Field(\"Address\") String address,\n @Field(\"Tel\") String telephoneNumber,\n @Field(\"TitleStudy\") String studyTitle,\n @Field(\"Specialty\") String specialtyList,\n @Field(\"SubSpecialty\") String subSpecialtyIdList,\n @Field(\"CareerHistory\") String careerHistory,\n @Field(\"Diploma\") String diploma\n );\n\n @GET(Service.PATH_DOCTOR_TIME_PLAN)\n Call<ApiAppointmentListObject> getAppointmentList(\n @Query(\"DocId\") int doctorId,\n @Query(\"LangId\") int languageId,\n @Query(\"TypeAppointment\") int typeAppointment,\n @Query(\"Page\") int pageIndex\n );\n\n @GET(Service.PATH_DOCTOR_TIME_PLAN)\n Call<ApiScheduleAppointmentObject> getScheduleAppointmentList(\n @Query(\"DocId\") int doctorId,\n @Query(\"LangId\") int languageId,\n @Query(\"DateTimePlan\") String dateTimePlan\n ); //example 2017/02/20\n\n @FormUrlEncoded\n @POST(Service.PATH_MASTER_TIME_PLAN)\n Call<ApiTimePlanObject> postMasterTimePlan(\n @Field(\"UserId\") int userId,\n @Field(\"Days\") int days\n ); //monday = 1, tuesday = 2, wednesday = 3 ...\n\n @FormUrlEncoded\n @POST(Service.PATH_MASTER_TIME_PLAN_BY_DATE)\n Call<ApiTimePlanObject> postMasterTimePlanByDate(\n @Field(\"UserId\") int userId,\n @Field(\"DateTimeSelect\") String Date\n ); //MM-dd-yyyy\n\n @FormUrlEncoded\n @POST(Service.PATH_ADD_TIME_PLAN)\n Call<NormalResponseObject> postAddMasterTimePlan(\n @Field(\"UserId\") int userId,\n @Field(\"Days\") int days, //monday = 1, tuesday = 2, wednesday = 3 ...\n @Field(\"strTime\") String strTime,\n @Field(\"isSingleDay\") boolean isSingleDay,\n @Field(\"Scheduleddate\") String date\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_EDIT_TIME_PLAN)\n Call<NormalResponseObject> postEditMasterTimePlan(\n @Field(\"UserId\") int userId,\n @Field(\"ItemId\") int itemId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_DELETE_TIME_PLAN_BYDATE)\n Call<NormalResponseObject> postDeleteMasterTimePlan(\n @Field(\"UserId\") int userId,\n @Field(\"Days\") int dayOfWeek,\n @Field(\"strTime\") String timeList,\n @Field(\"isSingleDay\") boolean isSingleDay,\n @Field(\"Scheduleddate\") String date\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_SET_CONTACT_PRICE)\n Call<NormalResponseObject> postSetContactPrice(\n @Field(\"UserId\") int doctorId,\n @Field(\"Price\") int price,\n @Field(\"IsChat\") boolean isChat,\n @Field(\"IsVoice\") boolean isVoice,\n @Field(\"IsVideo\") boolean isVideo\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_GET_CONTACT_PRICE)\n Call<ApiContactObject> getContactPrice(\n @Field(\"UserId\") int doctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_SET_NOTIFICATION_TIME)\n Call<NormalResponseObject> postSetNotificationTime(\n @Field(\"DoctorId\") int doctorId,\n @Field(\"NotiAppointmentTime\") int time\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_GET_NOTIFICATION_TIME)\n Call<ApiNotificationTimeObject> postGetNotificationTime(\n @Field(\"DoctorId\") int doctorId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_SETTING_LANGUAGE)\n Call<NormalResponseObject> postSetLanguage(\n @Field(\"DoctorId\") int doctorId,\n @Field(\"Language\") int language\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_GET_LANGUAGE)\n Call<ApiLanguageObject> postGetLanguage(\n @Field(\"DoctorId\") int doctorId\n );\n\n @Multipart\n @POST(Service.PATH_UPLOAD_IMAGE)\n Call<NormalResponseObject> postUpdateImage(\n @Part(\"DoctorId\") RequestBody doctorId,\n @Part(\"ImageType\") RequestBody imageType,\n @Part MultipartBody.Part image\n );\n\n // ------------------------------ ALL ----------------------------------//

\n\n @FormUrlEncoded\n @POST(Service.PATH_FORGOT_PASSWORD)\n Call<NormalResponseObject> postForgotPassword(\n @Field(\"Email\") String email,\n @Field(\"MobileToken\") String deviceId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CHANGE_PASSWORD)\n Call<NormalResponseObject> postChangePassword(\n @Field(\"UserId\") int userId,\n @Field(\"Password\") String oldPassword,\n @Field(\"NewPassword\") String newPassword,\n @Field(\"ConfirmPassword\") String confirmPassword\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CHANGE_PASSWORD_FROM_FORGET)\n Call<NormalResponseObject> postChangePasswordForget(\n @Field(\"UserId\") int userId,\n @Field(\"Token\") String devideId,\n @Field(\"NewPassword\") String newPassword,\n @Field(\"ConfirmPassword\") String confirmPassword\n );\n\n\n @Multipart\n @POST(Service.PATH_UPDATE_IMAGE_PROFILE)\n Call<NormalResponseObject> postUpdateImageProfile(\n @Part(\"UserId\") RequestBody userId,\n @Part MultipartBody.Part imgProfile\n );\n\n @GET(Service.PATH_GET_LIST_SPECIALTY)\n Call<ApiFilterObject> getSpecialty();\n\n @GET(Service.PATH_GET_LIST_ALL_SPECIALTY)\n Call<ApiFilterObject> getAllSpecialty(); // specialty and sub specialty\n\n @GET(Service.PATH_GET_LIST_SECTION)\n Call<ApiFilterObject> getSection();\n\n @GET(Service.PATH_GET_LIST_CLINIC)\n Call<ApiFilterObject> getClinic();\n\n @GET(Service.PATH_GET_LIST_SYMPTOM)\n Call<ApiFilterObject> getSymptom();\n\n @FormUrlEncoded\n @POST(Service.PATH_ADD_TOKEN)\n Call<NormalResponseObject> postAddToken(\n @Field(\"udid\") String udid,\n @Field(\"userid\") int userId,\n @Field(\"tokenid\") String tokenId,\n @Field(\"ostype\") int osType, // 0 = android, 1 = ios\n @Field(\"isenable\") int isEnable\n ); // 0 = close, 1 = open\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_ADD_ONESIGNAL_TOKEN)\n Call<NormalResponseObject> postAddOneSignalToken(\n @Body ApiOneSignalRequest params\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_SEARCH_BOOKING)\n Call<ApiSearchBookingObject> postSearchBooking(\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @POST(Service.PATH_SEND_NOTIFICATION)\n @Headers(\"content-type: application/json\")\n Call<OneSignalResponse> postSendNotification(\n @Body RequestBody params\n );\n\n @GET(Service.PATH_GET_TIME_SERVER)\n Call<ApiTimeServerObject> getTimeServer();\n\n @FormUrlEncoded\n @POST(Service.PATH_CREATE_TOKEN_TOKBOX)\n Call<ApiTokenTokboxObject> postCreateTokenTokbox(\n @Field(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"UserId\") int userId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOG_OUT)\n Call<NormalResponseObject> postLogout(\n @Field(\"UserId\") int userId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOG_START_CALL)\n Call<NormalResponseObject> postStartCall(\n @Field(\"UserId\") int userId,\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOG_END_CALL)\n Call<NormalResponseObject> postEndCall(\n @Field(\"UserId\") int userId,\n @Field(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"DisconnectCode\") String disconnectCode\n ); // 01 = Disconnect, 02 = ConnectionLost\n\n @FormUrlEncoded\n @POST(Service.PATH_LOG_CONCURRENT_CONNECTIONS)\n Call<NormalResponseObject> postConcurrentConnections(\n @Field(\"UserId\") int userId,\n @Field(\"DoctorId\") int doctorId,\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOG_APPOINTMENT_STATUS)\n Call<ApiAppointmentStatus> postAppointmentStatus(\n @Field(\"UserId\") int userId,\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LOG_CHECK_START_CALL)\n Call<NormalResponseObject> postCheckStartCall(\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_SEND_SHORTNOTE)\n Call<NormalResponseObject> postSendShortNote(\n @Field(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"Note\") String Note\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_LIST_NOTIFICATION_MESSAGE)\n Call<ApiNotificationMessageObject> postNotificationMessage(\n @Field(\"UserId\") int userId,\n @Field(\"langId\") int languageId,\n @Field(\"Page\") int pageIndex\n );\n\n @Headers({\"Accept: application/json\"})\n @FormUrlEncoded\n @POST(Service.PATH_POST_CHAT_MESSAGE)\n Call<ApiChatObject> postChatMessage(\n @Path(\"AppointmentNumber\") String appointmentNumber,\n @Field(\"Message\") String message\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_POST_CHAT_MESSAGE)\n Call<ApiChatObject> postChatImage(\n @Path(\"AppointmentNumber\") String appointmentNumber,\n @Part(\"Message\") RequestBody message,\n @Part MultipartBody.Part image\n );\n\n @GET(Service.PATH_GET_CHAT_MESSAGE_LIST)\n Call<ApiChatListObject> getChatMessageList(\n @Path(\"AppointmentNumber\") String appointmentNumber\n );\n\n @Headers({\"Accept: application/json\"})\n @FormUrlEncoded\n @GET(Service.PATH_GET_CHAT_MESSAGE)\n Call<ApiChatObject> getChatMessage(\n @Path(\"AppointmentNumber\") String appointmentNumber\n );\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_POST_LOG_START)\n Call<NormalResponseObject> postLogStart(\n @Path(\"AppointmentNumber\") String appointmentNumber\n );\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_POST_LOG_END)\n Call<NormalResponseObject> postLogEnd(\n @Path(\"AppointmentNumber\") String appointmentNumber\n );\n\n @Headers({\"Accept: application/json\"})\n @POST(Service.PATH_POST_LOG_CONCURRENT)\n Call<NormalResponseObject> postLogConcurrent(\n @Path(\"AppointmentNumber\") String appointmentNumber\n );\n\n @Multipart\n @POST(Service.PATH_CHAT_MESSAGE)\n Call<ApiChatObject> postChatAttachFile\n (@Part(\"UserId\") RequestBody userId,\n @Part(\"AppointmentNumber\") RequestBody appointmentNumber,\n @Part MultipartBody.Part image\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_GET_CHAT_LIST)\n Call<ApiChatListObject> postGetChatList(\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_TIME_LEFT)\n Call<ApiTimeLeftObject> postGetTimeLeft(\n @Field(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_CHECK_TOKEN)\n Call<NormalResponseObject> postCheckToken(\n @Field(\"UserId\") int userId,\n @Field(\"UdId\") String udid,\n @Field(\"TokenId\") String tokenId\n );\n\n @GET(Service.PATH_GET_SYSTEM_CONFIGURATION_API)\n Call<SystemConfigurationObject> getSystemConfigurationApi(\n @Query(\"os\") String os\n );\n\n // ------------------------------ EHR ----------------------------------//

\n //--login EHR\n @FormUrlEncoded\n @POST(Service.PATH_POST_LOGIN_EHR)\n Call<ApiPatientObject> postLoginEHR(\n @Field(\"PIN\") String pin\n );\n\n //--create PIN for EHR\n @FormUrlEncoded\n @PATCH(Service.PATH_POST_CREATE_PIN_EHR)\n Call<NormalResponseObject> postCreatePin(\n @Field(\"PIN\") String pin, @Field(\"ConfirmPIN\") String confirmPin\n );\n\n //--Get pin status\n @GET(Service.PATH_GET_PIN_STATUS)\n Call<ApiCheckPinObject> getPINStatus();\n\n //--Patients\n @GET(Service.PATH_GET_PATIENT_BY_ID)\n Call<ApiPatientObject> getPatient(\n @Path(\"Id\") int patientId\n );\n\n //--EHRMenus\n @GET(Service.PATH_GET_MENU_LIST)\n Call<ApiListEhrMenuObject> getMenuList(\n @Path(\"PatientId\") int patientId,\n @Query(\"IsChild\") boolean isChild,\n @Query(\"ParentMenuCode\") String parentMenuCode\n );\n\n @GET(Service.PATH_GET_CURRENT_MENU)\n Call<ApiCurrentEhrMenuObject> getCurrentMenu(\n @Path(\"PatientId\") int patientId,\n @Query(\"IsChild\") boolean isChild\n );\n\n @GET(Service.PATH_GET_CURRENT_SUB_MENU)\n Call<ApiCurrentEhrMenuObject> getCurrentSubMenu(\n @Path(\"PatientId\") int patientId,\n @Query(\"IsChild\") boolean isChild,\n @Query(\"ParentMenuCode\") String parentMenuCode\n );\n\n @GET(Service.PATH_GET_PATIENT_MENU)\n Call<ApiEhrMenuObject> getPatientMenu(\n @Path(\"PatientMenuId\") int patientMenuId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_CHECK_PATIENT_EHR_MENU)\n Call<NormalResponseObject> postCheckPatientEHRMenu(\n @Path(\"PatientId\") int patientId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"MenuName\") String menuName\n );\n\n //--Family\n @FormUrlEncoded\n @POST(Service.PATH_POST_CREATE_PATIENT_RELATIONSHIP)\n Call<ApiPatientRelationshipObject> postPatientRelationship(\n @Path(\"PatientId\") int patientId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"RelationshipName\") String relationshipName\n );\n\n @GET(Service.PATH_GET_PATIENT_RELATIONSHIP)\n Call<ApiListPatientRelationshipObject> getPatientRelationshipList(\n @Path(\"PatientId\") int patientId\n );\n\n\n //--DoctorNote\n @GET(Service.PATH_GET_DEFAULT_DATE_DOCTOR_NOTE)\n Call<ApiDoctorNoteCriteriaObject> getDoctorNoteDefaultDateCriteria(\n @Path(\"PatientId\") int patientId\n );\n\n @GET(Service.PATH_GET_DOCTOR_LIST_DOCTOR_NOTE)\n Call<ApiListDoctorNoteCriteriaObject> getDoctorNoteDoctorListCriteria(\n @Path(\"PatientId\") int patientId\n );\n\n @GET(Service.PATH_GET_DOCTOR_NOTE_LIST)\n Call<ApiListDoctorNoteObject> getDoctorNoteList(\n @Path(\"PatientId\") int patientId,\n @Query(\"DoctorId\") int doctorId,\n @Query(\"StartDate\") String startDate,\n @Query(\"EndDate\") String endDate,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_DOCTOR_NOTE_DETAIL)\n Call<ApiDoctorNoteObject> getDoctorNoteDetail(\n @Path(\"PatientId\") int patientId,\n @Query(\"AppointmentNumber\") String appointmentNumber\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_CHECK_RECOMMEND_PRODUCT_COUPONS)\n Call<ApiRecommendProductCouponsObject> postCheckRecommendProductCoupons(\n @Path(\"DiscountCode\") String discountCode,\n @Field(\"AppointmentId\") int appointmentId,\n @Field(\"ProductIdList\") ArrayList<Integer> productIdList,\n @Field(\"TypeList\") ArrayList<Integer> typeList\n );\n\n //--BankAccount\n @GET(Service.PATH_GET_BANK_ACCOUNT_LIST)\n Call<ApiListBankAccountObject> getBankAccountList();\n\n //--Pregnant\n @GET(Service.PATH_GET_DEFAULT_DATE_PREGNANT)\n Call<ApiPregnantHistoryCriteriaObject> getPregnantDefaultDateCriteria(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_PLACE_LIST_PREGNANT)\n Call<ApiListPlacePregnantHistoryCriteriaObject> getPregnantPlaceListCriteria(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_PREGNANT_LIST)\n Call<ApiListPregnantHistoryObject> getPregnantList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"Place\") String place,\n @Query(\"StartDate\") String startDate,\n @Query(\"EndDate\") String endDate,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_PREGNANT_DETAIL)\n Call<ApiPregnantHistoryObject> getPregnantHistoryDetail(\n @Path(\"PatientId\") int patientId,\n @Query(\"PregnancyId\") int pregnancyId\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_POST_PREGNANT_HISTORY)\n Call<ApiPregnantHistoryObject> postPregnantHistory(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @PUT(Service.PATH_PUT_PREGNANT_HISTORY)\n Call<NormalResponseObject> putPregnantHistory(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @DELETE(Service.PATH_DELETE_PREGNANT_HISTORY)\n Call<NormalResponseObject> deletePregnantHistory(\n @Path(\"PregnancyId\") int pregnancyId\n );\n\n\n //--Medicination\n @GET(Service.PATH_GET_DEFAULT_DATE_MEDICINATION)\n Call<ApiMedicationHistoryCriteriaObject> getMedicinationDefaultDateCriteria(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_PLACE_LIST_MEDICINATION)\n Call<ApiListFromMedicationHistoryCriteriaObject> getMedicinationPlaceListCriteria(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_MEDICINATION_LIST)\n Call<ApiListMedicationHistoryObject> getMedicinationList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"Place\") String place,\n @Query(\"StartDate\") String startDate,\n @Query(\"EndDate\") String endDate,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_MEDICINATION_DETAIL)\n Call<ApiMedicationHistoryObject> getMedicinationHistoryDetail(\n @Path(\"PatientId\") int patientId,\n @Query(\"MedicinationId\") int medicinationId\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_POST_MEDICINATION_HISTORY)\n Call<ApiMedicationHistoryObject> postMedicinationHistory(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @PUT(Service.PATH_PUT_MEDICINATION_HISTORY)\n Call<NormalResponseObject> putMedicinationHistory(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @DELETE(Service.PATH_DELETE_MEDICINATION_HISTORY)\n Call<NormalResponseObject> deleteMedicinationHistory(\n @Path(\"MedicinationId\") int medicinationId\n );\n\n\n //--Vaccine\n @GET(Service.PATH_GET_GRID_VACCINATION_HISTORY)\n Call<ApiGridVaccinationHistoryObject> getGridVaccinationHistory(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"IsNecessary\") boolean isNecessary\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_NEW_VACCINATION_HISTORY)\n Call<ApiVaccinationHistoryObject> postNewVaccinationHistory(\n @Path(\"PatientId\") int patientId,\n @Field(\"PatientMenuId\") int patientMenuId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"VaccineId\") int vaccineId,\n @Field(\"Month\") int month\n );\n\n @DELETE(Service.PATH_DELETE_VACCINATION_HISTORY)\n Call<NormalResponseObject> deleteVaccinationHistory(\n @Path(\"PatientVaccinationId\") int patientVaccinationId\n );\n\n //--Laboratory\n @GET(Service.PATH_GET_GRID_CHIIWII_LAB)\n Call<ApiGridLaboratoryChiiwiiObject> getGridChiiwiiLab(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_MANUAL_LAB_LIST)\n Call<ApiListLaboratoryOtherObject> getPatientManualLabList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_MANUAL_LAB_DETAIL)\n Call<ApiLaboratoryOtherObject> getPatientManualLabDetail(\n @Path(\"PatientId\") int patientId,\n @Query(\"LabId\") int labId\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_POST_MANUAL_LAB)\n Call<ApiLaboratoryOtherObject> postManualLab(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @PUT(Service.PATH_PUT_MANUAL_LAB)\n Call<NormalResponseObject> putManualLab(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @DELETE(Service.PATH_DELETE_MANUAL_LAB)\n Call<NormalResponseObject> deletePatientManualLab(\n @Path(\"LabId\") int labId\n );\n\n //--HeartRate\n @GET(Service.PATH_GET_CHART_DATA_HEART_RATE)\n Call<ApiChartObject> getChartDataHeartRate(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"PeriodType\") int periodType,\n @Query(\"Period\") int period\n );\n\n @GET(Service.PATH_GET_TODAY_HEART_RESTING_RATE)\n Call<ApiTodayHeartRestingRateObject> getTodayHeartRestingRate(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_DAILY_HEART_BEAT_RATE)\n Call<ApiListDailyHeartBeatRateObject> getDailyHeartBeatRate(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_HEART_BEAT_RATE_LIST)\n Call<ApiListHeartBeatRateObject> getHeartBeatRateList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"DailyDate\") String dailyDate\n );\n\n @GET(Service.PATH_GET_HEART_BEAT_RATE)\n Call<ApiHeartBeatRateObject> getHeartBeatRate(\n @Path(\"PatientId\") int patientId,\n @Query(\"HeartRateId\") int heartRateId\n );\n\n @GET(Service.PATH_GET_HEART_BEAT_RATE_TYPE)\n Call<ApiListHeartBeatRateTypeObject> getHeartBeatRateType();\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_HEART_BEAT_RATE)\n Call<ApiHeartBeatRateObject> postHeartBeatRate(\n @Path(\"PatientId\") int patientId,\n @Field(\"PatientMenuId\") int patientMenuId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"Type\") String type,\n @Field(\"RecordDate\") String recordDate,\n @Field(\"BPM\") int bpm\n );\n\n @FormUrlEncoded\n @PUT(Service.PATH_PUT_HEART_BEAT_RATE)\n Call<NormalResponseObject> putHeartBeatRate(\n @Path(\"PatientId\") int patientId,\n @Field(\"HeartRateId\") int heartRateId,\n @Field(\"Type\") String type,\n @Field(\"RecordDate\") String recordDate,\n @Field(\"BPM\") int bpm\n );\n\n @DELETE(Service.PATH_DELETE_HEART_BEAT_RATE)\n Call<NormalResponseObject> deleteHeartBeatRate(\n @Path(\"HeartRateId\") int heartRateId\n );\n\n //--BloodPressure\n @GET(Service.PATH_GET_CHART_DATA_BLOOD_PRESSURE)\n Call<ApiChartObject> getChartDataBloodPressure(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"PeriodType\") int periodType,\n @Query(\"Period\") int period\n );\n\n @GET(Service.PATH_GET_TODAY_BLOOD_PRESSURE)\n Call<ApiTodayBloodPressureObject> getTodayBloodPressure(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_DAILY_BLOOD_PRESSURE)\n Call<ApiListDailyBloodPressureObject> getDailyBloodPressure(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_BLOOD_PRESSURE_LIST)\n Call<ApiListBloodPressureObject> getBloodPressureList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"DailyDate\") String dailyDate\n );\n\n @GET(Service.PATH_GET_BLOOD_PRESSURE)\n Call<ApiBloodPressureObject> getBloodPressure(\n @Path(\"PatientId\") int patientId,\n @Query(\"BloodPressureId\") int bloodPressureId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_BLOOD_PRESSURE)\n Call<ApiBloodPressureObject> postBloodPressure(\n @Path(\"PatientId\") int patientId,\n @Field(\"PatientMenuId\") int patientMenuId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"RecordDate\") String recordDate,\n @Field(\"SYSValue\") int sysValue,\n @Field(\"DIAValue\") int diaValue\n );\n\n @FormUrlEncoded\n @PUT(Service.PATH_PUT_BLOOD_PRESSURE)\n Call<NormalResponseObject> putBloodPressure(\n @Path(\"PatientId\") int patientId,\n @Field(\"BloodPressureId\") int bloodPressureId,\n @Field(\"RecordDate\") String recordDate,\n @Field(\"SYSValue\") int sysValue,\n @Field(\"DIAValue\") int diaValue\n );\n\n @DELETE(Service.PATH_DELETE_BLOOD_PRESSURE)\n Call<NormalResponseObject> deleteBloodPressure(\n @Path(\"BloodPressureId\") int bloodPressureId\n );\n\n //--BloodSugar\n @GET(Service.PATH_GET_CHART_DATA_BLOOD_SUGAR)\n Call<ApiChartObject> getChartDataBloodSugar(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"PeriodType\") int periodType,\n @Query(\"Period\") int period\n );\n\n @GET(Service.PATH_GET_TODAY_BLOOD_GLUCOSE)\n Call<ApiTodayBloodGlucoseObject> getTodayBloodGlucose(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_DAILY_BLOOD_SUGAR)\n Call<ApiListDailyBloodSugarObject> getDailyBloodSugar(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @GET(Service.PATH_GET_BLOOD_SUGAR_LIST)\n Call<ApiListBloodSugarObject> getBloodSugarList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"DailyDate\") String dailyDate\n );\n\n @GET(Service.PATH_GET_BLOOD_SUGAR)\n Call<ApiBloodSugarObject> getBloodSugar(\n @Path(\"PatientId\") int patientId,\n @Query(\"BloodSugarId\") int bloodSugarId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_BLOOD_SUGAR)\n Call<ApiBloodSugarObject> postBloodSugar(\n @Path(\"PatientId\") int patientId,\n @Field(\"PatientMenuId\") int patientMenuId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"RecordDate\") String recordDate,\n @Field(\"SugarValue\") int sugarValue\n );\n\n @FormUrlEncoded\n @PUT(Service.PATH_PUT_BLOOD_SUGAR)\n Call<NormalResponseObject> putBloodSugar(\n @Path(\"PatientId\") int patientId,\n @Field(\"BloodSugarId\") int bloodSugarId,\n @Field(\"RecordDate\") String recordDate,\n @Field(\"SugarValue\") int sugarValue\n );\n\n @DELETE(Service.PATH_DELETE_BLOOD_SUGAR)\n Call<NormalResponseObject> deleteBloodSugar(\n @Path(\"BloodSugarId\") int bloodSugarId\n );\n\n //--Menstruation\n @GET(Service.PATH_GET_MENSTRUAL_PERIOD_LIST)\n Call<ApiListMenstruationObject> getMenstrualPeriodList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_MENSTRUAL_PERIOD)\n Call<ApiMenstruationObject> postMenstrualPeriod(\n @Path(\"PatientId\") int patientId,\n @Field(\"PatientMenuId\") int patientMenuId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"MenstruationDate\") String menstruationDate\n );\n\n @DELETE(Service.PATH_DELETE_MENSTRUAL_PERIOD)\n Call<NormalResponseObject> deleteMenstrualPeriod(\n @Path(\"MenstruationId\") int menstruationId\n );\n\n //--ChildGrowth\n @GET(Service.PATH_GET_GRID_CHILD_GROWTH_HISTORY)\n Call<ApiGridChildGrowthHistoryObject> getGridChildGrowthHistory(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId\n );\n\n @FormUrlEncoded\n @POST(Service.PATH_POST_NEW_VCHILD_GROWTH_HISTORY)\n Call<ApiChildGrowthHistoryObject> postNewChildGrowthHistory(\n @Path(\"PatientId\") int patientId,\n @Field(\"PatientMenuId\") int patientMenuId,\n @Field(\"MenuCode\") String menuCode,\n @Field(\"ChildGrowthId\") int childGrowthId\n );\n\n @DELETE(Service.PATH_DELETE_CHILD_GROWTH_HISTORY)\n Call<NormalResponseObject> deleteChildGrowthHistory(\n @Path(\"PatientChildGrowthId\") int patientChildGrowthId\n );\n\n //--MedicineAllergy\n @GET(Service.PATH_GET_MEDICINE_ALLERGY_LIST)\n Call<ApiListMedicineAllergyObject> getMedicineAllergyList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_MEDICINE_ALLERGY_DETAIL)\n Call<ApiMedicineAllergyObject> getMedicineAllergyDetail(\n @Path(\"PatientId\") int patientId,\n @Query(\"MedicineAllergyId\") int medicineAllergyId\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_POST_MEDICINE_ALLERGY)\n Call<ApiMedicineAllergyObject> postMedicineAllergy(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @PUT(Service.PATH_PUT_MEDICINE_ALLERGY)\n Call<NormalResponseObject> putMedicineAllergy(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @DELETE(Service.PATH_DELETE_MEDICINE_ALLERGY)\n Call<NormalResponseObject> deleteMedicineAllergy(\n @Path(\"MedicineAllergyId\") int medicineAllergyId\n );\n\n //--FoodAllergy\n @GET(Service.PATH_GET_FOOD_ALLERGY_LIST)\n Call<ApiListFoodAllergyObject> getFoodAllergyList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_FOOD_ALLERGY_DETAIL)\n Call<ApiFoodAllergyObject> getFoodAllergyDetail(\n @Path(\"PatientId\") int patientId,\n @Query(\"FoodAllergyId\") int foodAllergyId\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_POST_FOOD_ALLERGY)\n Call<ApiFoodAllergyObject> postFoodAllergy(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @PUT(Service.PATH_PUT_FOOD_ALLERGY)\n Call<NormalResponseObject> putFoodAllergy(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @DELETE(Service.PATH_DELETE_FOOD_ALLERGY)\n Call<NormalResponseObject> deleteFoodAllergy(\n @Path(\"FoodAllergyId\") int foodAllergyId\n );\n\n //--CongenitalDisease\n @GET(Service.PATH_GET_CONGENITAL_DISEASE_LIST)\n Call<ApiListCongenitalDiseaseObject> getCongenitalDiseaseList(\n @Path(\"PatientId\") int patientId,\n @Query(\"PatientMenuId\") int patientMenuId,\n @Query(\"PageIndex\") int pageIndex,\n @Query(\"PageSize\") int pageSize\n );\n\n @GET(Service.PATH_GET_CONGENITAL_DISEASE_DETAIL)\n Call<ApiCongenitalDiseaseObject> getCongenitalDiseaseDetail(\n @Path(\"PatientId\") int patientId,\n @Query(\"CongenitalDiseaseId\") int congenitalDiseaseId\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @POST(Service.PATH_POST_CONGENITAL_DISEASE)\n Call<ApiCongenitalDiseaseObject> postCongenitalDisease(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @Headers({\"Accept: application/json\"})\n @Multipart\n @PUT(Service.PATH_PUT_CONGENITAL_DISEASE)\n Call<NormalResponseObject> putCongenitalDisease(\n @Path(\"PatientId\") int patientId,\n @Part(\"Data\") RequestBody data,\n @Part ArrayList<MultipartBody.Part> fileList\n );\n\n @DELETE(Service.PATH_DELETE_CONGENITAL_DISEASE)\n Call<NormalResponseObject> deleteCongenitalDisease(\n @Path(\"CongenitalDiseaseId\") int congenitalDiseaseId\n );\n}", "public interface ApiService {\n\n @GET(\"getallproducts.php\")\n Call<ResponseBody> getAllProduct ();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(Constant.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n}", "public interface ApiInterface {\n //SIGNUP\n @Headers(\"Content-Type: application/json\")\n @POST(\"/user/signup/\")\n void signup(\n @Query(\"name\") String name,\n @Query(\"phoneNo\") String phoneNo,\n @Query(\"email\") String email,\n Callback<SignupStatus> callback);\n\n @GET(\"/project\")\n void projects(\n Callback<ArrayList<Project>> callback);\n @GET(\"/project\")\n void project_detail(\n @Query(\"_id\") int id,\n Callback<ProjectDescription> callback);\n @GET(\"/ngo\")\n void ngo(\n Callback<ArrayList<Ngo>> callback\n );\n @GET(\"/trending\")\n void trending(\n Callback<ArrayList<Project>> callback\n );\n @GET(\"/ngo\")\n void ngo_detail(\n @Query(\"_id\") int id,\n Callback<NgoDescription> callback\n );\n @FormUrlEncoded\n @POST(\"/project/donate\")\n void donate(\n @Field(\"user_id\") int user_id,\n @Field(\"project_id\") int project_id,\n @Field(\"amount\") int amount,\n Callback<SignupStatus> callback\n );\n\n\n}", "public api() {}", "public interface ApiInterface {\n\n //Account API\n String ping(OkHttpClient client);\n\n String obtainAuthToken(OkHttpClient client, String username, String password);\n\n JSONObject checkAccountInfo(OkHttpClient client, String token);\n\n JSONObject getServerInformation(OkHttpClient client);\n\n //Starred File API\n List<StarredFile> listStarredFiles(OkHttpClient client, String token);\n\n //Library API\n List<Library> listLibraries(OkHttpClient client, String token);\n\n Library getLibraryInfo(OkHttpClient client, String token, String repo_id);\n\n List<LibraryHistory> getLibraryHistory(OkHttpClient client, String token, String repo_id);\n\n JSONObject createNewLibrary(OkHttpClient client, String token, String libName, String desc, String password);\n\n boolean deleteLibrary(OkHttpClient client, String token, String repo_id);\n\n //File API\n String getFileDownloadLink(OkHttpClient client, String token, String repo_id, String p, boolean reuse);\n\n FileDetail getFileDetail(OkHttpClient client, String token, String repo_id, String p);\n\n List<FileCommit> getFileHistory(OkHttpClient client, String token, String repo_id, String p);\n\n boolean createFile(OkHttpClient client, String token, String repo_id, String p);\n\n boolean renameFile(OkHttpClient client, String token, String repo_id, String p, String newName);\n\n boolean moveFile(OkHttpClient client, String token, String repo_id, String p, String dst_repo, String dst_dir);\n\n boolean revertFile(OkHttpClient client, String token, String repo_id, String p, String commit_id);\n\n boolean deleteFile(OkHttpClient client, String token, String repo_id, String p);\n\n String getUploadLink(OkHttpClient client, String token, String repo_id, String p);\n\n List<UploadFileRes> uploadFile(OkHttpClient client, String token, String uploadLink, String parent_dir, String relative_path, File... files);\n\n String getUpdateLink(OkHttpClient client, String token, String repo_id, String p);\n\n boolean updateFile(OkHttpClient client, String token, String updataLink, File file, String target_file);\n\n //Directory API\n List<DirectoryEntry> listDirEntriesByP(OkHttpClient client, String token, String repo_id, String p);\n\n// List<DirectoryEntry> listDirectoryEntriesByID(OkHttpClient client,String token,String repo_id,String id);\n\n List<DirectoryEntry> listAllDirEntries(OkHttpClient client, String token, String repo_id);\n\n boolean createNewDir(OkHttpClient client, String token, String repo_id, String p);\n\n boolean renameDir(OkHttpClient client, String token, String repo_id, String p, String newName);\n\n boolean deleteDir(OkHttpClient client, String token, String repo_id, String p);\n\n String getDirDownloadToken(OkHttpClient client, String token, String repo_id, String parent_dir, String dirents);\n\n boolean queryZipProgress(OkHttpClient client, String token, String dirDownloadToken);\n\n String getDirDownloadLink(OkHttpClient client, String token, String dirDownloadToken);\n}", "public interface RetrofitProvider {\n\n Retrofit provideRetrofit();\n}", "public void buildApiClient(){\n if(c==null){\n c = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n }", "private void setupAndConnect() {\n URL url = getUrl(this.endpointUrl);\n connection = null;\n try {\n connection = (HttpURLConnection) url.openConnection();\n HttpURLConnection.setFollowRedirects(true);\n } catch (IOException e) {\n LOG.severe(\"Error connecting to Url : \" + url);\n LOG.severe(e.toString());\n }\n }", "RestClientBuilder(){\n\n }", "public interface GoogleApiService {\n\n @GET\n Call<CurrentWeather> getLocationWeather(@Url String url);\n\n @GET\n Call<MyPlaces> getMyNearByPlaces(@Url String url);\n\n}", "private void init(){\n if(!initializing) {\n Initializer init = new Initializer();\n InitializationDetails initializationDetails = new InitializationDetails(url, download, reset, deviceID, this);\n init.execute(initializationDetails);\n initializing = true;\n }\n }", "public interface RequestService {\n //http://gank.io/api/data/Android/10/1\n /*@GET(\"api/data/Android/10/1\")\n Call<ResponseBody> getAndroidInfo();*/\n @GET(\"api/data/Android/10/1\")\n Call<GankBean> getAndroidInfo();\n @GET(\"api/data/Android/10/{page}\")\n Call<GankBean> getAndroidInfo(@Path(\"page\") int page);\n @GET(\"api/data/query?cityname=深圳\")\n Call<ResponseBody> getWeather(@Query(\"key\") String key,@Query(\"area\") String area);\n @GET(\"group/{id}/users\")\n Call<List<User2>> groupList(@Field(\"id\") int groupId, @QueryMap Map<String,String> options);\n @GET\n Call<GankBean> getAndroid2Info(@Url String url);\n\n}", "private KubevirtNetworkingUtil() {\n }", "public void init() {\n\t\tinitResponse();\n\t\tmResponseIndex = 0;\n\t\tmMsgHandler.postDelayed(mInitRunnable, 100);\n\t}", "@Override\n public void failure(RetrofitError error) {\n\n Toast.makeText(getApplicationContext(),\"PLEASE CHECK INTERNET\",Toast.LENGTH_LONG).show();\n }", "public interface RetrofitService {\n\n @FormUrlEncoded\n @POST(\"/login\")\n Call<ResponseBody> PostLoginData(@FieldMap Map<String,String> map);\n\n @FormUrlEncoded\n @POST(\"/addUser\")\n Call<ResponseBody> PostSignUpData(@FieldMap Map<String,String> map);\n\n @FormUrlEncoded\n @POST(\"/addPetition\")\n Call<ResponseBody> PostPetition(@FieldMap Map<String,String> map);\n\n @FormUrlEncoded\n @POST(\"/showPetition\")\n Call<ListItemRepo> PostgetItem(@FieldMap Map<String,String> map);\n\n}", "@Inject\n public MachineMonkeyRestApiImpl() {\n }" ]
[ "0.76999426", "0.76453334", "0.7221751", "0.7164183", "0.71198374", "0.7109102", "0.69436294", "0.6941022", "0.69267935", "0.66802084", "0.6582748", "0.6549308", "0.6502992", "0.6476163", "0.64577365", "0.6450469", "0.6444892", "0.6438772", "0.64164656", "0.6366698", "0.6339094", "0.6331214", "0.6318773", "0.62751067", "0.6238603", "0.6235617", "0.62196255", "0.62159586", "0.6159916", "0.6149083", "0.60583496", "0.6033466", "0.60203373", "0.60163784", "0.59998477", "0.599673", "0.59792227", "0.5964309", "0.5951822", "0.5940197", "0.593795", "0.59185183", "0.591366", "0.5903755", "0.5902227", "0.58261895", "0.58100796", "0.5779755", "0.57729846", "0.57705086", "0.5713893", "0.57064384", "0.57013416", "0.5695664", "0.56919485", "0.56556326", "0.56400824", "0.5638994", "0.56330466", "0.5622409", "0.5617134", "0.56054693", "0.5594119", "0.55858964", "0.55805373", "0.55786693", "0.5560516", "0.55583966", "0.5551912", "0.55431074", "0.5541223", "0.5538792", "0.552056", "0.55162686", "0.54997563", "0.549503", "0.5493872", "0.5491695", "0.54783", "0.5476695", "0.5475898", "0.54678917", "0.5459079", "0.54558176", "0.54512215", "0.5437505", "0.5435833", "0.54264367", "0.5423411", "0.5418185", "0.5415898", "0.540114", "0.5400988", "0.54007393", "0.54000163", "0.539139", "0.53887683", "0.5376505", "0.5373299", "0.53704774", "0.53685296" ]
0.0
-1
Get User Data Using API
public void getUserDetailData(int pageNo) { userDetailDataService.getUserData(""+pageNo) .enqueue(new Callback<UserDetailBean>() { @Override public void onResponse(Call<UserDetailBean> call, Response<UserDetailBean> response) { if (response.body() != null) { userDetailBeanMutableLiveData.postValue(response.body()); } } @Override public void onFailure(Call<UserDetailBean> call, Throwable t) { userDetailBeanMutableLiveData.postValue(null); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getUserData() {\n TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();\n AccountService statusesService = twitterApiClient.getAccountService();\n Call<User> call = statusesService.verifyCredentials(true, true, true);\n call.enqueue(new Callback<User>() {\n @Override\n public void success(Result<User> userResult) {\n //Do something with result\n\n //parse the response\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }\n\n public void failure(TwitterException exception) {\n //Do something on failure\n }\n });\n }", "User getUserInformation(Long user_id);", "public User getUserData();", "public User getUserData(String id);", "private void getUserInfo() {\n httpClient.get(API.LOGIN_GET_USER_INFO, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n super.onSuccess(statusCode, headers, response);\n callback.onLoginSuccess(response.optJSONObject(Constant.OAUTH_RESPONSE_USER_INFO));\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n super.onFailure(statusCode, headers, responseString, throwable);\n callback.onLoginFailed(throwable.getMessage(), ErrorCode.ERROR_CODE_SERVER_EXCEPTION);\n }\n });\n }", "public List getUsers(User user);", "User getUserInfo(String userId) {\r\n\r\n // build headers\r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\r\n headers.set(\"Authorization\", \"Bearer \" + accessToken);\r\n HttpEntity entity = new HttpEntity(headers);\r\n\r\n // build GET URL\r\n UriComponentsBuilder builder = UriComponentsBuilder\r\n .fromUriString(\"https://slack.com/api/users.info\")\r\n .queryParam(\"token\", accessToken)\r\n .queryParam(\"user\", userId);\r\n\r\n // Send request\r\n RestTemplate rt = new RestTemplate();\r\n ResponseEntity<String> response = rt.exchange(builder.toUriString(), HttpMethod.GET, entity, String.class);\r\n\r\n // good response\r\n if(response.toString().contains(\"\\\"ok\\\":true\")) {\r\n Gson gson = new Gson();\r\n UserResponse ur = gson.fromJson(response.getBody(), UserResponse.class);\r\n return ur.user;\r\n }\r\n\r\n // bad response\r\n return null;\r\n }", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "@GET(\"/api/users\")\n public void getUser(Callback<List<User>> callback);", "private void getUserDetailApi() {\n RetrofitService.getOtpData(new Dialog(mContext), retrofitApiClient.getUserDetail(strUserId), new WebResponse() {\n @Override\n public void onResponseSuccess(Response<?> result) {\n UserDataMainModal mainModal = (UserDataMainModal) result.body();\n if (mainModal != null) {\n AppPreference.setBooleanPreference(mContext, Constant.IS_PROFILE_UPDATE, true);\n Gson gson = new GsonBuilder().setLenient().create();\n String data = gson.toJson(mainModal);\n AppPreference.setStringPreference(mContext, Constant.USER_DATA, data);\n User.setUser(mainModal);\n }\n }\n\n @Override\n public void onResponseFailed(String error) {\n Alerts.show(mContext, error);\n }\n });\n }", "@ApiOperation(value = \"get user details web service end point\",\n notes = \"This web service end point returns user details. Use public user id in the path\")\n //Api Implicit Params is for swagger to add authroization as an input field\n @ApiImplicitParams(\n @ApiImplicitParam(name = \"authorization\", value = \"${userController.authorizationHeader.description}\", paramType = \"header\"))\n @GetMapping(produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})\n // to mention from where we allow cross origins\n @CrossOrigin(origins = {\"http://localhost:8080\", \"http://localhost:8081\"})\n public List<UserRest> getUserList(@RequestParam(value = \"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"10\") int limit) {\n List<UserRest> returnList = new ArrayList<>();\n List<UserDto> userDtoList = userService.getUserList(page, limit);\n UserRest userRest;\n for (UserDto userDto : userDtoList) {\n userRest = new UserRest();\n BeanUtils.copyProperties(userDto, userRest);\n returnList.add(userRest);\n }\n return returnList;\n }", "@GET(\"user\")\n Call<User> getUser();", "@GET(\"users/{id}\")\n Call<UserResource> getUser(\n @retrofit2.http.Path(\"id\") String id\n );", "public List getAllUsers();", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "@GET(\"administrators/{id}\")\n Call<User> getUser(\n @retrofit2.http.Path(\"id\") Integer id\n );", "@GET(\"get_image_api.php\")\n Call<UserModelClass> userDetails(@Query(\"user_id\") String user_id);", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "public abstract String getUser() throws DataServiceException;", "public void requestUserData() {\r\n\t \tmText.setText(\"Fetching user name, profile pic...\");\r\n\t \tBundle params = new Bundle();\r\n\t \tparams.putString(\"fields\", \"name, picture\");\r\n\t \tUtility.mAsyncRunner.request(\"me\", params, new UserRequestListener());\r\n\t }", "List<KingdomUser> getAllUsers();", "@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET)\n public ResponseEntity<String> getUserInformationEndpoint(@PathVariable(value = \"id\") String id) {\n Response response = new Response(\"Get User Information\");\n HttpStatus httpStatus = HttpStatus.ACCEPTED;\n\n UserData userData = adminUserService.getUserInfo(id);\n if (userData != null) {\n response.addBodyElement(\"userData\", userData.toJsonObject());\n }\n else {\n response.actionFailed();\n response.setMessage(Messages.Failure.GET_USER_INFO);\n }\n\n return ResponseEntity\n .status(httpStatus)\n .contentType(MediaType.APPLICATION_JSON)\n .body(response.toJson());\n }", "@GetMapping(\"/user-data\")\n @Timed\n public List<UserData> getAllUserData() {\n log.debug(\"REST request to get all UserData\");\n return userDataRepository.findAll();\n }", "List<KingdomUser> getUsers();", "UserInfo getUserById(Integer user_id);", "private void lookupUserAccount() {\n String userId = tokens.getString(\"principalID\", \"\");\n String accessToken = tokens.getString(\"authorisationToken\", \"\");\n\n if (!\"\".equals(userId) && !\"\".equals(accessToken)) {\n // Make new json request\n String url = String.format(Constants.APIUrls.lookupUserAccount, userId);\n JsonRequest jsonRequest = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n String email;\n try {\n email = response.getString(\"email\");\n } catch (JSONException ex){\n email = \"unknown\";\n }\n String name;\n try{\n JSONObject nameObject = response.getJSONObject(\"name\");\n String firstName = nameObject.getString(\"givenName\");\n String lastName = nameObject.getString(\"familyName\");\n name = firstName + \" \" + lastName;\n } catch (JSONException ex){\n name = \"unknown\";\n }\n Boolean accountBlocked;\n try{\n JSONObject accountInfo = response.getJSONObject(\"urn:mace:oclc.org:eidm:schema:persona:wmscircselfinfo:20180101\").getJSONObject(\"circulationInfo\");\n accountBlocked = accountInfo.getBoolean(\"isCircBlocked\");\n } catch (JSONException ex){\n ex.printStackTrace();\n accountBlocked = true;\n }\n String borrowerCategory;\n try {\n JSONObject accountInfo = response.getJSONObject(\"urn:mace:oclc.org:eidm:schema:persona:wmscircselfinfo:20180101\").getJSONObject(\"circulationInfo\");\n borrowerCategory = accountInfo.getString(\"borrowerCategory\");\n } catch (JSONException ex){\n borrowerCategory = \"\";\n }\n String userBarcode;\n try {\n JSONObject accountInfo = response.getJSONObject(\"urn:mace:oclc.org:eidm:schema:persona:wmscircselfinfo:20180101\").getJSONObject(\"circulationInfo\");\n userBarcode = accountInfo.getString(\"barcode\");\n } catch (JSONException ex){\n userBarcode = \"\";\n }\n tokens.edit().putString(\"name\", name).apply();\n tokens.edit().putString(\"email\", email).apply();\n tokens.edit().putBoolean(\"accountBlocked\", accountBlocked).apply();\n tokens.edit().putString(\"borrowerCategory\", borrowerCategory).apply();\n tokens.edit().putString(\"userBarcode\", userBarcode).apply();\n sendBroadcast(new Intent(Constants.IntentActions.LOOKUP_USER_ACCOUNT_RESPONSE));\n LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(new Intent(Constants.IntentActions.LOOKUP_USER_ACCOUNT_RESPONSE));\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n sendBroadcast(new Intent(Constants.IntentActions.LOOKUP_USER_ACCOUNT_ERROR));\n }\n }\n ){\n @Override\n public Map<String, String> getHeaders() {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"Authorization\", accessToken);\n return headers;\n }\n };\n\n requestQueue.add(jsonRequest);\n\n\n Log.e(TAG, \"user response sent\");\n }\n\n }", "People getUser();", "private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }", "String getUserInfoFromServer(String userID);", "@GetMapping(path = \"\", produces = \"application/json\")\n public ResponseEntity getUser() {\n int counter = simpleService.incrementCounter();\n\n Map<String, Object> result = new HashMap<String,Object>();\n result.put(\"counter\", counter);\n result.put(\"URL_POSTGRES\", System.getenv(\"URL_POSTGRES\"));\n result.put(\"USERNAME_POSTGRES\", System.getenv(\"USERNAME_POSTGRES\"));\n result.put(\"PASSWORD_POSTGRES\", System.getenv(\"PASSWORD_POSTGRES\"));\n result.put(\"HOST\", System.getenv(\"HOST\"));\n\n return new ResponseEntity<>(result, HttpStatus.OK);\n }", "com.heroiclabs.nakama.api.User getUsers(int index);", "@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "@RequestMapping(method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic @ResponseBody\n\tResult getUser(HttpServletRequest request) {\n\t\tString userId = cred2UserId(getParamCred(request));\n\t\tWlsUser user = userService.getUser(userId);\n\t\tResult result = new Result();\n\t\tif (user != null) {\n\t\t\tresult.setData(user).setCount(1, 1);\n\t\t} else {\n\t\t\tresult.setSuccess(false);\n\t\t\tresult.setErrMsg(\"用户不存在。\");\n\t\t}\n\t\treturn result;\n\t}", "ResponseEntity<Response> userById(String userId);", "@Override\n\tpublic UserInfo getUser(String sessionId) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"getUser\");\n//\t\tif (!isCloudChannelLive()) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n//\t\t\t\t\t\"User is not online\");\n//\t\t}\n\t\t\n\t\tUserGetRequest request = new UserGetRequest();\n\t\trequest.setSessionId(sessionId);\n\t\ttry {\n\t\t\tUserResponse response = cloudSecurityManager.getUser(request);\n\t\t\tUserPayload payload = response.getPayload();\n\t\t\t\n//\t\t\tUserInfo userInfo = new UserInfo();\n//\t\t\tuserInfo.setAccessKey(HFConfigration.accessKey);\n//\t\t\tuserInfo.setCellPhone(payload.getCellPhone());\n//\t\t\tuserInfo.setCreateTime(payload.getCreateTime());\n//\t\t\tuserInfo.setDisplayName(payload.getDisplayName());\n//\t\t\tuserInfo.setEmail(payload.getEmail());\n//\t\t\tuserInfo.setIdNumber(payload.getIdNumber());\n//\t\t\tuserInfo.setUserName(payload.getUserName());\n\t\t\t\n\t\t\tUserInfo userInfo = userInfoDao.getUserInfoByToken(sessionId);\n\t\t\tif (userInfo == null) {\n\t\t\t\tuserInfo = new UserInfo();\n\t\t\t}\n\t\t\tuserInfo.setAccessKey(HFConfigration.accessKey);\n\t\t\tuserInfo.setCellPhone(payload.getCellPhone());\n\t\t\tuserInfo.setCreateTime(payload.getCreateTime());\n\t\t\tuserInfo.setDisplayName(payload.getDisplayName());\n\t\t\tuserInfo.setEmail(payload.getEmail());\n\t\t\tuserInfo.setIdNumber(payload.getIdNumber());\n\t\t\tuserInfo.setUserName(payload.getUserName());\n\t\t\t\n\t\t\tuserInfoDao.saveUserInfo(userInfo);\n\t\t\t\n\t\t\treturn userInfo;\n\t\t} catch (CloudException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t\tthrow new HFModuleException(e1.getErrorCode(), e1.getMessage());\n\t\t}\n\t\t\n//\t\tString req = \"{'CID':10231,'SID':'#SID#'} \";\n//\t\treq = req.replaceAll(\"#SID#\", getsid());\n//\t\tString rsp = HttpProxy.reqByHttpPost(req);\n//\t\tJSONObject json;\n//\t\ttry {\n//\t\t\tjson = new JSONObject(rsp);\n//\t\t\tif (json.getInt(\"RC\") == 1) {\n//\n//\t\t\t\tJSONObject joRsp = json.getJSONObject(\"PL\");\n//\t\t\t\tUserInfo result = new UserInfo();\n//\n//\t\t\t\tif (!joRsp.isNull(\"id\"))\n//\t\t\t\t\tresult.setId(joRsp.getString(\"id\"));\n//\t\t\t\tif (!joRsp.isNull(\"displayName\")) {\n//\t\t\t\t\tresult.setDisplayName(joRsp.getString(\"displayName\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setUserNickName(result.getDisplayName());\n//\t\t\t\t\tHFConfigration.cloudUserNickName = result.getDisplayName();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"userName\")) {\n//\t\t\t\t\tresult.setUserName(joRsp.getString(\"userName\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setUserName(result.getUserName());\n//\t\t\t\t\tHFConfigration.cloudUserName = result.getUserName();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"cellPhone\")) {\n//\t\t\t\t\tresult.setCellPhone(joRsp.getString(\"cellPhone\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setPhone(result.getCellPhone());\n//\t\t\t\t\tHFConfigration.cloudUserPhone = result.getCellPhone();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"email\")) {\n//\t\t\t\t\tresult.setEmail(joRsp.getString(\"email\"));\n//\t\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t\t.setEmail(result.getEmail());\n//\t\t\t\t\tHFConfigration.cloudUserEmail = result.getEmail();\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"idNumber\")) {\n//\t\t\t\t\tresult.setIdNumber(joRsp.getString(\"idNumber\"));\n//\t\t\t\t}\n//\t\t\t\tif (!joRsp.isNull(\"createTime\")) {\n//\t\t\t\t\tresult.setCreateTime(joRsp.getString(\"createTime\"));\n//\t\t\t\t}\n//\t\t\t\treturn result;\n//\t\t\t} else {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_GET_USER,\n//\t\t\t\t\t\t\"can not get user\");\n//\t\t\t}\n//\t\t} catch (JSONException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_GET_USER,\n//\t\t\t\t\t\"can not get user\");\n//\t\t}\n\n\t}", "public User search_userinfo(String user_name);", "Data<User> getUserSearch(String user, String fields);", "Data<User> getUserSearch(String user);", "@Override\n\tpublic UserInfo getUserInfo() {\n\t\tHttpSession session = RpcContext.getHttpSession();\n String auth = (String)session.getAttribute(\"auth\");\n UserInfo ui = null;\n if (auth != null) {\n\t switch(AuthType.valueOf(auth)) {\n\t\t case Database: {\n\t\t String username = (String)session.getAttribute(\"username\");\n\t\t \t\tui = _uim.select(username);\n\t\t \t\tbreak;\n\t\t }\n\t\t case OAuth: {\n\t\t \t\tString googleid = (String)session.getAttribute(\"googleid\");\n\t\t \t\tui = _uim.selectByGoogleId(googleid);\n\t\t \t\tbreak;\n\t\t }\n\t }\n }\n\t\treturn ui;\n\t}", "@Path(\"showuser\")\n @GET\n @Produces(MediaType.TEXT_PLAIN)\n public String getUsers(@QueryParam(\"jsonpcallback\") String jsonpcallback) {\n return jsonpcallback + \"(\" + us.getAllUsers().toJSONString() + \")\";\n }", "public User getUser (String userName);", "@GetMapping(\"/user-data/{id}\")\n @Timed\n public ResponseEntity<UserData> getUserData(@PathVariable Long id) {\n log.debug(\"REST request to get UserData : {}\", id);\n UserData userData = userDataRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(userData));\n }", "public static String findUser(String username) {\n URL url = null;\n HttpURLConnection connection = null;\n String methodPath = \"/entities.credential/findByCredential/\";\n String textResult = \"\";\n try {\n url = new URL(BASE_URI + methodPath + username);\n\n connection = (HttpURLConnection) url.openConnection();\n // set the time out\n connection.setReadTimeout(10000);\n connection.setConnectTimeout(15000);\n // set the connection method to GET\n connection.setRequestMethod(\"GET\");\n //add http headers to set your response type to json\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n connection.setRequestProperty(\"Accept\", \"application/json\");\n //Read the response\n Scanner inStream = new Scanner(connection.getInputStream());\n //read the input stream and store it as string\n\n while (inStream.hasNextLine()) {\n textResult += inStream.nextLine();\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n connection.disconnect();\n }\n return textResult;\n }", "List<User> getAllUsers();", "List<User> getAllUsers();", "public String[] getUserInfo(String usr, String key);", "public List<User> getAllUsers();", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<User> showUsers() throws JsonMappingException, JsonProcessingException {\n\n\t\tString url = \"http://localhost:8081/fundoouser/showall\";\n\t\t\n\t\tResponse userResponse = restTemplate.getForObject(url, Response.class);\n\t\t\n\t\tList<User> userList = (List<User>) userResponse.getData(); \n\t\t\n\t\treturn userList;\n\t}", "@ApiOperation(value = \"Listing of all GDPR users\")\n @RequestMapping(value = \"/list\", method = RequestMethod.POST , produces = \"application/json\")\n public ResponseEntity<?> list(){\n return userService.list();\n }", "UserModel retrieveUserModel(String username, String password);", "List<User> getUsers();", "List<User> getUsers();", "public User getUser(String username);", "public List<User> getUserList();", "public List<User> getUsers();", "public UsuarioRest obtenerUsuarioRest(String user);", "User getUser();", "User getUser();", "public User getUser(String userName);", "public void getUserData() {\r\n User user = serverView.getUserInfo(username.getText());\r\n username.setText(\"\");\r\n if (user == null) {\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.setTitle(\"Error\");\r\n alert.setHeaderText(\"no User with this username\");\r\n alert.showAndWait();\r\n } else {\r\n\r\n try {\r\n userContent.getChildren().clear();\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"UserInfoView.fxml\"));\r\n fxmlLoader.setController(new UserInfoController(user));\r\n Pane pane = fxmlLoader.load();\r\n userContent.getChildren().add(pane);\r\n\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "@RequestMapping(value = \"/getUser/{id}\",method = RequestMethod.GET)\n @ApiOperation(value = \"getUser\")\n public String GetUser(@PathVariable int id){\n System.out.println(\"===========\"+id);\n return userService.findAll(id).toString();\n }", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "ResponseEntity<Response> users();", "public interface UserApi {\n\n\n @GET(\"/user/\")\n User getUser(@Query(\"username\") String username);\n\n @POST(\"/user/\")\n User login(@Query(\"username\") String username, @Query(\"password\") String password);\n\n}", "@GET(\"/api/users\")\n Call<Example> getUserDetails(@Query(\"page\") Integer sort);", "public ExternalUser getUser(ExternalUser requestingUser, String userIdentifier);", "Data<User> getMe(String fields);", "@org.testng.annotations.Test(dataProvider = \"service1_data_provider\", dataProviderClass = DataProviders.class)\n public void getUserTest(GetUserApi getUserApi) {\n Response response = regressionClient.getUser(getUserApi.getId());\n// dbAssist.responseValidation(response, name, job);\n }", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}", "@Test\n public void testAllUsersGET() {\n HttpAuthenticationFeature feature = \n HttpAuthenticationFeature.basic(\"admin\", \"admin\");\n Client client = ClientBuilder.newClient();\n URI uri = UriBuilder\n .fromUri(APPLICATION_NAME + APPLICATION_API_VERSION)\n .scheme(\"http\")\n .host(\"localhost\")\n .port(8080)\n .build();\n WebTarget webTarget = client\n .register(feature)\n .target(uri)\n .path(\"user\");\n Response response = webTarget\n .request(APPLICATION_JSON)\n .get();\n assertThat(response.getStatus(), is(200));\n }", "public Map<String, String> listUserData(String login, int limit, int offset);", "com.lxd.protobuf.msg.result.user.User.User_ getUser();", "public interface User {\n @Headers(\"Authorization: Basic ZHVkZ25zMDUwNzp5aDI1ODUyNDQ5\")\n @GET(\"user-students/{userName}\")\n Call<UserInfo> getUser(@Path(\"userName\") String userName);\n\n}", "private JSONObject getUserData(String aToken) {\r\n HttpClient client = new DefaultHttpClient();\r\n HttpGet hGet = new HttpGet(USER_INFO_FB + aToken);\r\n HttpResponse response = null;\r\n JSONObject userData = null;\r\n try {\r\n response = client.execute(hGet);\r\n HttpEntity entity;\r\n entity = response.getEntity();\r\n userData = parseData(EntityUtils.toString(entity, Charset.forName(\"UTF-8\")));\r\n } catch (IOException ex) {\r\n Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return userData;\r\n }", "@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public ResponseEntity getUsers() {\n logger.debug(\"HTTP GET /users called\");\n List<User> userList = userService.getUsers(0.00, 4000.00);\n\n return new ResponseEntity(new UserResponse(userList), HttpStatus.OK);\n }", "public User getUser(String userName, String password);", "public User getMe() {\n try {\n GetMeResponse response = restTemplate.getForObject(methodUrl(\"getMe\"), GetMeResponse.class);\n\n if(response == null) {\n logger.warn(\"getMe null response\");\n return null;\n }\n\n if(!response.isOk()) {\n logger.warn(\"getMe error: {} - {}\", response.getErrorCode(), response.getDescription());\n return null;\n }\n\n return response.getResult();\n } catch(Exception e) {\n logger.error(\"getMe failed\", e);\n return null;\n }\n }", "private void getUserListData() {\n final ProgressDialog progressDialog = new ProgressDialog(getActivity());\n progressDialog.setCancelable(false); // set cancelable to false\n progressDialog.setMessage(\"Please Wait\"); // set message\n progressDialog.show(); // show progress dialog\n\n // Api is a class in which we define a method getClient() that returns the API Interface class object\n // getUsersList() is a method in API Interface class, in this method we define our API sub url\n Api.getClient().getUsersList(new Callback<List<UserListResponse>>() {\n @Override\n public void success(List<UserListResponse> userListResponses, Response response) {\n // in this method we will get the response from API\n progressDialog.dismiss(); //dismiss progress dialog\n userListResponseData = userListResponses;\n setDataInRecyclerView(); // call this method to set the data in adapter\n }\n @Override\n public void failure(RetrofitError error) {\n // if error occurs in network transaction then we can get the error in this method.\n Toast.makeText(getActivity(), error.toString(), Toast.LENGTH_LONG).show();\n progressDialog.dismiss(); //dismiss progress dialog\n\n }\n });\n }", "@GET(\"/api/users/{id}\")\n public void getUserById(@Path(\"id\") Integer id,Callback<User> callback);", "com.google.ads.googleads.v6.resources.UserList getUserList();", "Data<User> getMe();", "@GET\n @Path(\"user/account/{uid}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getUserDetails(@PathParam(\"uid\") \n String uid) {\n \n int id = Integer.parseInt(uid);\n \n Customer cust = new Customer(id, \"name\", \"address\", \"[email protected]\", \"password\");\n \n String output = \"This entry point will return the account details for the user: \" + uid;\n return Response.status(200).entity(gson.toJson(cust)).build();\n \n }", "public User getCurrentUserInformation() throws ServiceProxyException { \n \n //get the authenticated user information (you cannot yet get the information of other users)\n String uri = USER_INFO_RELATIVE_URL +\"/~\";\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Get user information for URI: \"+uri, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //prepare REST call\n MCSRequest requestObject = new MCSRequest(this.getMbe().getMbeConfiguration());\n requestObject.setConnectionName(this.getMbe().getMbeConfiguration().getMafRestConnectionName());\n requestObject.setHttpMethod(com.oracle.maf.sample.mcs.shared.mafrest.MCSRequest.HttpMethod.GET); \n\n requestObject.setRequestURI(uri);\n \n HashMap<String,String> httpHeaders = new HashMap<String,String>();\n //httpHeaders.put(HeaderConstants.ORACLE_MOBILE_BACKEND_ID,this.getMbe().getMbeConfiguration().getMobileBackendIdentifier());\n \n requestObject.setHttpHeaders(httpHeaders);\n //no payload needed for GET request\n requestObject.setPayload(\"\");\n\n try {\n MCSResponse mcsResponse = MCSRestClient.sendForStringResponse(requestObject);\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Successfully queried user information from MCS. Response Code: \"+mcsResponse.getHttpStatusCode()+\" Response Message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n //handle request success\n if (mcsResponse != null && mcsResponse.getHttpStatusCode() == STATUS_RESPONSE_OK) { \n User userObject = new User(); \n JSONObject jsonObject = new JSONObject((String) mcsResponse.getMessage()); \n populateUserObjectFromJsonObject(userObject, jsonObject); \n return userObject; \n } else if (mcsResponse != null){\n //if there is a mcsResponse, we pass it to the client to analyze the problem\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Returning onError because of MCS application error with Status Code: \"+mcsResponse.getHttpStatusCode()\n +\" and message: \"+mcsResponse.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n throw new ServiceProxyException(mcsResponse.getHttpStatusCode(), (String) mcsResponse.getMessage(), mcsResponse.getHeaders());\n }\n } catch (Exception e) {\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception thrown. Class: \"+e.getClass().getSimpleName()+\", Message=\"+e.getMessage(), this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Delegating to exception handler\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n handleExceptions(e,uri); \n }\n //should not get here\n return null;\n }", "public User getUser();", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "DescribeUsersResult describeUsers(DescribeUsersRequest describeUsersRequest);", "public User getUser(String name);", "public User getUser(String name);", "public UserTO getUser (String id);", "@GetMapping(\"/users\")\n @PreAuthorize(\"hasRole('Admin')\")\n public SuccessResponse<List<UserResponse>> getUsers() {\n if(!connectionService.isReachable()) {\n String exceptionMessage = \"Cannot connect to database.\";\n System.out.println(exceptionMessage);\n throw new DatabaseException(exceptionMessage);\n }\n\n final var users = userService\n .findAllUsers()\n .stream()\n .map(UserResponse::fromUser)\n .collect(Collectors.toList());\n return new SuccessResponse<>(users);\n }", "@RequestMapping(value = \"/userbyssn/{ssn}\", headers = { \"role=admin\", \"allowed=1\" }, produces = {\"application/json\", \"application/xml\" })\n\t@Secured(CommonConstants.ROLE_ADMIN)\n\tpublic ResponseEntity<UserEntity> fetchDataByUserId(@PathVariable(\"ssn\") String ssn) {\n\t\tfinal UserEntity entity = this.service.fetchDataBySSN(ssn);\n\t\treturn new ResponseEntity<UserEntity>(entity, Objects.isNull(entity) ? HttpStatus.NOT_FOUND : HttpStatus.OK);\n\t}", "@GET(\"/users/{username}\")\n Observable<GithubUserInfos> getUserInfos(@Path(\"username\") String username);", "@GetMapping(\"/{id}\")\n public ResponseEntity<CompleteUsers> getUser(@PathVariable UUID id) throws IOException, InterruptedException{\n return ResponseEntity.ok().body(userService.getById(id));\n }", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "UserInfo getUserInfo(String username);", "@GET\n @Path(\"/{userID}\")\n @AuthProviderRESTExposure\n public APIUser getUser(@QueryParam(\"token\") String authToken, @PathParam(\"userID\") String userID) \n throws GuacamoleException {\n UserContext userContext = authenticationService.getUserContextFromAuthToken(authToken);\n\n // Get the directory\n Directory<String, User> userDirectory = userContext.getUserDirectory();\n\n // Get the user\n User user = userDirectory.get(userID);\n\n if(user == null)\n throw new HTTPException(Response.Status.NOT_FOUND, \"User not found with the provided userID.\");\n\n // Return the user\n return new APIUser(user);\n }", "void getUser(String uid, final UserResult result);", "private void getUserInfo() {\n\t}", "@RequestMapping(\n value = \"/user/{user_id}\", method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_UTF8_VALUE\n )\n public ResponseEntity<User> getUser(@PathVariable(\"user_id\") long id) {\n System.out.println(\"Fetching User with id \" + id);\n User user = new User();\n user.setId(id);\n user.setName(\"Boby\");\n return new ResponseEntity<>(user, HttpStatus.OK);\n }", "public void usersUserIdGet (String userId, String currentUserId, final Response.Listener<InlineResponse200> responseListener, final Response.ErrorListener errorListener) {\n Object postBody = null;\n\n // verify the required parameter 'userId' is set\n if (userId == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'userId' when calling usersUserIdGet\",\n new ApiException(400, \"Missing the required parameter 'userId' when calling usersUserIdGet\"));\n }\n\n // create path and map variables\n String path = \"/users/{userId}\".replaceAll(\"\\\\{format\\\\}\",\"json\").replaceAll(\"\\\\{\" + \"userId\" + \"\\\\}\", apiInvoker.escapeString(userId.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"currentUserId\", currentUserId));\n\n\n String[] contentTypes = {\n \n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n \n\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { \"Authorization\" };\n\n try {\n apiInvoker.invokeAPI(basePath, path, \"GET\", queryParams, postBody, headerParams, formParams, contentType, authNames,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String localVarResponse) {\n try {\n responseListener.onResponse((InlineResponse200) ApiInvoker.deserialize(localVarResponse, \"\", InlineResponse200.class));\n } catch (ApiException exception) {\n errorListener.onErrorResponse(new VolleyError(exception));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n errorListener.onErrorResponse(error);\n }\n });\n } catch (ApiException ex) {\n errorListener.onErrorResponse(new VolleyError(ex));\n }\n }", "@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public AppUser getJson() {\r\n return appUserBean.authenticate(\"admin\", \"admin\");\r\n }" ]
[ "0.72771573", "0.714267", "0.7135063", "0.6949526", "0.6924478", "0.68809736", "0.6856951", "0.6830512", "0.6803205", "0.6793823", "0.677652", "0.6711312", "0.6705744", "0.6699331", "0.66751504", "0.6662898", "0.6623869", "0.6609149", "0.65754366", "0.6570032", "0.6548668", "0.6545824", "0.65341645", "0.64951813", "0.6486436", "0.64794976", "0.6450337", "0.64475656", "0.6424104", "0.6424024", "0.6411394", "0.6409432", "0.64086306", "0.6400142", "0.63867295", "0.63776183", "0.637531", "0.6374366", "0.6370121", "0.6366098", "0.6360078", "0.6356537", "0.63321954", "0.6326067", "0.6326067", "0.6324895", "0.63244474", "0.6319748", "0.63084346", "0.6289444", "0.62854856", "0.62854856", "0.6280434", "0.62803113", "0.6275668", "0.6275524", "0.62663853", "0.62663853", "0.62660104", "0.62656903", "0.62605774", "0.6259786", "0.6253905", "0.6248429", "0.6246658", "0.6241898", "0.62377447", "0.6235231", "0.62325877", "0.62238926", "0.6212834", "0.6212107", "0.6210667", "0.6209535", "0.6197487", "0.619635", "0.6187671", "0.6185428", "0.6182821", "0.6181663", "0.6170997", "0.6170902", "0.6168814", "0.61660516", "0.6164532", "0.6160135", "0.61523914", "0.61523914", "0.6151557", "0.61477965", "0.6141842", "0.6138004", "0.6137785", "0.61361456", "0.61360246", "0.61327845", "0.6131377", "0.61254096", "0.6124141", "0.611748", "0.6116171" ]
0.0
-1
Notify User Data to Observer
public MutableLiveData<UserDetailBean> getUserResponseLiveData() { return userDetailBeanMutableLiveData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notifyObservers();", "public void notifyObservers();", "public void notifyObservers();", "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "private void observeData() {\n viewModel.profile.observe(this, new Observer<User>() {\n @Override\n public void onChanged(User user) {\n if (user != null) {\n if (etUsername.getText().toString().toLowerCase().equals(user.getUsername())\n && etPassword.getText().toString().toLowerCase().equals(user.getPassword())) {\n saveUserData();\n navigateTo(new UserListActivity());\n } else {\n showErrorMessage();\n }\n } else {\n showErrorMessage();\n }\n }\n });\n }", "void notifyObserver();", "void notifyObservers();", "void notifyObservers();", "public void notifyObservers() {}", "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "protected void notifyUser()\n {\n }", "public void notifyUserInfo(String userInfo);", "public interface UserProfileChangedNotification {\n void onProfileChanged();\n}", "public void updateObserver();", "private void notifyObservers() {\n\t\tfor (Observer observer : subscribers) {\n\t\t\tobserver.update(theInterestingValue); // we can send whole object, or just value of interest\n\t\t\t// using a pull variant, the update method will ask for the information from the observer\n\t\t\t// observer.update(this)\n\t\t}\n\t}", "@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "public void notifyObservers() {\r\n\t\tDoctorEvent evt;\r\n\t\tif (loggedIn) {\r\n\t\t\tevt = new DoctorEvent(DoctorEventType.LOGIN, doctor);\r\n\t\t} else {\r\n\t\t\tevt = new DoctorEvent(DoctorEventType.LOGOUT, doctor);\r\n\t\t}\r\n\t\tfor (Iterator<IObserver> it = observers.iterator(); it.hasNext();) {\r\n\t\t\tIObserver observer = (IObserver) it.next();\r\n\t\t\tobserver.onNotify(evt);\r\n\t\t}\r\n\t}", "public void notifyChangementJoueurs();", "public interface Observer {\n void update(String celebrityName, String facebookPost);\n String getName();\n}", "public void atacar() {\n notifyObservers();\n }", "@Override\n public void update(Observable observable, Object data) {\n Toast.makeText(this, \"I am notified\" + myBase.getObserver().getValue(), 0).show();\n btn.setText(\"value: \" + myBase.getObserver().getValue());\n\n }", "public void notifyObserver() {\n\r\n for (Observer observer : observers) {\r\n\r\n observer.update(stockName, price);\r\n\r\n }\r\n }", "static void NotifyCorrespondingObservers() {}", "public static void aviUsers() {\n\t\tsendNotification();\r\n\t}", "@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "@Override public void notifyUserObtained(UserInfo userInfo) {\n userAdapter.addUser(userInfo);\n }", "public void dataChanged() {\n\t\tif (wijzigInfo)\n\t\t\twijzigInfo();\n\n\t\tsetChanged();\n\t\tnotifyObservers(\"dataChanged\");\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}", "public void notifyObservers(String info){\r\n\t\tfor (Observer ob: observers){\r\n\t\t\tob.updateFromLobby(info);\r\n\t\t}\r\n\t}", "public interface DataObserver {\n }", "@Override\n\tpublic void update(Observable observable, Object data) {\n\n\t}", "@Subscribe\n public void onEvent(Change_Username event) {\n textView_player.setText(\"Welcome \"+event.getUsername());\n data.setUsername(event.getUsername());\n app.save();\n\n }", "public void subscribe( Observer< S, Info > obs );", "void onHisNotify();", "public void notifyObservers(){\r\n\t\tif (this.lastNews != null)\r\n\t\t\tfor (Observer ob: observers){\r\n\t\t\t\tob.updateFromLobby(lastNews);\r\n\t\t\t}\r\n\t}", "@Override\n\tpublic void notifyObserver() {\n\t\tEnumeration<ObserverListener> enumd = vector.elements();\n\t\twhile (enumd.hasMoreElements()) {\n\t\t\tObserverListener observerListener = enumd\n\t\t\t\t\t.nextElement();\n\t\t\tobserverListener.observer();\n\t\t\tobserverListener.obsupdata();\n\t\t}\n\t}", "public void onDataChanged(){}", "public interface Observer {\n public void update(String context);\n\n}", "public void notify(String userId);", "interface Observer {\n void notify(String tweet);\n}", "public void onDataChanged();", "private interface Observer {\n void update(Observable observable, String errorMessage);\n }", "private void announce( String arg ) {\r\n for ( var obs : this.observers ) {\r\n obs.update( this, arg );\r\n }\r\n }", "private void notifyObservers() {\n\t\tIterator<Observer> i = observers.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tObserver o = ( Observer ) i.next();\r\n\t\t\to.update( this );\r\n\t\t}\r\n\t}", "void onDataChanged();", "protected abstract void registerObserver();", "public interface Observer {\n public void hearTelephone(String hearMess);\n}", "public interface ReceiverObserver {\n\n void update(DataNotification notification);\n}", "public void notifyChangementTour();", "public interface Observer {\n public void notification(String handle, String tweet);\n}", "void notifyPrisonerDataChanged();", "interface Observer {\r\n public void update(String msg);\r\n}", "public void notifyJoueurActif();", "@Override\n public void notifyObserver(String news) {\n //send an actual email\n System.out.println(\"Reading the news paper : \"+ news);\n }", "public void registerObserver(Observer observer);", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer1 has received update!\");\r\n\t}", "public void doSomeChanges() {\n\n eventBus.publish(\"our.event.coming.from.model\", \"some data passed\");\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}", "public interface Observer {\n //method to update the observer, used by subject\n public void update();\n\n}", "public void notifyUpdate() {\n if (mObserver != null) {\n synchronized (mObserver) {\n mNotified = true;\n mObserver.notify();\n }\n }\n }", "public interface UserInfoListener {\n /**\n * Notifies other fragments with user information\n * @param userInfo user information, for now just a string\n */\n public void notifyUserInfo(String userInfo);\n}", "public void treatment()\n {\n\t\tCommunicationManagerServer cms = CommunicationManagerServer.getInstance();\n\t\tDataServerToComm dataInterface = cms.getDataInterface();\n\t\t/** On récupère et stocke l'adresse IP du serveur\n\t\t */\n\t\tdataInterface.updateUserChanges(user);\n\n\t /** Création du message pour le broadcast des informations**/\n\t updatedAccountMsg message = new updatedAccountMsg(this.user);\n\t\tmessage.setPort(this.getPort());\n\t cms.broadcast(message);\n\t}", "@Override\n\tpublic void notifyObservers() {\n\t\tfor (Observer obs : this.observers)\n\t\t{\n\t\t\tobs.update();\n\t\t}\n\t}", "protected void notifyObservers() {\n os.notify(this, null);\n }", "public void notifyObservers(Object... args)\n {\n for (IObserver observer : observers)\n {\n observer.update(this, args);\n }\n }", "public interface Observer {\n\n void update(float temperature,float humidity,float pressure);\n\n}", "@Override\n void notifys() {\n for (Observer o : observers) {\n o.update();\n }\n }", "public interface MyObserver {\n\n public void myNotify(MyObservable observable);\n\n}", "private void observeIsUserLoggedInLiveData() {\n viewModel.getIsUserLoggedInLiveData()\n .observe(this, loggedInStatus -> isUserLoggedIn = loggedInStatus);\n }", "public void notifyObservers(){\n for (GameObserver g: observers){\n g.handleUpdate(new GameEvent(this,\n currentPlayer,\n genericWorldMap,\n gameState,\n currentTerritoriesOfInterest,\n currentMessage));\n }\n }", "private void addUserChangeListener() {\n // User data change listener\n mFirebaseDatabase.child(userId).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n needy needy = dataSnapshot.getValue(needy.class);\n\n // Check for null\n if (needy == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n\n Log.e(TAG, \"User data is changed!\" + needy.Address + \", \" + needy.Phone_number+\",\"+ needy.needy);\n\n // Display newly updated name and email\n // txtDetails.setText(user.Address + \", \" + user.Phone_number+\",\"+user.needy);\n\n // clear edit text\n inputAddress.setText(\"\");\n inputPhone_number.setText(\"\");\n inputneedy.setText(\"\");\n\n\n toggleButton();\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", error.toException());\n }\n });\n }", "@Override\r\n\tpublic void update(Observable o, Object data) {\r\n\t\t//Check if data is coming from Eclipse MQTT broker\r\n\t\tif(o.equals(mqttConn)) {\r\n\t\t\tif(((String[]) data)[0].equals(subscribeTopic)) {\r\n\t\t\t\tpd = DataUtil.jsonToPitchData(((String[]) data)[1], true);\r\n\t\t\t\t_Logger.info(\"Gateway device:\\nNew pitch reading received:\" + pd);\r\n\t\t\t\tubidotsApi.sendPitchValue((double) pd.getCurValue());\r\n\t\t\t\t\r\n\t\t\t\tif((pd.getCurValue() <= minPitch) && oneShot) {\r\n\t\t\t\t\tsmtpConn.sendMail(\"[email protected]\", \"ALERT: Water Level\", \"Water level has fallen below the minimum!\");\r\n\t\t\t\t\toneShot = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(((String[]) data)[0].equals(subscribeTopic2)) {\r\n\t\t\t\tsd = DataUtil.jsonToSensorData(((String[]) data)[1], true);\r\n\t\t\t\t_Logger.info(\"Gateway device:\\nNew Temperature reading received\" + sd);\r\n\t\t\t\tubidotsApi.sendTempValue((double) sd.getCurValue());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t//Check if data is coming from Ubidots MQTT broker\r\n\t\telse if(o.equals(ubidotsMqtt)) {\r\n\t\t\tint valveData = Integer.parseInt(((String[]) data)[1]);\r\n\t\t\tif(valveData != ledON) {\r\n\t\t\t\tledON = valveData;\r\n\t\t\t\tmqttConn.publish(publishTopic, 2, String.valueOf(ledON));\r\n\t\t\t\t\r\n\t\t\t\tif(ledON==1) {\r\n\t\t\t\t\tSystem.out.println(\"Turning ON Valve(LED)...\\n\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(ledON==0) {\r\n\t\t\t\t\toneShot = true;\r\n\t\t\t\t\tSystem.out.println(\"Turning OFF Valve(LED)...\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface Observer {\n public void update(float temperature , float pressure , float humdity);\n}", "public void notifyObservers(Observable observable,Board board) { \n\t\tGame.ui.get(0).update(observable,board); \n\t}", "public void setObservers() {\n feedBackVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (feedBackVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n feedBackVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(feedBackVM.toastMsg.get());\n feedBackVM.toastMsg.set(null);\n }\n });\n }", "private void addUserChangeListener() {\n ref.child(userid).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n data dat = dataSnapshot.getValue(data.class);\n\n // Check for null\n if (dat == null) {\n Log.e(TAG, \"User data is null!\");\n return;\n }\n\n // Log.e(TAG, \"User data is changed!\" + user.name + \", \" + user.email);\n\n Toast.makeText(moredata.this, \"\"+dat.address+dat.name, Toast.LENGTH_SHORT).show();\n e1.setText(\"\");\n e2.setText(\"\");\n // Display newly updated name and email\n /* txtDetails.setText(user.name + \", \" + user.email);\n\n // clear edit text\n inputEmail.setText(\"\");\n inputName.setText(\"\");\n\n toggleButton();*/\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.e(TAG, \"Failed to read user\", error.toException());\n }\n });\n }", "@Override\r\n\tpublic void registerObserver(Observer observer) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer3 has received update!\");\r\n\t}", "public void notifyObservers() {\n for (int i = 0; i < observers.size(); i++) {\n Observer observer = (Observer)observers.get(i);\n observer.update(this.durum);\n }\n }", "public interface OnUserInfoListener {\n void getUserInfoSuccess(User user);\n void getUserInfoFailed();\n}", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor (Observer o : this.observers) {\r\n\t\t\to.update();\r\n\t\t}\r\n\t}", "public interface Listener{\n\t\tpublic void notify(Map<String,Serializable> datas);\n\t}", "@Override\n public void notify(Object event){\n }", "void onUserAdded();", "protected void notify(Employee e) {\n\t}", "private void setObservers() {\n evaluateDetailVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (evaluateDetailVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n evaluateDetailVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(evaluateDetailVM.toastMsg.get());\n evaluateDetailVM.toastMsg.set(null);\n }\n });\n }", "public interface UiObserver {\n\n void update(String string);\n\n void updateConnection(String ip, String port);\n\n}", "public interface Observer{\n //一发现别人有动静,自己也要行动起来\n public void update(String context);\n\n\n}", "@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}", "public interface Observer {\n\tvoid update(Observable o, String event);\n}", "void addPropertyChangedObserver(PropertyChangeObserver observer);", "public interface Observer {\n void updateWeather(Weather weather);\n}", "public interface Observer {\n\n void register(Listener listener);\n void unRegister(Listener listener);\n void update(String name);\n String getName();\n}", "private interface Observable{\n void registerObserver(Observer observer);\n void removeObserver(Observer observer);\n void updateScore(String score);\n void notifyObservers();\n void notifyObservers(String errorMessage);\n }", "@Override\n public void update(Observable o, Object arg) {\n setChanged();\n notifyObservers();\n }", "@Override\n\tpublic void notifys() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update(this);\n\t\t}\n\t}", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer2 has received update!\");\r\n\t}", "public interface Observer {\n void update();\n}", "public interface Observer {\n void upate();\n}", "public interface Observer <T> {\n /**\n * The method that is called by the notify method of the Observable classes.\n * @param message The message sent by the notify method of the observable classes.\n */\n void update(T message);\n}" ]
[ "0.70432484", "0.70432484", "0.70432484", "0.7036104", "0.70356476", "0.7007807", "0.6996664", "0.6996664", "0.69844455", "0.6949214", "0.6869275", "0.685641", "0.6830151", "0.67830384", "0.6681176", "0.66702926", "0.65897703", "0.65585077", "0.65470546", "0.6536499", "0.65013015", "0.649529", "0.6492705", "0.6490334", "0.64342284", "0.64335907", "0.6397377", "0.6395339", "0.63653845", "0.63608176", "0.63359165", "0.6321288", "0.63178825", "0.63149893", "0.6310651", "0.63063085", "0.62960184", "0.62943184", "0.6285668", "0.6280236", "0.6261811", "0.6260026", "0.62457246", "0.6236858", "0.6229178", "0.62177217", "0.6187011", "0.61832577", "0.6180913", "0.61804223", "0.61719686", "0.61702657", "0.61537516", "0.6152886", "0.615215", "0.6149969", "0.6141629", "0.6132513", "0.6125418", "0.6118891", "0.6106338", "0.60906625", "0.60878307", "0.60810643", "0.60809326", "0.6078154", "0.6075389", "0.6062617", "0.60619885", "0.60601044", "0.60516715", "0.605006", "0.60439414", "0.6033033", "0.6028468", "0.6026347", "0.60179883", "0.6016161", "0.60147077", "0.6011128", "0.60106134", "0.6008789", "0.60073036", "0.5999501", "0.59932536", "0.5985338", "0.59839326", "0.5967478", "0.5962968", "0.5959864", "0.5958219", "0.595734", "0.59550405", "0.59484875", "0.59474707", "0.59453773", "0.5942895", "0.5937938", "0.5919792", "0.59197015", "0.59193414" ]
0.0
-1
Check if no view has focus:
@Override public void onComplete(@NonNull Task<AuthResult> task) { View view = getCurrentFocus(); if (view != null) { // Hiding the Soft Keyboard Forcefully. Not A Best Practice. || TODO: REFACTOR THIS LATER InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); } if(task.isSuccessful()){ Toast.makeText(getApplicationContext(), "Login Successful", Toast.LENGTH_LONG).show(); startActivity(new Intent(getApplicationContext(), HomeActivity.class)); mProgress.dismiss(); } else { Toast.makeText(getApplicationContext(), "Problem Occur While Login", Toast.LENGTH_LONG).show(); mProgress.dismiss(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean m36208d(View view) {\n return view != null && view.hasWindowFocus();\n }", "public boolean hasFocus() {\n return hasFocus;\n }", "@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}", "boolean hasFocus() {\n\t\t\tif (text == null || text.isDisposed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn text.getShell().isFocusControl() || text.isFocusControl();\n\t\t}", "private static boolean m36209e(View view) {\n return view == null || !view.isShown();\n }", "public boolean hasFocus() {\n\t\tif (!isValid()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (getShell().isFocusControl() || proposalTable.isFocusControl()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (infoPopup != null && infoPopup.hasFocus()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFocused() {\n/* 807 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isOutOfFocus() {\n\t\treturn isOutOfFocus;\n\t}", "boolean isTestAlwaysFocus();", "public boolean isFocusAvailable() {\r\n if (!isEnabled() || !isRequestFocusEnabled() || !isFocusable() || !isShowing())\r\n return false;\r\n else {\r\n Window modal = getDesktop().getModalWindow();\r\n if (modal!=null && modal!=this && modal.isVisible()) {\r\n return this.isDeepChildOf(modal);\r\n }\r\n }\r\n return true;\r\n }", "public boolean isFocus() {\n\t\tif(lfocus.getText().equals(\"取消关注\"))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tlfocus.setText(\"取消关注\");\n\t\treturn false;\n\t}", "boolean isFocused() {\n\t\tif (state != State.ROTATE)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean hasActiveView();", "boolean hasClickView();", "protected void onFocusGained()\n {\n ; // do nothing. \n }", "public boolean isFocusTraversable()\n {\n return false;\n }", "public boolean getViewMissing() {\n return view == null;\n }", "public boolean isFocusable() {\n/* 784 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isFocusable() {\r\n\t\treturn true;\r\n\t}", "@Ignore(\"b/72154153\")\n @Test\n public void testFocusedViewInNormalCase() {\n controller.menuHelper.showMenu();\n controller.menuHelper.assertNavigateToPlayControlsRow();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n }", "@Override\r\n public void onFocusChange(final View aView, final boolean hasFocus) {\n }", "public boolean isAccessibilityFocused() {\n/* 853 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final boolean mo5379l() {\n RecyclerView recyclerView = this.f9709b;\n return recyclerView != null && recyclerView.hasFocus();\n }", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n }", "private void assertStreamItemViewNotFocusable() {\n assertNotNull(\"should have a stream item\", mView);\n assertFalse(\"should not be focusable\", mView.isFocusable());\n }", "private void checkSearchViewExists() {\n onView(withId(R.id.searchView)).check(matches(isDisplayed()));\n }", "public boolean chatFocused(){\n\t\tTextField tf = nifty.getScreen(\"hud\").findNiftyControl(\"chatText\",TextField.class);\n\t\treturn tf.hasFocus();\n\t}", "public boolean hasBindView() {\n return mBindViewId != -1;\n }", "protected void onFocusLost()\n {\n ; // do nothing. \n }", "@Override\n public boolean isFocusable() {\n return false;\n }", "@Override\n\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\n\t}", "public boolean getFocused() {\n return getPolymerElement().getFocused();\n }", "public boolean gotFocus(Event e, Object arg) {\n return true;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSelection() == null);\n\t}", "private void assertStreamItemViewFocusable() {\n assertNotNull(\"should have a stream item\", mView);\n assertTrue(\"should be focusable\", mView.isFocusable());\n }", "@Override\n \t\tpublic void onFocusChange(View v, boolean hasFocus) {\n \t\t}", "public boolean A0X(View view) {\n View view2;\n if (!(this instanceof AppBarLayout.BaseBehavior)) {\n return false;\n }\n WeakReference weakReference = ((AppBarLayout.BaseBehavior) this).A04;\n return weakReference == null || (view2 != null && view2.isShown() && !view2.canScrollVertically(-1));\n }", "public boolean isFocusable() {\r\n return focusable;\r\n }", "private static boolean m36212h(View view) {\n return view.isShown() && ((double) view.getAlpha()) > 0.0d;\n }", "boolean isValid(View view);", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n\n Log.e(\"tag\", String.valueOf(hasFocus));\n }", "boolean isInview();", "public boolean isAtTop() {\n return null != mListView && mListView.getFirstVisiblePosition() == 0;\n }", "public void focusLost(FocusEvent fe) {\n\t\tif (isVisible())\n\t\t\trequestFocus();\n\t}", "@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\n View v = getCurrentFocus();\n if ( v instanceof EditText) {\n Rect outRect = new Rect();\n v.getGlobalVisibleRect(outRect);\n if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) {\n v.clearFocus();\n hideKeyboard();\n }\n }\n }\n return super.dispatchTouchEvent( event );\n }", "public abstract @Nullable View getKeyboardFocusView();", "public void focus() {}", "private static boolean m36207c(View view) {\n return VERSION.SDK_INT >= 19 ? view != null && view.isAttachedToWindow() : (view == null || view.getWindowToken() == null) ? false : true;\n }", "boolean hasFeedPlaceholderView();", "private boolean testFocusability(Component aComponent) {\n return focused.contains(aComponent);\n }", "public final boolean isFocusSearchDisabled() {\n return mLayoutManager.isFocusSearchDisabled();\n }", "@Override\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\ttry {\n\t\t\tsuper.onWindowFocusChanged(hasFocus);\n\t\t} catch (NullPointerException npe) { }\n\t}", "public void focusLost(FocusEvent arg0) {\r\n\t\thelpActive = false;\r\n\t\tpopup.setVisible(false);\r\n\t}", "public void loseFocus(){\r\n\t//\tthis.setId(\"single-image-widget\");\r\n//\t\t((ColumnViewPane) this.getParent()).refresh();\r\n\t\thasFocus = false;\r\n\t}", "public boolean isEditingFocus() {\n\t\treturn editingFocus;\n\t}", "void requestSearchViewFocus();", "@Override\r\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\tsuper.onWindowFocusChanged(hasFocus);\r\n\t\tLog.d(\"hasFocus\", String.valueOf(hasFocus));\r\n\t\t//MainActivity.exitHandeler(this, hasFocus);\r\n\t}", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (et_eve.isFocused()) {\n et_eve.setText(null);\n et_eve.requestFocus();\n\n }\n\n }", "public void tryLockFocus() {\n }", "public boolean isScreenReaderFocusable() {\n/* 1331 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showKeyboard();\n else {\n hideKeyboard();\n }\n\n }", "public boolean isValidateRoot() {\n\tComponent parent = getParent();\n\tif (parent instanceof JViewport) {\n\t return false;\n\t}\n return true;\n }", "protected boolean isActiveAdView(View view) {\r\n\t\t\tboolean ret = false;\r\n\t\t\tif (view != null) {\r\n\t\t\t\tif (view.getVisibility() != View.GONE) {\r\n\t\t\t\t\tret = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn ret;\r\n\t\t}", "private static boolean m36214j(View view) {\n return VERSION.SDK_INT < 19 || view.getBackground() == null || view.getBackground().getAlpha() == 0;\n }", "private boolean isFirstView(int viewIndex){\r\n\t\treturn viewIndex == 0;\r\n\t}", "public static boolean hasFocus(Control control) {\n\t\tif (control.isFocusControl())\n\t\t\treturn true;\n\t\tif (control instanceof Composite)\n\t\t\tfor (Control child : ((Composite) control).getChildren())\n\t\t\t\tif (hasFocus(child))\n\t\t\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean isLocalMenuActive(JTextField field) {\n Window window = SwingUtilities.getWindowAncestor(field);\n if (window != null) {\n Component comp = window.getFocusOwner();\n return comp != null && (comp instanceof JMenuItem);\n }\n return false;\n }", "public void testFocusListener() throws Exception\n {\n checkFormEventListener(FOCUS_BUILDER, \"FOCUS\");\n }", "boolean hasSearchTermView();", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t\tfocusLost = false;\n\t\t\n\t}", "@Override\n\tpublic void focusLost(FocusEvent arg0) {\n\t\tfocusLost = true;\n\t\t\n\t}", "boolean wasShownBefore(MultiViewElement element) {\n return shownElements.contains(element);\n }", "public boolean hasSelectionLimit()\n {\n return (this.getSelectionLimit() > 0L);\n }", "boolean hasCallView();", "public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }", "public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }", "@JSProperty\n boolean isAutofocus();", "@Override\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\tsuper.onWindowFocusChanged(hasFocus);\n\t}", "public boolean isFocusTraversable() {\n return true; // Not supported for MenuComponents\n }", "@Override\n\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F OUTT\");\t\t\n\t\t}", "public final boolean isFocusableWindow() {\n if (!getFocusableWindowState()) {\n return false;\n }\n // All other tests apply only to Windows.\n if (this instanceof Frame || this instanceof Dialog) {\n return true;\n }\n // A Window must have at least one Component in its root focus\n // traversal cycle to be focusable.\n if (getFocusTraversalPolicy().getDefaultComponent(this) == null) {\n return false;\n }\n // A Window's nearest owning Frame or Dialog must be showing\n // on the screen.\n for (Window owner = getOwner(); owner != null;\n owner = owner.getOwner()) {\n if (owner instanceof Frame || owner instanceof Dialog) {\n return owner.isShowing();\n }\n }\n return false;\n }", "public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }", "boolean isSetSearchWindowStart();", "public boolean getShowFocusedControl() {\n checkWidget();\n return showFocusedControl;\n }", "void focus();", "void focus();", "@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_UP) {\n View v = getCurrentFocus();\n if (v instanceof EditText) {\n Rect outRect = new Rect();\n v.getGlobalVisibleRect(outRect);\n if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) {\n v.clearFocus();\n InputMethodManager imm =\n (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }\n }\n }\n return super.dispatchTouchEvent(event);\n }", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}", "private void check_displaysInputOverlay() {\n onView(withId(R.id.voiceInput))\n .check(matches(isDisplayed()));\n // the permission overlay should not\n onView(withId(R.id.voicePermission))\n .check(doesNotExist());\n }", "boolean isNilSearchWindowStart();", "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}", "private void checkIfEmpty() {\n\n if (emptyView != null && recyclerView.getAdapter() != null) {\n\n boolean emptyViewVisible = recyclerView.getAdapter().getItemCount() == 0;\n Log.d(Utility.LOG_TAG, \" Enabling empty view for list : No data found \" );\n emptyView.setVisibility(emptyViewVisible ? View.VISIBLE : View.GONE);\n recyclerView.setVisibility(emptyViewVisible ? View.GONE : View.VISIBLE);\n }\n }", "public boolean isTextListFocused() {\n\t\treturn jpIntroduceNameList.isRequestFocusEnabled();\n\t}", "public boolean hasValidItemSelected() {\n return !(autoComplete.getSelection() == null || ((Comboitem)autoComplete.getSelection()).getValue() == null);\n }", "@Test\n public void testFocusedViewWithDisabledActionForward() {\n // Fast forward button\n controller.pressKeyCode(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD);\n controller.menuHelper.assertWaitForMenu();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n\n // Next button\n controller.pressKeyCode(KeyEvent.KEYCODE_MEDIA_NEXT);\n controller.menuHelper.assertWaitForMenu();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n }", "private void requestFocus(View view) {\n if (view.requestFocus()) {\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n }\n }", "public void focusLost(FocusEvent e) { }", "@Override\r\n public boolean dispatchTouchEvent(MotionEvent event) {\n\r\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\r\n View v = getCurrentFocus();\r\n if (v instanceof EditText) {\r\n Rect outRect = new Rect();\r\n v.getGlobalVisibleRect(outRect);\r\n if (!outRect.contains((int) event.getRawX(), (int) event.getRawY())) {\r\n v.clearFocus();\r\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\r\n }\r\n }\r\n }\r\n return super.dispatchTouchEvent(event);\r\n }", "boolean getStartupFocusPref();", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n super.onWindowFocusChanged(hasFocus);\n// if (hasFocus) {\n// refreshContent();\n// }\n }" ]
[ "0.752144", "0.71540445", "0.71503836", "0.71252257", "0.6989558", "0.6839896", "0.6835727", "0.68034774", "0.67644054", "0.6644914", "0.65743554", "0.65302986", "0.6448699", "0.643322", "0.6394429", "0.6380685", "0.63306206", "0.6325382", "0.63178706", "0.62391496", "0.6223977", "0.6201778", "0.61960095", "0.6158201", "0.6143344", "0.612933", "0.61178684", "0.61103886", "0.6104413", "0.60981226", "0.6087126", "0.603522", "0.6024944", "0.6023977", "0.59918153", "0.5985244", "0.59648156", "0.59205526", "0.5911518", "0.59085816", "0.59076524", "0.5888053", "0.58858275", "0.58827275", "0.5881584", "0.58203596", "0.5816772", "0.5812023", "0.5792801", "0.5790547", "0.57865393", "0.5743663", "0.57351035", "0.57155186", "0.57007796", "0.5681492", "0.5674929", "0.566964", "0.5663622", "0.56635016", "0.5658461", "0.56490713", "0.56438804", "0.56405014", "0.5635584", "0.56169415", "0.56164956", "0.5610485", "0.56053483", "0.56009", "0.55997497", "0.5594797", "0.55941755", "0.55915993", "0.55841476", "0.5569161", "0.5569161", "0.55656046", "0.5561243", "0.5559877", "0.55588627", "0.55506766", "0.5537594", "0.55346745", "0.55342054", "0.55291754", "0.55291754", "0.55161846", "0.55096024", "0.54904634", "0.54857725", "0.54837716", "0.54804033", "0.5475556", "0.54703707", "0.546999", "0.5466797", "0.54604113", "0.54593796", "0.5456927", "0.5450749" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<indent> selectAll() { return indentmapper.selectAll(); }
{ "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
It would seem to make sense to pass in the min and the max, but we want to allow people to use custom implementations which will be created when the AxisChart constructor gets called and we will not have looped the data to find the min and max yet. No sense in making people do that when we will do that already.
public UserDefinedScaleCalculator( double userDefinedMinimum, double userDefinedIncrement ) { this.userDefinedMinimum = userDefinedMinimum; this.userDefinedIncrement = userDefinedIncrement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAxisRange(double xMin,double xMax, double yMin, double yMax) {\n minXValue=xMin;\n maxXValue=xMax;\n minYValue=yMin;\n maxYValue=yMax;\n this.customAxis=true;\n addGraphPanel();\n\n }", "@Override\r\n public void setMinMax(Double min, Double max) {\r\n this.minIn = min;\r\n this.maxIn = max;\r\n }", "public void setXDataRange(float min, float max);", "@Override\r\n\tpublic Point[] getPointsInRangeRegAxis(int min, int max, Boolean axis) {\n\t\tPoint[] pointsArr = new Point[counter(min, max, axis)];\r\n\t\t//Fill in the array with fitting points\r\n\t\tint ind = 0;\r\n\t\tif(axis){\r\n\t\t\tContainer currX = firstX;\r\n\t\t\twhile (currX!=null){\r\n\t\t\t\tif(((Point)currX.getData()).getX() >= min &&((Point)currX.getData()).getX() <= max){\r\n\t\t\t\t\tpointsArr[ind] = currX.getData();\r\n\t\t\t\t\tind++;\r\n\t\t\t\t}\r\n\t\t\t\tcurrX = currX.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tContainer currY = firstY;\r\n\t\t\twhile (currY!=null){\r\n\t\t\t\tif(((Point)currY.getData()).getY() >= min &&((Point)currY.getData()).getY() <= max){\r\n\t\t\t\t\tpointsArr[ind] = currY.getData();\r\n\t\t\t\t\tind++;\r\n\t\t\t\t}\r\n\t\t\t\tcurrY = currY.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn pointsArr;\r\n\t}", "public void setYDataRange(float min, float max);", "@Override public void setMinMax(float minValue, float maxValue) {\n this.valueTrack.min = minValue; this.valueTrack.max = maxValue;\n }", "@Override\n protected void updateAxisRange(){\n Axis<X> xAxis = getXAxis();\n Axis<Y> yAxis = getYAxis();\n ArrayList<X> xList = null;\n ArrayList<Y> yList = null;\n if(xAxis.isAutoRanging()) { xList = new ArrayList<>(); }\n if(yAxis.isAutoRanging()) { yList = new ArrayList<>(); }\n\n if(xAxis != null || yAxis != null) {\n for (Series<X, Y> series : getData()) {\n for (Data<X, Y> data : series.getData()) {\n if(xList != null) {\n xList.add(data.getXValue());\n xList.add(xAxis.toRealValue(xAxis.toNumericValue(data.getXValue())\n + getLength(data.getExtraValue())));\n }\n if(yList != null) {\n yList.add(data.getYValue());\n }\n }\n }\n if(xList != null) { xAxis.invalidateRange(xList); }\n if(yList != null) { yAxis.invalidateRange(yList); }\n }\n\n }", "public MaxAndMin(){\n this.list=new ListOfData().getData();\n }", "public void setMinMax(double min, double max)\n {\n if (max == min)\n throw new IllegalArgumentException(\"Max value must be bigger than Min value!\");\n\n this.min = min;\n this.max = max;\n if (max < min)\n {\n this.max = min;\n this.min = max;\n }\n }", "private void findMinandMaxValues(SparklineValues values) {\n minY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).min().orElse(0.0);\n maxY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).max().orElse(0.0);\n\n if (Math.abs(minY) > 1E30 || Math.abs(maxY) > 1E30) {\n // something is probably wrong\n System.out.println(\"Unexpectedly small/large min or max: \");\n values.getValues().forEach(value -> {\n System.out.print(value.getValue() + \" \");\n });\n System.out.println();\n minY = -1.0;\n maxY = 1.0;\n }\n\n if (minY.equals(maxY)) {\n if (minY.equals(0.0)) {\n minY = -1.0;\n maxY = 1.0;\n } else {\n minY = minY - 0.1 * Math.abs(minY);\n maxY = maxY + 0.1 * Math.abs(maxY);\n }\n }\n }", "public DefaultValueAxisEditor(ValueAxis axis) {\n/* 125 */ super(axis);\n/* */ \n/* 127 */ this.autoRange = axis.isAutoRange();\n/* 128 */ this.minimumValue = axis.getLowerBound();\n/* 129 */ this.maximumValue = axis.getUpperBound();\n/* 130 */ this.autoTickUnitSelection = axis.isAutoTickUnitSelection();\n/* */ \n/* 132 */ this.gridPaintSample = new PaintSample(Color.blue);\n/* 133 */ this.gridStrokeSample = new StrokeSample(new BasicStroke(1.0F));\n/* */ \n/* 135 */ this.availableStrokeSamples = new StrokeSample[3];\n/* 136 */ this.availableStrokeSamples[0] = new StrokeSample(new BasicStroke(1.0F));\n/* */ \n/* 138 */ this.availableStrokeSamples[1] = new StrokeSample(new BasicStroke(2.0F));\n/* */ \n/* 140 */ this.availableStrokeSamples[2] = new StrokeSample(new BasicStroke(3.0F));\n/* */ \n/* */ \n/* 143 */ JTabbedPane other = getOtherTabs();\n/* */ \n/* 145 */ JPanel range = new JPanel(new LCBLayout(3));\n/* 146 */ range.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));\n/* */ \n/* 148 */ range.add(new JPanel());\n/* 149 */ this.autoRangeCheckBox = new JCheckBox(localizationResources.getString(\"Auto-adjust_range\"), this.autoRange);\n/* */ \n/* 151 */ this.autoRangeCheckBox.setActionCommand(\"AutoRangeOnOff\");\n/* 152 */ this.autoRangeCheckBox.addActionListener(this);\n/* 153 */ range.add(this.autoRangeCheckBox);\n/* 154 */ range.add(new JPanel());\n/* */ \n/* 156 */ range.add(new JLabel(localizationResources.getString(\"Minimum_range_value\")));\n/* */ \n/* 158 */ this.minimumRangeValue = new JTextField(Double.toString(this.minimumValue));\n/* */ \n/* 160 */ this.minimumRangeValue.setEnabled(!this.autoRange);\n/* 161 */ this.minimumRangeValue.setActionCommand(\"MinimumRange\");\n/* 162 */ this.minimumRangeValue.addActionListener(this);\n/* 163 */ this.minimumRangeValue.addFocusListener(this);\n/* 164 */ range.add(this.minimumRangeValue);\n/* 165 */ range.add(new JPanel());\n/* */ \n/* 167 */ range.add(new JLabel(localizationResources.getString(\"Maximum_range_value\")));\n/* */ \n/* 169 */ this.maximumRangeValue = new JTextField(Double.toString(this.maximumValue));\n/* */ \n/* 171 */ this.maximumRangeValue.setEnabled(!this.autoRange);\n/* 172 */ this.maximumRangeValue.setActionCommand(\"MaximumRange\");\n/* 173 */ this.maximumRangeValue.addActionListener(this);\n/* 174 */ this.maximumRangeValue.addFocusListener(this);\n/* 175 */ range.add(this.maximumRangeValue);\n/* 176 */ range.add(new JPanel());\n/* */ \n/* 178 */ other.add(localizationResources.getString(\"Range\"), range);\n/* */ \n/* 180 */ other.add(localizationResources.getString(\"TickUnit\"), \n/* 181 */ createTickUnitPanel());\n/* */ }", "@Override\r\n\tpublic Point[] getPointsInRangeOppAxis(int min, int max, Boolean axis) {\n\t\tPoint[] pointsArr = new Point[counter(min, max, axis)];\r\n\t\t//fill in the array\r\n\t\tif(axis){\r\n\t\t\tContainer currY = firstY;\r\n\t\t\tint ind = 0;\r\n\t\t\twhile(currY!=null){\r\n\t\t\t\tif(currY.getData().getX()>=min & currY.getData().getX()<=max){\r\n\t\t\t\t\tpointsArr[ind] = currY.getData();\r\n\t\t\t\t\tind++;\r\n\t\t\t\t}\r\n\t\t\t\tcurrY=currY.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tContainer currX = firstX;\r\n\t\t\tint ind = 0;\r\n\t\t\twhile(currX!=null){\r\n\t\t\t\tif(currX.getData().getY()>=min && currX.getData().getY()<=max){\r\n\t\t\t\t\tpointsArr[ind] = currX.getData();\r\n\t\t\t\t\tind++;\r\n\t\t\t\t}\r\n\t\t\t\tcurrX=currX.next;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn pointsArr;\r\n\t}", "public void updateMinMax( ) {\r\n if( (data == null) || (data.size() < 1) ) {\r\n min = 0.0;\r\n max = 0.0;\r\n return;\r\n }\r\n\r\n min = data.get( 0 );\r\n max = data.get( 0 );\r\n\r\n for( int i = 1; i < data.size(); i++ ) {\r\n if( min > data.get( i ) )\r\n min = data.get( i );\r\n if( max < data.get( i ) )\r\n max = data.get( i );\r\n }\r\n\r\n }", "public void setAutoRange() {\n this.customAxis=false;\n addGraphPanel();\n }", "protected void calcMinMax() {\n if (this.mDataSets != null) {\n T t;\n this.mYMax = -3.4028235E38f;\n this.mYMin = Float.MAX_VALUE;\n this.mXMax = -3.4028235E38f;\n this.mXMin = Float.MAX_VALUE;\n Iterator<T> iterator = this.mDataSets.iterator();\n while (iterator.hasNext()) {\n this.calcMinMax((IDataSet)iterator.next());\n }\n this.mLeftAxisMax = -3.4028235E38f;\n this.mLeftAxisMin = Float.MAX_VALUE;\n this.mRightAxisMax = -3.4028235E38f;\n this.mRightAxisMin = Float.MAX_VALUE;\n T t2 = this.getFirstLeft(this.mDataSets);\n if (t2 != null) {\n this.mLeftAxisMax = t2.getYMax();\n this.mLeftAxisMin = t2.getYMin();\n for (IDataSet iDataSet : this.mDataSets) {\n if (iDataSet.getAxisDependency() != YAxis.AxisDependency.LEFT) continue;\n if (iDataSet.getYMin() < this.mLeftAxisMin) {\n this.mLeftAxisMin = iDataSet.getYMin();\n }\n if (!(iDataSet.getYMax() > this.mLeftAxisMax)) continue;\n this.mLeftAxisMax = iDataSet.getYMax();\n }\n }\n if ((t = this.getFirstRight(this.mDataSets)) != null) {\n this.mRightAxisMax = t.getYMax();\n this.mRightAxisMin = t.getYMin();\n for (IDataSet iDataSet : this.mDataSets) {\n if (iDataSet.getAxisDependency() != YAxis.AxisDependency.RIGHT) continue;\n if (iDataSet.getYMin() < this.mRightAxisMin) {\n this.mRightAxisMin = iDataSet.getYMin();\n }\n if (!(iDataSet.getYMax() > this.mRightAxisMax)) continue;\n this.mRightAxisMax = iDataSet.getYMax();\n }\n }\n }\n }", "protected void calcMinMax() {\n }", "@Override\n\tpublic Plot2DDataSet getValues(float xmin, float xmax) throws UnsupportedOperationException {\n\t\tfinal JSONArray arr = new JSONArray();\n\t\tfinal Iterator<Object> it = data.getJSONArray(\"data\").iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal JSONObject point = (JSONObject) it.next();\n\t\t\tfinal long x = point.getLong(\"x\");\n\t\t\t// TODO more efficient way to find first relevant timestamp\n\t\t\tif (x >= xmin && x <= xmax)\n\t\t\t\tarr.put(point);\n\t\t\telse if (x > xmax)\n\t\t\t\tbreak;\n\t\t}\n\t\tfinal JSONObject json = new JSONObject();\n\t\tjson.put(\"label\", id);\n\t\tjson.put(\"data\", arr);\n\t\treturn new ChartjsDataSet(id, json);\n\t}", "void setValues(final T value, final T min, final T max)\n {\n setValue(value, valueLabel);\n setValue(min, minValueLabel);\n setValue(max, maxValueLabel);\n }", "@Override\n public double between(double min, double max) {\n return super.between(min, max);\n }", "public void setAxisProperties(Axis axis) {\n/* 413 */ super.setAxisProperties(axis);\n/* 414 */ ValueAxis valueAxis = (ValueAxis)axis;\n/* 415 */ valueAxis.setAutoRange(this.autoRange);\n/* 416 */ if (!this.autoRange) {\n/* 417 */ valueAxis.setRange(this.minimumValue, this.maximumValue);\n/* */ }\n/* 419 */ valueAxis.setAutoTickUnitSelection(this.autoTickUnitSelection);\n/* */ }", "public RangeSlider(int min, int max) {\n super(min, max);\n initSlider();\n }", "private int NumInRangeAxis(int min, int max, Boolean axis){\n\t\tint counter = 0;\n\t\tboolean stop = false;\n\t\tif (this.size==0) return 0;\n\t\tif (axis){ //axis x\n\t\t\tif (min>this.maxx.getData().getX() || max<this.minx.getData().getX()) stop=true;\n\t\t\tthis.current=this.minx;\n\t\t\twhile (!stop && this.current!=null){\n\t\t\t\tif (this.current.getData().getX()>=min && this.current.getData().getX() <=max)\n\t\t\t\t\tcounter++;\n\t\t\t\tif (this.current.getData().getX() >= max) stop=true;\n\t\t\t\tthis.current=this.current.getNextX();\n\t\t\t}}\n\t\telse { //axis y\n\t\t\tif (min>this.maxy.getData().getY() || max<this.miny.getData().getY()) stop=true;\n\t\t\tthis.current=this.miny;\n\t\t\twhile (!stop && this.current!=null){\n\t\t\t\tif (this.current.getData().getY()>=min && this.current.getData().getY() <=max)\n\t\t\t\t\tcounter++;\n\t\t\t\tif (this.current.getData().getY() >= max) stop=true;\n\t\t\t\tthis.current=this.current.getNextY();\n\t\t\t}}\n\t\treturn counter;\n\t}", "@Override protected void updateAxisRange() {\n final Axis<X> xa = getXAxis();\n final Axis<Y> ya = getYAxis();\n List<X> xData = null;\n List<Y> yData = null;\n if(xa.isAutoRanging()) xData = new ArrayList<X>();\n if(ya.isAutoRanging()) yData = new ArrayList<Y>();\n if(xData != null || yData != null) {\n for(Series<X,Y> series : getData()) {\n for(Data<X,Y> data: series.getData()) {\n if(xData != null) {\n xData.add(data.getXValue());\n xData.add(xa.toRealValue(xa.toNumericValue(data.getXValue()) + getLength(data.getExtraValue())));\n }\n if(yData != null){\n yData.add(data.getYValue());\n }\n }\n }\n if(xData != null) xa.invalidateRange(xData);\n if(yData != null) ya.invalidateRange(yData);\n }\n }", "public GanttChart(@NamedArg(\"xAxis\") Axis<X> xAxis, @NamedArg(\"yAxis\") Axis<Y> yAxis, @NamedArg(\"data\") ObservableList<Series<X,Y>> data) {\n super(xAxis, yAxis);\n if (!(xAxis instanceof ValueAxis && yAxis instanceof CategoryAxis)) {\n throw new IllegalArgumentException(\"Axis type incorrect, X and Y should both be NumberAxis\");\n }\n setData(data);\n }", "public Point[] getPointsInRangeRegAxis(int min, int max, Boolean axis) {\n\t\tint Number = NumInRangeAxis(min, max, axis); //how much points are there ?\n\t\tPoint[] pointsInRange = new Point[Number];\n\t\tif (Number==0) return pointsInRange;\n\t\tint i = 0;\n\t\tif (axis){\n\t\t\tthis.current=this.minx;\n\t\t\twhile (i<Number){\n\t\t\t\tif (this.current.getData().getX()>=min && this.current.getData().getX()<=max){\n\t\t\t\t\tpointsInRange[i]=this.current.getData();\n\t\t\t\t\ti++;}\n\t\t\t\tthis.current=this.current.getNextX();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.current=this.miny;\n\t\t\twhile (i<Number){\n\t\t\t\tif (this.current.getData().getY()>=min && this.current.getData().getY()<=max){\n\t\t\t\t\tpointsInRange[i]=this.current.getData();\n\t\t\t\t\ti++;}\n\t\t\t\tthis.current=this.current.getNextY();\n\t\t\t}\n\t\t}\n\t\treturn pointsInRange;\n\t}", "private JSlider erstelleSchieberegler(int minimum, int maximum) {\r\n\t\tJSlider schieberegler = new JSlider(minimum, maximum);\r\n\t\tschieberegler.setPaintLabels(true);\r\n\t\tschieberegler.setPaintTicks(true);\r\n\t\tschieberegler.setMajorTickSpacing(1);\r\n\t\treturn schieberegler;\r\n\t}", "public void setRange(int min, int max) {\n range = new PriceRange();\n range.setMaximum(max);\n range.setMinimum(min);\n }", "public void setRange(double min, double max) {\n super.setRange(min, max);\n }", "public InterpolatorGrid(double min, double max) {\n minValue = min;\n maxValue = max;\n }", "public static int getStartIndexForRange(DataSet aDataSet, double aMin, double aMax)\n {\n int start = 0;\n int pointCount = aDataSet.getPointCount();\n while (start<pointCount && !isArrayValueAtIndexInsideOrInsideAdjacent(aDataSet, start, pointCount, aMin, aMax))\n start++;\n return start;\n }", "public Graph(String title, int min, int max, String xLabel, String yLabel)\n\t{\n\t\tthis.title = title;\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.xLabel = xLabel;\n\t\tthis.yLabel = yLabel;\n\t\tthis.legend = new Legend();\n\t\titems = new Vector();\n\t}", "NumericRangeFilter(double p_min, double p_max) {\n maximum = p_max;\n minimum = p_min;\n }", "public ScatterPlotChart(float[][] data, \n ValueAxis domainAxis, ValueAxis rangeAxis) {\n\t\t \n\t\tsuper(data,domainAxis,rangeAxis);\n\t\tsetPaint(Color.BLACK);\n\t\t\n }", "public void setValues(float minValue, float maxValue) {\n _minValue = minValue;\n _maxValue = maxValue;\n _min.setValue(_minValue);\n _max.setValue(_maxValue);\n }", "public Point[] getPointsInRangeOppAxis(int min, int max, Boolean axis) {\n\t\tint Number = NumInRangeAxis(min, max, axis);\n\t\tPoint[] pointsInRange = new Point[Number];\n\t\tif (Number==0) return pointsInRange;\n\t\tint i = 0;\n\t\tif (axis){ // sorted by axis y\n\t\t\tthis.current=this.miny;\n\t\t\twhile (i<Number){\n\t\t\t\tif (this.current.getData().getX()>=min && this.current.getData().getX() <=max){\n\t\t\t\t\tpointsInRange[i]=this.current.getData();\n\t\t\t\t\ti++;}\n\t\t\t\tthis.current=this.current.getNextY();\n\t\t\t}\t\n\t\t}\n\t\telse {// sorted by axis x\n\t\t\tthis.current=this.minx;\n\t\t\twhile (i<Number){\n\t\t\t\tif (this.current.getData().getY()>=min && this.current.getData().getY() <=max){\n\t\t\t\t\tpointsInRange[i]=this.current.getData();\n\t\t\t\t\ti++;}\n\t\t\t\tthis.current=this.current.getNextX();\n\t\t\t}\n\t\t}\n\t\treturn pointsInRange;\n\t}", "public double get(int min, int max) {\r\n\t\treturn chart[min][max];\r\n\t}", "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "protected void calcMinMax(T t) {\n if (this.mYMax < t.getYMax()) {\n this.mYMax = t.getYMax();\n }\n if (this.mYMin > t.getYMin()) {\n this.mYMin = t.getYMin();\n }\n if (this.mXMax < t.getXMax()) {\n this.mXMax = t.getXMax();\n }\n if (this.mXMin > t.getXMin()) {\n this.mXMin = t.getXMin();\n }\n if (t.getAxisDependency() == YAxis.AxisDependency.LEFT) {\n if (this.mLeftAxisMax < t.getYMax()) {\n this.mLeftAxisMax = t.getYMax();\n }\n if (!(this.mLeftAxisMin > t.getYMin())) return;\n {\n this.mLeftAxisMin = t.getYMin();\n return;\n }\n } else {\n if (this.mRightAxisMax < t.getYMax()) {\n this.mRightAxisMax = t.getYMax();\n }\n if (!(this.mRightAxisMin > t.getYMin())) return;\n {\n this.mRightAxisMin = t.getYMin();\n return;\n }\n }\n }", "@Test\n\tpublic void testMinMinMax(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( max, MaxDiTre.max(min, min, max) );\n\t}", "public LongRange(Number number1, Number number2) {\n/* 132 */ if (number1 == null || number2 == null) {\n/* 133 */ throw new IllegalArgumentException(\"The numbers must not be null\");\n/* */ }\n/* 135 */ long number1val = number1.longValue();\n/* 136 */ long number2val = number2.longValue();\n/* 137 */ if (number2val < number1val) {\n/* 138 */ this.min = number2val;\n/* 139 */ this.max = number1val;\n/* 140 */ if (number2 instanceof Long) {\n/* 141 */ this.minObject = (Long)number2;\n/* */ }\n/* 143 */ if (number1 instanceof Long) {\n/* 144 */ this.maxObject = (Long)number1;\n/* */ }\n/* */ } else {\n/* 147 */ this.min = number1val;\n/* 148 */ this.max = number2val;\n/* 149 */ if (number1 instanceof Long) {\n/* 150 */ this.minObject = (Long)number1;\n/* */ }\n/* 152 */ if (number2 instanceof Long) {\n/* 153 */ this.maxObject = (Long)number2;\n/* */ }\n/* */ } \n/* */ }", "public ZlExRangeSpec(Object min, Object max, boolean minex, boolean maxex) {\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.minex = minex;\n\t\tthis.maxex = maxex;\n\t}", "@Override\n public double[] getMinMax() {\n if ( minMax == null ) {\n calculateMinMaxPositions();\n }\n return minMax;\n }", "public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}", "public static void plotHistogramWithFixedRange(double[] x, String titleName, String fileName, double min, double max) { \n try{\n \n \n HistogramDataset series = new HistogramDataset(); \n \n series.addSeries(\"default\", x, 15);\n \n \n NumberAxis yaxis = new NumberAxis(\"Frequency\");\n \n NumberAxis xaxis = new NumberAxis(\"Risk Index Value\");\n xaxis.setRange(min, max);\n xaxis.setLabelFont(new Font(\"Arial\", Font.PLAIN, 24));\n xaxis.setTickLabelFont(new Font(\"Arial\", Font.PLAIN, 18));\n \n XYBarRenderer rend = new XYBarRenderer();\n rend.setSeriesPaint(0, Color.black);\n rend.setSeriesVisibleInLegend(0, false);\n rend.setBaseItemLabelFont(new Font(\"Arial\", Font.PLAIN, 40));\n \n XYPlot p = new XYPlot(series, xaxis, yaxis, rend);\n p.setOrientation(PlotOrientation.VERTICAL);\n p.setRangeGridlinesVisible(false);\n p.setDomainGridlinesVisible(false);\n \n \n JFreeChart chart = new JFreeChart(titleName, new Font(\"Arial\", Font.PLAIN, 24), p, false);\n \n \n FileOutputStream fo = new FileOutputStream(fileName);\n EncoderUtil.writeBufferedImage(chart.createBufferedImage(1280, 1024), ImageFormat.PNG, fo);\n fo.close();\n \n \n \n \n \n \n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "private void initialize(int initialValue, int extent, int minimum, int maximum) {\r\n if ((maximum >= minimum)\r\n && (initialValue >= minimum)\r\n && ((initialValue + extent) >= initialValue)\r\n && ((initialValue + extent) <= maximum)) {\r\n // this.theExtent = extent;\r\n this.min = minimum;\r\n this.max = maximum;\r\n } else {\r\n throw new IllegalArgumentException(\"invalid range properties \" +\r\n \"max = \" + maximum + \" min = \" + minimum + \" initialValue = \" + initialValue + \" extent = \" + extent);\r\n\r\n }\r\n }", "public void setParamValueRange(String label, Object minValue, Object maxValue);", "@Override\n public int between(int min, int max) {\n return super.between(min, max);\n }", "public Range getRangeX(double lowerPercent, double upperPercent, \n PlotRenderingInfo info, Point2D source) {\n \t\t\n \t double start = super.getDomainAxis().getRange().getLowerBound();\n double length = super.getDomainAxis().getRange().getLength();\n Range adjusted = null;\n if (super.getDomainAxis().isInverted()) {\n adjusted = new Range(start + (length * (1 - upperPercent)), \n start + (length * (1 - lowerPercent))); \n }\n else {\n adjusted = new Range(start + length * lowerPercent, \n start + length * upperPercent);\n }\n return adjusted;\n }", "public void setParamValueRange(String label, double minValue, double maxValue);", "public interface Series {\n\n\t/**\n\t * @return the number of points in the series\n\t */\n\tint size();\n\n\t/**\n\t * @param i index of the point\n\t * @return the x coordinate of the i'th point\n\t */\n\tdouble x(int i);\n\n\t/**\n\t * @param i index of the point.\n\t * @return the y coordinate of the i'th point\n\t */\n\tdouble y(int i);\n\n\t/**\n\t * @return an Interval object representing the minimum and maximum x-values.\n\t */\n\tInterval xRange();\n\n\t/**\n\t * @return an Interval object representing the minimum and maximum y-values.\n\t */\n\tInterval yRange();\n\n\t/**\n\t * @return an Interval2D object representing the minimum and maximum x and y\n\t * values.\n\t */\n\tInterval2D range();\n}", "protected void autoAdjustRange() {\n/* 1284 */ Plot plot = getPlot();\n/* */ \n/* 1286 */ if (plot == null) {\n/* */ return;\n/* */ }\n/* */ \n/* 1290 */ if (plot instanceof ValueAxisPlot) {\n/* 1291 */ ValueAxisPlot vap = (ValueAxisPlot)plot;\n/* */ \n/* 1293 */ DateRange dateRange = vap.getDataRange(this);\n/* 1294 */ if (dateRange == null) {\n/* 1295 */ if (this.timeline instanceof SegmentedTimeline) {\n/* */ \n/* */ \n/* */ \n/* 1299 */ DateRange dateRange1 = new DateRange(((SegmentedTimeline)this.timeline).getStartTime(), (((SegmentedTimeline)this.timeline).getStartTime() + 1L));\n/* */ }\n/* */ else {\n/* */ \n/* 1303 */ dateRange = new DateRange();\n/* */ } \n/* */ }\n/* */ \n/* 1307 */ long upper = this.timeline.toTimelineValue(\n/* 1308 */ (long)dateRange.getUpperBound());\n/* */ \n/* 1310 */ long fixedAutoRange = (long)getFixedAutoRange();\n/* 1311 */ if (fixedAutoRange > 0.0D) {\n/* 1312 */ lower = upper - fixedAutoRange;\n/* */ } else {\n/* */ \n/* 1315 */ lower = this.timeline.toTimelineValue((long)dateRange.getLowerBound());\n/* 1316 */ double range = (upper - lower);\n/* 1317 */ long minRange = (long)getAutoRangeMinimumSize();\n/* 1318 */ if (range < minRange) {\n/* 1319 */ long expand = (long)(minRange - range) / 2L;\n/* 1320 */ upper += expand;\n/* 1321 */ lower -= expand;\n/* */ } \n/* 1323 */ upper += (long)(range * getUpperMargin());\n/* 1324 */ lower -= (long)(range * getLowerMargin());\n/* */ } \n/* */ \n/* 1327 */ upper = this.timeline.toMillisecond(upper);\n/* 1328 */ long lower = this.timeline.toMillisecond(lower);\n/* 1329 */ DateRange dr = new DateRange(new Date(lower), new Date(upper));\n/* 1330 */ setRange(dr, false, false);\n/* */ } \n/* */ }", "void makeAnalysis(double v_min, double v_max) {\n\t\t\tfmt_result = universalFormat;\n\t\t\tdouble range = v_max - v_min;\n\t\t\tscale = 0.;\n\t\t\tif (range > 0.) {\n\t\t\t\tscale = Math.pow(10., Math.floor(1.000001 * Math.log(range) / Math.log(10.0)));\n\t\t\t}\n\t\t\tif (scale == 0.) {\n\t\t\t\tscale = 1.;\n\t\t\t\tvalue_min = -1.0;\n\t\t\t\tvalue_max = +1.0;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\tif (value_min * value_max == 0. && (scale == Math.abs(value_max) || scale == Math.abs(value_min))) {\n\t\t\t\tscale = scale / 5.0;\n\t\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\t}\n\n\t\t\tdouble[] arr = new double[3];\n\t\t\tarr[0] = scale;\n\t\t\tarr[1] = value_min;\n\t\t\tarr[2] = value_max;\n\n\t\t\tdouble zz_max = Math.max(Math.abs(arr[1]), Math.abs(arr[2]));\n\t\t\tint nV = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nV >= 0) {\n\t\t\t\tnV += 1;\n\t\t\t} else {\n\t\t\t\tnV -= 1;\n\t\t\t}\n\n\t\t\tzz_max = zz_max / Math.abs(arr[0]);\n\t\t\tint nD = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nD >= 0) {\n\t\t\t\tnD += 1;\n\t\t\t}\n\n\t\t\t//This is for zoom, so we want to increase number of significant digits\n\t\t\tnD = nD + 1;\n\n\t\t\tif (nV >= 4) {\n\t\t\t\tint n = Math.min(4, Math.abs(nD));\n\t\t\t\tfmt_result = scientificFormats[n];\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (nV > 0 && nV < 4) {\n\t\t\t\tif (nV >= nD) {\n\t\t\t\t\tfmt_result = simpleFormats[0];\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tint n = Math.min(4, Math.abs(nV - nD));\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (nV < 0 && nV > -4) {\n\t\t\t\tint n = Math.abs(nV) + Math.abs(nD) - 2;\n\t\t\t\tif (n <= 4) {\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public Slider(double min, double max, double value) {\n setMax(max);\n setMin(min);\n setValue(value);\n //adjustValues();\n //initialize();\n }", "Limits limits();", "static public final double map(double value, double dataMin, double dataMax, double plottedMin, double plottedMax) \n {\n return plottedMin+(plottedMax-plottedMin)*\n ((value-dataMin)/(dataMax-dataMin));\n }", "public MetricDataset(long startTime, long endTime, long minTimestampPeriod)\n\t{\n\t\tsuper();\n\t\tthis.startTime = startTime;\n\t\tthis.endTime = endTime;\n\t\tthis.minTimestampPeriod = minTimestampPeriod;\n\t}", "public void setRange(double lower, double upper) {\n/* 625 */ if (lower >= upper) {\n/* 626 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 628 */ setRange(new DateRange(lower, upper));\n/* */ }", "public static void main(String[] args) {\n MinMax minMax = new MinMax();\n System.out.println(\"Minimum =\" + minMax.getMin());\n System.out.println(\"Maximum =\" + minMax.getMax());\n }", "public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }", "public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }", "public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}", "public interface XYItemRenderer {\n\n /**\n * Called for each item to be plotted.\n * @param g2 The graphics device.\n * @param plotArea The area within which the plot is being drawn.\n * @param plot The plot (can be used to obtain standard color information etc).\n * @param horizontalAxis The horizontal axis.\n * @param verticalAxis The vertical axis.\n * @param data The dataset.\n * @param series The series index.\n * @param item The item index.\n * @param translatedRangeZero Zero on the range axis (supplied so that, if it is required, it\n * doesn't have to be calculated repeatedly).\n */\n public void drawItem(Graphics2D g2, Rectangle2D plotArea,\n Plot plot, ValueAxis horizontalAxis, ValueAxis verticalAxis,\n XYDataset data, int series, int item,\n double translatedRangeZero);\n\n}", "@Test\n public void test72() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.mapDatasetToDomainAxis(304, 908);\n Point2D.Double point2D_Double0 = new Point2D.Double((double) 304, (double) 908);\n AxisLocation axisLocation0 = AxisLocation.TOP_OR_LEFT;\n combinedRangeCategoryPlot0.setRangeAxisLocation(908, axisLocation0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"org.jfree.chart.annotations.XYBoxAnnotation\");\n combinedRangeCategoryPlot0.setDomainAxis((CategoryAxis) categoryAxis3D0);\n point2D_Double0.x = 4978.54542523173;\n String string0 = combinedRangeCategoryPlot0.getPlotType();\n ValueAxis[] valueAxisArray0 = new ValueAxis[6];\n DateAxis dateAxis0 = new DateAxis(\"org.jfree.chart.annotations.XYBoxAnnotation\");\n valueAxisArray0[0] = (ValueAxis) dateAxis0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((-1.0), (double) 304);\n valueAxisArray0[1] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis numberAxis0 = new NumberAxis(\"z)m!{V![\");\n valueAxisArray0[2] = (ValueAxis) numberAxis0;\n SimpleDateFormat simpleDateFormat0 = (SimpleDateFormat)DateFormat.getInstance();\n ZoneInfo zoneInfo0 = (ZoneInfo)simpleDateFormat0.getTimeZone();\n DateAxis dateAxis1 = new DateAxis(\"org.jfree.chart.annotations.XYBoxAnnotation\", (TimeZone) zoneInfo0);\n valueAxisArray0[3] = (ValueAxis) dateAxis1;\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset();\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n NumberAxis numberAxis1 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[4] = (ValueAxis) numberAxis1;\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"z)m!{V![\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"%}~t|T'c.q2O/M@;Vu5\";\n stringArray0[3] = \"?_t}%h[qlt\";\n stringArray0[4] = \"z)m!{V![\";\n stringArray0[5] = \"z)m!{V![\";\n stringArray0[6] = \"d*%)TD6zCx!%m^]|\";\n }", "public DynamicPart minMax(float min, float max) {\n return this.min(min).max(max);\n }", "public Range(int minIn, int maxIn) {\n min = minIn;\n max = maxIn;\n }", "public LongRange(Number number) {\n/* 87 */ if (number == null) {\n/* 88 */ throw new IllegalArgumentException(\"The number must not be null\");\n/* */ }\n/* 90 */ this.min = number.longValue();\n/* 91 */ this.max = number.longValue();\n/* 92 */ if (number instanceof Long) {\n/* 93 */ this.minObject = (Long)number;\n/* 94 */ this.maxObject = (Long)number;\n/* */ } \n/* */ }", "private void setCustomGraph(){\n\n // Set Touch, Drag and Scale to enable\n chart.setTouchEnabled(false);\n chart.setDragEnabled(false);\n chart.setScaleEnabled(false);\n\n // Controlling right side of y axis\n YAxis yAxisRight = chart.getAxisRight();\n yAxisRight.setEnabled(false);\n\n // Controlling left side of y axis\n YAxis yAxisLeft = chart.getAxisLeft();\n yAxisLeft.setGranularity(1f);\n\n yAxisLeft.setAxisLineColor(Color.TRANSPARENT);\n yAxisLeft.setDrawLabels(false);\n\n chart.getDescription().setEnabled(false);\n\n chart.getAxisLeft().setDrawGridLines(false);\n chart.getXAxis().setDrawGridLines(false);\n\n\n //Controlling X axis\n xAxis = chart.getXAxis();\n //Set the xAxis position to bottom\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n\n IAxisValueFormatter formatter = new IAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n return weeks[(int) value];\n }\n };\n\n // minimum axis-step interval is 1\n xAxis.setGranularity(1f);\n xAxis.setValueFormatter(formatter);\n\n }", "public AgendaMB() {\n GregorianCalendar dtMax = new GregorianCalendar(); \n Date dt = new Date();\n dtMax.setTime(dt); \n GregorianCalendar dtMin = new GregorianCalendar(); \n dtMin.setTime(dt);\n dtMin.add(Calendar.DAY_OF_MONTH, 1);\n dtMax.add(Calendar.DAY_OF_MONTH, 40);\n dataMax = dtMax.getTime();\n dataMin = dtMin.getTime(); \n }", "private void drawMinMaxSamples(Graphics G, int pixelFrom, int pixelTo,\r\n\t\t\tlong startSample, float[] samples, int sampleCount) {\r\n\t\tif (samples == null) return;\r\n\t\tif (DEBUG_DRAW) {\r\n\t\t\tdebug(\"Draw minmax samples: pixelX1=\" + pixelFrom + \" pixelX2=\"\r\n\t\t\t\t\t+ pixelTo + \" startSample=\" + startSample);\r\n\t\t}\r\n\t\tCacheElement ce = new CacheElement();\r\n\t\tint pixelX = pixelFrom;\r\n\t\t// pixelTo++;\r\n\t\twhile (pixelX <= pixelTo) {\r\n\t\t\tcalculateDisplayElement(pixelX, ce, startSample, samples,\r\n\t\t\t\t\tsampleCount);\r\n\t\t\tG.drawLine(pixelX, toPixelY(ce.min), pixelX, toPixelY(ce.max));\r\n\t\t\tpixelX++;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void setAxisSeriesData(List<String> axisValues, List<Double> actualValues) {\n\t\t\r\n\t}", "@Test\n\tpublic void testMinMinMin(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( min, MaxDiTre.max(min, min, min) );\n\t}", "public void initialiseExtremeValues() {\n for (int i = 0; i < numberOfObj; i++) {\n minimumValues[i] = Double.MAX_VALUE;\n maximumValues[i] = -Double.MAX_VALUE;\n }\n }", "public Annotation(int min, int max) {\n annotMin = min;\n annotMax = max;\n checkAnnotation();\n }", "public InfLinearAxis(int size, double min, double max) {\n super(size,min,max);\n }", "public static int getEndIndexForRange(DataSet aDataSet, double aMin, double aMax)\n {\n int pointCount = aDataSet.getPointCount();\n int end = pointCount - 1;\n while (end>0 && !isArrayValueAtIndexInsideOrInsideAdjacent(aDataSet, end, pointCount, aMin, aMax))\n end--;\n return end;\n }", "@Override\r\n public float getMinimumSpan( int axis ){\r\n if( axis == View.Y_AXIS ){\r\n return super.getMinimumSpan(axis);\r\n } else{\r\n return DEFAULT_MINIMUM_SPAN;\r\n }\r\n }", "public void setBounds(Double min, Double max) {\n Double aMin = Math.min(min, max);\n Double aMax = Math.max(min, max);\n if (aMin != this.min || aMax != this.max) {\n super.setMinimum(aMin);\n super.setMaximum(aMax);\n }\n fireStateChanged();\n }", "public DoubleGenerator range(double min, double max) {\n this.max = max;\n this.min = min;\n return this;\n }", "@Test\n public void test44() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n rectangle2D_Double0.width = 0.0;\n String string0 = rectangle2D_Double0.toString();\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"Null 'axis' argument.\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logarithmicAxis0);\n combinedRangeCategoryPlot0.setNoDataMessage(\"\");\n Range range0 = combinedRangeCategoryPlot0.getDataRange(logarithmicAxis0);\n }", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "private Point[] NumInStripAxis(Container container,double min, double max, Boolean axis, Point[] strip){\n\t\tint counter = strip[0].getX();\n\t\tint insert = strip[0].getY(); // the parameter tell us if we want to count the number of the points or insert them.\n\t\tint minIndex; // for later on, we want to know the index of the min point in the axis\n\t\tif (axis){ //axis x\n\t\t\tthis.current=container;\n\t\t\twhile (this.current!=null && this.current.getData().getX()>min){ \n\t\t\t\tif (insert==1){\n\t\t\t\t\tstrip[counter-1]=this.current.getData();\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t\telse counter++;\n\t\t\t\tthis.current=this.current.getPrevX();\n\t\t\t}\n\t\t\tminIndex=counter;\n\t\t\tthis.current=container.getNextX();\n\t\t\twhile (this.current!=null && this.current.getData().getX()<max){\n\t\t\t\tif (insert==1){\n\t\t\t\t\tstrip [counter-1]=this.current.getData();\n\t\t\t\t\tcounter--;\n\t\t\t\t\t}\n\t\t\t\telse counter++;\n\t\t\t\tthis.current=this.current.getNextX();\n\t\t\t}\n\t\t}\n\t\telse { //axis y\n\t\t\tthis.current=container;\n\t\t\twhile (this.current!=null && this.current.getData().getY()>min){\n\t\t\t\tif (insert==1){\n\t\t\t\t\tstrip [counter-1]=this.current.getData();\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t\telse counter++;\n\t\t\t\tthis.current=this.current.getPrevY();\n\t\t\t}\n\t\t\tminIndex=counter;\n\t\t\tthis.current=container.getNextY();\n\t\t\twhile (this.current!=null && this.current.getData().getY()<max){\n\t\t\t\tif (insert==1){\n\t\t\t\t\tstrip [counter-1]=this.current.getData();\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t\telse counter++;\n\t\t\t\tthis.current=this.current.getNextY();\n\t\t\t}\n\t\t}\n\t\tif (insert!=1) //we count the number of points in the strip and calculate the min index for later\n\t\t\tstrip[0]=new Point(counter,minIndex);\n\t\treturn strip;\n\t}", "@Override\r\n public void map(Double minX, Double maxX, Double minY, Double maxY) {\r\n this.minX = minX;\r\n this.maxX = maxX;\r\n this.minY = minY;\r\n this.maxY = maxY;\r\n }", "public SettingInteger setValidRange(int min, int max) { _minValue = min; _maxValue = max; return this; }", "Range alarmLimits();", "@Test\n public void test59() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.y = (-365.83);\n point2D_Double0.setLocation(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.mapDatasetToRangeAxis(1051, 1051);\n boolean boolean0 = combinedRangeCategoryPlot0.isDomainZoomable();\n PlotOrientation plotOrientation0 = PlotOrientation.HORIZONTAL;\n // Undeclared exception!\n try { \n Plot.resolveDomainAxisLocation((AxisLocation) null, plotOrientation0);\n } catch(IllegalArgumentException e) {\n //\n // Null 'location' argument.\n //\n assertThrownBy(\"org.jfree.chart.plot.Plot\", e);\n }\n }", "public interface TargetRange extends Data {\n\n\t/**\n\t * Control setpoint for the value. This values shall be reached by\n\t * actions of an OGEMA application, no action based on this value is\n\t * performed by the framework itself. If no setpoint is given, an estimate\n\t * may be guessed from taking the center point of the {@link #targetRange()},\n\t * the {@link #controlLimits() } or the {@link #alarmLimits() } (in descending\n\t * order of relevance).\n\t * Models inheriting from this prototype must override\n\t * this with a suitable simple resource to define the meaning and the unit\n\t * of measurement.\n\t */\n\tValueResource setpoint();\n\n\t/**\n\t * Range which the sensor value shall lie as a result of control, if possible. The range is considered as soft\n\t * limits, i.e. contrary to the {@link #controlLimits() controlLimits} the so-defined ambient range may be left. If\n\t * not targetRange is given, the {@link #setpoint() setpoint} may indicate where the range lies.\n\t */\n\tRange targetRange();\n\n\t/**\n\t * Limits for the sensor value that shall be used for the control of the relevant device. Usually the controlLimits\n\t * should be held for sure.\n\t */\n\tRange controlLimits();\n\n\t/**\n\t * The resource shall only be used for limits that shall be integrated into an alarm logging and/or alarm handling\n\t * OGEMA application. It is NOT intended for limits that just trigger control signals.<br>\n\t * Note: No alarm events are generated by the OGEMA framework itself.<br>\n\t * For sensors providing information not represented as float, a resource of the relevant range type named\n\t * <code>alarmLimits</code> can be added as decorator.\n\t */\n\tRange alarmLimits();\n}", "@Test\n\tpublic void testMaxMinMax(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( max, MaxDiTre.max(max, min, max) );\n\t}", "public void narrowRange(int min, int max, Boolean axis) {\n\t\tint counter=0; // how much points we erasing total ?\n\t\tboolean erasingAll=false; // if we eventually erasing all the database\n\t\t// by axis X-----------------------------------------//\n\t\tif (axis){ \n\t\t\tthis.current = this.minx;\n\t\t\twhile (!erasingAll && this.current.getData().getX()<min){\n\t\t\t\tnarrowOppPoint(this.current,axis); // deleting this point in y axis\n\t\t\t\tthis.current = this.current.getNextX(); \n\t\t\t\tcounter++;\n\t\t\t\tif (this.current==null) //if we get to the edge of the DS\n\t\t\t\t\terasingAll=true;\n\t\t\t}\n\t\t\tif (!erasingAll)\n\t\t\t\tthis.current.setPrevX(null);\n\t\t\tthis.minx = this.current; // the actual erasing\n\t\t\t//---//\n\t\t\tthis.current = this.maxx;\n\t\t\twhile (!erasingAll && this.current.getData().getX() > max){\n\t\t\t\tnarrowOppPoint(this.current,axis);\n\t\t\t\tthis.current = this.current.getPrevX(); \n\t\t\t\tcounter++;\n\t\t\t\tif (this.current==null) //if we get to the edge of the DS\n\t\t\t\t\terasingAll=true;\n\t\t\t}\n\t\t\tif (!erasingAll)\n\t\t\t\tthis.current.setNextX(null);\n\t\t\tthis.maxx = this.current; //the actual erasing\n\t\t}\n\t\t// by axis Y -----------------------------------------------------------//\n\t\telse{ \n\t\t\tthis.current = this.miny;\n\t\t\twhile (!erasingAll && this.current.getData().getY()<min){\n\t\t\t\tnarrowOppPoint(this.current,axis);\n\t\t\t\tthis.current = this.current.getNextY(); \n\t\t\t\tcounter++;\n\t\t\t\tif (this.current==null) //if we get to the edge of the DS\n\t\t\t\t\terasingAll=true;\n\t\t\t}\n\t\t\tif (!erasingAll)\n\t\t\t\tthis.current.setPrevY(null);\n\t\t\tthis.miny = this.current; //the actual erasing\n\t\t\t//--//\n\t\t\tthis.current = this.maxy;\n\t\t\twhile (!erasingAll && this.current.getData().getY() > max){\n\t\t\t\tnarrowOppPoint(this.current,axis);\n\t\t\t\tthis.current = this.current.getPrevY(); \n\t\t\t\tcounter++;\n\t\t\t\tif (this.current==null) //if we get to the edge of the DS\n\t\t\t\t\terasingAll=true;\n\t\t\t}\n\t\t\tif (!erasingAll)\n\t\t\t\tthis.current.setNextY(null);\n\t\t\tthis.maxy = this.current; //the actual erasing\n\t\t}\n\t\tthis.size = this.size - counter; // Update the size of the DS\n\t}", "public static void main(String[] args) {\n\t\tint a[]= {3,64,24,15,20};\r\n\t\tint max=a[0],min=a[0];\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tif(max<a[i])\r\n\t\t\t{\r\n\t\t\t\tmax=a[i];\r\n\t\t\t}\r\n\t\t\tif(min>a[i])\r\n\t\t\t{\r\n\t\t\t\tmin=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Minimum is:\"+min);\r\n\t\tSystem.out.println(\"Maximum is:\"+max);\r\n\r\n\t}", "public TextRangeUI( String label, float min, float max )\n { \n if ( Float.isNaN(min) || Float.isInfinite(min) ||\n Float.isNaN(max) || Float.isInfinite(max) ||\n min > max )\n {\n System.out.println(\"Error: min, max invalid in TextRangeUI\");\n System.out.println(\"min = \" + min + \", max = \" + max);\n System.out.println(\"using default interval [0,1]\");\n min = 0;\n max = 1;\n }\n\n this.min = min;\n this.max = max;\n this.label = label;\n\n setFont( FontUtil.LABEL_FONT );\n show_text();\n }", "public static void main(String[] args) {\n\t\tint a[] = {1, 2, 5, 9, 4};\n\t\tint min = a[0], max = a[0];\n\t\tfor(int i=1;i<a.length;i++)\n\t\t{\n\t\t\tif(a[i] < min)\n\t\t\t{\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\tif(a[i] > max)\n\t\t\t{\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Min element = \"+min);\n\t\tSystem.out.println(\"Max element = \"+max);\n\t}", "public LightData (String dataTypeName, Float dataPoint, float max, float min, boolean nightMode){\n\n this.numberOfDataPoints = 1;\n this.dataTypeName = dataTypeName;\n this.max = max;\n this.min = min;\n this.nightMode = nightMode;\n\n dataPoints.add(dataPoint);\n scaledDataPoints.add(scale(dataPoint));\n\n }", "public Gene(double value, double min, double max, double scalar){\n\t\tthis.scalar = scalar;\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.modulo = false;\n\t\tsetValue(value);\n\t}", "public synchronized void setOutputRange(double minOutput, double maxOutput)\n {\n final String funcName = \"setOutputRange\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"min=%f,max=%f\", minOutput, maxOutput);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (maxOutput <= minOutput)\n {\n throw new IllegalArgumentException(\"maxOutput must be greater than minOutput\");\n }\n\n if (Math.abs(minOutput) == Math.abs(maxOutput))\n {\n outputLimit = maxOutput;\n }\n\n this.minOutput = minOutput;\n this.maxOutput = maxOutput;\n }", "@Test\n\tpublic void testMinMaxMax(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( max, MaxDiTre.max(min, max, max) );\n\t}", "public BoundedRangeAdapterExt(\r\n ValueModel subject,\r\n ValueModel extent,\r\n int min,\r\n int max) {\r\n this.subject = subject;\r\n this.extent = extent;\r\n Object subjectValue = subject.getValue();\r\n int initialValue = subjectValue == null\r\n ? min\r\n : ((Integer) subjectValue).intValue();\r\n\r\n Object extentValue = extent.getValue();\r\n int initialExtent = extentValue == null\r\n ? min\r\n : ((Integer) extentValue).intValue();\r\n\r\n initialize(initialValue, initialExtent, min, max);\r\n subject.addValueChangeListener(new SubjectValueChangeHandler());\r\n extent.addValueChangeListener(new SubjectValueChangeHandler());\r\n }", "private void checkValues(int yMin2, int yMax2, List<XYValue> listOfValues2) {\n\t\tif(yMin2 < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Number can not be negative!\");\n\t\t}\n\t\tif(yMax2 <= yMin2) {\n\t\t\tthrow new IllegalArgumentException(\"Max has to be greater than min!\");\n\t\t}\n\t\tfor(XYValue value : listOfValues2) {\n\t\t\tif(value.getY() < yMin2) {\n\t\t\t\tthrow new IllegalArgumentException(\"Found smaller y than minimum!\");\n\t\t\t}\n\t\t}\n\t}", "public XYData(double x[], float y[], double resolution)\n\t{\n\t\tthis.resolution = resolution;\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tincreasingX = true;\n\t\tnSamples = (x.length < y.length) ? x.length : y.length;\n\t\tif (nSamples > 0)\n\t\t{\n\t\t\txMin = xMax = x[0];\n\t\t\tfor (int i = 1; i < x.length; i++)\n\t\t\t{\n\t\t\t\tif (x[i - 1] > x[i])\n\t\t\t\t{\n\t\t\t\t\tincreasingX = false;\n\t\t\t\t}\n\t\t\t\tif (x[i] > xMax)\n\t\t\t\t\txMax = x[i];\n\t\t\t\tif (x[i] < xMin)\n\t\t\t\t\txMin = x[i];\n\t\t\t}\n\t\t}\n\t}", "public RealIntervalBroadcaster(double min, boolean minInclusive, double max, boolean maxInclusive) {\n super(min, minInclusive, max, maxInclusive);\n }", "public ScatterChart(@NamedArg(\"xAxis\") Axis<X> xAxis, @NamedArg(\"yAxis\") Axis<Y> yAxis, @NamedArg(\"data\") ObservableList<Series<X,Y>> data) {\n super(xAxis,yAxis);\n setLegend(legend);\n setData(data);\n }" ]
[ "0.742719", "0.6839216", "0.67483044", "0.653603", "0.6435193", "0.63882065", "0.6377362", "0.634859", "0.62537336", "0.6252822", "0.6233697", "0.62133276", "0.6212053", "0.61823404", "0.61444336", "0.61439085", "0.61373246", "0.61311054", "0.61123794", "0.6050574", "0.6034391", "0.60335886", "0.6029494", "0.6000241", "0.59964585", "0.5986784", "0.5986669", "0.5969569", "0.5967816", "0.5913592", "0.5889019", "0.5886054", "0.587687", "0.5852826", "0.58376664", "0.58350086", "0.57952493", "0.5793701", "0.5756715", "0.57531554", "0.57475966", "0.5746765", "0.57449824", "0.573965", "0.57326734", "0.5723505", "0.57214254", "0.5714742", "0.571379", "0.5708511", "0.56862193", "0.5684642", "0.5683523", "0.5666135", "0.5643827", "0.5633282", "0.5591309", "0.5586622", "0.5568461", "0.5568058", "0.55614096", "0.55589306", "0.5555807", "0.55514294", "0.55476296", "0.55221516", "0.552154", "0.5520629", "0.5517375", "0.55160826", "0.5510069", "0.5508935", "0.55038357", "0.5500708", "0.5497366", "0.5485841", "0.5461928", "0.5459055", "0.54522073", "0.5450501", "0.5449415", "0.54416806", "0.5437406", "0.5430883", "0.5427772", "0.5426903", "0.54244405", "0.5421482", "0.5412657", "0.54123116", "0.5409893", "0.53989494", "0.53964716", "0.53921604", "0.5391345", "0.5381223", "0.5377399", "0.5376052", "0.53728753", "0.53672504" ]
0.5383635
95
Computes the axis increment WITHOUT taking into account the user specified rounding criteria and sets it to the super class increment variable. You can extend this class and override this method to compute you own scale.
protected void computeIncrement() { super.increment = this.userDefinedIncrement; double powerOfTen = Math.pow( 10, Math.abs( this.getRoundingPowerOfTen() ) ); //---round the increment according to user defined power super.increment = super.round( super.increment, powerOfTen ); //---if we round this down to zero, force it to the power of ten. //---for example, round to nearest 100, value = 35...would push down to 0 which is illegal. if( super.increment == 0 ) { super.increment = powerOfTen; } super.setMinValue( super.round( this.userDefinedMinimum, powerOfTen ) ); super.setMaxValue( super.getMinValue() + ( super.increment * super.getNumberOfScaleItems() ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void _setTicks() {\n if (!Double.isNaN(tickIncrement)) {\n setTicksByIncr(tickIncrement);\n return;\n }\n double diff = Math.abs(max - min);\n if (!(diff > 0.)) {\n int tn = 2;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n ticks = new double[tn];\n int i = 0;\n if (nanW > 0) {\n ticks[i++] = 0.;\n ticks[i++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NaN;\n }\n }\n if (negW > 0) {\n ticks[i++] = 0. + nanW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n ticks[i++] = 0. + nanW + negW;\n ticks[i++] = Double.NEGATIVE_INFINITY;\n }\n ticks[i++] = 0. + nanW + posW;\n ticks[i++] = min;\n if (posW > 0) {\n ticks[i++] = size-posW+1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n ticks[i++] = size-1;\n ticks[i++] = Double.POSITIVE_INFINITY;\n }\n return;\n }\n double exp = Math.log(diff) * 0.43429448190325176; // log10\n int expi = -(int)Math.floor(exp);\n double scale = Math.pow(10.,expi);\n double smin = Math.floor(min * scale);\n double smax = Math.ceil(max * scale);\n int siz = size - nanW - negW - nanW;\n int sdiff = (int)(smax - smin);\n if (sdiff > siz/2)\n scale *= .5;\n else if (sdiff < 3)\n scale *= 4;\n else if (sdiff < 5)\n scale *= 2;\n double incr = 1./scale;\n int count = 0;\n double sval = smin / scale;\n if (max > min) {\n smin = Math.ceil(min * scale);\n smax = Math.floor(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval <= smax ) {\n count+=2;\n sval += incr;\n }\n } else {\n incr *= -1.;\n smin = Math.floor(min * scale);\n smax = Math.ceil(max * scale) / scale + .2 * incr;\n sval = smin / scale;\n while ( sval >= smax ) {\n count+=2;\n sval += incr;\n }\n }\n int tn = count;\n tn += nanW > 0 ? 2 : 0;\n tn += negW > 0 ? 2 : 0;\n tn += nanW > 0 || negW > 0 ? 2 : 0;\n tn += posW > 0 ? 4 : 0;\n sval = smin / scale;\n ticks = new double[tn];\n int pi = 0; // pixelIndex\n if (nanW > 0 && pi < tn) {\n ticks[pi++] = 0.;\n ticks[pi++] = Double.NaN;\n if (!(negW > 0)) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NaN;\n }\n }\n if (negW > 0 && pi < tn) {\n ticks[pi++] = 0. + nanW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n ticks[pi++] = 0. + nanW + negW;\n ticks[pi++] = Double.NEGATIVE_INFINITY;\n }\n for (int i = 0; i < count && pi < tn; i += 2) {\n ticks[pi++] = nanW + negW + (siz - 1) * ((sval - min ) / (max - min));\n ticks[pi++] = Math.round(sval*scale)/scale;\n sval += incr;\n }\n if (posW > 0 && pi < tn) {\n ticks[pi++] = size-posW+1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n ticks[pi++] = size-1;\n ticks[pi++] = Double.POSITIVE_INFINITY;\n }\n }", "void setUnitIncrement(Adjustable adj, int u);", "public abstract void increment(int delta);", "public double getScaleX() {\n return 1.0;\n }", "public double getRoundingIncrement() {\n return roundingIncrement;\n }", "double getStep() {\n\t\t\treturn scale;\n\t\t}", "public double getWxInc() { return extents.getWidth() /getMyWidth(); }", "public void setIncrement(double increment) {\n this.increment = increment;\n }", "int getScale();", "void scale(double factor);", "public double getScaleY() {\n return 1.0;\n }", "public void increment(double n) {\r\n\t\tthis.value += n;\r\n\t}", "public int scale(int original);", "public void drawAxis(boolean x) {\n\n\t\tint stepPixels;\n\t\tfloat scale;\n\t\tif(x)\n\t\t{\n\t\t\tscale=this.drawnPlot.getScale().x;\n\t\t\tg.setColor(Color.green);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setStroke(new BasicStroke(2));\n\t\t\tg.drawLine((int)drawnPlot.getOffset().x-maxStepPixels*10, (int)drawnPlot.getOffset().y,(int)drawnPlot.getOffset().x+maxStepPixels*10,(int) drawnPlot.getOffset().y);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tg.setColor(Color.green);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setStroke(new BasicStroke(2));\n\t\t\tg.drawLine((int)drawnPlot.getOffset().x, (int)drawnPlot.getOffset().y-maxStepPixels*10,(int)drawnPlot.getOffset().x,(int) drawnPlot.getOffset().y+maxStepPixels*10);\n\n\t\t\tscale=this.drawnPlot.getScale().y;\n\t\t}\n\t\t\n\t\tfloat actualStepSize = maxStepPixels /scale;//calc how much is the maximum step size in pixels in actual units\n\t\tint scaleOrder=(int)Math.floor(Math.log10(actualStepSize));//see the order of magnitude the actual step size is in; no loss from casting to int with floor\n\t\tfloat divisor=(float) Math.pow(10, scaleOrder);//convert the order of magnitude to the lowest number of that order (2-->100, 1-->10...)\n\t\tdouble correctedStepSize=actualStepSize-(actualStepSize%divisor);//round the actual step size down based on its order of magnitude (0.253-->0.2, 101-->100, 1523-->1000)\n\t\tstepPixels=(int)(correctedStepSize*scale);\n\t\t//System.out.println(\"stepPixels: \"+stepPixels);\n\t\t\n\t\t\n\t\tfor(int i=-10;i<10;i++)\n\t\t{\n\t\t\tint xCommon=(int) (stepPixels *i + drawnPlot\n\t\t\t\t\t.getOffset().x);\n\t\t\tint x1 = xCommon;\n\t\t\tint y1 = (int) (drawnPlot\n\t\t\t\t\t.getOffset().y);\n\t\t\tint x2 = xCommon;\n\t\t\t\n\t\t\tint y2 = (int) ( drawnPlot\n\t\t\t\t\t.getOffset().y+tickSize);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setStroke(new BasicStroke(1));\n\t\t\t\n\t\t\tString markTxt=Double.toString(correctedStepSize*i);\n\t\t\tmarkTxt=markTxt.substring(0, Math.min(markTxt.length(), 5));\n\t\t\tmarkTxt=markTxt.replaceAll(\"(.*?\\\\..*?)0+$\", \"$1\");\n\t\t\tchar[] markTxtCa=markTxt.toCharArray();\n\t\t\t//System.out.println(\"test: \"+\"30.0200\".replaceAll(\"(.*?\\\\..*?)0+$\", \"$1\"));\n\t\t\t\n\t\t\tif(x)\n\t\t\t{\n\t\t\t\t\tg.drawLine(x1, y1, x2, y2);\n\t\t\t\t\tg.drawChars(markTxtCa, 0, markTxtCa.length, xCommon, (int) (drawnPlot\n\t\t\t\t\t.getOffset().y+tickSize*2));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.drawLine((int)drawnPlot\n\t\t\t\t\t\t.getOffset().x, stepPixels*-i+(int)(int)drawnPlot\n\t\t\t\t\t\t.getOffset().y, (int)drawnPlot\n\t\t\t\t\t\t.getOffset().x+tickSize, (int)drawnPlot\n\t\t\t\t\t\t.getOffset().y+stepPixels*-i);\n\t\t\t\tg.drawChars(markTxtCa, 0, markTxtCa.length, \n\t\t\t\t\t\t(int)drawnPlot\n\t\t\t\t\t\t.getOffset().x+tickSize*2, stepPixels*-i+(int)(int)drawnPlot\n\t\t\t\t\t\t.getOffset().y\n\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(markTxt);\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}", "public void increaseTimescale() {\n\t\ttimeScaler = timeScaler>=5 ? 5 : timeScaler + TIMESCLALER_FACTOR;\n\t}", "@Override protected void updateAxisRange() {\n final Axis<X> xa = getXAxis();\n final Axis<Y> ya = getYAxis();\n List<X> xData = null;\n List<Y> yData = null;\n if(xa.isAutoRanging()) xData = new ArrayList<X>();\n if(ya.isAutoRanging()) yData = new ArrayList<Y>();\n if(xData != null || yData != null) {\n for(Series<X,Y> series : getData()) {\n for(Data<X,Y> data: series.getData()) {\n if(xData != null) {\n xData.add(data.getXValue());\n xData.add(xa.toRealValue(xa.toNumericValue(data.getXValue()) + getLength(data.getExtraValue())));\n }\n if(yData != null){\n yData.add(data.getYValue());\n }\n }\n }\n if(xData != null) xa.invalidateRange(xData);\n if(yData != null) ya.invalidateRange(yData);\n }\n }", "public int getScale() {\r\n return scale;\r\n }", "public int getScale(){\n return scale;\n }", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "public Integer getScale() {\n return _scale;\n }", "public Integer getScale() {\n return _scale;\n }", "@Override\n public float getScale() {\n return scale;\n }", "public int getUnitIncrement(int param1Int) {\n/* 746 */ JViewport jViewport = JScrollPane.this.getViewport();\n/* 747 */ if (!this.unitIncrementSet && jViewport != null && jViewport\n/* 748 */ .getView() instanceof Scrollable) {\n/* 749 */ Scrollable scrollable = (Scrollable)jViewport.getView();\n/* 750 */ Rectangle rectangle = jViewport.getViewRect();\n/* 751 */ return scrollable.getScrollableUnitIncrement(rectangle, getOrientation(), param1Int);\n/* */ } \n/* */ \n/* 754 */ return super.getUnitIncrement(param1Int);\n/* */ }", "public double getScale(){\n\t\treturn scale;\n\t}", "public void scaleRoundIn(float scale) {\n if (scale != 1.0f) {\n left = (int) Math.ceil(left * scale);\n top = (int) Math.ceil(top * scale);\n right = (int) Math.floor(right * scale);\n bottom = (int) Math.floor(bottom * scale);\n }\n }", "public double getScale() {\n return scale;\n }", "public double getScale() {\r\n return scale;\r\n }", "public <T extends Number> void incrementSpeedPerFrame(T increment){\r\n\t\tspeed += increment.doubleValue();\r\n\t\tif(speed <= 0){\r\n\t\t\tspeed = 1;\r\n\t\t}\r\n\t}", "public double getScale() {\n return scale;\n }", "public int getScale() {\n return scale_;\n }", "@Override\n\tprotected float getDrawRatioX(){\n\t\treturn getWidth() / (float)getDefaultTODA() * getRatioOnScreen();\n\t}", "private double scalex(double x) {\n return x/scalingFactor;\n }", "public void scale(double rhs) {\n\n\t\tthis.r *= rhs;\n\t\tthis.g *= rhs;\n\t\tthis.b *= rhs;\n\t}", "public float getScale();", "public void setUnitIncrement(int param1Int) {\n/* 730 */ this.unitIncrementSet = true;\n/* 731 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", (Object)null);\n/* 732 */ super.setUnitIncrement(param1Int);\n/* */ }", "float getScaler();", "@Override\r\n\tpublic void precalc()\r\n\t{\n\t\tthis.axisLine = new Line2d( (float)this.config.getMinValue(), 0,\r\n\t\t\t\t(float)this.config.getMaxValue(), 0 );\r\n\r\n\t\t// Transform to (0,0) in data units\r\n\t\tthis.transform = TransformUtilities.translateMatrix( -this.config.getMinValue(), 0 );\r\n\r\n\t\t// Scale to pixels\r\n\t\tthis.currentScale = this.axisLength / (this.config.getMaxValue() - this.config.getMinValue());\r\n\t\tthis.transform = TransformUtilities.scaleMatrix( (float)this.currentScale, 1 )\r\n\t\t\t\t.times(this.transform);\r\n\r\n\t\t// Rotate to the preferred orientation\r\n\t\tthis.transform = TransformUtilities.rotationMatrix( this.config.getOrientation()[0] )\r\n\t\t\t\t.times(this.transform);\r\n\r\n\t\t// Translate to the preferred position\r\n\t\tthis.transform = TransformUtilities.translateMatrix(\r\n\t\t\t\tthis.config.getLocation()[0], this.config.getLocation()[1] )\r\n\t\t\t\t.times( this.transform );\r\n\r\n\t\t// Transform the axis\r\n\t\tthis.axisLine = this.axisLine.transform( this.transform );\r\n\t}", "public void scale(double s);", "public void change(double increment)\n\t{\n\t\tthis.accumulation += increment;\n\t}", "public void increment(Object incValue) {\r\n\t\t\r\n\t\tNumberOperation operator = new NumberOperation(this.value, incValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() + getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() + getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}", "public double getScale() {\n return this.scale;\n }", "private double xSpeedIncrease() \r\n\t{\r\n\t\tthis.x += 45;\r\n\t\treturn this.x;\r\n\t}", "public double getScale() {\r\n\t\treturn scale;\r\n\t}", "public double getScale(\n )\n {return scale;}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public void scale(Point P, int scaleFactor) {\n\n\n }", "public double getScale() {\n\t\treturn 0;\n\t}", "public void setScaleX(double aValue)\n{\n if(aValue==getScaleX()) return;\n repaint();\n firePropertyChange(\"ScaleX\", getRSS().scaleX, getRSS().scaleX = aValue, -1);\n}", "public double getRelativeHorizontalIncrement() {\n var pane = (ScrollPane) getNode();\n var region = getRegionToScroll();\n return region == null ? 0 : increment / (region.getWidth() - pane.getViewportBounds().getWidth());\n }", "@Override\n protected void afterAttach(){\n\n float scaleE = (float) Math.pow(toValue, 1.0 / totalIterations);\n scaleTransform.updateValues(scaleE, scaleE, scaleE);\n }", "public void setScale(float scale);", "private void setXscale() {\n\t}", "public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }", "public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}", "public void scale(float x, float y);", "public abstract void setMovementPerTick(float step);", "public UserDefinedScaleCalculator( double userDefinedMinimum, double userDefinedIncrement )\r\n\t{\r\n\t\tthis.userDefinedMinimum = userDefinedMinimum;\r\n\t\tthis.userDefinedIncrement = userDefinedIncrement;\r\n\t}", "public static NumberAxis calcAxisX() {\n double minX = 0;\n double maxX = Collections.max(GlobalVariables.systemCorridor.getDistances())\n / GlobalVariables.systemCorridor.getSpeed()\n + GlobalVariables.cycleLen.get();\n maxX = 3 * GlobalVariables.cycleLen.get() > maxX ? 3 * GlobalVariables.cycleLen.get() : maxX;\n maxX = Math.round(maxX / 10) * 10;\n double scaleX = 0.1 * (maxX - minX);\n scaleX = Math.round(scaleX / 10) * 10;\n NumberAxis axis = new NumberAxis(\"Time (sec)\", minX, maxX, scaleX);\n axis.setTickLabelFont(Font.font(18));\n return axis;\n }", "public double getIncrement() {\n return increment;\n }", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "@Override public void update(float dt)\n\t{\n\t\tthis.setScale((this.getScale().getX() + 0.1f) * 0.99f, (this.getScale().getY() + 0.1f) * 0.99f);\n\n\n\t}", "public void scale(float scale) {\n if (scale != 1.0f) {\n left = (int) (left * scale + 0.5f);\n top = (int) (top * scale + 0.5f);\n right = (int) (right * scale + 0.5f);\n bottom = (int) (bottom * scale + 0.5f);\n }\n }", "@Override\n\tpublic float getRenderSizeModifier() {\n\t\treturn getScale();\n\t}", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "public void setScale(double n) {\n\n\t}", "@Override\n protected void updateAxisRange(){\n Axis<X> xAxis = getXAxis();\n Axis<Y> yAxis = getYAxis();\n ArrayList<X> xList = null;\n ArrayList<Y> yList = null;\n if(xAxis.isAutoRanging()) { xList = new ArrayList<>(); }\n if(yAxis.isAutoRanging()) { yList = new ArrayList<>(); }\n\n if(xAxis != null || yAxis != null) {\n for (Series<X, Y> series : getData()) {\n for (Data<X, Y> data : series.getData()) {\n if(xList != null) {\n xList.add(data.getXValue());\n xList.add(xAxis.toRealValue(xAxis.toNumericValue(data.getXValue())\n + getLength(data.getExtraValue())));\n }\n if(yList != null) {\n yList.add(data.getYValue());\n }\n }\n }\n if(xList != null) { xAxis.invalidateRange(xList); }\n if(yList != null) { yAxis.invalidateRange(yList); }\n }\n\n }", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "private int scaleX(double d) {\n\t\treturn (int) Math.round(d * panelWidth * 0.5 / MAX_CIRCLE_VAL_X);\n\t}", "public double getWyInc() { return extents.getHeight() /getMyHeight(); }", "private void drawScale(Graphics2D g)\n\t{\n\t\tStroke drawingStroke = new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);\t\n\t\tg.setStroke(drawingStroke);\n\t\tdouble xAxisLength = midBoxWidth - AXIS_Y_GAP*2;\n\t\tdouble yAxisLength = midBoxHeight - AXIS_X_GAP*2;\n\t\tint xScale = statsCollector.getXScale();\n\t\tint yScale = statsCollector.getYScale(graph);\n\t\t//scale = 300000;\n\n\n\t\t// X-axis\n\t\tLine2D.Double line = new Line2D.Double();\n\t\tint yLength = 10;\n\t\tint xLength = totalEntered[0].length -1;\n\t\tif (xLength < 10) {\n\t\t\txLength = 10;\n\t\t}\n\t\tdouble xGap = xAxisLength/xLength;\n\t\tdouble yGap = yAxisLength/yLength;\n\n\t\tfloat offset = 1;\n\n\n\t\t// for loop based on how many points there are\n\t\tfor (int i = 0; i < xLength; i++) {\n\t\t\tline.setLine(ORIGIN_X + xGap*(i+1), ORIGIN_Y, ORIGIN_X + xGap*(i+1), ORIGIN_Y + 8);\n\t\t\tg.draw(line);\n\n\t\t\tif (i % 2 == 1 && i > 0) {\n\t\t\t\tint value = (i+1)*xScale;\n\t\t\t\toffset = 1;\n\t\t\t\twhile (value % 10 != value) {\n\t\t\t\t\toffset++;\n\t\t\t\t\tvalue = value/10;\n\t\t\t\t}\n\t\t\t\t//if ((i+1)*scale < 10) {\n\t\t\t\tg.drawString(Integer.toString((i+1)*xScale), (float)((ORIGIN_X + xGap*(i+1)) - 3.75*offset), (float)(ORIGIN_Y + 25));\n\t\t\t\t//} else {\n\t\t\t\t//g2d.drawString(Integer.toString((i+1)*scale), (float)((ORIGIN_X + xGap*(i+1)) - 7), (float)(ORIGIN_Y + 25));\n\t\t\t\t//}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t// Y-axis\n\t\tfor (int i = 0; i < yLength; i++) {\n\t\t\tline.setLine(ORIGIN_X, ORIGIN_Y - yGap*(i+1), ORIGIN_X - 8, ORIGIN_Y - yGap*(i+1));\n\t\t\tg.draw(line);\n\n\t\t\tif (i % 2 == 1 && i > 0) {\n\t\t\t\tint value = (i+1)*yScale;\n\t\t\t\toffset = 1;\n\t\t\t\twhile (value % 10 != value) {\n\t\t\t\t\toffset++;\n\t\t\t\t\tvalue = value/10;\n\t\t\t\t}\n\t\t\t\tg.drawString(Integer.toString((i+1)*yScale), (float)(ORIGIN_X - 18 - 4*offset), (float)(ORIGIN_Y - yGap*(i+1)) + 4);\n\t\t\t}\n\t\t}\n\t}", "public abstract void setLineWidth(float lineWidth);", "public final double getScaler()\n { \n return Math.pow(10, m_Scaler);\n }", "public double getScale() {\n\t\treturn disp.getScale();\n\t}", "public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }", "public double getScaleEnd() {\n\t\treturn m_dScaleEnd;\n\t}", "public float getScale() {\n \t\treturn scale;\n \t}", "void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }", "void addAxis(final CalibratedAxis axis, final long value);", "private int getScale(){\n Display display = ((WindowManager) Objects.requireNonNull(getContext())\n .getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();\n\n int width = display.getWidth();\n Double val = (double) width / 360d;\n val = val * 100d;\n return val.intValue();\n }", "public void setIncrement( final int value ) {\n checkWidget();\n if( value >= 1 && value <= maximum - minimum ) {\n increment = value;\n }\n }", "@Override\n public void scale(double x, double y) {\n graphicsEnvironmentImpl.scale(canvas, x, y);\n }", "public float getScale()\n\t{\n\t\treturn scale;\n\t}", "default void setX(double x)\n {\n getAxis().setX(x);\n }", "public float getScale() {\n\t\treturn scale;\n\t}", "public int getScaleValue() {\r\n return ScaleValue;\r\n }", "@Override\r\n public double calPx() {\n return this.n.getPx(); \r\n }", "@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}", "public void normalize()\n {\n double magnitude = this.magnitude();\n this.x = x / (float)magnitude;\n this.y = y / (float)magnitude;\n this.z = z / (float)magnitude;\n this.w = w / (float)magnitude;\n }", "void scaleArea(float scaleFactor) {\n\t\t// for more advanced (more than 4 points), use this algorithm:\n\t\t// http://stackoverflow.com/questions/1109536/an-algorithm-for-inflating-deflating-offsetting-buffering-polygons\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tPVector tmp = PVector.sub(point[i].position, anchor);\n\t\t\ttmp.mult(scaleFactor);\n\t\t\tpoint[i].position.set(PVector.add(anchor, tmp));\n\t\t}\n\t}", "static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 decimal place. %n: print on a new line\r\n\t\t}\r\n\t}", "@java.lang.Override\n public float getScaler() {\n return scaler_;\n }", "public double getScaleStart() {\n\t\treturn m_dScaleStart;\n\t}", "public void incrementCurrentRoundNumber() {\n\t\t\n\t\tcurrentRoundnumber = currentRoundnumber +1;\n\t}", "public float getScale() {\n return this.scale;\n }", "public void scaleAdd(double scale, Color rhs) {\n\n\t\tthis.r += scale * rhs.r;\n\t\tthis.g += scale * rhs.g;\n\t\tthis.b += scale * rhs.b;\n\n\t}", "void setMaxScale(int value);", "@java.lang.Override\n public float getScaler() {\n return scaler_;\n }", "protected abstract void onScalePercentChange(int zoom);" ]
[ "0.5642908", "0.5398267", "0.53796935", "0.53676933", "0.5327132", "0.5276336", "0.5273752", "0.52651227", "0.52414334", "0.5231269", "0.5199863", "0.5147618", "0.51462805", "0.5120061", "0.5109604", "0.5101146", "0.5070481", "0.5062862", "0.50520337", "0.50475436", "0.50475436", "0.50472814", "0.504105", "0.5034814", "0.5032737", "0.5031975", "0.50260514", "0.50236076", "0.5012014", "0.49875814", "0.4972666", "0.49666283", "0.4956779", "0.4952417", "0.4948497", "0.4940369", "0.4927459", "0.4920233", "0.49188527", "0.4915517", "0.49128377", "0.49102697", "0.49093854", "0.49032488", "0.4899854", "0.48898327", "0.48668692", "0.4862934", "0.48575443", "0.48534536", "0.4845756", "0.48449075", "0.4842084", "0.4835739", "0.4835039", "0.483069", "0.48206663", "0.48025116", "0.48011905", "0.47978055", "0.47973666", "0.479707", "0.4793488", "0.47835803", "0.47791722", "0.4770853", "0.47607222", "0.4755737", "0.4753057", "0.47437432", "0.47350445", "0.47329488", "0.47263548", "0.47200432", "0.47117484", "0.46995297", "0.46939126", "0.46928713", "0.46887353", "0.46789166", "0.46780077", "0.46731326", "0.46685794", "0.46629554", "0.46539614", "0.46521392", "0.46511593", "0.46471357", "0.46414173", "0.46261713", "0.46232665", "0.46198088", "0.46187463", "0.46124092", "0.46074095", "0.4604044", "0.459372", "0.45926338", "0.45899686", "0.45890662" ]
0.64208025
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_assessment_info, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1